diff --git a/assets/SettingsPage-DEVpjBAC.js b/assets/SettingsPage-gUZKGfEk.js similarity index 99% rename from assets/SettingsPage-DEVpjBAC.js rename to assets/SettingsPage-gUZKGfEk.js index 9f585725..5e575105 100644 --- a/assets/SettingsPage-DEVpjBAC.js +++ b/assets/SettingsPage-gUZKGfEk.js @@ -1,4 +1,4 @@ -import{d as Oe,c as Pe,t as Tn,u as _,r as qt,a as On,h as In,g as Ie,w as An,o as kn,b as Nn,n as rn,i as Z,C as Mn,e as Tt,f as nt,j as ot,k as we,l as Re,F as Se,m as _e,p as R,q as E,s as ut,v as mt,x as Pn,y as re,z as Be,A as Rn,B as Xt,D as ie,E as ae,G as Ye,H as le,I as se,J as Ft,K as ce,L as Bn,M as Yn,N as Xn,O as Fn,P as Xe,Q as Fe}from"./index-ti2Z1P01.js";var Vn=Object.defineProperty,Jt=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,Ve=(t,n,e)=>n in t?Vn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,Ct=(t,n)=>{for(var e in n||(n={}))an.call(n,e)&&Ve(t,e,n[e]);if(Jt)for(var e of Jt(n))ln.call(n,e)&&Ve(t,e,n[e]);return t},sn=(t,n)=>{var e={};for(var o in t)an.call(t,o)&&n.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&Jt)for(var o of Jt(t))n.indexOf(o)<0&&ln.call(t,o)&&(e[o]=t[o]);return e};const cn="[vue-draggable-plus]: ";function Un(t){console.warn(cn+t)}function jn(t){console.error(cn+t)}function Ue(t,n,e){return e>=0&&ee?e.toUpperCase():"")}function Hn(t){return Object.keys(t).reduce((n,e)=>(typeof t[e]<"u"&&(n[$n(e)]=t[e]),n),{})}function je(t,n){return Array.isArray(t)&&t.splice(n,1),t}function $e(t,n,e){return Array.isArray(t)&&t.splice(n,0,e),t}function Wn(t){return typeof t>"u"}function Ln(t){return typeof t=="string"}function He(t,n,e){const o=t.children[e];t.insertBefore(n,o)}function ue(t){t.parentNode&&t.parentNode.removeChild(t)}function zn(t,n=document){var e;let o=null;return typeof(n==null?void 0:n.querySelector)=="function"?o=(e=n==null?void 0:n.querySelector)==null?void 0:e.call(n,t):o=document.querySelector(t),o||Un(`Element not found: ${t}`),o}function Gn(t,n,e=null){return function(...o){return t.apply(e,o),n.apply(e,o)}}function qn(t,n){const e=Ct({},t);return Object.keys(n).forEach(o=>{e[o]?e[o]=Gn(t[o],n[o]):e[o]=n[o]}),e}function Jn(t){return t instanceof HTMLElement}function We(t,n){Object.keys(t).forEach(e=>{n(e,t[e])})}function Kn(t){return t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97)}const Zn=Object.assign;/**! +import{d as Oe,c as Pe,t as Tn,u as _,r as qt,a as On,h as In,g as Ie,w as An,o as kn,b as Nn,n as rn,i as Z,C as Mn,e as Tt,f as nt,j as ot,k as we,l as Re,F as Se,m as _e,p as R,q as E,s as ut,v as mt,x as Pn,y as re,z as Be,A as Rn,B as Xt,D as ie,E as ae,G as Ye,H as le,I as se,J as Ft,K as ce,L as Bn,M as Yn,N as Xn,O as Fn,P as Xe,Q as Fe}from"./index-QZZWKm7x.js";var Vn=Object.defineProperty,Jt=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,Ve=(t,n,e)=>n in t?Vn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,Ct=(t,n)=>{for(var e in n||(n={}))an.call(n,e)&&Ve(t,e,n[e]);if(Jt)for(var e of Jt(n))ln.call(n,e)&&Ve(t,e,n[e]);return t},sn=(t,n)=>{var e={};for(var o in t)an.call(t,o)&&n.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&Jt)for(var o of Jt(t))n.indexOf(o)<0&&ln.call(t,o)&&(e[o]=t[o]);return e};const cn="[vue-draggable-plus]: ";function Un(t){console.warn(cn+t)}function jn(t){console.error(cn+t)}function Ue(t,n,e){return e>=0&&ee?e.toUpperCase():"")}function Hn(t){return Object.keys(t).reduce((n,e)=>(typeof t[e]<"u"&&(n[$n(e)]=t[e]),n),{})}function je(t,n){return Array.isArray(t)&&t.splice(n,1),t}function $e(t,n,e){return Array.isArray(t)&&t.splice(n,0,e),t}function Wn(t){return typeof t>"u"}function Ln(t){return typeof t=="string"}function He(t,n,e){const o=t.children[e];t.insertBefore(n,o)}function ue(t){t.parentNode&&t.parentNode.removeChild(t)}function zn(t,n=document){var e;let o=null;return typeof(n==null?void 0:n.querySelector)=="function"?o=(e=n==null?void 0:n.querySelector)==null?void 0:e.call(n,t):o=document.querySelector(t),o||Un(`Element not found: ${t}`),o}function Gn(t,n,e=null){return function(...o){return t.apply(e,o),n.apply(e,o)}}function qn(t,n){const e=Ct({},t);return Object.keys(n).forEach(o=>{e[o]?e[o]=Gn(t[o],n[o]):e[o]=n[o]}),e}function Jn(t){return t instanceof HTMLElement}function We(t,n){Object.keys(t).forEach(e=>{n(e,t[e])})}function Kn(t){return t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97)}const Zn=Object.assign;/**! * Sortable 1.15.2 * @author RubaXa * @author owenm diff --git a/assets/index-ti2Z1P01.js b/assets/index-QZZWKm7x.js similarity index 87% rename from assets/index-ti2Z1P01.js rename to assets/index-QZZWKm7x.js index ca090a9b..5818327b 100644 --- a/assets/index-ti2Z1P01.js +++ b/assets/index-QZZWKm7x.js @@ -2,28 +2,28 @@ * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function zT(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const fr={},of=[],Qa=()=>{},aj=()=>!1,F0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),GT=e=>e.startsWith("onUpdate:"),sn=Object.assign,$T=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},oj=Object.prototype.hasOwnProperty,nr=(e,t)=>oj.call(e,t),st=Array.isArray,sf=e=>Ud(e)==="[object Map]",Hf=e=>Ud(e)==="[object Set]",wP=e=>Ud(e)==="[object Date]",St=e=>typeof e=="function",Br=e=>typeof e=="string",ro=e=>typeof e=="symbol",dr=e=>e!==null&&typeof e=="object",kV=e=>(dr(e)||St(e))&&St(e.then)&&St(e.catch),OV=Object.prototype.toString,Ud=e=>OV.call(e),sj=e=>Ud(e).slice(8,-1),NV=e=>Ud(e)==="[object Object]",HT=e=>Br(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Iv=zT(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),V0=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},lj=/-(\w)/g,ra=V0(e=>e.replace(lj,(t,r)=>r?r.toUpperCase():"")),uj=/\B([A-Z])/g,Ju=V0(e=>e.replace(uj,"-$1").toLowerCase()),B0=V0(e=>e.charAt(0).toUpperCase()+e.slice(1)),uS=V0(e=>e?`on${B0(e)}`:""),qs=(e,t)=>!Object.is(e,t),km=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Sy=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let xP;const z0=()=>xP||(xP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fu(e){if(st(e)){const t={};for(let r=0;r{if(r){const n=r.split(fj);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Gt(e){let t="";if(Br(e))t=e;else if(st(e))for(let r=0;rYd(r,t))}const BV=e=>!!(e&&e.__v_isRef===!0),Xe=e=>Br(e)?e:e==null?"":st(e)||dr(e)&&(e.toString===OV||!St(e.toString))?BV(e)?Xe(e.value):JSON.stringify(e,zV,2):String(e),zV=(e,t)=>BV(t)?zV(e,t.value):sf(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],a)=>(r[cS(n,a)+" =>"]=i,r),{})}:Hf(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>cS(r))}:ro(t)?cS(t):dr(t)&&!st(t)&&!NV(t)?String(t):t,cS=(e,t="")=>{var r;return ro(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function zT(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const fr={},of=[],Ja=()=>{},aj=()=>!1,F0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),GT=e=>e.startsWith("onUpdate:"),sn=Object.assign,$T=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},oj=Object.prototype.hasOwnProperty,rr=(e,t)=>oj.call(e,t),st=Array.isArray,sf=e=>Ud(e)==="[object Map]",Hf=e=>Ud(e)==="[object Set]",wP=e=>Ud(e)==="[object Date]",St=e=>typeof e=="function",Br=e=>typeof e=="string",ro=e=>typeof e=="symbol",dr=e=>e!==null&&typeof e=="object",kV=e=>(dr(e)||St(e))&&St(e.then)&&St(e.catch),OV=Object.prototype.toString,Ud=e=>OV.call(e),sj=e=>Ud(e).slice(8,-1),NV=e=>Ud(e)==="[object Object]",HT=e=>Br(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Iv=zT(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),V0=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},lj=/-(\w)/g,ra=V0(e=>e.replace(lj,(t,r)=>r?r.toUpperCase():"")),uj=/\B([A-Z])/g,Ju=V0(e=>e.replace(uj,"-$1").toLowerCase()),B0=V0(e=>e.charAt(0).toUpperCase()+e.slice(1)),uS=V0(e=>e?`on${B0(e)}`:""),qs=(e,t)=>!Object.is(e,t),km=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Sy=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let xP;const z0=()=>xP||(xP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fu(e){if(st(e)){const t={};for(let r=0;r{if(r){const n=r.split(fj);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Gt(e){let t="";if(Br(e))t=e;else if(st(e))for(let r=0;rYd(r,t))}const BV=e=>!!(e&&e.__v_isRef===!0),Xe=e=>Br(e)?e:e==null?"":st(e)||dr(e)&&(e.toString===OV||!St(e.toString))?BV(e)?Xe(e.value):JSON.stringify(e,zV,2):String(e),zV=(e,t)=>BV(t)?zV(e,t.value):sf(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],a)=>(r[cS(n,a)+" =>"]=i,r),{})}:Hf(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>cS(r))}:ro(t)?cS(t):dr(t)&&!st(t)&&!NV(t)?String(t):t,cS=(e,t="")=>{var r;return ro(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let zn;class GV{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=zn,!t&&zn&&(this.index=(zn.scopes||(zn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0)return;if(Pv){let t=Pv;for(Pv=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Lv;){let t=Lv;for(Lv=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function YV(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function XV(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),XT(n),_j(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function fb(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ZV(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ZV(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===nd))return;e.globalVersion=nd;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!fb(e)){e.flags&=-3;return}const r=gr,n=_a;gr=e,_a=!0;try{YV(e);const i=e.fn(e._value);(t.version===0||qs(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{gr=r,_a=n,XV(e),e.flags&=-3}}function XT(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)XT(a,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function _j(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let _a=!0;const qV=[];function cl(){qV.push(_a),_a=!1}function fl(){const e=qV.pop();_a=e===void 0?!0:e}function bP(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=gr;gr=void 0;try{t()}finally{gr=r}}}let nd=0;class Sj{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class G0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!gr||!_a||gr===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==gr)r=this.activeLink=new Sj(gr,this),gr.deps?(r.prevDep=gr.depsTail,gr.depsTail.nextDep=r,gr.depsTail=r):gr.deps=gr.depsTail=r,jV(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=gr.depsTail,r.nextDep=void 0,gr.depsTail.nextDep=r,gr.depsTail=r,gr.deps===r&&(gr.deps=n)}return r}trigger(t){this.version++,nd++,this.notify(t)}notify(t){UT();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{YT()}}}function jV(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)jV(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const wy=new WeakMap,xu=Symbol(""),hb=Symbol(""),id=Symbol("");function Mn(e,t,r){if(_a&&gr){let n=wy.get(e);n||wy.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new G0),i.map=n,i.key=r),i.track()}}function ko(e,t,r,n,i,a){const o=wy.get(e);if(!o){nd++;return}const s=l=>{l&&l.trigger()};if(UT(),t==="clear")o.forEach(s);else{const l=st(e),u=l&&HT(r);if(l&&r==="length"){const c=Number(n);o.forEach((f,h)=>{(h==="length"||h===id||!ro(h)&&h>=c)&&s(f)})}else switch((r!==void 0||o.has(void 0))&&s(o.get(r)),u&&s(o.get(id)),t){case"add":l?u&&s(o.get("length")):(s(o.get(xu)),sf(e)&&s(o.get(hb)));break;case"delete":l||(s(o.get(xu)),sf(e)&&s(o.get(hb)));break;case"set":sf(e)&&s(o.get(xu));break}}YT()}function wj(e,t){const r=wy.get(e);return r&&r.get(t)}function xc(e){const t=Zt(e);return t===e?t:(Mn(t,"iterate",id),ea(e)?t:t.map(Dn))}function $0(e){return Mn(e=Zt(e),"iterate",id),e}const xj={__proto__:null,[Symbol.iterator](){return hS(this,Symbol.iterator,Dn)},concat(...e){return xc(this).concat(...e.map(t=>st(t)?xc(t):t))},entries(){return hS(this,"entries",e=>(e[1]=Dn(e[1]),e))},every(e,t){return bo(this,"every",e,t,void 0,arguments)},filter(e,t){return bo(this,"filter",e,t,r=>r.map(Dn),arguments)},find(e,t){return bo(this,"find",e,t,Dn,arguments)},findIndex(e,t){return bo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return bo(this,"findLast",e,t,Dn,arguments)},findLastIndex(e,t){return bo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return bo(this,"forEach",e,t,void 0,arguments)},includes(...e){return vS(this,"includes",e)},indexOf(...e){return vS(this,"indexOf",e)},join(e){return xc(this).join(e)},lastIndexOf(...e){return vS(this,"lastIndexOf",e)},map(e,t){return bo(this,"map",e,t,void 0,arguments)},pop(){return Ah(this,"pop")},push(...e){return Ah(this,"push",e)},reduce(e,...t){return CP(this,"reduce",e,t)},reduceRight(e,...t){return CP(this,"reduceRight",e,t)},shift(){return Ah(this,"shift")},some(e,t){return bo(this,"some",e,t,void 0,arguments)},splice(...e){return Ah(this,"splice",e)},toReversed(){return xc(this).toReversed()},toSorted(e){return xc(this).toSorted(e)},toSpliced(...e){return xc(this).toSpliced(...e)},unshift(...e){return Ah(this,"unshift",e)},values(){return hS(this,"values",Dn)}};function hS(e,t,r){const n=$0(e),i=n[t]();return n!==e&&!ea(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const bj=Array.prototype;function bo(e,t,r,n,i,a){const o=$0(e),s=o!==e&&!ea(e),l=o[t];if(l!==bj[t]){const f=l.apply(e,a);return s?Dn(f):f}let u=r;o!==e&&(s?u=function(f,h){return r.call(this,Dn(f),h,e)}:r.length>2&&(u=function(f,h){return r.call(this,f,h,e)}));const c=l.call(o,u,n);return s&&i?i(c):c}function CP(e,t,r,n){const i=$0(e);let a=r;return i!==e&&(ea(e)?r.length>3&&(a=function(o,s,l){return r.call(this,o,s,l,e)}):a=function(o,s,l){return r.call(this,o,Dn(s),l,e)}),i[t](a,...n)}function vS(e,t,r){const n=Zt(e);Mn(n,"iterate",id);const i=n[t](...r);return(i===-1||i===!1)&&jT(r[0])?(r[0]=Zt(r[0]),n[t](...r)):i}function Ah(e,t,r=[]){cl(),UT();const n=Zt(e)[t].apply(e,r);return YT(),fl(),n}const Cj=zT("__proto__,__v_isRef,__isVue"),KV=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ro));function Tj(e){ro(e)||(e=String(e));const t=Zt(this);return Mn(t,"has",e),t.hasOwnProperty(e)}class JV{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?Oj:rB:a?tB:eB).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=st(t);if(!i){let l;if(o&&(l=xj[r]))return l;if(r==="hasOwnProperty")return Tj}const s=Reflect.get(t,r,sr(t)?t:n);return(ro(r)?KV.has(r):Cj(r))||(i||Mn(t,"get",r),a)?s:sr(s)?o&&HT(r)?s:s.value:dr(s)?i?H0(s):Wf(s):s}}class QV extends JV{constructor(t=!1){super(!1,t)}set(t,r,n,i){let a=t[r];if(!this._isShallow){const l=Vu(a);if(!ea(n)&&!Vu(n)&&(a=Zt(a),n=Zt(n)),!st(t)&&sr(a)&&!sr(n))return l?!1:(a.value=n,!0)}const o=st(t)&&HT(r)?Number(r)e,vg=e=>Reflect.getPrototypeOf(e);function Lj(e,t,r){return function(...n){const i=this.__v_raw,a=Zt(i),o=sf(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),c=r?vb:t?db:Dn;return!t&&Mn(a,"iterate",l?hb:xu),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:s?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function dg(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Pj(e,t){const r={get(i){const a=this.__v_raw,o=Zt(a),s=Zt(i);e||(qs(i,s)&&Mn(o,"get",i),Mn(o,"get",s));const{has:l}=vg(o),u=t?vb:e?db:Dn;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!e&&Mn(Zt(i),"iterate",xu),Reflect.get(i,"size",i)},has(i){const a=this.__v_raw,o=Zt(a),s=Zt(i);return e||(qs(i,s)&&Mn(o,"has",i),Mn(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=Zt(s),u=t?vb:e?db:Dn;return!e&&Mn(l,"iterate",xu),s.forEach((c,f)=>i.call(a,u(c),u(f),o))}};return sn(r,e?{add:dg("add"),set:dg("set"),delete:dg("delete"),clear:dg("clear")}:{add(i){!t&&!ea(i)&&!Vu(i)&&(i=Zt(i));const a=Zt(this);return vg(a).has.call(a,i)||(a.add(i),ko(a,"add",i,i)),this},set(i,a){!t&&!ea(a)&&!Vu(a)&&(a=Zt(a));const o=Zt(this),{has:s,get:l}=vg(o);let u=s.call(o,i);u||(i=Zt(i),u=s.call(o,i));const c=l.call(o,i);return o.set(i,a),u?qs(a,c)&&ko(o,"set",i,a):ko(o,"add",i,a),this},delete(i){const a=Zt(this),{has:o,get:s}=vg(a);let l=o.call(a,i);l||(i=Zt(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&ko(a,"delete",i,void 0),u},clear(){const i=Zt(this),a=i.size!==0,o=i.clear();return a&&ko(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=Lj(i,e,t)}),r}function ZT(e,t){const r=Pj(e,t);return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(nr(r,i)&&i in n?r:n,i,a)}const Rj={get:ZT(!1,!1)},Ej={get:ZT(!1,!0)},kj={get:ZT(!0,!1)};const eB=new WeakMap,tB=new WeakMap,rB=new WeakMap,Oj=new WeakMap;function Nj(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fj(e){return e.__v_skip||!Object.isExtensible(e)?0:Nj(sj(e))}function Wf(e){return Vu(e)?e:qT(e,!1,Mj,Rj,eB)}function nB(e){return qT(e,!1,Ij,Ej,tB)}function H0(e){return qT(e,!0,Dj,kj,rB)}function qT(e,t,r,n,i){if(!dr(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=Fj(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function lf(e){return Vu(e)?lf(e.__v_raw):!!(e&&e.__v_isReactive)}function Vu(e){return!!(e&&e.__v_isReadonly)}function ea(e){return!!(e&&e.__v_isShallow)}function jT(e){return e?!!e.__v_raw:!1}function Zt(e){const t=e&&e.__v_raw;return t?Zt(t):e}function Vj(e){return!nr(e,"__v_skip")&&Object.isExtensible(e)&&FV(e,"__v_skip",!0),e}const Dn=e=>dr(e)?Wf(e):e,db=e=>dr(e)?H0(e):e;function sr(e){return e?e.__v_isRef===!0:!1}function Je(e){return iB(e,!1)}function W0(e){return iB(e,!0)}function iB(e,t){return sr(e)?e:new Bj(e,t)}class Bj{constructor(t,r){this.dep=new G0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Zt(t),this._value=r?t:Dn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||ea(t)||Vu(t);t=n?t:Zt(t),qs(t,r)&&(this._rawValue=t,this._value=n?t:Dn(t),this.dep.trigger())}}function oe(e){return sr(e)?e.value:e}const zj={get:(e,t,r)=>t==="__v_raw"?e:oe(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return sr(i)&&!sr(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function aB(e){return lf(e)?e:new Proxy(e,zj)}class Gj{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new G0,{get:n,set:i}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function $j(e){return new Gj(e)}function aDe(e){const t=st(e)?new Array(e.length):{};for(const r in e)t[r]=oB(e,r);return t}class Hj{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return wj(Zt(this._object),this._key)}}class Wj{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Uj(e,t,r){return sr(e)?e:St(e)?new Wj(e):dr(e)&&arguments.length>1?oB(e,t,r):Je(e)}function oB(e,t,r){const n=e[t];return sr(n)?n:new Hj(e,t,r)}class Yj{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new G0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=nd-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&gr!==this)return UV(this,!0),!0}get value(){const t=this.dep.track();return ZV(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Xj(e,t,r=!1){let n,i;return St(e)?n=e:(n=e.get,i=e.set),new Yj(n,i,r)}const pg={},xy=new WeakMap;let Jl;function Zj(e,t=!1,r=Jl){if(r){let n=xy.get(r);n||xy.set(r,n=[]),n.push(e)}}function qj(e,t,r=fr){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=x=>i?x:ea(x)||i===!1||i===0?Oo(x,1):Oo(x);let c,f,h,v,d=!1,g=!1;if(sr(e)?(f=()=>e.value,d=ea(e)):lf(e)?(f=()=>u(e),d=!0):st(e)?(g=!0,d=e.some(x=>lf(x)||ea(x)),f=()=>e.map(x=>{if(sr(x))return x.value;if(lf(x))return u(x);if(St(x))return l?l(x,2):x()})):St(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){cl();try{h()}finally{fl()}}const x=Jl;Jl=c;try{return l?l(e,3,[v]):e(v)}finally{Jl=x}}:f=Qa,t&&i){const x=f,T=i===!0?1/0:i;f=()=>Oo(x(),T)}const m=$V(),y=()=>{c.stop(),m&&m.active&&$T(m.effects,c)};if(a&&t){const x=t;t=(...T)=>{x(...T),y()}}let S=g?new Array(e.length).fill(pg):pg;const w=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(t){const T=c.run();if(i||d||(g?T.some((b,A)=>qs(b,S[A])):qs(T,S))){h&&h();const b=Jl;Jl=c;try{const A=[T,S===pg?void 0:g&&S[0]===pg?[]:S,v];l?l(t,3,A):t(...A),S=T}finally{Jl=b}}}else c.run()};return s&&s(w),c=new HV(f),c.scheduler=o?()=>o(w,!1):w,v=x=>Zj(x,!1,c),h=c.onStop=()=>{const x=xy.get(c);if(x){if(l)l(x,4);else for(const T of x)T();xy.delete(c)}},t?n?w(!0):S=c.run():o?o(w.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function Oo(e,t=1/0,r){if(t<=0||!dr(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,sr(e))Oo(e.value,t,r);else if(st(e))for(let n=0;n{Oo(n,t,r)});else if(NV(e)){for(const n in e)Oo(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Oo(e[n],t,r)}return e}/** +**/let zn;class GV{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=zn,!t&&zn&&(this.index=(zn.scopes||(zn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0)return;if(Pv){let t=Pv;for(Pv=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Lv;){let t=Lv;for(Lv=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function YV(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function XV(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),XT(n),_j(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function fb(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ZV(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ZV(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===nd))return;e.globalVersion=nd;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!fb(e)){e.flags&=-3;return}const r=gr,n=_a;gr=e,_a=!0;try{YV(e);const i=e.fn(e._value);(t.version===0||qs(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{gr=r,_a=n,XV(e),e.flags&=-3}}function XT(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)XT(a,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function _j(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let _a=!0;const qV=[];function cl(){qV.push(_a),_a=!1}function fl(){const e=qV.pop();_a=e===void 0?!0:e}function bP(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=gr;gr=void 0;try{t()}finally{gr=r}}}let nd=0;class Sj{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class G0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!gr||!_a||gr===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==gr)r=this.activeLink=new Sj(gr,this),gr.deps?(r.prevDep=gr.depsTail,gr.depsTail.nextDep=r,gr.depsTail=r):gr.deps=gr.depsTail=r,jV(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=gr.depsTail,r.nextDep=void 0,gr.depsTail.nextDep=r,gr.depsTail=r,gr.deps===r&&(gr.deps=n)}return r}trigger(t){this.version++,nd++,this.notify(t)}notify(t){UT();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{YT()}}}function jV(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)jV(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const wy=new WeakMap,xu=Symbol(""),hb=Symbol(""),id=Symbol("");function Mn(e,t,r){if(_a&&gr){let n=wy.get(e);n||wy.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new G0),i.map=n,i.key=r),i.track()}}function ko(e,t,r,n,i,a){const o=wy.get(e);if(!o){nd++;return}const s=l=>{l&&l.trigger()};if(UT(),t==="clear")o.forEach(s);else{const l=st(e),u=l&&HT(r);if(l&&r==="length"){const c=Number(n);o.forEach((f,h)=>{(h==="length"||h===id||!ro(h)&&h>=c)&&s(f)})}else switch((r!==void 0||o.has(void 0))&&s(o.get(r)),u&&s(o.get(id)),t){case"add":l?u&&s(o.get("length")):(s(o.get(xu)),sf(e)&&s(o.get(hb)));break;case"delete":l||(s(o.get(xu)),sf(e)&&s(o.get(hb)));break;case"set":sf(e)&&s(o.get(xu));break}}YT()}function wj(e,t){const r=wy.get(e);return r&&r.get(t)}function xc(e){const t=Zt(e);return t===e?t:(Mn(t,"iterate",id),ea(e)?t:t.map(Dn))}function $0(e){return Mn(e=Zt(e),"iterate",id),e}const xj={__proto__:null,[Symbol.iterator](){return hS(this,Symbol.iterator,Dn)},concat(...e){return xc(this).concat(...e.map(t=>st(t)?xc(t):t))},entries(){return hS(this,"entries",e=>(e[1]=Dn(e[1]),e))},every(e,t){return bo(this,"every",e,t,void 0,arguments)},filter(e,t){return bo(this,"filter",e,t,r=>r.map(Dn),arguments)},find(e,t){return bo(this,"find",e,t,Dn,arguments)},findIndex(e,t){return bo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return bo(this,"findLast",e,t,Dn,arguments)},findLastIndex(e,t){return bo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return bo(this,"forEach",e,t,void 0,arguments)},includes(...e){return vS(this,"includes",e)},indexOf(...e){return vS(this,"indexOf",e)},join(e){return xc(this).join(e)},lastIndexOf(...e){return vS(this,"lastIndexOf",e)},map(e,t){return bo(this,"map",e,t,void 0,arguments)},pop(){return Ah(this,"pop")},push(...e){return Ah(this,"push",e)},reduce(e,...t){return CP(this,"reduce",e,t)},reduceRight(e,...t){return CP(this,"reduceRight",e,t)},shift(){return Ah(this,"shift")},some(e,t){return bo(this,"some",e,t,void 0,arguments)},splice(...e){return Ah(this,"splice",e)},toReversed(){return xc(this).toReversed()},toSorted(e){return xc(this).toSorted(e)},toSpliced(...e){return xc(this).toSpliced(...e)},unshift(...e){return Ah(this,"unshift",e)},values(){return hS(this,"values",Dn)}};function hS(e,t,r){const n=$0(e),i=n[t]();return n!==e&&!ea(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const bj=Array.prototype;function bo(e,t,r,n,i,a){const o=$0(e),s=o!==e&&!ea(e),l=o[t];if(l!==bj[t]){const f=l.apply(e,a);return s?Dn(f):f}let u=r;o!==e&&(s?u=function(f,h){return r.call(this,Dn(f),h,e)}:r.length>2&&(u=function(f,h){return r.call(this,f,h,e)}));const c=l.call(o,u,n);return s&&i?i(c):c}function CP(e,t,r,n){const i=$0(e);let a=r;return i!==e&&(ea(e)?r.length>3&&(a=function(o,s,l){return r.call(this,o,s,l,e)}):a=function(o,s,l){return r.call(this,o,Dn(s),l,e)}),i[t](a,...n)}function vS(e,t,r){const n=Zt(e);Mn(n,"iterate",id);const i=n[t](...r);return(i===-1||i===!1)&&jT(r[0])?(r[0]=Zt(r[0]),n[t](...r)):i}function Ah(e,t,r=[]){cl(),UT();const n=Zt(e)[t].apply(e,r);return YT(),fl(),n}const Cj=zT("__proto__,__v_isRef,__isVue"),KV=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ro));function Tj(e){ro(e)||(e=String(e));const t=Zt(this);return Mn(t,"has",e),t.hasOwnProperty(e)}class JV{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?Oj:rB:a?tB:eB).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=st(t);if(!i){let l;if(o&&(l=xj[r]))return l;if(r==="hasOwnProperty")return Tj}const s=Reflect.get(t,r,sr(t)?t:n);return(ro(r)?KV.has(r):Cj(r))||(i||Mn(t,"get",r),a)?s:sr(s)?o&&HT(r)?s:s.value:dr(s)?i?H0(s):Wf(s):s}}class QV extends JV{constructor(t=!1){super(!1,t)}set(t,r,n,i){let a=t[r];if(!this._isShallow){const l=Vu(a);if(!ea(n)&&!Vu(n)&&(a=Zt(a),n=Zt(n)),!st(t)&&sr(a)&&!sr(n))return l?!1:(a.value=n,!0)}const o=st(t)&&HT(r)?Number(r)e,vg=e=>Reflect.getPrototypeOf(e);function Lj(e,t,r){return function(...n){const i=this.__v_raw,a=Zt(i),o=sf(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),c=r?vb:t?db:Dn;return!t&&Mn(a,"iterate",l?hb:xu),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:s?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function dg(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Pj(e,t){const r={get(i){const a=this.__v_raw,o=Zt(a),s=Zt(i);e||(qs(i,s)&&Mn(o,"get",i),Mn(o,"get",s));const{has:l}=vg(o),u=t?vb:e?db:Dn;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!e&&Mn(Zt(i),"iterate",xu),Reflect.get(i,"size",i)},has(i){const a=this.__v_raw,o=Zt(a),s=Zt(i);return e||(qs(i,s)&&Mn(o,"has",i),Mn(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=Zt(s),u=t?vb:e?db:Dn;return!e&&Mn(l,"iterate",xu),s.forEach((c,f)=>i.call(a,u(c),u(f),o))}};return sn(r,e?{add:dg("add"),set:dg("set"),delete:dg("delete"),clear:dg("clear")}:{add(i){!t&&!ea(i)&&!Vu(i)&&(i=Zt(i));const a=Zt(this);return vg(a).has.call(a,i)||(a.add(i),ko(a,"add",i,i)),this},set(i,a){!t&&!ea(a)&&!Vu(a)&&(a=Zt(a));const o=Zt(this),{has:s,get:l}=vg(o);let u=s.call(o,i);u||(i=Zt(i),u=s.call(o,i));const c=l.call(o,i);return o.set(i,a),u?qs(a,c)&&ko(o,"set",i,a):ko(o,"add",i,a),this},delete(i){const a=Zt(this),{has:o,get:s}=vg(a);let l=o.call(a,i);l||(i=Zt(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&ko(a,"delete",i,void 0),u},clear(){const i=Zt(this),a=i.size!==0,o=i.clear();return a&&ko(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=Lj(i,e,t)}),r}function ZT(e,t){const r=Pj(e,t);return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(rr(r,i)&&i in n?r:n,i,a)}const Rj={get:ZT(!1,!1)},Ej={get:ZT(!1,!0)},kj={get:ZT(!0,!1)};const eB=new WeakMap,tB=new WeakMap,rB=new WeakMap,Oj=new WeakMap;function Nj(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fj(e){return e.__v_skip||!Object.isExtensible(e)?0:Nj(sj(e))}function Wf(e){return Vu(e)?e:qT(e,!1,Mj,Rj,eB)}function nB(e){return qT(e,!1,Ij,Ej,tB)}function H0(e){return qT(e,!0,Dj,kj,rB)}function qT(e,t,r,n,i){if(!dr(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=Fj(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function lf(e){return Vu(e)?lf(e.__v_raw):!!(e&&e.__v_isReactive)}function Vu(e){return!!(e&&e.__v_isReadonly)}function ea(e){return!!(e&&e.__v_isShallow)}function jT(e){return e?!!e.__v_raw:!1}function Zt(e){const t=e&&e.__v_raw;return t?Zt(t):e}function Vj(e){return!rr(e,"__v_skip")&&Object.isExtensible(e)&&FV(e,"__v_skip",!0),e}const Dn=e=>dr(e)?Wf(e):e,db=e=>dr(e)?H0(e):e;function sr(e){return e?e.__v_isRef===!0:!1}function Je(e){return iB(e,!1)}function W0(e){return iB(e,!0)}function iB(e,t){return sr(e)?e:new Bj(e,t)}class Bj{constructor(t,r){this.dep=new G0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Zt(t),this._value=r?t:Dn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||ea(t)||Vu(t);t=n?t:Zt(t),qs(t,r)&&(this._rawValue=t,this._value=n?t:Dn(t),this.dep.trigger())}}function se(e){return sr(e)?e.value:e}const zj={get:(e,t,r)=>t==="__v_raw"?e:se(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return sr(i)&&!sr(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function aB(e){return lf(e)?e:new Proxy(e,zj)}class Gj{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new G0,{get:n,set:i}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function $j(e){return new Gj(e)}function iDe(e){const t=st(e)?new Array(e.length):{};for(const r in e)t[r]=oB(e,r);return t}class Hj{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return wj(Zt(this._object),this._key)}}class Wj{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Uj(e,t,r){return sr(e)?e:St(e)?new Wj(e):dr(e)&&arguments.length>1?oB(e,t,r):Je(e)}function oB(e,t,r){const n=e[t];return sr(n)?n:new Hj(e,t,r)}class Yj{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new G0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=nd-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&gr!==this)return UV(this,!0),!0}get value(){const t=this.dep.track();return ZV(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Xj(e,t,r=!1){let n,i;return St(e)?n=e:(n=e.get,i=e.set),new Yj(n,i,r)}const pg={},xy=new WeakMap;let Jl;function Zj(e,t=!1,r=Jl){if(r){let n=xy.get(r);n||xy.set(r,n=[]),n.push(e)}}function qj(e,t,r=fr){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=x=>i?x:ea(x)||i===!1||i===0?Oo(x,1):Oo(x);let c,f,h,v,d=!1,g=!1;if(sr(e)?(f=()=>e.value,d=ea(e)):lf(e)?(f=()=>u(e),d=!0):st(e)?(g=!0,d=e.some(x=>lf(x)||ea(x)),f=()=>e.map(x=>{if(sr(x))return x.value;if(lf(x))return u(x);if(St(x))return l?l(x,2):x()})):St(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){cl();try{h()}finally{fl()}}const x=Jl;Jl=c;try{return l?l(e,3,[v]):e(v)}finally{Jl=x}}:f=Ja,t&&i){const x=f,T=i===!0?1/0:i;f=()=>Oo(x(),T)}const m=$V(),y=()=>{c.stop(),m&&m.active&&$T(m.effects,c)};if(a&&t){const x=t;t=(...T)=>{x(...T),y()}}let S=g?new Array(e.length).fill(pg):pg;const w=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(t){const T=c.run();if(i||d||(g?T.some((b,A)=>qs(b,S[A])):qs(T,S))){h&&h();const b=Jl;Jl=c;try{const A=[T,S===pg?void 0:g&&S[0]===pg?[]:S,v];l?l(t,3,A):t(...A),S=T}finally{Jl=b}}}else c.run()};return s&&s(w),c=new HV(f),c.scheduler=o?()=>o(w,!1):w,v=x=>Zj(x,!1,c),h=c.onStop=()=>{const x=xy.get(c);if(x){if(l)l(x,4);else for(const T of x)T();xy.delete(c)}},t?n?w(!0):S=c.run():o?o(w.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function Oo(e,t=1/0,r){if(t<=0||!dr(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,sr(e))Oo(e.value,t,r);else if(st(e))for(let n=0;n{Oo(n,t,r)});else if(NV(e)){for(const n in e)Oo(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Oo(e[n],t,r)}return e}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Xd(e,t,r,n){try{return n?e(...n):e()}catch(i){U0(i,t,r)}}function no(e,t,r,n){if(St(e)){const i=Xd(e,t,r,n);return i&&kV(i)&&i.catch(a=>{U0(a,t,r)}),i}if(st(e)){const i=[];for(let a=0;a>>1,i=Hn[n],a=ad(i);a=ad(r)?Hn.push(e):Hn.splice(Kj(t),0,e),e.flags|=1,lB()}}function lB(){by||(by=sB.then(cB))}function Jj(e){st(e)?uf.push(...e):Ls&&e.id===-1?Ls.splice(Wc+1,0,e):e.flags&1||(uf.push(e),e.flags|=1),lB()}function TP(e,t,r=Wa+1){for(;rad(r)-ad(n));if(uf.length=0,Ls){Ls.push(...t);return}for(Ls=t,Wc=0;Wce.id==null?e.flags&2?-1:1/0:e.id;function cB(e){try{for(Wa=0;Wa{n._d&&kP(-1);const a=Cy(t);let o;try{o=e(...i)}finally{Cy(a),n._d&&kP(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function ci(e,t){if(ui===null)return e;const r=Z0(ui),n=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport;function JT(e,t){e.shapeFlag&6&&e.component?(e.transition=t,JT(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Qt(e,t){return St(e)?sn({name:e.name},t,{setup:e}):e}function hB(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ty(e,t,r,n,i=!1){if(st(e)){e.forEach((d,g)=>Ty(d,t&&(st(t)?t[g]:t),r,n,i));return}if(Rv(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ty(e,t,r,n.component.subTree);return}const a=n.shapeFlag&4?Z0(n.component):n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===fr?s.refs={}:s.refs,f=s.setupState,h=Zt(f),v=f===fr?()=>!1:d=>nr(h,d);if(u!=null&&u!==l&&(Br(u)?(c[u]=null,v(u)&&(f[u]=null)):sr(u)&&(u.value=null)),St(l))Xd(l,s,12,[o,c]);else{const d=Br(l),g=sr(l);if(d||g){const m=()=>{if(e.f){const y=d?v(l)?f[l]:c[l]:l.value;i?st(y)&&$T(y,a):st(y)?y.includes(a)||y.push(a):d?(c[l]=[a],v(l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,v(l)&&(f[l]=o)):g&&(l.value=o,e.k&&(c[e.k]=o))};o?(m.id=-1,xi(m,r)):m()}}}z0().requestIdleCallback;z0().cancelIdleCallback;const Rv=e=>!!e.type.__asyncLoader,vB=e=>e.type.__isKeepAlive;function rK(e,t){dB(e,"a",t)}function nK(e,t){dB(e,"da",t)}function dB(e,t,r=gn){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Y0(t,n,r),r){let i=r.parent;for(;i&&i.parent;)vB(i.parent.vnode)&&iK(n,t,r,i),i=i.parent}}function iK(e,t,r,n){const i=Y0(t,e,n,!0);QT(()=>{$T(n[t],i)},r)}function Y0(e,t,r=gn,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{cl();const s=Kd(r),l=no(t,r,e,o);return s(),fl(),l});return n?i.unshift(a):i.push(a),a}}const rs=e=>(t,r=gn)=>{(!sd||e==="sp")&&Y0(e,(...n)=>t(...n),r)},aK=rs("bm"),qd=rs("m"),oK=rs("bu"),sK=rs("u"),pB=rs("bum"),QT=rs("um"),lK=rs("sp"),uK=rs("rtg"),cK=rs("rtc");function fK(e,t=gn){Y0("ec",e,t)}const hK="components",gB=Symbol.for("v-ndc");function Bu(e){return Br(e)?vK(hK,e,!1)||e:e||gB}function vK(e,t,r=!0,n=!1){const i=ui||gn;if(i){const a=i.type;{const s=QK(a,!1);if(s&&(s===t||s===ra(t)||s===B0(ra(t))))return a}const o=AP(i[e]||a[e],t)||AP(i.appContext[e],t);return!o&&n?a:o}}function AP(e,t){return e&&(e[t]||e[ra(t)]||e[B0(ra(t))])}function wr(e,t,r,n){let i;const a=r,o=st(e);if(o||Br(e)){const s=o&&lf(e);let l=!1;s&&(l=!ea(e),e=$0(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(s,l,void 0,a));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;le?OB(e)?Z0(e):pb(e.parent):null,Ev=sn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>pb(e.parent),$root:e=>pb(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>eA(e),$forceUpdate:e=>e.f||(e.f=()=>{KT(e.update)}),$nextTick:e=>e.n||(e.n=Zd.bind(e.proxy)),$watch:e=>kK.bind(e)}),dS=(e,t)=>e!==fr&&!e.__isScriptSetup&&nr(e,t),dK={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(dS(n,t))return o[t]=1,n[t];if(i!==fr&&nr(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&nr(u,t))return o[t]=3,a[t];if(r!==fr&&nr(r,t))return o[t]=4,r[t];gb&&(o[t]=0)}}const c=Ev[t];let f,h;if(c)return t==="$attrs"&&Mn(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==fr&&nr(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,nr(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return dS(i,t)?(i[t]=r,!0):n!==fr&&nr(n,t)?(n[t]=r,!0):nr(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==fr&&nr(e,o)||dS(t,o)||(s=a[0])&&nr(s,o)||nr(n,o)||nr(Ev,o)||nr(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:nr(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function MP(e){return st(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let gb=!0;function pK(e){const t=eA(e),r=e.proxy,n=e.ctx;gb=!1,t.beforeCreate&&DP(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:v,updated:d,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:S,destroyed:w,unmounted:x,render:T,renderTracked:b,renderTriggered:A,errorCaptured:M,serverPrefetch:D,expose:L,inheritAttrs:P,components:E,directives:F,filters:O}=t;if(u&&gK(u,n,null),o)for(const Y in o){const G=o[Y];St(G)&&(n[Y]=G.bind(r))}if(i){const Y=i.call(r,r);dr(Y)&&(e.data=Wf(Y))}if(gb=!0,a)for(const Y in a){const G=a[Y],Z=St(G)?G.bind(r,r):St(G.get)?G.get.bind(r,r):Qa,J=!St(G)&&St(G.set)?G.set.bind(r):Qa,re=dt({get:Z,set:J});Object.defineProperty(n,Y,{enumerable:!0,configurable:!0,get:()=>re.value,set:pe=>re.value=pe})}if(s)for(const Y in s)mB(s[Y],n,r,Y);if(l){const Y=St(l)?l.call(r):l;Reflect.ownKeys(Y).forEach(G=>{Om(G,Y[G])})}c&&DP(c,e,"c");function V(Y,G){st(G)?G.forEach(Z=>Y(Z.bind(r))):G&&Y(G.bind(r))}if(V(aK,f),V(qd,h),V(oK,v),V(sK,d),V(rK,g),V(nK,m),V(fK,M),V(cK,b),V(uK,A),V(pB,S),V(QT,x),V(lK,D),st(L))if(L.length){const Y=e.exposed||(e.exposed={});L.forEach(G=>{Object.defineProperty(Y,G,{get:()=>r[G],set:Z=>r[G]=Z})})}else e.exposed||(e.exposed={});T&&e.render===Qa&&(e.render=T),P!=null&&(e.inheritAttrs=P),E&&(e.components=E),F&&(e.directives=F),D&&hB(e)}function gK(e,t,r=Qa){st(e)&&(e=mb(e));for(const n in e){const i=e[n];let a;dr(i)?"default"in i?a=Sa(i.from||n,i.default,!0):a=Sa(i.from||n):a=Sa(i),sr(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function DP(e,t,r){no(st(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function mB(e,t,r,n){let i=n.includes(".")?LB(r,n):()=>r[n];if(Br(e)){const a=t[e];St(a)&&hr(i,a)}else if(St(e))hr(i,e.bind(r));else if(dr(e))if(st(e))e.forEach(a=>mB(a,t,r,n));else{const a=St(e.handler)?e.handler.bind(r):t[e.handler];St(a)&&hr(i,a,e)}}function eA(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>Ay(l,u,o,!0)),Ay(l,t,o)),dr(t)&&a.set(t,l),l}function Ay(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&Ay(e,a,r,!0),i&&i.forEach(o=>Ay(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=mK[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const mK={data:IP,props:LP,emits:LP,methods:uv,computed:uv,beforeCreate:Nn,created:Nn,beforeMount:Nn,mounted:Nn,beforeUpdate:Nn,updated:Nn,beforeDestroy:Nn,beforeUnmount:Nn,destroyed:Nn,unmounted:Nn,activated:Nn,deactivated:Nn,errorCaptured:Nn,serverPrefetch:Nn,components:uv,directives:uv,watch:_K,provide:IP,inject:yK};function IP(e,t){return t?e?function(){return sn(St(e)?e.call(this,this):e,St(t)?t.call(this,this):t)}:t:e}function yK(e,t){return uv(mb(e),mb(t))}function mb(e){if(st(e)){const t={};for(let r=0;r1)return r&&St(t)?t.call(n&&n.proxy):t}}const _B={},SB=()=>Object.create(_B),wB=e=>Object.getPrototypeOf(e)===_B;function xK(e,t,r,n=!1){const i={},a=SB();e.propsDefaults=Object.create(null),xB(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:nB(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function bK(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Zt(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[h,v]=bB(f,t,!0);sn(o,h),v&&s.push(...v)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return dr(e)&&n.set(e,of),of;if(st(a))for(let c=0;ce[0]==="_"||e==="$stable",tA=e=>st(e)?e.map(Ya):[Ya(e)],TK=(e,t,r)=>{if(t._n)return t;const n=Qj((...i)=>tA(t(...i)),r);return n._c=!1,n},TB=(e,t,r)=>{const n=e._ctx;for(const i in e){if(CB(i))continue;const a=e[i];if(St(a))t[i]=TK(i,a,n);else if(a!=null){const o=tA(a);t[i]=()=>o}}},AB=(e,t)=>{const r=tA(t);e.slots.default=()=>r},MB=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},AK=(e,t,r)=>{const n=e.slots=SB();if(e.vnode.shapeFlag&32){const i=t._;i?(MB(n,t,r),r&&FV(n,"_",i,!0)):TB(t,n)}else t&&AB(e,t)},MK=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=fr;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:MB(i,t,r):(a=!t.$stable,TB(t,i)),o=t}else t&&(AB(e,t),o={default:1});if(a)for(const s in i)!CB(s)&&o[s]==null&&delete i[s]},xi=GK;function DK(e){return IK(e)}function IK(e,t){const r=z0();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:v=Qa,insertStaticContent:d}=e,g=(H,W,te,_e=null,fe=null,$=null,U=void 0,Q=null,ae=!!W.dynamicChildren)=>{if(H===W)return;H&&!Mh(H,W)&&(_e=ie(H),pe(H,fe,$,!0),H=null),W.patchFlag===-2&&(ae=!1,W.dynamicChildren=null);const{type:xe,ref:Pe,shapeFlag:K}=W;switch(xe){case jd:m(H,W,te,_e);break;case zu:y(H,W,te,_e);break;case mS:H==null&&S(W,te,_e,U);break;case wt:E(H,W,te,_e,fe,$,U,Q,ae);break;default:K&1?T(H,W,te,_e,fe,$,U,Q,ae):K&6?F(H,W,te,_e,fe,$,U,Q,ae):(K&64||K&128)&&xe.process(H,W,te,_e,fe,$,U,Q,ae,me)}Pe!=null&&fe&&Ty(Pe,H&&H.ref,$,W||H,!W)},m=(H,W,te,_e)=>{if(H==null)n(W.el=s(W.children),te,_e);else{const fe=W.el=H.el;W.children!==H.children&&u(fe,W.children)}},y=(H,W,te,_e)=>{H==null?n(W.el=l(W.children||""),te,_e):W.el=H.el},S=(H,W,te,_e)=>{[H.el,H.anchor]=d(H.children,W,te,_e,H.el,H.anchor)},w=({el:H,anchor:W},te,_e)=>{let fe;for(;H&&H!==W;)fe=h(H),n(H,te,_e),H=fe;n(W,te,_e)},x=({el:H,anchor:W})=>{let te;for(;H&&H!==W;)te=h(H),i(H),H=te;i(W)},T=(H,W,te,_e,fe,$,U,Q,ae)=>{W.type==="svg"?U="svg":W.type==="math"&&(U="mathml"),H==null?b(W,te,_e,fe,$,U,Q,ae):D(H,W,fe,$,U,Q,ae)},b=(H,W,te,_e,fe,$,U,Q)=>{let ae,xe;const{props:Pe,shapeFlag:K,transition:ue,dirs:Ve}=H;if(ae=H.el=o(H.type,$,Pe&&Pe.is,Pe),K&8?c(ae,H.children):K&16&&M(H.children,ae,null,_e,fe,pS(H,$),U,Q),Ve&&Al(H,null,_e,"created"),A(ae,H,H.scopeId,U,_e),Pe){for(const At in Pe)At!=="value"&&!Iv(At)&&a(ae,At,null,Pe[At],$,_e);"value"in Pe&&a(ae,"value",null,Pe.value,$),(xe=Pe.onVnodeBeforeMount)&&ka(xe,_e,H)}Ve&&Al(H,null,_e,"beforeMount");const je=LK(fe,ue);je&&ue.beforeEnter(ae),n(ae,W,te),((xe=Pe&&Pe.onVnodeMounted)||je||Ve)&&xi(()=>{xe&&ka(xe,_e,H),je&&ue.enter(ae),Ve&&Al(H,null,_e,"mounted")},fe)},A=(H,W,te,_e,fe)=>{if(te&&v(H,te),_e)for(let $=0;$<_e.length;$++)v(H,_e[$]);if(fe){let $=fe.subTree;if(W===$||RB($.type)&&($.ssContent===W||$.ssFallback===W)){const U=fe.vnode;A(H,U,U.scopeId,U.slotScopeIds,fe.parent)}}},M=(H,W,te,_e,fe,$,U,Q,ae=0)=>{for(let xe=ae;xe{const Q=W.el=H.el;let{patchFlag:ae,dynamicChildren:xe,dirs:Pe}=W;ae|=H.patchFlag&16;const K=H.props||fr,ue=W.props||fr;let Ve;if(te&&Ml(te,!1),(Ve=ue.onVnodeBeforeUpdate)&&ka(Ve,te,W,H),Pe&&Al(W,H,te,"beforeUpdate"),te&&Ml(te,!0),(K.innerHTML&&ue.innerHTML==null||K.textContent&&ue.textContent==null)&&c(Q,""),xe?L(H.dynamicChildren,xe,Q,te,_e,pS(W,fe),$):U||G(H,W,Q,null,te,_e,pS(W,fe),$,!1),ae>0){if(ae&16)P(Q,K,ue,te,fe);else if(ae&2&&K.class!==ue.class&&a(Q,"class",null,ue.class,fe),ae&4&&a(Q,"style",K.style,ue.style,fe),ae&8){const je=W.dynamicProps;for(let At=0;At{Ve&&ka(Ve,te,W,H),Pe&&Al(W,H,te,"updated")},_e)},L=(H,W,te,_e,fe,$,U)=>{for(let Q=0;Q{if(W!==te){if(W!==fr)for(const $ in W)!Iv($)&&!($ in te)&&a(H,$,W[$],null,fe,_e);for(const $ in te){if(Iv($))continue;const U=te[$],Q=W[$];U!==Q&&$!=="value"&&a(H,$,Q,U,fe,_e)}"value"in te&&a(H,"value",W.value,te.value,fe)}},E=(H,W,te,_e,fe,$,U,Q,ae)=>{const xe=W.el=H?H.el:s(""),Pe=W.anchor=H?H.anchor:s("");let{patchFlag:K,dynamicChildren:ue,slotScopeIds:Ve}=W;Ve&&(Q=Q?Q.concat(Ve):Ve),H==null?(n(xe,te,_e),n(Pe,te,_e),M(W.children||[],te,Pe,fe,$,U,Q,ae)):K>0&&K&64&&ue&&H.dynamicChildren?(L(H.dynamicChildren,ue,te,fe,$,U,Q),(W.key!=null||fe&&W===fe.subTree)&&DB(H,W,!0)):G(H,W,te,Pe,fe,$,U,Q,ae)},F=(H,W,te,_e,fe,$,U,Q,ae)=>{W.slotScopeIds=Q,H==null?W.shapeFlag&512?fe.ctx.activate(W,te,_e,U,ae):O(W,te,_e,fe,$,U,ae):N(H,W,ae)},O=(H,W,te,_e,fe,$,U)=>{const Q=H.component=ZK(H,_e,fe);if(vB(H)&&(Q.ctx.renderer=me),qK(Q,!1,U),Q.asyncDep){if(fe&&fe.registerDep(Q,V,U),!H.el){const ae=Q.subTree=ze(zu);y(null,ae,W,te)}}else V(Q,H,W,te,fe,$,U)},N=(H,W,te)=>{const _e=W.component=H.component;if(BK(H,W,te))if(_e.asyncDep&&!_e.asyncResolved){Y(_e,W,te);return}else _e.next=W,_e.update();else W.el=H.el,_e.vnode=W},V=(H,W,te,_e,fe,$,U)=>{const Q=()=>{if(H.isMounted){let{next:K,bu:ue,u:Ve,parent:je,vnode:At}=H;{const un=IB(H);if(un){K&&(K.el=At.el,Y(H,K,U)),un.asyncDep.then(()=>{H.isUnmounted||Q()});return}}let Ot=K,xr;Ml(H,!1),K?(K.el=At.el,Y(H,K,U)):K=At,ue&&km(ue),(xr=K.props&&K.props.onVnodeBeforeUpdate)&&ka(xr,je,K,At),Ml(H,!0);const Mr=gS(H),Sn=H.subTree;H.subTree=Mr,g(Sn,Mr,f(Sn.el),ie(Sn),H,fe,$),K.el=Mr.el,Ot===null&&zK(H,Mr.el),Ve&&xi(Ve,fe),(xr=K.props&&K.props.onVnodeUpdated)&&xi(()=>ka(xr,je,K,At),fe)}else{let K;const{el:ue,props:Ve}=W,{bm:je,m:At,parent:Ot,root:xr,type:Mr}=H,Sn=Rv(W);if(Ml(H,!1),je&&km(je),!Sn&&(K=Ve&&Ve.onVnodeBeforeMount)&&ka(K,Ot,W),Ml(H,!0),ue&&Re){const un=()=>{H.subTree=gS(H),Re(ue,H.subTree,H,fe,null)};Sn&&Mr.__asyncHydrate?Mr.__asyncHydrate(ue,H,un):un()}else{xr.ce&&xr.ce._injectChildStyle(Mr);const un=H.subTree=gS(H);g(null,un,te,_e,H,fe,$),W.el=un.el}if(At&&xi(At,fe),!Sn&&(K=Ve&&Ve.onVnodeMounted)){const un=W;xi(()=>ka(K,Ot,un),fe)}(W.shapeFlag&256||Ot&&Rv(Ot.vnode)&&Ot.vnode.shapeFlag&256)&&H.a&&xi(H.a,fe),H.isMounted=!0,W=te=_e=null}};H.scope.on();const ae=H.effect=new HV(Q);H.scope.off();const xe=H.update=ae.run.bind(ae),Pe=H.job=ae.runIfDirty.bind(ae);Pe.i=H,Pe.id=H.uid,ae.scheduler=()=>KT(Pe),Ml(H,!0),xe()},Y=(H,W,te)=>{W.component=H;const _e=H.vnode.props;H.vnode=W,H.next=null,bK(H,W.props,_e,te),MK(H,W.children,te),cl(),TP(H),fl()},G=(H,W,te,_e,fe,$,U,Q,ae=!1)=>{const xe=H&&H.children,Pe=H?H.shapeFlag:0,K=W.children,{patchFlag:ue,shapeFlag:Ve}=W;if(ue>0){if(ue&128){J(xe,K,te,_e,fe,$,U,Q,ae);return}else if(ue&256){Z(xe,K,te,_e,fe,$,U,Q,ae);return}}Ve&8?(Pe&16&&Ge(xe,fe,$),K!==xe&&c(te,K)):Pe&16?Ve&16?J(xe,K,te,_e,fe,$,U,Q,ae):Ge(xe,fe,$,!0):(Pe&8&&c(te,""),Ve&16&&M(K,te,_e,fe,$,U,Q,ae))},Z=(H,W,te,_e,fe,$,U,Q,ae)=>{H=H||of,W=W||of;const xe=H.length,Pe=W.length,K=Math.min(xe,Pe);let ue;for(ue=0;uePe?Ge(H,fe,$,!0,!1,K):M(W,te,_e,fe,$,U,Q,ae,K)},J=(H,W,te,_e,fe,$,U,Q,ae)=>{let xe=0;const Pe=W.length;let K=H.length-1,ue=Pe-1;for(;xe<=K&&xe<=ue;){const Ve=H[xe],je=W[xe]=ae?Ps(W[xe]):Ya(W[xe]);if(Mh(Ve,je))g(Ve,je,te,null,fe,$,U,Q,ae);else break;xe++}for(;xe<=K&&xe<=ue;){const Ve=H[K],je=W[ue]=ae?Ps(W[ue]):Ya(W[ue]);if(Mh(Ve,je))g(Ve,je,te,null,fe,$,U,Q,ae);else break;K--,ue--}if(xe>K){if(xe<=ue){const Ve=ue+1,je=Veue)for(;xe<=K;)pe(H[xe],fe,$,!0),xe++;else{const Ve=xe,je=xe,At=new Map;for(xe=je;xe<=ue;xe++){const cn=W[xe]=ae?Ps(W[xe]):Ya(W[xe]);cn.key!=null&&At.set(cn.key,xe)}let Ot,xr=0;const Mr=ue-je+1;let Sn=!1,un=0;const ho=new Array(Mr);for(xe=0;xe=Mr){pe(cn,fe,$,!0);continue}let Jn;if(cn.key!=null)Jn=At.get(cn.key);else for(Ot=je;Ot<=ue;Ot++)if(ho[Ot-je]===0&&Mh(cn,W[Ot])){Jn=Ot;break}Jn===void 0?pe(cn,fe,$,!0):(ho[Jn-je]=xe+1,Jn>=un?un=Jn:Sn=!0,g(cn,W[Jn],te,null,fe,$,U,Q,ae),xr++)}const sc=Sn?PK(ho):of;for(Ot=sc.length-1,xe=Mr-1;xe>=0;xe--){const cn=je+xe,Jn=W[cn],bp=cn+1{const{el:$,type:U,transition:Q,children:ae,shapeFlag:xe}=H;if(xe&6){re(H.component.subTree,W,te,_e);return}if(xe&128){H.suspense.move(W,te,_e);return}if(xe&64){U.move(H,W,te,me);return}if(U===wt){n($,W,te);for(let K=0;KQ.enter($),fe);else{const{leave:K,delayLeave:ue,afterLeave:Ve}=Q,je=()=>n($,W,te),At=()=>{K($,()=>{je(),Ve&&Ve()})};ue?ue($,je,At):At()}else n($,W,te)},pe=(H,W,te,_e=!1,fe=!1)=>{const{type:$,props:U,ref:Q,children:ae,dynamicChildren:xe,shapeFlag:Pe,patchFlag:K,dirs:ue,cacheIndex:Ve}=H;if(K===-2&&(fe=!1),Q!=null&&Ty(Q,null,te,H,!0),Ve!=null&&(W.renderCache[Ve]=void 0),Pe&256){W.ctx.deactivate(H);return}const je=Pe&1&&ue,At=!Rv(H);let Ot;if(At&&(Ot=U&&U.onVnodeBeforeUnmount)&&ka(Ot,W,H),Pe&6)Fe(H.component,te,_e);else{if(Pe&128){H.suspense.unmount(te,_e);return}je&&Al(H,null,W,"beforeUnmount"),Pe&64?H.type.remove(H,W,te,me,_e):xe&&!xe.hasOnce&&($!==wt||K>0&&K&64)?Ge(xe,W,te,!1,!0):($===wt&&K&384||!fe&&Pe&16)&&Ge(ae,W,te),_e&&Me(H)}(At&&(Ot=U&&U.onVnodeUnmounted)||je)&&xi(()=>{Ot&&ka(Ot,W,H),je&&Al(H,null,W,"unmounted")},te)},Me=H=>{const{type:W,el:te,anchor:_e,transition:fe}=H;if(W===wt){Le(te,_e);return}if(W===mS){x(H);return}const $=()=>{i(te),fe&&!fe.persisted&&fe.afterLeave&&fe.afterLeave()};if(H.shapeFlag&1&&fe&&!fe.persisted){const{leave:U,delayLeave:Q}=fe,ae=()=>U(te,$);Q?Q(H.el,$,ae):ae()}else $()},Le=(H,W)=>{let te;for(;H!==W;)te=h(H),i(H),H=te;i(W)},Fe=(H,W,te)=>{const{bum:_e,scope:fe,job:$,subTree:U,um:Q,m:ae,a:xe}=H;RP(ae),RP(xe),_e&&km(_e),fe.stop(),$&&($.flags|=8,pe(U,H,W,te)),Q&&xi(Q,W),xi(()=>{H.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},Ge=(H,W,te,_e=!1,fe=!1,$=0)=>{for(let U=$;U{if(H.shapeFlag&6)return ie(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const W=h(H.anchor||H.el),te=W&&W[eK];return te?h(te):W};let le=!1;const de=(H,W,te)=>{H==null?W._vnode&&pe(W._vnode,null,null,!0):g(W._vnode||null,H,W,null,null,null,te),W._vnode=H,le||(le=!0,TP(),uB(),le=!1)},me={p:g,um:pe,m:re,r:Me,mt:O,mc:M,pc:G,pbc:L,n:ie,o:e};let be,Re;return{render:de,hydrate:be,createApp:wK(de,be)}}function pS({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Ml({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function LK(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function DB(e,t,r=!1){const n=e.children,i=t.children;if(st(n)&&st(i))for(let a=0;a>1,e[r[s]]0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}function IB(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:IB(t)}function RP(e){if(e)for(let t=0;tSa(RK);function rA(e,t){return nA(e,null,t)}function hr(e,t,r){return nA(e,t,r)}function nA(e,t,r=fr){const{immediate:n,deep:i,flush:a,once:o}=r,s=sn({},r),l=t&&n||!t&&a!=="post";let u;if(sd){if(a==="sync"){const v=EK();u=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=Qa,v.resume=Qa,v.pause=Qa,v}}const c=gn;s.call=(v,d,g)=>no(v,c,d,g);let f=!1;a==="post"?s.scheduler=v=>{xi(v,c&&c.suspense)}:a!=="sync"&&(f=!0,s.scheduler=(v,d)=>{d?v():KT(v)}),s.augmentJob=v=>{t&&(v.flags|=4),f&&(v.flags|=2,c&&(v.id=c.uid,v.i=c))};const h=qj(e,t,s);return sd&&(u?u.push(h):l&&h()),h}function kK(e,t,r){const n=this.proxy,i=Br(e)?e.includes(".")?LB(n,e):()=>n[e]:e.bind(n,n);let a;St(t)?a=t:(a=t.handler,r=t);const o=Kd(this),s=nA(i,a.bind(n),r);return o(),s}function LB(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ra(t)}Modifiers`]||e[`${Ju(t)}Modifiers`];function NK(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||fr;let i=r;const a=t.startsWith("update:"),o=a&&OK(n,t.slice(7));o&&(o.trim&&(i=r.map(c=>Br(c)?c.trim():c)),o.number&&(i=r.map(Sy)));let s,l=n[s=uS(t)]||n[s=uS(ra(t))];!l&&a&&(l=n[s=uS(Ju(t))]),l&&no(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,no(u,e,6,i)}}function PB(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!St(e)){const l=u=>{const c=PB(u,t,!0);c&&(s=!0,sn(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(dr(e)&&n.set(e,null),null):(st(a)?a.forEach(l=>o[l]=null):sn(o,a),dr(e)&&n.set(e,o),o)}function X0(e,t){return!e||!F0(t)?!1:(t=t.slice(2).replace(/Once$/,""),nr(e,t[0].toLowerCase()+t.slice(1))||nr(e,Ju(t))||nr(e,t))}function gS(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:c,props:f,data:h,setupState:v,ctx:d,inheritAttrs:g}=e,m=Cy(e);let y,S;try{if(r.shapeFlag&4){const x=i||n,T=x;y=Ya(u.call(T,x,c,f,v,h,d)),S=s}else{const x=t;y=Ya(x.length>1?x(f,{attrs:s,slots:o,emit:l}):x(f,null)),S=t.props?s:FK(s)}}catch(x){kv.length=0,U0(x,e,1),y=ze(zu)}let w=y;if(S&&g!==!1){const x=Object.keys(S),{shapeFlag:T}=w;x.length&&T&7&&(a&&x.some(GT)&&(S=VK(S,a)),w=xf(w,S,!1,!0))}return r.dirs&&(w=xf(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&JT(w,r.transition),y=w,Cy(m),y}const FK=e=>{let t;for(const r in e)(r==="class"||r==="style"||F0(r))&&((t||(t={}))[r]=e[r]);return t},VK=(e,t)=>{const r={};for(const n in e)(!GT(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function BK(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?EP(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function GK(e,t){t&&t.pendingBranch?st(e)?t.effects.push(...e):t.effects.push(e):Jj(e)}const wt=Symbol.for("v-fgt"),jd=Symbol.for("v-txt"),zu=Symbol.for("v-cmt"),mS=Symbol.for("v-stc"),kv=[];let Ci=null;function he(e=!1){kv.push(Ci=e?null:[])}function $K(){kv.pop(),Ci=kv[kv.length-1]||null}let od=1;function kP(e,t=!1){od+=e,e<0&&Ci&&t&&(Ci.hasOnce=!0)}function EB(e){return e.dynamicChildren=od>0?Ci||of:null,$K(),od>0&&Ci&&Ci.push(e),e}function Te(e,t,r,n,i,a){return EB(se(e,t,r,n,i,a,!0))}function qt(e,t,r,n,i){return EB(ze(e,t,r,n,i,!0))}function My(e){return e?e.__v_isVNode===!0:!1}function Mh(e,t){return e.type===t.type&&e.key===t.key}const kB=({key:e})=>e??null,Nm=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Br(e)||sr(e)||St(e)?{i:ui,r:e,k:t,f:!!r}:e:null);function se(e,t=null,r=null,n=0,i=null,a=e===wt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&kB(t),ref:t&&Nm(t),scopeId:fB,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ui};return s?(iA(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Br(r)?8:16),od>0&&!o&&Ci&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Ci.push(l),l}const ze=HK;function HK(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===gB)&&(e=zu),My(e)){const s=xf(e,t,!0);return r&&iA(s,r),od>0&&!a&&Ci&&(s.shapeFlag&6?Ci[Ci.indexOf(e)]=s:Ci.push(s)),s.patchFlag=-2,s}if(eJ(e)&&(e=e.__vccOpts),t){t=WK(t);let{class:s,style:l}=t;s&&!Br(s)&&(t.class=Gt(s)),dr(l)&&(jT(l)&&!st(l)&&(l=sn({},l)),t.style=fu(l))}const o=Br(e)?1:RB(e)?128:tK(e)?64:dr(e)?4:St(e)?2:0;return se(e,t,r,n,i,o,a,!0)}function WK(e){return e?jT(e)||wB(e)?sn({},e):e:null}function xf(e,t,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?UK(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&kB(u),ref:t&&t.ref?r&&a?st(a)?a.concat(Nm(t)):[a,Nm(t)]:Nm(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==wt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xf(e.ssContent),ssFallback:e.ssFallback&&xf(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&JT(c,l.clone(c)),c}function Ir(e=" ",t=0){return ze(jd,null,e,t)}function jt(e="",t=!1){return t?(he(),qt(zu,null,e)):ze(zu,null,e)}function Ya(e){return e==null||typeof e=="boolean"?ze(zu):st(e)?ze(wt,null,e.slice()):My(e)?Ps(e):ze(jd,null,String(e))}function Ps(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xf(e)}function iA(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(st(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),iA(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!wB(t)?t._ctx=ui:i===3&&ui&&(ui.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else St(t)?(t={default:t,_ctx:ui},r=32):(t=String(t),n&64?(r=16,t=[Ir(t)]):r=8);e.children=t,e.shapeFlag|=r}function UK(...e){const t={};for(let r=0;rgn||ui;let Dy,_b;{const e=z0(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};Dy=t("__VUE_INSTANCE_SETTERS__",r=>gn=r),_b=t("__VUE_SSR_SETTERS__",r=>sd=r)}const Kd=e=>{const t=gn;return Dy(e),e.scope.on(),()=>{e.scope.off(),Dy(t)}},OP=()=>{gn&&gn.scope.off(),Dy(null)};function OB(e){return e.vnode.shapeFlag&4}let sd=!1;function qK(e,t=!1,r=!1){t&&_b(t);const{props:n,children:i}=e.vnode,a=OB(e);xK(e,n,a,t),AK(e,i,r);const o=a?jK(e,t):void 0;return t&&_b(!1),o}function jK(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,dK);const{setup:n}=r;if(n){cl();const i=e.setupContext=n.length>1?JK(e):null,a=Kd(e),o=Xd(n,e,0,[e.props,i]),s=kV(o);if(fl(),a(),(s||e.sp)&&!Rv(e)&&hB(e),s){if(o.then(OP,OP),t)return o.then(l=>{NP(e,l,t)}).catch(l=>{U0(l,e,0)});e.asyncDep=o}else NP(e,o,t)}else NB(e,t)}function NP(e,t,r){St(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:dr(t)&&(e.setupState=aB(t)),NB(e,r)}let FP;function NB(e,t,r){const n=e.type;if(!e.render){if(!t&&FP&&!n.render){const i=n.template||eA(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=sn(sn({isCustomElement:a,delimiters:s},o),l);n.render=FP(i,u)}}e.render=n.render||Qa}{const i=Kd(e);cl();try{pK(e)}finally{fl(),i()}}}const KK={get(e,t){return Mn(e,"get",""),e[t]}};function JK(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,KK),slots:e.slots,emit:e.emit,expose:t}}function Z0(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(aB(Vj(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ev)return Ev[r](e)},has(t,r){return r in t||r in Ev}})):e.proxy}function QK(e,t=!0){return St(e)?e.displayName||e.name:e.name||t&&e.__name}function eJ(e){return St(e)&&"__vccOpts"in e}const dt=(e,t)=>Xj(e,t,sd);function No(e,t,r){const n=arguments.length;return n===2?dr(t)&&!st(t)?My(t)?ze(e,null,[t]):ze(e,t):ze(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&My(r)&&(r=[r]),ze(e,t,r))}const tJ="3.5.13";/** +**/function Xd(e,t,r,n){try{return n?e(...n):e()}catch(i){U0(i,t,r)}}function no(e,t,r,n){if(St(e)){const i=Xd(e,t,r,n);return i&&kV(i)&&i.catch(a=>{U0(a,t,r)}),i}if(st(e)){const i=[];for(let a=0;a>>1,i=Hn[n],a=ad(i);a=ad(r)?Hn.push(e):Hn.splice(Kj(t),0,e),e.flags|=1,lB()}}function lB(){by||(by=sB.then(cB))}function Jj(e){st(e)?uf.push(...e):Ls&&e.id===-1?Ls.splice(Wc+1,0,e):e.flags&1||(uf.push(e),e.flags|=1),lB()}function TP(e,t,r=Ha+1){for(;rad(r)-ad(n));if(uf.length=0,Ls){Ls.push(...t);return}for(Ls=t,Wc=0;Wce.id==null?e.flags&2?-1:1/0:e.id;function cB(e){try{for(Ha=0;Ha{n._d&&kP(-1);const a=Cy(t);let o;try{o=e(...i)}finally{Cy(a),n._d&&kP(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function ci(e,t){if(ui===null)return e;const r=Z0(ui),n=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport;function JT(e,t){e.shapeFlag&6&&e.component?(e.transition=t,JT(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Jt(e,t){return St(e)?sn({name:e.name},t,{setup:e}):e}function hB(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ty(e,t,r,n,i=!1){if(st(e)){e.forEach((d,g)=>Ty(d,t&&(st(t)?t[g]:t),r,n,i));return}if(Rv(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ty(e,t,r,n.component.subTree);return}const a=n.shapeFlag&4?Z0(n.component):n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===fr?s.refs={}:s.refs,f=s.setupState,h=Zt(f),v=f===fr?()=>!1:d=>rr(h,d);if(u!=null&&u!==l&&(Br(u)?(c[u]=null,v(u)&&(f[u]=null)):sr(u)&&(u.value=null)),St(l))Xd(l,s,12,[o,c]);else{const d=Br(l),g=sr(l);if(d||g){const m=()=>{if(e.f){const y=d?v(l)?f[l]:c[l]:l.value;i?st(y)&&$T(y,a):st(y)?y.includes(a)||y.push(a):d?(c[l]=[a],v(l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,v(l)&&(f[l]=o)):g&&(l.value=o,e.k&&(c[e.k]=o))};o?(m.id=-1,xi(m,r)):m()}}}z0().requestIdleCallback;z0().cancelIdleCallback;const Rv=e=>!!e.type.__asyncLoader,vB=e=>e.type.__isKeepAlive;function rK(e,t){dB(e,"a",t)}function nK(e,t){dB(e,"da",t)}function dB(e,t,r=gn){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Y0(t,n,r),r){let i=r.parent;for(;i&&i.parent;)vB(i.parent.vnode)&&iK(n,t,r,i),i=i.parent}}function iK(e,t,r,n){const i=Y0(t,e,n,!0);QT(()=>{$T(n[t],i)},r)}function Y0(e,t,r=gn,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{cl();const s=Kd(r),l=no(t,r,e,o);return s(),fl(),l});return n?i.unshift(a):i.push(a),a}}const rs=e=>(t,r=gn)=>{(!sd||e==="sp")&&Y0(e,(...n)=>t(...n),r)},aK=rs("bm"),qd=rs("m"),oK=rs("bu"),sK=rs("u"),pB=rs("bum"),QT=rs("um"),lK=rs("sp"),uK=rs("rtg"),cK=rs("rtc");function fK(e,t=gn){Y0("ec",e,t)}const hK="components",gB=Symbol.for("v-ndc");function Bu(e){return Br(e)?vK(hK,e,!1)||e:e||gB}function vK(e,t,r=!0,n=!1){const i=ui||gn;if(i){const a=i.type;{const s=QK(a,!1);if(s&&(s===t||s===ra(t)||s===B0(ra(t))))return a}const o=AP(i[e]||a[e],t)||AP(i.appContext[e],t);return!o&&n?a:o}}function AP(e,t){return e&&(e[t]||e[ra(t)]||e[B0(ra(t))])}function wr(e,t,r,n){let i;const a=r,o=st(e);if(o||Br(e)){const s=o&&lf(e);let l=!1;s&&(l=!ea(e),e=$0(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(s,l,void 0,a));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;le?OB(e)?Z0(e):pb(e.parent):null,Ev=sn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>pb(e.parent),$root:e=>pb(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>eA(e),$forceUpdate:e=>e.f||(e.f=()=>{KT(e.update)}),$nextTick:e=>e.n||(e.n=Zd.bind(e.proxy)),$watch:e=>kK.bind(e)}),dS=(e,t)=>e!==fr&&!e.__isScriptSetup&&rr(e,t),dK={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(dS(n,t))return o[t]=1,n[t];if(i!==fr&&rr(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&rr(u,t))return o[t]=3,a[t];if(r!==fr&&rr(r,t))return o[t]=4,r[t];gb&&(o[t]=0)}}const c=Ev[t];let f,h;if(c)return t==="$attrs"&&Mn(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==fr&&rr(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,rr(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return dS(i,t)?(i[t]=r,!0):n!==fr&&rr(n,t)?(n[t]=r,!0):rr(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==fr&&rr(e,o)||dS(t,o)||(s=a[0])&&rr(s,o)||rr(n,o)||rr(Ev,o)||rr(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:rr(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function MP(e){return st(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let gb=!0;function pK(e){const t=eA(e),r=e.proxy,n=e.ctx;gb=!1,t.beforeCreate&&DP(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:v,updated:d,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:S,destroyed:w,unmounted:x,render:T,renderTracked:b,renderTriggered:A,errorCaptured:M,serverPrefetch:D,expose:L,inheritAttrs:P,components:E,directives:F,filters:O}=t;if(u&&gK(u,n,null),o)for(const Y in o){const G=o[Y];St(G)&&(n[Y]=G.bind(r))}if(i){const Y=i.call(r,r);dr(Y)&&(e.data=Wf(Y))}if(gb=!0,a)for(const Y in a){const G=a[Y],Z=St(G)?G.bind(r,r):St(G.get)?G.get.bind(r,r):Ja,J=!St(G)&&St(G.set)?G.set.bind(r):Ja,re=dt({get:Z,set:J});Object.defineProperty(n,Y,{enumerable:!0,configurable:!0,get:()=>re.value,set:pe=>re.value=pe})}if(s)for(const Y in s)mB(s[Y],n,r,Y);if(l){const Y=St(l)?l.call(r):l;Reflect.ownKeys(Y).forEach(G=>{Om(G,Y[G])})}c&&DP(c,e,"c");function V(Y,G){st(G)?G.forEach(Z=>Y(Z.bind(r))):G&&Y(G.bind(r))}if(V(aK,f),V(qd,h),V(oK,v),V(sK,d),V(rK,g),V(nK,m),V(fK,M),V(cK,b),V(uK,A),V(pB,S),V(QT,x),V(lK,D),st(L))if(L.length){const Y=e.exposed||(e.exposed={});L.forEach(G=>{Object.defineProperty(Y,G,{get:()=>r[G],set:Z=>r[G]=Z})})}else e.exposed||(e.exposed={});T&&e.render===Ja&&(e.render=T),P!=null&&(e.inheritAttrs=P),E&&(e.components=E),F&&(e.directives=F),D&&hB(e)}function gK(e,t,r=Ja){st(e)&&(e=mb(e));for(const n in e){const i=e[n];let a;dr(i)?"default"in i?a=Sa(i.from||n,i.default,!0):a=Sa(i.from||n):a=Sa(i),sr(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function DP(e,t,r){no(st(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function mB(e,t,r,n){let i=n.includes(".")?LB(r,n):()=>r[n];if(Br(e)){const a=t[e];St(a)&&hr(i,a)}else if(St(e))hr(i,e.bind(r));else if(dr(e))if(st(e))e.forEach(a=>mB(a,t,r,n));else{const a=St(e.handler)?e.handler.bind(r):t[e.handler];St(a)&&hr(i,a,e)}}function eA(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>Ay(l,u,o,!0)),Ay(l,t,o)),dr(t)&&a.set(t,l),l}function Ay(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&Ay(e,a,r,!0),i&&i.forEach(o=>Ay(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=mK[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const mK={data:IP,props:LP,emits:LP,methods:uv,computed:uv,beforeCreate:Nn,created:Nn,beforeMount:Nn,mounted:Nn,beforeUpdate:Nn,updated:Nn,beforeDestroy:Nn,beforeUnmount:Nn,destroyed:Nn,unmounted:Nn,activated:Nn,deactivated:Nn,errorCaptured:Nn,serverPrefetch:Nn,components:uv,directives:uv,watch:_K,provide:IP,inject:yK};function IP(e,t){return t?e?function(){return sn(St(e)?e.call(this,this):e,St(t)?t.call(this,this):t)}:t:e}function yK(e,t){return uv(mb(e),mb(t))}function mb(e){if(st(e)){const t={};for(let r=0;r1)return r&&St(t)?t.call(n&&n.proxy):t}}const _B={},SB=()=>Object.create(_B),wB=e=>Object.getPrototypeOf(e)===_B;function xK(e,t,r,n=!1){const i={},a=SB();e.propsDefaults=Object.create(null),xB(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:nB(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function bK(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Zt(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[h,v]=bB(f,t,!0);sn(o,h),v&&s.push(...v)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return dr(e)&&n.set(e,of),of;if(st(a))for(let c=0;ce[0]==="_"||e==="$stable",tA=e=>st(e)?e.map(Ua):[Ua(e)],TK=(e,t,r)=>{if(t._n)return t;const n=Qj((...i)=>tA(t(...i)),r);return n._c=!1,n},TB=(e,t,r)=>{const n=e._ctx;for(const i in e){if(CB(i))continue;const a=e[i];if(St(a))t[i]=TK(i,a,n);else if(a!=null){const o=tA(a);t[i]=()=>o}}},AB=(e,t)=>{const r=tA(t);e.slots.default=()=>r},MB=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},AK=(e,t,r)=>{const n=e.slots=SB();if(e.vnode.shapeFlag&32){const i=t._;i?(MB(n,t,r),r&&FV(n,"_",i,!0)):TB(t,n)}else t&&AB(e,t)},MK=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=fr;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:MB(i,t,r):(a=!t.$stable,TB(t,i)),o=t}else t&&(AB(e,t),o={default:1});if(a)for(const s in i)!CB(s)&&o[s]==null&&delete i[s]},xi=GK;function DK(e){return IK(e)}function IK(e,t){const r=z0();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:v=Ja,insertStaticContent:d}=e,g=(H,W,te,_e=null,fe=null,$=null,U=void 0,Q=null,ae=!!W.dynamicChildren)=>{if(H===W)return;H&&!Mh(H,W)&&(_e=ie(H),pe(H,fe,$,!0),H=null),W.patchFlag===-2&&(ae=!1,W.dynamicChildren=null);const{type:xe,ref:Pe,shapeFlag:K}=W;switch(xe){case jd:m(H,W,te,_e);break;case zu:y(H,W,te,_e);break;case mS:H==null&&S(W,te,_e,U);break;case wt:E(H,W,te,_e,fe,$,U,Q,ae);break;default:K&1?T(H,W,te,_e,fe,$,U,Q,ae):K&6?F(H,W,te,_e,fe,$,U,Q,ae):(K&64||K&128)&&xe.process(H,W,te,_e,fe,$,U,Q,ae,me)}Pe!=null&&fe&&Ty(Pe,H&&H.ref,$,W||H,!W)},m=(H,W,te,_e)=>{if(H==null)n(W.el=s(W.children),te,_e);else{const fe=W.el=H.el;W.children!==H.children&&u(fe,W.children)}},y=(H,W,te,_e)=>{H==null?n(W.el=l(W.children||""),te,_e):W.el=H.el},S=(H,W,te,_e)=>{[H.el,H.anchor]=d(H.children,W,te,_e,H.el,H.anchor)},w=({el:H,anchor:W},te,_e)=>{let fe;for(;H&&H!==W;)fe=h(H),n(H,te,_e),H=fe;n(W,te,_e)},x=({el:H,anchor:W})=>{let te;for(;H&&H!==W;)te=h(H),i(H),H=te;i(W)},T=(H,W,te,_e,fe,$,U,Q,ae)=>{W.type==="svg"?U="svg":W.type==="math"&&(U="mathml"),H==null?b(W,te,_e,fe,$,U,Q,ae):D(H,W,fe,$,U,Q,ae)},b=(H,W,te,_e,fe,$,U,Q)=>{let ae,xe;const{props:Pe,shapeFlag:K,transition:ue,dirs:Ve}=H;if(ae=H.el=o(H.type,$,Pe&&Pe.is,Pe),K&8?c(ae,H.children):K&16&&M(H.children,ae,null,_e,fe,pS(H,$),U,Q),Ve&&Al(H,null,_e,"created"),A(ae,H,H.scopeId,U,_e),Pe){for(const At in Pe)At!=="value"&&!Iv(At)&&a(ae,At,null,Pe[At],$,_e);"value"in Pe&&a(ae,"value",null,Pe.value,$),(xe=Pe.onVnodeBeforeMount)&&Ea(xe,_e,H)}Ve&&Al(H,null,_e,"beforeMount");const je=LK(fe,ue);je&&ue.beforeEnter(ae),n(ae,W,te),((xe=Pe&&Pe.onVnodeMounted)||je||Ve)&&xi(()=>{xe&&Ea(xe,_e,H),je&&ue.enter(ae),Ve&&Al(H,null,_e,"mounted")},fe)},A=(H,W,te,_e,fe)=>{if(te&&v(H,te),_e)for(let $=0;$<_e.length;$++)v(H,_e[$]);if(fe){let $=fe.subTree;if(W===$||RB($.type)&&($.ssContent===W||$.ssFallback===W)){const U=fe.vnode;A(H,U,U.scopeId,U.slotScopeIds,fe.parent)}}},M=(H,W,te,_e,fe,$,U,Q,ae=0)=>{for(let xe=ae;xe{const Q=W.el=H.el;let{patchFlag:ae,dynamicChildren:xe,dirs:Pe}=W;ae|=H.patchFlag&16;const K=H.props||fr,ue=W.props||fr;let Ve;if(te&&Ml(te,!1),(Ve=ue.onVnodeBeforeUpdate)&&Ea(Ve,te,W,H),Pe&&Al(W,H,te,"beforeUpdate"),te&&Ml(te,!0),(K.innerHTML&&ue.innerHTML==null||K.textContent&&ue.textContent==null)&&c(Q,""),xe?L(H.dynamicChildren,xe,Q,te,_e,pS(W,fe),$):U||G(H,W,Q,null,te,_e,pS(W,fe),$,!1),ae>0){if(ae&16)P(Q,K,ue,te,fe);else if(ae&2&&K.class!==ue.class&&a(Q,"class",null,ue.class,fe),ae&4&&a(Q,"style",K.style,ue.style,fe),ae&8){const je=W.dynamicProps;for(let At=0;At{Ve&&Ea(Ve,te,W,H),Pe&&Al(W,H,te,"updated")},_e)},L=(H,W,te,_e,fe,$,U)=>{for(let Q=0;Q{if(W!==te){if(W!==fr)for(const $ in W)!Iv($)&&!($ in te)&&a(H,$,W[$],null,fe,_e);for(const $ in te){if(Iv($))continue;const U=te[$],Q=W[$];U!==Q&&$!=="value"&&a(H,$,Q,U,fe,_e)}"value"in te&&a(H,"value",W.value,te.value,fe)}},E=(H,W,te,_e,fe,$,U,Q,ae)=>{const xe=W.el=H?H.el:s(""),Pe=W.anchor=H?H.anchor:s("");let{patchFlag:K,dynamicChildren:ue,slotScopeIds:Ve}=W;Ve&&(Q=Q?Q.concat(Ve):Ve),H==null?(n(xe,te,_e),n(Pe,te,_e),M(W.children||[],te,Pe,fe,$,U,Q,ae)):K>0&&K&64&&ue&&H.dynamicChildren?(L(H.dynamicChildren,ue,te,fe,$,U,Q),(W.key!=null||fe&&W===fe.subTree)&&DB(H,W,!0)):G(H,W,te,Pe,fe,$,U,Q,ae)},F=(H,W,te,_e,fe,$,U,Q,ae)=>{W.slotScopeIds=Q,H==null?W.shapeFlag&512?fe.ctx.activate(W,te,_e,U,ae):O(W,te,_e,fe,$,U,ae):N(H,W,ae)},O=(H,W,te,_e,fe,$,U)=>{const Q=H.component=ZK(H,_e,fe);if(vB(H)&&(Q.ctx.renderer=me),qK(Q,!1,U),Q.asyncDep){if(fe&&fe.registerDep(Q,V,U),!H.el){const ae=Q.subTree=ze(zu);y(null,ae,W,te)}}else V(Q,H,W,te,fe,$,U)},N=(H,W,te)=>{const _e=W.component=H.component;if(BK(H,W,te))if(_e.asyncDep&&!_e.asyncResolved){Y(_e,W,te);return}else _e.next=W,_e.update();else W.el=H.el,_e.vnode=W},V=(H,W,te,_e,fe,$,U)=>{const Q=()=>{if(H.isMounted){let{next:K,bu:ue,u:Ve,parent:je,vnode:At}=H;{const un=IB(H);if(un){K&&(K.el=At.el,Y(H,K,U)),un.asyncDep.then(()=>{H.isUnmounted||Q()});return}}let Ot=K,xr;Ml(H,!1),K?(K.el=At.el,Y(H,K,U)):K=At,ue&&km(ue),(xr=K.props&&K.props.onVnodeBeforeUpdate)&&Ea(xr,je,K,At),Ml(H,!0);const Mr=gS(H),Sn=H.subTree;H.subTree=Mr,g(Sn,Mr,f(Sn.el),ie(Sn),H,fe,$),K.el=Mr.el,Ot===null&&zK(H,Mr.el),Ve&&xi(Ve,fe),(xr=K.props&&K.props.onVnodeUpdated)&&xi(()=>Ea(xr,je,K,At),fe)}else{let K;const{el:ue,props:Ve}=W,{bm:je,m:At,parent:Ot,root:xr,type:Mr}=H,Sn=Rv(W);if(Ml(H,!1),je&&km(je),!Sn&&(K=Ve&&Ve.onVnodeBeforeMount)&&Ea(K,Ot,W),Ml(H,!0),ue&&Re){const un=()=>{H.subTree=gS(H),Re(ue,H.subTree,H,fe,null)};Sn&&Mr.__asyncHydrate?Mr.__asyncHydrate(ue,H,un):un()}else{xr.ce&&xr.ce._injectChildStyle(Mr);const un=H.subTree=gS(H);g(null,un,te,_e,H,fe,$),W.el=un.el}if(At&&xi(At,fe),!Sn&&(K=Ve&&Ve.onVnodeMounted)){const un=W;xi(()=>Ea(K,Ot,un),fe)}(W.shapeFlag&256||Ot&&Rv(Ot.vnode)&&Ot.vnode.shapeFlag&256)&&H.a&&xi(H.a,fe),H.isMounted=!0,W=te=_e=null}};H.scope.on();const ae=H.effect=new HV(Q);H.scope.off();const xe=H.update=ae.run.bind(ae),Pe=H.job=ae.runIfDirty.bind(ae);Pe.i=H,Pe.id=H.uid,ae.scheduler=()=>KT(Pe),Ml(H,!0),xe()},Y=(H,W,te)=>{W.component=H;const _e=H.vnode.props;H.vnode=W,H.next=null,bK(H,W.props,_e,te),MK(H,W.children,te),cl(),TP(H),fl()},G=(H,W,te,_e,fe,$,U,Q,ae=!1)=>{const xe=H&&H.children,Pe=H?H.shapeFlag:0,K=W.children,{patchFlag:ue,shapeFlag:Ve}=W;if(ue>0){if(ue&128){J(xe,K,te,_e,fe,$,U,Q,ae);return}else if(ue&256){Z(xe,K,te,_e,fe,$,U,Q,ae);return}}Ve&8?(Pe&16&&Ge(xe,fe,$),K!==xe&&c(te,K)):Pe&16?Ve&16?J(xe,K,te,_e,fe,$,U,Q,ae):Ge(xe,fe,$,!0):(Pe&8&&c(te,""),Ve&16&&M(K,te,_e,fe,$,U,Q,ae))},Z=(H,W,te,_e,fe,$,U,Q,ae)=>{H=H||of,W=W||of;const xe=H.length,Pe=W.length,K=Math.min(xe,Pe);let ue;for(ue=0;uePe?Ge(H,fe,$,!0,!1,K):M(W,te,_e,fe,$,U,Q,ae,K)},J=(H,W,te,_e,fe,$,U,Q,ae)=>{let xe=0;const Pe=W.length;let K=H.length-1,ue=Pe-1;for(;xe<=K&&xe<=ue;){const Ve=H[xe],je=W[xe]=ae?Ps(W[xe]):Ua(W[xe]);if(Mh(Ve,je))g(Ve,je,te,null,fe,$,U,Q,ae);else break;xe++}for(;xe<=K&&xe<=ue;){const Ve=H[K],je=W[ue]=ae?Ps(W[ue]):Ua(W[ue]);if(Mh(Ve,je))g(Ve,je,te,null,fe,$,U,Q,ae);else break;K--,ue--}if(xe>K){if(xe<=ue){const Ve=ue+1,je=Veue)for(;xe<=K;)pe(H[xe],fe,$,!0),xe++;else{const Ve=xe,je=xe,At=new Map;for(xe=je;xe<=ue;xe++){const cn=W[xe]=ae?Ps(W[xe]):Ua(W[xe]);cn.key!=null&&At.set(cn.key,xe)}let Ot,xr=0;const Mr=ue-je+1;let Sn=!1,un=0;const ho=new Array(Mr);for(xe=0;xe=Mr){pe(cn,fe,$,!0);continue}let Jn;if(cn.key!=null)Jn=At.get(cn.key);else for(Ot=je;Ot<=ue;Ot++)if(ho[Ot-je]===0&&Mh(cn,W[Ot])){Jn=Ot;break}Jn===void 0?pe(cn,fe,$,!0):(ho[Jn-je]=xe+1,Jn>=un?un=Jn:Sn=!0,g(cn,W[Jn],te,null,fe,$,U,Q,ae),xr++)}const sc=Sn?PK(ho):of;for(Ot=sc.length-1,xe=Mr-1;xe>=0;xe--){const cn=je+xe,Jn=W[cn],bp=cn+1{const{el:$,type:U,transition:Q,children:ae,shapeFlag:xe}=H;if(xe&6){re(H.component.subTree,W,te,_e);return}if(xe&128){H.suspense.move(W,te,_e);return}if(xe&64){U.move(H,W,te,me);return}if(U===wt){n($,W,te);for(let K=0;KQ.enter($),fe);else{const{leave:K,delayLeave:ue,afterLeave:Ve}=Q,je=()=>n($,W,te),At=()=>{K($,()=>{je(),Ve&&Ve()})};ue?ue($,je,At):At()}else n($,W,te)},pe=(H,W,te,_e=!1,fe=!1)=>{const{type:$,props:U,ref:Q,children:ae,dynamicChildren:xe,shapeFlag:Pe,patchFlag:K,dirs:ue,cacheIndex:Ve}=H;if(K===-2&&(fe=!1),Q!=null&&Ty(Q,null,te,H,!0),Ve!=null&&(W.renderCache[Ve]=void 0),Pe&256){W.ctx.deactivate(H);return}const je=Pe&1&&ue,At=!Rv(H);let Ot;if(At&&(Ot=U&&U.onVnodeBeforeUnmount)&&Ea(Ot,W,H),Pe&6)Fe(H.component,te,_e);else{if(Pe&128){H.suspense.unmount(te,_e);return}je&&Al(H,null,W,"beforeUnmount"),Pe&64?H.type.remove(H,W,te,me,_e):xe&&!xe.hasOnce&&($!==wt||K>0&&K&64)?Ge(xe,W,te,!1,!0):($===wt&&K&384||!fe&&Pe&16)&&Ge(ae,W,te),_e&&Me(H)}(At&&(Ot=U&&U.onVnodeUnmounted)||je)&&xi(()=>{Ot&&Ea(Ot,W,H),je&&Al(H,null,W,"unmounted")},te)},Me=H=>{const{type:W,el:te,anchor:_e,transition:fe}=H;if(W===wt){Le(te,_e);return}if(W===mS){x(H);return}const $=()=>{i(te),fe&&!fe.persisted&&fe.afterLeave&&fe.afterLeave()};if(H.shapeFlag&1&&fe&&!fe.persisted){const{leave:U,delayLeave:Q}=fe,ae=()=>U(te,$);Q?Q(H.el,$,ae):ae()}else $()},Le=(H,W)=>{let te;for(;H!==W;)te=h(H),i(H),H=te;i(W)},Fe=(H,W,te)=>{const{bum:_e,scope:fe,job:$,subTree:U,um:Q,m:ae,a:xe}=H;RP(ae),RP(xe),_e&&km(_e),fe.stop(),$&&($.flags|=8,pe(U,H,W,te)),Q&&xi(Q,W),xi(()=>{H.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},Ge=(H,W,te,_e=!1,fe=!1,$=0)=>{for(let U=$;U{if(H.shapeFlag&6)return ie(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const W=h(H.anchor||H.el),te=W&&W[eK];return te?h(te):W};let le=!1;const de=(H,W,te)=>{H==null?W._vnode&&pe(W._vnode,null,null,!0):g(W._vnode||null,H,W,null,null,null,te),W._vnode=H,le||(le=!0,TP(),uB(),le=!1)},me={p:g,um:pe,m:re,r:Me,mt:O,mc:M,pc:G,pbc:L,n:ie,o:e};let be,Re;return{render:de,hydrate:be,createApp:wK(de,be)}}function pS({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Ml({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function LK(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function DB(e,t,r=!1){const n=e.children,i=t.children;if(st(n)&&st(i))for(let a=0;a>1,e[r[s]]0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}function IB(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:IB(t)}function RP(e){if(e)for(let t=0;tSa(RK);function rA(e,t){return nA(e,null,t)}function hr(e,t,r){return nA(e,t,r)}function nA(e,t,r=fr){const{immediate:n,deep:i,flush:a,once:o}=r,s=sn({},r),l=t&&n||!t&&a!=="post";let u;if(sd){if(a==="sync"){const v=EK();u=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=Ja,v.resume=Ja,v.pause=Ja,v}}const c=gn;s.call=(v,d,g)=>no(v,c,d,g);let f=!1;a==="post"?s.scheduler=v=>{xi(v,c&&c.suspense)}:a!=="sync"&&(f=!0,s.scheduler=(v,d)=>{d?v():KT(v)}),s.augmentJob=v=>{t&&(v.flags|=4),f&&(v.flags|=2,c&&(v.id=c.uid,v.i=c))};const h=qj(e,t,s);return sd&&(u?u.push(h):l&&h()),h}function kK(e,t,r){const n=this.proxy,i=Br(e)?e.includes(".")?LB(n,e):()=>n[e]:e.bind(n,n);let a;St(t)?a=t:(a=t.handler,r=t);const o=Kd(this),s=nA(i,a.bind(n),r);return o(),s}function LB(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ra(t)}Modifiers`]||e[`${Ju(t)}Modifiers`];function NK(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||fr;let i=r;const a=t.startsWith("update:"),o=a&&OK(n,t.slice(7));o&&(o.trim&&(i=r.map(c=>Br(c)?c.trim():c)),o.number&&(i=r.map(Sy)));let s,l=n[s=uS(t)]||n[s=uS(ra(t))];!l&&a&&(l=n[s=uS(Ju(t))]),l&&no(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,no(u,e,6,i)}}function PB(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!St(e)){const l=u=>{const c=PB(u,t,!0);c&&(s=!0,sn(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(dr(e)&&n.set(e,null),null):(st(a)?a.forEach(l=>o[l]=null):sn(o,a),dr(e)&&n.set(e,o),o)}function X0(e,t){return!e||!F0(t)?!1:(t=t.slice(2).replace(/Once$/,""),rr(e,t[0].toLowerCase()+t.slice(1))||rr(e,Ju(t))||rr(e,t))}function gS(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:c,props:f,data:h,setupState:v,ctx:d,inheritAttrs:g}=e,m=Cy(e);let y,S;try{if(r.shapeFlag&4){const x=i||n,T=x;y=Ua(u.call(T,x,c,f,v,h,d)),S=s}else{const x=t;y=Ua(x.length>1?x(f,{attrs:s,slots:o,emit:l}):x(f,null)),S=t.props?s:FK(s)}}catch(x){kv.length=0,U0(x,e,1),y=ze(zu)}let w=y;if(S&&g!==!1){const x=Object.keys(S),{shapeFlag:T}=w;x.length&&T&7&&(a&&x.some(GT)&&(S=VK(S,a)),w=xf(w,S,!1,!0))}return r.dirs&&(w=xf(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&JT(w,r.transition),y=w,Cy(m),y}const FK=e=>{let t;for(const r in e)(r==="class"||r==="style"||F0(r))&&((t||(t={}))[r]=e[r]);return t},VK=(e,t)=>{const r={};for(const n in e)(!GT(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function BK(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?EP(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function GK(e,t){t&&t.pendingBranch?st(e)?t.effects.push(...e):t.effects.push(e):Jj(e)}const wt=Symbol.for("v-fgt"),jd=Symbol.for("v-txt"),zu=Symbol.for("v-cmt"),mS=Symbol.for("v-stc"),kv=[];let Ci=null;function he(e=!1){kv.push(Ci=e?null:[])}function $K(){kv.pop(),Ci=kv[kv.length-1]||null}let od=1;function kP(e,t=!1){od+=e,e<0&&Ci&&t&&(Ci.hasOnce=!0)}function EB(e){return e.dynamicChildren=od>0?Ci||of:null,$K(),od>0&&Ci&&Ci.push(e),e}function Ae(e,t,r,n,i,a){return EB(oe(e,t,r,n,i,a,!0))}function qt(e,t,r,n,i){return EB(ze(e,t,r,n,i,!0))}function My(e){return e?e.__v_isVNode===!0:!1}function Mh(e,t){return e.type===t.type&&e.key===t.key}const kB=({key:e})=>e??null,Nm=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Br(e)||sr(e)||St(e)?{i:ui,r:e,k:t,f:!!r}:e:null);function oe(e,t=null,r=null,n=0,i=null,a=e===wt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&kB(t),ref:t&&Nm(t),scopeId:fB,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ui};return s?(iA(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Br(r)?8:16),od>0&&!o&&Ci&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Ci.push(l),l}const ze=HK;function HK(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===gB)&&(e=zu),My(e)){const s=xf(e,t,!0);return r&&iA(s,r),od>0&&!a&&Ci&&(s.shapeFlag&6?Ci[Ci.indexOf(e)]=s:Ci.push(s)),s.patchFlag=-2,s}if(eJ(e)&&(e=e.__vccOpts),t){t=WK(t);let{class:s,style:l}=t;s&&!Br(s)&&(t.class=Gt(s)),dr(l)&&(jT(l)&&!st(l)&&(l=sn({},l)),t.style=fu(l))}const o=Br(e)?1:RB(e)?128:tK(e)?64:dr(e)?4:St(e)?2:0;return oe(e,t,r,n,i,o,a,!0)}function WK(e){return e?jT(e)||wB(e)?sn({},e):e:null}function xf(e,t,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?UK(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&kB(u),ref:t&&t.ref?r&&a?st(a)?a.concat(Nm(t)):[a,Nm(t)]:Nm(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==wt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xf(e.ssContent),ssFallback:e.ssFallback&&xf(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&JT(c,l.clone(c)),c}function Ir(e=" ",t=0){return ze(jd,null,e,t)}function nr(e="",t=!1){return t?(he(),qt(zu,null,e)):ze(zu,null,e)}function Ua(e){return e==null||typeof e=="boolean"?ze(zu):st(e)?ze(wt,null,e.slice()):My(e)?Ps(e):ze(jd,null,String(e))}function Ps(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xf(e)}function iA(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(st(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),iA(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!wB(t)?t._ctx=ui:i===3&&ui&&(ui.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else St(t)?(t={default:t,_ctx:ui},r=32):(t=String(t),n&64?(r=16,t=[Ir(t)]):r=8);e.children=t,e.shapeFlag|=r}function UK(...e){const t={};for(let r=0;rgn||ui;let Dy,_b;{const e=z0(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};Dy=t("__VUE_INSTANCE_SETTERS__",r=>gn=r),_b=t("__VUE_SSR_SETTERS__",r=>sd=r)}const Kd=e=>{const t=gn;return Dy(e),e.scope.on(),()=>{e.scope.off(),Dy(t)}},OP=()=>{gn&&gn.scope.off(),Dy(null)};function OB(e){return e.vnode.shapeFlag&4}let sd=!1;function qK(e,t=!1,r=!1){t&&_b(t);const{props:n,children:i}=e.vnode,a=OB(e);xK(e,n,a,t),AK(e,i,r);const o=a?jK(e,t):void 0;return t&&_b(!1),o}function jK(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,dK);const{setup:n}=r;if(n){cl();const i=e.setupContext=n.length>1?JK(e):null,a=Kd(e),o=Xd(n,e,0,[e.props,i]),s=kV(o);if(fl(),a(),(s||e.sp)&&!Rv(e)&&hB(e),s){if(o.then(OP,OP),t)return o.then(l=>{NP(e,l,t)}).catch(l=>{U0(l,e,0)});e.asyncDep=o}else NP(e,o,t)}else NB(e,t)}function NP(e,t,r){St(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:dr(t)&&(e.setupState=aB(t)),NB(e,r)}let FP;function NB(e,t,r){const n=e.type;if(!e.render){if(!t&&FP&&!n.render){const i=n.template||eA(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=sn(sn({isCustomElement:a,delimiters:s},o),l);n.render=FP(i,u)}}e.render=n.render||Ja}{const i=Kd(e);cl();try{pK(e)}finally{fl(),i()}}}const KK={get(e,t){return Mn(e,"get",""),e[t]}};function JK(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,KK),slots:e.slots,emit:e.emit,expose:t}}function Z0(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(aB(Vj(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ev)return Ev[r](e)},has(t,r){return r in t||r in Ev}})):e.proxy}function QK(e,t=!0){return St(e)?e.displayName||e.name:e.name||t&&e.__name}function eJ(e){return St(e)&&"__vccOpts"in e}const dt=(e,t)=>Xj(e,t,sd);function No(e,t,r){const n=arguments.length;return n===2?dr(t)&&!st(t)?My(t)?ze(e,null,[t]):ze(e,t):ze(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&My(r)&&(r=[r]),ze(e,t,r))}const tJ="3.5.13";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Sb;const VP=typeof window<"u"&&window.trustedTypes;if(VP)try{Sb=VP.createPolicy("vue",{createHTML:e=>e})}catch{}const FB=Sb?e=>Sb.createHTML(e):e=>e,rJ="http://www.w3.org/2000/svg",nJ="http://www.w3.org/1998/Math/MathML",Lo=typeof document<"u"?document:null,BP=Lo&&Lo.createElement("template"),iJ={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?Lo.createElementNS(rJ,e):t==="mathml"?Lo.createElementNS(nJ,e):r?Lo.createElement(e,{is:r}):Lo.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Lo.createTextNode(e),createComment:e=>Lo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Lo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,a){const o=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{BP.innerHTML=FB(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const s=BP.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},aJ=Symbol("_vtc");function oJ(e,t,r){const n=e[aJ];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const zP=Symbol("_vod"),sJ=Symbol("_vsh"),lJ=Symbol(""),uJ=/(^|;)\s*display\s*:/;function cJ(e,t,r){const n=e.style,i=Br(r);let a=!1;if(r&&!i){if(t)if(Br(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&Fm(n,s,"")}else for(const o in t)r[o]==null&&Fm(n,o,"");for(const o in r)o==="display"&&(a=!0),Fm(n,o,r[o])}else if(i){if(t!==r){const o=n[lJ];o&&(r+=";"+o),n.cssText=r,a=uJ.test(r)}}else t&&e.removeAttribute("style");zP in e&&(e[zP]=a?n.display:"",e[sJ]&&(n.display="none"))}const GP=/\s*!important$/;function Fm(e,t,r){if(st(r))r.forEach(n=>Fm(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=fJ(e,t);GP.test(r)?e.setProperty(Ju(n),r.replace(GP,""),"important"):e[n]=r}}const $P=["Webkit","Moz","ms"],yS={};function fJ(e,t){const r=yS[t];if(r)return r;let n=ra(t);if(n!=="filter"&&n in e)return yS[t]=n;n=B0(n);for(let i=0;i<$P.length;i++){const a=$P[i]+n;if(a in e)return yS[t]=a}return t}const HP="http://www.w3.org/1999/xlink";function WP(e,t,r,n,i,a=pj(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(HP,t.slice(6,t.length)):e.setAttributeNS(HP,t,r):r==null||a&&!VV(r)?e.removeAttribute(t):e.setAttribute(t,a?"":ro(r)?String(r):r)}function UP(e,t,r,n,i){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?FB(r):r);return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const s=a==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(s!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let o=!1;if(r===""||r==null){const s=typeof e[t];s==="boolean"?r=VV(r):r==null&&s==="string"?(r="",o=!0):s==="number"&&(r=0,o=!0)}try{e[t]=r}catch{}o&&e.removeAttribute(i||t)}function Os(e,t,r,n){e.addEventListener(t,r,n)}function hJ(e,t,r,n){e.removeEventListener(t,r,n)}const YP=Symbol("_vei");function vJ(e,t,r,n,i=null){const a=e[YP]||(e[YP]={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=dJ(t);if(n){const u=a[t]=mJ(n,i);Os(e,s,u,l)}else o&&(hJ(e,s,o,l),a[t]=void 0)}}const XP=/(?:Once|Passive|Capture)$/;function dJ(e){let t;if(XP.test(e)){t={};let n;for(;n=e.match(XP);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ju(e.slice(2)),t]}let _S=0;const pJ=Promise.resolve(),gJ=()=>_S||(pJ.then(()=>_S=0),_S=Date.now());function mJ(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;no(yJ(n,r.value),t,5,[n])};return r.value=e,r.attached=gJ(),r}function yJ(e,t){if(st(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const ZP=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_J=(e,t,r,n,i,a)=>{const o=i==="svg";t==="class"?oJ(e,n,o):t==="style"?cJ(e,r,n):F0(t)?GT(t)||vJ(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):SJ(e,t,n,o))?(UP(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&WP(e,t,n,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Br(n))?UP(e,ra(t),n,a,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),WP(e,t,n,o))};function SJ(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ZP(t)&&St(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ZP(t)&&Br(r)?!1:t in e}const bf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return st(t)?r=>km(t,r):t};function wJ(e){e.target.composing=!0}function qP(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $o=Symbol("_assign"),ff={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[$o]=bf(i);const a=n||i.props&&i.props.type==="number";Os(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r&&(s=s.trim()),a&&(s=Sy(s)),e[$o](s)}),r&&Os(e,"change",()=>{e.value=e.value.trim()}),t||(Os(e,"compositionstart",wJ),Os(e,"compositionend",qP),Os(e,"change",qP))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:a}},o){if(e[$o]=bf(o),e.composing)return;const s=(a||e.type==="number")&&!/^0\d/.test(e.value)?Sy(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===l)||(e.value=l))}},aA={deep:!0,created(e,t,r){e[$o]=bf(r),Os(e,"change",()=>{const n=e._modelValue,i=ld(e),a=e.checked,o=e[$o];if(st(n)){const s=WT(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(Hf(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(VB(e,a))})},mounted:jP,beforeUpdate(e,t,r){e[$o]=bf(r),jP(e,t,r)}};function jP(e,{value:t,oldValue:r},n){e._modelValue=t;let i;if(st(t))i=WT(t,n.props.value)>-1;else if(Hf(t))i=t.has(n.props.value);else{if(t===r)return;i=Yd(t,VB(e,!0))}e.checked!==i&&(e.checked=i)}const Jd={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=Hf(t);Os(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?Sy(ld(o)):ld(o));e[$o](e.multiple?i?new Set(a):a:a[0]),e._assigning=!0,Zd(()=>{e._assigning=!1})}),e[$o]=bf(n)},mounted(e,{value:t}){KP(e,t)},beforeUpdate(e,t,r){e[$o]=bf(r)},updated(e,{value:t}){e._assigning||KP(e,t)}};function KP(e,t){const r=e.multiple,n=st(t);if(!(r&&!n&&!Hf(t))){for(let i=0,a=e.options.length;iString(u)===String(s)):o.selected=WT(t,s)>-1}else o.selected=t.has(s);else if(Yd(ld(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ld(e){return"_value"in e?e._value:e.value}function VB(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const xJ=["ctrl","shift","alt","meta"],bJ={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>xJ.some(r=>e[`${r}Key`]&&!t.includes(r))},oA=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...a)=>{for(let o=0;o{const t=TJ().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=DJ(n);if(!i)return;const a=t._component;!St(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,MJ(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function MJ(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function DJ(e){return Br(e)?document.querySelector(e):e}function $u(e){return $V()?(yj(e),!0):!1}function hl(e){return typeof e=="function"?e():oe(e)}const bu=typeof window<"u"&&typeof document<"u",IJ=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,LJ=e=>e!=null,PJ=Object.prototype.toString,RJ=e=>PJ.call(e)==="[object Object]",BB=()=>{};function EJ(e,t){function r(...n){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(a)})}return r}const zB=e=>e();function kJ(e=zB){const t=Je(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:H0(t),pause:r,resume:n,eventFilter:i}}function GB(e){return Gu()}function $B(...e){if(e.length!==1)return Uj(...e);const t=e[0];return typeof t=="function"?H0($j(()=>({get:t,set:BB}))):Je(t)}function OJ(e,t,r={}){const{eventFilter:n=zB,...i}=r;return hr(e,EJ(n,t),i)}function NJ(e,t,r={}){const{eventFilter:n,...i}=r,{eventFilter:a,pause:o,resume:s,isActive:l}=kJ(n);return{stop:OJ(e,t,{...i,eventFilter:a}),pause:o,resume:s,isActive:l}}function FJ(e,t){GB()&&pB(e,t)}function sA(e,t=!0,r){GB()?qd(e,r):t?e():Zd(e)}function VJ(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:i=!1}=r;let a=null;const o=Je(!1);function s(){a&&(clearInterval(a),a=null)}function l(){o.value=!1,s()}function u(){const c=hl(t);c<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,c)))}if(n&&bu&&u(),sr(t)||typeof t=="function"){const c=hr(t,()=>{o.value&&bu&&u()});$u(c)}return $u(l),{isActive:o,pause:l,resume:u}}const el=bu?window:void 0,BJ=bu?window.document:void 0;function Ns(e){var t;const r=hl(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Iy(...e){let t,r,n,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,i]=e,t=el):[t,r,n,i]=e,!t)return BB;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,f,h,v)=>(c.addEventListener(f,h,v),()=>c.removeEventListener(f,h,v)),l=hr(()=>[Ns(t),hl(i)],([c,f])=>{if(o(),!c)return;const h=RJ(f)?{...f}:f;a.push(...r.flatMap(v=>n.map(d=>s(c,v,d,h))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return $u(u),u}function zJ(){const e=Je(!1),t=Gu();return t&&qd(()=>{e.value=!0},t),e}function lA(e){const t=zJ();return dt(()=>(t.value,!!e()))}function GJ(e,t,r={}){const{window:n=el,...i}=r;let a;const o=lA(()=>n&&"MutationObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},l=dt(()=>{const h=hl(e),v=(Array.isArray(h)?h:[h]).map(Ns).filter(LJ);return new Set(v)}),u=hr(()=>l.value,h=>{s(),o.value&&h.size&&(a=new MutationObserver(t),h.forEach(v=>a.observe(v,i)))},{immediate:!0,flush:"post"}),c=()=>a==null?void 0:a.takeRecords(),f=()=>{u(),s()};return $u(f),{isSupported:o,stop:f,takeRecords:c}}function $J(e,t={}){const{window:r=el}=t,n=lA(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let i;const a=Je(!1),o=u=>{a.value=u.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},l=rA(()=>{n.value&&(s(),i=r.matchMedia(hl(e)),"addEventListener"in i?i.addEventListener("change",o):i.addListener(o),a.value=i.matches)});return $u(()=>{l(),s(),i=void 0}),a}const gg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mg="__vueuse_ssr_handlers__",HJ=WJ();function WJ(){return mg in gg||(gg[mg]=gg[mg]||{}),gg[mg]}function UJ(e,t){return HJ[e]||t}function YJ(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const XJ={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},QP="vueuse-storage";function Wr(e,t,r,n={}){var i;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=el,eventFilter:h,onError:v=L=>{console.error(L)},initOnMounted:d}=n,g=(c?W0:Je)(typeof t=="function"?t():t);if(!r)try{r=UJ("getDefaultStorage",()=>{var L;return(L=el)==null?void 0:L.localStorage})()}catch(L){v(L)}if(!r)return g;const m=hl(t),y=YJ(m),S=(i=n.serializer)!=null?i:XJ[y],{pause:w,resume:x}=NJ(g,()=>b(g.value),{flush:a,deep:o,eventFilter:h});f&&s&&sA(()=>{r instanceof Storage?Iy(f,"storage",M):Iy(f,QP,D),d&&M()}),d||M();function T(L,P){if(f){const E={key:e,oldValue:L,newValue:P,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",E):new CustomEvent(QP,{detail:E}))}}function b(L){try{const P=r.getItem(e);if(L==null)T(P,null),r.removeItem(e);else{const E=S.write(L);P!==E&&(r.setItem(e,E),T(P,E))}}catch(P){v(P)}}function A(L){const P=L?L.newValue:r.getItem(e);if(P==null)return l&&m!=null&&r.setItem(e,S.write(m)),m;if(!L&&u){const E=S.read(P);return typeof u=="function"?u(E,m):y==="object"&&!Array.isArray(E)?{...m,...E}:E}else return typeof P!="string"?P:S.read(P)}function M(L){if(!(L&&L.storageArea!==r)){if(L&&L.key==null){g.value=m;return}if(!(L&&L.key!==e)){w();try{(L==null?void 0:L.newValue)!==S.write(g.value)&&(g.value=A(L))}catch(P){v(P)}finally{L?Zd(x):x()}}}}function D(L){M(L.detail)}return g}function ZJ(e,t,r={}){const{window:n=el,...i}=r;let a;const o=lA(()=>n&&"ResizeObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},l=dt(()=>{const f=hl(e);return Array.isArray(f)?f.map(h=>Ns(h)):[Ns(f)]}),u=hr(l,f=>{if(s(),o.value&&n){a=new ResizeObserver(t);for(const h of f)h&&a.observe(h,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return $u(c),{isSupported:o,stop:c}}function qJ(e,t={width:0,height:0},r={}){const{window:n=el,box:i="content-box"}=r,a=dt(()=>{var f,h;return(h=(f=Ns(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),o=Je(t.width),s=Je(t.height),{stop:l}=ZJ(e,([f])=>{const h=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(n&&a.value){const v=Ns(e);if(v){const d=v.getBoundingClientRect();o.value=d.width,s.value=d.height}}else if(h){const v=Array.isArray(h)?h:[h];o.value=v.reduce((d,{inlineSize:g})=>d+g,0),s.value=v.reduce((d,{blockSize:g})=>d+g,0)}else o.value=f.contentRect.width,s.value=f.contentRect.height},r);sA(()=>{const f=Ns(e);f&&(o.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=hr(()=>Ns(e),f=>{o.value=f?t.width:0,s.value=f?t.height:0});function c(){l(),u()}return{width:o,height:s,stop:c}}function jJ(e=null,t={}){var r,n,i;const{document:a=BJ,restoreOnUnmount:o=f=>f}=t,s=(r=a==null?void 0:a.title)!=null?r:"",l=$B((n=e??(a==null?void 0:a.title))!=null?n:null),u=e&&typeof e=="function";function c(f){if(!("titleTemplate"in t))return f;const h=t.titleTemplate||"%s";return typeof h=="function"?h(f):hl(h).replace(/%s/g,f)}return hr(l,(f,h)=>{f!==h&&a&&(a.title=c(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&a&&!u&&GJ((i=a.head)==null?void 0:i.querySelector("title"),()=>{a&&a.title!==l.value&&(l.value=c(a.title))},{childList:!0}),FJ(()=>{if(o){const f=o(s,l.value||"");f!=null&&a&&(a.title=f)}}),l}const e2="ping";function SS(e){return e===!0?{}:e}function KJ(e,t={}){const{onConnected:r,onDisconnected:n,onError:i,onMessage:a,immediate:o=!0,autoClose:s=!0,protocols:l=[]}=t,u=Je(null),c=Je("CLOSED"),f=Je(),h=$B(e);let v,d,g=!1,m=0,y=[],S;const w=()=>{if(y.length&&f.value&&c.value==="OPEN"){for(const D of y)f.value.send(D);y=[]}},x=()=>{clearTimeout(S),S=void 0},T=(D=1e3,L)=>{!bu||!f.value||(g=!0,x(),v==null||v(),f.value.close(D,L),f.value=void 0)},b=(D,L=!0)=>!f.value||c.value!=="OPEN"?(L&&y.push(D),!1):(w(),f.value.send(D),!0),A=()=>{if(g||typeof h.value>"u")return;const D=new WebSocket(h.value,l);f.value=D,c.value="CONNECTING",D.onopen=()=>{c.value="OPEN",m=0,r==null||r(D),d==null||d(),w()},D.onclose=L=>{if(c.value="CLOSED",n==null||n(D,L),!g&&t.autoReconnect&&(f.value==null||D===f.value)){const{retries:P=-1,delay:E=1e3,onFailed:F}=SS(t.autoReconnect);typeof P=="number"&&(P<0||m{i==null||i(D,L)},D.onmessage=L=>{if(t.heartbeat){x();const{message:P=e2,responseMessage:E=P}=SS(t.heartbeat);if(L.data===E)return}u.value=L.data,a==null||a(D,L)}};if(t.heartbeat){const{message:D=e2,interval:L=1e3,pongTimeout:P=1e3}=SS(t.heartbeat),{pause:E,resume:F}=VJ(()=>{b(D,!1),S==null&&(S=setTimeout(()=>{T(),g=!1},P))},L,{immediate:!1});v=E,d=F}s&&(bu&&Iy("beforeunload",()=>T()),$u(T));const M=()=>{!bu&&!IJ||(T(),g=!1,m=0,A())};return o&&M(),hr(h,M),{data:u,status:c,close:T,send:b,open:M,ws:f}}function JJ(e={}){const{window:t=el,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:a=!0,type:o="inner"}=e,s=Je(r),l=Je(n),u=()=>{t&&(o==="outer"?(s.value=t.outerWidth,l.value=t.outerHeight):a?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(u(),sA(u),Iy("resize",u,{passive:!0}),i){const c=$J("(orientation: portrait)");hr(c,()=>u())}return{width:s,height:l}}var cv={exports:{}};/** +**/let Sb;const VP=typeof window<"u"&&window.trustedTypes;if(VP)try{Sb=VP.createPolicy("vue",{createHTML:e=>e})}catch{}const FB=Sb?e=>Sb.createHTML(e):e=>e,rJ="http://www.w3.org/2000/svg",nJ="http://www.w3.org/1998/Math/MathML",Lo=typeof document<"u"?document:null,BP=Lo&&Lo.createElement("template"),iJ={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?Lo.createElementNS(rJ,e):t==="mathml"?Lo.createElementNS(nJ,e):r?Lo.createElement(e,{is:r}):Lo.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Lo.createTextNode(e),createComment:e=>Lo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Lo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,a){const o=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{BP.innerHTML=FB(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const s=BP.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},aJ=Symbol("_vtc");function oJ(e,t,r){const n=e[aJ];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const zP=Symbol("_vod"),sJ=Symbol("_vsh"),lJ=Symbol(""),uJ=/(^|;)\s*display\s*:/;function cJ(e,t,r){const n=e.style,i=Br(r);let a=!1;if(r&&!i){if(t)if(Br(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&Fm(n,s,"")}else for(const o in t)r[o]==null&&Fm(n,o,"");for(const o in r)o==="display"&&(a=!0),Fm(n,o,r[o])}else if(i){if(t!==r){const o=n[lJ];o&&(r+=";"+o),n.cssText=r,a=uJ.test(r)}}else t&&e.removeAttribute("style");zP in e&&(e[zP]=a?n.display:"",e[sJ]&&(n.display="none"))}const GP=/\s*!important$/;function Fm(e,t,r){if(st(r))r.forEach(n=>Fm(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=fJ(e,t);GP.test(r)?e.setProperty(Ju(n),r.replace(GP,""),"important"):e[n]=r}}const $P=["Webkit","Moz","ms"],yS={};function fJ(e,t){const r=yS[t];if(r)return r;let n=ra(t);if(n!=="filter"&&n in e)return yS[t]=n;n=B0(n);for(let i=0;i<$P.length;i++){const a=$P[i]+n;if(a in e)return yS[t]=a}return t}const HP="http://www.w3.org/1999/xlink";function WP(e,t,r,n,i,a=pj(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(HP,t.slice(6,t.length)):e.setAttributeNS(HP,t,r):r==null||a&&!VV(r)?e.removeAttribute(t):e.setAttribute(t,a?"":ro(r)?String(r):r)}function UP(e,t,r,n,i){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?FB(r):r);return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const s=a==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(s!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let o=!1;if(r===""||r==null){const s=typeof e[t];s==="boolean"?r=VV(r):r==null&&s==="string"?(r="",o=!0):s==="number"&&(r=0,o=!0)}try{e[t]=r}catch{}o&&e.removeAttribute(i||t)}function Os(e,t,r,n){e.addEventListener(t,r,n)}function hJ(e,t,r,n){e.removeEventListener(t,r,n)}const YP=Symbol("_vei");function vJ(e,t,r,n,i=null){const a=e[YP]||(e[YP]={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=dJ(t);if(n){const u=a[t]=mJ(n,i);Os(e,s,u,l)}else o&&(hJ(e,s,o,l),a[t]=void 0)}}const XP=/(?:Once|Passive|Capture)$/;function dJ(e){let t;if(XP.test(e)){t={};let n;for(;n=e.match(XP);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ju(e.slice(2)),t]}let _S=0;const pJ=Promise.resolve(),gJ=()=>_S||(pJ.then(()=>_S=0),_S=Date.now());function mJ(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;no(yJ(n,r.value),t,5,[n])};return r.value=e,r.attached=gJ(),r}function yJ(e,t){if(st(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const ZP=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_J=(e,t,r,n,i,a)=>{const o=i==="svg";t==="class"?oJ(e,n,o):t==="style"?cJ(e,r,n):F0(t)?GT(t)||vJ(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):SJ(e,t,n,o))?(UP(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&WP(e,t,n,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Br(n))?UP(e,ra(t),n,a,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),WP(e,t,n,o))};function SJ(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ZP(t)&&St(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ZP(t)&&Br(r)?!1:t in e}const bf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return st(t)?r=>km(t,r):t};function wJ(e){e.target.composing=!0}function qP(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $o=Symbol("_assign"),ff={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[$o]=bf(i);const a=n||i.props&&i.props.type==="number";Os(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r&&(s=s.trim()),a&&(s=Sy(s)),e[$o](s)}),r&&Os(e,"change",()=>{e.value=e.value.trim()}),t||(Os(e,"compositionstart",wJ),Os(e,"compositionend",qP),Os(e,"change",qP))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:a}},o){if(e[$o]=bf(o),e.composing)return;const s=(a||e.type==="number")&&!/^0\d/.test(e.value)?Sy(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===l)||(e.value=l))}},aA={deep:!0,created(e,t,r){e[$o]=bf(r),Os(e,"change",()=>{const n=e._modelValue,i=ld(e),a=e.checked,o=e[$o];if(st(n)){const s=WT(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(Hf(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(VB(e,a))})},mounted:jP,beforeUpdate(e,t,r){e[$o]=bf(r),jP(e,t,r)}};function jP(e,{value:t,oldValue:r},n){e._modelValue=t;let i;if(st(t))i=WT(t,n.props.value)>-1;else if(Hf(t))i=t.has(n.props.value);else{if(t===r)return;i=Yd(t,VB(e,!0))}e.checked!==i&&(e.checked=i)}const Jd={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=Hf(t);Os(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?Sy(ld(o)):ld(o));e[$o](e.multiple?i?new Set(a):a:a[0]),e._assigning=!0,Zd(()=>{e._assigning=!1})}),e[$o]=bf(n)},mounted(e,{value:t}){KP(e,t)},beforeUpdate(e,t,r){e[$o]=bf(r)},updated(e,{value:t}){e._assigning||KP(e,t)}};function KP(e,t){const r=e.multiple,n=st(t);if(!(r&&!n&&!Hf(t))){for(let i=0,a=e.options.length;iString(u)===String(s)):o.selected=WT(t,s)>-1}else o.selected=t.has(s);else if(Yd(ld(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ld(e){return"_value"in e?e._value:e.value}function VB(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const xJ=["ctrl","shift","alt","meta"],bJ={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>xJ.some(r=>e[`${r}Key`]&&!t.includes(r))},oA=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...a)=>{for(let o=0;o{const t=TJ().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=DJ(n);if(!i)return;const a=t._component;!St(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,MJ(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function MJ(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function DJ(e){return Br(e)?document.querySelector(e):e}function $u(e){return $V()?(yj(e),!0):!1}function hl(e){return typeof e=="function"?e():se(e)}const bu=typeof window<"u"&&typeof document<"u",IJ=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,LJ=e=>e!=null,PJ=Object.prototype.toString,RJ=e=>PJ.call(e)==="[object Object]",BB=()=>{};function EJ(e,t){function r(...n){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(a)})}return r}const zB=e=>e();function kJ(e=zB){const t=Je(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:H0(t),pause:r,resume:n,eventFilter:i}}function GB(e){return Gu()}function $B(...e){if(e.length!==1)return Uj(...e);const t=e[0];return typeof t=="function"?H0($j(()=>({get:t,set:BB}))):Je(t)}function OJ(e,t,r={}){const{eventFilter:n=zB,...i}=r;return hr(e,EJ(n,t),i)}function NJ(e,t,r={}){const{eventFilter:n,...i}=r,{eventFilter:a,pause:o,resume:s,isActive:l}=kJ(n);return{stop:OJ(e,t,{...i,eventFilter:a}),pause:o,resume:s,isActive:l}}function FJ(e,t){GB()&&pB(e,t)}function sA(e,t=!0,r){GB()?qd(e,r):t?e():Zd(e)}function VJ(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:i=!1}=r;let a=null;const o=Je(!1);function s(){a&&(clearInterval(a),a=null)}function l(){o.value=!1,s()}function u(){const c=hl(t);c<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,c)))}if(n&&bu&&u(),sr(t)||typeof t=="function"){const c=hr(t,()=>{o.value&&bu&&u()});$u(c)}return $u(l),{isActive:o,pause:l,resume:u}}const el=bu?window:void 0,BJ=bu?window.document:void 0;function Ns(e){var t;const r=hl(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Iy(...e){let t,r,n,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,i]=e,t=el):[t,r,n,i]=e,!t)return BB;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,f,h,v)=>(c.addEventListener(f,h,v),()=>c.removeEventListener(f,h,v)),l=hr(()=>[Ns(t),hl(i)],([c,f])=>{if(o(),!c)return;const h=RJ(f)?{...f}:f;a.push(...r.flatMap(v=>n.map(d=>s(c,v,d,h))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return $u(u),u}function zJ(){const e=Je(!1),t=Gu();return t&&qd(()=>{e.value=!0},t),e}function lA(e){const t=zJ();return dt(()=>(t.value,!!e()))}function GJ(e,t,r={}){const{window:n=el,...i}=r;let a;const o=lA(()=>n&&"MutationObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},l=dt(()=>{const h=hl(e),v=(Array.isArray(h)?h:[h]).map(Ns).filter(LJ);return new Set(v)}),u=hr(()=>l.value,h=>{s(),o.value&&h.size&&(a=new MutationObserver(t),h.forEach(v=>a.observe(v,i)))},{immediate:!0,flush:"post"}),c=()=>a==null?void 0:a.takeRecords(),f=()=>{u(),s()};return $u(f),{isSupported:o,stop:f,takeRecords:c}}function $J(e,t={}){const{window:r=el}=t,n=lA(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let i;const a=Je(!1),o=u=>{a.value=u.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},l=rA(()=>{n.value&&(s(),i=r.matchMedia(hl(e)),"addEventListener"in i?i.addEventListener("change",o):i.addListener(o),a.value=i.matches)});return $u(()=>{l(),s(),i=void 0}),a}const gg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mg="__vueuse_ssr_handlers__",HJ=WJ();function WJ(){return mg in gg||(gg[mg]=gg[mg]||{}),gg[mg]}function UJ(e,t){return HJ[e]||t}function YJ(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const XJ={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},QP="vueuse-storage";function Wr(e,t,r,n={}){var i;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=el,eventFilter:h,onError:v=L=>{console.error(L)},initOnMounted:d}=n,g=(c?W0:Je)(typeof t=="function"?t():t);if(!r)try{r=UJ("getDefaultStorage",()=>{var L;return(L=el)==null?void 0:L.localStorage})()}catch(L){v(L)}if(!r)return g;const m=hl(t),y=YJ(m),S=(i=n.serializer)!=null?i:XJ[y],{pause:w,resume:x}=NJ(g,()=>b(g.value),{flush:a,deep:o,eventFilter:h});f&&s&&sA(()=>{r instanceof Storage?Iy(f,"storage",M):Iy(f,QP,D),d&&M()}),d||M();function T(L,P){if(f){const E={key:e,oldValue:L,newValue:P,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",E):new CustomEvent(QP,{detail:E}))}}function b(L){try{const P=r.getItem(e);if(L==null)T(P,null),r.removeItem(e);else{const E=S.write(L);P!==E&&(r.setItem(e,E),T(P,E))}}catch(P){v(P)}}function A(L){const P=L?L.newValue:r.getItem(e);if(P==null)return l&&m!=null&&r.setItem(e,S.write(m)),m;if(!L&&u){const E=S.read(P);return typeof u=="function"?u(E,m):y==="object"&&!Array.isArray(E)?{...m,...E}:E}else return typeof P!="string"?P:S.read(P)}function M(L){if(!(L&&L.storageArea!==r)){if(L&&L.key==null){g.value=m;return}if(!(L&&L.key!==e)){w();try{(L==null?void 0:L.newValue)!==S.write(g.value)&&(g.value=A(L))}catch(P){v(P)}finally{L?Zd(x):x()}}}}function D(L){M(L.detail)}return g}function ZJ(e,t,r={}){const{window:n=el,...i}=r;let a;const o=lA(()=>n&&"ResizeObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},l=dt(()=>{const f=hl(e);return Array.isArray(f)?f.map(h=>Ns(h)):[Ns(f)]}),u=hr(l,f=>{if(s(),o.value&&n){a=new ResizeObserver(t);for(const h of f)h&&a.observe(h,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return $u(c),{isSupported:o,stop:c}}function qJ(e,t={width:0,height:0},r={}){const{window:n=el,box:i="content-box"}=r,a=dt(()=>{var f,h;return(h=(f=Ns(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),o=Je(t.width),s=Je(t.height),{stop:l}=ZJ(e,([f])=>{const h=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(n&&a.value){const v=Ns(e);if(v){const d=v.getBoundingClientRect();o.value=d.width,s.value=d.height}}else if(h){const v=Array.isArray(h)?h:[h];o.value=v.reduce((d,{inlineSize:g})=>d+g,0),s.value=v.reduce((d,{blockSize:g})=>d+g,0)}else o.value=f.contentRect.width,s.value=f.contentRect.height},r);sA(()=>{const f=Ns(e);f&&(o.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=hr(()=>Ns(e),f=>{o.value=f?t.width:0,s.value=f?t.height:0});function c(){l(),u()}return{width:o,height:s,stop:c}}function jJ(e=null,t={}){var r,n,i;const{document:a=BJ,restoreOnUnmount:o=f=>f}=t,s=(r=a==null?void 0:a.title)!=null?r:"",l=$B((n=e??(a==null?void 0:a.title))!=null?n:null),u=e&&typeof e=="function";function c(f){if(!("titleTemplate"in t))return f;const h=t.titleTemplate||"%s";return typeof h=="function"?h(f):hl(h).replace(/%s/g,f)}return hr(l,(f,h)=>{f!==h&&a&&(a.title=c(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&a&&!u&&GJ((i=a.head)==null?void 0:i.querySelector("title"),()=>{a&&a.title!==l.value&&(l.value=c(a.title))},{childList:!0}),FJ(()=>{if(o){const f=o(s,l.value||"");f!=null&&a&&(a.title=f)}}),l}const e2="ping";function SS(e){return e===!0?{}:e}function KJ(e,t={}){const{onConnected:r,onDisconnected:n,onError:i,onMessage:a,immediate:o=!0,autoClose:s=!0,protocols:l=[]}=t,u=Je(null),c=Je("CLOSED"),f=Je(),h=$B(e);let v,d,g=!1,m=0,y=[],S;const w=()=>{if(y.length&&f.value&&c.value==="OPEN"){for(const D of y)f.value.send(D);y=[]}},x=()=>{clearTimeout(S),S=void 0},T=(D=1e3,L)=>{!bu||!f.value||(g=!0,x(),v==null||v(),f.value.close(D,L),f.value=void 0)},b=(D,L=!0)=>!f.value||c.value!=="OPEN"?(L&&y.push(D),!1):(w(),f.value.send(D),!0),A=()=>{if(g||typeof h.value>"u")return;const D=new WebSocket(h.value,l);f.value=D,c.value="CONNECTING",D.onopen=()=>{c.value="OPEN",m=0,r==null||r(D),d==null||d(),w()},D.onclose=L=>{if(c.value="CLOSED",n==null||n(D,L),!g&&t.autoReconnect&&(f.value==null||D===f.value)){const{retries:P=-1,delay:E=1e3,onFailed:F}=SS(t.autoReconnect);typeof P=="number"&&(P<0||m{i==null||i(D,L)},D.onmessage=L=>{if(t.heartbeat){x();const{message:P=e2,responseMessage:E=P}=SS(t.heartbeat);if(L.data===E)return}u.value=L.data,a==null||a(D,L)}};if(t.heartbeat){const{message:D=e2,interval:L=1e3,pongTimeout:P=1e3}=SS(t.heartbeat),{pause:E,resume:F}=VJ(()=>{b(D,!1),S==null&&(S=setTimeout(()=>{T(),g=!1},P))},L,{immediate:!1});v=E,d=F}s&&(bu&&Iy("beforeunload",()=>T()),$u(T));const M=()=>{!bu&&!IJ||(T(),g=!1,m=0,A())};return o&&M(),hr(h,M),{data:u,status:c,close:T,send:b,open:M,ws:f}}function JJ(e={}){const{window:t=el,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:a=!0,type:o="inner"}=e,s=Je(r),l=Je(n),u=()=>{t&&(o==="outer"?(s.value=t.outerWidth,l.value=t.outerHeight):a?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(u(),sA(u),Iy("resize",u,{passive:!0}),i){const c=$J("(orientation: portrait)");hr(c,()=>u())}return{width:s,height:l}}var cv={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */var QJ=cv.exports,t2;function eQ(){return t2||(t2=1,function(e,t){(function(){var r,n="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,h=2,v=4,d=1,g=2,m=1,y=2,S=4,w=8,x=16,T=32,b=64,A=128,M=256,D=512,L=30,P="...",E=800,F=16,O=1,N=2,V=3,Y=1/0,G=9007199254740991,Z=17976931348623157e292,J=NaN,re=4294967295,pe=re-1,Me=re>>>1,Le=[["ary",A],["bind",m],["bindKey",y],["curry",w],["curryRight",x],["flip",D],["partial",T],["partialRight",b],["rearg",M]],Fe="[object Arguments]",Ge="[object Array]",ie="[object AsyncFunction]",le="[object Boolean]",de="[object Date]",me="[object DOMException]",be="[object Error]",Re="[object Function]",H="[object GeneratorFunction]",W="[object Map]",te="[object Number]",_e="[object Null]",fe="[object Object]",$="[object Promise]",U="[object Proxy]",Q="[object RegExp]",ae="[object Set]",xe="[object String]",Pe="[object Symbol]",K="[object Undefined]",ue="[object WeakMap]",Ve="[object WeakSet]",je="[object ArrayBuffer]",At="[object DataView]",Ot="[object Float32Array]",xr="[object Float64Array]",Mr="[object Int8Array]",Sn="[object Int16Array]",un="[object Int32Array]",ho="[object Uint8Array]",sc="[object Uint8ClampedArray]",cn="[object Uint16Array]",Jn="[object Uint32Array]",bp=/\b__p \+= '';/g,_8=/\b(__p \+=) '' \+/g,S8=/(__e\(.*?\)|\b__t\)) \+\n'';/g,HD=/&(?:amp|lt|gt|quot|#39);/g,WD=/[&<>"']/g,w8=RegExp(HD.source),x8=RegExp(WD.source),b8=/<%-([\s\S]+?)%>/g,C8=/<%([\s\S]+?)%>/g,UD=/<%=([\s\S]+?)%>/g,T8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A8=/^\w*$/,M8=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K_=/[\\^$.*+?()[\]{}|]/g,D8=RegExp(K_.source),J_=/^\s+/,I8=/\s/,L8=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,P8=/\{\n\/\* \[wrapped with (.+)\] \*/,R8=/,? & /,E8=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,k8=/[()=,{}\[\]\/\s]/,O8=/\\(\\)?/g,N8=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,YD=/\w*$/,F8=/^[-+]0x[0-9a-f]+$/i,V8=/^0b[01]+$/i,B8=/^\[object .+?Constructor\]$/,z8=/^0o[0-7]+$/i,G8=/^(?:0|[1-9]\d*)$/,$8=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cp=/($^)/,H8=/['\n\r\u2028\u2029\\]/g,Tp="\\ud800-\\udfff",W8="\\u0300-\\u036f",U8="\\ufe20-\\ufe2f",Y8="\\u20d0-\\u20ff",XD=W8+U8+Y8,ZD="\\u2700-\\u27bf",qD="a-z\\xdf-\\xf6\\xf8-\\xff",X8="\\xac\\xb1\\xd7\\xf7",Z8="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",q8="\\u2000-\\u206f",j8=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",jD="A-Z\\xc0-\\xd6\\xd8-\\xde",KD="\\ufe0e\\ufe0f",JD=X8+Z8+q8+j8,Q_="['’]",K8="["+Tp+"]",QD="["+JD+"]",Ap="["+XD+"]",eI="\\d+",J8="["+ZD+"]",tI="["+qD+"]",rI="[^"+Tp+JD+eI+ZD+qD+jD+"]",e1="\\ud83c[\\udffb-\\udfff]",Q8="(?:"+Ap+"|"+e1+")",nI="[^"+Tp+"]",t1="(?:\\ud83c[\\udde6-\\uddff]){2}",r1="[\\ud800-\\udbff][\\udc00-\\udfff]",lc="["+jD+"]",iI="\\u200d",aI="(?:"+tI+"|"+rI+")",e6="(?:"+lc+"|"+rI+")",oI="(?:"+Q_+"(?:d|ll|m|re|s|t|ve))?",sI="(?:"+Q_+"(?:D|LL|M|RE|S|T|VE))?",lI=Q8+"?",uI="["+KD+"]?",t6="(?:"+iI+"(?:"+[nI,t1,r1].join("|")+")"+uI+lI+")*",r6="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",n6="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",cI=uI+lI+t6,i6="(?:"+[J8,t1,r1].join("|")+")"+cI,a6="(?:"+[nI+Ap+"?",Ap,t1,r1,K8].join("|")+")",o6=RegExp(Q_,"g"),s6=RegExp(Ap,"g"),n1=RegExp(e1+"(?="+e1+")|"+a6+cI,"g"),l6=RegExp([lc+"?"+tI+"+"+oI+"(?="+[QD,lc,"$"].join("|")+")",e6+"+"+sI+"(?="+[QD,lc+aI,"$"].join("|")+")",lc+"?"+aI+"+"+oI,lc+"+"+sI,n6,r6,eI,i6].join("|"),"g"),u6=RegExp("["+iI+Tp+XD+KD+"]"),c6=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,f6=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],h6=-1,yr={};yr[Ot]=yr[xr]=yr[Mr]=yr[Sn]=yr[un]=yr[ho]=yr[sc]=yr[cn]=yr[Jn]=!0,yr[Fe]=yr[Ge]=yr[je]=yr[le]=yr[At]=yr[de]=yr[be]=yr[Re]=yr[W]=yr[te]=yr[fe]=yr[Q]=yr[ae]=yr[xe]=yr[ue]=!1;var pr={};pr[Fe]=pr[Ge]=pr[je]=pr[At]=pr[le]=pr[de]=pr[Ot]=pr[xr]=pr[Mr]=pr[Sn]=pr[un]=pr[W]=pr[te]=pr[fe]=pr[Q]=pr[ae]=pr[xe]=pr[Pe]=pr[ho]=pr[sc]=pr[cn]=pr[Jn]=!0,pr[be]=pr[Re]=pr[ue]=!1;var v6={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},d6={"&":"&","<":"<",">":">",'"':""","'":"'"},p6={"&":"&","<":"<",">":">",""":'"',"'":"'"},g6={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},m6=parseFloat,y6=parseInt,fI=typeof hg=="object"&&hg&&hg.Object===Object&&hg,_6=typeof self=="object"&&self&&self.Object===Object&&self,fn=fI||_6||Function("return this")(),i1=t&&!t.nodeType&&t,ml=i1&&!0&&e&&!e.nodeType&&e,hI=ml&&ml.exports===i1,a1=hI&&fI.process,Pi=function(){try{var ee=ml&&ml.require&&ml.require("util").types;return ee||a1&&a1.binding&&a1.binding("util")}catch{}}(),vI=Pi&&Pi.isArrayBuffer,dI=Pi&&Pi.isDate,pI=Pi&&Pi.isMap,gI=Pi&&Pi.isRegExp,mI=Pi&&Pi.isSet,yI=Pi&&Pi.isTypedArray;function di(ee,we,ve){switch(ve.length){case 0:return ee.call(we);case 1:return ee.call(we,ve[0]);case 2:return ee.call(we,ve[0],ve[1]);case 3:return ee.call(we,ve[0],ve[1],ve[2])}return ee.apply(we,ve)}function S6(ee,we,ve,Ue){for(var _t=-1,Xt=ee==null?0:ee.length;++_t-1}function o1(ee,we,ve){for(var Ue=-1,_t=ee==null?0:ee.length;++Ue<_t;)if(ve(we,ee[Ue]))return!0;return!1}function br(ee,we){for(var ve=-1,Ue=ee==null?0:ee.length,_t=Array(Ue);++ve-1;);return ve}function AI(ee,we){for(var ve=ee.length;ve--&&uc(we,ee[ve],0)>-1;);return ve}function I6(ee,we){for(var ve=ee.length,Ue=0;ve--;)ee[ve]===we&&++Ue;return Ue}var L6=c1(v6),P6=c1(d6);function R6(ee){return"\\"+g6[ee]}function E6(ee,we){return ee==null?r:ee[we]}function cc(ee){return u6.test(ee)}function k6(ee){return c6.test(ee)}function O6(ee){for(var we,ve=[];!(we=ee.next()).done;)ve.push(we.value);return ve}function d1(ee){var we=-1,ve=Array(ee.size);return ee.forEach(function(Ue,_t){ve[++we]=[_t,Ue]}),ve}function MI(ee,we){return function(ve){return ee(we(ve))}}function ls(ee,we){for(var ve=-1,Ue=ee.length,_t=0,Xt=[];++ve-1}function x7(p,_){var C=this.__data__,I=Wp(C,p);return I<0?(++this.size,C.push([p,_])):C[I][1]=_,this}vo.prototype.clear=y7,vo.prototype.delete=_7,vo.prototype.get=S7,vo.prototype.has=w7,vo.prototype.set=x7;function po(p){var _=-1,C=p==null?0:p.length;for(this.clear();++_=_?p:_)),p}function Oi(p,_,C,I,k,z){var X,q=_&f,ne=_&h,Ce=_&v;if(C&&(X=k?C(p,I,k,z):C(p)),X!==r)return X;if(!Tr(p))return p;var Ae=xt(p);if(Ae){if(X=A9(p),!q)return Qn(p,X)}else{var De=xn(p),Be=De==Re||De==H;if(ds(p))return uL(p,q);if(De==fe||De==Fe||Be&&!k){if(X=ne||Be?{}:DL(p),!q)return ne?p9(p,V7(X,p)):d9(p,BI(X,p))}else{if(!pr[De])return k?p:{};X=M9(p,De,q)}}z||(z=new la);var Qe=z.get(p);if(Qe)return Qe;z.set(p,X),nP(p)?p.forEach(function(ut){X.add(Oi(ut,_,C,ut,p,z))}):tP(p)&&p.forEach(function(ut,Nt){X.set(Nt,Oi(ut,_,C,Nt,p,z))});var lt=Ce?ne?z1:B1:ne?ti:nn,Lt=Ae?r:lt(p);return Ri(Lt||p,function(ut,Nt){Lt&&(Nt=ut,ut=p[Nt]),mh(X,Nt,Oi(ut,_,C,Nt,p,z))}),X}function B7(p){var _=nn(p);return function(C){return zI(C,p,_)}}function zI(p,_,C){var I=C.length;if(p==null)return!I;for(p=cr(p);I--;){var k=C[I],z=_[k],X=p[k];if(X===r&&!(k in p)||!z(X))return!1}return!0}function GI(p,_,C){if(typeof p!="function")throw new Ei(o);return Ch(function(){p.apply(r,C)},_)}function yh(p,_,C,I){var k=-1,z=Mp,X=!0,q=p.length,ne=[],Ce=_.length;if(!q)return ne;C&&(_=br(_,pi(C))),I?(z=o1,X=!1):_.length>=i&&(z=fh,X=!1,_=new Sl(_));e:for(;++kk?0:k+C),I=I===r||I>k?k:Mt(I),I<0&&(I+=k),I=C>I?0:aP(I);C0&&C(q)?_>1?hn(q,_-1,C,I,k):ss(k,q):I||(k[k.length]=q)}return k}var w1=pL(),WI=pL(!0);function Pa(p,_){return p&&w1(p,_,nn)}function x1(p,_){return p&&WI(p,_,nn)}function Yp(p,_){return os(_,function(C){return So(p[C])})}function xl(p,_){_=hs(_,p);for(var C=0,I=_.length;p!=null&&C_}function $7(p,_){return p!=null&&ir.call(p,_)}function H7(p,_){return p!=null&&_ in cr(p)}function W7(p,_,C){return p>=wn(_,C)&&p=120&&Ae.length>=120)?new Sl(X&&Ae):r}Ae=p[0];var De=-1,Be=q[0];e:for(;++De-1;)q!==p&&Fp.call(q,ne,1),Fp.call(p,ne,1);return p}function tL(p,_){for(var C=p?_.length:0,I=C-1;C--;){var k=_[C];if(C==I||k!==z){var z=k;_o(k)?Fp.call(p,k,1):R1(p,k)}}return p}function I1(p,_){return p+zp(OI()*(_-p+1))}function n9(p,_,C,I){for(var k=-1,z=Yr(Bp((_-p)/(C||1)),0),X=ve(z);z--;)X[I?z:++k]=p,p+=C;return X}function L1(p,_){var C="";if(!p||_<1||_>G)return C;do _%2&&(C+=p),_=zp(_/2),_&&(p+=p);while(_);return C}function Rt(p,_){return X1(PL(p,_,ri),p+"")}function i9(p){return VI(wc(p))}function a9(p,_){var C=wc(p);return ng(C,wl(_,0,C.length))}function wh(p,_,C,I){if(!Tr(p))return p;_=hs(_,p);for(var k=-1,z=_.length,X=z-1,q=p;q!=null&&++kk?0:k+_),C=C>k?k:C,C<0&&(C+=k),k=_>C?0:C-_>>>0,_>>>=0;for(var z=ve(k);++I>>1,X=p[z];X!==null&&!mi(X)&&(C?X<=_:X<_)?I=z+1:k=z}return k}return P1(p,_,ri,C)}function P1(p,_,C,I){var k=0,z=p==null?0:p.length;if(z===0)return 0;_=C(_);for(var X=_!==_,q=_===null,ne=mi(_),Ce=_===r;k=i){var Ce=_?null:_9(p);if(Ce)return Ip(Ce);X=!1,k=fh,ne=new Sl}else ne=_?[]:q;e:for(;++I=I?p:Ni(p,_,C)}var lL=j6||function(p){return fn.clearTimeout(p)};function uL(p,_){if(_)return p.slice();var C=p.length,I=LI?LI(C):new p.constructor(C);return p.copy(I),I}function N1(p){var _=new p.constructor(p.byteLength);return new Op(_).set(new Op(p)),_}function c9(p,_){var C=_?N1(p.buffer):p.buffer;return new p.constructor(C,p.byteOffset,p.byteLength)}function f9(p){var _=new p.constructor(p.source,YD.exec(p));return _.lastIndex=p.lastIndex,_}function h9(p){return gh?cr(gh.call(p)):{}}function cL(p,_){var C=_?N1(p.buffer):p.buffer;return new p.constructor(C,p.byteOffset,p.length)}function fL(p,_){if(p!==_){var C=p!==r,I=p===null,k=p===p,z=mi(p),X=_!==r,q=_===null,ne=_===_,Ce=mi(_);if(!q&&!Ce&&!z&&p>_||z&&X&&ne&&!q&&!Ce||I&&X&&ne||!C&&ne||!k)return 1;if(!I&&!z&&!Ce&&p<_||Ce&&C&&k&&!I&&!z||q&&C&&k||!X&&k||!ne)return-1}return 0}function v9(p,_,C){for(var I=-1,k=p.criteria,z=_.criteria,X=k.length,q=C.length;++I=q)return ne;var Ce=C[I];return ne*(Ce=="desc"?-1:1)}}return p.index-_.index}function hL(p,_,C,I){for(var k=-1,z=p.length,X=C.length,q=-1,ne=_.length,Ce=Yr(z-X,0),Ae=ve(ne+Ce),De=!I;++q1?C[k-1]:r,X=k>2?C[2]:r;for(z=p.length>3&&typeof z=="function"?(k--,z):r,X&&En(C[0],C[1],X)&&(z=k<3?r:z,k=1),_=cr(_);++I-1?k[z?_[X]:X]:r}}function yL(p){return yo(function(_){var C=_.length,I=C,k=ki.prototype.thru;for(p&&_.reverse();I--;){var z=_[I];if(typeof z!="function")throw new Ei(o);if(k&&!X&&tg(z)=="wrapper")var X=new ki([],!0)}for(I=X?I:C;++I1&&zt.reverse(),Ae&&neq))return!1;var Ce=z.get(p),Ae=z.get(_);if(Ce&&Ae)return Ce==_&&Ae==p;var De=-1,Be=!0,Qe=C&g?new Sl:r;for(z.set(p,_),z.set(_,p);++De1?"& ":"")+_[I],_=_.join(C>2?", ":" "),p.replace(L8,`{ + */var QJ=cv.exports,t2;function eQ(){return t2||(t2=1,function(e,t){(function(){var r,n="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,h=2,v=4,d=1,g=2,m=1,y=2,S=4,w=8,x=16,T=32,b=64,A=128,M=256,D=512,L=30,P="...",E=800,F=16,O=1,N=2,V=3,Y=1/0,G=9007199254740991,Z=17976931348623157e292,J=NaN,re=4294967295,pe=re-1,Me=re>>>1,Le=[["ary",A],["bind",m],["bindKey",y],["curry",w],["curryRight",x],["flip",D],["partial",T],["partialRight",b],["rearg",M]],Fe="[object Arguments]",Ge="[object Array]",ie="[object AsyncFunction]",le="[object Boolean]",de="[object Date]",me="[object DOMException]",be="[object Error]",Re="[object Function]",H="[object GeneratorFunction]",W="[object Map]",te="[object Number]",_e="[object Null]",fe="[object Object]",$="[object Promise]",U="[object Proxy]",Q="[object RegExp]",ae="[object Set]",xe="[object String]",Pe="[object Symbol]",K="[object Undefined]",ue="[object WeakMap]",Ve="[object WeakSet]",je="[object ArrayBuffer]",At="[object DataView]",Ot="[object Float32Array]",xr="[object Float64Array]",Mr="[object Int8Array]",Sn="[object Int16Array]",un="[object Int32Array]",ho="[object Uint8Array]",sc="[object Uint8ClampedArray]",cn="[object Uint16Array]",Jn="[object Uint32Array]",bp=/\b__p \+= '';/g,_8=/\b(__p \+=) '' \+/g,S8=/(__e\(.*?\)|\b__t\)) \+\n'';/g,HD=/&(?:amp|lt|gt|quot|#39);/g,WD=/[&<>"']/g,w8=RegExp(HD.source),x8=RegExp(WD.source),b8=/<%-([\s\S]+?)%>/g,C8=/<%([\s\S]+?)%>/g,UD=/<%=([\s\S]+?)%>/g,T8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A8=/^\w*$/,M8=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K_=/[\\^$.*+?()[\]{}|]/g,D8=RegExp(K_.source),J_=/^\s+/,I8=/\s/,L8=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,P8=/\{\n\/\* \[wrapped with (.+)\] \*/,R8=/,? & /,E8=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,k8=/[()=,{}\[\]\/\s]/,O8=/\\(\\)?/g,N8=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,YD=/\w*$/,F8=/^[-+]0x[0-9a-f]+$/i,V8=/^0b[01]+$/i,B8=/^\[object .+?Constructor\]$/,z8=/^0o[0-7]+$/i,G8=/^(?:0|[1-9]\d*)$/,$8=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cp=/($^)/,H8=/['\n\r\u2028\u2029\\]/g,Tp="\\ud800-\\udfff",W8="\\u0300-\\u036f",U8="\\ufe20-\\ufe2f",Y8="\\u20d0-\\u20ff",XD=W8+U8+Y8,ZD="\\u2700-\\u27bf",qD="a-z\\xdf-\\xf6\\xf8-\\xff",X8="\\xac\\xb1\\xd7\\xf7",Z8="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",q8="\\u2000-\\u206f",j8=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",jD="A-Z\\xc0-\\xd6\\xd8-\\xde",KD="\\ufe0e\\ufe0f",JD=X8+Z8+q8+j8,Q_="['’]",K8="["+Tp+"]",QD="["+JD+"]",Ap="["+XD+"]",eI="\\d+",J8="["+ZD+"]",tI="["+qD+"]",rI="[^"+Tp+JD+eI+ZD+qD+jD+"]",e1="\\ud83c[\\udffb-\\udfff]",Q8="(?:"+Ap+"|"+e1+")",nI="[^"+Tp+"]",t1="(?:\\ud83c[\\udde6-\\uddff]){2}",r1="[\\ud800-\\udbff][\\udc00-\\udfff]",lc="["+jD+"]",iI="\\u200d",aI="(?:"+tI+"|"+rI+")",e6="(?:"+lc+"|"+rI+")",oI="(?:"+Q_+"(?:d|ll|m|re|s|t|ve))?",sI="(?:"+Q_+"(?:D|LL|M|RE|S|T|VE))?",lI=Q8+"?",uI="["+KD+"]?",t6="(?:"+iI+"(?:"+[nI,t1,r1].join("|")+")"+uI+lI+")*",r6="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",n6="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",cI=uI+lI+t6,i6="(?:"+[J8,t1,r1].join("|")+")"+cI,a6="(?:"+[nI+Ap+"?",Ap,t1,r1,K8].join("|")+")",o6=RegExp(Q_,"g"),s6=RegExp(Ap,"g"),n1=RegExp(e1+"(?="+e1+")|"+a6+cI,"g"),l6=RegExp([lc+"?"+tI+"+"+oI+"(?="+[QD,lc,"$"].join("|")+")",e6+"+"+sI+"(?="+[QD,lc+aI,"$"].join("|")+")",lc+"?"+aI+"+"+oI,lc+"+"+sI,n6,r6,eI,i6].join("|"),"g"),u6=RegExp("["+iI+Tp+XD+KD+"]"),c6=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,f6=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],h6=-1,yr={};yr[Ot]=yr[xr]=yr[Mr]=yr[Sn]=yr[un]=yr[ho]=yr[sc]=yr[cn]=yr[Jn]=!0,yr[Fe]=yr[Ge]=yr[je]=yr[le]=yr[At]=yr[de]=yr[be]=yr[Re]=yr[W]=yr[te]=yr[fe]=yr[Q]=yr[ae]=yr[xe]=yr[ue]=!1;var pr={};pr[Fe]=pr[Ge]=pr[je]=pr[At]=pr[le]=pr[de]=pr[Ot]=pr[xr]=pr[Mr]=pr[Sn]=pr[un]=pr[W]=pr[te]=pr[fe]=pr[Q]=pr[ae]=pr[xe]=pr[Pe]=pr[ho]=pr[sc]=pr[cn]=pr[Jn]=!0,pr[be]=pr[Re]=pr[ue]=!1;var v6={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},d6={"&":"&","<":"<",">":">",'"':""","'":"'"},p6={"&":"&","<":"<",">":">",""":'"',"'":"'"},g6={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},m6=parseFloat,y6=parseInt,fI=typeof hg=="object"&&hg&&hg.Object===Object&&hg,_6=typeof self=="object"&&self&&self.Object===Object&&self,fn=fI||_6||Function("return this")(),i1=t&&!t.nodeType&&t,ml=i1&&!0&&e&&!e.nodeType&&e,hI=ml&&ml.exports===i1,a1=hI&&fI.process,Pi=function(){try{var ee=ml&&ml.require&&ml.require("util").types;return ee||a1&&a1.binding&&a1.binding("util")}catch{}}(),vI=Pi&&Pi.isArrayBuffer,dI=Pi&&Pi.isDate,pI=Pi&&Pi.isMap,gI=Pi&&Pi.isRegExp,mI=Pi&&Pi.isSet,yI=Pi&&Pi.isTypedArray;function di(ee,we,ve){switch(ve.length){case 0:return ee.call(we);case 1:return ee.call(we,ve[0]);case 2:return ee.call(we,ve[0],ve[1]);case 3:return ee.call(we,ve[0],ve[1],ve[2])}return ee.apply(we,ve)}function S6(ee,we,ve,Ue){for(var _t=-1,Xt=ee==null?0:ee.length;++_t-1}function o1(ee,we,ve){for(var Ue=-1,_t=ee==null?0:ee.length;++Ue<_t;)if(ve(we,ee[Ue]))return!0;return!1}function br(ee,we){for(var ve=-1,Ue=ee==null?0:ee.length,_t=Array(Ue);++ve-1;);return ve}function AI(ee,we){for(var ve=ee.length;ve--&&uc(we,ee[ve],0)>-1;);return ve}function I6(ee,we){for(var ve=ee.length,Ue=0;ve--;)ee[ve]===we&&++Ue;return Ue}var L6=c1(v6),P6=c1(d6);function R6(ee){return"\\"+g6[ee]}function E6(ee,we){return ee==null?r:ee[we]}function cc(ee){return u6.test(ee)}function k6(ee){return c6.test(ee)}function O6(ee){for(var we,ve=[];!(we=ee.next()).done;)ve.push(we.value);return ve}function d1(ee){var we=-1,ve=Array(ee.size);return ee.forEach(function(Ue,_t){ve[++we]=[_t,Ue]}),ve}function MI(ee,we){return function(ve){return ee(we(ve))}}function ls(ee,we){for(var ve=-1,Ue=ee.length,_t=0,Xt=[];++ve-1}function x7(p,_){var C=this.__data__,I=Wp(C,p);return I<0?(++this.size,C.push([p,_])):C[I][1]=_,this}vo.prototype.clear=y7,vo.prototype.delete=_7,vo.prototype.get=S7,vo.prototype.has=w7,vo.prototype.set=x7;function po(p){var _=-1,C=p==null?0:p.length;for(this.clear();++_=_?p:_)),p}function Oi(p,_,C,I,k,z){var X,q=_&f,ne=_&h,Ce=_&v;if(C&&(X=k?C(p,I,k,z):C(p)),X!==r)return X;if(!Tr(p))return p;var Te=xt(p);if(Te){if(X=A9(p),!q)return Qn(p,X)}else{var De=xn(p),Be=De==Re||De==H;if(ds(p))return uL(p,q);if(De==fe||De==Fe||Be&&!k){if(X=ne||Be?{}:DL(p),!q)return ne?p9(p,V7(X,p)):d9(p,BI(X,p))}else{if(!pr[De])return k?p:{};X=M9(p,De,q)}}z||(z=new la);var Qe=z.get(p);if(Qe)return Qe;z.set(p,X),nP(p)?p.forEach(function(ut){X.add(Oi(ut,_,C,ut,p,z))}):tP(p)&&p.forEach(function(ut,Nt){X.set(Nt,Oi(ut,_,C,Nt,p,z))});var lt=Ce?ne?z1:B1:ne?ti:nn,Lt=Te?r:lt(p);return Ri(Lt||p,function(ut,Nt){Lt&&(Nt=ut,ut=p[Nt]),mh(X,Nt,Oi(ut,_,C,Nt,p,z))}),X}function B7(p){var _=nn(p);return function(C){return zI(C,p,_)}}function zI(p,_,C){var I=C.length;if(p==null)return!I;for(p=cr(p);I--;){var k=C[I],z=_[k],X=p[k];if(X===r&&!(k in p)||!z(X))return!1}return!0}function GI(p,_,C){if(typeof p!="function")throw new Ei(o);return Ch(function(){p.apply(r,C)},_)}function yh(p,_,C,I){var k=-1,z=Mp,X=!0,q=p.length,ne=[],Ce=_.length;if(!q)return ne;C&&(_=br(_,pi(C))),I?(z=o1,X=!1):_.length>=i&&(z=fh,X=!1,_=new Sl(_));e:for(;++kk?0:k+C),I=I===r||I>k?k:Mt(I),I<0&&(I+=k),I=C>I?0:aP(I);C0&&C(q)?_>1?hn(q,_-1,C,I,k):ss(k,q):I||(k[k.length]=q)}return k}var w1=pL(),WI=pL(!0);function La(p,_){return p&&w1(p,_,nn)}function x1(p,_){return p&&WI(p,_,nn)}function Yp(p,_){return os(_,function(C){return So(p[C])})}function xl(p,_){_=hs(_,p);for(var C=0,I=_.length;p!=null&&C_}function $7(p,_){return p!=null&&ir.call(p,_)}function H7(p,_){return p!=null&&_ in cr(p)}function W7(p,_,C){return p>=wn(_,C)&&p=120&&Te.length>=120)?new Sl(X&&Te):r}Te=p[0];var De=-1,Be=q[0];e:for(;++De-1;)q!==p&&Fp.call(q,ne,1),Fp.call(p,ne,1);return p}function tL(p,_){for(var C=p?_.length:0,I=C-1;C--;){var k=_[C];if(C==I||k!==z){var z=k;_o(k)?Fp.call(p,k,1):R1(p,k)}}return p}function I1(p,_){return p+zp(OI()*(_-p+1))}function n9(p,_,C,I){for(var k=-1,z=Yr(Bp((_-p)/(C||1)),0),X=ve(z);z--;)X[I?z:++k]=p,p+=C;return X}function L1(p,_){var C="";if(!p||_<1||_>G)return C;do _%2&&(C+=p),_=zp(_/2),_&&(p+=p);while(_);return C}function Rt(p,_){return X1(PL(p,_,ri),p+"")}function i9(p){return VI(wc(p))}function a9(p,_){var C=wc(p);return ng(C,wl(_,0,C.length))}function wh(p,_,C,I){if(!Tr(p))return p;_=hs(_,p);for(var k=-1,z=_.length,X=z-1,q=p;q!=null&&++kk?0:k+_),C=C>k?k:C,C<0&&(C+=k),k=_>C?0:C-_>>>0,_>>>=0;for(var z=ve(k);++I>>1,X=p[z];X!==null&&!mi(X)&&(C?X<=_:X<_)?I=z+1:k=z}return k}return P1(p,_,ri,C)}function P1(p,_,C,I){var k=0,z=p==null?0:p.length;if(z===0)return 0;_=C(_);for(var X=_!==_,q=_===null,ne=mi(_),Ce=_===r;k=i){var Ce=_?null:_9(p);if(Ce)return Ip(Ce);X=!1,k=fh,ne=new Sl}else ne=_?[]:q;e:for(;++I=I?p:Ni(p,_,C)}var lL=j6||function(p){return fn.clearTimeout(p)};function uL(p,_){if(_)return p.slice();var C=p.length,I=LI?LI(C):new p.constructor(C);return p.copy(I),I}function N1(p){var _=new p.constructor(p.byteLength);return new Op(_).set(new Op(p)),_}function c9(p,_){var C=_?N1(p.buffer):p.buffer;return new p.constructor(C,p.byteOffset,p.byteLength)}function f9(p){var _=new p.constructor(p.source,YD.exec(p));return _.lastIndex=p.lastIndex,_}function h9(p){return gh?cr(gh.call(p)):{}}function cL(p,_){var C=_?N1(p.buffer):p.buffer;return new p.constructor(C,p.byteOffset,p.length)}function fL(p,_){if(p!==_){var C=p!==r,I=p===null,k=p===p,z=mi(p),X=_!==r,q=_===null,ne=_===_,Ce=mi(_);if(!q&&!Ce&&!z&&p>_||z&&X&&ne&&!q&&!Ce||I&&X&&ne||!C&&ne||!k)return 1;if(!I&&!z&&!Ce&&p<_||Ce&&C&&k&&!I&&!z||q&&C&&k||!X&&k||!ne)return-1}return 0}function v9(p,_,C){for(var I=-1,k=p.criteria,z=_.criteria,X=k.length,q=C.length;++I=q)return ne;var Ce=C[I];return ne*(Ce=="desc"?-1:1)}}return p.index-_.index}function hL(p,_,C,I){for(var k=-1,z=p.length,X=C.length,q=-1,ne=_.length,Ce=Yr(z-X,0),Te=ve(ne+Ce),De=!I;++q1?C[k-1]:r,X=k>2?C[2]:r;for(z=p.length>3&&typeof z=="function"?(k--,z):r,X&&En(C[0],C[1],X)&&(z=k<3?r:z,k=1),_=cr(_);++I-1?k[z?_[X]:X]:r}}function yL(p){return yo(function(_){var C=_.length,I=C,k=ki.prototype.thru;for(p&&_.reverse();I--;){var z=_[I];if(typeof z!="function")throw new Ei(o);if(k&&!X&&tg(z)=="wrapper")var X=new ki([],!0)}for(I=X?I:C;++I1&&zt.reverse(),Te&&neq))return!1;var Ce=z.get(p),Te=z.get(_);if(Ce&&Te)return Ce==_&&Te==p;var De=-1,Be=!0,Qe=C&g?new Sl:r;for(z.set(p,_),z.set(_,p);++De1?"& ":"")+_[I],_=_.join(C>2?", ":" "),p.replace(L8,`{ /* [wrapped with `+_+`] */ -`)}function I9(p){return xt(p)||Tl(p)||!!(EI&&p&&p[EI])}function _o(p,_){var C=typeof p;return _=_??G,!!_&&(C=="number"||C!="symbol"&&G8.test(p))&&p>-1&&p%1==0&&p<_}function En(p,_,C){if(!Tr(C))return!1;var I=typeof _;return(I=="number"?ei(C)&&_o(_,C.length):I=="string"&&_ in C)?ua(C[_],p):!1}function W1(p,_){if(xt(p))return!1;var C=typeof p;return C=="number"||C=="symbol"||C=="boolean"||p==null||mi(p)?!0:A8.test(p)||!T8.test(p)||_!=null&&p in cr(_)}function L9(p){var _=typeof p;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?p!=="__proto__":p===null}function U1(p){var _=tg(p),C=B[_];if(typeof C!="function"||!(_ in Vt.prototype))return!1;if(p===C)return!0;var I=G1(C);return!!I&&p===I[0]}function P9(p){return!!II&&II in p}var R9=Pp?So:lS;function bh(p){var _=p&&p.constructor,C=typeof _=="function"&&_.prototype||vc;return p===C}function IL(p){return p===p&&!Tr(p)}function LL(p,_){return function(C){return C==null?!1:C[p]===_&&(_!==r||p in cr(C))}}function E9(p){var _=sg(p,function(I){return C.size===u&&C.clear(),I}),C=_.cache;return _}function k9(p,_){var C=p[1],I=_[1],k=C|I,z=k<(m|y|A),X=I==A&&C==w||I==A&&C==M&&p[7].length<=_[8]||I==(A|M)&&_[7].length<=_[8]&&C==w;if(!(z||X))return p;I&m&&(p[2]=_[2],k|=C&m?0:S);var q=_[3];if(q){var ne=p[3];p[3]=ne?hL(ne,q,_[4]):q,p[4]=ne?ls(p[3],c):_[4]}return q=_[5],q&&(ne=p[5],p[5]=ne?vL(ne,q,_[6]):q,p[6]=ne?ls(p[5],c):_[6]),q=_[7],q&&(p[7]=q),I&A&&(p[8]=p[8]==null?_[8]:wn(p[8],_[8])),p[9]==null&&(p[9]=_[9]),p[0]=_[0],p[1]=k,p}function O9(p){var _=[];if(p!=null)for(var C in cr(p))_.push(C);return _}function N9(p){return Ep.call(p)}function PL(p,_,C){return _=Yr(_===r?p.length-1:_,0),function(){for(var I=arguments,k=-1,z=Yr(I.length-_,0),X=ve(z);++k0){if(++_>=E)return arguments[0]}else _=0;return p.apply(r,arguments)}}function ng(p,_){var C=-1,I=p.length,k=I-1;for(_=_===r?I:_;++C<_;){var z=I1(C,k),X=p[z];p[z]=p[C],p[C]=X}return p.length=_,p}var NL=E9(function(p){var _=[];return p.charCodeAt(0)===46&&_.push(""),p.replace(M8,function(C,I,k,z){_.push(k?z.replace(O8,"$1"):I||C)}),_});function Ea(p){if(typeof p=="string"||mi(p))return p;var _=p+"";return _=="0"&&1/p==-Y?"-0":_}function Cl(p){if(p!=null){try{return Rp.call(p)}catch{}try{return p+""}catch{}}return""}function V9(p,_){return Ri(Le,function(C){var I="_."+C[0];_&C[1]&&!Mp(p,I)&&p.push(I)}),p.sort()}function FL(p){if(p instanceof Vt)return p.clone();var _=new ki(p.__wrapped__,p.__chain__);return _.__actions__=Qn(p.__actions__),_.__index__=p.__index__,_.__values__=p.__values__,_}function B9(p,_,C){(C?En(p,_,C):_===r)?_=1:_=Yr(Mt(_),0);var I=p==null?0:p.length;if(!I||_<1)return[];for(var k=0,z=0,X=ve(Bp(I/_));k1?p[_-1]:r;return C=typeof C=="function"?(p.pop(),C):r,HL(p,C)});function WL(p){var _=B(p);return _.__chain__=!0,_}function zY(p,_){return _(p),p}function ig(p,_){return _(p)}var GY=yo(function(p){var _=p.length,C=_?p[0]:0,I=this.__wrapped__,k=function(z){return S1(z,p)};return _>1||this.__actions__.length||!(I instanceof Vt)||!_o(C)?this.thru(k):(I=I.slice(C,+C+(_?1:0)),I.__actions__.push({func:ig,args:[k],thisArg:r}),new ki(I,this.__chain__).thru(function(z){return _&&!z.length&&z.push(r),z}))});function $Y(){return WL(this)}function HY(){return new ki(this.value(),this.__chain__)}function WY(){this.__values__===r&&(this.__values__=iP(this.value()));var p=this.__index__>=this.__values__.length,_=p?r:this.__values__[this.__index__++];return{done:p,value:_}}function UY(){return this}function YY(p){for(var _,C=this;C instanceof Hp;){var I=FL(C);I.__index__=0,I.__values__=r,_?k.__wrapped__=I:_=I;var k=I;C=C.__wrapped__}return k.__wrapped__=p,_}function XY(){var p=this.__wrapped__;if(p instanceof Vt){var _=p;return this.__actions__.length&&(_=new Vt(this)),_=_.reverse(),_.__actions__.push({func:ig,args:[Z1],thisArg:r}),new ki(_,this.__chain__)}return this.thru(Z1)}function ZY(){return oL(this.__wrapped__,this.__actions__)}var qY=jp(function(p,_,C){ir.call(p,C)?++p[C]:go(p,C,1)});function jY(p,_,C){var I=xt(p)?_I:z7;return C&&En(p,_,C)&&(_=r),I(p,ot(_,3))}function KY(p,_){var C=xt(p)?os:HI;return C(p,ot(_,3))}var JY=mL(VL),QY=mL(BL);function eX(p,_){return hn(ag(p,_),1)}function tX(p,_){return hn(ag(p,_),Y)}function rX(p,_,C){return C=C===r?1:Mt(C),hn(ag(p,_),C)}function UL(p,_){var C=xt(p)?Ri:cs;return C(p,ot(_,3))}function YL(p,_){var C=xt(p)?w6:$I;return C(p,ot(_,3))}var nX=jp(function(p,_,C){ir.call(p,C)?p[C].push(_):go(p,C,[_])});function iX(p,_,C,I){p=ei(p)?p:wc(p),C=C&&!I?Mt(C):0;var k=p.length;return C<0&&(C=Yr(k+C,0)),cg(p)?C<=k&&p.indexOf(_,C)>-1:!!k&&uc(p,_,C)>-1}var aX=Rt(function(p,_,C){var I=-1,k=typeof _=="function",z=ei(p)?ve(p.length):[];return cs(p,function(X){z[++I]=k?di(_,X,C):_h(X,_,C)}),z}),oX=jp(function(p,_,C){go(p,C,_)});function ag(p,_){var C=xt(p)?br:qI;return C(p,ot(_,3))}function sX(p,_,C,I){return p==null?[]:(xt(_)||(_=_==null?[]:[_]),C=I?r:C,xt(C)||(C=C==null?[]:[C]),QI(p,_,C))}var lX=jp(function(p,_,C){p[C?0:1].push(_)},function(){return[[],[]]});function uX(p,_,C){var I=xt(p)?s1:bI,k=arguments.length<3;return I(p,ot(_,4),C,k,cs)}function cX(p,_,C){var I=xt(p)?x6:bI,k=arguments.length<3;return I(p,ot(_,4),C,k,$I)}function fX(p,_){var C=xt(p)?os:HI;return C(p,lg(ot(_,3)))}function hX(p){var _=xt(p)?VI:i9;return _(p)}function vX(p,_,C){(C?En(p,_,C):_===r)?_=1:_=Mt(_);var I=xt(p)?O7:a9;return I(p,_)}function dX(p){var _=xt(p)?N7:s9;return _(p)}function pX(p){if(p==null)return 0;if(ei(p))return cg(p)?fc(p):p.length;var _=xn(p);return _==W||_==ae?p.size:A1(p).length}function gX(p,_,C){var I=xt(p)?l1:l9;return C&&En(p,_,C)&&(_=r),I(p,ot(_,3))}var mX=Rt(function(p,_){if(p==null)return[];var C=_.length;return C>1&&En(p,_[0],_[1])?_=[]:C>2&&En(_[0],_[1],_[2])&&(_=[_[0]]),QI(p,hn(_,1),[])}),og=K6||function(){return fn.Date.now()};function yX(p,_){if(typeof _!="function")throw new Ei(o);return p=Mt(p),function(){if(--p<1)return _.apply(this,arguments)}}function XL(p,_,C){return _=C?r:_,_=p&&_==null?p.length:_,mo(p,A,r,r,r,r,_)}function ZL(p,_){var C;if(typeof _!="function")throw new Ei(o);return p=Mt(p),function(){return--p>0&&(C=_.apply(this,arguments)),p<=1&&(_=r),C}}var j1=Rt(function(p,_,C){var I=m;if(C.length){var k=ls(C,_c(j1));I|=T}return mo(p,I,_,C,k)}),qL=Rt(function(p,_,C){var I=m|y;if(C.length){var k=ls(C,_c(qL));I|=T}return mo(_,I,p,C,k)});function jL(p,_,C){_=C?r:_;var I=mo(p,w,r,r,r,r,r,_);return I.placeholder=jL.placeholder,I}function KL(p,_,C){_=C?r:_;var I=mo(p,x,r,r,r,r,r,_);return I.placeholder=KL.placeholder,I}function JL(p,_,C){var I,k,z,X,q,ne,Ce=0,Ae=!1,De=!1,Be=!0;if(typeof p!="function")throw new Ei(o);_=Vi(_)||0,Tr(C)&&(Ae=!!C.leading,De="maxWait"in C,z=De?Yr(Vi(C.maxWait)||0,_):z,Be="trailing"in C?!!C.trailing:Be);function Qe(Or){var ca=I,xo=k;return I=k=r,Ce=Or,X=p.apply(xo,ca),X}function lt(Or){return Ce=Or,q=Ch(Nt,_),Ae?Qe(Or):X}function Lt(Or){var ca=Or-ne,xo=Or-Ce,mP=_-ca;return De?wn(mP,z-xo):mP}function ut(Or){var ca=Or-ne,xo=Or-Ce;return ne===r||ca>=_||ca<0||De&&xo>=z}function Nt(){var Or=og();if(ut(Or))return zt(Or);q=Ch(Nt,Lt(Or))}function zt(Or){return q=r,Be&&I?Qe(Or):(I=k=r,X)}function yi(){q!==r&&lL(q),Ce=0,I=ne=k=q=r}function kn(){return q===r?X:zt(og())}function _i(){var Or=og(),ca=ut(Or);if(I=arguments,k=this,ne=Or,ca){if(q===r)return lt(ne);if(De)return lL(q),q=Ch(Nt,_),Qe(ne)}return q===r&&(q=Ch(Nt,_)),X}return _i.cancel=yi,_i.flush=kn,_i}var _X=Rt(function(p,_){return GI(p,1,_)}),SX=Rt(function(p,_,C){return GI(p,Vi(_)||0,C)});function wX(p){return mo(p,D)}function sg(p,_){if(typeof p!="function"||_!=null&&typeof _!="function")throw new Ei(o);var C=function(){var I=arguments,k=_?_.apply(this,I):I[0],z=C.cache;if(z.has(k))return z.get(k);var X=p.apply(this,I);return C.cache=z.set(k,X)||z,X};return C.cache=new(sg.Cache||po),C}sg.Cache=po;function lg(p){if(typeof p!="function")throw new Ei(o);return function(){var _=arguments;switch(_.length){case 0:return!p.call(this);case 1:return!p.call(this,_[0]);case 2:return!p.call(this,_[0],_[1]);case 3:return!p.call(this,_[0],_[1],_[2])}return!p.apply(this,_)}}function xX(p){return ZL(2,p)}var bX=u9(function(p,_){_=_.length==1&&xt(_[0])?br(_[0],pi(ot())):br(hn(_,1),pi(ot()));var C=_.length;return Rt(function(I){for(var k=-1,z=wn(I.length,C);++k=_}),Tl=YI(function(){return arguments}())?YI:function(p){return Dr(p)&&ir.call(p,"callee")&&!RI.call(p,"callee")},xt=ve.isArray,VX=vI?pi(vI):Y7;function ei(p){return p!=null&&ug(p.length)&&!So(p)}function kr(p){return Dr(p)&&ei(p)}function BX(p){return p===!0||p===!1||Dr(p)&&Rn(p)==le}var ds=Q6||lS,zX=dI?pi(dI):X7;function GX(p){return Dr(p)&&p.nodeType===1&&!Th(p)}function $X(p){if(p==null)return!0;if(ei(p)&&(xt(p)||typeof p=="string"||typeof p.splice=="function"||ds(p)||Sc(p)||Tl(p)))return!p.length;var _=xn(p);if(_==W||_==ae)return!p.size;if(bh(p))return!A1(p).length;for(var C in p)if(ir.call(p,C))return!1;return!0}function HX(p,_){return Sh(p,_)}function WX(p,_,C){C=typeof C=="function"?C:r;var I=C?C(p,_):r;return I===r?Sh(p,_,r,C):!!I}function J1(p){if(!Dr(p))return!1;var _=Rn(p);return _==be||_==me||typeof p.message=="string"&&typeof p.name=="string"&&!Th(p)}function UX(p){return typeof p=="number"&&kI(p)}function So(p){if(!Tr(p))return!1;var _=Rn(p);return _==Re||_==H||_==ie||_==U}function eP(p){return typeof p=="number"&&p==Mt(p)}function ug(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=G}function Tr(p){var _=typeof p;return p!=null&&(_=="object"||_=="function")}function Dr(p){return p!=null&&typeof p=="object"}var tP=pI?pi(pI):q7;function YX(p,_){return p===_||T1(p,_,$1(_))}function XX(p,_,C){return C=typeof C=="function"?C:r,T1(p,_,$1(_),C)}function ZX(p){return rP(p)&&p!=+p}function qX(p){if(R9(p))throw new _t(a);return XI(p)}function jX(p){return p===null}function KX(p){return p==null}function rP(p){return typeof p=="number"||Dr(p)&&Rn(p)==te}function Th(p){if(!Dr(p)||Rn(p)!=fe)return!1;var _=Np(p);if(_===null)return!0;var C=ir.call(_,"constructor")&&_.constructor;return typeof C=="function"&&C instanceof C&&Rp.call(C)==X6}var Q1=gI?pi(gI):j7;function JX(p){return eP(p)&&p>=-G&&p<=G}var nP=mI?pi(mI):K7;function cg(p){return typeof p=="string"||!xt(p)&&Dr(p)&&Rn(p)==xe}function mi(p){return typeof p=="symbol"||Dr(p)&&Rn(p)==Pe}var Sc=yI?pi(yI):J7;function QX(p){return p===r}function eZ(p){return Dr(p)&&xn(p)==ue}function tZ(p){return Dr(p)&&Rn(p)==Ve}var rZ=eg(M1),nZ=eg(function(p,_){return p<=_});function iP(p){if(!p)return[];if(ei(p))return cg(p)?sa(p):Qn(p);if(hh&&p[hh])return O6(p[hh]());var _=xn(p),C=_==W?d1:_==ae?Ip:wc;return C(p)}function wo(p){if(!p)return p===0?p:0;if(p=Vi(p),p===Y||p===-Y){var _=p<0?-1:1;return _*Z}return p===p?p:0}function Mt(p){var _=wo(p),C=_%1;return _===_?C?_-C:_:0}function aP(p){return p?wl(Mt(p),0,re):0}function Vi(p){if(typeof p=="number")return p;if(mi(p))return J;if(Tr(p)){var _=typeof p.valueOf=="function"?p.valueOf():p;p=Tr(_)?_+"":_}if(typeof p!="string")return p===0?p:+p;p=CI(p);var C=V8.test(p);return C||z8.test(p)?y6(p.slice(2),C?2:8):F8.test(p)?J:+p}function oP(p){return Ra(p,ti(p))}function iZ(p){return p?wl(Mt(p),-G,G):p===0?p:0}function er(p){return p==null?"":gi(p)}var aZ=mc(function(p,_){if(bh(_)||ei(_)){Ra(_,nn(_),p);return}for(var C in _)ir.call(_,C)&&mh(p,C,_[C])}),sP=mc(function(p,_){Ra(_,ti(_),p)}),fg=mc(function(p,_,C,I){Ra(_,ti(_),p,I)}),oZ=mc(function(p,_,C,I){Ra(_,nn(_),p,I)}),sZ=yo(S1);function lZ(p,_){var C=gc(p);return _==null?C:BI(C,_)}var uZ=Rt(function(p,_){p=cr(p);var C=-1,I=_.length,k=I>2?_[2]:r;for(k&&En(_[0],_[1],k)&&(I=1);++C1),z}),Ra(p,z1(p),C),I&&(C=Oi(C,f|h|v,S9));for(var k=_.length;k--;)R1(C,_[k]);return C});function MZ(p,_){return uP(p,lg(ot(_)))}var DZ=yo(function(p,_){return p==null?{}:t9(p,_)});function uP(p,_){if(p==null)return{};var C=br(z1(p),function(I){return[I]});return _=ot(_),eL(p,C,function(I,k){return _(I,k[0])})}function IZ(p,_,C){_=hs(_,p);var I=-1,k=_.length;for(k||(k=1,p=r);++I_){var I=p;p=_,_=I}if(C||p%1||_%1){var k=OI();return wn(p+k*(_-p+m6("1e-"+((k+"").length-1))),_)}return I1(p,_)}var zZ=yc(function(p,_,C){return _=_.toLowerCase(),p+(C?hP(_):_)});function hP(p){return rS(er(p).toLowerCase())}function vP(p){return p=er(p),p&&p.replace($8,L6).replace(s6,"")}function GZ(p,_,C){p=er(p),_=gi(_);var I=p.length;C=C===r?I:wl(Mt(C),0,I);var k=C;return C-=_.length,C>=0&&p.slice(C,k)==_}function $Z(p){return p=er(p),p&&x8.test(p)?p.replace(WD,P6):p}function HZ(p){return p=er(p),p&&D8.test(p)?p.replace(K_,"\\$&"):p}var WZ=yc(function(p,_,C){return p+(C?"-":"")+_.toLowerCase()}),UZ=yc(function(p,_,C){return p+(C?" ":"")+_.toLowerCase()}),YZ=gL("toLowerCase");function XZ(p,_,C){p=er(p),_=Mt(_);var I=_?fc(p):0;if(!_||I>=_)return p;var k=(_-I)/2;return Qp(zp(k),C)+p+Qp(Bp(k),C)}function ZZ(p,_,C){p=er(p),_=Mt(_);var I=_?fc(p):0;return _&&I<_?p+Qp(_-I,C):p}function qZ(p,_,C){p=er(p),_=Mt(_);var I=_?fc(p):0;return _&&I<_?Qp(_-I,C)+p:p}function jZ(p,_,C){return C||_==null?_=0:_&&(_=+_),n7(er(p).replace(J_,""),_||0)}function KZ(p,_,C){return(C?En(p,_,C):_===r)?_=1:_=Mt(_),L1(er(p),_)}function JZ(){var p=arguments,_=er(p[0]);return p.length<3?_:_.replace(p[1],p[2])}var QZ=yc(function(p,_,C){return p+(C?"_":"")+_.toLowerCase()});function eq(p,_,C){return C&&typeof C!="number"&&En(p,_,C)&&(_=C=r),C=C===r?re:C>>>0,C?(p=er(p),p&&(typeof _=="string"||_!=null&&!Q1(_))&&(_=gi(_),!_&&cc(p))?vs(sa(p),0,C):p.split(_,C)):[]}var tq=yc(function(p,_,C){return p+(C?" ":"")+rS(_)});function rq(p,_,C){return p=er(p),C=C==null?0:wl(Mt(C),0,p.length),_=gi(_),p.slice(C,C+_.length)==_}function nq(p,_,C){var I=B.templateSettings;C&&En(p,_,C)&&(_=r),p=er(p),_=fg({},_,I,bL);var k=fg({},_.imports,I.imports,bL),z=nn(k),X=v1(k,z),q,ne,Ce=0,Ae=_.interpolate||Cp,De="__p += '",Be=p1((_.escape||Cp).source+"|"+Ae.source+"|"+(Ae===UD?N8:Cp).source+"|"+(_.evaluate||Cp).source+"|$","g"),Qe="//# sourceURL="+(ir.call(_,"sourceURL")?(_.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++h6+"]")+` +`)}function I9(p){return xt(p)||Tl(p)||!!(EI&&p&&p[EI])}function _o(p,_){var C=typeof p;return _=_??G,!!_&&(C=="number"||C!="symbol"&&G8.test(p))&&p>-1&&p%1==0&&p<_}function En(p,_,C){if(!Tr(C))return!1;var I=typeof _;return(I=="number"?ei(C)&&_o(_,C.length):I=="string"&&_ in C)?ua(C[_],p):!1}function W1(p,_){if(xt(p))return!1;var C=typeof p;return C=="number"||C=="symbol"||C=="boolean"||p==null||mi(p)?!0:A8.test(p)||!T8.test(p)||_!=null&&p in cr(_)}function L9(p){var _=typeof p;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?p!=="__proto__":p===null}function U1(p){var _=tg(p),C=B[_];if(typeof C!="function"||!(_ in Vt.prototype))return!1;if(p===C)return!0;var I=G1(C);return!!I&&p===I[0]}function P9(p){return!!II&&II in p}var R9=Pp?So:lS;function bh(p){var _=p&&p.constructor,C=typeof _=="function"&&_.prototype||vc;return p===C}function IL(p){return p===p&&!Tr(p)}function LL(p,_){return function(C){return C==null?!1:C[p]===_&&(_!==r||p in cr(C))}}function E9(p){var _=sg(p,function(I){return C.size===u&&C.clear(),I}),C=_.cache;return _}function k9(p,_){var C=p[1],I=_[1],k=C|I,z=k<(m|y|A),X=I==A&&C==w||I==A&&C==M&&p[7].length<=_[8]||I==(A|M)&&_[7].length<=_[8]&&C==w;if(!(z||X))return p;I&m&&(p[2]=_[2],k|=C&m?0:S);var q=_[3];if(q){var ne=p[3];p[3]=ne?hL(ne,q,_[4]):q,p[4]=ne?ls(p[3],c):_[4]}return q=_[5],q&&(ne=p[5],p[5]=ne?vL(ne,q,_[6]):q,p[6]=ne?ls(p[5],c):_[6]),q=_[7],q&&(p[7]=q),I&A&&(p[8]=p[8]==null?_[8]:wn(p[8],_[8])),p[9]==null&&(p[9]=_[9]),p[0]=_[0],p[1]=k,p}function O9(p){var _=[];if(p!=null)for(var C in cr(p))_.push(C);return _}function N9(p){return Ep.call(p)}function PL(p,_,C){return _=Yr(_===r?p.length-1:_,0),function(){for(var I=arguments,k=-1,z=Yr(I.length-_,0),X=ve(z);++k0){if(++_>=E)return arguments[0]}else _=0;return p.apply(r,arguments)}}function ng(p,_){var C=-1,I=p.length,k=I-1;for(_=_===r?I:_;++C<_;){var z=I1(C,k),X=p[z];p[z]=p[C],p[C]=X}return p.length=_,p}var NL=E9(function(p){var _=[];return p.charCodeAt(0)===46&&_.push(""),p.replace(M8,function(C,I,k,z){_.push(k?z.replace(O8,"$1"):I||C)}),_});function Ra(p){if(typeof p=="string"||mi(p))return p;var _=p+"";return _=="0"&&1/p==-Y?"-0":_}function Cl(p){if(p!=null){try{return Rp.call(p)}catch{}try{return p+""}catch{}}return""}function V9(p,_){return Ri(Le,function(C){var I="_."+C[0];_&C[1]&&!Mp(p,I)&&p.push(I)}),p.sort()}function FL(p){if(p instanceof Vt)return p.clone();var _=new ki(p.__wrapped__,p.__chain__);return _.__actions__=Qn(p.__actions__),_.__index__=p.__index__,_.__values__=p.__values__,_}function B9(p,_,C){(C?En(p,_,C):_===r)?_=1:_=Yr(Mt(_),0);var I=p==null?0:p.length;if(!I||_<1)return[];for(var k=0,z=0,X=ve(Bp(I/_));k1?p[_-1]:r;return C=typeof C=="function"?(p.pop(),C):r,HL(p,C)});function WL(p){var _=B(p);return _.__chain__=!0,_}function zY(p,_){return _(p),p}function ig(p,_){return _(p)}var GY=yo(function(p){var _=p.length,C=_?p[0]:0,I=this.__wrapped__,k=function(z){return S1(z,p)};return _>1||this.__actions__.length||!(I instanceof Vt)||!_o(C)?this.thru(k):(I=I.slice(C,+C+(_?1:0)),I.__actions__.push({func:ig,args:[k],thisArg:r}),new ki(I,this.__chain__).thru(function(z){return _&&!z.length&&z.push(r),z}))});function $Y(){return WL(this)}function HY(){return new ki(this.value(),this.__chain__)}function WY(){this.__values__===r&&(this.__values__=iP(this.value()));var p=this.__index__>=this.__values__.length,_=p?r:this.__values__[this.__index__++];return{done:p,value:_}}function UY(){return this}function YY(p){for(var _,C=this;C instanceof Hp;){var I=FL(C);I.__index__=0,I.__values__=r,_?k.__wrapped__=I:_=I;var k=I;C=C.__wrapped__}return k.__wrapped__=p,_}function XY(){var p=this.__wrapped__;if(p instanceof Vt){var _=p;return this.__actions__.length&&(_=new Vt(this)),_=_.reverse(),_.__actions__.push({func:ig,args:[Z1],thisArg:r}),new ki(_,this.__chain__)}return this.thru(Z1)}function ZY(){return oL(this.__wrapped__,this.__actions__)}var qY=jp(function(p,_,C){ir.call(p,C)?++p[C]:go(p,C,1)});function jY(p,_,C){var I=xt(p)?_I:z7;return C&&En(p,_,C)&&(_=r),I(p,ot(_,3))}function KY(p,_){var C=xt(p)?os:HI;return C(p,ot(_,3))}var JY=mL(VL),QY=mL(BL);function eX(p,_){return hn(ag(p,_),1)}function tX(p,_){return hn(ag(p,_),Y)}function rX(p,_,C){return C=C===r?1:Mt(C),hn(ag(p,_),C)}function UL(p,_){var C=xt(p)?Ri:cs;return C(p,ot(_,3))}function YL(p,_){var C=xt(p)?w6:$I;return C(p,ot(_,3))}var nX=jp(function(p,_,C){ir.call(p,C)?p[C].push(_):go(p,C,[_])});function iX(p,_,C,I){p=ei(p)?p:wc(p),C=C&&!I?Mt(C):0;var k=p.length;return C<0&&(C=Yr(k+C,0)),cg(p)?C<=k&&p.indexOf(_,C)>-1:!!k&&uc(p,_,C)>-1}var aX=Rt(function(p,_,C){var I=-1,k=typeof _=="function",z=ei(p)?ve(p.length):[];return cs(p,function(X){z[++I]=k?di(_,X,C):_h(X,_,C)}),z}),oX=jp(function(p,_,C){go(p,C,_)});function ag(p,_){var C=xt(p)?br:qI;return C(p,ot(_,3))}function sX(p,_,C,I){return p==null?[]:(xt(_)||(_=_==null?[]:[_]),C=I?r:C,xt(C)||(C=C==null?[]:[C]),QI(p,_,C))}var lX=jp(function(p,_,C){p[C?0:1].push(_)},function(){return[[],[]]});function uX(p,_,C){var I=xt(p)?s1:bI,k=arguments.length<3;return I(p,ot(_,4),C,k,cs)}function cX(p,_,C){var I=xt(p)?x6:bI,k=arguments.length<3;return I(p,ot(_,4),C,k,$I)}function fX(p,_){var C=xt(p)?os:HI;return C(p,lg(ot(_,3)))}function hX(p){var _=xt(p)?VI:i9;return _(p)}function vX(p,_,C){(C?En(p,_,C):_===r)?_=1:_=Mt(_);var I=xt(p)?O7:a9;return I(p,_)}function dX(p){var _=xt(p)?N7:s9;return _(p)}function pX(p){if(p==null)return 0;if(ei(p))return cg(p)?fc(p):p.length;var _=xn(p);return _==W||_==ae?p.size:A1(p).length}function gX(p,_,C){var I=xt(p)?l1:l9;return C&&En(p,_,C)&&(_=r),I(p,ot(_,3))}var mX=Rt(function(p,_){if(p==null)return[];var C=_.length;return C>1&&En(p,_[0],_[1])?_=[]:C>2&&En(_[0],_[1],_[2])&&(_=[_[0]]),QI(p,hn(_,1),[])}),og=K6||function(){return fn.Date.now()};function yX(p,_){if(typeof _!="function")throw new Ei(o);return p=Mt(p),function(){if(--p<1)return _.apply(this,arguments)}}function XL(p,_,C){return _=C?r:_,_=p&&_==null?p.length:_,mo(p,A,r,r,r,r,_)}function ZL(p,_){var C;if(typeof _!="function")throw new Ei(o);return p=Mt(p),function(){return--p>0&&(C=_.apply(this,arguments)),p<=1&&(_=r),C}}var j1=Rt(function(p,_,C){var I=m;if(C.length){var k=ls(C,_c(j1));I|=T}return mo(p,I,_,C,k)}),qL=Rt(function(p,_,C){var I=m|y;if(C.length){var k=ls(C,_c(qL));I|=T}return mo(_,I,p,C,k)});function jL(p,_,C){_=C?r:_;var I=mo(p,w,r,r,r,r,r,_);return I.placeholder=jL.placeholder,I}function KL(p,_,C){_=C?r:_;var I=mo(p,x,r,r,r,r,r,_);return I.placeholder=KL.placeholder,I}function JL(p,_,C){var I,k,z,X,q,ne,Ce=0,Te=!1,De=!1,Be=!0;if(typeof p!="function")throw new Ei(o);_=Vi(_)||0,Tr(C)&&(Te=!!C.leading,De="maxWait"in C,z=De?Yr(Vi(C.maxWait)||0,_):z,Be="trailing"in C?!!C.trailing:Be);function Qe(Or){var ca=I,xo=k;return I=k=r,Ce=Or,X=p.apply(xo,ca),X}function lt(Or){return Ce=Or,q=Ch(Nt,_),Te?Qe(Or):X}function Lt(Or){var ca=Or-ne,xo=Or-Ce,mP=_-ca;return De?wn(mP,z-xo):mP}function ut(Or){var ca=Or-ne,xo=Or-Ce;return ne===r||ca>=_||ca<0||De&&xo>=z}function Nt(){var Or=og();if(ut(Or))return zt(Or);q=Ch(Nt,Lt(Or))}function zt(Or){return q=r,Be&&I?Qe(Or):(I=k=r,X)}function yi(){q!==r&&lL(q),Ce=0,I=ne=k=q=r}function kn(){return q===r?X:zt(og())}function _i(){var Or=og(),ca=ut(Or);if(I=arguments,k=this,ne=Or,ca){if(q===r)return lt(ne);if(De)return lL(q),q=Ch(Nt,_),Qe(ne)}return q===r&&(q=Ch(Nt,_)),X}return _i.cancel=yi,_i.flush=kn,_i}var _X=Rt(function(p,_){return GI(p,1,_)}),SX=Rt(function(p,_,C){return GI(p,Vi(_)||0,C)});function wX(p){return mo(p,D)}function sg(p,_){if(typeof p!="function"||_!=null&&typeof _!="function")throw new Ei(o);var C=function(){var I=arguments,k=_?_.apply(this,I):I[0],z=C.cache;if(z.has(k))return z.get(k);var X=p.apply(this,I);return C.cache=z.set(k,X)||z,X};return C.cache=new(sg.Cache||po),C}sg.Cache=po;function lg(p){if(typeof p!="function")throw new Ei(o);return function(){var _=arguments;switch(_.length){case 0:return!p.call(this);case 1:return!p.call(this,_[0]);case 2:return!p.call(this,_[0],_[1]);case 3:return!p.call(this,_[0],_[1],_[2])}return!p.apply(this,_)}}function xX(p){return ZL(2,p)}var bX=u9(function(p,_){_=_.length==1&&xt(_[0])?br(_[0],pi(ot())):br(hn(_,1),pi(ot()));var C=_.length;return Rt(function(I){for(var k=-1,z=wn(I.length,C);++k=_}),Tl=YI(function(){return arguments}())?YI:function(p){return Dr(p)&&ir.call(p,"callee")&&!RI.call(p,"callee")},xt=ve.isArray,VX=vI?pi(vI):Y7;function ei(p){return p!=null&&ug(p.length)&&!So(p)}function kr(p){return Dr(p)&&ei(p)}function BX(p){return p===!0||p===!1||Dr(p)&&Rn(p)==le}var ds=Q6||lS,zX=dI?pi(dI):X7;function GX(p){return Dr(p)&&p.nodeType===1&&!Th(p)}function $X(p){if(p==null)return!0;if(ei(p)&&(xt(p)||typeof p=="string"||typeof p.splice=="function"||ds(p)||Sc(p)||Tl(p)))return!p.length;var _=xn(p);if(_==W||_==ae)return!p.size;if(bh(p))return!A1(p).length;for(var C in p)if(ir.call(p,C))return!1;return!0}function HX(p,_){return Sh(p,_)}function WX(p,_,C){C=typeof C=="function"?C:r;var I=C?C(p,_):r;return I===r?Sh(p,_,r,C):!!I}function J1(p){if(!Dr(p))return!1;var _=Rn(p);return _==be||_==me||typeof p.message=="string"&&typeof p.name=="string"&&!Th(p)}function UX(p){return typeof p=="number"&&kI(p)}function So(p){if(!Tr(p))return!1;var _=Rn(p);return _==Re||_==H||_==ie||_==U}function eP(p){return typeof p=="number"&&p==Mt(p)}function ug(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=G}function Tr(p){var _=typeof p;return p!=null&&(_=="object"||_=="function")}function Dr(p){return p!=null&&typeof p=="object"}var tP=pI?pi(pI):q7;function YX(p,_){return p===_||T1(p,_,$1(_))}function XX(p,_,C){return C=typeof C=="function"?C:r,T1(p,_,$1(_),C)}function ZX(p){return rP(p)&&p!=+p}function qX(p){if(R9(p))throw new _t(a);return XI(p)}function jX(p){return p===null}function KX(p){return p==null}function rP(p){return typeof p=="number"||Dr(p)&&Rn(p)==te}function Th(p){if(!Dr(p)||Rn(p)!=fe)return!1;var _=Np(p);if(_===null)return!0;var C=ir.call(_,"constructor")&&_.constructor;return typeof C=="function"&&C instanceof C&&Rp.call(C)==X6}var Q1=gI?pi(gI):j7;function JX(p){return eP(p)&&p>=-G&&p<=G}var nP=mI?pi(mI):K7;function cg(p){return typeof p=="string"||!xt(p)&&Dr(p)&&Rn(p)==xe}function mi(p){return typeof p=="symbol"||Dr(p)&&Rn(p)==Pe}var Sc=yI?pi(yI):J7;function QX(p){return p===r}function eZ(p){return Dr(p)&&xn(p)==ue}function tZ(p){return Dr(p)&&Rn(p)==Ve}var rZ=eg(M1),nZ=eg(function(p,_){return p<=_});function iP(p){if(!p)return[];if(ei(p))return cg(p)?sa(p):Qn(p);if(hh&&p[hh])return O6(p[hh]());var _=xn(p),C=_==W?d1:_==ae?Ip:wc;return C(p)}function wo(p){if(!p)return p===0?p:0;if(p=Vi(p),p===Y||p===-Y){var _=p<0?-1:1;return _*Z}return p===p?p:0}function Mt(p){var _=wo(p),C=_%1;return _===_?C?_-C:_:0}function aP(p){return p?wl(Mt(p),0,re):0}function Vi(p){if(typeof p=="number")return p;if(mi(p))return J;if(Tr(p)){var _=typeof p.valueOf=="function"?p.valueOf():p;p=Tr(_)?_+"":_}if(typeof p!="string")return p===0?p:+p;p=CI(p);var C=V8.test(p);return C||z8.test(p)?y6(p.slice(2),C?2:8):F8.test(p)?J:+p}function oP(p){return Pa(p,ti(p))}function iZ(p){return p?wl(Mt(p),-G,G):p===0?p:0}function Qt(p){return p==null?"":gi(p)}var aZ=mc(function(p,_){if(bh(_)||ei(_)){Pa(_,nn(_),p);return}for(var C in _)ir.call(_,C)&&mh(p,C,_[C])}),sP=mc(function(p,_){Pa(_,ti(_),p)}),fg=mc(function(p,_,C,I){Pa(_,ti(_),p,I)}),oZ=mc(function(p,_,C,I){Pa(_,nn(_),p,I)}),sZ=yo(S1);function lZ(p,_){var C=gc(p);return _==null?C:BI(C,_)}var uZ=Rt(function(p,_){p=cr(p);var C=-1,I=_.length,k=I>2?_[2]:r;for(k&&En(_[0],_[1],k)&&(I=1);++C1),z}),Pa(p,z1(p),C),I&&(C=Oi(C,f|h|v,S9));for(var k=_.length;k--;)R1(C,_[k]);return C});function MZ(p,_){return uP(p,lg(ot(_)))}var DZ=yo(function(p,_){return p==null?{}:t9(p,_)});function uP(p,_){if(p==null)return{};var C=br(z1(p),function(I){return[I]});return _=ot(_),eL(p,C,function(I,k){return _(I,k[0])})}function IZ(p,_,C){_=hs(_,p);var I=-1,k=_.length;for(k||(k=1,p=r);++I_){var I=p;p=_,_=I}if(C||p%1||_%1){var k=OI();return wn(p+k*(_-p+m6("1e-"+((k+"").length-1))),_)}return I1(p,_)}var zZ=yc(function(p,_,C){return _=_.toLowerCase(),p+(C?hP(_):_)});function hP(p){return rS(Qt(p).toLowerCase())}function vP(p){return p=Qt(p),p&&p.replace($8,L6).replace(s6,"")}function GZ(p,_,C){p=Qt(p),_=gi(_);var I=p.length;C=C===r?I:wl(Mt(C),0,I);var k=C;return C-=_.length,C>=0&&p.slice(C,k)==_}function $Z(p){return p=Qt(p),p&&x8.test(p)?p.replace(WD,P6):p}function HZ(p){return p=Qt(p),p&&D8.test(p)?p.replace(K_,"\\$&"):p}var WZ=yc(function(p,_,C){return p+(C?"-":"")+_.toLowerCase()}),UZ=yc(function(p,_,C){return p+(C?" ":"")+_.toLowerCase()}),YZ=gL("toLowerCase");function XZ(p,_,C){p=Qt(p),_=Mt(_);var I=_?fc(p):0;if(!_||I>=_)return p;var k=(_-I)/2;return Qp(zp(k),C)+p+Qp(Bp(k),C)}function ZZ(p,_,C){p=Qt(p),_=Mt(_);var I=_?fc(p):0;return _&&I<_?p+Qp(_-I,C):p}function qZ(p,_,C){p=Qt(p),_=Mt(_);var I=_?fc(p):0;return _&&I<_?Qp(_-I,C)+p:p}function jZ(p,_,C){return C||_==null?_=0:_&&(_=+_),n7(Qt(p).replace(J_,""),_||0)}function KZ(p,_,C){return(C?En(p,_,C):_===r)?_=1:_=Mt(_),L1(Qt(p),_)}function JZ(){var p=arguments,_=Qt(p[0]);return p.length<3?_:_.replace(p[1],p[2])}var QZ=yc(function(p,_,C){return p+(C?"_":"")+_.toLowerCase()});function eq(p,_,C){return C&&typeof C!="number"&&En(p,_,C)&&(_=C=r),C=C===r?re:C>>>0,C?(p=Qt(p),p&&(typeof _=="string"||_!=null&&!Q1(_))&&(_=gi(_),!_&&cc(p))?vs(sa(p),0,C):p.split(_,C)):[]}var tq=yc(function(p,_,C){return p+(C?" ":"")+rS(_)});function rq(p,_,C){return p=Qt(p),C=C==null?0:wl(Mt(C),0,p.length),_=gi(_),p.slice(C,C+_.length)==_}function nq(p,_,C){var I=B.templateSettings;C&&En(p,_,C)&&(_=r),p=Qt(p),_=fg({},_,I,bL);var k=fg({},_.imports,I.imports,bL),z=nn(k),X=v1(k,z),q,ne,Ce=0,Te=_.interpolate||Cp,De="__p += '",Be=p1((_.escape||Cp).source+"|"+Te.source+"|"+(Te===UD?N8:Cp).source+"|"+(_.evaluate||Cp).source+"|$","g"),Qe="//# sourceURL="+(ir.call(_,"sourceURL")?(_.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++h6+"]")+` `;p.replace(Be,function(ut,Nt,zt,yi,kn,_i){return zt||(zt=yi),De+=p.slice(Ce,_i).replace(H8,R6),Nt&&(q=!0,De+=`' + __e(`+Nt+`) + '`),kn&&(ne=!0,De+=`'; @@ -40,30 +40,30 @@ __p += '`),zt&&(De+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+De+`return __p -}`;var Lt=pP(function(){return Xt(z,Qe+"return "+De).apply(r,X)});if(Lt.source=De,J1(Lt))throw Lt;return Lt}function iq(p){return er(p).toLowerCase()}function aq(p){return er(p).toUpperCase()}function oq(p,_,C){if(p=er(p),p&&(C||_===r))return CI(p);if(!p||!(_=gi(_)))return p;var I=sa(p),k=sa(_),z=TI(I,k),X=AI(I,k)+1;return vs(I,z,X).join("")}function sq(p,_,C){if(p=er(p),p&&(C||_===r))return p.slice(0,DI(p)+1);if(!p||!(_=gi(_)))return p;var I=sa(p),k=AI(I,sa(_))+1;return vs(I,0,k).join("")}function lq(p,_,C){if(p=er(p),p&&(C||_===r))return p.replace(J_,"");if(!p||!(_=gi(_)))return p;var I=sa(p),k=TI(I,sa(_));return vs(I,k).join("")}function uq(p,_){var C=L,I=P;if(Tr(_)){var k="separator"in _?_.separator:k;C="length"in _?Mt(_.length):C,I="omission"in _?gi(_.omission):I}p=er(p);var z=p.length;if(cc(p)){var X=sa(p);z=X.length}if(C>=z)return p;var q=C-fc(I);if(q<1)return I;var ne=X?vs(X,0,q).join(""):p.slice(0,q);if(k===r)return ne+I;if(X&&(q+=ne.length-q),Q1(k)){if(p.slice(q).search(k)){var Ce,Ae=ne;for(k.global||(k=p1(k.source,er(YD.exec(k))+"g")),k.lastIndex=0;Ce=k.exec(Ae);)var De=Ce.index;ne=ne.slice(0,De===r?q:De)}}else if(p.indexOf(gi(k),q)!=q){var Be=ne.lastIndexOf(k);Be>-1&&(ne=ne.slice(0,Be))}return ne+I}function cq(p){return p=er(p),p&&w8.test(p)?p.replace(HD,B6):p}var fq=yc(function(p,_,C){return p+(C?" ":"")+_.toUpperCase()}),rS=gL("toUpperCase");function dP(p,_,C){return p=er(p),_=C?r:_,_===r?k6(p)?$6(p):T6(p):p.match(_)||[]}var pP=Rt(function(p,_){try{return di(p,r,_)}catch(C){return J1(C)?C:new _t(C)}}),hq=yo(function(p,_){return Ri(_,function(C){C=Ea(C),go(p,C,j1(p[C],p))}),p});function vq(p){var _=p==null?0:p.length,C=ot();return p=_?br(p,function(I){if(typeof I[1]!="function")throw new Ei(o);return[C(I[0]),I[1]]}):[],Rt(function(I){for(var k=-1;++k<_;){var z=p[k];if(di(z[0],this,I))return di(z[1],this,I)}})}function dq(p){return B7(Oi(p,f))}function nS(p){return function(){return p}}function pq(p,_){return p==null||p!==p?_:p}var gq=yL(),mq=yL(!0);function ri(p){return p}function iS(p){return ZI(typeof p=="function"?p:Oi(p,f))}function yq(p){return jI(Oi(p,f))}function _q(p,_){return KI(p,Oi(_,f))}var Sq=Rt(function(p,_){return function(C){return _h(C,p,_)}}),wq=Rt(function(p,_){return function(C){return _h(p,C,_)}});function aS(p,_,C){var I=nn(_),k=Yp(_,I);C==null&&!(Tr(_)&&(k.length||!I.length))&&(C=_,_=p,p=this,k=Yp(_,nn(_)));var z=!(Tr(C)&&"chain"in C)||!!C.chain,X=So(p);return Ri(k,function(q){var ne=_[q];p[q]=ne,X&&(p.prototype[q]=function(){var Ce=this.__chain__;if(z||Ce){var Ae=p(this.__wrapped__),De=Ae.__actions__=Qn(this.__actions__);return De.push({func:ne,args:arguments,thisArg:p}),Ae.__chain__=Ce,Ae}return ne.apply(p,ss([this.value()],arguments))})}),p}function xq(){return fn._===this&&(fn._=Z6),this}function oS(){}function bq(p){return p=Mt(p),Rt(function(_){return JI(_,p)})}var Cq=F1(br),Tq=F1(_I),Aq=F1(l1);function gP(p){return W1(p)?u1(Ea(p)):r9(p)}function Mq(p){return function(_){return p==null?r:xl(p,_)}}var Dq=SL(),Iq=SL(!0);function sS(){return[]}function lS(){return!1}function Lq(){return{}}function Pq(){return""}function Rq(){return!0}function Eq(p,_){if(p=Mt(p),p<1||p>G)return[];var C=re,I=wn(p,re);_=ot(_),p-=re;for(var k=h1(I,_);++C0||_<0)?new Vt(C):(p<0?C=C.takeRight(-p):p&&(C=C.drop(p)),_!==r&&(_=Mt(_),C=_<0?C.dropRight(-_):C.take(_-p)),C)},Vt.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},Vt.prototype.toArray=function(){return this.take(re)},Pa(Vt.prototype,function(p,_){var C=/^(?:filter|find|map|reject)|While$/.test(_),I=/^(?:head|last)$/.test(_),k=B[I?"take"+(_=="last"?"Right":""):_],z=I||/^find/.test(_);k&&(B.prototype[_]=function(){var X=this.__wrapped__,q=I?[1]:arguments,ne=X instanceof Vt,Ce=q[0],Ae=ne||xt(X),De=function(Nt){var zt=k.apply(B,ss([Nt],q));return I&&Be?zt[0]:zt};Ae&&C&&typeof Ce=="function"&&Ce.length!=1&&(ne=Ae=!1);var Be=this.__chain__,Qe=!!this.__actions__.length,lt=z&&!Be,Lt=ne&&!Qe;if(!z&&Ae){X=Lt?X:new Vt(this);var ut=p.apply(X,q);return ut.__actions__.push({func:ig,args:[De],thisArg:r}),new ki(ut,Be)}return lt&&Lt?p.apply(this,q):(ut=this.thru(De),lt?I?ut.value()[0]:ut.value():ut)})}),Ri(["pop","push","shift","sort","splice","unshift"],function(p){var _=Lp[p],C=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",I=/^(?:pop|shift)$/.test(p);B.prototype[p]=function(){var k=arguments;if(I&&!this.__chain__){var z=this.value();return _.apply(xt(z)?z:[],k)}return this[C](function(X){return _.apply(xt(X)?X:[],k)})}}),Pa(Vt.prototype,function(p,_){var C=B[_];if(C){var I=C.name+"";ir.call(pc,I)||(pc[I]=[]),pc[I].push({name:_,func:C})}}),pc[Kp(r,y).name]=[{name:"wrapper",func:r}],Vt.prototype.clone=c7,Vt.prototype.reverse=f7,Vt.prototype.value=h7,B.prototype.at=GY,B.prototype.chain=$Y,B.prototype.commit=HY,B.prototype.next=WY,B.prototype.plant=YY,B.prototype.reverse=XY,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=ZY,B.prototype.first=B.prototype.head,hh&&(B.prototype[hh]=UY),B},hc=H6();ml?((ml.exports=hc)._=hc,i1._=hc):fn._=hc}).call(QJ)}(cv,cv.exports)),cv.exports}var Cf=eQ();const vn=[];for(let e=0;e<256;++e)vn.push((e+256).toString(16).slice(1));function tQ(e,t=0){return(vn[e[t+0]]+vn[e[t+1]]+vn[e[t+2]]+vn[e[t+3]]+"-"+vn[e[t+4]]+vn[e[t+5]]+"-"+vn[e[t+6]]+vn[e[t+7]]+"-"+vn[e[t+8]]+vn[e[t+9]]+"-"+vn[e[t+10]]+vn[e[t+11]]+vn[e[t+12]]+vn[e[t+13]]+vn[e[t+14]]+vn[e[t+15]]).toLowerCase()}let wS;const rQ=new Uint8Array(16);function nQ(){if(!wS){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");wS=crypto.getRandomValues.bind(crypto)}return wS(rQ)}const iQ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r2={randomUUID:iQ};function aQ(e,t,r){if(r2.randomUUID&&!t&&!e)return r2.randomUUID();e=e||{};const n=e.random||(e.rng||nQ)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,tQ(n)}const ud=Wr("setup/api-list",[]),Fo=Wr("setup/active-uuid",""),Fs=dt(()=>ud.value.find(e=>e.uuid===Fo.value)),oQ=e=>{const t=ud.value.find(n=>Cf.isEqual(Cf.omit(n,"uuid"),e));if(t){Fo.value=t.uuid;return}const r=aQ();ud.value.push({...e,uuid:r}),Fo.value=r};function HB(e,t){return function(){return e.apply(t,arguments)}}const{toString:sQ}=Object.prototype,{getPrototypeOf:uA}=Object,q0=(e=>t=>{const r=sQ.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Da=e=>(e=e.toLowerCase(),t=>q0(t)===e),j0=e=>t=>typeof t===e,{isArray:Uf}=Array,cd=j0("undefined");function lQ(e){return e!==null&&!cd(e)&&e.constructor!==null&&!cd(e.constructor)&&Ai(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const WB=Da("ArrayBuffer");function uQ(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&WB(e.buffer),t}const cQ=j0("string"),Ai=j0("function"),UB=j0("number"),K0=e=>e!==null&&typeof e=="object",fQ=e=>e===!0||e===!1,Vm=e=>{if(q0(e)!=="object")return!1;const t=uA(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},hQ=Da("Date"),vQ=Da("File"),dQ=Da("Blob"),pQ=Da("FileList"),gQ=e=>K0(e)&&Ai(e.pipe),mQ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ai(e.append)&&((t=q0(e))==="formdata"||t==="object"&&Ai(e.toString)&&e.toString()==="[object FormData]"))},yQ=Da("URLSearchParams"),[_Q,SQ,wQ,xQ]=["ReadableStream","Request","Response","Headers"].map(Da),bQ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qd(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Uf(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const hu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,XB=e=>!cd(e)&&e!==hu;function wb(){const{caseless:e}=XB(this)&&this||{},t={},r=(n,i)=>{const a=e&&YB(t,i)||i;Vm(t[a])&&Vm(n)?t[a]=wb(t[a],n):Vm(n)?t[a]=wb({},n):Uf(n)?t[a]=n.slice():t[a]=n};for(let n=0,i=arguments.length;n(Qd(t,(i,a)=>{r&&Ai(i)?e[a]=HB(i,r):e[a]=i},{allOwnKeys:n}),e),TQ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),AQ=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},MQ=(e,t,r,n)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&uA(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},DQ=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},IQ=e=>{if(!e)return null;if(Uf(e))return e;let t=e.length;if(!UB(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},LQ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&uA(Uint8Array)),PQ=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},RQ=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},EQ=Da("HTMLFormElement"),kQ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),n2=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),OQ=Da("RegExp"),ZB=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Qd(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},NQ=e=>{ZB(e,(t,r)=>{if(Ai(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ai(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},FQ=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Uf(e)?n(e):n(String(e).split(t)),r},VQ=()=>{},BQ=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,xS="abcdefghijklmnopqrstuvwxyz",i2="0123456789",qB={DIGIT:i2,ALPHA:xS,ALPHA_DIGIT:xS+xS.toUpperCase()+i2},zQ=(e=16,t=qB.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function GQ(e){return!!(e&&Ai(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $Q=e=>{const t=new Array(10),r=(n,i)=>{if(K0(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const a=Uf(n)?[]:{};return Qd(n,(o,s)=>{const l=r(o,i+1);!cd(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},HQ=Da("AsyncFunction"),WQ=e=>e&&(K0(e)||Ai(e))&&Ai(e.then)&&Ai(e.catch),jB=((e,t)=>e?setImmediate:t?((r,n)=>(hu.addEventListener("message",({source:i,data:a})=>{i===hu&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),hu.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ai(hu.postMessage)),UQ=typeof queueMicrotask<"u"?queueMicrotask.bind(hu):typeof process<"u"&&process.nextTick||jB,ye={isArray:Uf,isArrayBuffer:WB,isBuffer:lQ,isFormData:mQ,isArrayBufferView:uQ,isString:cQ,isNumber:UB,isBoolean:fQ,isObject:K0,isPlainObject:Vm,isReadableStream:_Q,isRequest:SQ,isResponse:wQ,isHeaders:xQ,isUndefined:cd,isDate:hQ,isFile:vQ,isBlob:dQ,isRegExp:OQ,isFunction:Ai,isStream:gQ,isURLSearchParams:yQ,isTypedArray:LQ,isFileList:pQ,forEach:Qd,merge:wb,extend:CQ,trim:bQ,stripBOM:TQ,inherits:AQ,toFlatObject:MQ,kindOf:q0,kindOfTest:Da,endsWith:DQ,toArray:IQ,forEachEntry:PQ,matchAll:RQ,isHTMLForm:EQ,hasOwnProperty:n2,hasOwnProp:n2,reduceDescriptors:ZB,freezeMethods:NQ,toObjectSet:FQ,toCamelCase:kQ,noop:VQ,toFiniteNumber:BQ,findKey:YB,global:hu,isContextDefined:XB,ALPHABET:qB,generateString:zQ,isSpecCompliantForm:GQ,toJSONObject:$Q,isAsyncFn:HQ,isThenable:WQ,setImmediate:jB,asap:UQ};function bt(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}ye.inherits(bt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ye.toJSONObject(this.config),code:this.code,status:this.status}}});const KB=bt.prototype,JB={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{JB[e]={value:e}});Object.defineProperties(bt,JB);Object.defineProperty(KB,"isAxiosError",{value:!0});bt.from=(e,t,r,n,i,a)=>{const o=Object.create(KB);return ye.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),bt.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const YQ=null;function xb(e){return ye.isPlainObject(e)||ye.isArray(e)}function QB(e){return ye.endsWith(e,"[]")?e.slice(0,-2):e}function a2(e,t,r){return e?e.concat(t).map(function(i,a){return i=QB(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function XQ(e){return ye.isArray(e)&&!e.some(xb)}const ZQ=ye.toFlatObject(ye,{},null,function(t){return/^is[A-Z]/.test(t)});function J0(e,t,r){if(!ye.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=ye.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!ye.isUndefined(m[g])});const n=r.metaTokens,i=r.visitor||c,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&ye.isSpecCompliantForm(t);if(!ye.isFunction(i))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(ye.isDate(d))return d.toISOString();if(!l&&ye.isBlob(d))throw new bt("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(d)||ye.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,g,m){let y=d;if(d&&!m&&typeof d=="object"){if(ye.endsWith(g,"{}"))g=n?g:g.slice(0,-2),d=JSON.stringify(d);else if(ye.isArray(d)&&XQ(d)||(ye.isFileList(d)||ye.endsWith(g,"[]"))&&(y=ye.toArray(d)))return g=QB(g),y.forEach(function(w,x){!(ye.isUndefined(w)||w===null)&&t.append(o===!0?a2([g],x,a):o===null?g:g+"[]",u(w))}),!1}return xb(d)?!0:(t.append(a2(m,g,a),u(d)),!1)}const f=[],h=Object.assign(ZQ,{defaultVisitor:c,convertValue:u,isVisitable:xb});function v(d,g){if(!ye.isUndefined(d)){if(f.indexOf(d)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(d),ye.forEach(d,function(y,S){(!(ye.isUndefined(y)||y===null)&&i.call(t,y,ye.isString(S)?S.trim():S,g,h))===!0&&v(y,g?g.concat(S):[S])}),f.pop()}}if(!ye.isObject(e))throw new TypeError("data must be an object");return v(e),t}function o2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function cA(e,t){this._pairs=[],e&&J0(e,this,t)}const e3=cA.prototype;e3.append=function(t,r){this._pairs.push([t,r])};e3.toString=function(t){const r=t?function(n){return t.call(this,n,o2)}:o2;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function qQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function t3(e,t,r){if(!t)return e;const n=r&&r.encode||qQ;ye.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let a;if(i?a=i(t,r):a=ye.isURLSearchParams(t)?t.toString():new cA(t,r).toString(n),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class s2{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ye.forEach(this.handlers,function(n){n!==null&&t(n)})}}const r3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jQ=typeof URLSearchParams<"u"?URLSearchParams:cA,KQ=typeof FormData<"u"?FormData:null,JQ=typeof Blob<"u"?Blob:null,QQ={isBrowser:!0,classes:{URLSearchParams:jQ,FormData:KQ,Blob:JQ},protocols:["http","https","file","blob","url","data"]},fA=typeof window<"u"&&typeof document<"u",bb=typeof navigator=="object"&&navigator||void 0,eee=fA&&(!bb||["ReactNative","NativeScript","NS"].indexOf(bb.product)<0),tee=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ree=fA&&window.location.href||"http://localhost",nee=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fA,hasStandardBrowserEnv:eee,hasStandardBrowserWebWorkerEnv:tee,navigator:bb,origin:ree},Symbol.toStringTag,{value:"Module"})),In={...nee,...QQ};function iee(e,t){return J0(e,new In.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return In.isNode&&ye.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function aee(e){return ye.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oee(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n=r.length;return o=!o&&ye.isArray(i)?i.length:o,l?(ye.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!ye.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&ye.isArray(i[o])&&(i[o]=oee(i[o])),!s)}if(ye.isFormData(e)&&ye.isFunction(e.entries)){const r={};return ye.forEachEntry(e,(n,i)=>{t(aee(n),i,r,0)}),r}return null}function see(e,t,r){if(ye.isString(e))try{return(t||JSON.parse)(e),ye.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const ep={transitional:r3,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=ye.isObject(t);if(a&&ye.isHTMLForm(t)&&(t=new FormData(t)),ye.isFormData(t))return i?JSON.stringify(n3(t)):t;if(ye.isArrayBuffer(t)||ye.isBuffer(t)||ye.isStream(t)||ye.isFile(t)||ye.isBlob(t)||ye.isReadableStream(t))return t;if(ye.isArrayBufferView(t))return t.buffer;if(ye.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return iee(t,this.formSerializer).toString();if((s=ye.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return J0(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),see(t)):t}],transformResponse:[function(t){const r=this.transitional||ep.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(ye.isResponse(t)||ye.isReadableStream(t))return t;if(t&&ye.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?bt.from(s,bt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:In.classes.FormData,Blob:In.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ye.forEach(["delete","get","head","post","put","patch"],e=>{ep.headers[e]={}});const lee=ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),uee=e=>{const t={};let r,n,i;return e&&e.split(` +}`;var Lt=pP(function(){return Xt(z,Qe+"return "+De).apply(r,X)});if(Lt.source=De,J1(Lt))throw Lt;return Lt}function iq(p){return Qt(p).toLowerCase()}function aq(p){return Qt(p).toUpperCase()}function oq(p,_,C){if(p=Qt(p),p&&(C||_===r))return CI(p);if(!p||!(_=gi(_)))return p;var I=sa(p),k=sa(_),z=TI(I,k),X=AI(I,k)+1;return vs(I,z,X).join("")}function sq(p,_,C){if(p=Qt(p),p&&(C||_===r))return p.slice(0,DI(p)+1);if(!p||!(_=gi(_)))return p;var I=sa(p),k=AI(I,sa(_))+1;return vs(I,0,k).join("")}function lq(p,_,C){if(p=Qt(p),p&&(C||_===r))return p.replace(J_,"");if(!p||!(_=gi(_)))return p;var I=sa(p),k=TI(I,sa(_));return vs(I,k).join("")}function uq(p,_){var C=L,I=P;if(Tr(_)){var k="separator"in _?_.separator:k;C="length"in _?Mt(_.length):C,I="omission"in _?gi(_.omission):I}p=Qt(p);var z=p.length;if(cc(p)){var X=sa(p);z=X.length}if(C>=z)return p;var q=C-fc(I);if(q<1)return I;var ne=X?vs(X,0,q).join(""):p.slice(0,q);if(k===r)return ne+I;if(X&&(q+=ne.length-q),Q1(k)){if(p.slice(q).search(k)){var Ce,Te=ne;for(k.global||(k=p1(k.source,Qt(YD.exec(k))+"g")),k.lastIndex=0;Ce=k.exec(Te);)var De=Ce.index;ne=ne.slice(0,De===r?q:De)}}else if(p.indexOf(gi(k),q)!=q){var Be=ne.lastIndexOf(k);Be>-1&&(ne=ne.slice(0,Be))}return ne+I}function cq(p){return p=Qt(p),p&&w8.test(p)?p.replace(HD,B6):p}var fq=yc(function(p,_,C){return p+(C?" ":"")+_.toUpperCase()}),rS=gL("toUpperCase");function dP(p,_,C){return p=Qt(p),_=C?r:_,_===r?k6(p)?$6(p):T6(p):p.match(_)||[]}var pP=Rt(function(p,_){try{return di(p,r,_)}catch(C){return J1(C)?C:new _t(C)}}),hq=yo(function(p,_){return Ri(_,function(C){C=Ra(C),go(p,C,j1(p[C],p))}),p});function vq(p){var _=p==null?0:p.length,C=ot();return p=_?br(p,function(I){if(typeof I[1]!="function")throw new Ei(o);return[C(I[0]),I[1]]}):[],Rt(function(I){for(var k=-1;++k<_;){var z=p[k];if(di(z[0],this,I))return di(z[1],this,I)}})}function dq(p){return B7(Oi(p,f))}function nS(p){return function(){return p}}function pq(p,_){return p==null||p!==p?_:p}var gq=yL(),mq=yL(!0);function ri(p){return p}function iS(p){return ZI(typeof p=="function"?p:Oi(p,f))}function yq(p){return jI(Oi(p,f))}function _q(p,_){return KI(p,Oi(_,f))}var Sq=Rt(function(p,_){return function(C){return _h(C,p,_)}}),wq=Rt(function(p,_){return function(C){return _h(p,C,_)}});function aS(p,_,C){var I=nn(_),k=Yp(_,I);C==null&&!(Tr(_)&&(k.length||!I.length))&&(C=_,_=p,p=this,k=Yp(_,nn(_)));var z=!(Tr(C)&&"chain"in C)||!!C.chain,X=So(p);return Ri(k,function(q){var ne=_[q];p[q]=ne,X&&(p.prototype[q]=function(){var Ce=this.__chain__;if(z||Ce){var Te=p(this.__wrapped__),De=Te.__actions__=Qn(this.__actions__);return De.push({func:ne,args:arguments,thisArg:p}),Te.__chain__=Ce,Te}return ne.apply(p,ss([this.value()],arguments))})}),p}function xq(){return fn._===this&&(fn._=Z6),this}function oS(){}function bq(p){return p=Mt(p),Rt(function(_){return JI(_,p)})}var Cq=F1(br),Tq=F1(_I),Aq=F1(l1);function gP(p){return W1(p)?u1(Ra(p)):r9(p)}function Mq(p){return function(_){return p==null?r:xl(p,_)}}var Dq=SL(),Iq=SL(!0);function sS(){return[]}function lS(){return!1}function Lq(){return{}}function Pq(){return""}function Rq(){return!0}function Eq(p,_){if(p=Mt(p),p<1||p>G)return[];var C=re,I=wn(p,re);_=ot(_),p-=re;for(var k=h1(I,_);++C0||_<0)?new Vt(C):(p<0?C=C.takeRight(-p):p&&(C=C.drop(p)),_!==r&&(_=Mt(_),C=_<0?C.dropRight(-_):C.take(_-p)),C)},Vt.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},Vt.prototype.toArray=function(){return this.take(re)},La(Vt.prototype,function(p,_){var C=/^(?:filter|find|map|reject)|While$/.test(_),I=/^(?:head|last)$/.test(_),k=B[I?"take"+(_=="last"?"Right":""):_],z=I||/^find/.test(_);k&&(B.prototype[_]=function(){var X=this.__wrapped__,q=I?[1]:arguments,ne=X instanceof Vt,Ce=q[0],Te=ne||xt(X),De=function(Nt){var zt=k.apply(B,ss([Nt],q));return I&&Be?zt[0]:zt};Te&&C&&typeof Ce=="function"&&Ce.length!=1&&(ne=Te=!1);var Be=this.__chain__,Qe=!!this.__actions__.length,lt=z&&!Be,Lt=ne&&!Qe;if(!z&&Te){X=Lt?X:new Vt(this);var ut=p.apply(X,q);return ut.__actions__.push({func:ig,args:[De],thisArg:r}),new ki(ut,Be)}return lt&&Lt?p.apply(this,q):(ut=this.thru(De),lt?I?ut.value()[0]:ut.value():ut)})}),Ri(["pop","push","shift","sort","splice","unshift"],function(p){var _=Lp[p],C=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",I=/^(?:pop|shift)$/.test(p);B.prototype[p]=function(){var k=arguments;if(I&&!this.__chain__){var z=this.value();return _.apply(xt(z)?z:[],k)}return this[C](function(X){return _.apply(xt(X)?X:[],k)})}}),La(Vt.prototype,function(p,_){var C=B[_];if(C){var I=C.name+"";ir.call(pc,I)||(pc[I]=[]),pc[I].push({name:_,func:C})}}),pc[Kp(r,y).name]=[{name:"wrapper",func:r}],Vt.prototype.clone=c7,Vt.prototype.reverse=f7,Vt.prototype.value=h7,B.prototype.at=GY,B.prototype.chain=$Y,B.prototype.commit=HY,B.prototype.next=WY,B.prototype.plant=YY,B.prototype.reverse=XY,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=ZY,B.prototype.first=B.prototype.head,hh&&(B.prototype[hh]=UY),B},hc=H6();ml?((ml.exports=hc)._=hc,i1._=hc):fn._=hc}).call(QJ)}(cv,cv.exports)),cv.exports}var Cf=eQ();const vn=[];for(let e=0;e<256;++e)vn.push((e+256).toString(16).slice(1));function tQ(e,t=0){return(vn[e[t+0]]+vn[e[t+1]]+vn[e[t+2]]+vn[e[t+3]]+"-"+vn[e[t+4]]+vn[e[t+5]]+"-"+vn[e[t+6]]+vn[e[t+7]]+"-"+vn[e[t+8]]+vn[e[t+9]]+"-"+vn[e[t+10]]+vn[e[t+11]]+vn[e[t+12]]+vn[e[t+13]]+vn[e[t+14]]+vn[e[t+15]]).toLowerCase()}let wS;const rQ=new Uint8Array(16);function nQ(){if(!wS){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");wS=crypto.getRandomValues.bind(crypto)}return wS(rQ)}const iQ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r2={randomUUID:iQ};function aQ(e,t,r){if(r2.randomUUID&&!t&&!e)return r2.randomUUID();e=e||{};const n=e.random||(e.rng||nQ)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,tQ(n)}const ud=Wr("setup/api-list",[]),Fo=Wr("setup/active-uuid",""),Fs=dt(()=>ud.value.find(e=>e.uuid===Fo.value)),oQ=e=>{const t=ud.value.find(n=>Cf.isEqual(Cf.omit(n,"uuid"),e));if(t){Fo.value=t.uuid;return}const r=aQ();ud.value.push({...e,uuid:r}),Fo.value=r};function HB(e,t){return function(){return e.apply(t,arguments)}}const{toString:sQ}=Object.prototype,{getPrototypeOf:uA}=Object,q0=(e=>t=>{const r=sQ.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ma=e=>(e=e.toLowerCase(),t=>q0(t)===e),j0=e=>t=>typeof t===e,{isArray:Uf}=Array,cd=j0("undefined");function lQ(e){return e!==null&&!cd(e)&&e.constructor!==null&&!cd(e.constructor)&&Ai(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const WB=Ma("ArrayBuffer");function uQ(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&WB(e.buffer),t}const cQ=j0("string"),Ai=j0("function"),UB=j0("number"),K0=e=>e!==null&&typeof e=="object",fQ=e=>e===!0||e===!1,Vm=e=>{if(q0(e)!=="object")return!1;const t=uA(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},hQ=Ma("Date"),vQ=Ma("File"),dQ=Ma("Blob"),pQ=Ma("FileList"),gQ=e=>K0(e)&&Ai(e.pipe),mQ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ai(e.append)&&((t=q0(e))==="formdata"||t==="object"&&Ai(e.toString)&&e.toString()==="[object FormData]"))},yQ=Ma("URLSearchParams"),[_Q,SQ,wQ,xQ]=["ReadableStream","Request","Response","Headers"].map(Ma),bQ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qd(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Uf(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const hu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,XB=e=>!cd(e)&&e!==hu;function wb(){const{caseless:e}=XB(this)&&this||{},t={},r=(n,i)=>{const a=e&&YB(t,i)||i;Vm(t[a])&&Vm(n)?t[a]=wb(t[a],n):Vm(n)?t[a]=wb({},n):Uf(n)?t[a]=n.slice():t[a]=n};for(let n=0,i=arguments.length;n(Qd(t,(i,a)=>{r&&Ai(i)?e[a]=HB(i,r):e[a]=i},{allOwnKeys:n}),e),TQ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),AQ=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},MQ=(e,t,r,n)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&uA(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},DQ=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},IQ=e=>{if(!e)return null;if(Uf(e))return e;let t=e.length;if(!UB(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},LQ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&uA(Uint8Array)),PQ=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},RQ=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},EQ=Ma("HTMLFormElement"),kQ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),n2=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),OQ=Ma("RegExp"),ZB=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Qd(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},NQ=e=>{ZB(e,(t,r)=>{if(Ai(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ai(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},FQ=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Uf(e)?n(e):n(String(e).split(t)),r},VQ=()=>{},BQ=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,xS="abcdefghijklmnopqrstuvwxyz",i2="0123456789",qB={DIGIT:i2,ALPHA:xS,ALPHA_DIGIT:xS+xS.toUpperCase()+i2},zQ=(e=16,t=qB.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function GQ(e){return!!(e&&Ai(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $Q=e=>{const t=new Array(10),r=(n,i)=>{if(K0(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const a=Uf(n)?[]:{};return Qd(n,(o,s)=>{const l=r(o,i+1);!cd(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},HQ=Ma("AsyncFunction"),WQ=e=>e&&(K0(e)||Ai(e))&&Ai(e.then)&&Ai(e.catch),jB=((e,t)=>e?setImmediate:t?((r,n)=>(hu.addEventListener("message",({source:i,data:a})=>{i===hu&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),hu.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ai(hu.postMessage)),UQ=typeof queueMicrotask<"u"?queueMicrotask.bind(hu):typeof process<"u"&&process.nextTick||jB,ye={isArray:Uf,isArrayBuffer:WB,isBuffer:lQ,isFormData:mQ,isArrayBufferView:uQ,isString:cQ,isNumber:UB,isBoolean:fQ,isObject:K0,isPlainObject:Vm,isReadableStream:_Q,isRequest:SQ,isResponse:wQ,isHeaders:xQ,isUndefined:cd,isDate:hQ,isFile:vQ,isBlob:dQ,isRegExp:OQ,isFunction:Ai,isStream:gQ,isURLSearchParams:yQ,isTypedArray:LQ,isFileList:pQ,forEach:Qd,merge:wb,extend:CQ,trim:bQ,stripBOM:TQ,inherits:AQ,toFlatObject:MQ,kindOf:q0,kindOfTest:Ma,endsWith:DQ,toArray:IQ,forEachEntry:PQ,matchAll:RQ,isHTMLForm:EQ,hasOwnProperty:n2,hasOwnProp:n2,reduceDescriptors:ZB,freezeMethods:NQ,toObjectSet:FQ,toCamelCase:kQ,noop:VQ,toFiniteNumber:BQ,findKey:YB,global:hu,isContextDefined:XB,ALPHABET:qB,generateString:zQ,isSpecCompliantForm:GQ,toJSONObject:$Q,isAsyncFn:HQ,isThenable:WQ,setImmediate:jB,asap:UQ};function bt(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}ye.inherits(bt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ye.toJSONObject(this.config),code:this.code,status:this.status}}});const KB=bt.prototype,JB={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{JB[e]={value:e}});Object.defineProperties(bt,JB);Object.defineProperty(KB,"isAxiosError",{value:!0});bt.from=(e,t,r,n,i,a)=>{const o=Object.create(KB);return ye.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),bt.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const YQ=null;function xb(e){return ye.isPlainObject(e)||ye.isArray(e)}function QB(e){return ye.endsWith(e,"[]")?e.slice(0,-2):e}function a2(e,t,r){return e?e.concat(t).map(function(i,a){return i=QB(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function XQ(e){return ye.isArray(e)&&!e.some(xb)}const ZQ=ye.toFlatObject(ye,{},null,function(t){return/^is[A-Z]/.test(t)});function J0(e,t,r){if(!ye.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=ye.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!ye.isUndefined(m[g])});const n=r.metaTokens,i=r.visitor||c,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&ye.isSpecCompliantForm(t);if(!ye.isFunction(i))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(ye.isDate(d))return d.toISOString();if(!l&&ye.isBlob(d))throw new bt("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(d)||ye.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,g,m){let y=d;if(d&&!m&&typeof d=="object"){if(ye.endsWith(g,"{}"))g=n?g:g.slice(0,-2),d=JSON.stringify(d);else if(ye.isArray(d)&&XQ(d)||(ye.isFileList(d)||ye.endsWith(g,"[]"))&&(y=ye.toArray(d)))return g=QB(g),y.forEach(function(w,x){!(ye.isUndefined(w)||w===null)&&t.append(o===!0?a2([g],x,a):o===null?g:g+"[]",u(w))}),!1}return xb(d)?!0:(t.append(a2(m,g,a),u(d)),!1)}const f=[],h=Object.assign(ZQ,{defaultVisitor:c,convertValue:u,isVisitable:xb});function v(d,g){if(!ye.isUndefined(d)){if(f.indexOf(d)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(d),ye.forEach(d,function(y,S){(!(ye.isUndefined(y)||y===null)&&i.call(t,y,ye.isString(S)?S.trim():S,g,h))===!0&&v(y,g?g.concat(S):[S])}),f.pop()}}if(!ye.isObject(e))throw new TypeError("data must be an object");return v(e),t}function o2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function cA(e,t){this._pairs=[],e&&J0(e,this,t)}const e3=cA.prototype;e3.append=function(t,r){this._pairs.push([t,r])};e3.toString=function(t){const r=t?function(n){return t.call(this,n,o2)}:o2;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function qQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function t3(e,t,r){if(!t)return e;const n=r&&r.encode||qQ;ye.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let a;if(i?a=i(t,r):a=ye.isURLSearchParams(t)?t.toString():new cA(t,r).toString(n),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class s2{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ye.forEach(this.handlers,function(n){n!==null&&t(n)})}}const r3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jQ=typeof URLSearchParams<"u"?URLSearchParams:cA,KQ=typeof FormData<"u"?FormData:null,JQ=typeof Blob<"u"?Blob:null,QQ={isBrowser:!0,classes:{URLSearchParams:jQ,FormData:KQ,Blob:JQ},protocols:["http","https","file","blob","url","data"]},fA=typeof window<"u"&&typeof document<"u",bb=typeof navigator=="object"&&navigator||void 0,eee=fA&&(!bb||["ReactNative","NativeScript","NS"].indexOf(bb.product)<0),tee=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ree=fA&&window.location.href||"http://localhost",nee=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fA,hasStandardBrowserEnv:eee,hasStandardBrowserWebWorkerEnv:tee,navigator:bb,origin:ree},Symbol.toStringTag,{value:"Module"})),In={...nee,...QQ};function iee(e,t){return J0(e,new In.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return In.isNode&&ye.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function aee(e){return ye.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oee(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n=r.length;return o=!o&&ye.isArray(i)?i.length:o,l?(ye.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!ye.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&ye.isArray(i[o])&&(i[o]=oee(i[o])),!s)}if(ye.isFormData(e)&&ye.isFunction(e.entries)){const r={};return ye.forEachEntry(e,(n,i)=>{t(aee(n),i,r,0)}),r}return null}function see(e,t,r){if(ye.isString(e))try{return(t||JSON.parse)(e),ye.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const ep={transitional:r3,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=ye.isObject(t);if(a&&ye.isHTMLForm(t)&&(t=new FormData(t)),ye.isFormData(t))return i?JSON.stringify(n3(t)):t;if(ye.isArrayBuffer(t)||ye.isBuffer(t)||ye.isStream(t)||ye.isFile(t)||ye.isBlob(t)||ye.isReadableStream(t))return t;if(ye.isArrayBufferView(t))return t.buffer;if(ye.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return iee(t,this.formSerializer).toString();if((s=ye.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return J0(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),see(t)):t}],transformResponse:[function(t){const r=this.transitional||ep.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(ye.isResponse(t)||ye.isReadableStream(t))return t;if(t&&ye.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?bt.from(s,bt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:In.classes.FormData,Blob:In.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ye.forEach(["delete","get","head","post","put","patch"],e=>{ep.headers[e]={}});const lee=ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),uee=e=>{const t={};let r,n,i;return e&&e.split(` `).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&lee[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},l2=Symbol("internals");function Dh(e){return e&&String(e).trim().toLowerCase()}function Bm(e){return e===!1||e==null?e:ye.isArray(e)?e.map(Bm):String(e)}function cee(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const fee=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bS(e,t,r,n,i){if(ye.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!ye.isString(t)){if(ye.isString(n))return t.indexOf(n)!==-1;if(ye.isRegExp(n))return n.test(t)}}function hee(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function vee(e,t){const r=ye.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,a,o){return this[n].call(this,t,i,a,o)},configurable:!0})})}class fi{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const c=Dh(l);if(!c)throw new Error("header name must be a non-empty string");const f=ye.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Bm(s))}const o=(s,l)=>ye.forEach(s,(u,c)=>a(u,c,l));if(ye.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(ye.isString(t)&&(t=t.trim())&&!fee(t))o(uee(t),r);else if(ye.isHeaders(t))for(const[s,l]of t.entries())a(l,s,n);else t!=null&&a(r,t,n);return this}get(t,r){if(t=Dh(t),t){const n=ye.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return cee(i);if(ye.isFunction(r))return r.call(this,i,n);if(ye.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Dh(t),t){const n=ye.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||bS(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=Dh(o),o){const s=ye.findKey(n,o);s&&(!r||bS(n,n[s],s,r))&&(delete n[s],i=!0)}}return ye.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||bS(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return ye.forEach(this,(i,a)=>{const o=ye.findKey(n,a);if(o){r[o]=Bm(i),delete r[a];return}const s=t?hee(a):String(a).trim();s!==a&&delete r[a],r[s]=Bm(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return ye.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&ye.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[l2]=this[l2]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Dh(o);n[s]||(vee(i,o),n[s]=!0)}return ye.isArray(t)?t.forEach(a):a(t),this}}fi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ye.reduceDescriptors(fi.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});ye.freezeMethods(fi);function CS(e,t){const r=this||ep,n=t||r,i=fi.from(n.headers);let a=n.data;return ye.forEach(e,function(s){a=s.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function i3(e){return!!(e&&e.__CANCEL__)}function Yf(e,t,r){bt.call(this,e??"canceled",bt.ERR_CANCELED,t,r),this.name="CanceledError"}ye.inherits(Yf,bt,{__CANCEL__:!0});function a3(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new bt("Request failed with status code "+r.status,[bt.ERR_BAD_REQUEST,bt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function dee(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pee(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[a];o||(o=u),r[i]=l,n[i]=u;let f=a,h=0;for(;f!==i;)h+=r[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o{r=c,i=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-r;f>=n?o(u,c):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-f)))},()=>i&&o(i)]}const Ly=(e,t,r=3)=>{let n=0;const i=pee(50,250);return gee(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),c=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},r)},u2=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},c2=e=>(...t)=>ye.asap(()=>e(...t)),mee=In.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,In.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(In.origin),In.navigator&&/(msie|trident)/i.test(In.navigator.userAgent)):()=>!0,yee=In.hasStandardBrowserEnv?{write(e,t,r,n,i,a){const o=[e+"="+encodeURIComponent(t)];ye.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),ye.isString(n)&&o.push("path="+n),ye.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _ee(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function See(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function o3(e,t){return e&&!_ee(t)?See(e,t):t}const f2=e=>e instanceof fi?{...e}:e;function Hu(e,t){t=t||{};const r={};function n(u,c,f,h){return ye.isPlainObject(u)&&ye.isPlainObject(c)?ye.merge.call({caseless:h},u,c):ye.isPlainObject(c)?ye.merge({},c):ye.isArray(c)?c.slice():c}function i(u,c,f,h){if(ye.isUndefined(c)){if(!ye.isUndefined(u))return n(void 0,u,f,h)}else return n(u,c,f,h)}function a(u,c){if(!ye.isUndefined(c))return n(void 0,c)}function o(u,c){if(ye.isUndefined(c)){if(!ye.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in t)return n(u,c);if(f in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c,f)=>i(f2(u),f2(c),f,!0)};return ye.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,h=f(e[c],t[c],c);ye.isUndefined(h)&&f!==s||(r[c]=h)}),r}const s3=e=>{const t=Hu({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=fi.from(o),t.url=t3(o3(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(ye.isFormData(r)){if(In.hasStandardBrowserEnv||In.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(In.hasStandardBrowserEnv&&(n&&ye.isFunction(n)&&(n=n(t)),n||n!==!1&&mee(t.url))){const u=i&&a&&yee.read(a);u&&o.set(i,u)}return t},wee=typeof XMLHttpRequest<"u",xee=wee&&function(e){return new Promise(function(r,n){const i=s3(e);let a=i.data;const o=fi.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,h,v,d;function g(){v&&v(),d&&d(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function y(){if(!m)return;const w=fi.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),T={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:w,config:e,request:m};a3(function(A){r(A),g()},function(A){n(A),g()},T),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(n(new bt("Request aborted",bt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new bt("Network Error",bt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||r3;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),n(new bt(x,T.clarifyTimeoutError?bt.ETIMEDOUT:bt.ECONNABORTED,e,m)),m=null},a===void 0&&o.setContentType(null),"setRequestHeader"in m&&ye.forEach(o.toJSON(),function(x,T){m.setRequestHeader(T,x)}),ye.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),s&&s!=="json"&&(m.responseType=i.responseType),u&&([h,d]=Ly(u,!0),m.addEventListener("progress",h)),l&&m.upload&&([f,v]=Ly(l),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(c=w=>{m&&(n(!w||w.type?new Yf(null,e,m):w),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const S=dee(i.url);if(S&&In.protocols.indexOf(S)===-1){n(new bt("Unsupported protocol "+S+":",bt.ERR_BAD_REQUEST,e));return}m.send(a||null)})},bee=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof bt?c:new Yf(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,a(new bt(`timeout ${t} of ms exceeded`,bt.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>ye.asap(s),l}},Cee=function*(e,t){let r=e.byteLength;if(r{const i=Tee(e,t);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){s(),l.close();return}let f=c.byteLength;if(r){let h=a+=f;r(h)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},Q0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",l3=Q0&&typeof ReadableStream=="function",Mee=Q0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),u3=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Dee=l3&&u3(()=>{let e=!1;const t=new Request(In.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),v2=64*1024,Cb=l3&&u3(()=>ye.isReadableStream(new Response("").body)),Py={stream:Cb&&(e=>e.body)};Q0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Py[t]&&(Py[t]=ye.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new bt(`Response type '${t}' is not supported`,bt.ERR_NOT_SUPPORT,n)})})})(new Response);const Iee=async e=>{if(e==null)return 0;if(ye.isBlob(e))return e.size;if(ye.isSpecCompliantForm(e))return(await new Request(In.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ye.isArrayBufferView(e)||ye.isArrayBuffer(e))return e.byteLength;if(ye.isURLSearchParams(e)&&(e=e+""),ye.isString(e))return(await Mee(e)).byteLength},Lee=async(e,t)=>{const r=ye.toFiniteNumber(e.getContentLength());return r??Iee(t)},Pee=Q0&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:h}=s3(e);u=u?(u+"").toLowerCase():"text";let v=bee([i,a&&a.toAbortSignal()],o),d;const g=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let m;try{if(l&&Dee&&r!=="get"&&r!=="head"&&(m=await Lee(c,n))!==0){let T=new Request(t,{method:"POST",body:n,duplex:"half"}),b;if(ye.isFormData(n)&&(b=T.headers.get("content-type"))&&c.setContentType(b),T.body){const[A,M]=u2(m,Ly(c2(l)));n=h2(T.body,v2,A,M)}}ye.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;d=new Request(t,{...h,signal:v,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:y?f:void 0});let S=await fetch(d);const w=Cb&&(u==="stream"||u==="response");if(Cb&&(s||w&&g)){const T={};["status","statusText","headers"].forEach(D=>{T[D]=S[D]});const b=ye.toFiniteNumber(S.headers.get("content-length")),[A,M]=s&&u2(b,Ly(c2(s),!0))||[];S=new Response(h2(S.body,v2,A,()=>{M&&M(),g&&g()}),T)}u=u||"text";let x=await Py[ye.findKey(Py,u)||"text"](S,e);return!w&&g&&g(),await new Promise((T,b)=>{a3(T,b,{data:x,headers:fi.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:d})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new bt("Network Error",bt.ERR_NETWORK,e,d),{cause:y.cause||y}):bt.from(y,y&&y.code,e,d)}}),Tb={http:YQ,xhr:xee,fetch:Pee};ye.forEach(Tb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const d2=e=>`- ${e}`,Ree=e=>ye.isFunction(e)||e===null||e===!1,c3={getAdapter:e=>{e=ye.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : `+a.map(d2).join(` -`):" "+d2(a[0]):"as no adapter specified";throw new bt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Tb};function TS(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yf(null,e)}function p2(e){return TS(e),e.headers=fi.from(e.headers),e.data=CS.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),c3.getAdapter(e.adapter||ep.adapter)(e).then(function(n){return TS(e),n.data=CS.call(e,e.transformResponse,n),n.headers=fi.from(n.headers),n},function(n){return i3(n)||(TS(e),n&&n.response&&(n.response.data=CS.call(e,e.transformResponse,n.response),n.response.headers=fi.from(n.response.headers))),Promise.reject(n)})}const f3="1.7.8",e_={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e_[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const g2={};e_.transitional=function(t,r,n){function i(a,o){return"[Axios v"+f3+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new bt(i(o," has been removed"+(r?" in "+r:"")),bt.ERR_DEPRECATED);return r&&!g2[o]&&(g2[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};e_.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Eee(e,t,r){if(typeof e!="object")throw new bt("options must be an object",bt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new bt("option "+a+" must be "+l,bt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new bt("Unknown option "+a,bt.ERR_BAD_OPTION)}}const zm={assertOptions:Eee,validators:e_},Oa=zm.validators;class Cu{constructor(t){this.defaults=t,this.interceptors={request:new s2,response:new s2}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=` -`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Hu(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&zm.assertOptions(n,{silentJSONParsing:Oa.transitional(Oa.boolean),forcedJSONParsing:Oa.transitional(Oa.boolean),clarifyTimeoutError:Oa.transitional(Oa.boolean)},!1),i!=null&&(ye.isFunction(i)?r.paramsSerializer={serialize:i}:zm.assertOptions(i,{encode:Oa.function,serialize:Oa.function},!0)),zm.assertOptions(r,{baseUrl:Oa.spelling("baseURL"),withXsrfToken:Oa.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&ye.merge(a.common,a[r.method]);a&&ye.forEach(["delete","get","head","post","put","patch","common"],d=>{delete a[d]}),r.headers=fi.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,h;if(!l){const d=[p2.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,u),h=d.length,c=Promise.resolve(r);f{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,s){n.reason||(n.reason=new Yf(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new hA(function(i){t=i}),cancel:t}}}function kee(e){return function(r){return e.apply(null,r)}}function Oee(e){return ye.isObject(e)&&e.isAxiosError===!0}const Ab={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ab).forEach(([e,t])=>{Ab[t]=e});function h3(e){const t=new Cu(e),r=HB(Cu.prototype.request,t);return ye.extend(r,Cu.prototype,t,{allOwnKeys:!0}),ye.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return h3(Hu(e,i))},r}const Ft=h3(ep);Ft.Axios=Cu;Ft.CanceledError=Yf;Ft.CancelToken=hA;Ft.isCancel=i3;Ft.VERSION=f3;Ft.toFormData=J0;Ft.AxiosError=bt;Ft.Cancel=Ft.CanceledError;Ft.all=function(t){return Promise.all(t)};Ft.spread=kee;Ft.isAxiosError=Oee;Ft.mergeConfig=Hu;Ft.AxiosHeaders=fi;Ft.formToJSON=e=>n3(ye.isHTMLForm(e)?new FormData(e):e);Ft.getAdapter=c3.getAdapter;Ft.HttpStatusCode=Ab;Ft.default=Ft;Ft.interceptors.request.use(e=>{var t,r,n,i;return e.baseURL=((t=Fs.value)==null?void 0:t.protocol)+"://"+((r=Fs.value)==null?void 0:r.host)+":"+((n=Fs.value)==null?void 0:n.port),e.headers.Authorization="Bearer "+((i=Fs.value)==null?void 0:i.password),e});const vA=Je(),Nee=()=>Ft.get("/version"),oDe=dt(()=>vA.value.includes("sing-box")),sDe=Je("1.5.5");hr(Fs,async e=>{if(e){const{data:t}=await Nee();vA.value=t.version}},{immediate:!0});const Fee=()=>Ft.get("/proxies"),Vee=(e,t)=>Ft.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),Bee=(e,t,r)=>Ft.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),zee=(e,t,r)=>Ft.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),Gee=()=>Ft.get("/providers/proxies"),v3=e=>Ft.put(`/providers/proxies/${encodeURIComponent(e)}`),$ee=e=>Ft.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),Hee=()=>Ft.get("/rules"),Wee=()=>Ft.get("/providers/rules"),d3=e=>Ft.put(`/providers/rules/${encodeURIComponent(e)}`),t_=e=>Ft.delete(`/connections/${e}`),Uee=()=>Ft.get("/configs"),Yee=e=>Ft.patch("/configs",e),lDe=()=>Ft.post("/cache/fakeip/flush"),uDe=()=>Ft.put("/configs?reload=true",{path:"",payload:""}),cDe=()=>Ft.post("/upgrade/ui"),p3=(e,t)=>{const r=Fs.value,n=new URL(`${(r==null?void 0:r.protocol)==="https"?"wss":"ws"}://${r==null?void 0:r.host}:${r==null?void 0:r.port}/${e}`);return n.searchParams.append("token",(r==null?void 0:r.password)||""),t&&Object.entries(t).forEach(([i,a])=>{n.searchParams.append(i,a)}),KJ(n,{autoClose:!1,autoReconnect:!0})},Xee=()=>p3("connections"),Zee=(e={})=>p3("logs",e);var Tu=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e))(Tu||{}),Nr=(e=>(e.Details="details",e.Close="close",e.Type="type",e.Process="process",e.Host="host",e.Rule="rule",e.Chains="chains",e.DlSpeed="dlSpeed",e.UlSpeed="ulSpeed",e.Download="dl",e.Upload="ul",e.ConnectTime="connectTime",e.SourceIP="sourceIP",e.SourcePort="sourcePort",e.Destination="destination",e))(Nr||{});const qee=Wr("config/theme","default"),Au=Wr("config/language","en-US"),jee=Wr("config/show-global-proxy",!0),Ry=Wr("config/collapse-group-map",{}),dA=Wr("config/two-columns",!0),g3=Wr("config/speedtest-url","http://www.gstatic.com/generate_204"),m3=Wr("config/speedtest-timeout",5e3);var ou=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(ou||{});const Gm=Wr("config/proxy-sort-type","defaultsort");var Tf=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(Tf||{});const hf=Je("proxies"),pA=Wr("config/use-connecticon-card",!1),m2=Wr("config/connection-table-columns",["close","host","type","rule","chains","dl","ul","dlSpeed","ulSpeed","connectTime"]),Kee=Wr("config/compact-connection-card",!0);Wr("config/host-label-map",{});var fd=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(fd||{});const Ov=Je("rules"),$m=Je(),y3=async()=>{$m.value=(await Uee()).data},Jee=async e=>{await Yee(e),y3()},Vs=Je([]),Hm=Je([]),Jc=Je(0),Qc=Je(0),Wm=Je(0),Um=Je(0),Ey=Je(0),fv=Je(new Array(60).fill(0)),hv=Je(new Array(60).fill(0));let yg;const Qee=()=>{yg==null||yg(),Vs.value=[],Hm.value=[],fv.value=new Array(60).fill(0),hv.value=new Array(60).fill(0),Jc.value=0,Qc.value=0,Wm.value=0,Um.value=0,Ey.value=0;const e=Xee(),t=hr(e.data,r=>{var i;if(!r)return;const n=JSON.parse(r);Wm.value=Jc.value===0?0:n.downloadTotal-Jc.value,Um.value=Qc.value===0?0:n.uploadTotal-Qc.value,Jc.value=n.downloadTotal,Qc.value=n.uploadTotal,fv.value.push(Wm.value),hv.value.push(Um.value),fv.value=fv.value.slice(-60),hv.value=hv.value.slice(-60),Ey.value=n.memory,!Zm.value&&(Hm.value=[...Hm.value,...Cf.differenceWith(Vs.value,n.connections,(a,o)=>a.id===o.id)],Vs.value=((i=n.connections)==null?void 0:i.map(a=>{const o=Vs.value.find(s=>s.id===a.id)??{download:0,upload:0};return{...a,downloadSpeed:a.download-o.download,uploadSpeed:a.upload-o.upload}}))??[])});yg=()=>{t(),e.close()}},Nv=Wr("config/quick-filter-regex","dns|direct"),Ym=Wr("config/quick-filter-enabled",!1);var vv=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(vv||{});const dv=Je("active");var _3=(e=>(e.HOST="host",e.CHAINS="chains",e.RULE="rule",e.TYPE="type",e.CONNECT_TIME="connectTime",e.DOWNLOAD="download",e.DOWNLOAD_SPEED="downloadSpeed",e.UPLOAD="upload",e.UPLOAD_SPEED="uploadSpeed",e.SOURCE_IP="sourceIP",e))(_3||{});const y2={host:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),rule:(e,t)=>e.rule.localeCompare(t.rule),chains:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),download:(e,t)=>t.download-e.download,downloadSpeed:(e,t)=>t.downloadSpeed-e.downloadSpeed,upload:(e,t)=>t.upload-e.upload,uploadSpeed:(e,t)=>t.uploadSpeed-e.uploadSpeed,sourceIP:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),type:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),connectTime:(e,t)=>Fu(t.start).valueOf()-Fu(e.start).valueOf()},Xm=Wr("config/connection-sort-type","host"),Fv=Je(""),Zm=Je(!1),ky=dt(()=>(dv.value==="active"?Vs.value:Hm.value).filter(e=>{if(Ym.value&&Nv.value){const t=new RegExp(Nv.value);if(t.test(e.chains.join(""))||t.test(e.metadata.host)||t.test(e.metadata.destinationIP))return!1}return Fv.value?[e.metadata.host,e.metadata.destinationIP,e.metadata.destinationPort,e.metadata.sourceIP,e.metadata.sourcePort,e.metadata.processPath,e.metadata.type,e.metadata.network,e.chains,e.rule].some(t=>t==null?void 0:t.includes(Fv.value)):!0}).sort((e,t)=>{const r=pA.value?y2[Xm.value](e,t):y2.host(e,t);return r===0?e.id.localeCompare(t.id):r})),Mb="GLOBAL",qm=Je([]),Af=Je({}),r_=Je({}),vf=Je([]),n_=e=>r_.value[gA(e)],Oy=async()=>{const{data:e}=await Fee(),{data:t}=await Gee(),r=e.proxies[Mb].all??[];Af.value=e.proxies,qm.value=Object.values(e.proxies).filter(n=>{var i;return((i=n.all)==null?void 0:i.length)&&n.name!==Mb}).sort((n,i)=>r.indexOf(n.name)-r.indexOf(i.name)).map(n=>n.name),r_.value=Object.fromEntries(Object.entries(e.proxies).map(([n,i])=>[n,nte(i)])),vf.value=Object.values(t.providers).filter(n=>n.name!=="default"&&n.vehicleType!=="Compatible")},ete=async(e,t)=>{await Vee(e,t),Af.value[e].now=t,Vs.value.filter(r=>r.chains.includes(e)).forEach(r=>t_(r.id))},tte=async e=>{const{data:t}=await Bee(e,g3.value,m3.value);r_.value[gA(e)]=t.delay},rte=async e=>{const{data:t}=await zee(e,g3.value,m3.value);Object.entries(t).forEach(([r,n])=>{r_.value[gA(r)]=n})},nte=e=>{var t;return((t=Cf.last(e.history))==null?void 0:t.delay)??0},gA=e=>{let t=Af.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const r=Af.value[t.now];if(!r)return t.name;t=r}return t.name},ite=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],ate=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],ote=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],ste=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],_2=(e,t,r)=>{let n=e;return typeof t=="string"||Array.isArray(t)?n=e.toLocaleString(t,r):(t===!0||r!==void 0)&&(n=e.toLocaleString(void 0,r)),n};function lte(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const r=t.bits?t.binary?ste:ote:t.binary?ate:ite,n=t.space?" ":"";if(t.signed&&e===0)return` 0${n}${r[0]}`;const i=e<0,a=i?"-":t.signed?"+":"";i&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1){const c=_2(e,t.locale,o);return a+c+n+r[0]}const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));const l=_2(Number(e),t.locale,o),u=r[s];return a+l+n+u}const Pr=(e,t)=>lte(e,{binary:!1,...t}),ute=JJ(),S3=dt(()=>ute.width.value>1280),i_=e=>Fu(e).locale(Au.value).fromNow(),_g=e=>{const t=n_(e);return t===0?1/0:t},w3=e=>{switch(e=[...e],Gm.value){case ou.DEFAULT:return e;case ou.NAME_ASC:return e.sort((t,r)=>t.localeCompare(r));case ou.NAME_DESC:return e.sort((t,r)=>r.localeCompare(t));case ou.LATENCY_ASC:return e.sort((t,r)=>_g(t)-_g(r));case ou.LATENCY_DESC:return e.sort((t,r)=>_g(r)-_g(t))}};/*! +`):" "+d2(a[0]):"as no adapter specified";throw new bt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Tb};function TS(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yf(null,e)}function p2(e){return TS(e),e.headers=fi.from(e.headers),e.data=CS.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),c3.getAdapter(e.adapter||ep.adapter)(e).then(function(n){return TS(e),n.data=CS.call(e,e.transformResponse,n),n.headers=fi.from(n.headers),n},function(n){return i3(n)||(TS(e),n&&n.response&&(n.response.data=CS.call(e,e.transformResponse,n.response),n.response.headers=fi.from(n.response.headers))),Promise.reject(n)})}const f3="1.7.8",e_={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e_[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const g2={};e_.transitional=function(t,r,n){function i(a,o){return"[Axios v"+f3+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new bt(i(o," has been removed"+(r?" in "+r:"")),bt.ERR_DEPRECATED);return r&&!g2[o]&&(g2[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};e_.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Eee(e,t,r){if(typeof e!="object")throw new bt("options must be an object",bt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new bt("option "+a+" must be "+l,bt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new bt("Unknown option "+a,bt.ERR_BAD_OPTION)}}const zm={assertOptions:Eee,validators:e_},ka=zm.validators;class Cu{constructor(t){this.defaults=t,this.interceptors={request:new s2,response:new s2}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=` +`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Hu(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&zm.assertOptions(n,{silentJSONParsing:ka.transitional(ka.boolean),forcedJSONParsing:ka.transitional(ka.boolean),clarifyTimeoutError:ka.transitional(ka.boolean)},!1),i!=null&&(ye.isFunction(i)?r.paramsSerializer={serialize:i}:zm.assertOptions(i,{encode:ka.function,serialize:ka.function},!0)),zm.assertOptions(r,{baseUrl:ka.spelling("baseURL"),withXsrfToken:ka.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&ye.merge(a.common,a[r.method]);a&&ye.forEach(["delete","get","head","post","put","patch","common"],d=>{delete a[d]}),r.headers=fi.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,h;if(!l){const d=[p2.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,u),h=d.length,c=Promise.resolve(r);f{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,s){n.reason||(n.reason=new Yf(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new hA(function(i){t=i}),cancel:t}}}function kee(e){return function(r){return e.apply(null,r)}}function Oee(e){return ye.isObject(e)&&e.isAxiosError===!0}const Ab={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ab).forEach(([e,t])=>{Ab[t]=e});function h3(e){const t=new Cu(e),r=HB(Cu.prototype.request,t);return ye.extend(r,Cu.prototype,t,{allOwnKeys:!0}),ye.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return h3(Hu(e,i))},r}const Ft=h3(ep);Ft.Axios=Cu;Ft.CanceledError=Yf;Ft.CancelToken=hA;Ft.isCancel=i3;Ft.VERSION=f3;Ft.toFormData=J0;Ft.AxiosError=bt;Ft.Cancel=Ft.CanceledError;Ft.all=function(t){return Promise.all(t)};Ft.spread=kee;Ft.isAxiosError=Oee;Ft.mergeConfig=Hu;Ft.AxiosHeaders=fi;Ft.formToJSON=e=>n3(ye.isHTMLForm(e)?new FormData(e):e);Ft.getAdapter=c3.getAdapter;Ft.HttpStatusCode=Ab;Ft.default=Ft;Ft.interceptors.request.use(e=>{var t,r,n,i;return e.baseURL=((t=Fs.value)==null?void 0:t.protocol)+"://"+((r=Fs.value)==null?void 0:r.host)+":"+((n=Fs.value)==null?void 0:n.port),e.headers.Authorization="Bearer "+((i=Fs.value)==null?void 0:i.password),e});const vA=Je(),Nee=()=>Ft.get("/version"),aDe=dt(()=>vA.value.includes("sing-box")),oDe=Je("1.5.5");hr(Fs,async e=>{if(e){const{data:t}=await Nee();vA.value=t.version}},{immediate:!0});const Fee=()=>Ft.get("/proxies"),Vee=(e,t)=>Ft.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),Bee=(e,t,r)=>Ft.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),zee=(e,t,r)=>Ft.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),Gee=()=>Ft.get("/providers/proxies"),v3=e=>Ft.put(`/providers/proxies/${encodeURIComponent(e)}`),$ee=e=>Ft.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),Hee=()=>Ft.get("/rules"),Wee=()=>Ft.get("/providers/rules"),d3=e=>Ft.put(`/providers/rules/${encodeURIComponent(e)}`),t_=e=>Ft.delete(`/connections/${e}`),Uee=()=>Ft.get("/configs"),Yee=e=>Ft.patch("/configs",e),sDe=()=>Ft.post("/cache/fakeip/flush"),lDe=()=>Ft.put("/configs?reload=true",{path:"",payload:""}),uDe=()=>Ft.post("/upgrade/ui"),p3=(e,t)=>{const r=Fs.value,n=new URL(`${(r==null?void 0:r.protocol)==="https"?"wss":"ws"}://${r==null?void 0:r.host}:${r==null?void 0:r.port}/${e}`);return n.searchParams.append("token",(r==null?void 0:r.password)||""),t&&Object.entries(t).forEach(([i,a])=>{n.searchParams.append(i,a)}),KJ(n,{autoClose:!1,autoReconnect:!0})},Xee=()=>p3("connections"),Zee=(e={})=>p3("logs",e);var Tu=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e))(Tu||{}),Nr=(e=>(e.Details="details",e.Close="close",e.Type="type",e.Process="process",e.Host="host",e.Rule="rule",e.Chains="chains",e.DlSpeed="dlSpeed",e.UlSpeed="ulSpeed",e.Download="dl",e.Upload="ul",e.ConnectTime="connectTime",e.SourceIP="sourceIP",e.SourcePort="sourcePort",e.Destination="destination",e))(Nr||{});const qee=Wr("config/theme","default"),Au=Wr("config/language","en-US"),jee=Wr("config/show-global-proxy",!0),Ry=Wr("config/collapse-group-map",{}),dA=Wr("config/two-columns",!0),g3=Wr("config/speedtest-url","http://www.gstatic.com/generate_204"),m3=Wr("config/speedtest-timeout",5e3);var ou=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(ou||{});const Gm=Wr("config/proxy-sort-type","defaultsort");var Tf=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(Tf||{});const hf=Je("proxies"),pA=Wr("config/use-connecticon-card",!1),m2=Wr("config/connection-table-columns",["close","host","type","rule","chains","dl","ul","dlSpeed","ulSpeed","connectTime"]),Kee=Wr("config/compact-connection-card",!0);Wr("config/host-label-map",{});var fd=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(fd||{});const Ov=Je("rules"),$m=Je(),y3=async()=>{$m.value=(await Uee()).data},Jee=async e=>{await Yee(e),y3()},Vs=Je([]),Hm=Je([]),Jc=Je(0),Qc=Je(0),Wm=Je(0),Um=Je(0),Ey=Je(0),fv=Je(new Array(60).fill(0)),hv=Je(new Array(60).fill(0));let yg;const Qee=()=>{yg==null||yg(),Vs.value=[],Hm.value=[],fv.value=new Array(60).fill(0),hv.value=new Array(60).fill(0),Jc.value=0,Qc.value=0,Wm.value=0,Um.value=0,Ey.value=0;const e=Xee(),t=hr(e.data,r=>{var i;if(!r)return;const n=JSON.parse(r);Wm.value=Jc.value===0?0:n.downloadTotal-Jc.value,Um.value=Qc.value===0?0:n.uploadTotal-Qc.value,Jc.value=n.downloadTotal,Qc.value=n.uploadTotal,fv.value.push(Wm.value),hv.value.push(Um.value),fv.value=fv.value.slice(-60),hv.value=hv.value.slice(-60),Ey.value=n.memory,!Zm.value&&(Hm.value=[...Hm.value,...Cf.differenceWith(Vs.value,n.connections,(a,o)=>a.id===o.id)],Vs.value=((i=n.connections)==null?void 0:i.map(a=>{const o=Vs.value.find(s=>s.id===a.id)??{download:0,upload:0};return{...a,downloadSpeed:a.download-o.download,uploadSpeed:a.upload-o.upload}}))??[])});yg=()=>{t(),e.close()}},Nv=Wr("config/quick-filter-regex","dns|direct"),Ym=Wr("config/quick-filter-enabled",!1);var vv=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(vv||{});const dv=Je("active");var _3=(e=>(e.HOST="host",e.CHAINS="chains",e.RULE="rule",e.TYPE="type",e.CONNECT_TIME="connectTime",e.DOWNLOAD="download",e.DOWNLOAD_SPEED="downloadSpeed",e.UPLOAD="upload",e.UPLOAD_SPEED="uploadSpeed",e.SOURCE_IP="sourceIP",e))(_3||{});const y2={host:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),rule:(e,t)=>e.rule.localeCompare(t.rule),chains:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),download:(e,t)=>t.download-e.download,downloadSpeed:(e,t)=>t.downloadSpeed-e.downloadSpeed,upload:(e,t)=>t.upload-e.upload,uploadSpeed:(e,t)=>t.uploadSpeed-e.uploadSpeed,sourceIP:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),type:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),connectTime:(e,t)=>Fu(t.start).valueOf()-Fu(e.start).valueOf()},Xm=Wr("config/connection-sort-type","host"),Fv=Je(""),Zm=Je(!1),ky=dt(()=>(dv.value==="active"?Vs.value:Hm.value).filter(e=>{if(Ym.value&&Nv.value){const t=new RegExp(Nv.value);if(t.test(e.chains.join(""))||t.test(e.metadata.host)||t.test(e.metadata.destinationIP))return!1}return Fv.value?[e.metadata.host,e.metadata.destinationIP,e.metadata.destinationPort,e.metadata.sourceIP,e.metadata.sourcePort,e.metadata.processPath,e.metadata.type,e.metadata.network,e.chains,e.rule].some(t=>t==null?void 0:t.includes(Fv.value)):!0}).sort((e,t)=>{const r=pA.value?y2[Xm.value](e,t):y2.host(e,t);return r===0?e.id.localeCompare(t.id):r})),Mb="GLOBAL",qm=Je([]),Af=Je({}),r_=Je({}),vf=Je([]),n_=e=>r_.value[gA(e)],Oy=async()=>{const{data:e}=await Fee(),{data:t}=await Gee(),r=e.proxies[Mb].all??[];Af.value=e.proxies,qm.value=Object.values(e.proxies).filter(n=>{var i;return((i=n.all)==null?void 0:i.length)&&n.name!==Mb}).sort((n,i)=>r.indexOf(n.name)-r.indexOf(i.name)).map(n=>n.name),r_.value=Object.fromEntries(Object.entries(e.proxies).map(([n,i])=>[n,nte(i)])),vf.value=Object.values(t.providers).filter(n=>n.name!=="default"&&n.vehicleType!=="Compatible")},ete=async(e,t)=>{await Vee(e,t),Af.value[e].now=t,Vs.value.filter(r=>r.chains.includes(e)).forEach(r=>t_(r.id))},tte=async e=>{const{data:t}=await Bee(e,g3.value,m3.value);r_.value[gA(e)]=t.delay},rte=async e=>{const{data:t}=await zee(e,g3.value,m3.value);Object.entries(t).forEach(([r,n])=>{r_.value[gA(r)]=n})},nte=e=>{var t;return((t=Cf.last(e.history))==null?void 0:t.delay)??0},gA=e=>{let t=Af.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const r=Af.value[t.now];if(!r)return t.name;t=r}return t.name},ite=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],ate=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],ote=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],ste=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],_2=(e,t,r)=>{let n=e;return typeof t=="string"||Array.isArray(t)?n=e.toLocaleString(t,r):(t===!0||r!==void 0)&&(n=e.toLocaleString(void 0,r)),n};function lte(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const r=t.bits?t.binary?ste:ote:t.binary?ate:ite,n=t.space?" ":"";if(t.signed&&e===0)return` 0${n}${r[0]}`;const i=e<0,a=i?"-":t.signed?"+":"";i&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1){const c=_2(e,t.locale,o);return a+c+n+r[0]}const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));const l=_2(Number(e),t.locale,o),u=r[s];return a+l+n+u}const Pr=(e,t)=>lte(e,{binary:!1,...t}),ute=JJ(),S3=dt(()=>ute.width.value>1280),i_=e=>Fu(e).locale(Au.value).fromNow(),_g=e=>{const t=n_(e);return t===0?1/0:t},w3=e=>{switch(e=[...e],Gm.value){case ou.DEFAULT:return e;case ou.NAME_ASC:return e.sort((t,r)=>t.localeCompare(r));case ou.NAME_DESC:return e.sort((t,r)=>r.localeCompare(t));case ou.LATENCY_ASC:return e.sort((t,r)=>_g(t)-_g(r));case ou.LATENCY_DESC:return e.sort((t,r)=>_g(r)-_g(t))}};/*! * shared v10.0.4 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */const Ny=typeof window<"u",vl=(e,t=!1)=>t?Symbol.for(e):Symbol(e),cte=(e,t,r)=>fte({l:e,k:t,s:r}),fte=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),qr=e=>typeof e=="number"&&isFinite(e),hte=e=>mA(e)==="[object Date]",Mf=e=>mA(e)==="[object RegExp]",a_=e=>Et(e)&&Object.keys(e).length===0,Jr=Object.assign;let S2;const vu=()=>S2||(S2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function w2(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const vte=Object.prototype.hasOwnProperty;function Fy(e,t){return vte.call(e,t)}const Rr=Array.isArray,Sr=e=>typeof e=="function",He=e=>typeof e=="string",Ut=e=>typeof e=="boolean",Kt=e=>e!==null&&typeof e=="object",dte=e=>Kt(e)&&Sr(e.then)&&Sr(e.catch),x3=Object.prototype.toString,mA=e=>x3.call(e),Et=e=>mA(e)==="[object Object]",pte=e=>e==null?"":Rr(e)||Et(e)&&e.toString===x3?JSON.stringify(e,null,2):String(e);function yA(e,t=""){return e.reduce((r,n,i)=>i===0?r+n:r+t+n,"")}function gte(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Sg=e=>!Kt(e)||Rr(e);function jm(e,t){if(Sg(e)||Sg(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:n,des:i}=r.pop();Object.keys(n).forEach(a=>{Kt(n[a])&&!Kt(i[a])&&(i[a]=Array.isArray(n[a])?[]:{}),Sg(i[a])||Sg(n[a])?i[a]=n[a]:r.push({src:n[a],des:i[a]})})}}/*! + */const Ny=typeof window<"u",vl=(e,t=!1)=>t?Symbol.for(e):Symbol(e),cte=(e,t,r)=>fte({l:e,k:t,s:r}),fte=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),qr=e=>typeof e=="number"&&isFinite(e),hte=e=>mA(e)==="[object Date]",Mf=e=>mA(e)==="[object RegExp]",a_=e=>Et(e)&&Object.keys(e).length===0,Jr=Object.assign;let S2;const vu=()=>S2||(S2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function w2(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const vte=Object.prototype.hasOwnProperty;function Fy(e,t){return vte.call(e,t)}const Rr=Array.isArray,Sr=e=>typeof e=="function",He=e=>typeof e=="string",Ut=e=>typeof e=="boolean",jt=e=>e!==null&&typeof e=="object",dte=e=>jt(e)&&Sr(e.then)&&Sr(e.catch),x3=Object.prototype.toString,mA=e=>x3.call(e),Et=e=>mA(e)==="[object Object]",pte=e=>e==null?"":Rr(e)||Et(e)&&e.toString===x3?JSON.stringify(e,null,2):String(e);function yA(e,t=""){return e.reduce((r,n,i)=>i===0?r+n:r+t+n,"")}function gte(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Sg=e=>!jt(e)||Rr(e);function jm(e,t){if(Sg(e)||Sg(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:n,des:i}=r.pop();Object.keys(n).forEach(a=>{jt(n[a])&&!jt(i[a])&&(i[a]=Array.isArray(n[a])?[]:{}),Sg(i[a])||Sg(n[a])?i[a]=n[a]:r.push({src:n[a],des:i[a]})})}}/*! * message-compiler v10.0.4 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function mte(e,t,r){return{line:e,column:t,offset:r}}function Db(e,t,r){return{start:e,end:t}}const ar={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},yte=17;function o_(e,t,r={}){const{domain:n,messages:i,args:a}=r,o=e,s=new SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=n,s}function _te(e){throw e}const Co=" ",Ste="\r",Vn=` -`,wte="\u2028",xte="\u2029";function bte(e){const t=e;let r=0,n=1,i=1,a=0;const o=A=>t[A]===Ste&&t[A+1]===Vn,s=A=>t[A]===Vn,l=A=>t[A]===xte,u=A=>t[A]===wte,c=A=>o(A)||s(A)||l(A)||u(A),f=()=>r,h=()=>n,v=()=>i,d=()=>a,g=A=>o(A)||l(A)||u(A)?Vn:t[A],m=()=>g(r),y=()=>g(r+a);function S(){return a=0,c(r)&&(n++,i=0),o(r)&&r++,r++,i++,t[r]}function w(){return o(r+a)&&a++,a++,t[r+a]}function x(){r=0,n=1,i=1,a=0}function T(A=0){a=A}function b(){const A=r+a;for(;A!==r;)S();a=0}return{index:f,line:h,column:v,peekOffset:d,charAt:g,currentChar:m,currentPeek:y,next:S,peek:w,reset:x,resetPeek:T,skipToPeek:b}}const ps=void 0,Cte=".",x2="'",Tte="tokenizer";function Ate(e,t={}){const r=t.location!==!1,n=bte(e),i=()=>n.index(),a=()=>mte(n.line(),n.column(),n.index()),o=a(),s=i(),l={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f($,U,Q,...ae){const xe=u();if(U.column+=Q,U.offset+=Q,c){const Pe=r?Db(xe.startLoc,U):null,K=o_($,Pe,{domain:Tte,args:ae});c(K)}}function h($,U,Q){$.endLoc=a(),$.currentType=U;const ae={type:U};return r&&(ae.loc=Db($.startLoc,$.endLoc)),Q!=null&&(ae.value=Q),ae}const v=$=>h($,13);function d($,U){return $.currentChar()===U?($.next(),U):(f(ar.EXPECTED_TOKEN,a(),0,U),"")}function g($){let U="";for(;$.currentPeek()===Co||$.currentPeek()===Vn;)U+=$.currentPeek(),$.peek();return U}function m($){const U=g($);return $.skipToPeek(),U}function y($){if($===ps)return!1;const U=$.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U===95}function S($){if($===ps)return!1;const U=$.charCodeAt(0);return U>=48&&U<=57}function w($,U){const{currentType:Q}=U;if(Q!==2)return!1;g($);const ae=y($.currentPeek());return $.resetPeek(),ae}function x($,U){const{currentType:Q}=U;if(Q!==2)return!1;g($);const ae=$.currentPeek()==="-"?$.peek():$.currentPeek(),xe=S(ae);return $.resetPeek(),xe}function T($,U){const{currentType:Q}=U;if(Q!==2)return!1;g($);const ae=$.currentPeek()===x2;return $.resetPeek(),ae}function b($,U){const{currentType:Q}=U;if(Q!==7)return!1;g($);const ae=$.currentPeek()===".";return $.resetPeek(),ae}function A($,U){const{currentType:Q}=U;if(Q!==8)return!1;g($);const ae=y($.currentPeek());return $.resetPeek(),ae}function M($,U){const{currentType:Q}=U;if(!(Q===7||Q===11))return!1;g($);const ae=$.currentPeek()===":";return $.resetPeek(),ae}function D($,U){const{currentType:Q}=U;if(Q!==9)return!1;const ae=()=>{const Pe=$.currentPeek();return Pe==="{"?y($.peek()):Pe==="@"||Pe==="|"||Pe===":"||Pe==="."||Pe===Co||!Pe?!1:Pe===Vn?($.peek(),ae()):P($,!1)},xe=ae();return $.resetPeek(),xe}function L($){g($);const U=$.currentPeek()==="|";return $.resetPeek(),U}function P($,U=!0){const Q=(xe=!1,Pe="")=>{const K=$.currentPeek();return K==="{"||K==="@"||!K?xe:K==="|"?!(Pe===Co||Pe===Vn):K===Co?($.peek(),Q(!0,Co)):K===Vn?($.peek(),Q(!0,Vn)):!0},ae=Q();return U&&$.resetPeek(),ae}function E($,U){const Q=$.currentChar();return Q===ps?ps:U(Q)?($.next(),Q):null}function F($){const U=$.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U>=48&&U<=57||U===95||U===36}function O($){return E($,F)}function N($){const U=$.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U>=48&&U<=57||U===95||U===36||U===45}function V($){return E($,N)}function Y($){const U=$.charCodeAt(0);return U>=48&&U<=57}function G($){return E($,Y)}function Z($){const U=$.charCodeAt(0);return U>=48&&U<=57||U>=65&&U<=70||U>=97&&U<=102}function J($){return E($,Z)}function re($){let U="",Q="";for(;U=G($);)Q+=U;return Q}function pe($){let U="";for(;;){const Q=$.currentChar();if(Q==="{"||Q==="}"||Q==="@"||Q==="|"||!Q)break;if(Q===Co||Q===Vn)if(P($))U+=Q,$.next();else{if(L($))break;U+=Q,$.next()}else U+=Q,$.next()}return U}function Me($){m($);let U="",Q="";for(;U=V($);)Q+=U;return $.currentChar()===ps&&f(ar.UNTERMINATED_CLOSING_BRACE,a(),0),Q}function Le($){m($);let U="";return $.currentChar()==="-"?($.next(),U+=`-${re($)}`):U+=re($),$.currentChar()===ps&&f(ar.UNTERMINATED_CLOSING_BRACE,a(),0),U}function Fe($){return $!==x2&&$!==Vn}function Ge($){m($),d($,"'");let U="",Q="";for(;U=E($,Fe);)U==="\\"?Q+=ie($):Q+=U;const ae=$.currentChar();return ae===Vn||ae===ps?(f(ar.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),ae===Vn&&($.next(),d($,"'")),Q):(d($,"'"),Q)}function ie($){const U=$.currentChar();switch(U){case"\\":case"'":return $.next(),`\\${U}`;case"u":return le($,U,4);case"U":return le($,U,6);default:return f(ar.UNKNOWN_ESCAPE_SEQUENCE,a(),0,U),""}}function le($,U,Q){d($,U);let ae="";for(let xe=0;xe{const ae=$.currentChar();return ae==="{"||ae==="@"||ae==="|"||ae==="("||ae===")"||!ae||ae===Co?Q:(Q+=ae,$.next(),U(Q))};return U("")}function H($){m($);const U=d($,"|");return m($),U}function W($,U){let Q=null;switch($.currentChar()){case"{":return U.braceNest>=1&&f(ar.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),$.next(),Q=h(U,2,"{"),m($),U.braceNest++,Q;case"}":return U.braceNest>0&&U.currentType===2&&f(ar.EMPTY_PLACEHOLDER,a(),0),$.next(),Q=h(U,3,"}"),U.braceNest--,U.braceNest>0&&m($),U.inLinked&&U.braceNest===0&&(U.inLinked=!1),Q;case"@":return U.braceNest>0&&f(ar.UNTERMINATED_CLOSING_BRACE,a(),0),Q=te($,U)||v(U),U.braceNest=0,Q;default:{let xe=!0,Pe=!0,K=!0;if(L($))return U.braceNest>0&&f(ar.UNTERMINATED_CLOSING_BRACE,a(),0),Q=h(U,1,H($)),U.braceNest=0,U.inLinked=!1,Q;if(U.braceNest>0&&(U.currentType===4||U.currentType===5||U.currentType===6))return f(ar.UNTERMINATED_CLOSING_BRACE,a(),0),U.braceNest=0,_e($,U);if(xe=w($,U))return Q=h(U,4,Me($)),m($),Q;if(Pe=x($,U))return Q=h(U,5,Le($)),m($),Q;if(K=T($,U))return Q=h(U,6,Ge($)),m($),Q;if(!xe&&!Pe&&!K)return Q=h(U,12,me($)),f(ar.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,Q.value),m($),Q;break}}return Q}function te($,U){const{currentType:Q}=U;let ae=null;const xe=$.currentChar();switch((Q===7||Q===8||Q===11||Q===9)&&(xe===Vn||xe===Co)&&f(ar.INVALID_LINKED_FORMAT,a(),0),xe){case"@":return $.next(),ae=h(U,7,"@"),U.inLinked=!0,ae;case".":return m($),$.next(),h(U,8,".");case":":return m($),$.next(),h(U,9,":");default:return L($)?(ae=h(U,1,H($)),U.braceNest=0,U.inLinked=!1,ae):b($,U)||M($,U)?(m($),te($,U)):A($,U)?(m($),h(U,11,be($))):D($,U)?(m($),xe==="{"?W($,U)||ae:h(U,10,Re($))):(Q===7&&f(ar.INVALID_LINKED_FORMAT,a(),0),U.braceNest=0,U.inLinked=!1,_e($,U))}}function _e($,U){let Q={type:13};if(U.braceNest>0)return W($,U)||v(U);if(U.inLinked)return te($,U)||v(U);switch($.currentChar()){case"{":return W($,U)||v(U);case"}":return f(ar.UNBALANCED_CLOSING_BRACE,a(),0),$.next(),h(U,3,"}");case"@":return te($,U)||v(U);default:{if(L($))return Q=h(U,1,H($)),U.braceNest=0,U.inLinked=!1,Q;if(P($))return h(U,0,pe($));break}}return Q}function fe(){const{currentType:$,offset:U,startLoc:Q,endLoc:ae}=l;return l.lastType=$,l.lastOffset=U,l.lastStartLoc=Q,l.lastEndLoc=ae,l.offset=i(),l.startLoc=a(),n.currentChar()===ps?h(l,13):_e(n,l)}return{nextToken:fe,currentOffset:i,currentPosition:a,context:u}}const Mte="parser",Dte=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ite(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function Lte(e={}){const t=e.location!==!1,{onError:r}=e;function n(y,S,w,x,...T){const b=y.currentPosition();if(b.offset+=x,b.column+=x,r){const A=t?Db(w,b):null,M=o_(S,A,{domain:Mte,args:T});r(M)}}function i(y,S,w){const x={type:y};return t&&(x.start=S,x.end=S,x.loc={start:w,end:w}),x}function a(y,S,w,x){t&&(y.end=S,y.loc&&(y.loc.end=w))}function o(y,S){const w=y.context(),x=i(3,w.offset,w.startLoc);return x.value=S,a(x,y.currentOffset(),y.currentPosition()),x}function s(y,S){const w=y.context(),{lastOffset:x,lastStartLoc:T}=w,b=i(5,x,T);return b.index=parseInt(S,10),y.nextToken(),a(b,y.currentOffset(),y.currentPosition()),b}function l(y,S){const w=y.context(),{lastOffset:x,lastStartLoc:T}=w,b=i(4,x,T);return b.key=S,y.nextToken(),a(b,y.currentOffset(),y.currentPosition()),b}function u(y,S){const w=y.context(),{lastOffset:x,lastStartLoc:T}=w,b=i(9,x,T);return b.value=S.replace(Dte,Ite),y.nextToken(),a(b,y.currentOffset(),y.currentPosition()),b}function c(y){const S=y.nextToken(),w=y.context(),{lastOffset:x,lastStartLoc:T}=w,b=i(8,x,T);return S.type!==11?(n(y,ar.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),b.value="",a(b,x,T),{nextConsumeToken:S,node:b}):(S.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Na(S)),b.value=S.value||"",a(b,y.currentOffset(),y.currentPosition()),{node:b})}function f(y,S){const w=y.context(),x=i(7,w.offset,w.startLoc);return x.value=S,a(x,y.currentOffset(),y.currentPosition()),x}function h(y){const S=y.context(),w=i(6,S.offset,S.startLoc);let x=y.nextToken();if(x.type===8){const T=c(y);w.modifier=T.node,x=T.nextConsumeToken||y.nextToken()}switch(x.type!==9&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Na(x)),x=y.nextToken(),x.type===2&&(x=y.nextToken()),x.type){case 10:x.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Na(x)),w.key=f(y,x.value||"");break;case 4:x.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Na(x)),w.key=l(y,x.value||"");break;case 5:x.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Na(x)),w.key=s(y,x.value||"");break;case 6:x.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Na(x)),w.key=u(y,x.value||"");break;default:{n(y,ar.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const T=y.context(),b=i(7,T.offset,T.startLoc);return b.value="",a(b,T.offset,T.startLoc),w.key=b,a(w,T.offset,T.startLoc),{nextConsumeToken:x,node:w}}}return a(w,y.currentOffset(),y.currentPosition()),{node:w}}function v(y){const S=y.context(),w=S.currentType===1?y.currentOffset():S.offset,x=S.currentType===1?S.endLoc:S.startLoc,T=i(2,w,x);T.items=[];let b=null;do{const D=b||y.nextToken();switch(b=null,D.type){case 0:D.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Na(D)),T.items.push(o(y,D.value||""));break;case 5:D.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Na(D)),T.items.push(s(y,D.value||""));break;case 4:D.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Na(D)),T.items.push(l(y,D.value||""));break;case 6:D.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Na(D)),T.items.push(u(y,D.value||""));break;case 7:{const L=h(y);T.items.push(L.node),b=L.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const A=S.currentType===1?S.lastOffset:y.currentOffset(),M=S.currentType===1?S.lastEndLoc:y.currentPosition();return a(T,A,M),T}function d(y,S,w,x){const T=y.context();let b=x.items.length===0;const A=i(1,S,w);A.cases=[],A.cases.push(x);do{const M=v(y);b||(b=M.items.length===0),A.cases.push(M)}while(T.currentType!==13);return b&&n(y,ar.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),a(A,y.currentOffset(),y.currentPosition()),A}function g(y){const S=y.context(),{offset:w,startLoc:x}=S,T=v(y);return S.currentType===13?T:d(y,w,x,T)}function m(y){const S=Ate(y,Jr({},e)),w=S.context(),x=i(0,w.offset,w.startLoc);return t&&x.loc&&(x.loc.source=y),x.body=g(S),e.onCacheKey&&(x.cacheKey=e.onCacheKey(y)),w.currentType!==13&&n(S,ar.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,y[w.offset]||""),a(x,S.currentOffset(),S.currentPosition()),x}return{parse:m}}function Na(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Pte(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:a=>(r.helpers.add(a),a)}}function b2(e,t){for(let r=0;rC2(r)),e}function C2(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let r=0;rs;function u(m,y){s.code+=m}function c(m,y=!0){const S=y?i:"";u(a?S+" ".repeat(m):S)}function f(m=!0){const y=++s.indentLevel;m&&c(y)}function h(m=!0){const y=--s.indentLevel;m&&c(y)}function v(){c(s.indentLevel)}return{context:l,push:u,indent:f,deindent:h,newline:v,helper:m=>`_${m}`,needIndent:()=>s.needIndent}}function Ote(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),Df(e,t.key),t.modifier?(e.push(", "),Df(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Nte(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const i=t.items.length;for(let a=0;a1){e.push(`${r("plural")}([`),e.indent(n());const i=t.cases.length;for(let a=0;a{const r=He(t.mode)?t.mode:"normal",n=He(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,a=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":` +`,wte="\u2028",xte="\u2029";function bte(e){const t=e;let r=0,n=1,i=1,a=0;const o=A=>t[A]===Ste&&t[A+1]===Vn,s=A=>t[A]===Vn,l=A=>t[A]===xte,u=A=>t[A]===wte,c=A=>o(A)||s(A)||l(A)||u(A),f=()=>r,h=()=>n,v=()=>i,d=()=>a,g=A=>o(A)||l(A)||u(A)?Vn:t[A],m=()=>g(r),y=()=>g(r+a);function S(){return a=0,c(r)&&(n++,i=0),o(r)&&r++,r++,i++,t[r]}function w(){return o(r+a)&&a++,a++,t[r+a]}function x(){r=0,n=1,i=1,a=0}function T(A=0){a=A}function b(){const A=r+a;for(;A!==r;)S();a=0}return{index:f,line:h,column:v,peekOffset:d,charAt:g,currentChar:m,currentPeek:y,next:S,peek:w,reset:x,resetPeek:T,skipToPeek:b}}const ps=void 0,Cte=".",x2="'",Tte="tokenizer";function Ate(e,t={}){const r=t.location!==!1,n=bte(e),i=()=>n.index(),a=()=>mte(n.line(),n.column(),n.index()),o=a(),s=i(),l={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f($,U,Q,...ae){const xe=u();if(U.column+=Q,U.offset+=Q,c){const Pe=r?Db(xe.startLoc,U):null,K=o_($,Pe,{domain:Tte,args:ae});c(K)}}function h($,U,Q){$.endLoc=a(),$.currentType=U;const ae={type:U};return r&&(ae.loc=Db($.startLoc,$.endLoc)),Q!=null&&(ae.value=Q),ae}const v=$=>h($,13);function d($,U){return $.currentChar()===U?($.next(),U):(f(ar.EXPECTED_TOKEN,a(),0,U),"")}function g($){let U="";for(;$.currentPeek()===Co||$.currentPeek()===Vn;)U+=$.currentPeek(),$.peek();return U}function m($){const U=g($);return $.skipToPeek(),U}function y($){if($===ps)return!1;const U=$.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U===95}function S($){if($===ps)return!1;const U=$.charCodeAt(0);return U>=48&&U<=57}function w($,U){const{currentType:Q}=U;if(Q!==2)return!1;g($);const ae=y($.currentPeek());return $.resetPeek(),ae}function x($,U){const{currentType:Q}=U;if(Q!==2)return!1;g($);const ae=$.currentPeek()==="-"?$.peek():$.currentPeek(),xe=S(ae);return $.resetPeek(),xe}function T($,U){const{currentType:Q}=U;if(Q!==2)return!1;g($);const ae=$.currentPeek()===x2;return $.resetPeek(),ae}function b($,U){const{currentType:Q}=U;if(Q!==7)return!1;g($);const ae=$.currentPeek()===".";return $.resetPeek(),ae}function A($,U){const{currentType:Q}=U;if(Q!==8)return!1;g($);const ae=y($.currentPeek());return $.resetPeek(),ae}function M($,U){const{currentType:Q}=U;if(!(Q===7||Q===11))return!1;g($);const ae=$.currentPeek()===":";return $.resetPeek(),ae}function D($,U){const{currentType:Q}=U;if(Q!==9)return!1;const ae=()=>{const Pe=$.currentPeek();return Pe==="{"?y($.peek()):Pe==="@"||Pe==="|"||Pe===":"||Pe==="."||Pe===Co||!Pe?!1:Pe===Vn?($.peek(),ae()):P($,!1)},xe=ae();return $.resetPeek(),xe}function L($){g($);const U=$.currentPeek()==="|";return $.resetPeek(),U}function P($,U=!0){const Q=(xe=!1,Pe="")=>{const K=$.currentPeek();return K==="{"||K==="@"||!K?xe:K==="|"?!(Pe===Co||Pe===Vn):K===Co?($.peek(),Q(!0,Co)):K===Vn?($.peek(),Q(!0,Vn)):!0},ae=Q();return U&&$.resetPeek(),ae}function E($,U){const Q=$.currentChar();return Q===ps?ps:U(Q)?($.next(),Q):null}function F($){const U=$.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U>=48&&U<=57||U===95||U===36}function O($){return E($,F)}function N($){const U=$.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U>=48&&U<=57||U===95||U===36||U===45}function V($){return E($,N)}function Y($){const U=$.charCodeAt(0);return U>=48&&U<=57}function G($){return E($,Y)}function Z($){const U=$.charCodeAt(0);return U>=48&&U<=57||U>=65&&U<=70||U>=97&&U<=102}function J($){return E($,Z)}function re($){let U="",Q="";for(;U=G($);)Q+=U;return Q}function pe($){let U="";for(;;){const Q=$.currentChar();if(Q==="{"||Q==="}"||Q==="@"||Q==="|"||!Q)break;if(Q===Co||Q===Vn)if(P($))U+=Q,$.next();else{if(L($))break;U+=Q,$.next()}else U+=Q,$.next()}return U}function Me($){m($);let U="",Q="";for(;U=V($);)Q+=U;return $.currentChar()===ps&&f(ar.UNTERMINATED_CLOSING_BRACE,a(),0),Q}function Le($){m($);let U="";return $.currentChar()==="-"?($.next(),U+=`-${re($)}`):U+=re($),$.currentChar()===ps&&f(ar.UNTERMINATED_CLOSING_BRACE,a(),0),U}function Fe($){return $!==x2&&$!==Vn}function Ge($){m($),d($,"'");let U="",Q="";for(;U=E($,Fe);)U==="\\"?Q+=ie($):Q+=U;const ae=$.currentChar();return ae===Vn||ae===ps?(f(ar.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),ae===Vn&&($.next(),d($,"'")),Q):(d($,"'"),Q)}function ie($){const U=$.currentChar();switch(U){case"\\":case"'":return $.next(),`\\${U}`;case"u":return le($,U,4);case"U":return le($,U,6);default:return f(ar.UNKNOWN_ESCAPE_SEQUENCE,a(),0,U),""}}function le($,U,Q){d($,U);let ae="";for(let xe=0;xe{const ae=$.currentChar();return ae==="{"||ae==="@"||ae==="|"||ae==="("||ae===")"||!ae||ae===Co?Q:(Q+=ae,$.next(),U(Q))};return U("")}function H($){m($);const U=d($,"|");return m($),U}function W($,U){let Q=null;switch($.currentChar()){case"{":return U.braceNest>=1&&f(ar.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),$.next(),Q=h(U,2,"{"),m($),U.braceNest++,Q;case"}":return U.braceNest>0&&U.currentType===2&&f(ar.EMPTY_PLACEHOLDER,a(),0),$.next(),Q=h(U,3,"}"),U.braceNest--,U.braceNest>0&&m($),U.inLinked&&U.braceNest===0&&(U.inLinked=!1),Q;case"@":return U.braceNest>0&&f(ar.UNTERMINATED_CLOSING_BRACE,a(),0),Q=te($,U)||v(U),U.braceNest=0,Q;default:{let xe=!0,Pe=!0,K=!0;if(L($))return U.braceNest>0&&f(ar.UNTERMINATED_CLOSING_BRACE,a(),0),Q=h(U,1,H($)),U.braceNest=0,U.inLinked=!1,Q;if(U.braceNest>0&&(U.currentType===4||U.currentType===5||U.currentType===6))return f(ar.UNTERMINATED_CLOSING_BRACE,a(),0),U.braceNest=0,_e($,U);if(xe=w($,U))return Q=h(U,4,Me($)),m($),Q;if(Pe=x($,U))return Q=h(U,5,Le($)),m($),Q;if(K=T($,U))return Q=h(U,6,Ge($)),m($),Q;if(!xe&&!Pe&&!K)return Q=h(U,12,me($)),f(ar.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,Q.value),m($),Q;break}}return Q}function te($,U){const{currentType:Q}=U;let ae=null;const xe=$.currentChar();switch((Q===7||Q===8||Q===11||Q===9)&&(xe===Vn||xe===Co)&&f(ar.INVALID_LINKED_FORMAT,a(),0),xe){case"@":return $.next(),ae=h(U,7,"@"),U.inLinked=!0,ae;case".":return m($),$.next(),h(U,8,".");case":":return m($),$.next(),h(U,9,":");default:return L($)?(ae=h(U,1,H($)),U.braceNest=0,U.inLinked=!1,ae):b($,U)||M($,U)?(m($),te($,U)):A($,U)?(m($),h(U,11,be($))):D($,U)?(m($),xe==="{"?W($,U)||ae:h(U,10,Re($))):(Q===7&&f(ar.INVALID_LINKED_FORMAT,a(),0),U.braceNest=0,U.inLinked=!1,_e($,U))}}function _e($,U){let Q={type:13};if(U.braceNest>0)return W($,U)||v(U);if(U.inLinked)return te($,U)||v(U);switch($.currentChar()){case"{":return W($,U)||v(U);case"}":return f(ar.UNBALANCED_CLOSING_BRACE,a(),0),$.next(),h(U,3,"}");case"@":return te($,U)||v(U);default:{if(L($))return Q=h(U,1,H($)),U.braceNest=0,U.inLinked=!1,Q;if(P($))return h(U,0,pe($));break}}return Q}function fe(){const{currentType:$,offset:U,startLoc:Q,endLoc:ae}=l;return l.lastType=$,l.lastOffset=U,l.lastStartLoc=Q,l.lastEndLoc=ae,l.offset=i(),l.startLoc=a(),n.currentChar()===ps?h(l,13):_e(n,l)}return{nextToken:fe,currentOffset:i,currentPosition:a,context:u}}const Mte="parser",Dte=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ite(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function Lte(e={}){const t=e.location!==!1,{onError:r}=e;function n(y,S,w,x,...T){const b=y.currentPosition();if(b.offset+=x,b.column+=x,r){const A=t?Db(w,b):null,M=o_(S,A,{domain:Mte,args:T});r(M)}}function i(y,S,w){const x={type:y};return t&&(x.start=S,x.end=S,x.loc={start:w,end:w}),x}function a(y,S,w,x){t&&(y.end=S,y.loc&&(y.loc.end=w))}function o(y,S){const w=y.context(),x=i(3,w.offset,w.startLoc);return x.value=S,a(x,y.currentOffset(),y.currentPosition()),x}function s(y,S){const w=y.context(),{lastOffset:x,lastStartLoc:T}=w,b=i(5,x,T);return b.index=parseInt(S,10),y.nextToken(),a(b,y.currentOffset(),y.currentPosition()),b}function l(y,S){const w=y.context(),{lastOffset:x,lastStartLoc:T}=w,b=i(4,x,T);return b.key=S,y.nextToken(),a(b,y.currentOffset(),y.currentPosition()),b}function u(y,S){const w=y.context(),{lastOffset:x,lastStartLoc:T}=w,b=i(9,x,T);return b.value=S.replace(Dte,Ite),y.nextToken(),a(b,y.currentOffset(),y.currentPosition()),b}function c(y){const S=y.nextToken(),w=y.context(),{lastOffset:x,lastStartLoc:T}=w,b=i(8,x,T);return S.type!==11?(n(y,ar.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),b.value="",a(b,x,T),{nextConsumeToken:S,node:b}):(S.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Oa(S)),b.value=S.value||"",a(b,y.currentOffset(),y.currentPosition()),{node:b})}function f(y,S){const w=y.context(),x=i(7,w.offset,w.startLoc);return x.value=S,a(x,y.currentOffset(),y.currentPosition()),x}function h(y){const S=y.context(),w=i(6,S.offset,S.startLoc);let x=y.nextToken();if(x.type===8){const T=c(y);w.modifier=T.node,x=T.nextConsumeToken||y.nextToken()}switch(x.type!==9&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Oa(x)),x=y.nextToken(),x.type===2&&(x=y.nextToken()),x.type){case 10:x.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Oa(x)),w.key=f(y,x.value||"");break;case 4:x.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Oa(x)),w.key=l(y,x.value||"");break;case 5:x.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Oa(x)),w.key=s(y,x.value||"");break;case 6:x.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Oa(x)),w.key=u(y,x.value||"");break;default:{n(y,ar.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const T=y.context(),b=i(7,T.offset,T.startLoc);return b.value="",a(b,T.offset,T.startLoc),w.key=b,a(w,T.offset,T.startLoc),{nextConsumeToken:x,node:w}}}return a(w,y.currentOffset(),y.currentPosition()),{node:w}}function v(y){const S=y.context(),w=S.currentType===1?y.currentOffset():S.offset,x=S.currentType===1?S.endLoc:S.startLoc,T=i(2,w,x);T.items=[];let b=null;do{const D=b||y.nextToken();switch(b=null,D.type){case 0:D.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Oa(D)),T.items.push(o(y,D.value||""));break;case 5:D.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Oa(D)),T.items.push(s(y,D.value||""));break;case 4:D.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Oa(D)),T.items.push(l(y,D.value||""));break;case 6:D.value==null&&n(y,ar.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Oa(D)),T.items.push(u(y,D.value||""));break;case 7:{const L=h(y);T.items.push(L.node),b=L.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const A=S.currentType===1?S.lastOffset:y.currentOffset(),M=S.currentType===1?S.lastEndLoc:y.currentPosition();return a(T,A,M),T}function d(y,S,w,x){const T=y.context();let b=x.items.length===0;const A=i(1,S,w);A.cases=[],A.cases.push(x);do{const M=v(y);b||(b=M.items.length===0),A.cases.push(M)}while(T.currentType!==13);return b&&n(y,ar.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),a(A,y.currentOffset(),y.currentPosition()),A}function g(y){const S=y.context(),{offset:w,startLoc:x}=S,T=v(y);return S.currentType===13?T:d(y,w,x,T)}function m(y){const S=Ate(y,Jr({},e)),w=S.context(),x=i(0,w.offset,w.startLoc);return t&&x.loc&&(x.loc.source=y),x.body=g(S),e.onCacheKey&&(x.cacheKey=e.onCacheKey(y)),w.currentType!==13&&n(S,ar.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,y[w.offset]||""),a(x,S.currentOffset(),S.currentPosition()),x}return{parse:m}}function Oa(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Pte(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:a=>(r.helpers.add(a),a)}}function b2(e,t){for(let r=0;rC2(r)),e}function C2(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let r=0;rs;function u(m,y){s.code+=m}function c(m,y=!0){const S=y?i:"";u(a?S+" ".repeat(m):S)}function f(m=!0){const y=++s.indentLevel;m&&c(y)}function h(m=!0){const y=--s.indentLevel;m&&c(y)}function v(){c(s.indentLevel)}return{context:l,push:u,indent:f,deindent:h,newline:v,helper:m=>`_${m}`,needIndent:()=>s.needIndent}}function Ote(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),Df(e,t.key),t.modifier?(e.push(", "),Df(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Nte(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const i=t.items.length;for(let a=0;a1){e.push(`${r("plural")}([`),e.indent(n());const i=t.cases.length;for(let a=0;a{const r=He(t.mode)?t.mode:"normal",n=He(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,a=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":` `,o=t.needIndent?t.needIndent:r!=="arrow",s=e.helpers||[],l=kte(e,{mode:r,filename:n,sourceMap:i,breakLineCode:a,needIndent:o});l.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${yA(s.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),Df(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function zte(e,t={}){const r=Jr({},t),n=!!r.jit,i=!!r.minify,a=r.optimize==null?!0:r.optimize,s=Lte(r).parse(e);return n?(a&&Ete(s),i&&Uc(s),{ast:s,code:""}):(Rte(s,r),Bte(s,r))}/*! * core-base v10.0.4 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */function Gte(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(vu().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(vu().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function AS(e){return r=>$te(r,e)}function $te(e,t){const r=t.b||t.body;if((r.t||r.type)===1){const n=r,i=n.c||n.cases;return e.plural(i.reduce((a,o)=>[...a,T2(e,o)],[]))}else return T2(e,r)}function T2(e,t){const r=t.s||t.static;if(r!=null)return e.type==="text"?r:e.normalize([r]);{const n=(t.i||t.items).reduce((i,a)=>[...i,Ib(e,a)],[]);return e.normalize(n)}}function Ib(e,t){const r=t.t||t.type;switch(r){case 3:{const n=t;return n.v||n.value}case 9:{const n=t;return n.v||n.value}case 4:{const n=t;return e.interpolate(e.named(n.k||n.key))}case 5:{const n=t;return e.interpolate(e.list(n.i!=null?n.i:n.index))}case 6:{const n=t,i=n.m||n.modifier;return e.linked(Ib(e,n.k||n.key),i?Ib(e,i):void 0,e.type)}case 7:{const n=t;return n.v||n.value}case 8:{const n=t;return n.v||n.value}default:throw new Error(`unhandled node type on format message part: ${r}`)}}const Hte=e=>e;let wg=Object.create(null);const If=e=>Kt(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Wte(e,t={}){let r=!1;const n=t.onError||_te;return t.onError=i=>{r=!0,n(i)},{...zte(e,t),detectError:r}}function Ute(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&He(e)){Ut(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||Hte)(e),i=wg[n];if(i)return i;const{ast:a,detectError:o}=Wte(e,{...t,location:!1,jit:!0}),s=AS(a);return o?s:wg[n]=s}else{const r=e.cacheKey;if(r){const n=wg[r];return n||(wg[r]=AS(e))}else return AS(e)}}let hd=null;function Yte(e){hd=e}function Xte(e,t,r){hd&&hd.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const Zte=qte("function:translate");function qte(e){return t=>hd&&hd.emit(e,t)}const Vo={INVALID_ARGUMENT:yte,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},jte=24;function Bo(e){return o_(e,null,void 0)}function SA(e,t){return t.locale!=null?A2(t.locale):A2(e.locale)}let MS;function A2(e){if(He(e))return e;if(Sr(e)){if(e.resolvedOnce&&MS!=null)return MS;if(e.constructor.name==="Function"){const t=e();if(dte(t))throw Bo(Vo.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return MS=t}else throw Bo(Vo.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Bo(Vo.NOT_SUPPORT_LOCALE_TYPE)}function Kte(e,t,r){return[...new Set([r,...Rr(t)?t:Kt(t)?Object.keys(t):He(t)?[t]:[r]])]}function b3(e,t,r){const n=He(r)?r:vd,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let a=i.__localeChainCache.get(n);if(!a){a=[];let o=[r];for(;Rr(o);)o=M2(a,o,t);const s=Rr(t)||!Et(t)?t:t.default?t.default:null;o=He(s)?[s]:s,Rr(o)&&M2(a,o,!1),i.__localeChainCache.set(n,a)}return a}function M2(e,t,r){let n=!0;for(let i=0;i{o===void 0?o=s:o+=s},h[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},h[2]=()=>{h[0](),i++},h[3]=()=>{if(i>0)i--,n=4,h[0]();else{if(i=0,o===void 0||(o=ire(o),o===!1))return!1;h[1]()}};function v(){const d=e[r+1];if(n===5&&d==="'"||n===6&&d==='"')return r++,s="\\"+d,h[0](),!0}for(;n!==null;)if(r++,a=e[r],!(a==="\\"&&v())){if(l=nre(a),f=dl[n],u=f[l]||f.l||8,u===8||(n=u[0],u[1]!==void 0&&(c=h[u[1]],c&&(s=a,c()===!1))))return;if(n===7)return t}}const D2=new Map;function ore(e,t){return Kt(e)?e[t]:null}function sre(e,t){if(!Kt(e))return null;let r=D2.get(t);if(r||(r=are(t),r&&D2.set(t,r)),!r)return null;const n=r.length;let i=e,a=0;for(;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function ure(){return{upper:(e,t)=>t==="text"&&He(e)?e.toUpperCase():t==="vnode"&&Kt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&He(e)?e.toLowerCase():t==="vnode"&&Kt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&He(e)?L2(e):t==="vnode"&&Kt(e)&&"__v_isVNode"in e?L2(e.children):e}}let C3;function cre(e){C3=e}let T3;function fre(e){T3=e}let A3;function hre(e){A3=e}let M3=null;const vre=e=>{M3=e},dre=()=>M3;let D3=null;const P2=e=>{D3=e},pre=()=>D3;let R2=0;function gre(e={}){const t=Sr(e.onWarn)?e.onWarn:gte,r=He(e.version)?e.version:lre,n=He(e.locale)||Sr(e.locale)?e.locale:vd,i=Sr(n)?vd:n,a=Rr(e.fallbackLocale)||Et(e.fallbackLocale)||He(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Et(e.messages)?e.messages:{[i]:{}},s=Et(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=Et(e.numberFormats)?e.numberFormats:{[i]:{}},u=Jr({},e.modifiers||{},ure()),c=e.pluralRules||{},f=Sr(e.missing)?e.missing:null,h=Ut(e.missingWarn)||Mf(e.missingWarn)?e.missingWarn:!0,v=Ut(e.fallbackWarn)||Mf(e.fallbackWarn)?e.fallbackWarn:!0,d=!!e.fallbackFormat,g=!!e.unresolving,m=Sr(e.postTranslation)?e.postTranslation:null,y=Et(e.processor)?e.processor:null,S=Ut(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,x=Sr(e.messageCompiler)?e.messageCompiler:C3,T=Sr(e.messageResolver)?e.messageResolver:T3||ore,b=Sr(e.localeFallbacker)?e.localeFallbacker:A3||Kte,A=Kt(e.fallbackContext)?e.fallbackContext:void 0,M=e,D=Kt(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,L=Kt(M.__numberFormatters)?M.__numberFormatters:new Map,P=Kt(M.__meta)?M.__meta:{};R2++;const E={version:r,cid:R2,locale:n,fallbackLocale:a,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:h,fallbackWarn:v,fallbackFormat:d,unresolving:g,postTranslation:m,processor:y,warnHtmlMessage:S,escapeParameter:w,messageCompiler:x,messageResolver:T,localeFallbacker:b,fallbackContext:A,onWarn:t,__meta:P};return E.datetimeFormats=s,E.numberFormats=l,E.__datetimeFormatters=D,E.__numberFormatters=L,__INTLIFY_PROD_DEVTOOLS__&&Xte(E,r,P),E}function wA(e,t,r,n,i){const{missing:a,onWarn:o}=e;if(a!==null){const s=a(e,r,t,i);return He(s)?s:t}else return t}function Ih(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function mre(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function yre(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let n=r+1;n{I3.includes(l)?o[l]=r[l]:a[l]=r[l]}),He(n)?a.locale=n:Et(n)&&(o=n),Et(i)&&(o=i),[a.key||"",s,a,o]}function k2(e,t,r){const n=e;for(const i in r){const a=`${t}__${i}`;n.__datetimeFormatters.has(a)&&n.__datetimeFormatters.delete(a)}}function O2(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e,[l,u,c,f]=Pb(...t),h=Ut(c.missingWarn)?c.missingWarn:e.missingWarn;Ut(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const v=!!c.part,d=SA(e,c),g=o(e,i,d);if(!He(l)||l==="")return new Intl.NumberFormat(d,f).format(u);let m={},y,S=null;const w="number format";for(let b=0;b{L3.includes(l)?o[l]=r[l]:a[l]=r[l]}),He(n)?a.locale=n:Et(n)&&(o=n),Et(i)&&(o=i),[a.key||"",s,a,o]}function N2(e,t,r){const n=e;for(const i in r){const a=`${t}__${i}`;n.__numberFormatters.has(a)&&n.__numberFormatters.delete(a)}}const _re=e=>e,Sre=e=>"",wre="text",xre=e=>e.length===0?"":yA(e),bre=pte;function F2(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Cre(e){const t=qr(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(qr(e.named.count)||qr(e.named.n))?qr(e.named.count)?e.named.count:qr(e.named.n)?e.named.n:t:t}function Tre(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Are(e={}){const t=e.locale,r=Cre(e),n=Kt(e.pluralRules)&&He(t)&&Sr(e.pluralRules[t])?e.pluralRules[t]:F2,i=Kt(e.pluralRules)&&He(t)&&Sr(e.pluralRules[t])?F2:void 0,a=y=>y[n(r,y.length,i)],o=e.list||[],s=y=>o[y],l=e.named||{};qr(e.pluralIndex)&&Tre(r,l);const u=y=>l[y];function c(y,S){const w=Sr(e.messages)?e.messages(y,!!S):Kt(e.messages)?e.messages[y]:!1;return w||(e.parent?e.parent.message(y):Sre)}const f=y=>e.modifiers?e.modifiers[y]:_re,h=Et(e.processor)&&Sr(e.processor.normalize)?e.processor.normalize:xre,v=Et(e.processor)&&Sr(e.processor.interpolate)?e.processor.interpolate:bre,d=Et(e.processor)&&He(e.processor.type)?e.processor.type:wre,m={list:s,named:u,plural:a,linked:(y,...S)=>{const[w,x]=S;let T="text",b="";S.length===1?Kt(w)?(b=w.modifier||b,T=w.type||T):He(w)&&(b=w||b):S.length===2&&(He(w)&&(b=w||b),He(x)&&(T=x||T));const A=c(y,!0)(m),M=T==="vnode"&&Rr(A)&&b?A[0]:A;return b?f(b)(M,T):M},message:c,type:d,interpolate:v,normalize:h,values:Jr({},o,l)};return m}const V2=()=>"",Zi=e=>Sr(e);function B2(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[l,u]=Rb(...t),c=Ut(u.missingWarn)?u.missingWarn:e.missingWarn,f=Ut(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=Ut(u.escapeParameter)?u.escapeParameter:e.escapeParameter,v=!!u.resolvedMessage,d=He(u.default)||Ut(u.default)?Ut(u.default)?a?l:()=>l:u.default:r?a?l:()=>l:null,g=r||d!=null&&(He(d)||Sr(d)),m=SA(e,u);h&&Mre(u);let[y,S,w]=v?[l,m,s[m]||{}]:P3(e,l,m,o,f,c),x=y,T=l;if(!v&&!(He(x)||If(x)||Zi(x))&&g&&(x=d,T=x),!v&&(!(He(x)||If(x)||Zi(x))||!He(S)))return i?s_:l;let b=!1;const A=()=>{b=!0},M=Zi(x)?x:R3(e,l,S,x,T,A);if(b)return x;const D=Lre(e,S,w,u),L=Are(D),P=Dre(e,M,L),E=n?n(P,l):P;if(__INTLIFY_PROD_DEVTOOLS__){const F={timestamp:Date.now(),key:He(l)?l:Zi(x)?x.key:"",locale:S||(Zi(x)?x.locale:""),format:He(x)?x:Zi(x)?x.source:"",message:E};F.meta=Jr({},e.__meta,dre()||{}),Zte(F)}return E}function Mre(e){Rr(e.list)?e.list=e.list.map(t=>He(t)?w2(t):t):Kt(e.named)&&Object.keys(e.named).forEach(t=>{He(e.named[t])&&(e.named[t]=w2(e.named[t]))})}function P3(e,t,r,n,i,a){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,n,r);let f={},h,v=null;const d="translate";for(let g=0;gn;return u.locale=r,u.key=t,u}const l=o(n,Ire(e,r,i,n,s,a));return l.locale=r,l.key=t,l.source=n,l}function Dre(e,t,r){return t(r)}function Rb(...e){const[t,r,n]=e,i={};if(!He(t)&&!qr(t)&&!Zi(t)&&!If(t))throw Bo(Vo.INVALID_ARGUMENT);const a=qr(t)?String(t):(Zi(t),t);return qr(r)?i.plural=r:He(r)?i.default=r:Et(r)&&!a_(r)?i.named=r:Rr(r)&&(i.list=r),qr(n)?i.plural=n:He(n)?i.default=n:Et(n)&&Jr(i,n),[a,i]}function Ire(e,t,r,n,i,a){return{locale:t,key:r,warnHtmlMessage:i,onError:o=>{throw a&&a(o),o},onCacheKey:o=>cte(t,r,o)}}function Lre(e,t,r,n){const{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,h={locale:t,modifiers:i,pluralRules:a,messages:(v,d)=>{let g=o(r,v);if(g==null&&(c||d)){const[,,m]=P3(c||e,v,t,s,l,u);g=o(m,v)}if(He(g)||If(g)){let m=!1;const S=R3(e,v,t,g,v,()=>{m=!0});return m?V2:S}else return Zi(g)?g:V2}};return e.processor&&(h.processor=e.processor),n.list&&(h.list=n.list),n.named&&(h.named=n.named),qr(n.plural)&&(h.pluralIndex=n.plural),h}Gte();/*! + */function Gte(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(vu().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(vu().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function AS(e){return r=>$te(r,e)}function $te(e,t){const r=t.b||t.body;if((r.t||r.type)===1){const n=r,i=n.c||n.cases;return e.plural(i.reduce((a,o)=>[...a,T2(e,o)],[]))}else return T2(e,r)}function T2(e,t){const r=t.s||t.static;if(r!=null)return e.type==="text"?r:e.normalize([r]);{const n=(t.i||t.items).reduce((i,a)=>[...i,Ib(e,a)],[]);return e.normalize(n)}}function Ib(e,t){const r=t.t||t.type;switch(r){case 3:{const n=t;return n.v||n.value}case 9:{const n=t;return n.v||n.value}case 4:{const n=t;return e.interpolate(e.named(n.k||n.key))}case 5:{const n=t;return e.interpolate(e.list(n.i!=null?n.i:n.index))}case 6:{const n=t,i=n.m||n.modifier;return e.linked(Ib(e,n.k||n.key),i?Ib(e,i):void 0,e.type)}case 7:{const n=t;return n.v||n.value}case 8:{const n=t;return n.v||n.value}default:throw new Error(`unhandled node type on format message part: ${r}`)}}const Hte=e=>e;let wg=Object.create(null);const If=e=>jt(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Wte(e,t={}){let r=!1;const n=t.onError||_te;return t.onError=i=>{r=!0,n(i)},{...zte(e,t),detectError:r}}function Ute(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&He(e)){Ut(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||Hte)(e),i=wg[n];if(i)return i;const{ast:a,detectError:o}=Wte(e,{...t,location:!1,jit:!0}),s=AS(a);return o?s:wg[n]=s}else{const r=e.cacheKey;if(r){const n=wg[r];return n||(wg[r]=AS(e))}else return AS(e)}}let hd=null;function Yte(e){hd=e}function Xte(e,t,r){hd&&hd.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const Zte=qte("function:translate");function qte(e){return t=>hd&&hd.emit(e,t)}const Vo={INVALID_ARGUMENT:yte,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},jte=24;function Bo(e){return o_(e,null,void 0)}function SA(e,t){return t.locale!=null?A2(t.locale):A2(e.locale)}let MS;function A2(e){if(He(e))return e;if(Sr(e)){if(e.resolvedOnce&&MS!=null)return MS;if(e.constructor.name==="Function"){const t=e();if(dte(t))throw Bo(Vo.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return MS=t}else throw Bo(Vo.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Bo(Vo.NOT_SUPPORT_LOCALE_TYPE)}function Kte(e,t,r){return[...new Set([r,...Rr(t)?t:jt(t)?Object.keys(t):He(t)?[t]:[r]])]}function b3(e,t,r){const n=He(r)?r:vd,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let a=i.__localeChainCache.get(n);if(!a){a=[];let o=[r];for(;Rr(o);)o=M2(a,o,t);const s=Rr(t)||!Et(t)?t:t.default?t.default:null;o=He(s)?[s]:s,Rr(o)&&M2(a,o,!1),i.__localeChainCache.set(n,a)}return a}function M2(e,t,r){let n=!0;for(let i=0;i{o===void 0?o=s:o+=s},h[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},h[2]=()=>{h[0](),i++},h[3]=()=>{if(i>0)i--,n=4,h[0]();else{if(i=0,o===void 0||(o=ire(o),o===!1))return!1;h[1]()}};function v(){const d=e[r+1];if(n===5&&d==="'"||n===6&&d==='"')return r++,s="\\"+d,h[0](),!0}for(;n!==null;)if(r++,a=e[r],!(a==="\\"&&v())){if(l=nre(a),f=dl[n],u=f[l]||f.l||8,u===8||(n=u[0],u[1]!==void 0&&(c=h[u[1]],c&&(s=a,c()===!1))))return;if(n===7)return t}}const D2=new Map;function ore(e,t){return jt(e)?e[t]:null}function sre(e,t){if(!jt(e))return null;let r=D2.get(t);if(r||(r=are(t),r&&D2.set(t,r)),!r)return null;const n=r.length;let i=e,a=0;for(;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function ure(){return{upper:(e,t)=>t==="text"&&He(e)?e.toUpperCase():t==="vnode"&&jt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&He(e)?e.toLowerCase():t==="vnode"&&jt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&He(e)?L2(e):t==="vnode"&&jt(e)&&"__v_isVNode"in e?L2(e.children):e}}let C3;function cre(e){C3=e}let T3;function fre(e){T3=e}let A3;function hre(e){A3=e}let M3=null;const vre=e=>{M3=e},dre=()=>M3;let D3=null;const P2=e=>{D3=e},pre=()=>D3;let R2=0;function gre(e={}){const t=Sr(e.onWarn)?e.onWarn:gte,r=He(e.version)?e.version:lre,n=He(e.locale)||Sr(e.locale)?e.locale:vd,i=Sr(n)?vd:n,a=Rr(e.fallbackLocale)||Et(e.fallbackLocale)||He(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Et(e.messages)?e.messages:{[i]:{}},s=Et(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=Et(e.numberFormats)?e.numberFormats:{[i]:{}},u=Jr({},e.modifiers||{},ure()),c=e.pluralRules||{},f=Sr(e.missing)?e.missing:null,h=Ut(e.missingWarn)||Mf(e.missingWarn)?e.missingWarn:!0,v=Ut(e.fallbackWarn)||Mf(e.fallbackWarn)?e.fallbackWarn:!0,d=!!e.fallbackFormat,g=!!e.unresolving,m=Sr(e.postTranslation)?e.postTranslation:null,y=Et(e.processor)?e.processor:null,S=Ut(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,x=Sr(e.messageCompiler)?e.messageCompiler:C3,T=Sr(e.messageResolver)?e.messageResolver:T3||ore,b=Sr(e.localeFallbacker)?e.localeFallbacker:A3||Kte,A=jt(e.fallbackContext)?e.fallbackContext:void 0,M=e,D=jt(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,L=jt(M.__numberFormatters)?M.__numberFormatters:new Map,P=jt(M.__meta)?M.__meta:{};R2++;const E={version:r,cid:R2,locale:n,fallbackLocale:a,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:h,fallbackWarn:v,fallbackFormat:d,unresolving:g,postTranslation:m,processor:y,warnHtmlMessage:S,escapeParameter:w,messageCompiler:x,messageResolver:T,localeFallbacker:b,fallbackContext:A,onWarn:t,__meta:P};return E.datetimeFormats=s,E.numberFormats=l,E.__datetimeFormatters=D,E.__numberFormatters=L,__INTLIFY_PROD_DEVTOOLS__&&Xte(E,r,P),E}function wA(e,t,r,n,i){const{missing:a,onWarn:o}=e;if(a!==null){const s=a(e,r,t,i);return He(s)?s:t}else return t}function Ih(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function mre(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function yre(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let n=r+1;n{I3.includes(l)?o[l]=r[l]:a[l]=r[l]}),He(n)?a.locale=n:Et(n)&&(o=n),Et(i)&&(o=i),[a.key||"",s,a,o]}function k2(e,t,r){const n=e;for(const i in r){const a=`${t}__${i}`;n.__datetimeFormatters.has(a)&&n.__datetimeFormatters.delete(a)}}function O2(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e,[l,u,c,f]=Pb(...t),h=Ut(c.missingWarn)?c.missingWarn:e.missingWarn;Ut(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const v=!!c.part,d=SA(e,c),g=o(e,i,d);if(!He(l)||l==="")return new Intl.NumberFormat(d,f).format(u);let m={},y,S=null;const w="number format";for(let b=0;b{L3.includes(l)?o[l]=r[l]:a[l]=r[l]}),He(n)?a.locale=n:Et(n)&&(o=n),Et(i)&&(o=i),[a.key||"",s,a,o]}function N2(e,t,r){const n=e;for(const i in r){const a=`${t}__${i}`;n.__numberFormatters.has(a)&&n.__numberFormatters.delete(a)}}const _re=e=>e,Sre=e=>"",wre="text",xre=e=>e.length===0?"":yA(e),bre=pte;function F2(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Cre(e){const t=qr(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(qr(e.named.count)||qr(e.named.n))?qr(e.named.count)?e.named.count:qr(e.named.n)?e.named.n:t:t}function Tre(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Are(e={}){const t=e.locale,r=Cre(e),n=jt(e.pluralRules)&&He(t)&&Sr(e.pluralRules[t])?e.pluralRules[t]:F2,i=jt(e.pluralRules)&&He(t)&&Sr(e.pluralRules[t])?F2:void 0,a=y=>y[n(r,y.length,i)],o=e.list||[],s=y=>o[y],l=e.named||{};qr(e.pluralIndex)&&Tre(r,l);const u=y=>l[y];function c(y,S){const w=Sr(e.messages)?e.messages(y,!!S):jt(e.messages)?e.messages[y]:!1;return w||(e.parent?e.parent.message(y):Sre)}const f=y=>e.modifiers?e.modifiers[y]:_re,h=Et(e.processor)&&Sr(e.processor.normalize)?e.processor.normalize:xre,v=Et(e.processor)&&Sr(e.processor.interpolate)?e.processor.interpolate:bre,d=Et(e.processor)&&He(e.processor.type)?e.processor.type:wre,m={list:s,named:u,plural:a,linked:(y,...S)=>{const[w,x]=S;let T="text",b="";S.length===1?jt(w)?(b=w.modifier||b,T=w.type||T):He(w)&&(b=w||b):S.length===2&&(He(w)&&(b=w||b),He(x)&&(T=x||T));const A=c(y,!0)(m),M=T==="vnode"&&Rr(A)&&b?A[0]:A;return b?f(b)(M,T):M},message:c,type:d,interpolate:v,normalize:h,values:Jr({},o,l)};return m}const V2=()=>"",Zi=e=>Sr(e);function B2(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[l,u]=Rb(...t),c=Ut(u.missingWarn)?u.missingWarn:e.missingWarn,f=Ut(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=Ut(u.escapeParameter)?u.escapeParameter:e.escapeParameter,v=!!u.resolvedMessage,d=He(u.default)||Ut(u.default)?Ut(u.default)?a?l:()=>l:u.default:r?a?l:()=>l:null,g=r||d!=null&&(He(d)||Sr(d)),m=SA(e,u);h&&Mre(u);let[y,S,w]=v?[l,m,s[m]||{}]:P3(e,l,m,o,f,c),x=y,T=l;if(!v&&!(He(x)||If(x)||Zi(x))&&g&&(x=d,T=x),!v&&(!(He(x)||If(x)||Zi(x))||!He(S)))return i?s_:l;let b=!1;const A=()=>{b=!0},M=Zi(x)?x:R3(e,l,S,x,T,A);if(b)return x;const D=Lre(e,S,w,u),L=Are(D),P=Dre(e,M,L),E=n?n(P,l):P;if(__INTLIFY_PROD_DEVTOOLS__){const F={timestamp:Date.now(),key:He(l)?l:Zi(x)?x.key:"",locale:S||(Zi(x)?x.locale:""),format:He(x)?x:Zi(x)?x.source:"",message:E};F.meta=Jr({},e.__meta,dre()||{}),Zte(F)}return E}function Mre(e){Rr(e.list)?e.list=e.list.map(t=>He(t)?w2(t):t):jt(e.named)&&Object.keys(e.named).forEach(t=>{He(e.named[t])&&(e.named[t]=w2(e.named[t]))})}function P3(e,t,r,n,i,a){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,n,r);let f={},h,v=null;const d="translate";for(let g=0;gn;return u.locale=r,u.key=t,u}const l=o(n,Ire(e,r,i,n,s,a));return l.locale=r,l.key=t,l.source=n,l}function Dre(e,t,r){return t(r)}function Rb(...e){const[t,r,n]=e,i={};if(!He(t)&&!qr(t)&&!Zi(t)&&!If(t))throw Bo(Vo.INVALID_ARGUMENT);const a=qr(t)?String(t):(Zi(t),t);return qr(r)?i.plural=r:He(r)?i.default=r:Et(r)&&!a_(r)?i.named=r:Rr(r)&&(i.list=r),qr(n)?i.plural=n:He(n)?i.default=n:Et(n)&&Jr(i,n),[a,i]}function Ire(e,t,r,n,i,a){return{locale:t,key:r,warnHtmlMessage:i,onError:o=>{throw a&&a(o),o},onCacheKey:o=>cte(t,r,o)}}function Lre(e,t,r,n){const{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,h={locale:t,modifiers:i,pluralRules:a,messages:(v,d)=>{let g=o(r,v);if(g==null&&(c||d)){const[,,m]=P3(c||e,v,t,s,l,u);g=o(m,v)}if(He(g)||If(g)){let m=!1;const S=R3(e,v,t,g,v,()=>{m=!0});return m?V2:S}else return Zi(g)?g:V2}};return e.processor&&(h.processor=e.processor),n.list&&(h.list=n.list),n.named&&(h.named=n.named),qr(n.plural)&&(h.pluralIndex=n.plural),h}Gte();/*! * vue-i18n v10.0.4 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */const Pre="10.0.4";function Rre(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(vu().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(vu().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(vu().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(vu().__INTLIFY_PROD_DEVTOOLS__=!1)}const Yn={UNEXPECTED_RETURN_TYPE:jte,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function hi(e,...t){return o_(e,null,void 0)}const Eb=vl("__translateVNode"),kb=vl("__datetimeParts"),Ob=vl("__numberParts"),E3=vl("__setPluralRules"),k3=vl("__injectWithOption"),Nb=vl("__dispose");function dd(e){if(!Kt(e))return e;for(const t in e)if(Fy(e,t))if(!t.includes("."))Kt(e[t])&&dd(e[t]);else{const r=t.split("."),n=r.length-1;let i=e,a=!1;for(let o=0;o{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},jm(u,o[l])):jm(u,o)}else He(s)&&jm(JSON.parse(s),o)}),i==null&&a)for(const s in o)Fy(o,s)&&dd(o[s]);return o}function O3(e){return e.type}function N3(e,t,r){let n=Kt(t.messages)?t.messages:{};"__i18nGlobal"in r&&(n=xA(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const i=Object.keys(n);i.length&&i.forEach(a=>{e.mergeLocaleMessage(a,n[a])});{if(Kt(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(Kt(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function z2(e){return ze(jd,null,e,0)}const G2="__INTLIFY_META__",$2=()=>[],Ere=()=>!1;let H2=0;function W2(e){return(t,r,n,i)=>e(r,n,Gu()||void 0,i)}const kre=()=>{const e=Gu();let t=null;return e&&(t=O3(e)[G2])?{[G2]:t}:null};function bA(e={}){const{__root:t,__injectWithOption:r}=e,n=t===void 0,i=e.flatJson,a=Ny?Je:W0;let o=Ut(e.inheritLocale)?e.inheritLocale:!0;const s=a(t&&o?t.locale.value:He(e.locale)?e.locale:vd),l=a(t&&o?t.fallbackLocale.value:He(e.fallbackLocale)||Rr(e.fallbackLocale)||Et(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=a(xA(s.value,e)),c=a(Et(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=a(Et(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=t?t.missingWarn:Ut(e.missingWarn)||Mf(e.missingWarn)?e.missingWarn:!0,v=t?t.fallbackWarn:Ut(e.fallbackWarn)||Mf(e.fallbackWarn)?e.fallbackWarn:!0,d=t?t.fallbackRoot:Ut(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,m=Sr(e.missing)?e.missing:null,y=Sr(e.missing)?W2(e.missing):null,S=Sr(e.postTranslation)?e.postTranslation:null,w=t?t.warnHtmlMessage:Ut(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const T=t?t.modifiers:Et(e.modifiers)?e.modifiers:{};let b=e.pluralRules||t&&t.pluralRules,A;A=(()=>{n&&P2(null);const K={version:Pre,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:T,pluralRules:b,missing:y===null?void 0:y,missingWarn:h,fallbackWarn:v,fallbackFormat:g,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:w,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};K.datetimeFormats=c.value,K.numberFormats=f.value,K.__datetimeFormatters=Et(A)?A.__datetimeFormatters:void 0,K.__numberFormatters=Et(A)?A.__numberFormatters:void 0;const ue=gre(K);return n&&P2(ue),ue})(),Ih(A,s.value,l.value);function D(){return[s.value,l.value,u.value,c.value,f.value]}const L=dt({get:()=>s.value,set:K=>{s.value=K,A.locale=s.value}}),P=dt({get:()=>l.value,set:K=>{l.value=K,A.fallbackLocale=l.value,Ih(A,s.value,K)}}),E=dt(()=>u.value),F=dt(()=>c.value),O=dt(()=>f.value);function N(){return Sr(S)?S:null}function V(K){S=K,A.postTranslation=K}function Y(){return m}function G(K){K!==null&&(y=W2(K)),m=K,A.missing=y}const Z=(K,ue,Ve,je,At,Ot)=>{D();let xr;try{__INTLIFY_PROD_DEVTOOLS__,n||(A.fallbackContext=t?pre():void 0),xr=K(A)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(A.fallbackContext=void 0)}if(Ve!=="translate exists"&&qr(xr)&&xr===s_||Ve==="translate exists"&&!xr){const[Mr,Sn]=ue();return t&&d?je(t):At(Mr)}else{if(Ot(xr))return xr;throw hi(Yn.UNEXPECTED_RETURN_TYPE)}};function J(...K){return Z(ue=>Reflect.apply(B2,null,[ue,...K]),()=>Rb(...K),"translate",ue=>Reflect.apply(ue.t,ue,[...K]),ue=>ue,ue=>He(ue))}function re(...K){const[ue,Ve,je]=K;if(je&&!Kt(je))throw hi(Yn.INVALID_ARGUMENT);return J(ue,Ve,Jr({resolvedMessage:!0},je||{}))}function pe(...K){return Z(ue=>Reflect.apply(E2,null,[ue,...K]),()=>Lb(...K),"datetime format",ue=>Reflect.apply(ue.d,ue,[...K]),()=>I2,ue=>He(ue))}function Me(...K){return Z(ue=>Reflect.apply(O2,null,[ue,...K]),()=>Pb(...K),"number format",ue=>Reflect.apply(ue.n,ue,[...K]),()=>I2,ue=>He(ue))}function Le(K){return K.map(ue=>He(ue)||qr(ue)||Ut(ue)?z2(String(ue)):ue)}const Ge={normalize:Le,interpolate:K=>K,type:"vnode"};function ie(...K){return Z(ue=>{let Ve;const je=ue;try{je.processor=Ge,Ve=Reflect.apply(B2,null,[je,...K])}finally{je.processor=null}return Ve},()=>Rb(...K),"translate",ue=>ue[Eb](...K),ue=>[z2(ue)],ue=>Rr(ue))}function le(...K){return Z(ue=>Reflect.apply(O2,null,[ue,...K]),()=>Pb(...K),"number format",ue=>ue[Ob](...K),$2,ue=>He(ue)||Rr(ue))}function de(...K){return Z(ue=>Reflect.apply(E2,null,[ue,...K]),()=>Lb(...K),"datetime format",ue=>ue[kb](...K),$2,ue=>He(ue)||Rr(ue))}function me(K){b=K,A.pluralRules=b}function be(K,ue){return Z(()=>{if(!K)return!1;const Ve=He(ue)?ue:s.value,je=W(Ve),At=A.messageResolver(je,K);return If(At)||Zi(At)||He(At)},()=>[K],"translate exists",Ve=>Reflect.apply(Ve.te,Ve,[K,ue]),Ere,Ve=>Ut(Ve))}function Re(K){let ue=null;const Ve=b3(A,l.value,s.value);for(let je=0;je{o&&(s.value=K,A.locale=K,Ih(A,s.value,l.value))}),hr(t.fallbackLocale,K=>{o&&(l.value=K,A.fallbackLocale=K,Ih(A,s.value,l.value))}));const Pe={id:H2,locale:L,fallbackLocale:P,get inheritLocale(){return o},set inheritLocale(K){o=K,K&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,Ih(A,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:E,get modifiers(){return T},get pluralRules(){return b||{}},get isGlobal(){return n},get missingWarn(){return h},set missingWarn(K){h=K,A.missingWarn=h},get fallbackWarn(){return v},set fallbackWarn(K){v=K,A.fallbackWarn=v},get fallbackRoot(){return d},set fallbackRoot(K){d=K},get fallbackFormat(){return g},set fallbackFormat(K){g=K,A.fallbackFormat=g},get warnHtmlMessage(){return w},set warnHtmlMessage(K){w=K,A.warnHtmlMessage=K},get escapeParameter(){return x},set escapeParameter(K){x=K,A.escapeParameter=K},t:J,getLocaleMessage:W,setLocaleMessage:te,mergeLocaleMessage:_e,getPostTranslationHandler:N,setPostTranslationHandler:V,getMissingHandler:Y,setMissingHandler:G,[E3]:me};return Pe.datetimeFormats=F,Pe.numberFormats=O,Pe.rt=re,Pe.te=be,Pe.tm=H,Pe.d=pe,Pe.n=Me,Pe.getDateTimeFormat=fe,Pe.setDateTimeFormat=$,Pe.mergeDateTimeFormat=U,Pe.getNumberFormat=Q,Pe.setNumberFormat=ae,Pe.mergeNumberFormat=xe,Pe[k3]=r,Pe[Eb]=ie,Pe[kb]=de,Pe[Ob]=le,Pe}function Ore(e){const t=He(e.locale)?e.locale:vd,r=He(e.fallbackLocale)||Rr(e.fallbackLocale)||Et(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=Sr(e.missing)?e.missing:void 0,i=Ut(e.silentTranslationWarn)||Mf(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=Ut(e.silentFallbackWarn)||Mf(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Ut(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Et(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Sr(e.postTranslation)?e.postTranslation:void 0,f=He(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,v=Ut(e.sync)?e.sync:!0;let d=e.messages;if(Et(e.sharedMessages)){const T=e.sharedMessages;d=Object.keys(T).reduce((A,M)=>{const D=A[M]||(A[M]={});return Jr(D,T[M]),A},d||{})}const{__i18n:g,__root:m,__injectWithOption:y}=e,S=e.datetimeFormats,w=e.numberFormats,x=e.flatJson;return{locale:t,fallbackLocale:r,messages:d,flatJson:x,datetimeFormats:S,numberFormats:w,missing:n,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:v,__i18n:g,__root:m,__injectWithOption:y}}function Fb(e={}){const t=bA(Ore(e)),{__extender:r}=e,n={id:t.id,get locale(){return t.locale.value},set locale(i){t.locale.value=i},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(i){t.fallbackLocale.value=i},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(i){t.setMissingHandler(i)},get silentTranslationWarn(){return Ut(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=Ut(i)?!i:i},get silentFallbackWarn(){return Ut(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=Ut(i)?!i:i},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(i){t.fallbackFormat=i},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(i){t.setPostTranslationHandler(i)},get sync(){return t.inheritLocale},set sync(i){t.inheritLocale=i},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){t.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(i){t.escapeParameter=i},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...i){return Reflect.apply(t.t,t,[...i])},rt(...i){return Reflect.apply(t.rt,t,[...i])},tc(...i){const[a,o,s]=i,l={plural:1};let u=null,c=null;if(!He(a))throw hi(Yn.INVALID_ARGUMENT);const f=a;return He(o)?l.locale=o:qr(o)?l.plural=o:Rr(o)?u=o:Et(o)&&(c=o),He(s)?l.locale=s:Rr(s)?u=s:Et(s)&&(c=s),Reflect.apply(t.t,t,[f,u||c||{},l])},te(i,a){return t.te(i,a)},tm(i){return t.tm(i)},getLocaleMessage(i){return t.getLocaleMessage(i)},setLocaleMessage(i,a){t.setLocaleMessage(i,a)},mergeLocaleMessage(i,a){t.mergeLocaleMessage(i,a)},d(...i){return Reflect.apply(t.d,t,[...i])},getDateTimeFormat(i){return t.getDateTimeFormat(i)},setDateTimeFormat(i,a){t.setDateTimeFormat(i,a)},mergeDateTimeFormat(i,a){t.mergeDateTimeFormat(i,a)},n(...i){return Reflect.apply(t.n,t,[...i])},getNumberFormat(i){return t.getNumberFormat(i)},setNumberFormat(i,a){t.setNumberFormat(i,a)},mergeNumberFormat(i,a){t.mergeNumberFormat(i,a)}};return n.__extender=r,n}function Nre(e,t,r){return{beforeCreate(){const n=Gu();if(!n)throw hi(Yn.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const a=i.i18n;if(i.__i18n&&(a.__i18n=i.__i18n),a.__root=t,this===this.$root)this.$i18n=U2(e,a);else{a.__injectWithOption=!0,a.__extender=r.__vueI18nExtend,this.$i18n=Fb(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=U2(e,i);else{this.$i18n=Fb({__i18n:i.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&N3(t,i,i),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$tc=(...a)=>this.$i18n.tc(...a),this.$te=(a,o)=>this.$i18n.te(a,o),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),r.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const n=Gu();if(!n)throw hi(Yn.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),r.__deleteInstance(n),delete this.$i18n}}}function U2(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[E3](t.pluralizationRules||e.pluralizationRules);const r=xA(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(r).forEach(n=>e.mergeLocaleMessage(n,r[n])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const CA={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Fre({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,i)=>[...n,...i.type===wt?i.children:[i]],[]):t.reduce((r,n)=>{const i=e[n];return i&&(r[n]=i()),r},{})}function F3(){return wt}const Vre=Qt({name:"i18n-t",props:Jr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>qr(e)||!isNaN(e)}},CA),setup(e,t){const{slots:r,attrs:n}=t,i=e.i18n||Wu({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(r).filter(f=>f!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=He(e.plural)?+e.plural:e.plural);const s=Fre(t,a),l=i[Eb](e.keypath,s,o),u=Jr({},n),c=He(e.tag)||Kt(e.tag)?e.tag:F3();return No(c,u,l)}}}),Y2=Vre;function Bre(e){return Rr(e)&&!He(e[0])}function V3(e,t,r,n){const{slots:i,attrs:a}=t;return()=>{const o={part:!0};let s={};e.locale&&(o.locale=e.locale),He(e.format)?o.key=e.format:Kt(e.format)&&(He(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((h,v)=>r.includes(v)?Jr({},h,{[v]:e.format[v]}):h,{}));const l=n(e.value,o,s);let u=[o.key];Rr(l)?u=l.map((h,v)=>{const d=i[h.type],g=d?d({[h.type]:h.value,index:v,parts:l}):[h.value];return Bre(g)&&(g[0].key=`${h.type}-${v}`),g}):He(l)&&(u=[l]);const c=Jr({},a),f=He(e.tag)||Kt(e.tag)?e.tag:F3();return No(f,c,u)}}const zre=Qt({name:"i18n-n",props:Jr({value:{type:Number,required:!0},format:{type:[String,Object]}},CA),setup(e,t){const r=e.i18n||Wu({useScope:e.scope,__useComponent:!0});return V3(e,t,L3,(...n)=>r[Ob](...n))}}),X2=zre,Gre=Qt({name:"i18n-d",props:Jr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},CA),setup(e,t){const r=e.i18n||Wu({useScope:e.scope,__useComponent:!0});return V3(e,t,I3,(...n)=>r[kb](...n))}}),Z2=Gre;function $re(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function Hre(e){const t=o=>{const{instance:s,value:l}=o;if(!s||!s.$)throw hi(Yn.UNEXPECTED_ERROR);const u=$re(e,s.$),c=q2(l);return[Reflect.apply(u.t,u,[...j2(c)]),u]};return{created:(o,s)=>{const[l,u]=t(s);Ny&&e.global===u&&(o.__i18nWatcher=hr(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{Ny&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=q2(s);o.textContent=Reflect.apply(l.t,l,[...j2(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function q2(e){if(He(e))return{path:e};if(Et(e)){if(!("path"in e))throw hi(Yn.REQUIRED_VALUE,"path");return e}else throw hi(Yn.INVALID_VALUE)}function j2(e){const{path:t,locale:r,args:n,choice:i,plural:a}=e,o={},s=n||{};return He(r)&&(o.locale=r),qr(i)&&(o.plural=i),qr(a)&&(o.plural=a),[t,s,o]}function Wre(e,t,...r){const n=Et(r[0])?r[0]:{};(Ut(n.globalInstall)?n.globalInstall:!0)&&([Y2.name,"I18nT"].forEach(a=>e.component(a,Y2)),[X2.name,"I18nN"].forEach(a=>e.component(a,X2)),[Z2.name,"I18nD"].forEach(a=>e.component(a,Z2))),e.directive("t",Hre(t))}const Ure=vl("global-vue-i18n");function Yre(e={},t){const r=__VUE_I18N_LEGACY_API__&&Ut(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=Ut(e.globalInjection)?e.globalInjection:!0,i=new Map,[a,o]=Xre(e,r),s=vl("");function l(h){return i.get(h)||null}function u(h,v){i.set(h,v)}function c(h){i.delete(h)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},async install(h,...v){if(h.__VUE_I18N_SYMBOL__=s,h.provide(h.__VUE_I18N_SYMBOL__,f),Et(v[0])){const m=v[0];f.__composerExtend=m.__composerExtend,f.__vueI18nExtend=m.__vueI18nExtend}let d=null;!r&&n&&(d=tne(h,f.global)),__VUE_I18N_FULL_INSTALL__&&Wre(h,f,...v),__VUE_I18N_LEGACY_API__&&r&&h.mixin(Nre(o,o.__composer,f));const g=h.unmount;h.unmount=()=>{d&&d(),f.dispose(),g()}},get global(){return o},dispose(){a.stop()},__instances:i,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function Wu(e={}){const t=Gu();if(t==null)throw hi(Yn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw hi(Yn.NOT_INSTALLED);const r=Zre(t),n=jre(r),i=O3(t),a=qre(e,i);if(a==="global")return N3(n,e,i),n;if(a==="parent"){let l=Kre(r,t,e.__useComponent);return l==null&&(l=n),l}const o=r;let s=o.__getInstance(t);if(s==null){const l=Jr({},e);"__i18n"in i&&(l.__i18n=i.__i18n),n&&(l.__root=n),s=bA(l),o.__composerExtend&&(s[Nb]=o.__composerExtend(s)),Qre(o,t,s),o.__setInstance(t,s)}return s}function Xre(e,t,r){const n=mj(),i=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Fb(e)):n.run(()=>bA(e));if(i==null)throw hi(Yn.UNEXPECTED_ERROR);return[n,i]}function Zre(e){const t=Sa(e.isCE?Ure:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw hi(e.isCE?Yn.NOT_INSTALLED_WITH_PROVIDE:Yn.UNEXPECTED_ERROR);return t}function qre(e,t){return a_(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function jre(e){return e.mode==="composition"?e.global:e.global.__composer}function Kre(e,t,r=!1){let n=null;const i=t.root;let a=Jre(t,r);for(;a!=null;){const o=e;if(e.mode==="composition")n=o.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(a);s!=null&&(n=s.__composer,r&&n&&!n[k3]&&(n=null))}if(n!=null||i===a)break;a=a.parent}return n}function Jre(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Qre(e,t,r){qd(()=>{},t),QT(()=>{const n=r;e.__deleteInstance(t);const i=n[Nb];i&&(i(),delete n[Nb])},t)}const ene=["locale","fallbackLocale","availableLocales"],K2=["t","rt","d","n","tm","te"];function tne(e,t){const r=Object.create(null);return ene.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a)throw hi(Yn.UNEXPECTED_ERROR);const o=sr(a.value)?{get(){return a.value.value},set(s){a.value.value=s}}:{get(){return a.get&&a.get()}};Object.defineProperty(r,i,o)}),e.config.globalProperties.$i18n=r,K2.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a||!a.value)throw hi(Yn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,a)}),()=>{delete e.config.globalProperties.$i18n,K2.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}Rre();cre(Ute);fre(sre);hre(b3);if(__INTLIFY_PROD_DEVTOOLS__){const e=vu();e.__INTLIFY__=!0,Yte(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const rne={setup:"Setup",overview:"Overview",proxies:"Proxies",rules:"Rules",connections:"Connections",logs:"Logs",protocol:"Protocol",host:"Host",port:"Port",password:"Password",submit:"Submit",cancel:"Cancel",download:"Download",upload:"Upload",downloadSpeed:"Download Speed",uploadSpeed:"Upload Speed",memoryUsage:"Memory Usage",version:"Version",quickFilter:"Quick Filter",noContent:"No Content",flushFakeIP:"Flush Fake IP",compactCard:"Compact Card",chains:"Chains",sortBy:"Sort By",rule:"Rule",sourceIP:"Source IP",activeConnections:"Active Conns",closedConnections:"Closed Conns",logLevel:"Log Level",twoColumns:"Two Columns",type:"Type",process:"Process",sniffHost:"Sniff Host",connectTime:"Time",sourcePort:"Source Port",destination:"Destination",inboundUser:"Inbound User",dl:"DL",ul:"UL",dlSpeed:"DL Speed",ulSpeed:"UL Speed",settings:"Settings",speedtestUrl:"Speedtest URL",speedtestTimeout:"Speedtest Timeout",connectionStyle:"Connection Style",card:"Card",table:"Table",customTableColumns:"Custom Table Columns",close:"Close",details:"Details",showGlobalProxy:"Show Global Proxy Node",dashboard:"Dashboard",theme:"Theme",proxyProvider:"Proxy Provider",ruleProvider:"Rule Provider",expire:"Expire",noExpire:"Null",updated:"Updated",upgradeUI:"Upgrade Dashboard",upgradeAllProviders:"Upgrade All Providers",reloadConfigs:"Reload Configs",mode:"Mode",proxySortType:"Proxy Sort Type",defaultsort:"By Configs",nameasc:"Name Asc",namedesc:"Name Desc",latencydesc:"Latency Desc",latencyasc:"Latency Asc"},nne={setup:"配置",overview:"概览",proxies:"代理",rules:"规则",connections:"连接",logs:"日志",protocol:"协议",host:"主机",port:"端口",password:"密码",submit:"提交",cancel:"取消",download:"下载",upload:"上传",downloadSpeed:"下载速度",uploadSpeed:"上传速度",memoryUsage:"内存使用",version:"版本",quickFilter:"快速过滤",noContent:"无内容",flushFakeIP:"清空Fake IP",compactCard:"紧凑卡片",chains:"代理链",sortBy:"排序方式",rule:"规则",sourceIP:"源IP",activeConnections:"活跃连接",closedConnections:"已关闭连接",logLevel:"日志等级",twoColumns:"双列显示",type:"类型",process:"进程",sniffHost:"嗅探主机",connectTime:"连接时间",sourcePort:"源端口",destination:"目标",inboundUser:"入站用户",dl:"下载",ul:"上传",dlSpeed:"下载速度",ulSpeed:"上传速度",settings:"设置",speedtestUrl:"测速地址",speedtestTimeout:"测速超时",connectionStyle:"连接样式",card:"卡片",table:"表格",customTableColumns:"自定义表格列",close:"关闭",details:"详情",showGlobalProxy:"显示全局代理节点",dashboard:"面板",theme:"主题",proxyProvider:"代理提供商",ruleProvider:"规则提供商",expire:"到期时间",noExpire:"不限时",updated:"更新于",upgradeUI:"更新面板",upgradeAllProviders:"更新所有提供商",reloadConfigs:"重载配置",mode:"模式",proxySortType:"代理排序方式",defaultsort:"按配置文件排序",nameasc:"按名称升序",namedesc:"按名称降序",latencydesc:"按延迟降序",latencyasc:"按延迟升序"},TA=Yre({locale:Au.value,messages:{[Tu.EN_US]:rne,[Tu.ZH_CN]:nne}});function B3(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9 12.75 3 3m0 0 3-3m-3 3v-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function ine(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function ane(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 9-3 3m0 0 3 3m-3-3h7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function z3(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function one(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m12.75 15 3-3m0 0-3-3m3 3h-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function G3(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m15 11.25-3-3m0 0-3 3m3-3v7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function J2(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function $3(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})])}function sne(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function H3(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"})])}function W3(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function lne(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"})])}function U3(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function Y3(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"})])}function X3(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"})])}function une(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m10.5 21 5.25-11.25L21 21m-9-3h7.5M3 5.621a48.474 48.474 0 0 1 6-.371m0 0c1.12 0 2.233.038 3.334.114M9 5.25V3m3.334 2.364C11.176 10.658 7.69 15.08 3 17.502m9.334-12.138c.896.061 1.785.147 2.666.257m-4.589 8.495a18.023 18.023 0 0 1-3.827-5.802"})])}function Q2(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"})])}function eR(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"})])}function Z3(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function q3(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"})])}function cne(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function j3(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"})])}function AA(e,t){return he(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[se("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const wa=Wr("config/is-sidebar-collapsed",!1),fne={class:"flex justify-between"},hne={class:"flex flex-col gap-2 p-2 text-xs"},vne={class:"flex gap-1"},dne={class:"flex gap-2"},pne=["value"],gne={class:"flex flex-1 items-end justify-end p-2"},mne=Qt({__name:"CommonCtrl",setup(e){const t=dt(()=>ud.value.map(i=>({label:`${i.protocol}://${i.host}:${i.port}`,value:i.uuid}))),r=()=>{Fo.value=null},n=()=>{Au.value=Au.value===Tu.ZH_CN?Tu.EN_US:Tu.ZH_CN,TA.global.locale=Au.value};return(i,a)=>(he(),Te("div",fne,[se("div",hne,[se("div",null,Xe(i.$t("connections"))+": "+Xe(oe(Vs).length),1),se("div",null,Xe(i.$t("download"))+": "+Xe(oe(Pr)(oe(Jc)))+" ("+Xe(oe(Pr)(oe(Wm)))+"/s) ",1),se("div",null,Xe(i.$t("upload"))+": "+Xe(oe(Pr)(oe(Qc)))+" ("+Xe(oe(Pr)(oe(Um)))+"/s) ",1),se("div",null,Xe(i.$t("memoryUsage"))+": "+Xe(oe(Pr)(oe(Ey),{binary:!0})),1),se("div",vne,Xe(i.$t("version"))+": "+Xe(oe(vA)),1),se("div",dne,[ci(se("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":a[0]||(a[0]=o=>sr(Fo)?Fo.value=o:null)},[(he(!0),Te(wt,null,wr(t.value,o=>(he(),Te("option",{key:o.value,value:o.value},Xe(o.label),9,pne))),128))],512),[[Jd,oe(Fo)]]),se("button",{class:"btn btn-circle btn-xs",onClick:r},[ze(oe(cne),{class:"h-4 w-4"})])])]),se("div",gne,[oe(wa)?jt("",!0):(he(),Te("button",{key:0,class:"btn btn-circle btn-ghost btn-xs hidden md:flex",onClick:a[1]||(a[1]=o=>wa.value=!0)},[ze(oe(ane),{class:"h-5 w-5"})])),se("button",{class:"btn btn-circle btn-ghost btn-xs",onClick:n},[ze(oe(une),{class:"h-5 w-5"})])])]))}}),MA="-",yne=e=>{const t=Sne(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(MA);return s[0]===""&&s.length!==1&&s.shift(),K3(s,t)||_ne(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},K3=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?K3(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(MA);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},tR=/^\[(.+)\]$/,_ne=e=>{if(tR.test(e)){const t=tR.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Sne=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return xne(Object.entries(e.classGroups),r).forEach(([a,o])=>{Vb(o,n,a,t)}),n},Vb=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:rR(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(wne(i)){Vb(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{Vb(o,rR(t,a),r,n)})})},rR=(e,t)=>{let r=e;return t.split(MA).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},wne=e=>e.isThemeGetter,xne=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,s])=>[t+o,s])):a);return[r,i]}):e,bne=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},J3="!",Cne=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=s=>{const l=[];let u=0,c=0,f;for(let m=0;mc?f-c:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:d,maybePostfixModifierPosition:g}};return r?s=>r({className:s,parseClassName:o}):o},Tne=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Ane=e=>({cache:bne(e.cacheSize),parseClassName:Cne(e),...yne(e)}),Mne=/\s+/,Dne=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(Mne);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:v}=r(u);let d=!!v,g=n(d?h.substring(0,v):h);if(!g){if(!d){s=u+(s.length>0?" "+s:s);continue}if(g=n(h),!g){s=u+(s.length>0?" "+s:s);continue}d=!1}const m=Tne(c).join(":"),y=f?m+J3:m,S=y+g;if(a.includes(S))continue;a.push(S);const w=i(g,d);for(let x=0;x0?" "+s:s)}return s};function Ine(){let e=0,t,r,n="";for(;e{if(typeof e=="string")return e;let t,r="";for(let n=0;nf(c),e());return r=Ane(u),n=r.cache.get,i=r.cache.set,a=s,s(l)}function s(l){const u=n(l);if(u)return u;const c=Dne(l,r);return i(l,c),c}return function(){return a(Ine.apply(null,arguments))}}const _r=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},ez=/^\[(?:([a-z-]+):)?(.+)\]$/i,Pne=/^\d+\/\d+$/,Rne=new Set(["px","full","screen"]),Ene=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kne=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,One=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Nne=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fne=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,To=e=>df(e)||Rne.has(e)||Pne.test(e),gs=e=>Xf(e,"length",Une),df=e=>!!e&&!Number.isNaN(Number(e)),DS=e=>Xf(e,"number",df),Lh=e=>!!e&&Number.isInteger(Number(e)),Vne=e=>e.endsWith("%")&&df(e.slice(0,-1)),Dt=e=>ez.test(e),ms=e=>Ene.test(e),Bne=new Set(["length","size","percentage"]),zne=e=>Xf(e,Bne,tz),Gne=e=>Xf(e,"position",tz),$ne=new Set(["image","url"]),Hne=e=>Xf(e,$ne,Xne),Wne=e=>Xf(e,"",Yne),Ph=()=>!0,Xf=(e,t,r)=>{const n=ez.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Une=e=>kne.test(e)&&!One.test(e),tz=()=>!1,Yne=e=>Nne.test(e),Xne=e=>Fne.test(e),Zne=()=>{const e=_r("colors"),t=_r("spacing"),r=_r("blur"),n=_r("brightness"),i=_r("borderColor"),a=_r("borderRadius"),o=_r("borderSpacing"),s=_r("borderWidth"),l=_r("contrast"),u=_r("grayscale"),c=_r("hueRotate"),f=_r("invert"),h=_r("gap"),v=_r("gradientColorStops"),d=_r("gradientColorStopPositions"),g=_r("inset"),m=_r("margin"),y=_r("opacity"),S=_r("padding"),w=_r("saturate"),x=_r("scale"),T=_r("sepia"),b=_r("skew"),A=_r("space"),M=_r("translate"),D=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",Dt,t],E=()=>[Dt,t],F=()=>["",To,gs],O=()=>["auto",df,Dt],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",Dt],J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],re=()=>[df,Dt];return{cacheSize:500,separator:":",theme:{colors:[Ph],spacing:[To,gs],blur:["none","",ms,Dt],brightness:re(),borderColor:[e],borderRadius:["none","","full",ms,Dt],borderSpacing:E(),borderWidth:F(),contrast:re(),grayscale:Z(),hueRotate:re(),invert:Z(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[Vne,gs],inset:P(),margin:P(),opacity:re(),padding:E(),saturate:re(),scale:re(),sepia:Z(),skew:re(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",Dt]}],container:["container"],columns:[{columns:[ms]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...N(),Dt]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Lh,Dt]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Dt]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Lh,Dt]}],"grid-cols":[{"grid-cols":[Ph]}],"col-start-end":[{col:["auto",{span:["full",Lh,Dt]},Dt]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Ph]}],"row-start-end":[{row:["auto",{span:[Lh,Dt]},Dt]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Dt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Dt]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Dt,t]}],"min-w":[{"min-w":[Dt,t,"min","max","fit"]}],"max-w":[{"max-w":[Dt,t,"none","full","min","max","fit","prose",{screen:[ms]},ms]}],h:[{h:[Dt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Dt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Dt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Dt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ms,gs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",DS]}],"font-family":[{font:[Ph]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Dt]}],"line-clamp":[{"line-clamp":["none",df,DS]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",To,Dt]}],"list-image":[{"list-image":["none",Dt]}],"list-style-type":[{list:["none","disc","decimal",Dt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",To,gs]}],"underline-offset":[{"underline-offset":["auto",To,Dt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Dt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Dt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),Gne]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zne]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Hne]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[d]}],"gradient-via-pos":[{via:[d]}],"gradient-to-pos":[{to:[d]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:V()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[To,Dt]}],"outline-w":[{outline:[To,gs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[To,gs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ms,Wne]}],"shadow-color":[{shadow:[Ph]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ms,Dt]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Dt]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",Dt]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",Dt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Lh,Dt]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[b]}],"skew-y":[{"skew-y":[b]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Dt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Dt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Dt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[To,gs,DS]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Qr=Lne(Zne),qne={class:"tabs-boxed tabs tabs-sm"},jne={key:0,class:"flex items-center gap-2"},Kne=["value"],Jne={class:"flex items-center gap-2"},rz=Qt({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{ky.value.forEach(r=>{t_(r.id)})};return(r,n)=>(he(),Te("div",{class:Gt(oe(Qr)("flex flex-col gap-2 p-2 text-sm",r.horizontal&&"flex-row"))},[se("div",qne,[se("a",{role:"tab",class:Gt(oe(Qr)("tab",oe(dv)===oe(vv).ACTIVE&&"tab-active")),onClick:n[0]||(n[0]=()=>dv.value=oe(vv).ACTIVE)},Xe(r.$t("activeConnections")),3),se("a",{role:"tab",class:Gt(oe(Qr)("tab",oe(dv)===oe(vv).CLOSED&&"tab-active")),onClick:n[1]||(n[1]=()=>dv.value=oe(vv).CLOSED)},Xe(r.$t("closedConnections")),3)]),oe(pA)?(he(),Te("div",jne,[Ir(Xe(r.$t("sortBy"))+": ",1),ci(se("select",{class:"select select-bordered select-sm w-52","onUpdate:modelValue":n[2]||(n[2]=i=>sr(Xm)?Xm.value=i:null)},[(he(!0),Te(wt,null,wr(Object.values(oe(_3)),i=>(he(),Te("option",{key:i,value:i},Xe(r.$t(i)||i),9,Kne))),128))],512),[[Jd,oe(Xm)]])])):jt("",!0),se("div",Jne,[Ir(Xe(r.$t("quickFilter"))+": ",1),ci(se("input",{type:"text",class:"input input-sm join-item input-bordered w-40","onUpdate:modelValue":n[3]||(n[3]=i=>sr(Nv)?Nv.value=i:null)},null,512),[[ff,oe(Nv)]]),ci(se("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":n[4]||(n[4]=i=>sr(Ym)?Ym.value=i:null)},null,512),[[aA,oe(Ym)]])]),se("div",{class:Gt(["join",r.horizontal&&"flex-1"])},[ci(se("input",{type:"text",class:"input input-sm join-item input-bordered flex-1","onUpdate:modelValue":n[5]||(n[5]=i=>sr(Fv)?Fv.value=i:null)},null,512),[[ff,oe(Fv)]]),se("button",{class:"btn-bordered btn join-item btn-sm",onClick:n[6]||(n[6]=i=>Zm.value=!oe(Zm))},[(he(),qt(Bu(oe(Zm)?oe(q3):oe(Z3)),{class:"h-4 w-4"}))]),se("button",{class:"btn-bordered btn join-item btn-sm",onClick:t},[ze(oe(AA),{class:"h-4 w-4"})])],2)],2))}});var ef=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(ef||{});const pv=Je([]),pf=Je(""),Km=Je(!1),Jm=Wr("config/log-level","info");let xg;const Bb=()=>{xg==null||xg(),pv.value=[];let e=1;const t=Zee({level:Jm.value}),r=hr(t.data,n=>{if(!n)return;const i=JSON.parse(n);if(Km.value){e++;return}pv.value.unshift({...i,seq:e++}),pv.value=pv.value.slice(0,1e3)});xg=()=>{r(),t.close()}},Qne={class:"flex items-center gap-2"},eie=["value"],tie={class:"join"},nz=Qt({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,r)=>(he(),Te("div",{class:Gt(oe(Qr)("flex flex-col gap-2 p-2",t.horizontal&&"flex-row"))},[se("div",Qne,[Ir(Xe(t.$t("logLevel"))+": ",1),ci(se("select",{class:"select select-bordered select-sm","onUpdate:modelValue":r[0]||(r[0]=n=>sr(Jm)?Jm.value=n:null),onChange:r[1]||(r[1]=(...n)=>oe(Bb)&&oe(Bb)(...n))},[(he(!0),Te(wt,null,wr(Object.values(oe(ef)),n=>(he(),Te("option",{key:n,value:n},Xe(n),9,eie))),128))],544),[[Jd,oe(Jm)]])]),se("div",tie,[ci(se("input",{type:"text",class:"input input-sm join-item input-bordered","onUpdate:modelValue":r[2]||(r[2]=n=>sr(pf)?pf.value=n:null)},null,512),[[ff,oe(pf)]]),se("button",{class:"btn-bordered btn join-item btn-sm",onClick:r[3]||(r[3]=n=>Km.value=!oe(Km))},[(he(),qt(Bu(oe(Km)?oe(q3):oe(Z3)),{class:"h-4 w-4"}))])])],2))}}),rie={key:0,role:"tablist",class:"tabs-boxed tabs tabs-sm"},nie=["onClick"],iie={key:1,class:"flex flex-col gap-2"},aie={key:1,class:"flex-1"},oie=["label","value"],sie=["value"],lie=["label","value"],iz=Qt({__name:"ProxiesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Je(!1),r=async()=>{if(!t.value){t.value=!0;try{await Promise.all(vf.value.map(a=>v3(a.name))),await Oy(),t.value=!1}catch{t.value=!1}}},n=dt(()=>{var a;return((a=$m.value)==null?void 0:a["mode-list"])||["direct","rule","global"]}),i=a=>{const o=a.target.value;Jee({mode:o})};return(a,o)=>oe($m)?(he(),Te("div",{key:0,class:Gt(oe(Qr)("flex flex-col gap-2 p-2",a.horizontal&&"flex-row"))},[oe(vf).length?(he(),Te(wt,{key:0},[oe(vf).length?(he(),Te("div",rie,[(he(!0),Te(wt,null,wr(oe(Tf),s=>(he(),Te("a",{role:"tab",class:Gt(["tab",{"tab-active":oe(hf)===s}]),key:s,onClick:l=>hf.value=s},Xe(a.$t(s)),11,nie))),128))])):jt("",!0),oe(hf)===oe(Tf).PROVIDER?(he(),Te("div",iie,[se("button",{class:Gt(oe(Qr)("btn btn-sm",t.value?"animate-pulse":"")),onClick:r},Xe(a.$t("upgradeAllProviders")),3)])):jt("",!0)],64)):jt("",!0),oe(wa)?(he(),Te("div",aie)):jt("",!0),ci(se("select",{class:"select select-bordered select-sm","onUpdate:modelValue":o[0]||(o[0]=s=>sr(Gm)?Gm.value=s:null)},[(he(!0),Te(wt,null,wr(Object.values(oe(ou)),s=>(he(),Te("option",{key:s,label:a.$t(s),value:s},null,8,oie))),128))],512),[[Jd,oe(Gm)]]),se("select",{class:"select select-bordered select-sm",value:oe($m).mode,onChange:i},[(he(!0),Te(wt,null,wr(n.value,s=>(he(),Te("option",{key:s,label:s,value:s},null,8,lie))),128))],40,sie)],2)):jt("",!0)}}),az=Je(),Vy=Je([]),DA=async()=>{const{data:e}=await Hee(),{data:t}=await Wee();az.value=e.rules,Vy.value=Object.values(t.providers)},uie={role:"tablist",class:"tabs-boxed tabs tabs-sm"},cie=["onClick"],fie={key:0,class:"flex flex-col gap-2"},oz=Qt({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Je(!1),r=async()=>{if(!t.value){t.value=!0;try{await Promise.all(Vy.value.map(n=>d3(n.name))),await DA(),t.value=!1}catch{t.value=!1}}};return(n,i)=>oe(Vy).length?(he(),Te("div",{key:0,class:Gt(oe(Qr)("flex flex-col gap-2 p-2",n.horizontal&&"flex-row"))},[se("div",uie,[(he(!0),Te(wt,null,wr(oe(fd),a=>(he(),Te("a",{role:"tab",class:Gt(["tab",{"tab-active":oe(Ov)===a}]),key:a,onClick:o=>Ov.value=a},Xe(n.$t(a)),11,cie))),128))]),oe(Ov)===oe(fd).PROVIDER?(he(),Te("div",fie,[se("button",{class:Gt(oe(Qr)("btn btn-sm",t.value?"animate-pulse":"")),onClick:r},Xe(n.$t("upgradeAllProviders")),3)])):jt("",!0)],2)):jt("",!0)}});/*! ***************************************************************************** + */const Pre="10.0.4";function Rre(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(vu().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(vu().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(vu().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(vu().__INTLIFY_PROD_DEVTOOLS__=!1)}const Yn={UNEXPECTED_RETURN_TYPE:jte,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function hi(e,...t){return o_(e,null,void 0)}const Eb=vl("__translateVNode"),kb=vl("__datetimeParts"),Ob=vl("__numberParts"),E3=vl("__setPluralRules"),k3=vl("__injectWithOption"),Nb=vl("__dispose");function dd(e){if(!jt(e))return e;for(const t in e)if(Fy(e,t))if(!t.includes("."))jt(e[t])&&dd(e[t]);else{const r=t.split("."),n=r.length-1;let i=e,a=!1;for(let o=0;o{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},jm(u,o[l])):jm(u,o)}else He(s)&&jm(JSON.parse(s),o)}),i==null&&a)for(const s in o)Fy(o,s)&&dd(o[s]);return o}function O3(e){return e.type}function N3(e,t,r){let n=jt(t.messages)?t.messages:{};"__i18nGlobal"in r&&(n=xA(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const i=Object.keys(n);i.length&&i.forEach(a=>{e.mergeLocaleMessage(a,n[a])});{if(jt(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(jt(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function z2(e){return ze(jd,null,e,0)}const G2="__INTLIFY_META__",$2=()=>[],Ere=()=>!1;let H2=0;function W2(e){return(t,r,n,i)=>e(r,n,Gu()||void 0,i)}const kre=()=>{const e=Gu();let t=null;return e&&(t=O3(e)[G2])?{[G2]:t}:null};function bA(e={}){const{__root:t,__injectWithOption:r}=e,n=t===void 0,i=e.flatJson,a=Ny?Je:W0;let o=Ut(e.inheritLocale)?e.inheritLocale:!0;const s=a(t&&o?t.locale.value:He(e.locale)?e.locale:vd),l=a(t&&o?t.fallbackLocale.value:He(e.fallbackLocale)||Rr(e.fallbackLocale)||Et(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=a(xA(s.value,e)),c=a(Et(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=a(Et(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=t?t.missingWarn:Ut(e.missingWarn)||Mf(e.missingWarn)?e.missingWarn:!0,v=t?t.fallbackWarn:Ut(e.fallbackWarn)||Mf(e.fallbackWarn)?e.fallbackWarn:!0,d=t?t.fallbackRoot:Ut(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,m=Sr(e.missing)?e.missing:null,y=Sr(e.missing)?W2(e.missing):null,S=Sr(e.postTranslation)?e.postTranslation:null,w=t?t.warnHtmlMessage:Ut(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const T=t?t.modifiers:Et(e.modifiers)?e.modifiers:{};let b=e.pluralRules||t&&t.pluralRules,A;A=(()=>{n&&P2(null);const K={version:Pre,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:T,pluralRules:b,missing:y===null?void 0:y,missingWarn:h,fallbackWarn:v,fallbackFormat:g,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:w,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};K.datetimeFormats=c.value,K.numberFormats=f.value,K.__datetimeFormatters=Et(A)?A.__datetimeFormatters:void 0,K.__numberFormatters=Et(A)?A.__numberFormatters:void 0;const ue=gre(K);return n&&P2(ue),ue})(),Ih(A,s.value,l.value);function D(){return[s.value,l.value,u.value,c.value,f.value]}const L=dt({get:()=>s.value,set:K=>{s.value=K,A.locale=s.value}}),P=dt({get:()=>l.value,set:K=>{l.value=K,A.fallbackLocale=l.value,Ih(A,s.value,K)}}),E=dt(()=>u.value),F=dt(()=>c.value),O=dt(()=>f.value);function N(){return Sr(S)?S:null}function V(K){S=K,A.postTranslation=K}function Y(){return m}function G(K){K!==null&&(y=W2(K)),m=K,A.missing=y}const Z=(K,ue,Ve,je,At,Ot)=>{D();let xr;try{__INTLIFY_PROD_DEVTOOLS__,n||(A.fallbackContext=t?pre():void 0),xr=K(A)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(A.fallbackContext=void 0)}if(Ve!=="translate exists"&&qr(xr)&&xr===s_||Ve==="translate exists"&&!xr){const[Mr,Sn]=ue();return t&&d?je(t):At(Mr)}else{if(Ot(xr))return xr;throw hi(Yn.UNEXPECTED_RETURN_TYPE)}};function J(...K){return Z(ue=>Reflect.apply(B2,null,[ue,...K]),()=>Rb(...K),"translate",ue=>Reflect.apply(ue.t,ue,[...K]),ue=>ue,ue=>He(ue))}function re(...K){const[ue,Ve,je]=K;if(je&&!jt(je))throw hi(Yn.INVALID_ARGUMENT);return J(ue,Ve,Jr({resolvedMessage:!0},je||{}))}function pe(...K){return Z(ue=>Reflect.apply(E2,null,[ue,...K]),()=>Lb(...K),"datetime format",ue=>Reflect.apply(ue.d,ue,[...K]),()=>I2,ue=>He(ue))}function Me(...K){return Z(ue=>Reflect.apply(O2,null,[ue,...K]),()=>Pb(...K),"number format",ue=>Reflect.apply(ue.n,ue,[...K]),()=>I2,ue=>He(ue))}function Le(K){return K.map(ue=>He(ue)||qr(ue)||Ut(ue)?z2(String(ue)):ue)}const Ge={normalize:Le,interpolate:K=>K,type:"vnode"};function ie(...K){return Z(ue=>{let Ve;const je=ue;try{je.processor=Ge,Ve=Reflect.apply(B2,null,[je,...K])}finally{je.processor=null}return Ve},()=>Rb(...K),"translate",ue=>ue[Eb](...K),ue=>[z2(ue)],ue=>Rr(ue))}function le(...K){return Z(ue=>Reflect.apply(O2,null,[ue,...K]),()=>Pb(...K),"number format",ue=>ue[Ob](...K),$2,ue=>He(ue)||Rr(ue))}function de(...K){return Z(ue=>Reflect.apply(E2,null,[ue,...K]),()=>Lb(...K),"datetime format",ue=>ue[kb](...K),$2,ue=>He(ue)||Rr(ue))}function me(K){b=K,A.pluralRules=b}function be(K,ue){return Z(()=>{if(!K)return!1;const Ve=He(ue)?ue:s.value,je=W(Ve),At=A.messageResolver(je,K);return If(At)||Zi(At)||He(At)},()=>[K],"translate exists",Ve=>Reflect.apply(Ve.te,Ve,[K,ue]),Ere,Ve=>Ut(Ve))}function Re(K){let ue=null;const Ve=b3(A,l.value,s.value);for(let je=0;je{o&&(s.value=K,A.locale=K,Ih(A,s.value,l.value))}),hr(t.fallbackLocale,K=>{o&&(l.value=K,A.fallbackLocale=K,Ih(A,s.value,l.value))}));const Pe={id:H2,locale:L,fallbackLocale:P,get inheritLocale(){return o},set inheritLocale(K){o=K,K&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,Ih(A,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:E,get modifiers(){return T},get pluralRules(){return b||{}},get isGlobal(){return n},get missingWarn(){return h},set missingWarn(K){h=K,A.missingWarn=h},get fallbackWarn(){return v},set fallbackWarn(K){v=K,A.fallbackWarn=v},get fallbackRoot(){return d},set fallbackRoot(K){d=K},get fallbackFormat(){return g},set fallbackFormat(K){g=K,A.fallbackFormat=g},get warnHtmlMessage(){return w},set warnHtmlMessage(K){w=K,A.warnHtmlMessage=K},get escapeParameter(){return x},set escapeParameter(K){x=K,A.escapeParameter=K},t:J,getLocaleMessage:W,setLocaleMessage:te,mergeLocaleMessage:_e,getPostTranslationHandler:N,setPostTranslationHandler:V,getMissingHandler:Y,setMissingHandler:G,[E3]:me};return Pe.datetimeFormats=F,Pe.numberFormats=O,Pe.rt=re,Pe.te=be,Pe.tm=H,Pe.d=pe,Pe.n=Me,Pe.getDateTimeFormat=fe,Pe.setDateTimeFormat=$,Pe.mergeDateTimeFormat=U,Pe.getNumberFormat=Q,Pe.setNumberFormat=ae,Pe.mergeNumberFormat=xe,Pe[k3]=r,Pe[Eb]=ie,Pe[kb]=de,Pe[Ob]=le,Pe}function Ore(e){const t=He(e.locale)?e.locale:vd,r=He(e.fallbackLocale)||Rr(e.fallbackLocale)||Et(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=Sr(e.missing)?e.missing:void 0,i=Ut(e.silentTranslationWarn)||Mf(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=Ut(e.silentFallbackWarn)||Mf(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Ut(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Et(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Sr(e.postTranslation)?e.postTranslation:void 0,f=He(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,v=Ut(e.sync)?e.sync:!0;let d=e.messages;if(Et(e.sharedMessages)){const T=e.sharedMessages;d=Object.keys(T).reduce((A,M)=>{const D=A[M]||(A[M]={});return Jr(D,T[M]),A},d||{})}const{__i18n:g,__root:m,__injectWithOption:y}=e,S=e.datetimeFormats,w=e.numberFormats,x=e.flatJson;return{locale:t,fallbackLocale:r,messages:d,flatJson:x,datetimeFormats:S,numberFormats:w,missing:n,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:v,__i18n:g,__root:m,__injectWithOption:y}}function Fb(e={}){const t=bA(Ore(e)),{__extender:r}=e,n={id:t.id,get locale(){return t.locale.value},set locale(i){t.locale.value=i},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(i){t.fallbackLocale.value=i},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(i){t.setMissingHandler(i)},get silentTranslationWarn(){return Ut(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=Ut(i)?!i:i},get silentFallbackWarn(){return Ut(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=Ut(i)?!i:i},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(i){t.fallbackFormat=i},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(i){t.setPostTranslationHandler(i)},get sync(){return t.inheritLocale},set sync(i){t.inheritLocale=i},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){t.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(i){t.escapeParameter=i},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...i){return Reflect.apply(t.t,t,[...i])},rt(...i){return Reflect.apply(t.rt,t,[...i])},tc(...i){const[a,o,s]=i,l={plural:1};let u=null,c=null;if(!He(a))throw hi(Yn.INVALID_ARGUMENT);const f=a;return He(o)?l.locale=o:qr(o)?l.plural=o:Rr(o)?u=o:Et(o)&&(c=o),He(s)?l.locale=s:Rr(s)?u=s:Et(s)&&(c=s),Reflect.apply(t.t,t,[f,u||c||{},l])},te(i,a){return t.te(i,a)},tm(i){return t.tm(i)},getLocaleMessage(i){return t.getLocaleMessage(i)},setLocaleMessage(i,a){t.setLocaleMessage(i,a)},mergeLocaleMessage(i,a){t.mergeLocaleMessage(i,a)},d(...i){return Reflect.apply(t.d,t,[...i])},getDateTimeFormat(i){return t.getDateTimeFormat(i)},setDateTimeFormat(i,a){t.setDateTimeFormat(i,a)},mergeDateTimeFormat(i,a){t.mergeDateTimeFormat(i,a)},n(...i){return Reflect.apply(t.n,t,[...i])},getNumberFormat(i){return t.getNumberFormat(i)},setNumberFormat(i,a){t.setNumberFormat(i,a)},mergeNumberFormat(i,a){t.mergeNumberFormat(i,a)}};return n.__extender=r,n}function Nre(e,t,r){return{beforeCreate(){const n=Gu();if(!n)throw hi(Yn.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const a=i.i18n;if(i.__i18n&&(a.__i18n=i.__i18n),a.__root=t,this===this.$root)this.$i18n=U2(e,a);else{a.__injectWithOption=!0,a.__extender=r.__vueI18nExtend,this.$i18n=Fb(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=U2(e,i);else{this.$i18n=Fb({__i18n:i.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&N3(t,i,i),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$tc=(...a)=>this.$i18n.tc(...a),this.$te=(a,o)=>this.$i18n.te(a,o),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),r.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const n=Gu();if(!n)throw hi(Yn.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),r.__deleteInstance(n),delete this.$i18n}}}function U2(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[E3](t.pluralizationRules||e.pluralizationRules);const r=xA(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(r).forEach(n=>e.mergeLocaleMessage(n,r[n])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const CA={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Fre({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,i)=>[...n,...i.type===wt?i.children:[i]],[]):t.reduce((r,n)=>{const i=e[n];return i&&(r[n]=i()),r},{})}function F3(){return wt}const Vre=Jt({name:"i18n-t",props:Jr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>qr(e)||!isNaN(e)}},CA),setup(e,t){const{slots:r,attrs:n}=t,i=e.i18n||Wu({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(r).filter(f=>f!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=He(e.plural)?+e.plural:e.plural);const s=Fre(t,a),l=i[Eb](e.keypath,s,o),u=Jr({},n),c=He(e.tag)||jt(e.tag)?e.tag:F3();return No(c,u,l)}}}),Y2=Vre;function Bre(e){return Rr(e)&&!He(e[0])}function V3(e,t,r,n){const{slots:i,attrs:a}=t;return()=>{const o={part:!0};let s={};e.locale&&(o.locale=e.locale),He(e.format)?o.key=e.format:jt(e.format)&&(He(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((h,v)=>r.includes(v)?Jr({},h,{[v]:e.format[v]}):h,{}));const l=n(e.value,o,s);let u=[o.key];Rr(l)?u=l.map((h,v)=>{const d=i[h.type],g=d?d({[h.type]:h.value,index:v,parts:l}):[h.value];return Bre(g)&&(g[0].key=`${h.type}-${v}`),g}):He(l)&&(u=[l]);const c=Jr({},a),f=He(e.tag)||jt(e.tag)?e.tag:F3();return No(f,c,u)}}const zre=Jt({name:"i18n-n",props:Jr({value:{type:Number,required:!0},format:{type:[String,Object]}},CA),setup(e,t){const r=e.i18n||Wu({useScope:e.scope,__useComponent:!0});return V3(e,t,L3,(...n)=>r[Ob](...n))}}),X2=zre,Gre=Jt({name:"i18n-d",props:Jr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},CA),setup(e,t){const r=e.i18n||Wu({useScope:e.scope,__useComponent:!0});return V3(e,t,I3,(...n)=>r[kb](...n))}}),Z2=Gre;function $re(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function Hre(e){const t=o=>{const{instance:s,value:l}=o;if(!s||!s.$)throw hi(Yn.UNEXPECTED_ERROR);const u=$re(e,s.$),c=q2(l);return[Reflect.apply(u.t,u,[...j2(c)]),u]};return{created:(o,s)=>{const[l,u]=t(s);Ny&&e.global===u&&(o.__i18nWatcher=hr(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{Ny&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=q2(s);o.textContent=Reflect.apply(l.t,l,[...j2(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function q2(e){if(He(e))return{path:e};if(Et(e)){if(!("path"in e))throw hi(Yn.REQUIRED_VALUE,"path");return e}else throw hi(Yn.INVALID_VALUE)}function j2(e){const{path:t,locale:r,args:n,choice:i,plural:a}=e,o={},s=n||{};return He(r)&&(o.locale=r),qr(i)&&(o.plural=i),qr(a)&&(o.plural=a),[t,s,o]}function Wre(e,t,...r){const n=Et(r[0])?r[0]:{};(Ut(n.globalInstall)?n.globalInstall:!0)&&([Y2.name,"I18nT"].forEach(a=>e.component(a,Y2)),[X2.name,"I18nN"].forEach(a=>e.component(a,X2)),[Z2.name,"I18nD"].forEach(a=>e.component(a,Z2))),e.directive("t",Hre(t))}const Ure=vl("global-vue-i18n");function Yre(e={},t){const r=__VUE_I18N_LEGACY_API__&&Ut(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=Ut(e.globalInjection)?e.globalInjection:!0,i=new Map,[a,o]=Xre(e,r),s=vl("");function l(h){return i.get(h)||null}function u(h,v){i.set(h,v)}function c(h){i.delete(h)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},async install(h,...v){if(h.__VUE_I18N_SYMBOL__=s,h.provide(h.__VUE_I18N_SYMBOL__,f),Et(v[0])){const m=v[0];f.__composerExtend=m.__composerExtend,f.__vueI18nExtend=m.__vueI18nExtend}let d=null;!r&&n&&(d=tne(h,f.global)),__VUE_I18N_FULL_INSTALL__&&Wre(h,f,...v),__VUE_I18N_LEGACY_API__&&r&&h.mixin(Nre(o,o.__composer,f));const g=h.unmount;h.unmount=()=>{d&&d(),f.dispose(),g()}},get global(){return o},dispose(){a.stop()},__instances:i,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function Wu(e={}){const t=Gu();if(t==null)throw hi(Yn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw hi(Yn.NOT_INSTALLED);const r=Zre(t),n=jre(r),i=O3(t),a=qre(e,i);if(a==="global")return N3(n,e,i),n;if(a==="parent"){let l=Kre(r,t,e.__useComponent);return l==null&&(l=n),l}const o=r;let s=o.__getInstance(t);if(s==null){const l=Jr({},e);"__i18n"in i&&(l.__i18n=i.__i18n),n&&(l.__root=n),s=bA(l),o.__composerExtend&&(s[Nb]=o.__composerExtend(s)),Qre(o,t,s),o.__setInstance(t,s)}return s}function Xre(e,t,r){const n=mj(),i=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Fb(e)):n.run(()=>bA(e));if(i==null)throw hi(Yn.UNEXPECTED_ERROR);return[n,i]}function Zre(e){const t=Sa(e.isCE?Ure:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw hi(e.isCE?Yn.NOT_INSTALLED_WITH_PROVIDE:Yn.UNEXPECTED_ERROR);return t}function qre(e,t){return a_(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function jre(e){return e.mode==="composition"?e.global:e.global.__composer}function Kre(e,t,r=!1){let n=null;const i=t.root;let a=Jre(t,r);for(;a!=null;){const o=e;if(e.mode==="composition")n=o.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(a);s!=null&&(n=s.__composer,r&&n&&!n[k3]&&(n=null))}if(n!=null||i===a)break;a=a.parent}return n}function Jre(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Qre(e,t,r){qd(()=>{},t),QT(()=>{const n=r;e.__deleteInstance(t);const i=n[Nb];i&&(i(),delete n[Nb])},t)}const ene=["locale","fallbackLocale","availableLocales"],K2=["t","rt","d","n","tm","te"];function tne(e,t){const r=Object.create(null);return ene.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a)throw hi(Yn.UNEXPECTED_ERROR);const o=sr(a.value)?{get(){return a.value.value},set(s){a.value.value=s}}:{get(){return a.get&&a.get()}};Object.defineProperty(r,i,o)}),e.config.globalProperties.$i18n=r,K2.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a||!a.value)throw hi(Yn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,a)}),()=>{delete e.config.globalProperties.$i18n,K2.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}Rre();cre(Ute);fre(sre);hre(b3);if(__INTLIFY_PROD_DEVTOOLS__){const e=vu();e.__INTLIFY__=!0,Yte(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const rne={setup:"Setup",overview:"Overview",proxies:"Proxies",rules:"Rules",connections:"Connections",logs:"Logs",protocol:"Protocol",host:"Host",port:"Port",password:"Password",submit:"Submit",cancel:"Cancel",download:"Download",upload:"Upload",downloadSpeed:"Download Speed",uploadSpeed:"Upload Speed",memoryUsage:"Memory Usage",version:"Version",quickFilter:"Quick Filter",noContent:"No Content",flushFakeIP:"Flush Fake IP",compactCard:"Compact Card",chains:"Chains",sortBy:"Sort By",rule:"Rule",sourceIP:"Source IP",activeConnections:"Active Conns",closedConnections:"Closed Conns",logLevel:"Log Level",twoColumns:"Two Columns",type:"Type",process:"Process",sniffHost:"Sniff Host",connectTime:"Time",sourcePort:"Source Port",destination:"Destination",inboundUser:"Inbound User",dl:"DL",ul:"UL",dlSpeed:"DL Speed",ulSpeed:"UL Speed",settings:"Settings",speedtestUrl:"Speedtest URL",speedtestTimeout:"Speedtest Timeout",connectionStyle:"Connection Style",card:"Card",table:"Table",customTableColumns:"Custom Table Columns",close:"Close",details:"Details",showGlobalProxy:"Show Global Proxy Node",dashboard:"Dashboard",theme:"Theme",proxyProvider:"Proxy Provider",ruleProvider:"Rule Provider",expire:"Expire",noExpire:"Null",updated:"Updated",upgradeUI:"Upgrade Dashboard",upgradeAllProviders:"Upgrade All Providers",reloadConfigs:"Reload Configs",mode:"Mode",proxySortType:"Proxy Sort Type",defaultsort:"By Configs",nameasc:"Name Asc",namedesc:"Name Desc",latencydesc:"Latency Desc",latencyasc:"Latency Asc"},nne={setup:"配置",overview:"概览",proxies:"代理",rules:"规则",connections:"连接",logs:"日志",protocol:"协议",host:"主机",port:"端口",password:"密码",submit:"提交",cancel:"取消",download:"下载",upload:"上传",downloadSpeed:"下载速度",uploadSpeed:"上传速度",memoryUsage:"内存使用",version:"版本",quickFilter:"快速过滤",noContent:"无内容",flushFakeIP:"清空Fake IP",compactCard:"紧凑卡片",chains:"代理链",sortBy:"排序方式",rule:"规则",sourceIP:"源IP",activeConnections:"活跃连接",closedConnections:"已关闭连接",logLevel:"日志等级",twoColumns:"双列显示",type:"类型",process:"进程",sniffHost:"嗅探主机",connectTime:"连接时间",sourcePort:"源端口",destination:"目标",inboundUser:"入站用户",dl:"下载",ul:"上传",dlSpeed:"下载速度",ulSpeed:"上传速度",settings:"设置",speedtestUrl:"测速地址",speedtestTimeout:"测速超时",connectionStyle:"连接样式",card:"卡片",table:"表格",customTableColumns:"自定义表格列",close:"关闭",details:"详情",showGlobalProxy:"显示全局代理节点",dashboard:"面板",theme:"主题",proxyProvider:"代理提供商",ruleProvider:"规则提供商",expire:"到期时间",noExpire:"不限时",updated:"更新于",upgradeUI:"更新面板",upgradeAllProviders:"更新所有提供商",reloadConfigs:"重载配置",mode:"模式",proxySortType:"代理排序方式",defaultsort:"按配置文件排序",nameasc:"按名称升序",namedesc:"按名称降序",latencydesc:"按延迟降序",latencyasc:"按延迟升序"},TA=Yre({locale:Au.value,messages:{[Tu.EN_US]:rne,[Tu.ZH_CN]:nne}});function B3(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9 12.75 3 3m0 0 3-3m-3 3v-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function ine(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function ane(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 9-3 3m0 0 3 3m-3-3h7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function z3(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function one(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m12.75 15 3-3m0 0-3-3m3 3h-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function G3(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m15 11.25-3-3m0 0-3 3m3-3v7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function J2(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function $3(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})])}function sne(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function H3(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"})])}function W3(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function lne(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"})])}function U3(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function Y3(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"})])}function X3(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"})])}function une(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m10.5 21 5.25-11.25L21 21m-9-3h7.5M3 5.621a48.474 48.474 0 0 1 6-.371m0 0c1.12 0 2.233.038 3.334.114M9 5.25V3m3.334 2.364C11.176 10.658 7.69 15.08 3 17.502m9.334-12.138c.896.061 1.785.147 2.666.257m-4.589 8.495a18.023 18.023 0 0 1-3.827-5.802"})])}function Q2(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"})])}function eR(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"})])}function Z3(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function q3(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"})])}function cne(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function j3(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"})])}function AA(e,t){return he(),Ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const Qa=Wr("config/is-sidebar-collapsed",!1),fne={class:"flex justify-between"},hne={class:"flex flex-col gap-2 p-2 text-xs"},vne={class:"flex gap-1"},dne={class:"flex gap-2"},pne=["value"],gne={class:"flex flex-1 items-end justify-end p-2"},mne=Jt({__name:"CommonCtrl",setup(e){const t=dt(()=>ud.value.map(i=>({label:`${i.protocol}://${i.host}:${i.port}`,value:i.uuid}))),r=()=>{Fo.value=null},n=()=>{Au.value=Au.value===Tu.ZH_CN?Tu.EN_US:Tu.ZH_CN,TA.global.locale=Au.value};return(i,a)=>(he(),Ae("div",fne,[oe("div",hne,[oe("div",null,Xe(i.$t("connections"))+": "+Xe(se(Vs).length),1),oe("div",null,Xe(i.$t("download"))+": "+Xe(se(Pr)(se(Jc)))+" ("+Xe(se(Pr)(se(Wm)))+"/s) ",1),oe("div",null,Xe(i.$t("upload"))+": "+Xe(se(Pr)(se(Qc)))+" ("+Xe(se(Pr)(se(Um)))+"/s) ",1),oe("div",null,Xe(i.$t("memoryUsage"))+": "+Xe(se(Pr)(se(Ey),{binary:!0})),1),oe("div",vne,Xe(i.$t("version"))+": "+Xe(se(vA)),1),oe("div",dne,[ci(oe("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":a[0]||(a[0]=o=>sr(Fo)?Fo.value=o:null)},[(he(!0),Ae(wt,null,wr(t.value,o=>(he(),Ae("option",{key:o.value,value:o.value},Xe(o.label),9,pne))),128))],512),[[Jd,se(Fo)]]),oe("button",{class:"btn btn-circle btn-xs",onClick:r},[ze(se(cne),{class:"h-4 w-4"})])])]),oe("div",gne,[se(Qa)?nr("",!0):(he(),Ae("button",{key:0,class:"btn btn-circle btn-ghost btn-xs hidden md:flex",onClick:a[1]||(a[1]=o=>Qa.value=!0)},[ze(se(ane),{class:"h-5 w-5"})])),oe("button",{class:"btn btn-circle btn-ghost btn-xs",onClick:n},[ze(se(une),{class:"h-5 w-5"})])])]))}}),MA="-",yne=e=>{const t=Sne(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(MA);return s[0]===""&&s.length!==1&&s.shift(),K3(s,t)||_ne(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},K3=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?K3(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(MA);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},tR=/^\[(.+)\]$/,_ne=e=>{if(tR.test(e)){const t=tR.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Sne=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return xne(Object.entries(e.classGroups),r).forEach(([a,o])=>{Vb(o,n,a,t)}),n},Vb=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:rR(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(wne(i)){Vb(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{Vb(o,rR(t,a),r,n)})})},rR=(e,t)=>{let r=e;return t.split(MA).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},wne=e=>e.isThemeGetter,xne=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,s])=>[t+o,s])):a);return[r,i]}):e,bne=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},J3="!",Cne=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=s=>{const l=[];let u=0,c=0,f;for(let m=0;mc?f-c:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:d,maybePostfixModifierPosition:g}};return r?s=>r({className:s,parseClassName:o}):o},Tne=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Ane=e=>({cache:bne(e.cacheSize),parseClassName:Cne(e),...yne(e)}),Mne=/\s+/,Dne=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(Mne);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:v}=r(u);let d=!!v,g=n(d?h.substring(0,v):h);if(!g){if(!d){s=u+(s.length>0?" "+s:s);continue}if(g=n(h),!g){s=u+(s.length>0?" "+s:s);continue}d=!1}const m=Tne(c).join(":"),y=f?m+J3:m,S=y+g;if(a.includes(S))continue;a.push(S);const w=i(g,d);for(let x=0;x0?" "+s:s)}return s};function Ine(){let e=0,t,r,n="";for(;e{if(typeof e=="string")return e;let t,r="";for(let n=0;nf(c),e());return r=Ane(u),n=r.cache.get,i=r.cache.set,a=s,s(l)}function s(l){const u=n(l);if(u)return u;const c=Dne(l,r);return i(l,c),c}return function(){return a(Ine.apply(null,arguments))}}const _r=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},ez=/^\[(?:([a-z-]+):)?(.+)\]$/i,Pne=/^\d+\/\d+$/,Rne=new Set(["px","full","screen"]),Ene=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kne=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,One=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Nne=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fne=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,To=e=>df(e)||Rne.has(e)||Pne.test(e),gs=e=>Xf(e,"length",Une),df=e=>!!e&&!Number.isNaN(Number(e)),DS=e=>Xf(e,"number",df),Lh=e=>!!e&&Number.isInteger(Number(e)),Vne=e=>e.endsWith("%")&&df(e.slice(0,-1)),Dt=e=>ez.test(e),ms=e=>Ene.test(e),Bne=new Set(["length","size","percentage"]),zne=e=>Xf(e,Bne,tz),Gne=e=>Xf(e,"position",tz),$ne=new Set(["image","url"]),Hne=e=>Xf(e,$ne,Xne),Wne=e=>Xf(e,"",Yne),Ph=()=>!0,Xf=(e,t,r)=>{const n=ez.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Une=e=>kne.test(e)&&!One.test(e),tz=()=>!1,Yne=e=>Nne.test(e),Xne=e=>Fne.test(e),Zne=()=>{const e=_r("colors"),t=_r("spacing"),r=_r("blur"),n=_r("brightness"),i=_r("borderColor"),a=_r("borderRadius"),o=_r("borderSpacing"),s=_r("borderWidth"),l=_r("contrast"),u=_r("grayscale"),c=_r("hueRotate"),f=_r("invert"),h=_r("gap"),v=_r("gradientColorStops"),d=_r("gradientColorStopPositions"),g=_r("inset"),m=_r("margin"),y=_r("opacity"),S=_r("padding"),w=_r("saturate"),x=_r("scale"),T=_r("sepia"),b=_r("skew"),A=_r("space"),M=_r("translate"),D=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",Dt,t],E=()=>[Dt,t],F=()=>["",To,gs],O=()=>["auto",df,Dt],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",Dt],J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],re=()=>[df,Dt];return{cacheSize:500,separator:":",theme:{colors:[Ph],spacing:[To,gs],blur:["none","",ms,Dt],brightness:re(),borderColor:[e],borderRadius:["none","","full",ms,Dt],borderSpacing:E(),borderWidth:F(),contrast:re(),grayscale:Z(),hueRotate:re(),invert:Z(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[Vne,gs],inset:P(),margin:P(),opacity:re(),padding:E(),saturate:re(),scale:re(),sepia:Z(),skew:re(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",Dt]}],container:["container"],columns:[{columns:[ms]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...N(),Dt]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Lh,Dt]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Dt]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Lh,Dt]}],"grid-cols":[{"grid-cols":[Ph]}],"col-start-end":[{col:["auto",{span:["full",Lh,Dt]},Dt]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Ph]}],"row-start-end":[{row:["auto",{span:[Lh,Dt]},Dt]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Dt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Dt]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Dt,t]}],"min-w":[{"min-w":[Dt,t,"min","max","fit"]}],"max-w":[{"max-w":[Dt,t,"none","full","min","max","fit","prose",{screen:[ms]},ms]}],h:[{h:[Dt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Dt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Dt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Dt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ms,gs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",DS]}],"font-family":[{font:[Ph]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Dt]}],"line-clamp":[{"line-clamp":["none",df,DS]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",To,Dt]}],"list-image":[{"list-image":["none",Dt]}],"list-style-type":[{list:["none","disc","decimal",Dt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",To,gs]}],"underline-offset":[{"underline-offset":["auto",To,Dt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Dt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Dt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),Gne]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zne]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Hne]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[d]}],"gradient-via-pos":[{via:[d]}],"gradient-to-pos":[{to:[d]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:V()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[To,Dt]}],"outline-w":[{outline:[To,gs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[To,gs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ms,Wne]}],"shadow-color":[{shadow:[Ph]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ms,Dt]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Dt]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",Dt]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",Dt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Lh,Dt]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[b]}],"skew-y":[{"skew-y":[b]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Dt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Dt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Dt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[To,gs,DS]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Qr=Lne(Zne),qne={class:"tabs-boxed tabs tabs-sm"},jne={key:0,class:"flex items-center gap-2"},Kne=["value"],Jne={class:"flex items-center gap-2"},rz=Jt({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{ky.value.forEach(r=>{t_(r.id)})};return(r,n)=>(he(),Ae("div",{class:Gt(se(Qr)("flex flex-col gap-2 p-2 text-sm",r.horizontal&&"flex-row"))},[oe("div",qne,[oe("a",{role:"tab",class:Gt(se(Qr)("tab",se(dv)===se(vv).ACTIVE&&"tab-active")),onClick:n[0]||(n[0]=()=>dv.value=se(vv).ACTIVE)},Xe(r.$t("activeConnections")),3),oe("a",{role:"tab",class:Gt(se(Qr)("tab",se(dv)===se(vv).CLOSED&&"tab-active")),onClick:n[1]||(n[1]=()=>dv.value=se(vv).CLOSED)},Xe(r.$t("closedConnections")),3)]),se(pA)?(he(),Ae("div",jne,[Ir(Xe(r.$t("sortBy"))+": ",1),ci(oe("select",{class:"select select-bordered select-sm w-52","onUpdate:modelValue":n[2]||(n[2]=i=>sr(Xm)?Xm.value=i:null)},[(he(!0),Ae(wt,null,wr(Object.values(se(_3)),i=>(he(),Ae("option",{key:i,value:i},Xe(r.$t(i)||i),9,Kne))),128))],512),[[Jd,se(Xm)]])])):nr("",!0),oe("div",Jne,[Ir(Xe(r.$t("quickFilter"))+": ",1),ci(oe("input",{type:"text",class:"input input-sm join-item input-bordered w-40","onUpdate:modelValue":n[3]||(n[3]=i=>sr(Nv)?Nv.value=i:null)},null,512),[[ff,se(Nv)]]),ci(oe("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":n[4]||(n[4]=i=>sr(Ym)?Ym.value=i:null)},null,512),[[aA,se(Ym)]])]),oe("div",{class:Gt(["join",r.horizontal&&"flex-1"])},[ci(oe("input",{type:"text",class:"input input-sm join-item input-bordered flex-1","onUpdate:modelValue":n[5]||(n[5]=i=>sr(Fv)?Fv.value=i:null)},null,512),[[ff,se(Fv)]]),oe("button",{class:"btn-bordered btn join-item btn-sm",onClick:n[6]||(n[6]=i=>Zm.value=!se(Zm))},[(he(),qt(Bu(se(Zm)?se(q3):se(Z3)),{class:"h-4 w-4"}))]),oe("button",{class:"btn-bordered btn join-item btn-sm",onClick:t},[ze(se(AA),{class:"h-4 w-4"})])],2)],2))}});var ef=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(ef||{});const pv=Je([]),pf=Je(""),Km=Je(!1),Jm=Wr("config/log-level","info");let xg;const Bb=()=>{xg==null||xg(),pv.value=[];let e=1;const t=Zee({level:Jm.value}),r=hr(t.data,n=>{if(!n)return;const i=JSON.parse(n);if(Km.value){e++;return}pv.value.unshift({...i,seq:e++}),pv.value=pv.value.slice(0,1e3)});xg=()=>{r(),t.close()}},Qne={class:"flex items-center gap-2"},eie=["value"],tie={class:"join"},nz=Jt({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,r)=>(he(),Ae("div",{class:Gt(se(Qr)("flex flex-col gap-2 p-2",t.horizontal&&"flex-row"))},[oe("div",Qne,[Ir(Xe(t.$t("logLevel"))+": ",1),ci(oe("select",{class:"select select-bordered select-sm","onUpdate:modelValue":r[0]||(r[0]=n=>sr(Jm)?Jm.value=n:null),onChange:r[1]||(r[1]=(...n)=>se(Bb)&&se(Bb)(...n))},[(he(!0),Ae(wt,null,wr(Object.values(se(ef)),n=>(he(),Ae("option",{key:n,value:n},Xe(n),9,eie))),128))],544),[[Jd,se(Jm)]])]),oe("div",tie,[ci(oe("input",{type:"text",class:"input input-sm join-item input-bordered","onUpdate:modelValue":r[2]||(r[2]=n=>sr(pf)?pf.value=n:null)},null,512),[[ff,se(pf)]]),oe("button",{class:"btn-bordered btn join-item btn-sm",onClick:r[3]||(r[3]=n=>Km.value=!se(Km))},[(he(),qt(Bu(se(Km)?se(q3):se(Z3)),{class:"h-4 w-4"}))])])],2))}}),rie={key:0,role:"tablist",class:"tabs-boxed tabs tabs-sm"},nie=["onClick"],iie={key:1,class:"flex flex-col gap-2"},aie=["label","value"],oie=["value"],sie=["label","value"],iz=Jt({__name:"ProxiesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Je(!1),r=async()=>{if(!t.value){t.value=!0;try{await Promise.all(vf.value.map(a=>v3(a.name))),await Oy(),t.value=!1}catch{t.value=!1}}},n=dt(()=>{var a;return((a=$m.value)==null?void 0:a["mode-list"])||["direct","rule","global"]}),i=a=>{const o=a.target.value;Jee({mode:o})};return(a,o)=>se($m)?(he(),Ae("div",{key:0,class:Gt(se(Qr)("flex flex-col gap-2 p-2",a.horizontal&&"flex-row"))},[se(vf).length?(he(),Ae(wt,{key:0},[se(vf).length?(he(),Ae("div",rie,[(he(!0),Ae(wt,null,wr(se(Tf),s=>(he(),Ae("a",{role:"tab",class:Gt(["tab",{"tab-active":se(hf)===s}]),key:s,onClick:l=>hf.value=s},Xe(a.$t(s)),11,nie))),128))])):nr("",!0),se(hf)===se(Tf).PROVIDER?(he(),Ae("div",iie,[oe("button",{class:Gt(se(Qr)("btn btn-sm",t.value?"animate-pulse":"")),onClick:r},Xe(a.$t("upgradeAllProviders")),3)])):nr("",!0)],64)):nr("",!0),ci(oe("select",{class:"select select-bordered select-sm","onUpdate:modelValue":o[0]||(o[0]=s=>sr(Gm)?Gm.value=s:null)},[(he(!0),Ae(wt,null,wr(Object.values(se(ou)),s=>(he(),Ae("option",{key:s,label:a.$t(s),value:s},null,8,aie))),128))],512),[[Jd,se(Gm)]]),oe("select",{class:"select select-bordered select-sm",value:se($m).mode,onChange:i},[(he(!0),Ae(wt,null,wr(n.value,s=>(he(),Ae("option",{key:s,label:s,value:s},null,8,sie))),128))],40,oie)],2)):nr("",!0)}}),az=Je(),Vy=Je([]),DA=async()=>{const{data:e}=await Hee(),{data:t}=await Wee();az.value=e.rules,Vy.value=Object.values(t.providers)},lie={role:"tablist",class:"tabs-boxed tabs tabs-sm"},uie=["onClick"],cie={key:0,class:"flex flex-col gap-2"},oz=Jt({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Je(!1),r=async()=>{if(!t.value){t.value=!0;try{await Promise.all(Vy.value.map(n=>d3(n.name))),await DA(),t.value=!1}catch{t.value=!1}}};return(n,i)=>se(Vy).length?(he(),Ae("div",{key:0,class:Gt(se(Qr)("flex flex-col gap-2 p-2",n.horizontal&&"flex-row"))},[oe("div",lie,[(he(!0),Ae(wt,null,wr(se(fd),a=>(he(),Ae("a",{role:"tab",class:Gt(["tab",{"tab-active":se(Ov)===a}]),key:a,onClick:o=>Ov.value=a},Xe(n.$t(a)),11,uie))),128))]),se(Ov)===se(fd).PROVIDER?(he(),Ae("div",cie,[oe("button",{class:Gt(se(Qr)("btn btn-sm",t.value?"animate-pulse":"")),onClick:r},Xe(n.$t("upgradeAllProviders")),3)])):nr("",!0)],2)):nr("",!0)}});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -76,8 +76,8 @@ 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 zb=function(e,t){return zb=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])},zb(e,t)};function j(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zb(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var hie=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),vie=function(){function e(){this.browser=new hie,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),gt=new vie;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(gt.wxa=!0,gt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?gt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(gt.node=!0,gt.svgSupported=!0):die(navigator.userAgent,gt);function die(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var IA=12,sz="sans-serif",tl=IA+"px "+sz,pie=20,gie=100,mie="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function yie(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Bie(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,h=c.left,v=c.top;o.push(h,v),l=l&&a&&h===a[f]&&v===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?oR(s,o):oR(o,s))}function dz(e){return e.nodeName.toUpperCase()==="CANVAS"}var zie=/([&<>"'])/g,Gie={"&":"&","<":"<",">":">",'"':""","'":"'"};function ai(e){return e==null?"":(e+"").replace(zie,function(t,r){return Gie[r]})}var $ie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,LS=[],Hie=gt.browser.firefox&&+gt.browser.version.split(".")[0]<39;function Xb(e,t,r,n){return r=r||{},n?lR(e,t,r):Hie&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):lR(e,t,r),r}function lR(e,t,r){if(gt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(dz(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Yb(LS,e,n,i)){r.zrX=LS[0],r.zrY=LS[1];return}}r.zrX=r.zrY=0}function NA(e){return e||window.event}function Wi(e,t,r){if(t=NA(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Xb(e,o,t,r)}else{Xb(e,t,t,r);var a=Wie(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&$ie.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Wie(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function Zb(e,t,r,n){e.addEventListener(t,r,n)}function Uie(e,t,r,n){e.removeEventListener(t,r,n)}var Zo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function uR(e){return e.which===2||e.which===3}var Yie=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=cR(n)/cR(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Xie(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Mi(){return[1,0,0,1,0,0]}function f_(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function FA(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Wo(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function ao(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function ec(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=a*f+l*c,e[3]=-a*c+f*l,e[4]=f*(o-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(o-n[0])+n[1],e}function VA(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function jf(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function Zie(e){var t=Mi();return FA(t,e),t}var rt=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),Cg=Math.min,Tg=Math.max,Dl=new rt,Il=new rt,Ll=new rt,Pl=new rt,Rh=new rt,Eh=new rt,at=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Cg(t.x,this.x),n=Cg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Tg(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Tg(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=Mi();return ao(a,a,[-r.x,-r.y]),VA(a,a,[n,i]),ao(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,h=!(ad&&(d=w,gd&&(d=x,y=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Dl.x=Ll.x=r.x,Dl.y=Pl.y=r.y,Il.x=Pl.x=r.x+r.width,Il.y=Ll.y=r.y+r.height,Dl.transform(n),Pl.transform(n),Il.transform(n),Ll.transform(n),t.x=Cg(Dl.x,Il.x,Ll.x,Pl.x),t.y=Cg(Dl.y,Il.y,Ll.y,Pl.y);var l=Tg(Dl.x,Il.x,Ll.x,Pl.x),u=Tg(Dl.y,Il.y,Ll.y,Pl.y);t.width=l-t.x,t.height=u-t.y},e}(),pz="silent";function qie(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:jie}}function jie(){Zo(this.event)}var Kie=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ia),kh=function(){function e(t,r){this.x=t,this.y=r}return e}(),Jie=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],RS=new at(0,0,0,0),gz=function(e){j(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new kh(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Kie,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Oie(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(R(Jie,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=mz(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 kh(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new kh(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=qie(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new kh(r,n);if(fR(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new at(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var h=a[f];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(RS.copy(h.getBoundingRect()),h.transform&&RS.applyTransform(h.transform),RS.intersect(c)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Qie(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?pz:!0}return!1}function fR(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Qie(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==pz)){t.target=o;break}}}function mz(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var yz=32,Oh=7;function eae(e){for(var t=0;e>=yz;)t|=e&1,e>>=1;return e+t}function hR(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function tae(e,t,r){for(r--;t>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function ES(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function kS(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function rae(e,t){var r=Oh,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;c(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]=Oh||A>=Oh);if(M)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),d===1){for(y=0;y=0;y--)e[b+y]=e[T+y];e[x]=o[w];return}for(var A=r;;){var M=0,D=0,L=!1;do if(t(o[w],e[S])<0){if(e[x--]=e[S--],M++,D=0,--d===0){L=!0;break}}else if(e[x--]=o[w--],D++,M=0,--m===1){L=!0;break}while((M|D)=0;y--)e[b+y]=e[T+y];if(d===0){L=!0;break}}if(e[x--]=o[w--],--m===1){L=!0;break}if(D=m-ES(e[S],o,0,m,m-1,t),D!==0){for(x-=D,w-=D,m-=D,b=x+1,T=w+1,y=0;y=Oh||D>=Oh);if(L)break;A<0&&(A=0),A+=2}if(r=A,r<1&&(r=1),m===1){for(x-=d,S-=d,b=x+1,T=S+1,y=d-1;y>=0;y--)e[b+y]=e[T+y];e[x]=o[w]}else{if(m===0)throw new Error;for(T=x-(m-1),y=0;ys&&(l=s),vR(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var bi=1,gv=2,Yc=4,dR=!1;function OS(){dR||(dR=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function pR(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var nae=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=pR}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(OS(),c.z=0),isNaN(c.z2)&&(OS(),c.z2=0),isNaN(c.zlevel)&&(OS(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Gy;Gy=gt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Bv={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Bv.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Bv.bounceIn(e*2)*.5:Bv.bounceOut(e*2-1)*.5+.5}},Ag=Math.pow,js=Math.sqrt,$y=1e-8,_z=1e-4,gR=js(3),Mg=1/3,Xa=Qu(),qi=Qu(),gf=Qu();function $s(e){return e>-$y&&e<$y}function Sz(e){return e>$y||e<-$y}function Zr(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function mR(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Hy(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,v=0;if($s(c)&&$s(f))if($s(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=f*f-4*c*h;if($s(g)){var m=f/c,d=-s/o+m,y=-m/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(g>0){var S=js(g),w=c*s+1.5*o*(-f+S),x=c*s+1.5*o*(-f-S);w<0?w=-Ag(-w,Mg):w=Ag(w,Mg),x<0?x=-Ag(-x,Mg):x=Ag(x,Mg);var d=(-s-(w+x))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var T=(2*c*s-3*o*f)/(2*js(c*c*c)),b=Math.acos(T)/3,A=js(c),M=Math.cos(b),d=(-s-2*A*M)/(3*o),y=(-s+A*(M+gR*Math.sin(b)))/(3*o),D=(-s+A*(M-gR*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),D>=0&&D<=1&&(a[v++]=D)}}return v}function wz(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if($s(o)){if(Sz(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if($s(c))i[0]=-a/(2*o);else if(c>0){var f=js(c),u=(-a+f)/(2*o),h=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function nl(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function xz(e,t,r,n,i,a,o,s,l,u,c){var f,h=.005,v=1/0,d,g,m,y;Xa[0]=l,Xa[1]=u;for(var S=0;S<1;S+=.05)qi[0]=Zr(e,r,i,o,S),qi[1]=Zr(t,n,a,s,S),m=Mu(Xa,qi),m=0&&m=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if($s(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=js(c),u=(-o+f)/(2*a),h=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function bz(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function gd(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function Cz(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;Xa[0]=o,Xa[1]=s;for(var h=0;h<1;h+=.05){qi[0]=an(e,r,i,h),qi[1]=an(t,n,a,h);var v=Mu(Xa,qi);v=0&&v=1?1:Hy(0,n,a,1,l,s)&&Zr(0,i,o,1,s[0])}}}var lae=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Er,this.ondestroy=t.ondestroy||Er,this.onrestart=t.onrestart||Er,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=$e(t)?t:Bv[t]||BA(t)},e}(),Tz=function(){function e(t){this.value=t}return e}(),uae=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Tz(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),tp=function(){function e(t){this._list=new uae,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Tz(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),yR={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 xa(e){return e=Math.round(e),e<0?0:e>255?255:e}function cae(e){return e=Math.round(e),e<0?0:e>360?360:e}function md(e){return e<0?0:e>1?1:e}function NS(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?xa(parseFloat(t)/100*255):xa(parseInt(t,10))}function Du(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?md(parseFloat(t)/100):md(parseFloat(t))}function FS(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Hs(e,t,r){return e+(t-e)*r}function Hi(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function jb(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Az=new tp(20),Dg=null;function Cc(e,t){Dg&&jb(Dg,t),Dg=Az.put(e,Dg||t.slice())}function Di(e,t){if(e){t=t||[];var r=Az.get(e);if(r)return jb(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in yR)return jb(t,yR[n]),Cc(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Hi(t,0,0,0,1);return}return Hi(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Cc(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Hi(t,0,0,0,1);return}return Hi(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Cc(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Hi(t,+u[0],+u[1],+u[2],1):Hi(t,0,0,0,1);c=Du(u.pop());case"rgb":if(u.length>=3)return Hi(t,NS(u[0]),NS(u[1]),NS(u[2]),u.length===3?c:Du(u[3])),Cc(e,t),t;Hi(t,0,0,0,1);return;case"hsla":if(u.length!==4){Hi(t,0,0,0,1);return}return u[3]=Du(u[3]),Kb(u,t),Cc(e,t),t;case"hsl":if(u.length!==3){Hi(t,0,0,0,1);return}return Kb(u,t),Cc(e,t),t;default:return}}Hi(t,0,0,0,1)}}function Kb(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Du(e[1]),i=Du(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Hi(t,xa(FS(o,a,r+1/3)*255),xa(FS(o,a,r)*255),xa(FS(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function fae(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;t===a?l=h-f:r===a?l=1/3+c-h:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return e[3]!=null&&v.push(e[3]),v}}function Jb(e,t){var r=Di(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Uo(r,r.length===4?"rgba":"rgb")}}function VS(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=xa(Hs(o[0],s[0],l)),r[1]=xa(Hs(o[1],s[1],l)),r[2]=xa(Hs(o[2],s[2],l)),r[3]=md(Hs(o[3],s[3],l)),r}}function hae(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Di(t[i]),s=Di(t[a]),l=n-i,u=Uo([xa(Hs(o[0],s[0],l)),xa(Hs(o[1],s[1],l)),xa(Hs(o[2],s[2],l)),md(Hs(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function zv(e,t,r,n){var i=Di(e);if(e)return i=fae(i),t!=null&&(i[0]=cae(t)),r!=null&&(i[1]=Du(r)),n!=null&&(i[2]=Du(n)),Uo(Kb(i),"rgba")}function Wy(e,t){var r=Di(e);if(r&&t!=null)return r[3]=md(t),Uo(r,"rgba")}function Uo(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Uy(e,t){var r=Di(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var _R=new tp(100);function Qb(e){if(Ee(e)){var t=_R.get(e);return t||(t=Jb(e,-.1),_R.put(e,t)),t}else if(u_(e)){var r=ce({},e);return r.colorStops=Se(e.colorStops,function(n){return{offset:n.offset,color:Jb(n.color,-.1)}}),r}return e}var Yy=Math.round;function yd(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Di(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var SR=1e-4;function Ws(e){return e-SR}function Ig(e){return Yy(e*1e3)/1e3}function eC(e){return Yy(e*1e4)/1e4}function vae(e){return"matrix("+Ig(e[0])+","+Ig(e[1])+","+Ig(e[2])+","+Ig(e[3])+","+eC(e[4])+","+eC(e[5])+")"}var dae={left:"start",right:"end",center:"middle",middle:"middle"};function pae(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function gae(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function mae(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Mz(e){return e&&!!e.image}function yae(e){return e&&!!e.svgElement}function zA(e){return Mz(e)||yae(e)}function Dz(e){return e.type==="linear"}function Iz(e){return e.type==="radial"}function Lz(e){return e&&(e.type==="linear"||e.type==="radial")}function h_(e){return"url(#"+e+")"}function Pz(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Rz(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Qm,i=et(e.scaleX,1),a=et(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Yy(o*Qm)+"deg, "+Yy(s*Qm)+"deg)"),l.join(" ")}var _ae=function(){return gt.hasGlobalWindow&&$e(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),tC=Array.prototype.slice;function Po(e,t,r){return(t-e)*r+e}function BS(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=xR,l=r;if(Ln(r)){var u=bae(r);s=u,(u===1&&!Pt(r[0])||u===2&&!Pt(r[0][0]))&&(o=!0)}else if(Pt(r)&&!pd(r))s=Pg;else if(Ee(r))if(!isNaN(+r))s=Pg;else{var c=Di(r);c&&(l=c,s=mv)}else if(u_(r)){var f=ce({},l);f.colorStops=Se(r.colorStops,function(v){return{offset:v.offset,color:Di(v.color)}}),Dz(r)?s=rC:Iz(r)&&(s=nC),l=f}a===0?this.valType=s:(s!==this.valType||s===xR)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=$e(n)?n:Bv[n]||BA(n)),i.push(h),h},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,m){return g.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Rg(i),u=bR(i),c=0;c=0&&!(o[c].percent<=r);c--);c=h(c,s-2)}else{for(c=f;cr);c++);c=h(c-1,s-2)}d=o[c+1],v=o[c]}if(v&&d){this._lastFr=c,this._lastFrP=r;var m=d.percent-v.percent,y=m===0?1:h((r-v.percent)/m,1);d.easingFunc&&(y=d.easingFunc(y));var S=n?this._additiveValue:u?Nh:t[l];if((Rg(a)||u)&&!S&&(S=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(Rg(a))a===iy?BS(S,v[i],d[i],y):Sae(S,v[i],d[i],y);else if(bR(a)){var w=v[i],x=d[i],T=a===rC;t[l]={type:T?"linear":"radial",x:Po(w.x,x.x,y),y:Po(w.y,x.y,y),colorStops:Se(w.colorStops,function(A,M){var D=x.colorStops[M];return{offset:Po(A.offset,D.offset,y),color:ny(BS([],A.color,D.color,y))}}),global:x.global},T?(t[l].x2=Po(w.x2,x.x2,y),t[l].y2=Po(w.y2,x.y2,y)):t[l].r=Po(w.r,x.r,y)}else if(u)BS(S,v[i],d[i],y),n||(t[l]=ny(S));else{var b=Po(v[i],d[i],y);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Pg?t[n]=t[n]+i:r===mv?(Di(t[n],Nh),Lg(Nh,Nh,i,1),t[n]=ny(Nh)):r===iy?Lg(t[n],t[n],i,1):r===Ez&&wR(t[n],t[n],i,1)},e}(),GA=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){RA("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,yt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Gv(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Gv(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function tf(){return new Date().getTime()}var Tae=function(e){j(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=tf()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Gy(n),!r._paused&&r.update())}Gy(n)},t.prototype.start=function(){this._running||(this._time=tf(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=tf(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=tf()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new GA(r,n.loop);return this.addAnimator(i),i},t}(ia),Aae=300,zS=gt.domSupported,GS=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Se(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),CR={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},TR=!1;function iC(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Mae(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function $S(e){e&&(e.zrByTouch=!0)}function Dae(e,t){return Wi(e.dom,new Iae(e,t),!0)}function kz(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Iae=function(){function e(t,r){this.stopPropagation=Er,this.stopImmediatePropagation=Er,this.preventDefault=Er,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),da={mousedown:function(e){e=Wi(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Wi(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Wi(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Wi(this.dom,e);var t=e.toElement||e.relatedTarget;kz(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){TR=!0,e=Wi(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){TR||(e=Wi(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Wi(this.dom,e),$S(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),da.mousemove.call(this,e),da.mousedown.call(this,e)},touchmove:function(e){e=Wi(this.dom,e),$S(e),this.handler.processGesture(e,"change"),da.mousemove.call(this,e)},touchend:function(e){e=Wi(this.dom,e),$S(e),this.handler.processGesture(e,"end"),da.mouseup.call(this,e),+new Date-+this.__lastTouchMomentDR||e<-DR}var El=[],Tc=[],WS=Mi(),US=Math.abs,zo=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Rl(this.rotation)||Rl(this.x)||Rl(this.y)||Rl(this.scaleX-1)||Rl(this.scaleY-1)||Rl(this.skewX)||Rl(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(MR(n),this.invTransform=null);return}n=n||Mi(),r?this.getLocalTransform(n):MR(n),t&&(r?Wo(n,t,n):FA(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(El);var n=El[0]<0?-1:1,i=El[1]<0?-1:1,a=((El[0]-n)*r+n)/El[0]||0,o=((El[1]-i)*r+i)/El[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Mi(),jf(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Mi(),Wo(Tc,t.invTransform,r),r=Tc);var n=this.originX,i=this.originY;(n||i)&&(WS[4]=n,WS[5]=i,Wo(Tc,r,WS),Tc[4]-=n,Tc[5]-=i,r=Tc),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&mn(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&mn(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&US(t[0]-1)>1e-10&&US(t[3]-1)>1e-10?Math.sqrt(US(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Nz(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,h=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,g=i+l;r[4]=-d*a-h*g*o,r[5]=-g*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=h*o,u&&ec(r,r,u),r[4]+=n+c,r[5]+=i+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),oo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Nz(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function Zy(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Ta(n[0],r.width),u+=Ta(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var YS="__zr_normal__",XS=oo.concat(["ignore"]),kae=io(oo,function(e,t){return e[t]=!0,e},{ignore:!1}),Ac={},Oae=new at(0,0,0,0),d_=function(){function e(t){this.id=cz(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=Oae;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ac,n,c):Zy(Ac,n,c),a.x=Ac.x,a.y=Ac.y,o=Ac.align,s=Ac.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var h=void 0,v=void 0;f==="center"?(h=c.width*.5,v=c.height*.5):(h=Ta(f[0],c.width),v=Ta(f[1],c.height)),u=!0,a.originX=-a.x+h+(i?0:c.x),a.originY=-a.y+v+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,S=void 0,w=void 0;g&&this.canBeInsideText()?(y=n.insideFill,S=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(y),w=!0)):(y=n.outsideFill,S=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(y),w=!0)),y=y||"#000",(y!==m.fill||S!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=S,m.autoStroke=w,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=bi,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?lC:sC},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Di(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,Uo(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},ce(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Ye(t))for(var n=t,i=yt(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(YS,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===YS,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ht(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){RA("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(t,r,n,c),h&&h.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bi),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,d);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,r,h),m&&m.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bi)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=ht(i,t),o=ht(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(d,g){r.during(g)});for(var h=0;h0||i.force&&!o.length){var M=void 0,D=void 0,L=void 0;if(s){D={},h&&(M={});for(var x=0;x=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ht(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ht(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i"u"&&typeof self<"u"?gt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(gt.node=!0,gt.svgSupported=!0):vie(navigator.userAgent,gt);function vie(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var IA=12,sz="sans-serif",tl=IA+"px "+sz,die=20,pie=100,gie="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function mie(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Vie(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,h=c.left,v=c.top;o.push(h,v),l=l&&a&&h===a[f]&&v===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?oR(s,o):oR(o,s))}function dz(e){return e.nodeName.toUpperCase()==="CANVAS"}var Bie=/([&<>"'])/g,zie={"&":"&","<":"<",">":">",'"':""","'":"'"};function ai(e){return e==null?"":(e+"").replace(Bie,function(t,r){return zie[r]})}var Gie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,LS=[],$ie=gt.browser.firefox&&+gt.browser.version.split(".")[0]<39;function Xb(e,t,r,n){return r=r||{},n?lR(e,t,r):$ie&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):lR(e,t,r),r}function lR(e,t,r){if(gt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(dz(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Yb(LS,e,n,i)){r.zrX=LS[0],r.zrY=LS[1];return}}r.zrX=r.zrY=0}function NA(e){return e||window.event}function Wi(e,t,r){if(t=NA(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Xb(e,o,t,r)}else{Xb(e,t,t,r);var a=Hie(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Gie.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Hie(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function Zb(e,t,r,n){e.addEventListener(t,r,n)}function Wie(e,t,r,n){e.removeEventListener(t,r,n)}var Zo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function uR(e){return e.which===2||e.which===3}var Uie=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=cR(n)/cR(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Yie(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Mi(){return[1,0,0,1,0,0]}function f_(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function FA(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Wo(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function ao(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function ec(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=a*f+l*c,e[3]=-a*c+f*l,e[4]=f*(o-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(o-n[0])+n[1],e}function VA(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function jf(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function Xie(e){var t=Mi();return FA(t,e),t}var rt=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),Cg=Math.min,Tg=Math.max,Dl=new rt,Il=new rt,Ll=new rt,Pl=new rt,Rh=new rt,Eh=new rt,at=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Cg(t.x,this.x),n=Cg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Tg(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Tg(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=Mi();return ao(a,a,[-r.x,-r.y]),VA(a,a,[n,i]),ao(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,h=!(ad&&(d=w,gd&&(d=x,y=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Dl.x=Ll.x=r.x,Dl.y=Pl.y=r.y,Il.x=Pl.x=r.x+r.width,Il.y=Ll.y=r.y+r.height,Dl.transform(n),Pl.transform(n),Il.transform(n),Ll.transform(n),t.x=Cg(Dl.x,Il.x,Ll.x,Pl.x),t.y=Cg(Dl.y,Il.y,Ll.y,Pl.y);var l=Tg(Dl.x,Il.x,Ll.x,Pl.x),u=Tg(Dl.y,Il.y,Ll.y,Pl.y);t.width=l-t.x,t.height=u-t.y},e}(),pz="silent";function Zie(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:qie}}function qie(){Zo(this.event)}var jie=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ia),kh=function(){function e(t,r){this.x=t,this.y=r}return e}(),Kie=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],RS=new at(0,0,0,0),gz=function(e){j(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new kh(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new jie,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new kie(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(R(Kie,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=mz(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 kh(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new kh(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Zie(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new kh(r,n);if(fR(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new at(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var h=a[f];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(RS.copy(h.getBoundingRect()),h.transform&&RS.applyTransform(h.transform),RS.intersect(c)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Jie(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?pz:!0}return!1}function fR(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Jie(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==pz)){t.target=o;break}}}function mz(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var yz=32,Oh=7;function Qie(e){for(var t=0;e>=yz;)t|=e&1,e>>=1;return e+t}function hR(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function eae(e,t,r){for(r--;t>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function ES(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function kS(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function tae(e,t){var r=Oh,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;c(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]=Oh||A>=Oh);if(M)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),d===1){for(y=0;y=0;y--)e[b+y]=e[T+y];e[x]=o[w];return}for(var A=r;;){var M=0,D=0,L=!1;do if(t(o[w],e[S])<0){if(e[x--]=e[S--],M++,D=0,--d===0){L=!0;break}}else if(e[x--]=o[w--],D++,M=0,--m===1){L=!0;break}while((M|D)=0;y--)e[b+y]=e[T+y];if(d===0){L=!0;break}}if(e[x--]=o[w--],--m===1){L=!0;break}if(D=m-ES(e[S],o,0,m,m-1,t),D!==0){for(x-=D,w-=D,m-=D,b=x+1,T=w+1,y=0;y=Oh||D>=Oh);if(L)break;A<0&&(A=0),A+=2}if(r=A,r<1&&(r=1),m===1){for(x-=d,S-=d,b=x+1,T=S+1,y=d-1;y>=0;y--)e[b+y]=e[T+y];e[x]=o[w]}else{if(m===0)throw new Error;for(T=x-(m-1),y=0;ys&&(l=s),vR(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var bi=1,gv=2,Yc=4,dR=!1;function OS(){dR||(dR=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function pR(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var rae=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=pR}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(OS(),c.z=0),isNaN(c.z2)&&(OS(),c.z2=0),isNaN(c.zlevel)&&(OS(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Gy;Gy=gt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Bv={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Bv.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Bv.bounceIn(e*2)*.5:Bv.bounceOut(e*2-1)*.5+.5}},Ag=Math.pow,js=Math.sqrt,$y=1e-8,_z=1e-4,gR=js(3),Mg=1/3,Ya=Qu(),qi=Qu(),gf=Qu();function $s(e){return e>-$y&&e<$y}function Sz(e){return e>$y||e<-$y}function Zr(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function mR(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Hy(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,v=0;if($s(c)&&$s(f))if($s(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=f*f-4*c*h;if($s(g)){var m=f/c,d=-s/o+m,y=-m/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(g>0){var S=js(g),w=c*s+1.5*o*(-f+S),x=c*s+1.5*o*(-f-S);w<0?w=-Ag(-w,Mg):w=Ag(w,Mg),x<0?x=-Ag(-x,Mg):x=Ag(x,Mg);var d=(-s-(w+x))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var T=(2*c*s-3*o*f)/(2*js(c*c*c)),b=Math.acos(T)/3,A=js(c),M=Math.cos(b),d=(-s-2*A*M)/(3*o),y=(-s+A*(M+gR*Math.sin(b)))/(3*o),D=(-s+A*(M-gR*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),D>=0&&D<=1&&(a[v++]=D)}}return v}function wz(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if($s(o)){if(Sz(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if($s(c))i[0]=-a/(2*o);else if(c>0){var f=js(c),u=(-a+f)/(2*o),h=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function nl(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function xz(e,t,r,n,i,a,o,s,l,u,c){var f,h=.005,v=1/0,d,g,m,y;Ya[0]=l,Ya[1]=u;for(var S=0;S<1;S+=.05)qi[0]=Zr(e,r,i,o,S),qi[1]=Zr(t,n,a,s,S),m=Mu(Ya,qi),m=0&&m=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if($s(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=js(c),u=(-o+f)/(2*a),h=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function bz(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function gd(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function Cz(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;Ya[0]=o,Ya[1]=s;for(var h=0;h<1;h+=.05){qi[0]=an(e,r,i,h),qi[1]=an(t,n,a,h);var v=Mu(Ya,qi);v=0&&v=1?1:Hy(0,n,a,1,l,s)&&Zr(0,i,o,1,s[0])}}}var sae=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Er,this.ondestroy=t.ondestroy||Er,this.onrestart=t.onrestart||Er,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=$e(t)?t:Bv[t]||BA(t)},e}(),Tz=function(){function e(t){this.value=t}return e}(),lae=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Tz(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),tp=function(){function e(t){this._list=new lae,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Tz(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),yR={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 wa(e){return e=Math.round(e),e<0?0:e>255?255:e}function uae(e){return e=Math.round(e),e<0?0:e>360?360:e}function md(e){return e<0?0:e>1?1:e}function NS(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?wa(parseFloat(t)/100*255):wa(parseInt(t,10))}function Du(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?md(parseFloat(t)/100):md(parseFloat(t))}function FS(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Hs(e,t,r){return e+(t-e)*r}function Hi(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function jb(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Az=new tp(20),Dg=null;function Cc(e,t){Dg&&jb(Dg,t),Dg=Az.put(e,Dg||t.slice())}function Di(e,t){if(e){t=t||[];var r=Az.get(e);if(r)return jb(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in yR)return jb(t,yR[n]),Cc(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Hi(t,0,0,0,1);return}return Hi(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Cc(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Hi(t,0,0,0,1);return}return Hi(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Cc(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Hi(t,+u[0],+u[1],+u[2],1):Hi(t,0,0,0,1);c=Du(u.pop());case"rgb":if(u.length>=3)return Hi(t,NS(u[0]),NS(u[1]),NS(u[2]),u.length===3?c:Du(u[3])),Cc(e,t),t;Hi(t,0,0,0,1);return;case"hsla":if(u.length!==4){Hi(t,0,0,0,1);return}return u[3]=Du(u[3]),Kb(u,t),Cc(e,t),t;case"hsl":if(u.length!==3){Hi(t,0,0,0,1);return}return Kb(u,t),Cc(e,t),t;default:return}}Hi(t,0,0,0,1)}}function Kb(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Du(e[1]),i=Du(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Hi(t,wa(FS(o,a,r+1/3)*255),wa(FS(o,a,r)*255),wa(FS(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function cae(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;t===a?l=h-f:r===a?l=1/3+c-h:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return e[3]!=null&&v.push(e[3]),v}}function Jb(e,t){var r=Di(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Uo(r,r.length===4?"rgba":"rgb")}}function VS(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=wa(Hs(o[0],s[0],l)),r[1]=wa(Hs(o[1],s[1],l)),r[2]=wa(Hs(o[2],s[2],l)),r[3]=md(Hs(o[3],s[3],l)),r}}function fae(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Di(t[i]),s=Di(t[a]),l=n-i,u=Uo([wa(Hs(o[0],s[0],l)),wa(Hs(o[1],s[1],l)),wa(Hs(o[2],s[2],l)),md(Hs(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function zv(e,t,r,n){var i=Di(e);if(e)return i=cae(i),t!=null&&(i[0]=uae(t)),r!=null&&(i[1]=Du(r)),n!=null&&(i[2]=Du(n)),Uo(Kb(i),"rgba")}function Wy(e,t){var r=Di(e);if(r&&t!=null)return r[3]=md(t),Uo(r,"rgba")}function Uo(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Uy(e,t){var r=Di(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var _R=new tp(100);function Qb(e){if(Ee(e)){var t=_R.get(e);return t||(t=Jb(e,-.1),_R.put(e,t)),t}else if(u_(e)){var r=ce({},e);return r.colorStops=Se(e.colorStops,function(n){return{offset:n.offset,color:Jb(n.color,-.1)}}),r}return e}var Yy=Math.round;function yd(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Di(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var SR=1e-4;function Ws(e){return e-SR}function Ig(e){return Yy(e*1e3)/1e3}function eC(e){return Yy(e*1e4)/1e4}function hae(e){return"matrix("+Ig(e[0])+","+Ig(e[1])+","+Ig(e[2])+","+Ig(e[3])+","+eC(e[4])+","+eC(e[5])+")"}var vae={left:"start",right:"end",center:"middle",middle:"middle"};function dae(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function pae(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function gae(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Mz(e){return e&&!!e.image}function mae(e){return e&&!!e.svgElement}function zA(e){return Mz(e)||mae(e)}function Dz(e){return e.type==="linear"}function Iz(e){return e.type==="radial"}function Lz(e){return e&&(e.type==="linear"||e.type==="radial")}function h_(e){return"url(#"+e+")"}function Pz(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Rz(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Qm,i=et(e.scaleX,1),a=et(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Yy(o*Qm)+"deg, "+Yy(s*Qm)+"deg)"),l.join(" ")}var yae=function(){return gt.hasGlobalWindow&&$e(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),tC=Array.prototype.slice;function Po(e,t,r){return(t-e)*r+e}function BS(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=xR,l=r;if(Ln(r)){var u=xae(r);s=u,(u===1&&!Pt(r[0])||u===2&&!Pt(r[0][0]))&&(o=!0)}else if(Pt(r)&&!pd(r))s=Pg;else if(Ee(r))if(!isNaN(+r))s=Pg;else{var c=Di(r);c&&(l=c,s=mv)}else if(u_(r)){var f=ce({},l);f.colorStops=Se(r.colorStops,function(v){return{offset:v.offset,color:Di(v.color)}}),Dz(r)?s=rC:Iz(r)&&(s=nC),l=f}a===0?this.valType=s:(s!==this.valType||s===xR)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=$e(n)?n:Bv[n]||BA(n)),i.push(h),h},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,m){return g.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Rg(i),u=bR(i),c=0;c=0&&!(o[c].percent<=r);c--);c=h(c,s-2)}else{for(c=f;cr);c++);c=h(c-1,s-2)}d=o[c+1],v=o[c]}if(v&&d){this._lastFr=c,this._lastFrP=r;var m=d.percent-v.percent,y=m===0?1:h((r-v.percent)/m,1);d.easingFunc&&(y=d.easingFunc(y));var S=n?this._additiveValue:u?Nh:t[l];if((Rg(a)||u)&&!S&&(S=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(Rg(a))a===iy?BS(S,v[i],d[i],y):_ae(S,v[i],d[i],y);else if(bR(a)){var w=v[i],x=d[i],T=a===rC;t[l]={type:T?"linear":"radial",x:Po(w.x,x.x,y),y:Po(w.y,x.y,y),colorStops:Se(w.colorStops,function(A,M){var D=x.colorStops[M];return{offset:Po(A.offset,D.offset,y),color:ny(BS([],A.color,D.color,y))}}),global:x.global},T?(t[l].x2=Po(w.x2,x.x2,y),t[l].y2=Po(w.y2,x.y2,y)):t[l].r=Po(w.r,x.r,y)}else if(u)BS(S,v[i],d[i],y),n||(t[l]=ny(S));else{var b=Po(v[i],d[i],y);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Pg?t[n]=t[n]+i:r===mv?(Di(t[n],Nh),Lg(Nh,Nh,i,1),t[n]=ny(Nh)):r===iy?Lg(t[n],t[n],i,1):r===Ez&&wR(t[n],t[n],i,1)},e}(),GA=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){RA("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,yt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Gv(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Gv(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function tf(){return new Date().getTime()}var Cae=function(e){j(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=tf()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Gy(n),!r._paused&&r.update())}Gy(n)},t.prototype.start=function(){this._running||(this._time=tf(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=tf(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=tf()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new GA(r,n.loop);return this.addAnimator(i),i},t}(ia),Tae=300,zS=gt.domSupported,GS=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Se(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),CR={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},TR=!1;function iC(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Aae(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function $S(e){e&&(e.zrByTouch=!0)}function Mae(e,t){return Wi(e.dom,new Dae(e,t),!0)}function kz(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Dae=function(){function e(t,r){this.stopPropagation=Er,this.stopImmediatePropagation=Er,this.preventDefault=Er,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),da={mousedown:function(e){e=Wi(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Wi(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Wi(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Wi(this.dom,e);var t=e.toElement||e.relatedTarget;kz(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){TR=!0,e=Wi(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){TR||(e=Wi(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Wi(this.dom,e),$S(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),da.mousemove.call(this,e),da.mousedown.call(this,e)},touchmove:function(e){e=Wi(this.dom,e),$S(e),this.handler.processGesture(e,"change"),da.mousemove.call(this,e)},touchend:function(e){e=Wi(this.dom,e),$S(e),this.handler.processGesture(e,"end"),da.mouseup.call(this,e),+new Date-+this.__lastTouchMomentDR||e<-DR}var El=[],Tc=[],WS=Mi(),US=Math.abs,zo=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Rl(this.rotation)||Rl(this.x)||Rl(this.y)||Rl(this.scaleX-1)||Rl(this.scaleY-1)||Rl(this.skewX)||Rl(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(MR(n),this.invTransform=null);return}n=n||Mi(),r?this.getLocalTransform(n):MR(n),t&&(r?Wo(n,t,n):FA(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(El);var n=El[0]<0?-1:1,i=El[1]<0?-1:1,a=((El[0]-n)*r+n)/El[0]||0,o=((El[1]-i)*r+i)/El[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Mi(),jf(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Mi(),Wo(Tc,t.invTransform,r),r=Tc);var n=this.originX,i=this.originY;(n||i)&&(WS[4]=n,WS[5]=i,Wo(Tc,r,WS),Tc[4]-=n,Tc[5]-=i,r=Tc),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&mn(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&mn(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&US(t[0]-1)>1e-10&&US(t[3]-1)>1e-10?Math.sqrt(US(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Nz(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,h=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,g=i+l;r[4]=-d*a-h*g*o,r[5]=-g*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=h*o,u&&ec(r,r,u),r[4]+=n+c,r[5]+=i+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),oo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Nz(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function Zy(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Ca(n[0],r.width),u+=Ca(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var YS="__zr_normal__",XS=oo.concat(["ignore"]),Eae=io(oo,function(e,t){return e[t]=!0,e},{ignore:!1}),Ac={},kae=new at(0,0,0,0),d_=function(){function e(t){this.id=cz(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=kae;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ac,n,c):Zy(Ac,n,c),a.x=Ac.x,a.y=Ac.y,o=Ac.align,s=Ac.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var h=void 0,v=void 0;f==="center"?(h=c.width*.5,v=c.height*.5):(h=Ca(f[0],c.width),v=Ca(f[1],c.height)),u=!0,a.originX=-a.x+h+(i?0:c.x),a.originY=-a.y+v+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,S=void 0,w=void 0;g&&this.canBeInsideText()?(y=n.insideFill,S=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(y),w=!0)):(y=n.outsideFill,S=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(y),w=!0)),y=y||"#000",(y!==m.fill||S!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=S,m.autoStroke=w,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=bi,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?lC:sC},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Di(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,Uo(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},ce(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Ye(t))for(var n=t,i=yt(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(YS,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===YS,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ht(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){RA("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(t,r,n,c),h&&h.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bi),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,d);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,r,h),m&&m.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bi)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=ht(i,t),o=ht(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(d,g){r.during(g)});for(var h=0;h0||i.force&&!o.length){var M=void 0,D=void 0,L=void 0;if(s){D={},h&&(M={});for(var x=0;x=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ht(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ht(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function Ie(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Ee(e)?Yae(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Ar(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Bz),e=(+e).toFixed(t),r?e:+e}function Qi(e){return e.sort(function(t,r){return t-r}),e}function qa(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Xae(e)}function Xae(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function zz(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Zae(e,t){var r=io(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Se(e,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=Se(i,function(v){return Math.floor(v)}),s=io(o,function(v,d){return v+d},0),l=Se(i,function(v,d){return v-o[d]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Se(o,function(v){return v/n})}function qae(e,t){var r=Math.max(qa(e),qa(t)),n=e+t;return r>Bz?n:Ar(n,r)}var ER=9007199254740991;function Gz(e){var t=Math.PI*2;return(e%t+t)%t}function _d(e){return e>-RR&&e=10&&t++,t}function $z(e,t){var r=$A(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function jS(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function kR(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n=0||a&&ht(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var woe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],xoe=Xu(woe),boe=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return xoe(this,t,r)},e}(),fC=new tp(50);function Coe(e){if(typeof e=="string"){var t=fC.get(e);return t&&t.image}else return e}function YA(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=fC.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!g_(t)&&a.pending.push(o)):(t=rl.loadImage(e,VR,VR),t.__zrImageSrc=e,fC.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function VR(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function Ie(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Ee(e)?Uae(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Ar(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Bz),e=(+e).toFixed(t),r?e:+e}function Qi(e){return e.sort(function(t,r){return t-r}),e}function Za(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Yae(e)}function Yae(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function zz(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Xae(e,t){var r=io(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Se(e,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=Se(i,function(v){return Math.floor(v)}),s=io(o,function(v,d){return v+d},0),l=Se(i,function(v,d){return v-o[d]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Se(o,function(v){return v/n})}function Zae(e,t){var r=Math.max(Za(e),Za(t)),n=e+t;return r>Bz?n:Ar(n,r)}var ER=9007199254740991;function Gz(e){var t=Math.PI*2;return(e%t+t)%t}function _d(e){return e>-RR&&e=10&&t++,t}function $z(e,t){var r=$A(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function jS(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function kR(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n=0||a&&ht(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Soe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],woe=Xu(Soe),xoe=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return woe(this,t,r)},e}(),fC=new tp(50);function boe(e){if(typeof e=="string"){var t=fC.get(e);return t&&t.image}else return e}function YA(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=fC.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!g_(t)&&a.pending.push(o)):(t=rl.loadImage(e,VR,VR),t.__zrImageSrc=e,fC.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function VR(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Ii(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function tG(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Ii(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?Aoe(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Ii(e,n)}return e===""&&(e=t.placeholder),e}function Aoe(e,t,r,n){for(var i=0,a=0,o=e.length;av&&u){var d=Math.floor(v/s);f=f.slice(0,d)}if(e&&a&&c!=null)for(var g=eG(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;ms&&JS(r,e.substring(s,u),t,o),JS(r,l[2],t,o,l[1]),s=KS.lastIndex}si){T>0?(S.tokens=S.tokens.slice(0,T),m(S,x,w),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break e}var E=A.width,F=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")b.percentWidth=E,c.push(b),b.contentWidth=Ii(b.text,L);else{if(F){var O=A.backgroundColor,N=O&&O.image;N&&(N=Coe(N),g_(N)&&(b.width=Math.max(b.width,N.width*P/N.height)))}var V=d&&n!=null?n-x:null;V!=null&&V0&&d+n.accumWidth>n.width&&(c=t.split(` +`)}function eG(e,t,r,n){n=n||{};var i=ce({},n);i.font=t,r=et(r,"..."),i.maxIterations=et(n.maxIterations,2);var a=i.minChar=et(n.minChar,0);i.cnCharWidth=Ii("国",t);var o=i.ascCharWidth=Ii("a",t);i.placeholder=et(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l=o;l++)s-=o;var u=Ii(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function tG(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Ii(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?Toe(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Ii(e,n)}return e===""&&(e=t.placeholder),e}function Toe(e,t,r,n){for(var i=0,a=0,o=e.length;av&&u){var d=Math.floor(v/s);f=f.slice(0,d)}if(e&&a&&c!=null)for(var g=eG(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;ms&&JS(r,e.substring(s,u),t,o),JS(r,l[2],t,o,l[1]),s=KS.lastIndex}si){T>0?(S.tokens=S.tokens.slice(0,T),m(S,x,w),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break e}var E=A.width,F=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")b.percentWidth=E,c.push(b),b.contentWidth=Ii(b.text,L);else{if(F){var O=A.backgroundColor,N=O&&O.image;N&&(N=boe(N),g_(N)&&(b.width=Math.max(b.width,N.width*P/N.height)))}var V=d&&n!=null?n-x:null;V!=null&&V0&&d+n.accumWidth>n.width&&(c=t.split(` `),u=!0),n.accumWidth=d}else{var g=rG(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,f=g.linesWidths,c=g.lines}}else c=t.split(` -`);for(var m=0;m=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Roe=io(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Eoe(e){return Poe(e)?!!Roe[e]:!0}function rG(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+v>r){c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}c+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var hC="__zr_style_"+Math.round(Math.random()*10),Iu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},m_={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Iu[hC]=!0;var zR=["z","z2","invisible"],koe=["invisible"],na=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=yt(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Eg[0]=rw(i)*r+e,Eg[1]=tw(i)*n+t,kg[0]=rw(a)*r+e,kg[1]=tw(a)*n+t,u(s,Eg,kg),c(l,Eg,kg),i=i%Ol,i<0&&(i=i+Ol),a=a%Ol,a<0&&(a=a+Ol),i>a&&!o?a+=Ol:ii&&(Og[0]=rw(v)*r+e,Og[1]=tw(v)*n+t,u(s,Og,s),c(l,Og,l))}var tr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Nl=[],Fl=[],Fa=[],ys=[],Va=[],Ba=[],nw=Math.min,iw=Math.max,Vl=Math.cos,Bl=Math.sin,Ao=Math.abs,vC=Math.PI,Ds=vC*2,aw=typeof Float32Array<"u",Fh=[];function ow(e){var t=Math.round(e/vC*1e8)/1e8;return t%2*vC}function XA(e,t){var r=ow(e[0]);r<0&&(r+=Ds);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Ds?i=r+Ds:t&&r-i>=Ds?i=r-Ds:!t&&r>i?i=r+(Ds-ow(r-i)):t&&r0&&(this._ux=Ao(n/Xy/t)||0,this._uy=Ao(n/Xy/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(tr.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Ao(t-this._xi),i=Ao(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(tr.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(tr.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(tr.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Fh[0]=i,Fh[1]=a,XA(Fh,o),i=Fh[0],a=Fh[1];var s=a-i;return this.addData(tr.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Vl(a)*n+t,this._yi=Bl(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(tr.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(tr.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&aw&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Fa[0]=Fa[1]=Va[0]=Va[1]=Number.MAX_VALUE,ys[0]=ys[1]=Ba[0]=Ba[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Ao(w)>i||h===r-1)&&(g=Math.sqrt(S*S+w*w),a=m,o=y);break}case tr.C:{var x=t[h++],T=t[h++],m=t[h++],y=t[h++],b=t[h++],A=t[h++];g=iae(a,o,x,T,m,y,b,A,10),a=b,o=A;break}case tr.Q:{var x=t[h++],T=t[h++],m=t[h++],y=t[h++];g=oae(a,o,x,T,m,y,10),a=m,o=y;break}case tr.A:var M=t[h++],D=t[h++],L=t[h++],P=t[h++],E=t[h++],F=t[h++],O=F+E;h+=1,d&&(s=Vl(E)*L+M,l=Bl(E)*P+D),g=iw(L,P)*nw(Ds,Math.abs(F)),a=Vl(O)*L+M,o=Bl(O)*P+D;break;case tr.R:{s=a=t[h++],l=o=t[h++];var N=t[h++],V=t[h++];g=N*2+V*2;break}case tr.Z:{var S=s-a,w=l-o;g=Math.sqrt(S*S+w*w),a=s,o=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,h,v=r<1,d,g,m=0,y=0,S,w=0,x,T;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,S=r*g,!S)))e:for(var b=0;b0&&(t.lineTo(x,T),w=0),A){case tr.M:s=u=n[b++],l=c=n[b++],t.moveTo(u,c);break;case tr.L:{f=n[b++],h=n[b++];var D=Ao(f-u),L=Ao(h-c);if(D>i||L>a){if(v){var P=d[y++];if(m+P>S){var E=(S-m)/P;t.lineTo(u*(1-E)+f*E,c*(1-E)+h*E);break e}m+=P}t.lineTo(f,h),u=f,c=h,w=0}else{var F=D*D+L*L;F>w&&(x=f,T=h,w=F)}break}case tr.C:{var O=n[b++],N=n[b++],V=n[b++],Y=n[b++],G=n[b++],Z=n[b++];if(v){var P=d[y++];if(m+P>S){var E=(S-m)/P;nl(u,O,V,G,E,Nl),nl(c,N,Y,Z,E,Fl),t.bezierCurveTo(Nl[1],Fl[1],Nl[2],Fl[2],Nl[3],Fl[3]);break e}m+=P}t.bezierCurveTo(O,N,V,Y,G,Z),u=G,c=Z;break}case tr.Q:{var O=n[b++],N=n[b++],V=n[b++],Y=n[b++];if(v){var P=d[y++];if(m+P>S){var E=(S-m)/P;gd(u,O,V,E,Nl),gd(c,N,Y,E,Fl),t.quadraticCurveTo(Nl[1],Fl[1],Nl[2],Fl[2]);break e}m+=P}t.quadraticCurveTo(O,N,V,Y),u=V,c=Y;break}case tr.A:var J=n[b++],re=n[b++],pe=n[b++],Me=n[b++],Le=n[b++],Fe=n[b++],Ge=n[b++],ie=!n[b++],le=pe>Me?pe:Me,de=Ao(pe-Me)>.001,me=Le+Fe,be=!1;if(v){var P=d[y++];m+P>S&&(me=Le+Fe*(S-m)/P,be=!0),m+=P}if(de&&t.ellipse?t.ellipse(J,re,pe,Me,Ge,Le,me,ie):t.arc(J,re,le,Le,me,ie),be)break e;M&&(s=Vl(Le)*pe+J,l=Bl(Le)*Me+re),u=Vl(me)*pe+J,c=Bl(me)*Me+re;break;case tr.R:s=u=n[b],l=c=n[b+1],f=n[b++],h=n[b++];var Re=n[b++],H=n[b++];if(v){var P=d[y++];if(m+P>S){var W=S-m;t.moveTo(f,h),t.lineTo(f+nw(W,Re),h),W-=Re,W>0&&t.lineTo(f+Re,h+nw(W,H)),W-=H,W>0&&t.lineTo(f+iw(Re-W,0),h+H),W-=Re,W>0&&t.lineTo(f,h+iw(H-W,0));break e}m+=P}t.rect(f,h,Re,H);break;case tr.Z:if(v){var P=d[y++];if(m+P>S){var E=(S-m)/P;t.lineTo(u*(1-E)+s*E,c*(1-E)+l*E);break e}m+=P}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=tr,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Rs(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+f&&c>n+f&&c>a+f&&c>s+f||ce+f&&u>r+f&&u>i+f&&u>o+f||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=Vh);var h=Math.atan2(l,s);return h<0&&(h+=Vh),h>=n&&h<=i||h+Vh>=n&&h+Vh<=i}function Ro(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var _s=lo.CMD,zl=Math.PI*2,Goe=1e-4;function $oe(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Hoe(),v=Zr(t,n,a,s,Yi[0]),h>1&&(d=Zr(t,n,a,s,Yi[1]))),h===2?mt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=an(t,n,a,u),h=0;hr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Gn[0]=-l,Gn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=zl-1e-4){n=0,i=zl;var c=a?1:-1;return o>=Gn[0]+e&&o<=Gn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=zl,i+=zl);for(var h=0,v=0;v<2;v++){var d=Gn[v];if(d+e>o){var g=Math.atan2(s,d),c=a?1:-1;g<0&&(g=zl+g),(g>=n&&g<=i||g+zl>=n&&g+zl<=i)&&(g>Math.PI/2&&g1&&(r||(s+=Ro(l,u,c,f,n,i))),m&&(l=a[d],u=a[d+1],c=l,f=u),g){case _s.M:c=a[d++],f=a[d++],l=c,u=f;break;case _s.L:if(r){if(Rs(l,u,a[d],a[d+1],t,n,i))return!0}else s+=Ro(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case _s.C:if(r){if(Boe(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=Woe(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 _s.Q:if(r){if(nG(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=Uoe(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case _s.A:var y=a[d++],S=a[d++],w=a[d++],x=a[d++],T=a[d++],b=a[d++];d+=1;var A=!!(1-a[d++]);h=Math.cos(T)*w+y,v=Math.sin(T)*x+S,m?(c=h,f=v):s+=Ro(l,u,h,v,n,i);var M=(n-y)*x/w+y;if(r){if(zoe(y,S,x,T,T+b,A,t,M,i))return!0}else s+=Yoe(y,S,x,T,T+b,A,M,i);l=Math.cos(T+b)*w+y,u=Math.sin(T+b)*x+S;break;case _s.R:c=l=a[d++],f=u=a[d++];var D=a[d++],L=a[d++];if(h=c+D,v=f+L,r){if(Rs(c,f,h,f,t,n,i)||Rs(h,f,h,v,t,n,i)||Rs(h,v,c,v,t,n,i)||Rs(c,v,c,f,t,n,i))return!0}else s+=Ro(h,f,h,v,n,i),s+=Ro(c,v,c,f,n,i);break;case _s.Z:if(r){if(Rs(l,u,c,f,t,n,i))return!0}else s+=Ro(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!$oe(u,f)&&(s+=Ro(l,u,c,f,n,i)||0),s!==0}function Xoe(e,t,r){return iG(e,0,!1,t,r)}function Zoe(e,t,r,n){return iG(e,t,!0,r,n)}var qy=We({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Iu),qoe={style:We({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},m_.style)},sw=oo.concat(["invisible","culling","z","z2","zlevel","parent"]),pt=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?sC:n>.2?Eae:lC}else if(r)return lC}return sC},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ee(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Uy(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Yc)&&(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 c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Zoe(s,l/u,r,n)))return!0}if(this.hasFill())return Xoe(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Yc,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:ce(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Yc)},t.prototype.createStyle=function(r){return c_(qy,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=ce({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=ce({},i.shape),ce(u,n.shape)):(u=ce({},a?this.shape:i.shape),ce(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=ce({},this.shape);for(var c={},f=yt(u),h=0;h0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return c_(joe,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=rp(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(na);Pf.prototype.type="tspan";var Koe=We({x:0,y:0},Iu),Joe={style:We({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},m_.style)};function Qoe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ln=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return c_(Koe,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Qoe(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Joe},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new at(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(na);ln.prototype.type="image";function ese(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var rf=Math.round;function aG(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(rf(n*2)===rf(i*2)&&(e.x1=e.x2=pu(n,s,!0)),rf(a*2)===rf(o*2)&&(e.y1=e.y2=pu(a,s,!0))),e}}function oG(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=pu(n,s,!0),e.y=pu(i,s,!0),e.width=Math.max(pu(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(pu(i+o,s,!1)-e.y,o===0?0:1)),e}}function pu(e,t,r){if(!t)return e;var n=rf(e*2);return(n+rf(t))%2===0?n/2:(n+(r?1:-1))/2}var tse=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),rse={},Ct=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new tse},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=oG(rse,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?ese(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(pt);Ct.prototype.type="rect";var UR={fill:"#000"},YR=2,nse={style:We({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},m_.style)},It=function(e){j(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=UR,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,E=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),F=o.calculatedLineHeight,O=0;O=0&&(O=b[F],O.align==="right");)this._placeToken(O,r,M,y,E,"right",w),D-=O.width,E-=O.width,F--;for(P+=(a-(P-m)-(S-E)-D)/2;L<=F;)O=b[L],this._placeToken(O,r,M,y,P+O.width/2,"center",w),P+=O.width,L++;y+=M}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var h=!r.isLineHolder&&lw(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var v=!!u.backgroundColor,d=r.textPadding;d&&(o=JR(o,s,d),f-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(Pf),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,S=!1,w=0,x=KR("fill"in u?u.fill:"fill"in n?n.fill:(S=!0,y.fill)),T=jR("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||S)?(w=YR,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=f,b&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||tl,m.opacity=eo(u.opacity,n.opacity,1),ZR(m,u),T&&(m.lineWidth=eo(u.lineWidth,n.lineWidth,w),m.lineDash=et(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=T),x&&(m.fill=x);var A=r.contentWidth,M=r.contentHeight;g.setBoundingRect(new at(yv(m.x,A,m.textAlign),Xc(m.y,M,m.textBaseline),A,M))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,h=l&&!f,v=r.borderRadius,d=this,g,m;if(h||r.lineHeight||u&&c){g=this._getOrCreateChild(Ct),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,g.dirtyShape()}if(h){var S=g.style;S.fill=l||null,S.fillOpacity=et(r.fillOpacity,1)}else if(f){m=this._getOrCreateChild(ln),m.onload=function(){d.dirtyStyle()};var w=m.style;w.image=l.image,w.x=i,w.y=a,w.width=o,w.height=s}if(u&&c){var S=g.style;S.lineWidth=u,S.stroke=c,S.strokeOpacity=et(r.strokeOpacity,1),S.lineDash=r.borderDash,S.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(S.strokeFirst=!0,S.lineWidth*=2)}var x=(g||m).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=eo(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return lG(r)&&(n=[r.fontStyle,r.fontWeight,sG(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&ma(n)||r.textFont||r.font},t}(na),ise={left:!0,right:1,center:1},ase={top:1,bottom:1,middle:1},XR=["fontStyle","fontWeight","fontSize","fontFamily"];function sG(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?IA+"px":e+"px"}function ZR(e,t){for(var r=0;r=0,a=!1;if(e instanceof pt){var o=uG(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Mc(s)||Mc(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=ce({},n),u=ce({},u),u.fill=s):!Mc(u.fill)&&Mc(s)?(a=!0,n=ce({},n),u=ce({},u),u.fill=Qb(s)):!Mc(u.stroke)&&Mc(l)&&(a||(n=ce({},n),u=ce({},u)),u.stroke=Qb(l)),n.style=u}}if(n&&n.z2==null){a||(n=ce({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Jf)}return n}function hse(e,t,r){if(r&&r.z2==null){r=ce({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??sse)}return r}function vse(e,t,r){var n=ht(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:cse(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=ce({},r),o=ce({opacity:n?i:a.opacity*.1},o),r.style=o),r}function uw(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return fse(this,e,t,r);if(e==="blur")return vse(this,e,r);if(e==="select")return hse(this,e,r)}return r}function Zu(e){e.stateProxy=uw;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=uw),r&&(r.stateProxy=uw)}function nE(e,t){!gG(e,t)&&!e.__highByOuter&&ns(e,cG)}function iE(e,t){!gG(e,t)&&!e.__highByOuter&&ns(e,fG)}function jo(e,t){e.__highByOuter|=1<<(t||0),ns(e,cG)}function Ko(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ns(e,fG)}function vG(e){ns(e,jA)}function KA(e){ns(e,hG)}function dG(e){ns(e,lse)}function pG(e){ns(e,use)}function gG(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function mG(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=ZA(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){hG(u)}),s&&r.push(a)),o.isBlured=!1}),R(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function pC(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Pu(e,t,r){gu(e,!0),ns(e,Zu),mC(e,t,r)}function _se(e){gu(e,!1)}function Cr(e,t,r,n){n?_se(e):Pu(e,t,r)}function mC(e,t,r){var n=Ke(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var oE=["emphasis","blur","select"],Sse={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function yn(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=cw(d),s*=cw(d));var g=(i===a?-1:1)*cw((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,m=g*o*v/s,y=g*-s*h/o,S=(e+r)/2+Fg(f)*m-Ng(f)*y,w=(t+n)/2+Ng(f)*m+Fg(f)*y,x=cE([1,0],[(h-m)/o,(v-y)/s]),T=[(h-m)/o,(v-y)/s],b=[(-1*h-m)/o,(-1*v-y)/s],A=cE(T,b);if(_C(T,b)<=-1&&(A=Bh),_C(T,b)>=1&&(A=0),A<0){var M=Math.round(A/Bh*1e6)/1e6;A=Bh*2+M%2*Bh}c.addData(u,S,w,o,s,x,A,f,a)}var Ase=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Mse=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Dse(e){var t=new lo;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=lo.CMD,l=e.match(Ase);if(!l)return t;for(var u=0;uO*O+N*N&&(M=L,D=P),{cx:M,cy:D,x0:-c,y0:-f,x1:M*(i/T-1),y1:D*(i/T-1)}}function Ose(e){var t;if(ge(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Nse(e,t){var r,n=_v(t.r,0),i=_v(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,h=!!t.clockwise,v=hE(u-l),d=v>fw&&v%fw;if(d>va&&(v=d),!(n>va))e.moveTo(c,f);else if(v>fw-va)e.moveTo(c+n*Ic(l),f+n*Gl(l)),e.arc(c,f,n,l,u,!h),i>va&&(e.moveTo(c+i*Ic(u),f+i*Gl(u)),e.arc(c,f,i,u,l,h));else{var g=void 0,m=void 0,y=void 0,S=void 0,w=void 0,x=void 0,T=void 0,b=void 0,A=void 0,M=void 0,D=void 0,L=void 0,P=void 0,E=void 0,F=void 0,O=void 0,N=n*Ic(l),V=n*Gl(l),Y=i*Ic(u),G=i*Gl(u),Z=v>va;if(Z){var J=t.cornerRadius;J&&(r=Ose(J),g=r[0],m=r[1],y=r[2],S=r[3]);var re=hE(n-i)/2;if(w=za(re,y),x=za(re,S),T=za(re,g),b=za(re,m),D=A=_v(w,x),L=M=_v(T,b),(A>va||M>va)&&(P=n*Ic(u),E=n*Gl(u),F=i*Ic(l),O=i*Gl(l),vva){var de=za(y,D),me=za(S,D),be=Vg(F,O,N,V,n,de,h),Re=Vg(P,E,Y,G,n,me,h);e.moveTo(c+be.cx+be.x0,f+be.cy+be.y0),D0&&e.arc(c+be.cx,f+be.cy,de,bn(be.y0,be.x0),bn(be.y1,be.x1),!h),e.arc(c,f,n,bn(be.cy+be.y1,be.cx+be.x1),bn(Re.cy+Re.y1,Re.cx+Re.x1),!h),me>0&&e.arc(c+Re.cx,f+Re.cy,me,bn(Re.y1,Re.x1),bn(Re.y0,Re.x0),!h))}else e.moveTo(c+N,f+V),e.arc(c,f,n,l,u,!h);if(!(i>va)||!Z)e.lineTo(c+Y,f+G);else if(L>va){var de=za(g,L),me=za(m,L),be=Vg(Y,G,P,E,i,-me,h),Re=Vg(N,V,F,O,i,-de,h);e.lineTo(c+be.cx+be.x0,f+be.cy+be.y0),L0&&e.arc(c+be.cx,f+be.cy,me,bn(be.y0,be.x0),bn(be.y1,be.x1),!h),e.arc(c,f,i,bn(be.cy+be.y1,be.cx+be.x1),bn(Re.cy+Re.y1,Re.cx+Re.x1),h),de>0&&e.arc(c+Re.cx,f+Re.cy,de,bn(Re.y1,Re.x1),bn(Re.y0,Re.x0),!h))}else e.lineTo(c+Y,f+G),e.arc(c,f,i,u,l,h)}e.closePath()}}}var Fse=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),qn=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Fse},t.prototype.buildPath=function(r,n){Nse(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(pt);qn.prototype.type="sector";var Vse=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),ap=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Vse},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(pt);ap.prototype.type="ring";function Bse(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var h=0,v=e.length;h=2){if(n){var a=Bse(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;sHl[1]){if(s=!1,a)return s;var c=Math.abs(Hl[0]-$l[1]),f=Math.abs($l[0]-Hl[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function kt(e,t,r,n,i,a){tM("update",e,t,r,n,i,a)}function vr(e,t,r,n,i,a){tM("enter",e,t,r,n,i,a)}function mf(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function pE(e){return!e.isGroup}function Qse(e){return e.shape!=null}function lp(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){pE(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Qse(o)&&(s.shape=ce({},o.shape)),s}var a=n(e);t.traverse(function(o){if(pE(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),kt(o,l,r,Ke(o).dataIndex)}}})}function PG(e,t){return Se(e,function(r){var n=r[0];n=Jy(n,t.x),n=Qy(n,t.x+t.width);var i=r[1];return i=Jy(i,t.y),i=Qy(i,t.y+t.height),[n,i]})}function ele(e,t){var r=Jy(e.x,t.x),n=Qy(e.x+e.width,t.x+t.width),i=Jy(e.y,t.y),a=Qy(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function up(e,t,r){var n=ce({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),We(i,r),new ln(n)):b_(e.replace("path://",""),n,r,"center")}function Sv(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var m=hw(v,d,c,f)/h;return!(m<0||m>1)}function hw(e,t,r,n){return e*n-r*t}function tle(e){return e<=1e-6&&e>=-1e-6}function eh(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Ee(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&R(yt(l),function(c){Oe(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ke(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:We({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function gE(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function pl(e,t){if(e)if(ge(e))for(var r=0;r=0&&s.push(l)}),s}}function gl(e,t){return it(it({},e,!0),t,!0)}const vle={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},dle={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var t0="ZH",iM="EN",yf=iM,cy={},aM={},VG=gt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||yf).toUpperCase();return e.indexOf(t0)>-1?t0:yf}():yf;function BG(e,t){e=e.toUpperCase(),aM[e]=new $t(t),cy[e]=t}function ple(e){if(Ee(e)){var t=cy[e.toUpperCase()]||{};return e===t0||e===iM?Ze(t):it(Ze(t),Ze(cy[yf]),!1)}else return it(Ze(e),Ze(cy[yf]),!1)}function xC(e){return aM[e]}function gle(){return aM[yf]}BG(iM,vle);BG(t0,dle);var oM=1e3,sM=oM*60,Xv=sM*60,Ji=Xv*24,wE=Ji*365,wv={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}"},Gg="{yyyy}-{MM}-{dd}",xE={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gg,hour:Gg+" "+wv.hour,minute:Gg+" "+wv.minute,second:Gg+" "+wv.second,millisecond:wv.none},pw=["year","month","day","hour","minute","second","millisecond"],zG=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ss(e,t){return e+="","0000".substr(0,t-e.length)+e}function _f(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function mle(e){return e===_f(e)}function yle(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function A_(e,t,r,n){var i=so(e),a=i[lM(r)](),o=i[Sf(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[M_(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Cd(r)](),f=(c-1)%12+1,h=i[D_(r)](),v=i[I_(r)](),d=i[L_(r)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=n instanceof $t?n:xC(n||VG)||gle(),S=y.getModel("time"),w=S.get("month"),x=S.get("monthAbbr"),T=S.get("dayOfWeek"),b=S.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ss(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,w[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Ss(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ss(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,T[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ss(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ss(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ss(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ss(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ss(d,3)).replace(/{S}/g,d+"")}function _le(e,t,r,n,i){var a=null;if(Ee(r))a=r;else if($e(r))a=r(e.value,t,{level:e.level});else{var o=ce({},wv);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ge(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return A_(new Date(e.value),a,i,n)}function GG(e,t){var r=so(e),n=r[Sf(t)]()+1,i=r[M_(t)](),a=r[Cd(t)](),o=r[D_(t)](),s=r[I_(t)](),l=r[L_(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function bE(e,t,r){var n=Pt(e)?so(e):e;switch(t=t||GG(e,r),t){case"year":return n[lM(r)]();case"half-year":return n[Sf(r)]()>=6?1:0;case"quarter":return Math.floor((n[Sf(r)]()+1)/4);case"month":return n[Sf(r)]();case"day":return n[M_(r)]();case"half-day":return n[Cd(r)]()/24;case"hour":return n[Cd(r)]();case"minute":return n[D_(r)]();case"second":return n[I_(r)]();case"millisecond":return n[L_(r)]()}}function lM(e){return e?"getUTCFullYear":"getFullYear"}function Sf(e){return e?"getUTCMonth":"getMonth"}function M_(e){return e?"getUTCDate":"getDate"}function Cd(e){return e?"getUTCHours":"getHours"}function D_(e){return e?"getUTCMinutes":"getMinutes"}function I_(e){return e?"getUTCSeconds":"getSeconds"}function L_(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Sle(e){return e?"setUTCFullYear":"setFullYear"}function $G(e){return e?"setUTCMonth":"setMonth"}function HG(e){return e?"setUTCDate":"setDate"}function WG(e){return e?"setUTCHours":"setHours"}function UG(e){return e?"setUTCMinutes":"setMinutes"}function YG(e){return e?"setUTCSeconds":"setSeconds"}function XG(e){return e?"setUTCMilliseconds":"setMilliseconds"}function ZG(e){if(!Hz(e))return Ee(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function qG(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var nh=OA;function bC(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&ma(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?so(e):e;if(isNaN(+l)){if(s)return"-"}else return A_(l,n,r)}if(t==="ordinal")return Gb(e)?i(e):Pt(e)&&a(e)?e+"":"-";var u=qo(e);return a(u)?ZG(u):Gb(e)?i(e):typeof e=="boolean"?e+"":"-"}var CE=["a","b","c","d","e","f","g"],gw=function(e,t){return"{"+e+(t??"")+"}"};function jG(e,t,r){ge(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function qu(e,t){return t=t||"transparent",Ee(e)?e:Ye(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function r0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var fy=R,KG=["left","right","top","bottom","width","height"],mu=[["width","left","right"],["height","top","bottom"]];function uM(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(e==="horizontal"){var g=c.width+(h?-h.x+c.x:0);v=a+g,v>n||l.newline?(a=0,v=g,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(h?-h.y+c.y:0);d=o+m,d>i||l.newline?(a+=s+r,o=0,d=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}var Eu=uM;tt(uM,"vertical");tt(uM,"horizontal");function ble(e,t,r){var n=t.width,i=t.height,a=Ie(e.left,n),o=Ie(e.top,i),s=Ie(e.right,n),l=Ie(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=nh(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function Hr(e,t,r){r=nh(r||0);var n=t.width,i=t.height,a=Ie(e.left,n),o=Ie(e.top,i),s=Ie(e.right,n),l=Ie(e.bottom,i),u=Ie(e.width,n),c=Ie(e.height,i),f=r[2]+r[0],h=r[1]+r[3],v=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(c)&&(c=i-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var d=new at(a+r[3],o+r[0],u,c);return d.margin=r,d}function P_(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new at(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Hr(We({width:u.width,height:u.height},t),r,n),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(a.x=h,a.y=v):(a.x+=h,a.y+=v),a===e&&e.markRedraw(),!0}function Cle(e,t){return e[mu[t][0]]!=null||e[mu[t][1]]!=null&&e[mu[t][2]]!=null}function Td(e){var t=e.layoutMode||e.constructor.layoutMode;return Ye(t)?t:t?{type:t}:null}function al(e,t,r){var n=r&&r.ignoreSize;!ge(n)&&(n=[n,n]);var i=o(mu[0],0),a=o(mu[1],1);u(mu[0],e,i),u(mu[1],e,a);function o(c,f){var h={},v=0,d={},g=0,m=2;if(fy(c,function(w){d[w]=e[w]}),fy(c,function(w){s(t,w)&&(h[w]=d[w]=t[w]),l(h,w)&&v++,l(d,w)&&g++}),n[f])return l(t,c[1])?d[c[2]]=null:l(t,c[2])&&(d[c[1]]=null),d;if(g===m||!v)return d;if(v>=m)return h;for(var y=0;y=0;l--)s=it(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return np(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}($t);Qz(mt,$t);p_(mt);fle(mt);hle(mt,Ale);function Ale(e){var t=[];return R(mt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Se(t,function(r){return ja(r).main}),e!=="dataset"&&ht(t,"dataset")<=0&&t.unshift("dataset"),t}var QG="";typeof navigator<"u"&&(QG=navigator.platform||"");var Lc="rgba(0, 0, 0, 0.2)";const Mle={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Lc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Lc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Lc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Lc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Lc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Lc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:QG.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var e4=Ne(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),aa="original",Pn="arrayRows",oa="objectRows",uo="keyedColumns",Ks="typedArray",t4="unknown",to="column",ah="row",dn={Must:1,Might:2,Not:3},r4=Tt();function Dle(e){r4(e).datasetMap=Ne()}function n4(e,t,r){var n={},i=fM(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=r4(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),R(e,function(g,m){var y=Ye(g)?g:e[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,f=d(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});R(e,function(g,m){var y=g.name,S=d(g);if(c==null){var w=h.valueWayDim;v(n[y],w,S),v(o,w,S),h.valueWayDim+=S}else if(c===m)v(n[y],0,S),v(a,0,S);else{var w=h.categoryWayDim;v(n[y],w,S),v(o,w,S),h.categoryWayDim+=S}});function v(g,m,y){for(var S=0;St)return e[n];return e[r-1]}function o4(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:Ele(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function kle(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var $g,zh,AE,ME="\0_ec_inner",Ole=1,vM=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new $t(a),this._locale=new $t(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=LE(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,LE(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?AE(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&&R(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Ne(),u=n&&n.replaceMergeMainTypeMap;Dle(this),R(r,function(f,h){f!=null&&(mt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?Ze(f):it(i[h],f,!0))}),u&&u.each(function(f,h){mt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),mt.topologicalTravel(s,mt.getAllClassMainTypes(),c,this);function c(f){var h=Ple(this,f,Yt(r[f])),v=a.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=Zz(v,h,d);ooe(g,f,mt),i[f]=null,a.set(f,null),o.set(f,0);var m=[],y=[],S=0,w;R(g,function(x,T){var b=x.existing,A=x.newOption;if(!A)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var M=f==="series",D=mt.getClass(f,x.keyInfo.subType,!M);if(!D)return;if(f==="tooltip"){if(w)return;w=!0}if(b&&b.constructor===D)b.name=x.keyInfo.name,b.mergeOption(A,this),b.optionUpdated(A,!1);else{var L=ce({componentIndex:T},x.keyInfo);b=new D(A,this,this,L),ce(b,L),x.brandNew&&(b.__requireNewView=!0),b.init(A,this,this),b.optionUpdated(null,!0)}}b?(m.push(b.option),y.push(b),S++):(m.push(void 0),y.push(void 0))},this),i[f]=m,a.set(f,y),o.set(f,S),f==="series"&&$g(this)}this._seriesIndices||$g(this)},t.prototype.getOption=function(){var r=Ze(this.option);return R(r,function(n,i){if(mt.hasClass(i)){for(var a=Yt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Sd(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[ME],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function Wle(e,t){return e.join(",")===t.join(",")}var fa=R,Ad=Ye,PE=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function yw(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=PE.length;r=0;m--){var y=e[m];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var S=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&S>0||l==="negative"&&S<0||l==="samesign"&&h>=0&&S>0||l==="samesign"&&h<=0&&S<0){h=qae(h,S),g=S;break}}}return n[0]=h,n[1]=g,n})})}var R_=function(){function e(t){this.data=t.data||(t.sourceFormat===uo?{}:[]),this.sourceFormat=t.sourceFormat||t4,this.seriesLayoutBy=t.seriesLayoutBy||to,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;ng&&(g=w)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};VE=(t={},t[Pn+"_"+to]={pure:!0,appendData:a},t[Pn+"_"+ah]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[oa]={pure:!0,appendData:a},t[uo]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[aa]={appendData:a},t[Ks]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return Ef(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function $E(e){var t,r;return Ye(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Zv(e){return new sue(e)}var sue=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(S){return!(S>=1)&&(S=1),S}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||v1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},uue=function(){function e(t,r){if(!Pt(r)){var n="";Bt(n)}this._opFn=m4[t],this._rvalFloat=qo(r)}return e.prototype.evaluate=function(t){return Pt(t)?this._opFn(t,this._rvalFloat):this._opFn(qo(t),this._rvalFloat)},e}(),y4=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=Pt(t)?t:qo(t),i=Pt(r)?r:qo(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Ee(t),l=Ee(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),cue=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=qo(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=qo(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function fue(e,t){return e==="eq"||e==="ne"?new cue(e==="eq",t):Oe(m4,e)?new uue(e,t):null}var hue=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Js(t,r)},e}();function vue(e,t){var r=new hue,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==to&&Bt(o);var s=[],l={},u=e.dimensionsDefine;if(u)R(u,function(g,m){var y=g.name,S={index:m,name:y,displayName:g.displayName};if(s.push(S),y!=null){var w="";Oe(l,y)&&Bt(w),l[y]=S}});else for(var c=0;c65535?wue:xue}function Pc(){return[1/0,-1/0]}function bue(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function UE(e,t,r,n,i){var a=w4[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Se(o,function(S){return S.property}),c=0;cy[1]&&(y[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=f&&S<=h||isNaN(S))&&(l[u++]=g),g++}d=!0}else if(a===2){for(var m=v[i[0]],w=v[i[1]],x=t[i[1]][0],T=t[i[1]][1],y=0;y=f&&S<=h||isNaN(S))&&(b>=x&&b<=T||isNaN(b))&&(l[u++]=g),g++}d=!0}}if(!d)if(a===1)for(var y=0;y=f&&S<=h||isNaN(S))&&(l[u++]=A)}else for(var y=0;yt[L][1])&&(M=!1)}M&&(l[u++]=r.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,h,v=new($h(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;dc&&(c=f,h=x)}P>0&&Pc-d&&(l=c-d,s.length=l);for(var g=0;gf[1]&&(f[1]=y),h[v++]=S}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Js(r[a],this._dimensions[a])}ww={arrayRows:t,objectRows:function(r,n,i,a){return Js(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Js(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),x4=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Hg(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=vi(s)?Ks:aa,a=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=et(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=et(f.sourceHeader,h.sourceHeader),g=et(f.dimensions,h.dimensions),m=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||g;i=m?[AC(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},l)]:[]}else{var y=t;if(n){var S=this._applyTransform(r);i=S.sourceList,a=S.upstreamSignList}else{var w=y.get("source",!0);i=[AC(w,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&XE(a)}var o,s=[],l=[];return R(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&XE(f),s.push(c),l.push(u._getVersionSign())}),n?o=_ue(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[eue(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Poe=io(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Roe(e){return Loe(e)?!!Poe[e]:!0}function rG(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+v>r){c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}c+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var hC="__zr_style_"+Math.round(Math.random()*10),Iu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},m_={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Iu[hC]=!0;var zR=["z","z2","invisible"],Eoe=["invisible"],na=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=yt(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Eg[0]=rw(i)*r+e,Eg[1]=tw(i)*n+t,kg[0]=rw(a)*r+e,kg[1]=tw(a)*n+t,u(s,Eg,kg),c(l,Eg,kg),i=i%Ol,i<0&&(i=i+Ol),a=a%Ol,a<0&&(a=a+Ol),i>a&&!o?a+=Ol:ii&&(Og[0]=rw(v)*r+e,Og[1]=tw(v)*n+t,u(s,Og,s),c(l,Og,l))}var er={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Nl=[],Fl=[],Na=[],ys=[],Fa=[],Va=[],nw=Math.min,iw=Math.max,Vl=Math.cos,Bl=Math.sin,Ao=Math.abs,vC=Math.PI,Ds=vC*2,aw=typeof Float32Array<"u",Fh=[];function ow(e){var t=Math.round(e/vC*1e8)/1e8;return t%2*vC}function XA(e,t){var r=ow(e[0]);r<0&&(r+=Ds);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Ds?i=r+Ds:t&&r-i>=Ds?i=r-Ds:!t&&r>i?i=r+(Ds-ow(r-i)):t&&r0&&(this._ux=Ao(n/Xy/t)||0,this._uy=Ao(n/Xy/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(er.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Ao(t-this._xi),i=Ao(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(er.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(er.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(er.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Fh[0]=i,Fh[1]=a,XA(Fh,o),i=Fh[0],a=Fh[1];var s=a-i;return this.addData(er.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Vl(a)*n+t,this._yi=Bl(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(er.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(er.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&aw&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Na[0]=Na[1]=Fa[0]=Fa[1]=Number.MAX_VALUE,ys[0]=ys[1]=Va[0]=Va[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Ao(w)>i||h===r-1)&&(g=Math.sqrt(S*S+w*w),a=m,o=y);break}case er.C:{var x=t[h++],T=t[h++],m=t[h++],y=t[h++],b=t[h++],A=t[h++];g=nae(a,o,x,T,m,y,b,A,10),a=b,o=A;break}case er.Q:{var x=t[h++],T=t[h++],m=t[h++],y=t[h++];g=aae(a,o,x,T,m,y,10),a=m,o=y;break}case er.A:var M=t[h++],D=t[h++],L=t[h++],P=t[h++],E=t[h++],F=t[h++],O=F+E;h+=1,d&&(s=Vl(E)*L+M,l=Bl(E)*P+D),g=iw(L,P)*nw(Ds,Math.abs(F)),a=Vl(O)*L+M,o=Bl(O)*P+D;break;case er.R:{s=a=t[h++],l=o=t[h++];var N=t[h++],V=t[h++];g=N*2+V*2;break}case er.Z:{var S=s-a,w=l-o;g=Math.sqrt(S*S+w*w),a=s,o=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,h,v=r<1,d,g,m=0,y=0,S,w=0,x,T;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,S=r*g,!S)))e:for(var b=0;b0&&(t.lineTo(x,T),w=0),A){case er.M:s=u=n[b++],l=c=n[b++],t.moveTo(u,c);break;case er.L:{f=n[b++],h=n[b++];var D=Ao(f-u),L=Ao(h-c);if(D>i||L>a){if(v){var P=d[y++];if(m+P>S){var E=(S-m)/P;t.lineTo(u*(1-E)+f*E,c*(1-E)+h*E);break e}m+=P}t.lineTo(f,h),u=f,c=h,w=0}else{var F=D*D+L*L;F>w&&(x=f,T=h,w=F)}break}case er.C:{var O=n[b++],N=n[b++],V=n[b++],Y=n[b++],G=n[b++],Z=n[b++];if(v){var P=d[y++];if(m+P>S){var E=(S-m)/P;nl(u,O,V,G,E,Nl),nl(c,N,Y,Z,E,Fl),t.bezierCurveTo(Nl[1],Fl[1],Nl[2],Fl[2],Nl[3],Fl[3]);break e}m+=P}t.bezierCurveTo(O,N,V,Y,G,Z),u=G,c=Z;break}case er.Q:{var O=n[b++],N=n[b++],V=n[b++],Y=n[b++];if(v){var P=d[y++];if(m+P>S){var E=(S-m)/P;gd(u,O,V,E,Nl),gd(c,N,Y,E,Fl),t.quadraticCurveTo(Nl[1],Fl[1],Nl[2],Fl[2]);break e}m+=P}t.quadraticCurveTo(O,N,V,Y),u=V,c=Y;break}case er.A:var J=n[b++],re=n[b++],pe=n[b++],Me=n[b++],Le=n[b++],Fe=n[b++],Ge=n[b++],ie=!n[b++],le=pe>Me?pe:Me,de=Ao(pe-Me)>.001,me=Le+Fe,be=!1;if(v){var P=d[y++];m+P>S&&(me=Le+Fe*(S-m)/P,be=!0),m+=P}if(de&&t.ellipse?t.ellipse(J,re,pe,Me,Ge,Le,me,ie):t.arc(J,re,le,Le,me,ie),be)break e;M&&(s=Vl(Le)*pe+J,l=Bl(Le)*Me+re),u=Vl(me)*pe+J,c=Bl(me)*Me+re;break;case er.R:s=u=n[b],l=c=n[b+1],f=n[b++],h=n[b++];var Re=n[b++],H=n[b++];if(v){var P=d[y++];if(m+P>S){var W=S-m;t.moveTo(f,h),t.lineTo(f+nw(W,Re),h),W-=Re,W>0&&t.lineTo(f+Re,h+nw(W,H)),W-=H,W>0&&t.lineTo(f+iw(Re-W,0),h+H),W-=Re,W>0&&t.lineTo(f,h+iw(H-W,0));break e}m+=P}t.rect(f,h,Re,H);break;case er.Z:if(v){var P=d[y++];if(m+P>S){var E=(S-m)/P;t.lineTo(u*(1-E)+s*E,c*(1-E)+l*E);break e}m+=P}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=er,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Rs(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+f&&c>n+f&&c>a+f&&c>s+f||ce+f&&u>r+f&&u>i+f&&u>o+f||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=Vh);var h=Math.atan2(l,s);return h<0&&(h+=Vh),h>=n&&h<=i||h+Vh>=n&&h+Vh<=i}function Ro(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var _s=lo.CMD,zl=Math.PI*2,zoe=1e-4;function Goe(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&$oe(),v=Zr(t,n,a,s,Yi[0]),h>1&&(d=Zr(t,n,a,s,Yi[1]))),h===2?mt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=an(t,n,a,u),h=0;hr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Gn[0]=-l,Gn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=zl-1e-4){n=0,i=zl;var c=a?1:-1;return o>=Gn[0]+e&&o<=Gn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=zl,i+=zl);for(var h=0,v=0;v<2;v++){var d=Gn[v];if(d+e>o){var g=Math.atan2(s,d),c=a?1:-1;g<0&&(g=zl+g),(g>=n&&g<=i||g+zl>=n&&g+zl<=i)&&(g>Math.PI/2&&g1&&(r||(s+=Ro(l,u,c,f,n,i))),m&&(l=a[d],u=a[d+1],c=l,f=u),g){case _s.M:c=a[d++],f=a[d++],l=c,u=f;break;case _s.L:if(r){if(Rs(l,u,a[d],a[d+1],t,n,i))return!0}else s+=Ro(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case _s.C:if(r){if(Voe(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=Hoe(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 _s.Q:if(r){if(nG(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=Woe(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case _s.A:var y=a[d++],S=a[d++],w=a[d++],x=a[d++],T=a[d++],b=a[d++];d+=1;var A=!!(1-a[d++]);h=Math.cos(T)*w+y,v=Math.sin(T)*x+S,m?(c=h,f=v):s+=Ro(l,u,h,v,n,i);var M=(n-y)*x/w+y;if(r){if(Boe(y,S,x,T,T+b,A,t,M,i))return!0}else s+=Uoe(y,S,x,T,T+b,A,M,i);l=Math.cos(T+b)*w+y,u=Math.sin(T+b)*x+S;break;case _s.R:c=l=a[d++],f=u=a[d++];var D=a[d++],L=a[d++];if(h=c+D,v=f+L,r){if(Rs(c,f,h,f,t,n,i)||Rs(h,f,h,v,t,n,i)||Rs(h,v,c,v,t,n,i)||Rs(c,v,c,f,t,n,i))return!0}else s+=Ro(h,f,h,v,n,i),s+=Ro(c,v,c,f,n,i);break;case _s.Z:if(r){if(Rs(l,u,c,f,t,n,i))return!0}else s+=Ro(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!Goe(u,f)&&(s+=Ro(l,u,c,f,n,i)||0),s!==0}function Yoe(e,t,r){return iG(e,0,!1,t,r)}function Xoe(e,t,r,n){return iG(e,t,!0,r,n)}var qy=We({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Iu),Zoe={style:We({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},m_.style)},sw=oo.concat(["invisible","culling","z","z2","zlevel","parent"]),pt=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?sC:n>.2?Rae:lC}else if(r)return lC}return sC},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ee(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Uy(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Yc)&&(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 c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Xoe(s,l/u,r,n)))return!0}if(this.hasFill())return Yoe(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Yc,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:ce(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Yc)},t.prototype.createStyle=function(r){return c_(qy,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=ce({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=ce({},i.shape),ce(u,n.shape)):(u=ce({},a?this.shape:i.shape),ce(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=ce({},this.shape);for(var c={},f=yt(u),h=0;h0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return c_(qoe,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=rp(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(na);Pf.prototype.type="tspan";var joe=We({x:0,y:0},Iu),Koe={style:We({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},m_.style)};function Joe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ln=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return c_(joe,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Joe(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Koe},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new at(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(na);ln.prototype.type="image";function Qoe(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var rf=Math.round;function aG(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(rf(n*2)===rf(i*2)&&(e.x1=e.x2=pu(n,s,!0)),rf(a*2)===rf(o*2)&&(e.y1=e.y2=pu(a,s,!0))),e}}function oG(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=pu(n,s,!0),e.y=pu(i,s,!0),e.width=Math.max(pu(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(pu(i+o,s,!1)-e.y,o===0?0:1)),e}}function pu(e,t,r){if(!t)return e;var n=rf(e*2);return(n+rf(t))%2===0?n/2:(n+(r?1:-1))/2}var ese=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),tse={},Ct=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ese},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=oG(tse,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?Qoe(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(pt);Ct.prototype.type="rect";var UR={fill:"#000"},YR=2,rse={style:We({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},m_.style)},It=function(e){j(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=UR,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,E=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),F=o.calculatedLineHeight,O=0;O=0&&(O=b[F],O.align==="right");)this._placeToken(O,r,M,y,E,"right",w),D-=O.width,E-=O.width,F--;for(P+=(a-(P-m)-(S-E)-D)/2;L<=F;)O=b[L],this._placeToken(O,r,M,y,P+O.width/2,"center",w),P+=O.width,L++;y+=M}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var h=!r.isLineHolder&&lw(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var v=!!u.backgroundColor,d=r.textPadding;d&&(o=JR(o,s,d),f-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(Pf),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,S=!1,w=0,x=KR("fill"in u?u.fill:"fill"in n?n.fill:(S=!0,y.fill)),T=jR("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||S)?(w=YR,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=f,b&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||tl,m.opacity=eo(u.opacity,n.opacity,1),ZR(m,u),T&&(m.lineWidth=eo(u.lineWidth,n.lineWidth,w),m.lineDash=et(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=T),x&&(m.fill=x);var A=r.contentWidth,M=r.contentHeight;g.setBoundingRect(new at(yv(m.x,A,m.textAlign),Xc(m.y,M,m.textBaseline),A,M))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,h=l&&!f,v=r.borderRadius,d=this,g,m;if(h||r.lineHeight||u&&c){g=this._getOrCreateChild(Ct),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,g.dirtyShape()}if(h){var S=g.style;S.fill=l||null,S.fillOpacity=et(r.fillOpacity,1)}else if(f){m=this._getOrCreateChild(ln),m.onload=function(){d.dirtyStyle()};var w=m.style;w.image=l.image,w.x=i,w.y=a,w.width=o,w.height=s}if(u&&c){var S=g.style;S.lineWidth=u,S.stroke=c,S.strokeOpacity=et(r.strokeOpacity,1),S.lineDash=r.borderDash,S.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(S.strokeFirst=!0,S.lineWidth*=2)}var x=(g||m).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=eo(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return lG(r)&&(n=[r.fontStyle,r.fontWeight,sG(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&ma(n)||r.textFont||r.font},t}(na),nse={left:!0,right:1,center:1},ise={top:1,bottom:1,middle:1},XR=["fontStyle","fontWeight","fontSize","fontFamily"];function sG(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?IA+"px":e+"px"}function ZR(e,t){for(var r=0;r=0,a=!1;if(e instanceof pt){var o=uG(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Mc(s)||Mc(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=ce({},n),u=ce({},u),u.fill=s):!Mc(u.fill)&&Mc(s)?(a=!0,n=ce({},n),u=ce({},u),u.fill=Qb(s)):!Mc(u.stroke)&&Mc(l)&&(a||(n=ce({},n),u=ce({},u)),u.stroke=Qb(l)),n.style=u}}if(n&&n.z2==null){a||(n=ce({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Jf)}return n}function fse(e,t,r){if(r&&r.z2==null){r=ce({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??ose)}return r}function hse(e,t,r){var n=ht(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:use(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=ce({},r),o=ce({opacity:n?i:a.opacity*.1},o),r.style=o),r}function uw(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return cse(this,e,t,r);if(e==="blur")return hse(this,e,r);if(e==="select")return fse(this,e,r)}return r}function Zu(e){e.stateProxy=uw;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=uw),r&&(r.stateProxy=uw)}function nE(e,t){!gG(e,t)&&!e.__highByOuter&&ns(e,cG)}function iE(e,t){!gG(e,t)&&!e.__highByOuter&&ns(e,fG)}function jo(e,t){e.__highByOuter|=1<<(t||0),ns(e,cG)}function Ko(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ns(e,fG)}function vG(e){ns(e,jA)}function KA(e){ns(e,hG)}function dG(e){ns(e,sse)}function pG(e){ns(e,lse)}function gG(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function mG(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=ZA(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){hG(u)}),s&&r.push(a)),o.isBlured=!1}),R(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function pC(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Pu(e,t,r){gu(e,!0),ns(e,Zu),mC(e,t,r)}function yse(e){gu(e,!1)}function Cr(e,t,r,n){n?yse(e):Pu(e,t,r)}function mC(e,t,r){var n=Ke(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var oE=["emphasis","blur","select"],_se={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function yn(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=cw(d),s*=cw(d));var g=(i===a?-1:1)*cw((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,m=g*o*v/s,y=g*-s*h/o,S=(e+r)/2+Fg(f)*m-Ng(f)*y,w=(t+n)/2+Ng(f)*m+Fg(f)*y,x=cE([1,0],[(h-m)/o,(v-y)/s]),T=[(h-m)/o,(v-y)/s],b=[(-1*h-m)/o,(-1*v-y)/s],A=cE(T,b);if(_C(T,b)<=-1&&(A=Bh),_C(T,b)>=1&&(A=0),A<0){var M=Math.round(A/Bh*1e6)/1e6;A=Bh*2+M%2*Bh}c.addData(u,S,w,o,s,x,A,f,a)}var Tse=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Ase=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Mse(e){var t=new lo;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=lo.CMD,l=e.match(Tse);if(!l)return t;for(var u=0;uO*O+N*N&&(M=L,D=P),{cx:M,cy:D,x0:-c,y0:-f,x1:M*(i/T-1),y1:D*(i/T-1)}}function kse(e){var t;if(ge(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Ose(e,t){var r,n=_v(t.r,0),i=_v(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,h=!!t.clockwise,v=hE(u-l),d=v>fw&&v%fw;if(d>va&&(v=d),!(n>va))e.moveTo(c,f);else if(v>fw-va)e.moveTo(c+n*Ic(l),f+n*Gl(l)),e.arc(c,f,n,l,u,!h),i>va&&(e.moveTo(c+i*Ic(u),f+i*Gl(u)),e.arc(c,f,i,u,l,h));else{var g=void 0,m=void 0,y=void 0,S=void 0,w=void 0,x=void 0,T=void 0,b=void 0,A=void 0,M=void 0,D=void 0,L=void 0,P=void 0,E=void 0,F=void 0,O=void 0,N=n*Ic(l),V=n*Gl(l),Y=i*Ic(u),G=i*Gl(u),Z=v>va;if(Z){var J=t.cornerRadius;J&&(r=kse(J),g=r[0],m=r[1],y=r[2],S=r[3]);var re=hE(n-i)/2;if(w=Ba(re,y),x=Ba(re,S),T=Ba(re,g),b=Ba(re,m),D=A=_v(w,x),L=M=_v(T,b),(A>va||M>va)&&(P=n*Ic(u),E=n*Gl(u),F=i*Ic(l),O=i*Gl(l),vva){var de=Ba(y,D),me=Ba(S,D),be=Vg(F,O,N,V,n,de,h),Re=Vg(P,E,Y,G,n,me,h);e.moveTo(c+be.cx+be.x0,f+be.cy+be.y0),D0&&e.arc(c+be.cx,f+be.cy,de,bn(be.y0,be.x0),bn(be.y1,be.x1),!h),e.arc(c,f,n,bn(be.cy+be.y1,be.cx+be.x1),bn(Re.cy+Re.y1,Re.cx+Re.x1),!h),me>0&&e.arc(c+Re.cx,f+Re.cy,me,bn(Re.y1,Re.x1),bn(Re.y0,Re.x0),!h))}else e.moveTo(c+N,f+V),e.arc(c,f,n,l,u,!h);if(!(i>va)||!Z)e.lineTo(c+Y,f+G);else if(L>va){var de=Ba(g,L),me=Ba(m,L),be=Vg(Y,G,P,E,i,-me,h),Re=Vg(N,V,F,O,i,-de,h);e.lineTo(c+be.cx+be.x0,f+be.cy+be.y0),L0&&e.arc(c+be.cx,f+be.cy,me,bn(be.y0,be.x0),bn(be.y1,be.x1),!h),e.arc(c,f,i,bn(be.cy+be.y1,be.cx+be.x1),bn(Re.cy+Re.y1,Re.cx+Re.x1),h),de>0&&e.arc(c+Re.cx,f+Re.cy,de,bn(Re.y1,Re.x1),bn(Re.y0,Re.x0),!h))}else e.lineTo(c+Y,f+G),e.arc(c,f,i,u,l,h)}e.closePath()}}}var Nse=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),qn=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Nse},t.prototype.buildPath=function(r,n){Ose(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(pt);qn.prototype.type="sector";var Fse=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),ap=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Fse},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(pt);ap.prototype.type="ring";function Vse(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var h=0,v=e.length;h=2){if(n){var a=Vse(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;sHl[1]){if(s=!1,a)return s;var c=Math.abs(Hl[0]-$l[1]),f=Math.abs($l[0]-Hl[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function kt(e,t,r,n,i,a){tM("update",e,t,r,n,i,a)}function vr(e,t,r,n,i,a){tM("enter",e,t,r,n,i,a)}function mf(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function pE(e){return!e.isGroup}function Jse(e){return e.shape!=null}function lp(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){pE(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Jse(o)&&(s.shape=ce({},o.shape)),s}var a=n(e);t.traverse(function(o){if(pE(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),kt(o,l,r,Ke(o).dataIndex)}}})}function PG(e,t){return Se(e,function(r){var n=r[0];n=Jy(n,t.x),n=Qy(n,t.x+t.width);var i=r[1];return i=Jy(i,t.y),i=Qy(i,t.y+t.height),[n,i]})}function Qse(e,t){var r=Jy(e.x,t.x),n=Qy(e.x+e.width,t.x+t.width),i=Jy(e.y,t.y),a=Qy(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function up(e,t,r){var n=ce({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),We(i,r),new ln(n)):b_(e.replace("path://",""),n,r,"center")}function Sv(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var m=hw(v,d,c,f)/h;return!(m<0||m>1)}function hw(e,t,r,n){return e*n-r*t}function ele(e){return e<=1e-6&&e>=-1e-6}function eh(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Ee(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&R(yt(l),function(c){Oe(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ke(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:We({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function gE(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function pl(e,t){if(e)if(ge(e))for(var r=0;r=0&&s.push(l)}),s}}function gl(e,t){return it(it({},e,!0),t,!0)}const hle={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},vle={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var t0="ZH",iM="EN",yf=iM,cy={},aM={},VG=gt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||yf).toUpperCase();return e.indexOf(t0)>-1?t0:yf}():yf;function BG(e,t){e=e.toUpperCase(),aM[e]=new $t(t),cy[e]=t}function dle(e){if(Ee(e)){var t=cy[e.toUpperCase()]||{};return e===t0||e===iM?Ze(t):it(Ze(t),Ze(cy[yf]),!1)}else return it(Ze(e),Ze(cy[yf]),!1)}function xC(e){return aM[e]}function ple(){return aM[yf]}BG(iM,hle);BG(t0,vle);var oM=1e3,sM=oM*60,Xv=sM*60,Ji=Xv*24,wE=Ji*365,wv={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}"},Gg="{yyyy}-{MM}-{dd}",xE={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gg,hour:Gg+" "+wv.hour,minute:Gg+" "+wv.minute,second:Gg+" "+wv.second,millisecond:wv.none},pw=["year","month","day","hour","minute","second","millisecond"],zG=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ss(e,t){return e+="","0000".substr(0,t-e.length)+e}function _f(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function gle(e){return e===_f(e)}function mle(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function A_(e,t,r,n){var i=so(e),a=i[lM(r)](),o=i[Sf(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[M_(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Cd(r)](),f=(c-1)%12+1,h=i[D_(r)](),v=i[I_(r)](),d=i[L_(r)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=n instanceof $t?n:xC(n||VG)||ple(),S=y.getModel("time"),w=S.get("month"),x=S.get("monthAbbr"),T=S.get("dayOfWeek"),b=S.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ss(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,w[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Ss(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ss(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,T[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ss(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ss(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ss(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ss(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ss(d,3)).replace(/{S}/g,d+"")}function yle(e,t,r,n,i){var a=null;if(Ee(r))a=r;else if($e(r))a=r(e.value,t,{level:e.level});else{var o=ce({},wv);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ge(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return A_(new Date(e.value),a,i,n)}function GG(e,t){var r=so(e),n=r[Sf(t)]()+1,i=r[M_(t)](),a=r[Cd(t)](),o=r[D_(t)](),s=r[I_(t)](),l=r[L_(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function bE(e,t,r){var n=Pt(e)?so(e):e;switch(t=t||GG(e,r),t){case"year":return n[lM(r)]();case"half-year":return n[Sf(r)]()>=6?1:0;case"quarter":return Math.floor((n[Sf(r)]()+1)/4);case"month":return n[Sf(r)]();case"day":return n[M_(r)]();case"half-day":return n[Cd(r)]()/24;case"hour":return n[Cd(r)]();case"minute":return n[D_(r)]();case"second":return n[I_(r)]();case"millisecond":return n[L_(r)]()}}function lM(e){return e?"getUTCFullYear":"getFullYear"}function Sf(e){return e?"getUTCMonth":"getMonth"}function M_(e){return e?"getUTCDate":"getDate"}function Cd(e){return e?"getUTCHours":"getHours"}function D_(e){return e?"getUTCMinutes":"getMinutes"}function I_(e){return e?"getUTCSeconds":"getSeconds"}function L_(e){return e?"getUTCMilliseconds":"getMilliseconds"}function _le(e){return e?"setUTCFullYear":"setFullYear"}function $G(e){return e?"setUTCMonth":"setMonth"}function HG(e){return e?"setUTCDate":"setDate"}function WG(e){return e?"setUTCHours":"setHours"}function UG(e){return e?"setUTCMinutes":"setMinutes"}function YG(e){return e?"setUTCSeconds":"setSeconds"}function XG(e){return e?"setUTCMilliseconds":"setMilliseconds"}function ZG(e){if(!Hz(e))return Ee(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function qG(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var nh=OA;function bC(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&ma(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?so(e):e;if(isNaN(+l)){if(s)return"-"}else return A_(l,n,r)}if(t==="ordinal")return Gb(e)?i(e):Pt(e)&&a(e)?e+"":"-";var u=qo(e);return a(u)?ZG(u):Gb(e)?i(e):typeof e=="boolean"?e+"":"-"}var CE=["a","b","c","d","e","f","g"],gw=function(e,t){return"{"+e+(t??"")+"}"};function jG(e,t,r){ge(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function qu(e,t){return t=t||"transparent",Ee(e)?e:Ye(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function r0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var fy=R,KG=["left","right","top","bottom","width","height"],mu=[["width","left","right"],["height","top","bottom"]];function uM(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(e==="horizontal"){var g=c.width+(h?-h.x+c.x:0);v=a+g,v>n||l.newline?(a=0,v=g,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(h?-h.y+c.y:0);d=o+m,d>i||l.newline?(a+=s+r,o=0,d=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}var Eu=uM;tt(uM,"vertical");tt(uM,"horizontal");function xle(e,t,r){var n=t.width,i=t.height,a=Ie(e.left,n),o=Ie(e.top,i),s=Ie(e.right,n),l=Ie(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=nh(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function Hr(e,t,r){r=nh(r||0);var n=t.width,i=t.height,a=Ie(e.left,n),o=Ie(e.top,i),s=Ie(e.right,n),l=Ie(e.bottom,i),u=Ie(e.width,n),c=Ie(e.height,i),f=r[2]+r[0],h=r[1]+r[3],v=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(c)&&(c=i-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var d=new at(a+r[3],o+r[0],u,c);return d.margin=r,d}function P_(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new at(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Hr(We({width:u.width,height:u.height},t),r,n),h=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(a.x=h,a.y=v):(a.x+=h,a.y+=v),a===e&&e.markRedraw(),!0}function ble(e,t){return e[mu[t][0]]!=null||e[mu[t][1]]!=null&&e[mu[t][2]]!=null}function Td(e){var t=e.layoutMode||e.constructor.layoutMode;return Ye(t)?t:t?{type:t}:null}function al(e,t,r){var n=r&&r.ignoreSize;!ge(n)&&(n=[n,n]);var i=o(mu[0],0),a=o(mu[1],1);u(mu[0],e,i),u(mu[1],e,a);function o(c,f){var h={},v=0,d={},g=0,m=2;if(fy(c,function(w){d[w]=e[w]}),fy(c,function(w){s(t,w)&&(h[w]=d[w]=t[w]),l(h,w)&&v++,l(d,w)&&g++}),n[f])return l(t,c[1])?d[c[2]]=null:l(t,c[2])&&(d[c[1]]=null),d;if(g===m||!v)return d;if(v>=m)return h;for(var y=0;y=0;l--)s=it(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return np(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}($t);Qz(mt,$t);p_(mt);cle(mt);fle(mt,Tle);function Tle(e){var t=[];return R(mt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Se(t,function(r){return qa(r).main}),e!=="dataset"&&ht(t,"dataset")<=0&&t.unshift("dataset"),t}var QG="";typeof navigator<"u"&&(QG=navigator.platform||"");var Lc="rgba(0, 0, 0, 0.2)";const Ale={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Lc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Lc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Lc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Lc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Lc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Lc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:QG.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var e4=Ne(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),aa="original",Pn="arrayRows",oa="objectRows",uo="keyedColumns",Ks="typedArray",t4="unknown",to="column",ah="row",dn={Must:1,Might:2,Not:3},r4=Tt();function Mle(e){r4(e).datasetMap=Ne()}function n4(e,t,r){var n={},i=fM(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=r4(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),R(e,function(g,m){var y=Ye(g)?g:e[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,f=d(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});R(e,function(g,m){var y=g.name,S=d(g);if(c==null){var w=h.valueWayDim;v(n[y],w,S),v(o,w,S),h.valueWayDim+=S}else if(c===m)v(n[y],0,S),v(a,0,S);else{var w=h.categoryWayDim;v(n[y],w,S),v(o,w,S),h.categoryWayDim+=S}});function v(g,m,y){for(var S=0;St)return e[n];return e[r-1]}function o4(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:Rle(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function Ele(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var $g,zh,AE,ME="\0_ec_inner",kle=1,vM=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new $t(a),this._locale=new $t(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=LE(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,LE(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?AE(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&&R(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Ne(),u=n&&n.replaceMergeMainTypeMap;Mle(this),R(r,function(f,h){f!=null&&(mt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?Ze(f):it(i[h],f,!0))}),u&&u.each(function(f,h){mt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),mt.topologicalTravel(s,mt.getAllClassMainTypes(),c,this);function c(f){var h=Lle(this,f,Yt(r[f])),v=a.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=Zz(v,h,d);aoe(g,f,mt),i[f]=null,a.set(f,null),o.set(f,0);var m=[],y=[],S=0,w;R(g,function(x,T){var b=x.existing,A=x.newOption;if(!A)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var M=f==="series",D=mt.getClass(f,x.keyInfo.subType,!M);if(!D)return;if(f==="tooltip"){if(w)return;w=!0}if(b&&b.constructor===D)b.name=x.keyInfo.name,b.mergeOption(A,this),b.optionUpdated(A,!1);else{var L=ce({componentIndex:T},x.keyInfo);b=new D(A,this,this,L),ce(b,L),x.brandNew&&(b.__requireNewView=!0),b.init(A,this,this),b.optionUpdated(null,!0)}}b?(m.push(b.option),y.push(b),S++):(m.push(void 0),y.push(void 0))},this),i[f]=m,a.set(f,y),o.set(f,S),f==="series"&&$g(this)}this._seriesIndices||$g(this)},t.prototype.getOption=function(){var r=Ze(this.option);return R(r,function(n,i){if(mt.hasClass(i)){for(var a=Yt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Sd(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[ME],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function Hle(e,t){return e.join(",")===t.join(",")}var fa=R,Ad=Ye,PE=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function yw(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=PE.length;r=0;m--){var y=e[m];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var S=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&S>0||l==="negative"&&S<0||l==="samesign"&&h>=0&&S>0||l==="samesign"&&h<=0&&S<0){h=Zae(h,S),g=S;break}}}return n[0]=h,n[1]=g,n})})}var R_=function(){function e(t){this.data=t.data||(t.sourceFormat===uo?{}:[]),this.sourceFormat=t.sourceFormat||t4,this.seriesLayoutBy=t.seriesLayoutBy||to,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;ng&&(g=w)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};VE=(t={},t[Pn+"_"+to]={pure:!0,appendData:a},t[Pn+"_"+ah]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[oa]={pure:!0,appendData:a},t[uo]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[aa]={appendData:a},t[Ks]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return Ef(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function $E(e){var t,r;return Ye(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Zv(e){return new oue(e)}var oue=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(S){return!(S>=1)&&(S=1),S}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||v1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},lue=function(){function e(t,r){if(!Pt(r)){var n="";Bt(n)}this._opFn=m4[t],this._rvalFloat=qo(r)}return e.prototype.evaluate=function(t){return Pt(t)?this._opFn(t,this._rvalFloat):this._opFn(qo(t),this._rvalFloat)},e}(),y4=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=Pt(t)?t:qo(t),i=Pt(r)?r:qo(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Ee(t),l=Ee(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),uue=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=qo(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=qo(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function cue(e,t){return e==="eq"||e==="ne"?new uue(e==="eq",t):Oe(m4,e)?new lue(e,t):null}var fue=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Js(t,r)},e}();function hue(e,t){var r=new fue,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==to&&Bt(o);var s=[],l={},u=e.dimensionsDefine;if(u)R(u,function(g,m){var y=g.name,S={index:m,name:y,displayName:g.displayName};if(s.push(S),y!=null){var w="";Oe(l,y)&&Bt(w),l[y]=S}});else for(var c=0;c65535?Sue:wue}function Pc(){return[1/0,-1/0]}function xue(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function UE(e,t,r,n,i){var a=w4[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Se(o,function(S){return S.property}),c=0;cy[1]&&(y[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=f&&S<=h||isNaN(S))&&(l[u++]=g),g++}d=!0}else if(a===2){for(var m=v[i[0]],w=v[i[1]],x=t[i[1]][0],T=t[i[1]][1],y=0;y=f&&S<=h||isNaN(S))&&(b>=x&&b<=T||isNaN(b))&&(l[u++]=g),g++}d=!0}}if(!d)if(a===1)for(var y=0;y=f&&S<=h||isNaN(S))&&(l[u++]=A)}else for(var y=0;yt[L][1])&&(M=!1)}M&&(l[u++]=r.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,h,v=new($h(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;dc&&(c=f,h=x)}P>0&&Pc-d&&(l=c-d,s.length=l);for(var g=0;gf[1]&&(f[1]=y),h[v++]=S}return a._count=v,a._indices=h,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Js(r[a],this._dimensions[a])}ww={arrayRows:t,objectRows:function(r,n,i,a){return Js(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Js(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),x4=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Hg(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=vi(s)?Ks:aa,a=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=et(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=et(f.sourceHeader,h.sourceHeader),g=et(f.dimensions,h.dimensions),m=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||g;i=m?[AC(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},l)]:[]}else{var y=t;if(n){var S=this._applyTransform(r);i=S.sourceList,a=S.upstreamSignList}else{var w=y.get("source",!0);i=[AC(w,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&XE(a)}var o,s=[],l=[];return R(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&XE(f),s.push(c),l.push(u._getVersionSign())}),n?o=yue(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Qle(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return R(e.blocks,function(i){var a=A4(i);a>=t&&(t=a+ +(n&&(!a||DC(i)&&!i.noHeader)))}),t}return 0}function Aue(e,t,r,n){var i=t.noHeader,a=Due(A4(t)),o=[],s=t.blocks||[];Xn(!s||ge(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Oe(u,l)){var c=new y4(u[l],null);s.sort(function(d,g){return c.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(d,g){var m=t.valueFormatter,y=T4(d)(m?ce(ce({},e),{valueFormatter:m}):e,d,g>0?a.html:0,n);y!=null&&o.push(y)});var f=e.renderMode==="richText"?o.join(a.richText):IC(o.join(""),i?r:a.html);if(i)return f;var h=bC(t.header,"ordinal",e.useUTC),v=C4(n,e.renderMode).nameStyle;return e.renderMode==="richText"?M4(e,h,v)+a.richText+f:IC('
'+ai(h)+"
"+f,r)}function Mue(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(x){return x=ge(x)?x:[x],Se(x,function(T,b){return bC(T,ge(v)?v[b]:v,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":bC(l,"ordinal",u),v=t.valueType,d=o?[]:c(t.value,t.dataIndex),g=!s||!a,m=!s&&a,y=C4(n,i),S=y.nameStyle,w=y.valueStyle;return i==="richText"?(s?"":f)+(a?"":M4(e,h,S))+(o?"":Pue(e,d,g,m,w)):IC((s?"":f)+(a?"":Iue(h,!s,S))+(o?"":Lue(d,g,m,w)),r)}}function ZE(e,t,r,n,i,a){if(e){var o=T4(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Due(e){return{html:Cue[e],richText:Tue[e]}}function IC(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function Iue(e,t,r){var n=t?"margin-left:2px":"";return''+ai(e)+""}function Lue(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ge(e)?e:[e],''+Se(e,function(o){return ai(o)}).join("  ")+""}function M4(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Pue(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ge(t)?t.join(" "):t,a)}function D4(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return qu(n)}function I4(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var xw=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Wz()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=xle({color:r,type:t,renderMode:n,markerId:i});return Ee(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};ge(r)?R(r,function(a){return ce(n,a)}):ce(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function L4(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=ge(s),u=D4(t,r),c,f,h,v;if(o>1||l&&!o){var d=Rue(s,t,r,a,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=c=Ef(i,r,a[0]),f=g.type}else v=c=l?s[0]:s;var m=HA(t),y=m&&t.name||"",S=i.getName(r),w=n?y:S;return rn("section",{header:y,noHeader:n||!m,sortParam:v,blocks:[rn("nameValue",{markerType:"item",markerColor:u,name:w,noName:!ma(w),value:c,valueType:f,dataIndex:r})].concat(h||[])})}function Rue(e,t,r,n,i){var a=t.getData(),o=io(e,function(f,h,v){var d=a.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(f){c(Ef(a,r,f),f)}):R(e,c);function c(f,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(rn("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ws=Tt();function Wg(e,t){return e.getName(t)||e.getId(t)}var hy="__universalTransitionEnabled",ur=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Zv({count:kue,reset:Oue}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=ws(this).sourceManager=new x4(this);a.prepareSource();var o=this.getInitialData(r,i);jE(o,this),this.dataTask.context.data=o,ws(this).dataBeforeProcessed=o,qE(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Td(this),a=i?ih(r):{},o=this.subType;mt.hasClass(o)&&(o+="Series"),it(r,n.getTheme().get(this.subType)),it(r,this.getDefaultOption()),Uu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&al(r,a,i)},t.prototype.mergeOption=function(r,n){r=it(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Td(this);i&&al(this.option,r,i);var a=ws(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);jE(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ws(this).dataBeforeProcessed=o,qE(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!vi(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=hM.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Wg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[hy])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Ye(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return mt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(mt);Gr(ur,E_);Gr(ur,hM);Qz(ur,mt);function qE(e){var t=e.name;HA(e)||(e.name=Eue(e)||t)}function Eue(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return R(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function kue(e){return e.model.getRawData().count()}function Oue(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Nue}function Nue(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function jE(e,t){R(zy(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,tt(Fue,t))})}function Fue(e,t){var r=LC(e);return r&&r.setOutputEnd((t||this).count()),t}function LC(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var mr=function(){function e(){this.group=new qe,this.uid=rh("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();UA(mr);p_(mr);function oh(){var e=Tt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var P4=Tt(),Vue=oh(),Jt=function(){function e(){this.group=new qe,this.uid=rh("viewChart"),this.renderTask=Zv({plan:Bue,reset:zue}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&JE(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&JE(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){pl(this.group,t)},e.markUpdateMethod=function(t,r){P4(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function KE(e,t,r){e&&xd(e)&&(t==="emphasis"?jo:Ko)(e,r)}function JE(e,t,r){var n=Yu(e,t),i=t&&t.highlightKey!=null?xse(t.highlightKey):null;n!=null?R(Yt(n),function(a){KE(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){KE(a,r,i)})}UA(Jt);p_(Jt);function Bue(e){return Vue(e.model)}function zue(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&P4(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),Gue[l]}var Gue={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},n0="\0__throttleOriginMethod",QE="\0__throttleRate",ek="\0__throttleType";function yM(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?f():o=setTimeout(f,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function sh(e,t,r,n){var i=e[t];if(i){var a=i[n0]||i,o=i[ek],s=i[QE];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=yM(a,r,n==="debounce"),i[n0]=a,i[ek]=n,i[QE]=r}return i}}function Md(e,t){var r=e[t];r&&r[n0]&&(r.clear&&r.clear(),e[t]=r[n0])}var tk=Tt(),rk={itemStyle:Xu(FG,!0),lineStyle:Xu(NG,!0)},$ue={lineStyle:"stroke",itemStyle:"fill"};function R4(e,t){var r=e.visualStyleMapper||rk[t];return r||(console.warn("Unknown style type '"+t+"'."),rk.itemStyle)}function E4(e,t){var r=e.visualDrawType||$ue[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Hue={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=R4(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=E4(e,n),u=o[l],c=$e(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$e(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||$e(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=e.getDataParams(d),m=ce({},o);m[l]=c(g),v.setItemVisual(d,"style",m)}}}},Hh=new $t,Wue={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=R4(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Hh.option=l[n];var u=i(Hh),c=o.ensureUniqueItemVisual(s,"style");ce(c,u),Hh.option.decal&&(o.setItemVisual(s,"decal",Hh.option.decal),Hh.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Uue={performRawSeries:!0,overallReset:function(e){var t=Ne();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),tk(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=tk(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=E4(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var h=a.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=r.getColorFromPalette(v,o,d)}})}})}},Ug=Math.PI;function Yue(e,t){t=t||{},We(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new qe,n=new Ct({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new It({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ct({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new x_({shape:{startAngle:-Ug/2,endAngle:-Ug/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ug*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ug*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var k4=function(){function e(t,r,n,i){this._stageTaskMap=Ne(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=Ne();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;R(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Xn(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;R(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(m){s(i,m)&&(m.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,i.block);d.each(function(m){m.perform(g)}),h.perform(g)&&(a=!0)}else f&&f.each(function(m,y){s(i,m)&&m.dirty();var S=o.getPerformArgs(m,i.block);S.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(S)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Ne(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||Zv({plan:Kue,reset:Jue,count:ece}));v.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Zv({reset:Xue});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Ne(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,v="";Xn(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):c?c(n,i).each(d):(f=!1,R(n.getSeries(),d));function d(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(h=!0,Zv({reset:Zue,onDirty:jue})));y.context={model:g,overallProgress:f},y.agent=o,y.__block=f,a._pipe(g,y)}h&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return $e(t)&&(t={overallReset:t,seriesType:tce(t)}),t.uid=rh("stageHandler"),r&&(t.visualType=r),t},e}();function Xue(e){e.overallReset(e.ecModel,e.api,e.payload)}function Zue(e){return e.overallProgress&&que}function que(){this.agent.dirty(),this.getDownstream().dirty()}function jue(){this.agent&&this.agent.dirty()}function Kue(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Jue(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Yt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Se(t,function(r,n){return O4(n)}):Que}var Que=O4(0);function O4(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),PC=["symbol","symbolSize","symbolRotate","symbolOffset"],ok=PC.concat(["symbolKeepAspect"]),ice={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&_u(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function RC(e,t,r){for(var n=t.type==="radial"?_ce(e,t,r):yce(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Pt(e)?[e]:ge(e)?e:null}function SM(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&wce(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Se(r,function(a){return a/i}),n/=i)}return[r,n]}var xce=new lo(!0);function o0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function sk(e){return typeof e=="string"&&e!=="none"}function s0(e){var t=e.fill;return t!=null&&t!=="none"}function lk(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function uk(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function EC(e,t,r){var n=YA(t.image,t.__image,r);if(g_(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Qm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function bce(e,t,r,n){var i,a=o0(r),o=s0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||xce,f=t.__dirty;if(!n){var h=r.fill,v=r.stroke,d=o&&!!h.colorStops,g=a&&!!v.colorStops,m=o&&!!h.image,y=a&&!!v.image,S=void 0,w=void 0,x=void 0,T=void 0,b=void 0;(d||g)&&(b=t.getBoundingRect()),d&&(S=f?RC(e,h,b):t.__canvasFillGradient,t.__canvasFillGradient=S),g&&(w=f?RC(e,v,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=w),m&&(x=f||!t.__canvasFillPattern?EC(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=x),y&&(T=f||!t.__canvasStrokePattern?EC(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?e.fillStyle=S:m&&(x?e.fillStyle=x:o=!1),g?e.strokeStyle=w:y&&(T?e.strokeStyle=T:a=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var M,D;e.setLineDash&&r.lineDash&&(i=SM(t),M=i[0],D=i[1]);var L=!0;(u||f&Yc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),L=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),L&&c.rebuildPath(e,l?s:1),M&&(e.setLineDash(M),e.lineDashOffset=D),n||(r.strokeFirst?(a&&uk(e,r),o&&lk(e,r)):(o&&lk(e,r),a&&uk(e,r))),M&&e.setLineDash([])}function Cce(e,t,r){var n=t.__image=YA(r.image,t.__image,t,t.onload);if(!(!n||!g_(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,h=s-c;e.drawImage(n,u,c,f,h,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function Tce(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||tl,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=SM(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(o0(r)&&e.strokeText(i,r.x,r.y),s0(r)&&e.fillText(i,r.x,r.y)):(s0(r)&&e.fillText(i,r.x,r.y),o0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var ck=["shadowBlur","shadowOffsetX","shadowOffsetY"],fk=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function G4(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){li(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Iu.opacity:o}(n||t.blend!==r.blend)&&(a||(li(e,i),a=!0),e.globalCompositeOperation=t.blend||Iu.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Cn]){if(this._disposed){this.id;return}var a,o,s;if(Ye(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Cn]=!0,!this._model||n){var l=new zle(this._api),u=this._theme,c=this._model=new vM;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},OC);var f={seriesTransition:s,optionChanged:!0};if(i)this[ii]={silent:a,updateParams:f},this[Cn]=!1,this.getZr().wakeUp();else{try{Ec(this),xs.update.call(this,null,f)}catch(h){throw this[ii]=null,this[Cn]=!1,h}this._ssr||this._zr.flush(),this[ii]=null,this[Cn]=!1,Wh.call(this,a),Uh.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||gt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(gt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return R(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;R(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return R(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Ak[i]){var l=s,u=s,c=-s,f=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();R(jv,function(w,x){if(w.group===i){var T=n?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(Ze(r)),b=w.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),c=o(b.right,c),f=o(b.bottom,f),h.push({dom:T,left:b.left,top:b.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,g=f-u,m=rl.createCanvas(),y=PR(m,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var S="";return R(h,function(w){var x=w.left-l,T=w.top-u;S+=''+w.dom+""}),y.painter.getSvgRoot().innerHTML=S,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Ct({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),R(h,function(w){var x=new ln({style:{x:w.left*v-l,y:w.top*v-u,image:w.dom}});y.add(x)}),y.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Mw(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Mw(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Hv(i,r);return R(o,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Hv(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?_M(s,l,n):fp(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;R(jce,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&yu(s,function(d){var g=Ke(d);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=ce({},g.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),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)}),R(qv,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),R(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),oce(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&jz(this.getDom(),bM,"");var n=this,i=n._api,a=n._model;R(n._componentsViews,function(o){o.dispose(a,i)}),R(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 jv[n.id]},t.prototype.resize=function(r){if(!this[Cn]){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[ii]&&(a==null&&(a=this[ii].silent),i=!0,this[ii]=null),this[Cn]=!0;try{i&&Ec(this),xs.update.call(this,{type:"resize",animation:ce({duration:0},r&&r.animation)})}catch(o){throw this[Cn]=!1,o}this[Cn]=!1,Wh.call(this,a),Uh.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Ye(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!NC[r]){var i=NC[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=ce({},r);return n.type=qv[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Ye(n)||(n={silent:!!n}),!!l0[r.type]&&this._model){if(this[Cn]){this._pendingActions.push(r);return}var i=n.silent;Iw.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&>.browser.weChat&&this._throttledZrFlush(),Wh.call(this,i),Uh.call(this,i)}},t.prototype.updateLabelLayout=function(){pa.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Ec=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),Aw(f,!0),Aw(f,!1),h.plan()},Aw=function(f,h){for(var v=f._model,d=f._scheduler,g=h?f._componentsViews:f._chartsViews,m=h?f._componentsMap:f._chartsMap,y=f._zr,S=f._api,w=0;wh.get("hoverLayerThreshold")&&!gt.node&&!gt.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=f._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(g){return l(g,v,d,-1/0),!0})}}function l(f,h,v,d){var g=f.getTextContent(),m=f.getTextGuideLine(),y=f.isGroup;if(y)for(var S=f.childrenRef(),w=0;w0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(mf(y))return;if(y instanceof pt&&bse(y),y.__dirty){var S=y.prevStates;S&&y.useStates(S)}if(d){y.stateTransition=m;var w=y.getTextContent(),x=y.getTextGuideLine();w&&(w.stateTransition=m),x&&(x.stateTransition=m)}y.__dirty&&i(y)}})}Ck=function(f){return new(function(h){j(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){jo(d,g),Bi(f)},v.prototype.leaveEmphasis=function(d,g){Ko(d,g),Bi(f)},v.prototype.enterBlur=function(d){vG(d),Bi(f)},v.prototype.leaveBlur=function(d){KA(d),Bi(f)},v.prototype.enterSelect=function(d){dG(d),Bi(f)},v.prototype.leaveSelect=function(d){pG(d),Bi(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v}(s4))(f)},r$=function(f){function h(v,d){for(var g=0;g=0)){Mk.push(r);var a=k4.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function l$(e,t){NC[e]=t}function ife(e,t,r){var n=Oce("registerMap");n&&n(e,t,r)}var afe=yue;nc(wM,Hue);nc(O_,Wue);nc(O_,Uue);nc(wM,ice);nc(O_,ace);nc(j4,Ece);o$(u4);s$(Vce,Jle);l$("default",Yue);co({type:Lu,event:Lu,update:Lu},Er);co({type:sy,event:sy,update:sy},Er);co({type:Wv,event:Wv,update:Wv},Er);co({type:ly,event:ly,update:ly},Er);co({type:Uv,event:Uv,update:Uv},Er);a$("light",rce);a$("dark",V4);var Dk=[],ofe={registerPreprocessor:o$,registerProcessor:s$,registerPostInit:efe,registerPostUpdate:tfe,registerUpdateLifecycle:CM,registerAction:co,registerCoordinateSystem:rfe,registerLayout:nfe,registerVisual:nc,registerTransform:afe,registerLoading:l$,registerMap:ife,registerImpl:kce,PRIORITY:Xce,ComponentModel:mt,ComponentView:mr,SeriesModel:ur,ChartView:Jt,registerComponentModel:function(e){mt.registerClass(e)},registerComponentView:function(e){mr.registerClass(e)},registerSeriesModel:function(e){ur.registerClass(e)},registerChartView:function(e){Jt.registerClass(e)},registerSubTypeDefaulter:function(e,t){mt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Hae(e,t)}};function vt(e){if(ge(e)){R(e,function(t){vt(t)});return}ht(Dk,e)>=0||(Dk.push(e),$e(e)&&(e={install:e}),e.install(ofe))}function Yh(e){return e==null?0:e.length||1}function Ik(e){return e}var Jo=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||Ik,this._newKeyGetter=i||Ik,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var Xh=Ye,bs=Se,hfe=typeof Int32Array>"u"?Array:Int32Array,vfe="e\0\0",Lk=-1,dfe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],pfe=["_approximateExtent"],Pk,jg,Zh,qh,Rw,Kg,Ew,Wn=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;c$(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===aa;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),ge(a)?a=a.slice():Xh(a)&&(a=ce({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Xh(r)?ce(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Xh(t)?ce(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?ce(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;dC(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){R(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:bs(this.dimensions,this._getDimInfo,this),this.hostModel)),Rw(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];$e(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(kA(arguments)))})},e.internalField=function(){Pk=function(t){var r=t._invertedIndicesMap;R(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new hfe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();function hp(e,t){dM(e)||(e=pM(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Ne(),a=[],o=mfe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&v$(o),l=n===e.dimensionsDefine,u=l?h$(e):f$(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=Ne(c),h=new S4(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function mfe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return R(t,function(a){var o;Ye(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function yfe(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var _fe=function(){function e(t){this.coordSysDims=[],this.axisMap=Ne(),this.categoryAxisMap=Ne(),this.coordSysName=t}return e}();function Sfe(e){var t=e.get("coordinateSystem"),r=new _fe(t),n=wfe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var wfe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Vr).models[0],a=e.getReferringComponents("yAxis",Vr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),kc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),kc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Vr).models[0];t.coordSysDims=["single"],r.set("single",i),kc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Vr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),kc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),kc(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),kc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function kc(e){return e.get("type")==="category"}function xfe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;bfe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,h;if(R(a,function(S,w){Ee(S)&&(a[w]=S={name:S}),l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!c&&S.type!=="ordinal"&&S.type!=="time"&&(!i||i===S.coordDim)&&(c=S))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,g=0;R(a,function(S){S.coordDim===v&&g++});var m={name:f,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,d),y.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(a.push(m),a.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function bfe(e){return!c$(e.schema)}function ol(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function d$(e,t){return ol(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Cfe(e,t){var r=e.get("coordinateSystem"),n=cp.get(r),i;return t&&t.coordSysDims&&(i=Se(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=c0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Tfe(e,t,r){var n,i;return r&&R(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function as(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=pM(e)):(i=n.getSource(),a=i.sourceFormat===aa);var o=Sfe(t),s=Cfe(t,o),l=r.useEncodeDefaulter,u=$e(l)?l:l?tt(n4,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=hp(i,c),h=Tfe(f.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(f),d=xfe(t,{schema:f,store:v}),g=new Wn(f,t);g.setCalculationInfo(d);var m=h!=null&&Afe(i)?function(y,S,w,x){return x===h?w:this.defaultDimValueGetter(y,S,w,x)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,m),g}function Afe(e){if(e.sourceFormat===aa){var t=Mfe(e.data||[]);return!ge(Kf(t))}}function Mfe(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();p_(fo);var Dfe=0,FC=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Dfe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Se(n,Ife);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Ee(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Ne(this.categories))},e}();function Ife(e){return Ye(e)&&e.value!=null?e.value:e+""}function VC(e){return e.type==="interval"||e.type==="log"}function Lfe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=$z(a/t);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=p$(o),l=i.niceTickExtent=[Ar(Math.ceil(e[0]/o)*o,s),Ar(Math.floor(e[1]/o)*o,s)];return Pfe(l,e),i}function kw(e){var t=Math.pow(10,$A(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ar(r*t)}function p$(e){return qa(e)+2}function Rk(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Pfe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Rk(e,0,t),Rk(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function N_(e,t){return e>=t[0]&&e<=t[1]}function F_(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function V_(e,t){return e*(t[1]-t[0])+t[0]}var B_=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new FC({})),ge(i)&&(i=new FC({categories:Se(i,function(a){return Ye(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Ee(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),N_(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),F_(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(V_(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(fo);fo.registerClass(B_);var Xl=Ar,Qo=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return N_(r,this._extent)},t.prototype.normalize=function(r){return F_(r,this._extent)},t.prototype.scale=function(r){return V_(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=p$(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:Xl(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function y$(e){var t=kfe(e),r=[];return R(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Ie(n.get("barWidth"),s),g=Ie(n.get("barMaxWidth"),s),m=Ie(n.get("barMinWidth")||(b$(n)?.5:1),s),y=n.get("barGap"),S=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:S,axisKey:MM(a),stackId:AM(n)})}),_$(r)}function _$(e){var t={};R(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);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 R(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=yt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Ie(s,o),c=Ie(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),R(a,function(y){var S=y.maxWidth,w=y.minWidth;if(y.width){var x=y.width;S&&(x=Math.min(x,S)),w&&(x=Math.max(x,w)),y.width=x,f-=x+c*x,h--}else{var x=v;S&&Sx&&(x=w),x!==v&&(y.width=x,f-=x+c*x,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,g;R(a,function(y,S){y.width||(y.width=v),g=y,d+=y.width*(1+c)}),g&&(d-=g.width*c);var m=-d/2;R(a,function(y,S){r[i][S]=r[i][S]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),r}function Ofe(e,t,r){if(e&&t){var n=e[MM(t)];return n!=null&&r!=null?n[AM(r)]:n}}function S$(e,t){var r=m$(e,t),n=y$(r);R(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=AM(i),u=n[MM(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function w$(e){return{seriesType:e,plan:oh(),reset:function(t){if(x$(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=ol(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=Nfe(i,a),d=b$(t),g=t.get("barMinHeight")||0,m=c&&r.getDimensionIndex(c),y=r.getLayout("size"),S=r.getLayout("offset");return{progress:function(w,x){for(var T=w.count,b=d&&Ka(T*3),A=d&&l&&Ka(T*3),M=d&&Ka(T),D=n.master.getRect(),L=h?D.width:D.height,P,E=x.getStore(),F=0;(P=w.next())!=null;){var O=E.get(f?m:o,P),N=E.get(s,P),V=v,Y=void 0;f&&(Y=+O-E.get(o,P));var G=void 0,Z=void 0,J=void 0,re=void 0;if(h){var pe=n.dataToPoint([O,N]);if(f){var Me=n.dataToPoint([Y,N]);V=Me[0]}G=V,Z=pe[1]+S,J=pe[0]-V,re=y,Math.abs(J)0?r:1:r))}var Ffe=function(e,t,r,n){for(;r>>1;e[i][1]i&&(this._approxInterval=i);var s=Jg.length,l=Math.min(Ffe(Jg,this._approxInterval,0,s),s-1);this._interval=Jg[l][1],this._minLevelUnit=Jg[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Pt(r)?r:+so(r)},t.prototype.contain=function(r){return N_(this.parse(r),this._extent)},t.prototype.normalize=function(r){return F_(this.parse(r),this._extent)},t.prototype.scale=function(r){return V_(r,this._extent)},t.type="time",t}(Qo),Jg=[["second",oM],["minute",sM],["hour",Xv],["quarter-day",Xv*6],["half-day",Xv*12],["day",Ji*1.2],["half-week",Ji*3.5],["week",Ji*7],["month",Ji*31],["quarter",Ji*95],["half-year",wE/2],["year",wE]];function Vfe(e,t,r,n){var i=so(t),a=so(r),o=function(d){return bE(i,d,n)===bE(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function Bfe(e,t){return e/=Ji,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function zfe(e){var t=30*Ji;return e/=t,e>6?6:e>3?3:e>2?2:1}function Gfe(e){return e/=Xv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Ek(e,t){return e/=t?sM:oM,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function $fe(e){return $z(e)}function Hfe(e,t,r){var n=new Date(e);switch(_f(t)){case"year":case"month":n[$G(r)](0);case"day":n[HG(r)](1);case"hour":n[WG(r)](0);case"minute":n[UG(r)](0);case"second":n[YG(r)](0),n[XG(r)](0)}return n.getTime()}function Wfe(e,t,r,n){var i=1e4,a=zG,o=0;function s(L,P,E,F,O,N,V){for(var Y=new Date(P),G=P,Z=Y[F]();G1&&N===0&&E.unshift({value:E[0].value-G})}}for(var N=0;N=n[0]&&S<=n[1]&&f++)}var w=(n[1]-n[0])/t;if(f>w*1.5&&h>w/1.5||(u.push(m),f>w||e===a[v]))break}c=[]}}}for(var x=Wt(Se(u,function(L){return Wt(L,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(L){return L.length>0}),T=[],b=x.length-1,v=0;v0;)a*=10;var s=[Ar(Xfe(n[0]/a)*a),Ar(Yfe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Kv.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=ha(r)/ha(this.base),N_(r,this._extent)},t.prototype.normalize=function(r){return r=ha(r)/ha(this.base),F_(r,this._extent)},t.prototype.scale=function(r){return r=V_(r,this._extent),Qg(this.base,r)},t.type="log",t}(fo),C$=IM.prototype;C$.getMinorTicks=Kv.getMinorTicks;C$.getLabel=Kv.getLabel;function em(e,t){return Ufe(e,qa(t))}fo.registerClass(IM);var Zfe=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[jfe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=qfe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),qfe={min:"_determinedMin",max:"_determinedMax"},jfe={min:"_dataMin",max:"_dataMax"};function T$(e,t,r){var n=e.rawExtentInfo;return n||(n=new Zfe(e,t,r),e.rawExtentInfo=n,n)}function tm(e,t){return t==null?null:pd(t)?NaN:e.parse(t)}function A$(e,t){var r=e.type,n=T$(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=m$("bar",o),l=!1;if(R(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=y$(s),c=Kfe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function Kfe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=Ofe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;R(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;R(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,h=c/f-c;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function Of(e,t){var r=t,n=A$(e,r),i=n.extent,a=r.get("splitNumber");e instanceof IM&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function z_(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new B_({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new DM({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(fo.getClass(t)||Qo)}}function Jfe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function uh(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):Ee(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):$e(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(LM(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function LM(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Qfe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof B_?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=uh(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var vp=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),rhe=1e-8;function Ok(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return ihe(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return R(o,function(s){s.type==="polygon"?Nk(s.exterior,i,a,r):R(s.points,function(l){Nk(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new at(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function she(e,t){return e=ohe(e),Se(Wt(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Fk(o[0],o.slice(1)));break;case"MultiPolygon":R(i.coordinates,function(l){l[0]&&a.push(new Fk(l[0],l.slice(1)))});break;case"LineString":a.push(new Vk([i.coordinates]));break;case"MultiLineString":a.push(new Vk(i.coordinates))}var s=new I$(n[t||"name"],a,n.cp);return s.properties=n,s})}var Ld=Tt();function P$(e,t){var r=Se(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function lhe(e){var t=e.getLabelModel().get("customValues");if(t){var r=uh(e);return{labels:P$(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?che(e):hhe(e)}function uhe(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:P$(e,r)}:e.type==="category"?fhe(e,t):{ticks:Se(e.scale.getTicks(),function(n){return n.value})}}function che(e){var t=e.getLabelModel(),r=R$(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function R$(e,t){var r=E$(e,"labels"),n=PM(t),i=k$(r,n);if(i)return i;var a,o;return $e(n)?a=F$(e,n):(o=n==="auto"?vhe(e):n,a=N$(e,o)),O$(r,n,{labels:a,labelCategoryInterval:o})}function fhe(e,t){var r=E$(e,"ticks"),n=PM(t),i=k$(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),$e(n))a=F$(e,n,!0);else if(n==="auto"){var s=R$(e,e.getLabelModel());o=s.labelCategoryInterval,a=Se(s.labels,function(l){return l.tickValue})}else o=n,a=N$(e,o,!0);return O$(r,n,{ticks:a,tickCategoryInterval:o})}function hhe(e){var t=e.scale.getTicks(),r=uh(e);return{labels:Se(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function E$(e,t){return Ld(e)[t]||(Ld(e)[t]=[])}function k$(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,v=0;l<=a[1];l+=s){var d=0,g=0,m=rp(r({value:l}),t.font,"center","top");d=m.width*1.3,g=m.height*1.3,h=Math.max(h,d,7),v=Math.max(v,g,7)}var y=h/c,S=v/f;isNaN(y)&&(y=1/0),isNaN(S)&&(S=1/0);var w=Math.max(0,Math.floor(Math.min(y,S))),x=Ld(e.model),T=e.getExtent(),b=x.lastAutoInterval,A=x.lastTickCount;return b!=null&&A!=null&&Math.abs(b-w)<=1&&Math.abs(A-o)<=1&&b>w&&x.axisExtent0===T[0]&&x.axisExtent1===T[1]?w=b:(x.lastTickCount=o,x.lastAutoInterval=w,x.axisExtent0=T[0],x.axisExtent1=T[1]),w}function phe(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function N$(e,t,r){var n=uh(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=M$(e),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==a[0]&&g(a[0]);for(var d=u;d<=a[1];d+=l)g(d);v&&d-l!==a[1]&&g(a[1]);function g(m){var y={value:m};s.push(r?m:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:m})}return s}function F$(e,t,r){var n=e.scale,i=uh(e),a=[];return R(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Bk=[0,1],La=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return zz(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),zk(n,i.count())),Ht(t,Bk,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),zk(n,i.count()));var a=Ht(t,n,Bk,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=uhe(this,r),i=n.ticks,a=Se(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return ghe(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Se(n,function(a){return Se(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return lhe(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return dhe(this)},e}();function zk(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function ghe(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;R(t,function(v){v.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(v,d){return v=Ar(v),d=Ar(d),f?v>d:vi&&(i+=jh);var v=Math.atan2(s,o);if(v<0&&(v+=jh),v>=n&&v<=i||v+jh>=n&&v+jh<=i)return l[0]=c,l[1]=f,u-r;var d=r*Math.cos(n)+e,g=r*Math.sin(n)+t,m=r*Math.cos(i)+e,y=r*Math.sin(i)+t,S=(d-o)*(d-o)+(g-s)*(g-s),w=(m-o)*(m-o)+(y-s)*(y-s);return S0){t=t/180*Math.PI,ya.fromArray(e[0]),or.fromArray(e[1]),Lr.fromArray(e[2]),rt.sub(Ja,ya,or),rt.sub(Za,Lr,or);var r=Ja.len(),n=Za.len();if(!(r<.001||n<.001)){Ja.scale(1/r),Za.scale(1/n);var i=Ja.dot(Za),a=Math.cos(t);if(a1&&rt.copy($n,Lr),$n.toArray(e[1])}}}}function xhe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,ya.fromArray(e[0]),or.fromArray(e[1]),Lr.fromArray(e[2]),rt.sub(Ja,or,ya),rt.sub(Za,Lr,or);var n=Ja.len(),i=Za.len();if(!(n<.001||i<.001)){Ja.scale(1/n),Za.scale(1/i);var a=Ja.dot(t),o=Math.cos(r);if(a=l)rt.copy($n,Lr);else{$n.scaleAndAdd(Za,s/Math.tan(Math.PI/2-c));var f=Lr.x!==or.x?($n.x-or.x)/(Lr.x-or.x):($n.y-or.y)/(Lr.y-or.y);if(isNaN(f))return;f<0?rt.copy($n,or):f>1&&rt.copy($n,Lr)}$n.toArray(e[1])}}}}function Fw(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function bhe(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Bs(n[0],n[1]),a=Bs(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=ty([],n[1],n[0],o/i),l=ty([],n[1],n[2],o/a),u=ty([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&a&&T(-c/o,0,o);var g=e[0],m=e[o-1],y,S;w(),y<0&&b(-y,.8),S<0&&b(S,.8),w(),x(y,S,1),x(S,y,-1),w(),y<0&&A(-y),S<0&&A(S);function w(){y=g.rect[t]-n,S=i-m.rect[t]-m.rect[r]}function x(M,D,L){if(M<0){var P=Math.min(D,-M);if(P>0){T(P*L,0,o);var E=P+M;E<0&&b(-E*L,1)}else b(-M*L,1)}}function T(M,D,L){M!==0&&(u=!0);for(var P=D;P0)for(var E=0;E0;E--){var V=L[E-1]*N;T(-V,E,o)}}}function A(M){var D=M<0?-1:1;M=Math.abs(M);for(var L=Math.ceil(M/(o-1)),P=0;P0?T(L,0,P+1):T(-L,o-P-1,o),M-=L,M<=0)return}return u}function Che(e,t,r,n){return G$(e,"x","width",t,r,n)}function $$(e,t,r,n){return G$(e,"y","height",t,r,n)}function H$(e){var t=[];e.sort(function(g,m){return m.priority-g.priority});var r=new at(0,0,0,0);function n(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),ht(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),kt(n,u,r,l)}else if(n.attr(u),!th(n).valueAnimation){var f=et(n.style.opacity,1);n.style.opacity=0,vr(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var v=a.oldLayoutSelect={};rm(v,u,nm),rm(v,n.states.select,nm)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};rm(d,u,nm),rm(d,n.states.emphasis,nm)}OG(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=Mhe(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),kt(i,{shape:g},r)):(i.setShape(g),i.style.strokePercent=0,vr(i,{style:{strokePercent:1}},r)),a.oldLayout=g}},e}(),Bw=Tt();function Ihe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=Bw(r).labelManager;i||(i=Bw(r).labelManager=new Dhe),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=Bw(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var zw=Math.sin,Gw=Math.cos,W$=Math.PI,ql=Math.PI*2,Lhe=180/W$,U$=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),h=Ws(f-ql)||(c?u>=ql:-u>=ql),v=u>0?u%ql:u%ql+ql,d=!1;h?d=!0:Ws(f)?d=!1:d=v>=W$==!!c;var g=t+n*Gw(o),m=r+i*zw(o);this._start&&this._add("M",g,m);var y=Math.round(a*Lhe);if(h){var S=1/this._p,w=(c?1:-1)*(ql-S);this._add("A",n,i,y,1,+c,t+n*Gw(o+w),r+i*zw(o+w)),S>.01&&this._add("A",n,i,y,0,+c,g,m)}else{var x=t+n*Gw(s),T=r+i*zw(s);this._add("A",n,i,y,+d,+c,x,T)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,h=1;h"}function Bhe(e){return""}function OM(e,t){t=t||{};var r=t.newline?` -`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return Vhe(o,s)+(o!=="style"?ai(l):l||"")+(a?""+r+Se(a,function(u){return n(u)}).join(r)+r:"")+Bhe(o)}return n(e)}function zhe(e,t,r){r=r||{};var n=r.newline?` -`:"",i=" {"+n,a=n+"}",o=Se(yt(e),function(l){return l+i+Se(yt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Se(yt(t),function(l){return"@keyframes "+l+i+Se(yt(t[l]),function(u){return u+i+Se(yt(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function GC(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Wk(e,t,r,n){return Kr("svg","root",{width:e,height:t,xmlns:Y$,"xmlns:xlink":X$,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var Ghe=0;function q$(){return Ghe++}var Uk={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Ql="transform-origin";function $he(e,t,r){var n=ce({},e.shape);ce(n,t),e.buildPath(r,n);var i=new U$;return i.reset(Pz(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function Hhe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Ql]=r+"px "+n+"px")}var Whe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function j$(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Uhe(e,t,r){var n=e.shape.paths,i={},a,o;if(R(n,function(l){var u=GC(r.zrId);u.animation=!0,G_(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=yt(c),v=h.length;if(v){o=h[v-1];var d=c[o];for(var g in d){var m=d[g];i[g]=i[g]||{d:""},i[g].d+=m.d||""}for(var y in f){var S=f[y].animation;S.indexOf(o)>=0&&(a=S)}}}),!!a){t.d=!1;var s=j$(i,r);return a.replace(o,s)}}function Yk(e){return Ee(e)?Uk[e]?"cubic-bezier("+Uk[e]+")":BA(e)?e:"":""}function G_(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof eM){var s=Uhe(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var ie=j$(A,r);return ie+" "+S[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=r.zrId+"-cls-"+q$();r.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function Yhe(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};Xk(n,t,r)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(a=Qb(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),Xk(n,t,r)}}function Xk(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+q$(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var Pd=Math.round;function K$(e){return e&&Ee(e.src)}function J$(e){return e&&$e(e.toDataURL)}function NM(e,t,r,n){Ohe(function(i,a){var o=i==="fill"||i==="stroke";o&&Lz(a)?eH(t,e,i,n):o&&zA(a)?tH(r,e,i,n):o&&a==="none"?e[i]="transparent":e[i]=a},t,r,!1),Qhe(r,e,n)}function FM(e,t){var r=Wae(t);r&&(r.each(function(n,i){n!=null&&(e[(Hk+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[Hk+"silent"]="true"))}function Zk(e){return Ws(e[0]-1)&&Ws(e[1])&&Ws(e[2])&&Ws(e[3]-1)}function Xhe(e){return Ws(e[4])&&Ws(e[5])}function VM(e,t,r){if(t&&!(Xhe(t)&&Zk(t))){var n=1e4;e.transform=Zk(t)?"translate("+Pd(t[4]*n)/n+" "+Pd(t[5]*n)/n+")":vae(t)}}function qk(e,t,r){for(var n=e.points,i=[],a=0;a"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Xn(h,m),Xn(v,m)}else if(h==null||v==null){var y=function(L,P){if(L){var E=L.elm,F=h||P.width,O=v||P.height;L.tag==="pattern"&&(u?(O=1,F/=a.width):c&&(F=1,O/=a.height)),L.attrs.width=F,L.attrs.height=O,E&&(E.setAttribute("width",F),E.setAttribute("height",O))}},S=YA(d,null,e,function(L){l||y(b,L),y(f,L)});S&&S.width&&S.height&&(h=h||S.width,v=v||S.height)}f=Kr("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else i.svgElement&&(f=Ze(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var w,x;l?w=x=1:u?(x=1,w=o.width/a.width):c?(w=1,x=o.height/a.height):o.patternUnits="userSpaceOnUse",w!=null&&!isNaN(w)&&(o.width=w),x!=null&&!isNaN(x)&&(o.height=x);var T=Rz(i);T&&(o.patternTransform=T);var b=Kr("pattern","",o,[f]),A=OM(b),M=n.patternCache,D=M[A];D||(D=n.zrId+"-p"+n.patternIdx++,M[A]=D,o.id=D,b=n.defs[D]=Kr("pattern",D,o,[f])),t[r]=h_(D)}}function eve(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=Kr("clipPath",a,o,[Q$(e,r)])}t["clip-path"]=h_(a)}function Jk(e){return document.createTextNode(e)}function lu(e,t,r){e.insertBefore(t,r)}function Qk(e,t){e.removeChild(t)}function eO(e,t){e.appendChild(t)}function rH(e){return e.parentNode}function nH(e){return e.nextSibling}function $w(e,t){e.textContent=t}var tO=58,tve=120,rve=Kr("","");function $C(e){return e===void 0}function Ua(e){return e!==void 0}function nve(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function bv(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Rd(e){var t,r=e.children,n=e.tag;if(Ua(n)){var i=e.elm=Z$(n);if(BM(rve,e),ge(r))for(t=0;ta?(d=r[l+1]==null?null:r[l+1].elm,iH(e,d,r,i,l)):d0(e,t,n,a))}function Zc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(BM(e,t),$C(t.text)?Ua(n)&&Ua(i)?n!==i&&ive(r,n,i):Ua(i)?(Ua(e.text)&&$w(r,""),iH(r,null,i,0,i.length-1)):Ua(n)?d0(r,n,0,n.length-1):Ua(e.text)&&$w(r,""):e.text!==t.text&&(Ua(n)&&d0(r,n,0,n.length-1),$w(r,t.text)))}function ave(e,t){if(bv(e,t))Zc(e,t);else{var r=e.elm,n=rH(r);Rd(t),n!==null&&(lu(n,t.elm,nH(r)),d0(n,[e],0,0))}return t}var ove=0,sve=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=rO(),this.configLayer=rO(),this.storage=r,this._opts=n=ce({},n),this.root=t,this._id="zr"+ove++,this._oldVNode=Wk(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=Z$("svg");BM(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",ave(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return Kk(t,GC(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=GC(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis;var o=[],s=this._bgVNode=lve(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=Kr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Se(yt(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(Kr("defs","defs",{},u)),t.animation){var c=zhe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=Kr("style","stl",{},[],c);o.push(f)}}return Wk(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},OM(this.renderToVNode({animation:et(t.cssAnimation,!0),emphasis:et(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:et(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(h&&l&&h[g]===l[g]);g--);for(var m=d-1;m>g;m--)o--,s=a[o-1];for(var y=g+1;y=s)}}for(var f=this.__startIndex;f15)break}}O.prevElClipPaths&&y.restore()};if(S)if(S.length===0)M=m.__endIndex;else for(var L=v.dpr,P=0;P0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?im:0),this._needsManuallyCompositing),c.__builtin__||RA("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&bi&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,h){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?it(n[t],r,!0):n[t]=r;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(ur);function Nf(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Ef(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var dp=function(e){j(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=zr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=gve,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){jo(this.childAt(0))},t.prototype.downplay=function(){Ko(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):kt(h,v,s,n),Aa(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,vr(h,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,h,v,d,g,m,y;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,h=a.focus,v=a.blurScope,g=a.labelStatesModels,m=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var S=a&&a.itemModel?a.itemModel:r.getItemModel(n),w=S.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),f=S.getModel(["select","itemStyle"]).getItemStyle(),c=S.getModel(["blur","itemStyle"]).getItemStyle(),h=w.get("focus"),v=w.get("blurScope"),d=w.get("disabled"),g=tn(S),m=w.getShallow("scale"),y=S.getShallow("cursor")}var x=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var T=rc(r.getItemVisual(n,"symbolOffset"),i);T&&(s.x=T[0],s.y=T[1]),y&&s.attr("cursor",y);var b=r.getItemVisual(n,"style"),A=b.fill;if(s instanceof ln){var M=s.style;s.useStyle(ce({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else s.__isEmptyBrush?s.useStyle(ce({},b)):s.useStyle(b),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),L=this._z2;D!=null?L==null&&(this._z2=s.z2,s.z2+=D):L!=null&&(s.z2=L,this._z2=null);var P=o&&o.useNameLabel;_n(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:A,defaultOpacity:b.opacity});function E(N){return P?r.getName(N):Nf(r,N)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var F=s.ensureState("emphasis");F.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;F.scaleX=this._sizeX*O,F.scaleY=this._sizeY*O,this.setSymbolScale(1),Cr(this,h,v,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Ke(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&il(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();il(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return lh(r.getItemVisual(n,"symbolSize"))},t}(qe);function gve(e,t){this.parent.drift(e,t)}function Ww(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function aO(e){return e!=null&&!Ye(e)&&(e={isIgnore:e}),e||{}}function oO(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:tn(t),cursorStyle:t.get("cursor")}}var pp=function(){function e(t){this.group=new qe,this._SymbolCtor=t||dp}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=aO(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=oO(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var h=c(f);if(Ww(t,h,f,r)){var v=new o(t,f,l,u);v.setPosition(h),t.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,h){var v=a.getItemGraphicEl(h),d=c(f);if(!Ww(t,d,f,r)){n.remove(v);return}var g=t.getItemVisual(f,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==g)n.remove(v),v=new o(t,f,l,u),v.setPosition(d);else{v.updateData(t,f,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):kt(v,y,i)}n.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var h=a.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=oO(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=aO(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function sH(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function yve(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function _ve(e,t,r,n,i,a,o,s){for(var l=yve(e,t),u=[],c=[],f=[],h=[],v=[],d=[],g=[],m=oH(i,t,o),y=e.getLayout("points")||[],S=t.getLayout("points")||[],w=0;w=i||g<0)break;if(ku(y,S)){if(l){g+=a;continue}break}if(g===r)e[a>0?"moveTo":"lineTo"](y,S),f=y,h=S;else{var w=y-u,x=S-c;if(w*w+x*x<.5){g+=a;continue}if(o>0){for(var T=g+a,b=t[T*2],A=t[T*2+1];b===y&&A===S&&m=n||ku(b,A))v=y,d=S;else{L=b-u,P=A-c;var O=y-u,N=b-y,V=S-c,Y=A-S,G=void 0,Z=void 0;if(s==="x"){G=Math.abs(O),Z=Math.abs(N);var J=L>0?1:-1;v=y-J*G*o,d=S,E=y+J*Z*o,F=S}else if(s==="y"){G=Math.abs(V),Z=Math.abs(Y);var re=P>0?1:-1;v=y,d=S-re*G*o,E=y,F=S+re*Z*o}else G=Math.sqrt(O*O+V*V),Z=Math.sqrt(N*N+Y*Y),D=Z/(Z+G),v=y-L*o*(1-D),d=S-P*o*(1-D),E=y+L*o*D,F=S+P*o*D,E=Cs(E,Ts(b,y)),F=Cs(F,Ts(A,S)),E=Ts(E,Cs(b,y)),F=Ts(F,Cs(A,S)),L=E-y,P=F-S,v=y-L*G/Z,d=S-P*G/Z,v=Cs(v,Ts(u,y)),d=Cs(d,Ts(c,S)),v=Ts(v,Cs(u,y)),d=Ts(d,Cs(c,S)),L=y-v,P=S-d,E=y+L*Z/G,F=S+P*Z/G}e.bezierCurveTo(f,h,v,d,y,S),f=E,h=F}else e.lineTo(y,S)}u=y,c=S,g+=a}return m}var lH=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Sve=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lH},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&ku(i[o*2-2],i[o*2-1]);o--);for(;a=0){var x=u?(d-l)*w+l:(v-s)*w+s;return u?[r,x]:[x,r]}s=v,l=d;break;case o.C:v=a[f++],d=a[f++],g=a[f++],m=a[f++],y=a[f++],S=a[f++];var T=u?Hy(s,v,g,y,r,c):Hy(l,d,m,S,r,c);if(T>0)for(var b=0;b=0){var x=u?Zr(l,d,m,S,A):Zr(s,v,g,y,A);return u?[r,x]:[x,r]}}s=y,l=S;break}}},t}(pt),wve=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(lH),uH=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new wve},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&ku(i[s*2-2],i[s*2-1]);s--);for(;ot){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function Cve(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Se(a.stops,function(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=bve(u,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,g=h[0].coord-d,m=h[v-1].coord+d,y=m-g;if(y<.001)return"transparent";R(h,function(w){w.offset=(w.coord-g)/y}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var S=new sp(0,0,0,0,h,!0);return S[i]=g,S[i+"2"]=m,S}}}function Tve(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Ave(a,t))){var o=t.mapDimension(a.dim),s={};return R(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Ave(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function Mve(e,t){return isNaN(e)||isNaN(t)}function Dve(e){for(var t=e.length/2;t>0&&Mve(e[t*2-2],e[t*2-1]);t--);return t-1}function fO(e,t){return[e[t*2],e[t*2+1]]}function Ive(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function hH(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var J=g.getState("emphasis").style;J.lineWidth=+g.style.lineWidth+1}Ke(g).seriesIndex=r.seriesIndex,Cr(g,Y,G,Z);var re=cO(r.get("smooth")),pe=r.get("smoothMonotone");if(g.setShape({smooth:re,smoothMonotone:pe,connectNulls:M}),m){var Me=l.getCalculationInfo("stackedOnSeries"),Le=0;m.useStyle(We(c.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Me&&(Le=cO(Me.get("smooth"))),m.setShape({smooth:re,stackedOnSmooth:Le,smoothMonotone:pe,connectNulls:M}),yn(m,r,"areaStyle"),Ke(m).seriesIndex=r.seriesIndex,Cr(m,Y,G,Z)}var Fe=function(Ge){a._changePolyState(Ge)};l.eachItemGraphicEl(function(Ge){Ge&&(Ge.onHoverStateChange=Fe)}),this._polyline.onHoverStateChange=Fe,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f,this._step=P,this._valueOrigin=x,r.get("triggerLineEvent")&&(this.packEventData(r,g),m&&this.packEventData(r,m))},t.prototype.packEventData=function(r,n){Ke(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Yu(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 c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=r.get("zlevel")||0,v=r.get("z")||0;u=new dp(o,s),u.x=c,u.y=f,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 Jt.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Yu(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 Jt.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;jy(this._polyline,r),n&&jy(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Sve({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new uH({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");$e(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=$e(f)?f(null):f;r.eachItemGraphicEl(function(v,d){var g=v;if(g){var m=[v.x,v.y],y=void 0,S=void 0,w=void 0;if(i)if(o){var x=i,T=n.pointToCoord(m);a?(y=x.startAngle,S=x.endAngle,w=-T[1]/180*Math.PI):(y=x.r0,S=x.r,w=T[0])}else{var b=i;a?(y=b.x,S=b.x+b.width,w=v.x):(y=b.y+b.height,S=b.y,w=v.y)}var A=S===y?0:(w-y)/(S-y);l&&(A=1-A);var M=$e(f)?f(d):c*A+h,D=g.getSymbolPath(),L=D.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),L&&L.animateFrom({style:{opacity:0}},{duration:300,delay:M}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(hH(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 It({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Dve(l);c>=0&&(_n(s,tn(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?aH(o,v):Nf(o,f)},enableTextSetter:!0},Lve(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),S=m.inverse,w=n.shape,x=S?y?w.x:w.y+w.height:y?w.x+w.width:w.y,T=(y?g:0)*(S?-1:1),b=(y?0:-g)*(S?-1:1),A=y?"x":"y",M=Ive(f,x,A),D=M.range,L=D[1]-D[0],P=void 0;if(L>=1){if(L>1&&!v){var E=fO(f,D[0]);u.attr({x:E[0]+T,y:E[1]+b}),o&&(P=h.getRawValue(D[0]))}else{var E=c.getPointOn(x,A);E&&u.attr({x:E[0]+T,y:E[1]+b});var F=h.getRawValue(D[0]),O=h.getRawValue(D[1]);o&&(P=Kz(i,d,F,O,M.t))}a.lastFrameIndex=D[0]}else{var N=r===1||a.lastFrameIndex>0?D[0]:0,E=fO(f,N);o&&(P=h.getRawValue(N)),u.attr({x:E[0]+T,y:E[1]+b})}if(o){var V=th(u);typeof V.setLabelText=="function"&&V.setLabelText(P)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,h=_ve(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,g=h.next,m=h.stackedOnNext;if(o&&(v=As(h.current,i,o,l),d=As(h.stackedOnCurrent,i,o,l),g=As(h.next,i,o,l),m=As(h.stackedOnNext,i,o,l)),uO(v,g)>3e3||c&&uO(d,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=v;var y={shape:{points:g}};h.current!==v&&(y.shape.__points=h.next),u.stopAnimation(),kt(u,y,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),kt(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var S=[],w=h.status,x=0;xt&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;rt&&(t=a,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},Eve=function(e){return Math.round(e.length/2)};function vH(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;Ee(a)?d=Rve[a]:$e(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,Eve))}}}}}function kve(e){e.registerChartView(Pve),e.registerSeriesModel(pve),e.registerLayout(mp("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,vH("line"))}var Ed=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return as(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)R(a.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),g=h.getTickModel().get("alignWithLabel"),m=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!g&&(m+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var S=void 0,w=void 0,x=1,T=0;Tm){w=(b+S)/2;break}T===1&&(x=A-d[0].tickValue)}w==null&&(S?S&&(w=d[d.length-1].coord):w=d[0].coord),s[v]=h.toGlobalCoord(w)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(ur);ur.registerClass(Ed);var Ove=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return as(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=gl(Ed.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Ed),Nve=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),p0=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new Nve},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){bd(a,r,Ke(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Jt),hO={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=Yw(t.x,e.x),s=Xw(t.x+t.width,i),l=Yw(t.y,e.y),u=Xw(t.y+t.height,a),c=si?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Xw(t.r,e.r),a=Yw(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},vO={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Ct({shape:ce({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?p0:qn,c=new u({shape:n,z2:1});c.name="item";var f=dH(i);if(c.calculateTextPosition=Fve(f,{isRoundCap:u===p0}),a){var h=c.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?kt:vr)(c,{shape:d},a)}return c}};function Gve(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function dO(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?kt:vr)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?kt:vr)(r,{shape:u},c,i)}function pO(e,t){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Wve(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function dH(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function mO(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=wu(n.getModel("itemStyle"),c,!0);ce(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var h=n.getShallow("cursor");h&&e.attr("cursor",h);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=tn(n);_n(e,d,{labelFetcher:a,labelDataIndex:r,defaultText:Nf(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var g=e.getTextContent();if(s&&g){var m=n.get(["label","position"]);e.textConfig.inside=m==="middle"?!0:null,Vve(e,m==="outside"?v:m,dH(o),n.get(["label","rotate"]))}kG(g,d,a.getRawValue(r),function(S){return aH(t,S)});var y=n.getModel(["emphasis"]);Cr(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),yn(e,n),Wve(i)&&(e.style.fill="none",e.style.stroke="none",R(e.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function Uve(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var Yve=function(){function e(){}return e}(),yO=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new Yve},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function Xve(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function pH(e,t,r){if(ic(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function Zve(e,t,r){var n=e.type==="polar"?qn:Ct;return new n({shape:pH(t,r,e),silent:!0,z2:0})}function qve(e){e.registerChartView(zve),e.registerSeriesModel(Ove),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,tt(S$,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,w$("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,vH("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var wO=Math.PI*2,lm=Math.PI/180;function gH(e,t){return Hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function mH(e,t){var r=gH(e,t),n=e.get("center"),i=e.get("radius");ge(i)||(i=[0,i]);var a=Ie(r.width,t.getWidth()),o=Ie(r.height,t.getHeight()),s=Math.min(a,o),l=Ie(i[0],s/2),u=Ie(i[1],s/2),c,f,h=e.coordinateSystem;if(h){var v=h.dataToPoint(n);c=v[0]||0,f=v[1]||0}else ge(n)||(n=[n,n]),c=Ie(n[0],a)+r.x,f=Ie(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function jve(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=gH(n,r),s=mH(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*lm,v=n.get("endAngle"),d=n.get("padAngle")*lm;v=v==="auto"?h-wO:-v*lm;var g=n.get("minAngle")*lm,m=g+d,y=0;i.each(a,function(Y){!isNaN(Y)&&y++});var S=i.getSum(a),w=Math.PI/(S||y)*2,x=n.get("clockwise"),T=n.get("roseType"),b=n.get("stillShowZeroSum"),A=i.getDataExtent(a);A[0]=0;var M=x?1:-1,D=[h,v],L=M*d/2;XA(D,!x),h=D[0],v=D[1];var P=yH(n);P.startAngle=h,P.endAngle=v,P.clockwise=x;var E=Math.abs(v-h),F=E,O=0,N=h;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(Y,G){var Z;if(isNaN(Y)){i.setItemLayout(G,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:f,r:T?NaN:c});return}T!=="area"?Z=S===0&&b?w:Y*w:Z=E/y,ZZ?(re=N+M*Z/2,pe=re):(re=N+L,pe=J-L),i.setItemLayout(G,{angle:Z,startAngle:re,endAngle:pe,clockwise:x,cx:l,cy:u,r0:f,r:T?Ht(Y,A,[f,c]):c}),N=J}),Fr?y:m,T=Math.abs(w.label.y-r);if(T>=x.maxY){var b=w.label.x-t-w.len2*i,A=n+w.len,M=Math.abs(b)e.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var g=n.getBoundingRect();a.width=g.width;var m=(n.style.margin||0)+2.1;a.height=g.height+m,a.y-=(a.height-f)/2}}}function Zw(e){return e.position==="center"}function Qve(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*Kve,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var A in b.states)if(b.states[A].ignore===!1)return!0;return!1}t.each(function(b){var A=t.getItemGraphicEl(b),M=A.shape,D=A.getTextContent(),L=A.getTextGuideLine(),P=t.getItemModel(b),E=P.getModel("label"),F=E.get("position")||P.get(["emphasis","label","position"]),O=E.get("distanceToLabelLine"),N=E.get("alignTo"),V=Ie(E.get("edgeDistance"),u),Y=E.get("bleedMargin"),G=P.getModel("labelLine"),Z=G.get("length");Z=Ie(Z,u);var J=G.get("length2");if(J=Ie(J,u),Math.abs(M.endAngle-M.startAngle)0?"right":"left":pe>0?"left":"right"}var te=Math.PI,_e=0,fe=E.get("rotate");if(Pt(fe))_e=fe*(te/180);else if(F==="center")_e=0;else if(fe==="radial"||fe===!0){var $=pe<0?-re+te:-re;_e=$}else if(fe==="tangential"&&F!=="outside"&&F!=="outer"){var U=Math.atan2(pe,Me);U<0&&(U=te*2+U);var Q=Me>0;Q&&(U=te+U),_e=U-te}if(a=!!_e,D.x=Le,D.y=Fe,D.rotation=_e,D.setStyle({verticalAlign:"middle"}),le){D.setStyle({align:ie});var Pe=D.states.select;Pe&&(Pe.x+=D.x,Pe.y+=D.y)}else{var ae=D.getBoundingRect().clone();ae.applyTransform(D.getComputedTransform());var xe=(D.style.margin||0)+2.1;ae.y-=xe/2,ae.height+=xe,r.push({label:D,labelLine:L,position:F,len:Z,len2:J,minTurnAngle:G.get("minTurnAngle"),maxSurfaceAngle:G.get("maxSurfaceAngle"),surfaceNormal:new rt(pe,Me),linePoints:Ge,textAlign:ie,labelDistance:O,labelAlignTo:N,edgeDistance:V,bleedMargin:Y,rect:ae,unconstrainedWidth:ae.width,labelStyleWidth:D.style.width})}A.setTextConfig({inside:le})}}),!a&&e.get("avoidLabelOverlap")&&Jve(r,n,i,l,u,h,c,f);for(var g=0;g0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=a.r0}},t.type="pie",t}(Jt);function ch(e,t,r){t=ge(t)&&{coordDimensions:t}||ce({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=hp(n,t).dimensions,a=new Wn(i,e);return a.initData(n,r),a}var _p=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),rde=Tt(),nde=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new _p(ke(this.getData,this),ke(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ch(this,{coordDimensions:["value"],encodeDefaulter:tt(cM,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=rde(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Zae(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Uu(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(ur);function ide(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Pt(o)&&!isNaN(o)&&o<0)})}}}function ade(e){e.registerChartView(tde),e.registerSeriesModel(nde),z4("pie",e.registerAction),e.registerLayout(tt(jve,"pie")),e.registerProcessor(yp("pie")),e.registerProcessor(ide("pie"))}var ode=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return as(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(ur),SH=4,sde=function(){function e(){}return e}(),lde=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new sde},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=0;u--){var c=u*2,f=a[c]-s/2,h=a[c+1]-l/2;if(r>=f&&n>=h&&r<=f+s&&n<=h+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),cde=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=mp("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new ude:new pp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Jt),fde=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(mt),WC=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Vr).models[0]},t.type="cartesian2dAxis",t}(mt);Gr(WC,vp);var wH={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},hde=it({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},wH),zM=it({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},wH),vde=it({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},zM),dde=We({logBase:10},zM);const xH={category:hde,value:zM,time:vde,log:dde};var pde={value:1,category:1,time:1,log:1};function Ff(e,t,r,n){R(pde,function(i,a){var o=it(it({},xH[a],!0),n,!0),s=function(l){j(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=Td(this),v=h?ih(c):{},d=f.getTheme();it(c,d.get(a+"Axis")),it(c,this.getDefaultOption()),c.type=bO(c),h&&al(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=FC.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",bO)}function bO(e){return e.type||(e.data?"category":"value")}var gde=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Se(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Wt(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),UC=["x","y"];function CO(e){return e.type==="interval"||e.type==="time"}var mde=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=UC,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!CO(r)||!CO(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-i[0]*c,v=o[1]-a[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=jf([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new at(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return mn(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return mn(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new at(a,o,s,l)},t}(gde),yde=function(e){j(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(La);function YC(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[s],a.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),on(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function TO(e){return e.get("coordinateSystem")==="cartesian2d"}function AO(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Vr).models[0];t[n]=a}),t}var qw=Math.log;function bH(e,t,r){var n=Qo.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=A$(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var h=qw(e.base);u=[qw(u[0])/h,qw(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=n.getExtent.call(e);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=n.getInterval.call(e),g=u[0],m=u[1];if(c&&f)d=(m-g)/o;else if(c)for(m=u[0]+d*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)d=kw(d),g=u[1]-d*o;else{var y=e.getTicks().length-1;y>o&&(d=kw(d));var S=d*o;m=Math.ceil(u[1]/d)*d,g=Ar(m-S),g<0&&u[0]>=0?(g=0,m=Ar(S)):m>0&&u[1]<=0&&(m=0,g=-Ar(S))}var w=(i[0].value-a[0].value)/s,x=(i[o].value-a[o].value)/s;n.setExtent.call(e,g+d*w,m+d*x),n.setInterval.call(e,d),(w||x)&&n.setNiceExtent.call(e,g+d,m-d)}var _de=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=UC,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=yt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,g=v.scale;VC(g)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(Of(g,d),VC(g)&&(s=v))}c.length&&(s||(s=c.pop(),Of(s.scale,s.model)),R(c,function(m){bH(m.scale,m.model,s.scale)}))}}i(n.x),i(n.y);var a={};R(n.x,function(o){MO(n,"y",o,a)}),R(n.y,function(o){MO(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Hr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(R(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Qfe(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),R(this._coordsList,function(u){u.calcAffineTransform()});function l(){R(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),Sde(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Ye(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):_d(i-Us)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),IO={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(mn(s,s,o),mn(l,l,o));var c=ce({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new jr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Rf(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);Ee(h)&&(h=[h,h]),(Ee(v)||Pt(v))&&(v=[v,v]);var d=rc(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],m=v[1];R([{rotate:e.rotation+Math.PI/2,offset:d[0],r:0},{rotate:e.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,S){if(h[S]!=="none"&&h[S]!=null){var w=zr(h[S],-g/2,-m/2,g,m,c.stroke,!0),x=y.r+y.offset,T=u?l:s;w.attr({rotation:y.rotate,x:T[0]+x*Math.cos(e.rotation),y:T[1]-x*Math.sin(e.rotation),silent:!0,z2:11}),r.add(w)}})}}},axisTickLabel:function(e,t,r,n){var i=bde(r,n,t,e),a=Tde(r,n,t,e);if(xde(t,a,i),Cde(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=z$(Se(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));H$(o)}},axisName:function(e,t,r,n){var i=on(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,PO(a)?e.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Us/180);var d;PO(a)?h=Un.innerTextLayout(e.rotation,v??e.rotation,o):(h=wde(e.rotation,a,v||0,u),d=e.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),m=t.get("nameTruncate",!0)||{},y=m.ellipsis,S=on(e.nameTruncateMaxWidth,m.maxWidth,d),w=new It({x:f[0],y:f[1],rotation:h.rotation,silent:Un.isLabelSilent(t),style:lr(s,{text:i,font:g,overflow:"truncate",width:S,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(eh({el:w,componentModel:t,itemName:i}),w.__fullText=i,w.anid="name",t.get("triggerEvent")){var x=Un.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,Ke(w).eventData=x}n.add(w),w.updateTransform(),r.add(w),w.decomposeTransform()}}};function wde(e,t,r,n){var i=Gz(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return _d(i-Us/2)?(o=l?"bottom":"top",a="center"):_d(i-Us*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iUs/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function xde(e,t,r){if(!M$(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],h=r[r.length-2];n===!1?(zi(a),zi(u)):LO(a,o)&&(n?(zi(o),zi(c)):(zi(a),zi(u))),i===!1?(zi(s),zi(f)):LO(l,s)&&(i?(zi(l),zi(h)):(zi(s),zi(f)))}}function zi(e){e&&(e.ignore=!0)}function LO(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=f_([]);return ec(i,i,-e.rotation),r.applyTransform(Wo([],i,e.getLocalTransform())),n.applyTransform(Wo([],i,t.getLocalTransform())),r.intersect(n)}}function PO(e){return e==="middle"||e==="center"}function CH(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function Pde(e){var t=GM(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=XC(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]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var g=l;d.color!=null&&(g=We({color:d.color},l));var m=it(Ze(d),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:h},!1);if(Ee(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else $e(c)&&(m.name=c(m.name,m));var S=new $t(m,null,this.ecModel);return Gr(S,vp.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:it({lineStyle:{color:"#bbb"}},Kh.axisLine),axisLabel:um(Kh.axisLabel,!1),axisTick:um(Kh.axisTick,!1),splitLine:um(Kh.splitLine,!0),splitArea:um(Kh.splitArea,!0),indicator:[]},t}(mt),Wde=["axisLine","axisTickLabel","axisName"],Ude=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=Se(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Un(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});R(a,function(o){R(Wde,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),h=l.get("color"),v=u.get("color"),d=ge(h)?h:[h],g=ge(v)?v:[v],m=[],y=[];function S(N,V,Y){var G=Y%V.length;return N[G]=N[G]||[],G}if(a==="circle")for(var w=i[0].getTicksCoords(),x=n.cx,T=n.cy,b=0;b3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;Jw(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),h=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);Jw(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!FO(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;Jw(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(ia);function Jw(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(Zo(n.event),LH(e,t,r,n,i))}function LH(e,t,r,n,i){i.isAvailableBehavior=ke(dy,null,r,n),e.trigger(t,i)}function dy(e,t,r){var n=r[e];return!e||n&&(!Ee(n)||t.event[n+"Key"])}function HM(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function WM(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Jde={axisPointer:1,tooltip:1,brush:1};function $_(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!Jde.hasOwnProperty(n.mainType)&&i&&i.model!==r}function PH(e){if(Ee(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var Qw,g0={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},VO=yt(g0),m0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},BO=yt(m0),Qde=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=PH(t);this._defsUsePending=[];var i=new qe;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Si(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;rpe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=H_(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(f=EH(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var v=i;i=new qe,i.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Ct({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=Qw[s];if(c&&Oe(Qw,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var h={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var v=zO[s];if(v&&Oe(zO,s)){var d=v.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=d)}}if(l&&l.isGroup)for(var m=t.firstChild;m;)m.nodeType===1?this._parseNode(m,l,n,u,a,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},e.prototype._parseText=function(t,r){var n=new Pf({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),epe(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){Qw={g:function(t,r){var n=new qe;return Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Ct;return Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new is;return Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new jr;return Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new w_;return Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=HO(n));var a=new jn({shape:{points:i||[]},silent:!0});return Gi(r,a),Si(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=HO(n));var a=new Kn({shape:{points:i||[]},silent:!0});return Gi(r,a),Si(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new ln;return Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new qe;return Gi(r,s),Si(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new qe;return Gi(r,s),Si(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=xG(n);return Gi(r,i),Si(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),zO={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new sp(t,r,n,i);return GO(e,a),$O(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new AG(t,r,n);return GO(e,i),$O(e,i),i}};function GO(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function $O(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};RH(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Gi(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),We(t.__inheritedStyle,e.__inheritedStyle))}function HO(e){for(var t=H_(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=H_(o);switch(i=i||Mi(),s){case"translate":ao(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":VA(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ec(i,i,-parseFloat(l[0])*ex,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*ex);Wo(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*ex);Wo(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var UO=/([^\s:;]+)\s*:\s*([^:;]+)/g;function RH(e,t,r){var n=e.getAttribute("style");if(n){UO.lastIndex=0;for(var i;(i=UO.exec(n))!=null;){var a=i[1],o=Oe(g0,a)?g0[a]:null;o&&(t[o]=i[2]);var s=Oe(m0,a)?m0[a]:null;s&&(r[s]=i[2])}}}function ope(e,t,r){for(var n=0;n0,m={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=Ne(),n=Ne(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(v,d){return d&&(v=d(v)),v&&[v[0]*a.scaleX+a.x,v[1]*a.scaleY+a.y]}function f(v){for(var d=[],g=!u&&l&&l.project,m=0;m=0)&&(h=i);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;_n(t,tn(n),{labelFetcher:h,labelDataIndex:f,defaultText:r},v);var d=t.getTextContent();if(d&&(kH(d).ignore=d.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function jO(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ke(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function KO(e,t,r,n,i){e.data||eh({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function JO(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Cr(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&wse(t,i,r),o}function QO(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),R(e,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(ur);function Ape(e,t){var r={};return R(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c1?(x.width=w,x.height=w/m):(x.height=w,x.width=w*m),x.y=S[1]-x.height/2,x.x=S[0]-x.width/2;else{var T=e.getBoxLayoutParams();T.aspect=m,x=Hr(T,{width:d,height:g})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Lpe(e,t){R(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var Ppe=function(){function e(){this.dimensions=NH}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new jC(l+s,l,ce({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=nN,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),R(a,function(o,s){var l=Se(o,function(c){return c.get("nameMap")}),u=new jC(s,s,ce({nameMap:EA(l)},i(o[0])));u.zoomLimit=on.apply(null,Se(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=nN,u.resize(o[0],r),R(o,function(c){c.coordinateSystem=u,Lpe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=Ne(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function Fpe(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){zpe(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=Gpe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function Vpe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function aN(e){return arguments.length?e:Wpe}function Cv(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Bpe(e,t){return Hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function zpe(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function Gpe(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=tx(s),a=rx(a),s&&a;){i=tx(i),o=rx(o),i.hierNode.ancestor=e;var h=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);h>0&&(Hpe($pe(s,e,r),e,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!tx(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!rx(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function tx(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function rx(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function $pe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function Hpe(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function Wpe(e,t){return e.parentNode===t.parentNode?1:2}var Upe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Ype=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Upe},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=Ie(n.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*h,r.moveTo(o[0],o[1]),r.lineTo(v[0],v[1]),r.moveTo(s[0],s[1]),v[c]=s[c],r.lineTo(v[0],v[1]),v[c]=l[c],r.lineTo(v[0],v[1]),r.lineTo(l[0],l[1]);for(var d=1;dS.x,T||(x=x-Math.PI));var A=T?"left":"right",M=s.getModel("label"),D=M.get("rotate"),L=D*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:M.get("position")||A,rotation:D==null?-x:L,origin:"center"}),P.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),F=E==="relative"?zy(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;F&&(Ke(r).focus=F),Zpe(i,o,c,r,d,v,g,n),r.__edge&&(r.onHoverStateChange=function(O){if(O!=="blur"){var N=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);N&&N.hoverState===ip||jy(r.__edge,O)}})}function Zpe(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),h=e.get(["lineStyle","curveness"]),v=e.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),g=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(g||(g=n.__edge=new op({shape:KC(c,f,h,i,i)})),kt(g,{shape:KC(c,f,h,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var m=t.children,y=[],S=0;Sr&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r=0){var n=r.getData().tree.root,i=e.targetNode;if(Ee(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function $H(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function qM(e,t){var r=$H(e);return ht(r,t)>=0}function W_(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var nge=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new $t(i,this,this.ecModel),o=ZM.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=a),h})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return rn("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=W_(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(ur);function ige(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)r.push(i[a])}}function age(e,t){e.eachSeriesByType("tree",function(r){oge(r,t)})}function oge(e,t){var r=Bpe(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=aN(function(w,x){return(w.parentNode===x.parentNode?1:2)/w.depth})):(i=r.width,a=r.height,o=aN());var s=e.getData().tree.root,l=s.children[0];if(l){Npe(s),ige(l,Fpe,o),s.hierNode.modifier=-l.hierNode.prelim,Qh(l,Vpe);var u=l,c=l,f=l;Qh(l,function(w){var x=w.getLayout().x;xc.getLayout().x&&(c=w),w.depth>f.depth&&(f=w)});var h=u===c?1:o(u,c)/2,v=h-u.getLayout().x,d=0,g=0,m=0,y=0;if(n==="radial")d=i/(c.getLayout().x+h+v),g=a/(f.depth-1||1),Qh(l,function(w){m=(w.getLayout().x+v)*d,y=(w.depth-1)*g;var x=Cv(m,y);w.setLayout({x:x.x,y:x.y,rawX:m,rawY:y},!0)});else{var S=e.getOrient();S==="RL"||S==="LR"?(g=a/(c.getLayout().x+h+v),d=i/(f.depth-1||1),Qh(l,function(w){y=(w.getLayout().x+v)*g,m=S==="LR"?(w.depth-1)*d:i-(w.depth-1)*d,w.setLayout({x:m,y},!0)})):(S==="TB"||S==="BT")&&(d=i/(c.getLayout().x+h+v),g=a/(f.depth-1||1),Qh(l,function(w){m=(w.getLayout().x+v)*d,y=S==="TB"?(w.depth-1)*g:a-(w.depth-1)*g,w.setLayout({x:m,y},!0)}))}}}function sge(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");ce(s,o)})})}function lge(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=YM(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function uge(e){e.registerChartView(Xpe),e.registerSeriesModel(nge),e.registerLayout(age),e.registerVisual(sge),lge(e)}var cN=["treemapZoomToNode","treemapRender","treemapMove"];function cge(e){for(var t=0;t1;)a=a.parentNode;var o=TC(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var fge=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};WH(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new $t({itemStyle:o},this,n);a=r.levels=hge(a,n);var l=Se(a||[],function(f){return new $t(f,s,n)},this),u=ZM.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),g=d?l[d.depth]:null;return h.parentModel=g||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return rn("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=W_(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},ce(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=Ne(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){HH(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(ur);function WH(e){var t=0;R(e.children,function(n){WH(n);var i=n.value;ge(i)&&(i=i[0]),t+=i});var r=e.value;ge(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),ge(e.value)?e.value[0]=r:e.value=r}function hge(e,t){var r=Yt(t.get("color")),n=Yt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;R(e,function(s){var l=new $t(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}var vge=8,fN=8,nx=5,dge=function(){function e(t){this.group=new qe,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),P_(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=$r(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+vge*2,r.emptyItemWidth);r.totalWidth+=s+fN,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=ble(r.pos,r.box),h=r.totalWidth,v=r.renderList,d=i.getModel("itemStyle").getItemStyle(),g=v.length-1;g>=0;g--){var m=v[g],y=m.node,S=m.width,w=m.text;h>f.width&&(h-=S-u,S=u,w=null);var x=new jn({shape:{points:pge(l,0,S,c,g===v.length-1,g===0)},style:We(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new It({style:lr(a,{text:w})}),textConfig:{position:"inside"},z2:Jf*1e4,onclick:tt(s,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=lr(o,{text:w}),x.ensureState("emphasis").style=d,Cr(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),gge(x,t,y),l+=S+fN}},e.prototype.remove=function(){this.group.removeAll()},e}();function pge(e,t,r,n,i,a){var o=[[i?e:e-nx,t],[e+r,t],[e+r,t+n],[i?e:e-nx,t+n]];return!a&&o.splice(2,0,[e+r+nx,t+n/2]),!i&&o.push([e,t+n/2]),o}function gge(e,t,r){Ke(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&W_(r,t)}}var mge=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;ivN||Math.abs(r.dy)>vN)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new at(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=a,u){var h=u.min||0,v=u.max||1/0;f=Math.max(Math.min(v,f),h)}var d=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;n-=g.x,i-=g.y;var m=Mi();ao(m,m,[-n,-i]),VA(m,m,[d,d]),ao(m,m,[n,i]),l.applyTransform(m),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&r0(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new dge(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(qM(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=ev(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(Jt);function ev(){return{nodeGroup:[],background:[],content:[]}}function bge(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),h=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,d=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),S=s&&s.getRawIndex(),w=o.viewChildren,x=c.upperHeight,T=w&&w.length,b=h.getModel("itemStyle"),A=h.getModel(["emphasis","itemStyle"]),M=h.getModel(["blur","itemStyle"]),D=h.getModel(["select","itemStyle"]),L=b.get("borderRadius")||0,P=Le("nodeGroup",JC);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),y0(P).nodeWidth=v,y0(P).nodeHeight=d,c.isAboveViewRoot)return P;var E=Le("background",hN,u,Sge);E&&Z(P,E,T&&c.upperLabelHeight);var F=h.getModel("emphasis"),O=F.get("focus"),N=F.get("blurScope"),V=F.get("disabled"),Y=O==="ancestor"?o.getAncestorsIndices():O==="descendant"?o.getDescendantIndices():O;if(T)xd(P)&&gu(P,!1),E&&(gu(E,!V),f.setItemGraphicEl(o.dataIndex,E),mC(E,Y,N));else{var G=Le("content",hN,u,wge);G&&J(P,G),E.disableMorphing=!0,E&&xd(E)&&gu(E,!1),gu(P,!V),f.setItemGraphicEl(o.dataIndex,P),mC(P,Y,N)}return P;function Z(ie,le,de){var me=Ke(le);if(me.dataIndex=o.dataIndex,me.seriesIndex=e.seriesIndex,le.setShape({x:0,y:0,width:v,height:d,r:L}),m)re(le);else{le.invisible=!1;var be=o.getVisual("style"),Re=be.stroke,H=gN(b);H.fill=Re;var W=tu(A);W.fill=A.get("borderColor");var te=tu(M);te.fill=M.get("borderColor");var _e=tu(D);if(_e.fill=D.get("borderColor"),de){var fe=v-2*g;pe(le,Re,be.opacity,{x:g,y:0,width:fe,height:x})}else le.removeTextContent();le.setStyle(H),le.ensureState("emphasis").style=W,le.ensureState("blur").style=te,le.ensureState("select").style=_e,Zu(le)}ie.add(le)}function J(ie,le){var de=Ke(le);de.dataIndex=o.dataIndex,de.seriesIndex=e.seriesIndex;var me=Math.max(v-2*g,0),be=Math.max(d-2*g,0);if(le.culling=!0,le.setShape({x:g,y:g,width:me,height:be,r:L}),m)re(le);else{le.invisible=!1;var Re=o.getVisual("style"),H=Re.fill,W=gN(b);W.fill=H,W.decal=Re.decal;var te=tu(A),_e=tu(M),fe=tu(D);pe(le,H,Re.opacity,null),le.setStyle(W),le.ensureState("emphasis").style=te,le.ensureState("blur").style=_e,le.ensureState("select").style=fe,Zu(le)}ie.add(le)}function re(ie){!ie.invisible&&a.push(ie)}function pe(ie,le,de,me){var be=h.getModel(me?pN:dN),Re=$r(h.get("name"),null),H=be.getShallow("show");_n(ie,tn(h,me?pN:dN),{defaultText:H?Re:null,inheritColor:le,defaultOpacity:de,labelFetcher:e,labelDataIndex:o.dataIndex});var W=ie.getTextContent();if(W){var te=W.style,_e=OA(te.padding||0);me&&(ie.setTextConfig({layoutRect:me}),W.disableLabelLayout=!0),W.beforeUpdate=function(){var $=Math.max((me?me.width:ie.shape.width)-_e[1]-_e[3],0),U=Math.max((me?me.height:ie.shape.height)-_e[0]-_e[2],0);(te.width!==$||te.height!==U)&&W.setStyle({width:$,height:U})},te.truncateMinChar=2,te.lineOverflow="truncate",Me(te,me,c);var fe=W.getState("emphasis");Me(fe?fe.style:null,me,c)}}function Me(ie,le,de){var me=ie?ie.text:null;if(!le&&de.isLeafRoot&&me!=null){var be=e.get("drillDownIcon",!0);ie.text=be?be+" "+me:me}}function Le(ie,le,de,me){var be=S!=null&&r[ie][S],Re=i[ie];return be?(r[ie][S]=null,Fe(Re,be)):m||(be=new le,be instanceof na&&(be.z2=Cge(de,me)),Ge(Re,be)),t[ie][y]=be}function Fe(ie,le){var de=ie[y]={};le instanceof JC?(de.oldX=le.x,de.oldY=le.y):de.oldShape=ce({},le.shape)}function Ge(ie,le){var de=ie[y]={},me=o.parentNode,be=le instanceof qe;if(me&&(!n||n.direction==="drillDown")){var Re=0,H=0,W=i.background[me.getRawIndex()];!n&&W&&W.oldShape&&(Re=W.oldShape.width,H=W.oldShape.height),be?(de.oldX=0,de.oldY=H):de.oldShape={x:Re,y:H,width:0,height:0}}de.fadein=!be}}function Cge(e,t){return e*_ge+t}var Nd=R,Tge=Ye,_0=-1,en=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=Ze(t);this.type=n,this.mappingMethod=r,this._normalizeData=Dge[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(ix(i),Age(i)):r==="category"?i.categories?Mge(i):ix(i,!0):(Xn(r!=="linear"||i.dataExtent),ix(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ke(this._normalizeData,this)},e.listVisualTypes=function(){return yt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Ye(t)?R(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=ge(t)?[]:Ye(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&Nd(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(ge(t))t=t.slice();else if(Tge(t)){var r=[];Nd(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function ix(e,t){var r=e.visual,n=[];Ye(r)?Nd(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),UH(e,n)}function fm(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:QC([0,1])}}function mN(e){var t=this.option.visual;return t[Math.round(Ht(e,[0,1],[0,t.length-1],!0))]||{}}function tv(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function Tv(e){var t=this.option.visual;return t[this.option.loop&&e!==_0?e%t.length:e]}function ru(){return this.option.visual[0]}function QC(e){return{linear:function(t){return Ht(t,e,this.option.visual,!0)},category:Tv,piecewise:function(t,r){var n=eT.call(this,r);return n==null&&(n=Ht(t,e,this.option.visual,!0)),n},fixed:ru}}function eT(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=en.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function UH(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Se(t,function(r){var n=Di(r);return n||[0,0,0,1]})),t}var Dge={linear:function(e){return Ht(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=en.findPieceIndex(e,t,!0);if(r!=null)return Ht(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??_0},fixed:Er};function hm(e,t,r){return e?t<=r:t=r.length||g===r[g.depth]){var y=kge(i,l,g,m,d,n);XH(g,y,r,n)}})}}}function Pge(e,t,r){var n=ce({},t),i=r.designatedVisualItemStyle;return R(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function yN(e){var t=ax(e,"color");if(t){var r=ax(e,"colorAlpha"),n=ax(e,"colorSaturation");return n&&(t=zv(t,null,null,n)),r&&(t=Wy(t,r)),t}}function Rge(e,t){return t!=null?zv(t,null,null,e):null}function ax(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function Ege(e,t,r,n,i,a){if(!(!a||!a.length)){var o=ox(t,"color")||i.color!=null&&i.color!=="none"&&(ox(t,"colorAlpha")||ox(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var h=new en(f);return YH(h).drColorMappingBy=c,h}}}function ox(e,t){var r=e.get(t);return ge(r)&&r.length?{name:t,range:r}:null}function kge(e,t,r,n,i,a){var o=ce({},t);if(i){var s=i.type,l=s==="color"&&YH(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Fd=Math.max,S0=Math.min,_N=on,jM=R,ZH=["itemStyle","borderWidth"],Oge=["itemStyle","gapWidth"],Nge=["upperLabel","show"],Fge=["upperLabel","height"];const Vge={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=Hr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=Ie(_N(s.width,l[0]),i),c=Ie(_N(s.height,l[1]),a),f=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=Od(n,h,e),d=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,g=e.getViewRoot(),m=$H(g);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?Wge(e,v,g,u,c):d?[d.width,d.height]:[u,c],S=o.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var w={squareRatio:o.squareRatio,sort:S,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(x),qH(g,w,!1,0),x=g.getLayout(),jM(m,function(b,A){var M=(m[A+1]||g).getValue();b.setLayout(ce({dataExtent:[M,M],borderWidth:0,upperHeight:0},x))})}var T=e.getData().tree.root;T.setLayout(Uge(s,d,v),!0),e.setLayoutInfo(s),jH(T,new at(-s.x,-s.y,i,a),m,g,0)}};function qH(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(ZH),u=s.get(Oge)/2,c=KH(s),f=Math.max(l,c),h=l-u,v=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Fd(i-2*h,0),a=Fd(a-h-v,0);var d=i*a,g=Bge(e,s,d,t,r,n);if(g.length){var m={x:h,y:v,width:i,height:a},y=S0(i,a),S=1/0,w=[];w.area=0;for(var x=0,T=g.length;x=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function Hge(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;an&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Fd(u*n/l,l/(u*i)):1/0}function SN(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,h=e.length;fER&&(u=ER),a=s}un&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(T[0]=-T[0],T[1]=-T[1]);var A=x[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var M=-Math.atan2(x[1],x[0]);f[0].8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*y+c[0],a.y=-h[1]*S+c[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*A+c[0],a.y=c[1]+D,d=x[0]<0?"right":"left",a.originX=-y*A,a.originY=-D;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+D,d="center",a.originY=-D;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*A+f[0],a.y=f[1]+D,d=x[0]>=0?"right":"left",a.originX=y*A,a.originY=-D;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||g,align:a.__align||d})}},t}(qe),tD=function(){function e(t){this.group=new qe,this._LineCtor=t||eD}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=AN(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=AN(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!ume(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function AN(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:tn(t)}}function MN(e){return isNaN(e[0])||isNaN(e[1])}function fx(e){return e&&!MN(e[0])&&!MN(e[1])}var hx=[],vx=[],dx=[],Fc=an,px=Mu,DN=Math.abs;function IN(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){hx[0]=Fc(n[0],i[0],a[0],c),hx[1]=Fc(n[1],i[1],a[1],c);var f=DN(px(hx,t)-l);f=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function gx(e,t){var r=[],n=gd,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Ho(u[0]),Ho(u[1])],u[2]&&u.__original.push(Ho(u[2])));var h=u.__original;if(u[2]!=null){if(Bn(i[0],h[0]),Bn(i[1],h[2]),Bn(i[2],h[1]),c&&c!=="none"){var v=Mv(s.node1),d=IN(i,h[0],v*t);n(i[0][0],i[1][0],i[2][0],d,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],d,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var v=Mv(s.node2),d=IN(i,h[1],v*t);n(i[0][0],i[1][0],i[2][0],d,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],d,r),i[1][1]=r[1],i[2][1]=r[2]}Bn(u[0],i[0]),Bn(u[1],i[2]),Bn(u[2],i[1])}else{if(Bn(a[0],h[0]),Bn(a[1],h[1]),du(o,a[1],a[0]),qf(o,o),c&&c!=="none"){var v=Mv(s.node1);$b(a[0],a[0],o,v*t)}if(f&&f!=="none"){var v=Mv(s.node2);$b(a[1],a[1],o,-v*t)}Bn(u[0],a[0]),Bn(u[1],a[1])}})}function LN(e){return e.type==="view"}var cme=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new pp,a=new tD,o=this.group;this._controller=new Sp(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(LN(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):kt(u,c,r)}gx(r.getGraph(),Av(r));var f=r.getData();s.updateData(f);var h=r.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var v=r.forceLayout,d=r.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,d);var g=r.get("layout");f.graph.eachNode(function(w){var x=w.dataIndex,T=w.getGraphicEl(),b=w.getModel();if(T){T.off("drag").off("dragend");var A=b.get("draggable");A&&T.on("drag",function(D){switch(g){case"force":v.warmUp(),!a._layouting&&a._startForceLayoutIteration(v,d),v.setFixed(x),f.setItemLayout(x,[T.x,T.y]);break;case"circular":f.setItemLayout(x,[T.x,T.y]),w.setLayout({fixed:!0},!0),QM(r,"symbolSize",w,[D.offsetX,D.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(x,[T.x,T.y]),JM(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){v&&v.setUnfixed(x)}),T.setDraggable(A,!!b.get("cursor"));var M=b.get(["emphasis","focus"]);M==="adjacency"&&(Ke(T).focus=w.getAdjacentDataIndices())}}),f.graph.eachEdge(function(w){var x=w.getGraphicEl(),T=w.getModel().get(["emphasis","focus"]);x&&T==="adjacency"&&(Ke(x).focus={edge:[w.dataIndex],node:[w.node1.dataIndex,w.node2.dataIndex]})});var m=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),y=f.getLayout("cx"),S=f.getLayout("cy");f.graph.eachNode(function(w){tW(w,m,y,S)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!$_(u,i,r)}),!LN(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){HM(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){WM(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),gx(r.getGraph(),Av(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=Av(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){gx(r.getGraph(),Av(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Jt);function Vc(e){return"_EC_"+e}var fme=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[Vc(t)]){var i=new nu(t,r);return i.hostGraph=this,this.nodes.push(i),n[Vc(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[Vc(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(Pt(t)&&(t=this.nodes[t]),Pt(r)&&(r=this.nodes[r]),t instanceof nu||(t=i[Vc(t)]),r instanceof nu||(r=i[Vc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new nW(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof nu&&(t=t.id),r instanceof nu&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof nu||(r=this._nodesMap[Vc(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Gr(nu,iW("hostGraph","data"));Gr(nW,iW("hostGraph","edgeData"));function aW(e,t,r,n,i){for(var a=new fme(n),o=0;o "+h)),u++)}var v=r.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=as(e,r);else{var g=cp.get(v),m=g?g.dimensions||[]:[];ht(m,"value")<0&&m.concat(["value"]);var y=hp(e,{coordDimensions:m,encodeDefine:r.getEncode()}).dimensions;d=new Wn(y,r),d.initData(e)}var S=new Wn(["value"],r);return S.initData(l,s),i&&i(d,S),zH({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var hme=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new _p(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Uu(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){Jge(this);var s=aW(a,i,this,!0,l);return R(s.edges,function(u){Qge(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(d){var g=o._categoriesModels,m=d.getShallow("category"),y=g[m];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var f=$t.prototype.getModel;function h(d,g){var m=f.call(this,d,g);return m.resolveParentPath=v,m}c.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var g=d.slice();return d[0]==="label"?g[0]="edgeLabel":d[1]==="label"&&(g[1]="edgeLabel"),g}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),rn("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=L4({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=Se(this.option.categories||[],function(i){return i.value!=null?i:ce({value:0},i)}),n=new Wn(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(ur),vme={type:"graphRoam",event:"graphRoam",update:"none"};function dme(e){e.registerChartView(cme),e.registerSeriesModel(hme),e.registerProcessor(Xge),e.registerVisual(Zge),e.registerVisual(qge),e.registerLayout(eme),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,rme),e.registerLayout(ime),e.registerCoordinateSystem("graphView",{dimensions:wp.dimensions,create:ome}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Er),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Er),e.registerAction(vme,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=YM(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var pme=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),gme=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new pme},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}(pt);function mme(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=Ie(r[0],t.getWidth()),s=Ie(r[1],t.getHeight()),l=Ie(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function dm(e,t){var r=e==null?"":e+"";return t&&(Ee(t)?r=t.replace("{value}",r):$e(t)&&(r=t(e))),r}var yme=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=mme(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),h=f.get("roundCap"),v=h?p0:qn,d=f.get("show"),g=f.getModel("lineStyle"),m=g.get("width"),y=[u,c];XA(y,!l),u=y[0],c=y[1];for(var S=c-u,w=u,x=[],T=0;d&&T=D&&(L===0?0:a[L-1][0])Math.PI/2&&(Le+=Math.PI)):Me==="tangential"?Le=-M-Math.PI/2:Pt(Me)&&(Le=Me*Math.PI/180),Le===0?f.add(new It({style:lr(w,{text:Z,x:re,y:pe,verticalAlign:N<-.8?"top":N>.8?"bottom":"middle",align:O<-.4?"left":O>.4?"right":"center"},{inheritColor:J}),silent:!0})):f.add(new It({style:lr(w,{text:Z,x:re,y:pe,verticalAlign:"middle",align:"center"},{inheritColor:J}),silent:!0,originX:re,originY:pe,rotation:Le}))}if(S.get("show")&&V!==x){var Y=S.get("distance");Y=Y?Y+c:c;for(var Fe=0;Fe<=T;Fe++){O=Math.cos(M),N=Math.sin(M);var Ge=new jr({shape:{x1:O*(d-Y)+h,y1:N*(d-Y)+v,x2:O*(d-A-Y)+h,y2:N*(d-A-Y)+v},silent:!0,style:E});E.stroke==="auto"&&Ge.setStyle({stroke:a((V+Fe/T)/x)}),f.add(Ge),M+=L}M-=L}else M+=D}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,h=this._data,v=this._progressEls,d=[],g=r.get(["pointer","show"]),m=r.getModel("progress"),y=m.get("show"),S=r.getData(),w=S.mapDimension("value"),x=+r.get("min"),T=+r.get("max"),b=[x,T],A=[s,l];function M(L,P){var E=S.getItemModel(L),F=E.getModel("pointer"),O=Ie(F.get("width"),o.r),N=Ie(F.get("length"),o.r),V=r.get(["pointer","icon"]),Y=F.get("offsetCenter"),G=Ie(Y[0],o.r),Z=Ie(Y[1],o.r),J=F.get("keepAspect"),re;return V?re=zr(V,G-O/2,Z-N,O,N,null,J):re=new gme({shape:{angle:-Math.PI/2,width:O,r:N,x:G,y:Z}}),re.rotation=-(P+Math.PI/2),re.x=o.cx,re.y=o.cy,re}function D(L,P){var E=m.get("roundCap"),F=E?p0:qn,O=m.get("overlap"),N=O?m.get("width"):c/S.count(),V=O?o.r-N:o.r-(L+1)*N,Y=O?o.r:o.r-L*N,G=new F({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:V,r:Y}});return O&&(G.z2=T-S.get(w,L)%T),G}(y||g)&&(S.diff(h).add(function(L){var P=S.get(w,L);if(g){var E=M(L,s);vr(E,{rotation:-((isNaN(+P)?A[0]:Ht(P,b,A,!0))+Math.PI/2)},r),f.add(E),S.setItemGraphicEl(L,E)}if(y){var F=D(L,s),O=m.get("clip");vr(F,{shape:{endAngle:Ht(P,b,A,O)}},r),f.add(F),dC(r.seriesIndex,S.dataType,L,F),d[L]=F}}).update(function(L,P){var E=S.get(w,L);if(g){var F=h.getItemGraphicEl(P),O=F?F.rotation:s,N=M(L,O);N.rotation=O,kt(N,{rotation:-((isNaN(+E)?A[0]:Ht(E,b,A,!0))+Math.PI/2)},r),f.add(N),S.setItemGraphicEl(L,N)}if(y){var V=v[P],Y=V?V.shape.endAngle:s,G=D(L,Y),Z=m.get("clip");kt(G,{shape:{endAngle:Ht(E,b,A,Z)}},r),f.add(G),dC(r.seriesIndex,S.dataType,L,G),d[L]=G}}).execute(),S.each(function(L){var P=S.getItemModel(L),E=P.getModel("emphasis"),F=E.get("focus"),O=E.get("blurScope"),N=E.get("disabled");if(g){var V=S.getItemGraphicEl(L),Y=S.getItemVisual(L,"style"),G=Y.fill;if(V instanceof ln){var Z=V.style;V.useStyle(ce({image:Z.image,x:Z.x,y:Z.y,width:Z.width,height:Z.height},Y))}else V.useStyle(Y),V.type!=="pointer"&&V.setColor(G);V.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),V.style.fill==="auto"&&V.setStyle("fill",a(Ht(S.get(w,L),b,[0,1],!0))),V.z2EmphasisLift=0,yn(V,P),Cr(V,F,O,N)}if(y){var J=d[L];J.useStyle(S.getItemVisual(L,"style")),J.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),J.z2EmphasisLift=0,yn(J,P),Cr(J,F,O,N)}}),this._progressEls=d)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=zr(s,n.cx-o/2+Ie(l[0],n.r),n.cy-o/2+Ie(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),h=new qe,v=[],d=[],g=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new It({silent:!0}),d[y]=new It({silent:!0})}).update(function(y,S){v[y]=s._titleEls[S],d[y]=s._detailEls[S]}).execute(),l.each(function(y){var S=l.getItemModel(y),w=l.get(u,y),x=new qe,T=a(Ht(w,[c,f],[0,1],!0)),b=S.getModel("title");if(b.get("show")){var A=b.get("offsetCenter"),M=o.cx+Ie(A[0],o.r),D=o.cy+Ie(A[1],o.r),L=v[y];L.attr({z2:m?0:2,style:lr(b,{x:M,y:D,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:T})}),x.add(L)}var P=S.getModel("detail");if(P.get("show")){var E=P.get("offsetCenter"),F=o.cx+Ie(E[0],o.r),O=o.cy+Ie(E[1],o.r),N=Ie(P.get("width"),o.r),V=Ie(P.get("height"),o.r),Y=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:T,L=d[y],G=P.get("formatter");L.attr({z2:m?0:2,style:lr(P,{x:F,y:O,text:dm(w,G),width:isNaN(N)?null:N,height:isNaN(V)?null:V,align:"center",verticalAlign:"middle"},{inheritColor:Y})}),kG(L,{normal:P},w,function(J){return dm(J,G)}),g&&OG(L,y,l,r,{getFormattedLabel:function(J,re,pe,Me,Le,Fe){return dm(Fe?Fe.interpolatedValue:w,G)}}),x.add(L)}h.add(x)}),this.group.add(h),this._titleEls=v,this._detailEls=d},t.type="gauge",t}(Jt),_me=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return ch(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(ur);function Sme(e){e.registerChartView(yme),e.registerSeriesModel(_me)}var wme=["itemStyle","opacity"],xme=function(e){j(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new Kn,s=new It;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(wme);c=c??1,i||Aa(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,vr(a,{style:{opacity:c}},o,n)):kt(a,{style:{opacity:c},shape:{points:l.points}},o,n),yn(a,s),this._updateLabel(r,n),Cr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),h=f.fill;_n(o,tn(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var v=c.linePoints;a.setShape({points:v}),i.textGuideLineConfig={anchor:v?new rt(v[0][0],v[0][1]):null},kt(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),RM(i,EM(l),{stroke:h})},t}(jn),bme=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new xme(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);bd(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Jt),Cme=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new _p(ke(this.getData,this),ke(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return ch(this,{coordDimensions:["value"],encodeDefaulter:tt(cM,this)})},t.prototype._defaultLabelLine=function(r){Uu(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(ur);function Tme(e,t){return Hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ame(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();o$me)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!yx(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function yx(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var Ume=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&it(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){R(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=Wt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);R(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(mt),Yme=function(e){j(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(La);function oc(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=Bc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Bc(s,[0,o]),i=a=Bc(s,[i,a]),n=0}t[0]=Bc(t[0],r),t[1]=Bc(t[1],r);var l=_x(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=Bc(t[n],c);var f;return f=_x(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function _x(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function Bc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Sx=R,sW=Math.min,lW=Math.max,EN=Math.floor,Xme=Math.ceil,kN=Ar,Zme=Math.PI,qme=function(){function e(t,r,n){this.type="parallel",this._axesMap=Ne(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;Sx(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Yme(o,z_(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();Sx(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Of(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=Hr(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=pm(t.get("axisExpandWidth"),l),f=pm(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=t.get("axisExpandWindow"),d;if(v)d=pm(v[1]-v[0],l),v[1]=v[0]+d;else{d=pm(c*(f-1),l);var g=t.get("axisExpandCenter")||EN(u/2);v=[c*g-d/2],v[1]=v[0]+d}var m=(s-d)/(u-f);m<3&&(m=0);var y=[EN(kN(v[0]/c,1))+1,Xme(kN(v[1]/c,1))-1],S=m/c*v[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:S}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Sx(n,function(o,s){var l=(i.axisExpandable?Kme:jme)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Zme/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],h=c[a],v=Mi();ec(v,v,h),ao(v,v,f),this._axesLayout[o]={position:f,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];R(o,function(m){s.push(t.mapDimension(m)),l.push(a.get(m).model)});for(var u=this.hasAxisBrushed(),c=n;ca*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?oc(l,i,o,"all"):u="none";else{var v=i[1]-i[0],d=o[1]*s/v;i=[lW(0,d-v/2)],i[1]=sW(o[1],i[0]+v),i[0]=i[1]-v}return{axisExpandWindow:i,behavior:u}},e}();function pm(e,t){return sW(lW(e,t[0]),t[1])}function jme(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function Kme(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e=0;i--)Qi(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;arye}function dW(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function pW(e,t,r,n){var i=new qe;return i.add(new Ct({name:"main",style:oD(r),silent:!0,draggable:!0,cursor:"move",drift:tt(FN,e,t,i,["n","s","w","e"]),ondragend:tt(Ku,t,{isEnd:!0})})),R(n,function(a){i.add(new Ct({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:tt(FN,e,t,i,a),ondragend:tt(Ku,t,{isEnd:!0})}))}),i}function gW(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Vf(i,nye),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],h=c-a+i/2,v=f-a+i/2,d=c-o,g=f-s,m=d+i,y=g+i;Do(e,t,"main",o,s,d,g),n.transformable&&(Do(e,t,"w",l,u,a,y),Do(e,t,"e",h,u,a,y),Do(e,t,"n",l,u,m,a),Do(e,t,"s",l,v,m,a),Do(e,t,"nw",l,u,a,a),Do(e,t,"ne",h,u,a,a),Do(e,t,"sw",l,v,a,a),Do(e,t,"se",h,v,a,a))}function oT(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(oD(r)),i.attr({silent:!n,cursor:n?"move":"default"}),R([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?sT(e,a[0]):uye(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?aye[s]+"-resize":null})})}function Do(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(fye(sD(e,t,[[n,i],[n+a,i+o]])))}function oD(e){return We({strokeNoScale:!0},e.brushStyle)}function mW(e,t,r,n){var i=[Bd(e,r),Bd(t,n)],a=[Vf(e,r),Vf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function lye(e){return Ru(e.group)}function sT(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=C_(r[t],lye(e));return n[i]}function uye(e,t){var r=[sT(e,t[0]),sT(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function FN(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=yW(t,i,a);R(n,function(u){var c=iye[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(mW(s[0][0],s[1][0],s[0][1],s[1][1])),nD(t,r),Ku(t,{isEnd:!1})}function cye(e,t,r,n){var i=t.__brushOption.range,a=yW(e,r,n);R(i,function(o){o[0]+=a[0],o[1]+=a[1]}),nD(e,t),Ku(e,{isEnd:!1})}function yW(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function sD(e,t,r){var n=vW(e,t);return n&&n!==ju?n.clipPath(r,e._transform):Ze(r)}function fye(e){var t=Bd(e[0][0],e[1][0]),r=Bd(e[0][1],e[1][1]),n=Vf(e[0][0],e[1][0]),i=Vf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function hye(e,t,r){if(!(!e._brushType||dye(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=aD(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var Y_={lineX:zN(0),lineY:zN(1),rect:{createCover:function(e,t){function r(n){return n}return pW({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=dW(e);return mW(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){gW(e,t,r,n)},updateCommon:oT,contain:uT},polygon:{createCover:function(e,t){var r=new qe;return r.add(new Kn({name:"main",style:oD(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new jn({name:"main",draggable:!0,drift:tt(cye,e,t),ondragend:tt(Ku,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:sD(e,t,r)})},updateCommon:oT,contain:uT}};function zN(e){return{createCover:function(t,r){return pW({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=dW(t),n=Bd(r[0][e],r[1][e]),i=Vf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=vW(t,r);if(o!==ju&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),gW(t,r,l,i)},updateCommon:oT,contain:uT}}function SW(e){return e=lD(e),function(t){return PG(t,e)}}function wW(e,t){return e=lD(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function xW(e,t,r){var n=lD(e);return function(i,a){return n.contain(a[0],a[1])&&!$_(i,t,r)}}function lD(e){return at.create(e)}var pye=["axisLine","axisTickLabel","axisName"],gye=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new rD(n.getZr())).on("brush",ke(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!mye(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new qe,this.group.add(this._axisGroup),!!r.get("show")){var s=_ye(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,h=l.getAxisLayout(f),v=ce({strokeContainThreshold:c},h),d=new Un(r,v);R(pye,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,r,s,c,i),lp(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=at.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:SW(f),isTargetByCursor:xW(f,s,a),getLinearBrushOtherExtent:wW(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(yye(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=Se(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(mr);function mye(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function yye(e){var t=e.axis;return Se(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function _ye(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var Sye={type:"axisAreaSelect",event:"axisAreaSelected"};function wye(e){e.registerAction(Sye,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var xye={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function bW(e){e.registerComponentView(Hme),e.registerComponentModel(Ume),e.registerCoordinateSystem("parallel",Qme),e.registerPreprocessor(Bme),e.registerComponentModel(iT),e.registerComponentView(gye),Ff(e,"parallel",iT,xye),wye(e)}function bye(e){vt(bW),e.registerChartView(Pme),e.registerSeriesModel(kme),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Vme)}var Cye=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),Tye=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Cye},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){jo(this)},t.prototype.downplay=function(){Ko(this)},t}(pt),Aye=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),h=r.getData("edge"),v=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var g=new Tye,m=Ke(g);m.dataIndex=d.dataIndex,m.seriesIndex=r.seriesIndex,m.dataType="edge";var y=d.getModel(),S=y.getModel("lineStyle"),w=S.get("curveness"),x=d.node1.getLayout(),T=d.node1.getModel(),b=T.get("localX"),A=T.get("localY"),M=d.node2.getLayout(),D=d.node2.getModel(),L=D.get("localX"),P=D.get("localY"),E=d.getLayout(),F,O,N,V,Y,G,Z,J;g.shape.extent=Math.max(1,E.dy),g.shape.orient=v,v==="vertical"?(F=(b!=null?b*u:x.x)+E.sy,O=(A!=null?A*c:x.y)+x.dy,N=(L!=null?L*u:M.x)+E.ty,V=P!=null?P*c:M.y,Y=F,G=O*(1-w)+V*w,Z=N,J=O*w+V*(1-w)):(F=(b!=null?b*u:x.x)+x.dx,O=(A!=null?A*c:x.y)+E.sy,N=L!=null?L*u:M.x,V=(P!=null?P*c:M.y)+E.ty,Y=F*(1-w)+N*w,G=O,Z=F*w+N*(1-w),J=V),g.setShape({x1:F,y1:O,x2:N,y2:V,cpx1:Y,cpy1:G,cpx2:Z,cpy2:J}),g.useStyle(S.getItemStyle()),GN(g.style,v,d);var re=""+y.get("value"),pe=tn(y,"edgeLabel");_n(g,pe,{labelFetcher:{getFormattedLabel:function(Fe,Ge,ie,le,de,me){return r.getFormattedLabel(Fe,Ge,"edge",le,eo(de,pe.normal&&pe.normal.get("formatter"),re),me)}},labelDataIndex:d.dataIndex,defaultText:re}),g.setTextConfig({position:"inside"});var Me=y.getModel("emphasis");yn(g,y,"lineStyle",function(Fe){var Ge=Fe.getItemStyle();return GN(Ge,v,d),Ge}),s.add(g),h.setItemGraphicEl(d.dataIndex,g);var Le=Me.get("focus");Cr(g,Le==="adjacency"?d.getAdjacentDataIndices():Le==="trajectory"?d.getTrajectoryDataIndices():Le,Me.get("blurScope"),Me.get("disabled"))}),o.eachNode(function(d){var g=d.getLayout(),m=d.getModel(),y=m.get("localX"),S=m.get("localY"),w=m.getModel("emphasis"),x=m.get(["itemStyle","borderRadius"])||0,T=new Ct({shape:{x:y!=null?y*u:g.x,y:S!=null?S*c:g.y,width:g.dx,height:g.dy,r:x},style:m.getModel("itemStyle").getItemStyle(),z2:10});_n(T,tn(m),{labelFetcher:{getFormattedLabel:function(A,M){return r.getFormattedLabel(A,M,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),T.disableLabelAnimation=!0,T.setStyle("fill",d.getVisual("color")),T.setStyle("decal",d.getVisual("style").decal),yn(T,m),s.add(T),f.setItemGraphicEl(d.dataIndex,T),Ke(T).dataType="node";var b=w.get("focus");Cr(T,b==="adjacency"?d.getAdjacentDataIndices():b==="trajectory"?d.getTrajectoryDataIndices():b,w.get("blurScope"),w.get("disabled"))}),f.eachItemGraphicEl(function(d,g){var m=f.getItemModel(g);m.get("draggable")&&(d.drift=function(y,S){a._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=S,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},d.ondragend=function(){a._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(Mye(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Jt);function GN(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");Ee(n)&&Ee(i)&&(e.fill=new sp(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function Mye(e,t,r){var n=new Ct({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return vr(n,{shape:{width:e.width+20}},t,r),n}var Dye=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new $t(o[l],this,n));if(a&&i){var u=aW(a,i,this,!0,c);return u.data}function c(f,h){f.wrapMethod("getItemModel",function(v,d){var g=v.parentModel,m=g.getData().getItemLayout(d);if(m){var y=m.depth,S=g.levelModels[y];S&&(v.parentModel=S)}return v}),h.wrapMethod("getItemModel",function(v,d){var g=v.parentModel,m=g.getGraph().getEdgeByIndex(d),y=m.node1.getLayout();if(y){var S=y.depth,w=g.levelModels[S];w&&(v.parentModel=w)}return v})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(v){return isNaN(v)||v==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return rn("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,h=this.getDataParams(r,i).data.name;return rn("nameValue",{name:h!=null?h+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(ur);function Iye(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=Lye(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;Rye(u);var f=Wt(u,function(g){return g.getLayout().value===0}),h=f.length!==0?0:r.get("layoutIterations"),v=r.get("orient"),d=r.get("nodeAlign");Pye(u,c,n,i,o,s,h,v,d)})}function Lye(e,t){return Hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Pye(e,t,r,n,i,a,o,s,l){Eye(e,t,r,i,a,s,l),Fye(e,t,a,i,n,o,s),Yye(e,s)}function Rye(e){R(e,function(t){var r=Qs(t.outEdges,w0),n=Qs(t.inEdges,w0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function Eye(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,h=0;h=0;y&&m.depth>v&&(v=m.depth),g.setLayout({depth:y?m.depth:f},!0),a==="vertical"?g.setLayout({dy:r},!0):g.setLayout({dx:r},!0);for(var S=0;Sf-1?v:f-1;o&&o!=="left"&&kye(e,o,a,A);var M=a==="vertical"?(i-r)/A:(n-r)/A;Nye(e,M,a)}function CW(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function kye(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,zye(s,l,o),xx(s,i,r,n,o),Uye(s,l,o),xx(s,i,r,n,o)}function Vye(e,t){var r=[],n=t==="vertical"?"y":"x",i=cC(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),R(i.keys,function(a){r.push(i.buckets.get(a))}),r}function Bye(e,t,r,n,i,a){var o=1/0;R(e,function(s){var l=s.length,u=0;R(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[h]+t;var d=i==="vertical"?n:r;if(u=c-t-d,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[a]+l.getLayout()[h]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function zye(e,t,r){R(e.slice().reverse(),function(n){R(n,function(i){if(i.outEdges.length){var a=Qs(i.outEdges,Gye,r)/Qs(i.outEdges,w0);if(isNaN(a)){var o=i.outEdges.length;a=o?Qs(i.outEdges,$ye,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-sl(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-sl(i,r))*t;i.setLayout({y:l},!0)}}})})}function Gye(e,t){return sl(e.node2,t)*e.getValue()}function $ye(e,t){return sl(e.node2,t)}function Hye(e,t){return sl(e.node1,t)*e.getValue()}function Wye(e,t){return sl(e.node1,t)}function sl(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function w0(e){return e.getValue()}function Qs(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),R(n,function(s){var l=new en({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&R(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Zye(e){e.registerChartView(Aye),e.registerSeriesModel(Dye),e.registerLayout(Iye),e.registerVisual(Xye),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var TW=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[i,a],d=v[c].get("type"),g=v[1-c].get("type"),m=t.data;if(m&&l){var y=[];R(m,function(x,T){var b;ge(x)?(b=x.slice(),x.unshift(T)):ge(x.value)?(b=ce({},x),b.value=b.value.slice(),x.value.unshift(T)):b=x,y.push(b)}),t.data=y}var S=this.defaultValueDimensions,w=[{name:f,type:c0(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:c0(g),dimsDef:S.slice()}];return ch(this,{coordDimensions:w,dimensionsCount:S.length+1,encodeDefaulter:tt(n4,w,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),AW=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(ur);Gr(AW,TW,!0);var qye=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=$N(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var h=a.getItemLayout(u);f?(Aa(f),MW(h,f,a,u)):f=$N(h,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(Jt),jye=function(){function e(){}return e}(),Kye=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new jye},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();ag){var x=[y,w];n.push(x)}}}return{boxData:r,outliers:n}}var i0e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Pn){var n="";Bt(n)}var i=n0e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function a0e(e){e.registerSeriesModel(AW),e.registerChartView(qye),e.registerLayout(Qye),e.registerTransform(i0e)}var o0e=["color","borderColor"],s0e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){pl(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&HN(u,f))return;var h=bx(f,c,!0);vr(h,{shape:{points:f.ends}},r,c),Cx(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(h);return}var v=n.getItemLayout(c);if(s&&HN(u,v)){a.remove(h);return}h?(kt(h,{shape:{points:v.ends}},r,c),Aa(h)):h=bx(v),Cx(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),WN(r,this.group);var n=r.get("clip",!0)?gp(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=bx(s);Cx(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){WN(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Jt),l0e=function(){function e(){}return e}(),u0e=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new l0e},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}(pt);function bx(e,t,r){var n=e.ends;return new u0e({shape:{points:r?c0e(n,e):n},z2:100})}function HN(e,t){for(var r=!0,n=0;n0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(o0e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var DW=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(ur);Gr(DW,TW,!0);function h0e(e){!e||!ge(e.series)||R(e.series,function(t){Ye(t)&&t.type==="k"&&(t.type="candlestick")})}var v0e=["itemStyle","borderColor"],d0e=["itemStyle","borderColor0"],p0e=["itemStyle","borderColorDoji"],g0e=["itemStyle","color"],m0e=["itemStyle","color0"],y0e={seriesType:"candlestick",plan:oh(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?g0e:m0e)}function n(a,o){return o.get(a===0?p0e:a>0?v0e:d0e)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");ce(f,c)}}}}}},_0e={seriesType:"candlestick",plan:oh(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=S0e(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=Se(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],h=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?d:v};function v(g,m){for(var y,S=m.getStore();(y=g.next())!=null;){var w=S.get(s,y),x=S.get(u,y),T=S.get(c,y),b=S.get(f,y),A=S.get(h,y),M=Math.min(x,T),D=Math.max(x,T),L=Y(M,w),P=Y(D,w),E=Y(b,w),F=Y(A,w),O=[];G(O,P,0),G(O,L,1),O.push(J(F),J(P),J(E),J(L));var N=m.getItemModel(y),V=!!N.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:UN(S,y,x,T,c,V),initBaseline:x>T?P[a]:L[a],ends:O,brushRect:Z(b,A,w)})}function Y(re,pe){var Me=[];return Me[i]=pe,Me[a]=re,isNaN(pe)||isNaN(re)?[NaN,NaN]:t.dataToPoint(Me)}function G(re,pe,Me){var Le=pe.slice(),Fe=pe.slice();Le[i]=uy(Le[i]+n/2,1,!1),Fe[i]=uy(Fe[i]-n/2,1,!0),Me?re.push(Le,Fe):re.push(Fe,Le)}function Z(re,pe,Me){var Le=Y(re,Me),Fe=Y(pe,Me);return Le[i]-=n/2,Fe[i]-=n/2,{x:Le[0],y:Le[1],width:n,height:Fe[1]-Le[1]}}function J(re){return re[i]=uy(re[i],1),re}}function d(g,m){for(var y=Ka(g.count*4),S=0,w,x=[],T=[],b,A=m.getStore(),M=!!e.get(["itemStyle","borderColorDoji"]);(b=g.next())!=null;){var D=A.get(s,b),L=A.get(u,b),P=A.get(c,b),E=A.get(f,b),F=A.get(h,b);if(isNaN(D)||isNaN(E)||isNaN(F)){y[S++]=NaN,S+=3;continue}y[S++]=UN(A,b,L,P,c,M),x[i]=D,x[a]=E,w=t.dataToPoint(x,null,T),y[S++]=w?w[0]:NaN,y[S++]=w?w[1]:NaN,x[a]=F,w=t.dataToPoint(x,null,T),y[S++]=w?w[1]:NaN}m.setLayout("largePoints",y)}}};function UN(e,t,r,n,i,a){var o;return r>n?o=-1:r0?e.get(i,t-1)<=n?1:-1:1,o}function S0e(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=Ie(et(e.get("barMaxWidth"),i),i),o=Ie(et(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?Ie(s,i):Math.max(Math.min(i/2,a),o)}function w0e(e){e.registerChartView(s0e),e.registerSeriesModel(DW),e.registerPreprocessor(h0e),e.registerVisual(y0e),e.registerLayout(_0e)}function YN(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var x0e=function(e){j(t,e);function t(r,n){var i=e.call(this)||this,a=new dp(r,n),o=new qe;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var h=void 0;$e(f)?h=f(i):h=f,a.__t>0&&(h=-s*a.__t),this._animateSymbol(a,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return Bs(r.__p1,r.__cp1)+Bs(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=an,c=qb;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),h=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(h,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],h=i[l+1];r.x=f[0]*(1-c)+c*h[0],r.y=f[1]*(1-c)+c*h[1];var v=r.__t<1?h[0]-f[0]:f[0]-h[0],d=r.__t<1?h[1]-f[1]:f[1]-h[1];r.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(IW),M0e=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),D0e=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new M0e},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o0){r.moveTo(i[o++],i[o++]);for(var l=1;l0){var v=(u+f)/2-(c-h)*a,d=(c+h)/2-(f-u)*a;r.quadraticCurveTo(v,d,f,h)}else r.lineTo(f,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var f=a[u++],h=a[u++],v=1;v0){var m=(f+d)/2-(h-g)*o,y=(h+g)/2-(d-f)*o;if(nG(f,h,m,y,d,g,s,r,n))return l}else if(Rs(f,h,d,g,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),PW={seriesType:"lines",plan:oh(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&gp(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=PW.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new I0e:new tD(o?a?A0e:LW:a?IW:eD),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(Jt),P0e=typeof Uint32Array>"u"?Array:Uint32Array,R0e=typeof Float64Array>"u"?Array:Float64Array;function XN(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Se(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),EA([i,r[0],r[1]])}))}var E0e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],XN(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(XN(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=zy(this._flatCoords,n.flatCoords),this._flatCoordsOffset=zy(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(ur);function gm(e){return e instanceof Array||(e=[e,e]),e}var k0e={seriesType:"lines",reset:function(e){var t=gm(e.get("symbol")),r=gm(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=gm(s.getShallow("symbol",!0)),u=gm(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};function O0e(e){e.registerChartView(L0e),e.registerSeriesModel(E0e),e.registerLayout(PW),e.registerVisual(k0e)}var N0e=256,F0e=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=rl.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,h=f.getContext("2d"),v=t.length;f.width=r,f.height=n;for(var d=0;d0){var E=o(w)?l:u;w>0&&(w=w*L+M),T[b++]=E[P],T[b++]=E[P+1],T[b++]=E[P+2],T[b++]=E[P+3]*w*256}else b+=4}return h.putImageData(x,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=rl.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();function V0e(e,t,r){var n=e[1]-e[0];t=Se(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=t[0]&&n<=t[1]}}function ZN(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var z0e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):ZN(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(ZN(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){pl(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=ic(s,"cartesian2d"),u,c,f,h;if(l){var v=s.getAxis("x"),d=s.getAxis("y");u=v.getBandWidth()+.5,c=d.getBandWidth()+.5,f=v.scale.getExtent(),h=d.scale.getExtent()}for(var g=this.group,m=r.getData(),y=r.getModel(["emphasis","itemStyle"]).getItemStyle(),S=r.getModel(["blur","itemStyle"]).getItemStyle(),w=r.getModel(["select","itemStyle"]).getItemStyle(),x=r.get(["itemStyle","borderRadius"]),T=tn(r),b=r.getModel("emphasis"),A=b.get("focus"),M=b.get("blurScope"),D=b.get("disabled"),L=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=i;Pf[1]||Nh[1])continue;var V=s.dataToPoint([O,N]);E=new Ct({shape:{x:V[0]-u/2,y:V[1]-c/2,width:u,height:c},style:F})}else{if(isNaN(m.get(L[1],P)))continue;E=new Ct({z2:1,shape:s.dataToRect([m.get(L[0],P)]).contentShape,style:F})}if(m.hasItemOption){var Y=m.getItemModel(P),G=Y.getModel("emphasis");y=G.getModel("itemStyle").getItemStyle(),S=Y.getModel(["blur","itemStyle"]).getItemStyle(),w=Y.getModel(["select","itemStyle"]).getItemStyle(),x=Y.get(["itemStyle","borderRadius"]),A=G.get("focus"),M=G.get("blurScope"),D=G.get("disabled"),T=tn(Y)}E.shape.r=x;var Z=r.getRawValue(P),J="-";Z&&Z[2]!=null&&(J=Z[2]+""),_n(E,T,{labelFetcher:r,labelDataIndex:P,defaultOpacity:F.opacity,defaultText:J}),E.ensureState("emphasis").style=y,E.ensureState("blur").style=S,E.ensureState("select").style=w,Cr(E,A,M,D),E.incremental=o,o&&(E.states.emphasis.hoverLayer=!0),g.add(E),m.setItemGraphicEl(P,E),this._progressiveEls&&this._progressiveEls.push(E)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new F0e;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var h=Math.max(c.x,0),v=Math.max(c.y,0),d=Math.min(c.width+c.x,a.getWidth()),g=Math.min(c.height+c.y,a.getHeight()),m=d-h,y=g-v,S=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],w=l.mapArray(S,function(A,M,D){var L=r.dataToPoint([A,M]);return L[0]-=h,L[1]-=v,L.push(D),L}),x=i.getExtent(),T=i.type==="visualMap.continuous"?B0e(x,i.option.range):V0e(x,i.getPieceList(),i.option.selected);u.update(w,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},T);var b=new ln({style:{width:m,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Jt),G0e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return as(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=cp.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(ur);function $0e(e){e.registerChartView(z0e),e.registerSeriesModel(G0e)}var H0e=["itemStyle","borderWidth"],qN=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Mx=new is,W0e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:qN[+c],categoryDim:qN[1-+c]};o.diff(s).add(function(d){if(o.hasValue(d)){var g=KN(o,d),m=jN(o,d,g,h),y=JN(o,h,m);o.setItemGraphicEl(d,y),a.add(y),eF(y,h,m)}}).update(function(d,g){var m=s.getItemGraphicEl(g);if(!o.hasValue(d)){a.remove(m);return}var y=KN(o,d),S=jN(o,d,y,h),w=FW(o,S);m&&w!==m.__pictorialShapeStr&&(a.remove(m),o.setItemGraphicEl(d,null),m=null),m?K0e(m,h,S):m=JN(o,h,S,!0),o.setItemGraphicEl(d,m),m.__pictorialSymbolMeta=S,a.add(m),eF(m,h,S)}).remove(function(d){var g=s.getItemGraphicEl(d);g&&QN(s,d,g.__pictorialSymbolMeta.animationModel,g)}).execute();var v=r.get("clip",!0)?gp(r.coordinateSystem,!1,r):null;return v?a.setClipPath(v):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){QN(a,Ke(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Jt);function jN(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};U0e(r,a,i,n,h),Y0e(e,t,i,a,o,h.boundingLength,h.pxSign,c,n,h),X0e(r,h.symbolScale,u,n,h);var v=h.symbolSize,d=rc(r.get("symbolOffset"),v);return Z0e(r,v,i,a,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function U0e(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(ge(o)){var f=[Dx(s,o[0])-l,Dx(s,o[1])-l];f[1]0?1:-1}function Dx(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Y0e(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(r[f.wh]),v=e.getItemVisual(t,"symbolSize"),d;ge(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=Ie(d[f.index],h),d[c.index]=Ie(d[c.index],n?h:Math.abs(a)),u.symbolSize=d;var g=u.symbolScale=[d[0]/s,d[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function X0e(e,t,r,n,i){var a=e.get(H0e)||0;a&&(Mx.attr({scaleX:t[0],scaleY:t[1],rotation:r}),Mx.updateTransform(),a/=Mx.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function Z0e(e,t,r,n,i,a,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,g=Math.max(t[v.index]+s,0),m=g;if(n){var y=Math.abs(l),S=on(e.get("symbolMargin"),"15%")+"",w=!1;S.lastIndexOf("!")===S.length-1&&(w=!0,S=S.slice(0,S.length-1));var x=Ie(S,t[v.index]),T=Math.max(g+x*2,0),b=w?0:x*2,A=Hz(n),M=A?n:tF((y+b)/T),D=y-M*g;x=D/2/(w?M:Math.max(M-1,1)),T=g+x*2,b=w?0:x*2,!A&&n!=="fixed"&&(M=u?tF((Math.abs(u)+b)/T):0),m=M*T-b,f.repeatTimes=M,f.symbolMargin=x}var L=d*(m/2),P=f.pathPosition=[];P[h.index]=r[h.wh]/2,P[v.index]=o==="start"?L:o==="end"?l-L:l/2,a&&(P[0]+=a[0],P[1]+=a[1]);var E=f.bundlePosition=[];E[h.index]=r[h.xy],E[v.index]=r[v.xy];var F=f.barRectShape=ce({},r);F[v.wh]=d*Math.max(Math.abs(r[v.wh]),Math.abs(P[v.index]+L)),F[h.wh]=r[h.wh];var O=f.clipShape={};O[h.xy]=-r[h.xy],O[h.wh]=c.ecSize[h.wh],O[v.xy]=0,O[v.wh]=r[v.wh]}function RW(e){var t=e.symbolPatternSize,r=zr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function EW(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(uD(e,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(S=u-1-g),m[l.index]=f*(S-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function kW(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?wf(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=RW(r),i.add(a),wf(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function OW(e,t,r){var n=ce({},t.barRectShape),i=e.__pictorialBarRect;i?wf(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Ct({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function NW(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=ce({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)kt(i,{shape:a},s,l);else{a[o.wh]=0,i=new Ct({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],tc[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function KN(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=q0e,r.isAnimationEnabled=j0e,r}function q0e(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function j0e(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function JN(e,t,r,n){var i=new qe,a=new qe;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?EW(i,t,r):kW(i,t,r),OW(i,r,n),NW(i,t,r,n),i.__pictorialShapeStr=FW(e,r),i.__pictorialSymbolMeta=r,i}function K0e(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;kt(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?EW(e,t,r,!0):kW(e,t,r,!0),OW(e,r,!0),NW(e,t,r,!0)}function QN(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];uD(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),R(a,function(o){il(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function FW(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function uD(e,t,r){R(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function wf(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&tc[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function eF(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),h=a.get("scale");uD(e,function(g){if(g instanceof ln){var m=g.style;g.useStyle(ce({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},r.style))}else g.useStyle(r.style);var y=g.ensureState("emphasis");y.style=o,h&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=r.z2});var v=t.valueDim.posDesc[+(r.boundingLength>0)],d=e.__pictorialBarRect;d.ignoreClip=!0,_n(d,tn(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Nf(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:v}),Cr(e,c,f,a.get("disabled"))}function tF(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var J0e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=gl(Ed.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Ed);function Q0e(e){e.registerChartView(W0e),e.registerSeriesModel(J0e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,tt(S$,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,w$("pictorialBar"))}var e_e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function h(m){return m.name}var v=new Jo(this._layersSeries||[],l,h,h),d=[];v.add(ke(g,this,"add")).update(ke(g,this,"update")).remove(ke(g,this,"remove")).execute();function g(m,y,S){var w=o._layers;if(m==="remove"){s.remove(w[y]);return}for(var x=[],T=[],b,A=l[y].indices,M=0;Ma&&(a=s),n.push(s)}for(var u=0;ua&&(a=f)}return{y0:i,max:a}}function a_e(e){e.registerChartView(e_e),e.registerSeriesModel(r_e),e.registerLayout(n_e),e.registerProcessor(yp("themeRiver"))}var o_e=2,s_e=4,nF=function(e){j(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=o_e,o.textConfig={inside:!0},Ke(o).seriesIndex=n.seriesIndex;var s=new It({z2:s_e,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;Ke(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=ce({},c);f.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=kf(v,o));var d=wu(l.getModel("itemStyle"),f,!0);ce(f,d),R(Zn,function(S){var w=s.ensureState(S),x=l.getModel([S,"itemStyle"]);w.style=x.getItemStyle();var T=wu(x,f);T&&(w.shape=T)}),r?(s.setShape(f),s.shape.r=c.r0,vr(s,{shape:{r:c.r}},i,n.dataIndex)):(kt(s,{shape:f},i),Aa(s)),s.useStyle(h),this._updateLabel(i);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?n.getAncestorsIndices():m==="descendant"?n.getDescendantIndices():m;Cr(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,h=f.getTextContent(),v=this.node.dataIndex,d=a.get("minAngle")/180*Math.PI,g=a.get("show")&&!(d!=null&&Math.abs(s)O&&!_d(V-O)&&V0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,r,n,i):(o.virtualPiece=new nF(S,r,n,i),c.add(o.virtualPiece)),w.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(w.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";r0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:cT,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(Jt),f_e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};VW(i);var a=this._levelModels=Se(r.levels||[],function(l){return new $t(l,this,n)},this),o=ZM.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),h=a[f.depth];return h&&(u.parentModel=h),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=W_(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){HH(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(ur);function VW(e){var t=0;R(e.children,function(n){VW(n);var i=n.value;ge(i)&&(i=i[0]),t+=i});var r=e.value;ge(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),ge(e.value)?e.value[0]=r:e.value=r}var aF=Math.PI/180;function h_e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");ge(a)||(a=[0,a]),ge(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=Ie(i[0],o),c=Ie(i[1],s),f=Ie(a[0],l/2),h=Ie(a[1],l/2),v=-n.get("startAngle")*aF,d=n.get("minAngle")*aF,g=n.getData().tree.root,m=n.getViewRoot(),y=m.depth,S=n.get("sort");S!=null&&BW(m,S);var w=0;R(m.children,function(V){!isNaN(V.getValue())&&w++});var x=m.getValue(),T=Math.PI/(x||w)*2,b=m.depth>0,A=m.height-(b?-1:1),M=(h-f)/(A||1),D=n.get("clockwise"),L=n.get("stillShowZeroSum"),P=D?1:-1,E=function(V,Y){if(V){var G=Y;if(V!==g){var Z=V.getValue(),J=x===0&&L?T:Z*T;J1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&Ee(s)&&(s=Jb(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");ce(u,l)})})}function p_e(e){e.registerChartView(c_e),e.registerSeriesModel(f_e),e.registerLayout(tt(h_e,"sunburst")),e.registerProcessor(tt(yp,"sunburst")),e.registerVisual(d_e),u_e(e)}var oF={color:"fill",borderColor:"stroke"},g_e={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Yo=Tt(),m_e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return as(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=Yo(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(ur);function y_e(e,t){return t=t||[0,0],Se(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function __e(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ke(y_e,e)}}}function S_e(e,t){return t=t||[0,0],Se([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function w_e(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:ke(S_e,e)}}}function x_e(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function b_e(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ke(x_e,e)}}}function C_e(e,t){return t=t||[0,0],Se(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function T_e(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:ke(C_e,e)}}}function A_e(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function zW(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Oe(e,"text")))}function GW(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},Oe(n,"text")&&(o.text=n.text),Oe(n,"rich")&&(o.rich=n.rich),Oe(n,"textFill")&&(o.fill=n.textFill),Oe(n,"textStroke")&&(o.stroke=n.textStroke),Oe(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Oe(n,"fontSize")&&(o.fontSize=n.fontSize),Oe(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Oe(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Oe(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),Oe(n,"textPosition")&&(i.position=n.textPosition),Oe(n,"textOffset")&&(i.offset=n.textOffset),Oe(n,"textRotation")&&(i.rotation=n.textRotation),Oe(n,"textDistance")&&(i.distance=n.textDistance)}return sF(o,e),R(o.rich,function(l){sF(l,l)}),{textConfig:i,textContent:a}}function sF(e,t){t&&(t.font=t.textFont||t.font,Oe(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Oe(t,"textAlign")&&(e.align=t.textAlign),Oe(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Oe(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Oe(t,"textWidth")&&(e.width=t.textWidth),Oe(t,"textHeight")&&(e.height=t.textHeight),Oe(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Oe(t,"textPadding")&&(e.padding=t.textPadding),Oe(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Oe(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Oe(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Oe(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Oe(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Oe(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Oe(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function lF(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";uF(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,R(t.rich,function(s){uF(s,s)}),n}function uF(e,t){t&&(Oe(t,"fill")&&(e.textFill=t.fill),Oe(t,"stroke")&&(e.textStroke=t.fill),Oe(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Oe(t,"font")&&(e.font=t.font),Oe(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Oe(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Oe(t,"fontSize")&&(e.fontSize=t.fontSize),Oe(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Oe(t,"align")&&(e.textAlign=t.align),Oe(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Oe(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Oe(t,"width")&&(e.textWidth=t.width),Oe(t,"height")&&(e.textHeight=t.height),Oe(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Oe(t,"padding")&&(e.textPadding=t.padding),Oe(t,"borderColor")&&(e.textBorderColor=t.borderColor),Oe(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Oe(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Oe(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Oe(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Oe(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Oe(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Oe(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Oe(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Oe(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Oe(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var $W={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},cF=yt($W);io(oo,function(e,t){return e[t]=1,e},{});oo.join(", ");var x0=["","style","shape","extra"],Bf=Tt();function cD(e,t,r,n,i){var a=e+"Animation",o=Qf(e,n,i)||{},s=Bf(t).userDuring;return o.duration>0&&(o.during=s?ke(P_e,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),ce(o,r[a]),o}function py(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Bf(e),u=t.style;l.userDuring=t.during;var c={},f={};if(E_e(e,t,f),hF("shape",t,f),hF("extra",t,f),!a&&s&&(R_e(e,t,c),fF("shape",e,t,c),fF("extra",e,t,c),k_e(e,t,u,c)),f.style=u,M_e(e,f,o),I_e(e,t),s)if(a){var h={};R(x0,function(d){var g=d?t[d]:t;g&&g.enterFrom&&(d&&(h[d]=h[d]||{}),ce(d?h[d]:h,g.enterFrom))});var v=cD("enter",e,t,r,i);v.duration>0&&e.animateFrom(h,v)}else D_e(e,t,i||0,r,c);HW(e,t),u?e.dirty():e.markRedraw()}function HW(e,t){for(var r=Bf(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function I_e(e,t){Oe(t,"silent")&&(e.silent=t.silent),Oe(t,"ignore")&&(e.ignore=t.ignore),e instanceof na&&Oe(t,"invisible")&&(e.invisible=t.invisible),e instanceof pt&&Oe(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var $a={},L_e={setTransform:function(e,t){return $a.el[e]=t,this},getTransform:function(e){return $a.el[e]},setShape:function(e,t){var r=$a.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=$a.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=$a.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=$a.el.style;if(t)return t[e]},setExtra:function(e,t){var r=$a.el.extra||($a.el.extra={});return r[e]=t,this},getExtra:function(e){var t=$a.el.extra;if(t)return t[e]}};function P_e(){var e=this,t=e.el;if(t){var r=Bf(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}$a.el=t,n(L_e)}}function fF(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),Ou(l))ce(o,a);else for(var u=Yt(l),c=0;c=0){!o&&(o=n[e]={});for(var v=yt(a),c=0;c=0)){var h=e.getAnimationStyleProps(),v=h?h.style:null;if(v){!a&&(a=n.style={});for(var d=yt(r),u=0;u=0?t.getStore().get(Y,N):void 0}var G=t.get(V.name,N),Z=V&&V.ordinalMeta;return Z?Z.categories[G]:G}function b(O,N){N==null&&(N=u);var V=t.getItemVisual(N,"style"),Y=V&&V.fill,G=V&&V.opacity,Z=S(N,Ys).getItemStyle();Y!=null&&(Z.fill=Y),G!=null&&(Z.opacity=G);var J={inheritColor:Ee(Y)?Y:"#000"},re=w(N,Ys),pe=lr(re,null,J,!1,!0);pe.text=re.getShallow("show")?et(e.getFormattedLabel(N,Ys),Nf(t,N)):null;var Me=e0(re,J,!1);return D(O,Z),Z=lF(Z,pe,Me),O&&M(Z,O),Z.legacy=!0,Z}function A(O,N){N==null&&(N=u);var V=S(N,Xo).getItemStyle(),Y=w(N,Xo),G=lr(Y,null,null,!0,!0);G.text=Y.getShallow("show")?eo(e.getFormattedLabel(N,Xo),e.getFormattedLabel(N,Ys),Nf(t,N)):null;var Z=e0(Y,null,!0);return D(O,V),V=lF(V,G,Z),O&&M(V,O),V.legacy=!0,V}function M(O,N){for(var V in N)Oe(N,V)&&(O[V]=N[V])}function D(O,N){O&&(O.textFill&&(N.textFill=O.textFill),O.textPosition&&(N.textPosition=O.textPosition))}function L(O,N){if(N==null&&(N=u),Oe(oF,O)){var V=t.getItemVisual(N,"style");return V?V[oF[O]]:null}if(Oe(g_e,O))return t.getItemVisual(N,O)}function P(O){if(a.type==="cartesian2d"){var N=a.getBaseAxis();return Efe(We({axis:N},O))}}function E(){return r.getCurrentSeriesIndices()}function F(O){return nM(O,r)}}function W_e(e){var t={};return R(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function Rx(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=pD(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Cr(s,n.focus,n.blurScope,n.emphasisDisabled),s}function pD(e,t,r,n,i,a){var o=-1,s=t;t&&XW(t,n,i)&&(o=ht(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=vD(n),s&&z_e(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),$i.normal.cfg=$i.normal.conOpt=$i.emphasis.cfg=$i.emphasis.conOpt=$i.blur.cfg=$i.blur.conOpt=$i.select.cfg=$i.select.conOpt=null,$i.isLegacy=!1,Y_e(u,r,n,i,l,$i),U_e(u,r,n,i,l),dD(e,u,r,n,$i,i,l),Oe(n,"info")&&(Yo(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function XW(e,t,r){var n=Yo(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&K_e(a)&&ZW(a)!==n.customPathData||i==="image"&&Oe(o,"image")&&o.image!==n.customImagePath}function U_e(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&XW(o,a,n)&&(o=null),o||(o=vD(a),e.setClipPath(o)),dD(null,o,t,a,null,n,i)}}function Y_e(e,t,r,n,i,a){if(!e.isGroup){dF(r,null,a),dF(r,Xo,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=vD(o),e.setTextContent(c)),dD(null,c,t,o,null,n,i);for(var f=o&&o.style,h=0;h=c;v--){var d=t.childAt(v);Z_e(t,d,i)}}}function Z_e(e,t,r){t&&X_(t,Yo(e).option,r)}function q_e(e){new Jo(e.oldChildren,e.newChildren,pF,pF,e).add(gF).update(gF).remove(j_e).execute()}function pF(e,t){var r=e&&e.name;return r??V_e+t}function gF(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;pD(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function j_e(e){var t=this.context,r=t.oldChildren[e];r&&X_(r,Yo(r).option,t.seriesModel)}function ZW(e){return e&&(e.pathData||e.d)}function K_e(e){return e&&(Oe(e,"pathData")||Oe(e,"d"))}function J_e(e){e.registerChartView(G_e),e.registerSeriesModel(m_e)}var uu=Tt(),mF=Ze,Ex=ke,mD=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new qe,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=tt(yF,r,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}SF(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=GM(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=uu(t).pointerEl=new tc[a.type](mF(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=uu(t).labelEl=new It(mF(r.label));t.add(a),_F(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=uu(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=uu(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),_F(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=up(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Zo(u.event)},onmousedown:Ex(this._onHandleDragMove,this,0,0),drift:Ex(this._onHandleDragMove,this),ondragend:Ex(this._onHandleDragEnd,this)}),n.add(i)),SF(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ge(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,sh(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){yF(this._axisPointerModel,!r&&this._moveAnimation,this._handle,kx(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(kx(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(kx(i)),uu(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Md(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function yF(e,t,r,n){qW(uu(r).lastProp,n)||(uu(r).lastProp=n,t?kt(r,n,e):(r.stopAnimation(),r.attr(n)))}function qW(e,t){if(Ye(e)&&Ye(t)){var r=!0;return R(t,function(n,i){r=r&&qW(e[i],n)}),!!r}else return e===t}function _F(e,t){e[t.get(["label","show"])?"show":"hide"]()}function kx(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function SF(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function yD(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function jW(e,t,r,n,i){var a=r.get("value"),o=KW(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=nh(s.get("padding")||0),u=s.getFont(),c=rp(o,u),f=i.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=i.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(f[1]-=v),g==="middle"&&(f[1]-=v/2),Q_e(f,h,v,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:lr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function Q_e(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function KW(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:LM(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ee(o)?a=o.replace("{value}",a):$e(o)&&(a=o(s))}return a}function _D(e,t,r){var n=Mi();return ec(n,n,r.rotation),ao(n,n,r.position),ba([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function JW(e,t,r,n,i,a){var o=Un.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),jW(t,n,i,a,{position:_D(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function SD(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function QW(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function wF(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var e1e=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=xF(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=yD(a),v=t1e[u](s,f,c);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=YC(l.model,i);JW(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=YC(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=_D(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=xF(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[c]}},t}(mD);function xF(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var t1e={line:function(e,t,r){var n=SD([t,r[0]],[t,r[1]],bF(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:QW([t-n/2,r[0]],[n,i],bF(e))}}};function bF(e){return e.dim==="x"?0:1}var r1e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(mt),Go=Tt(),n1e=R;function eU(e,t,r){if(!gt.node){var n=t.getZr();Go(n).records||(Go(n).records={}),i1e(n,t);var i=Go(n).records[e]||(Go(n).records[e]={});i.handler=r}}function i1e(e,t){if(Go(e).initialized)return;Go(e).initialized=!0,r("click",tt(CF,"click")),r("mousemove",tt(CF,"mousemove")),r("globalout",o1e);function r(n,i){e.on(n,function(a){var o=s1e(t);n1e(Go(e).records,function(s){s&&i(s,a,o.dispatchAction)}),a1e(o.pendings,t)})}}function a1e(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function o1e(e,t,r){e.handler("leave",null,r)}function CF(e,t,r,n){t.handler(e,r,n)}function s1e(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function vT(e,t){if(!gt.node){var r=t.getZr(),n=(Go(r).records||{})[e];n&&(Go(r).records[e]=null)}}var l1e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";eU("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){vT("axisPointer",n)},t.prototype.dispose=function(r,n){vT("axisPointer",n)},t.type="axisPointer",t}(mr);function tU(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Yu(a,e);if(o==null||o<0||ge(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=a.mapDimension(h),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(Se(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var TF=Tt();function u1e(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ke(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){gy(i)&&(i=tU({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=gy(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||gy(i),h={},v={},d={list:[],map:{}},g={showPointer:tt(f1e,v),showTooltip:tt(h1e,d)};R(s.coordSysMap,function(y,S){var w=l||y.containPoint(i);R(s.coordSysAxesInfo[S],function(x,T){var b=x.axis,A=g1e(u,x);if(!f&&w&&(!u||A)){var M=A&&A.value;M==null&&!l&&(M=b.pointToData(i)),M!=null&&AF(x,M,g,!1,h)}})});var m={};return R(c,function(y,S){var w=y.linkGroup;w&&!v[S]&&R(w.axesInfo,function(x,T){var b=v[T];if(x!==y&&b){var A=b.value;w.mapper&&(A=y.axis.scale.parse(w.mapper(A,MF(x),MF(y)))),m[y.key]=A}})}),R(m,function(y,S){AF(c[S],y,g,!0,h)}),v1e(v,c,h),d1e(d,i,e,o),p1e(c,o,r),h}}function AF(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=c1e(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&ce(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function c1e(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,e,r);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=e-f,g=Math.abs(d);g<=o&&((g=0&&s<0)&&(o=g,s=d,i=f,a.length=0),R(h,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function f1e(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function h1e(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=kd(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.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 v1e(e,t,r){var n=r.axesInfo=[];R(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function d1e(e,t,r,n){if(gy(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function p1e(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=TF(n)[i]||{},o=TF(n)[i]={};R(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&R(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];R(a,function(u,c){!o[c]&&l.push(u)}),R(o,function(u,c){!a[c]&&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 g1e(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function MF(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function gy(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function xp(e){ac.registerAxisPointerClass("CartesianAxisPointer",e1e),e.registerComponentModel(r1e),e.registerComponentView(l1e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!ge(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=Ade(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},u1e)}function m1e(e){vt(IH),vt(xp)}var y1e=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),h=a.get("type");if(h&&h!=="none"){var v=yD(a),d=S1e[h](s,l,f,c);d.style=v,r.graphicKey=d.type,r.pointer=d}var g=a.get(["label","margin"]),m=_1e(n,i,a,l,g);jW(r,i,a,o,m)},t}(mD);function _1e(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var h=Mi();ec(h,h,s),ao(h,h,[n.cx,n.cy]),u=ba([o,-i],h);var v=t.getModel("axisLabel").get("rotate")||0,d=Un.innerTextLayout(s,v*Math.PI/180,-1);c=d.textAlign,f=d.textVerticalAlign}else{var g=l[1];u=n.coordToPoint([g+i,o]);var m=n.cx,y=n.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",f=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var S1e={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:SD(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:wF(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:wF(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}},w1e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(mt),wD=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Vr).models[0]},t.type="polarAxis",t}(mt);Gr(wD,vp);var x1e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(wD),b1e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(wD),xD=function(e){j(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(La);xD.prototype.dataToRadius=La.prototype.dataToCoord;xD.prototype.radiusToData=La.prototype.coordToData;var C1e=Tt(),bD=function(e){j(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=rp(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=C1e(r.model),g=d.lastAutoInterval,m=d.lastTickCount;return g!=null&&m!=null&&Math.abs(g-v)<=1&&Math.abs(m-o)<=1&&g>v?v=g:(d.lastTickCount=o,d.lastAutoInterval=v),v},t}(La);bD.prototype.dataToAngle=La.prototype.dataToCoord;bD.prototype.angleToData=La.prototype.coordToData;var rU=["radius","angle"],T1e=function(){function e(t){this.dimensions=rU,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new xD,this._angleAxis=new bD,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,h=this.r0;return c<=f*f&&c>=h*h}}},e.prototype.convertToPixel=function(t,r,n){var i=DF(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=DF(r);return i===this?this.pointToData(n):null},e}();function DF(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function A1e(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=Ie(n[0],i),e.cy=Ie(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:ge(l)||(l=[0,l]);var u=[Ie(l[0],s),Ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function M1e(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();R(f0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),R(f0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Of(n.scale,n.model),Of(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function D1e(e){return e.mainType==="angleAxis"}function IF(e,t){var r;if(e.type=t.get("type"),e.scale=z_(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),D1e(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(r=t.get("endAngle"))!==null&&r!==void 0?r:n+(e.inverse?-360:360);e.setExtent(n,i)}t.axis=e,e.model=t}var I1e={dimensions:rU,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new T1e(i+"");a.update=M1e;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");IF(o,l),IF(s,u),A1e(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",Vr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}},L1e=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function mm(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function ym(e){var t=e.getRadiusAxis();return t.inverse?0:1}function LF(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var P1e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Se(i.getViewLabels(),function(c){c=Ze(c);var f=i.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(h),c});LF(u),LF(s),R(L1e,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&R1e[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(ac),R1e={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=ym(r),f=c?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?h=new tc[v]({shape:{cx:r.cx,cy:r.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new ap({shape:{cx:r.cx,cy:r.cy,r:a[c],r0:a[f]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,e.add(h)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[ym(r)],u=Se(n,function(c){return new jr({shape:mm(r,[l,l+s],c.coord)})});e.add(Ki(u,{style:We(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[ym(r)],c=[],f=0;fy?"left":"right",x=Math.abs(m[1]-S)/g<.3?"middle":m[1]>S?"top":"bottom";if(s&&s[d]){var T=s[d];Ye(T)&&T.textStyle&&(v=new $t(T.textStyle,l,l.ecModel))}var b=new It({silent:Un.isLabelSilent(t),style:lr(v,{x:m[0],y:m[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:w,verticalAlign:x})});if(e.add(b),c){var A=Un.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=f.rawLabel,Ke(b).eventData=A}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",N=D;T&&(n[c][F]||(n[c][F]={p:D,n:D}),N=n[c][F][O]);var V=void 0,Y=void 0,G=void 0,Z=void 0;if(d.dim==="radius"){var J=d.dataToCoord(E)-D,re=l.dataToCoord(F);Math.abs(J)=Z})}}})}function B1e(e){var t={};R(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=iU(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;t[l]=f;var v=nU(n);h[v]||f.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=Ie(n.get("barWidth"),c),g=Ie(n.get("barMaxWidth"),c),m=n.get("barGap"),y=n.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(f.remainedWidth,d),h[v].width=d,f.remainedWidth-=d),g&&(h[v].maxWidth=g),m!=null&&(f.gap=m),y!=null&&(f.categoryGap=y)});var r={};return R(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=Ie(n.categoryGap,o),l=Ie(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),R(a,function(g,m){var y=g.maxWidth;y&&y=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=PF(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=PF(r);return i===this?this.pointToData(n):null},e}();function PF(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function j1e(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new q1e(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",Vr).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var K1e={create:j1e,dimensions:aU},RF=["x","y"],J1e=["width","height"],Q1e=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=Ox(l,1-T0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var h=yD(a),v=eSe[f](s,c,u);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=dT(i);JW(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=dT(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=_D(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=T0(o),u=Ox(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=Ox(s,1-l),h=(f[1]+f[0])/2,v=[h,h];return v[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},t}(mD),eSe={line:function(e,t,r){var n=SD([t,r[0]],[t,r[1]],T0(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:QW([t-n/2,r[0]],[n,i],T0(e))}}};function T0(e){return e.isHorizontal()?0:1}function Ox(e,t){var r=e.getRect();return[r[RF[t]],r[RF[t]]+r[J1e[t]]]}var tSe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(mr);function rSe(e){vt(xp),ac.registerAxisPointerClass("SingleAxisPointer",Q1e),e.registerComponentView(tSe),e.registerComponentView(Y1e),e.registerComponentModel(my),Ff(e,"single",my,my.defaultOption),e.registerCoordinateSystem("single",K1e)}var nSe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=ih(r);e.prototype.init.apply(this,arguments),EF(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),EF(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(mt);function EF(e,t){var r=e.cellSize,n;ge(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Se([0,1],function(a){return Cle(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});al(e,t,{type:"box",ignoreSize:i})}var iSe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Ct({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,h=0;f.time<=n.end.time;h++){d(f.formatedDate),h===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(r,g,i);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new Kn({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return Ee(r)&&r?wle(r,n):$e(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,h=i==="horizontal"?0:1,v={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var g=o.get("formatter"),m={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(g,m),S=new It({z2:30,style:lr(o,{text:y})});S.attr(this._yearTextPositionControl(S,v[l],i,l,s)),a.add(S)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||Ee(s))&&(s&&(n=xC(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=c==="center",g=0;g=i.start.time&&n.times.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/Nx)-Math.floor(r[0].time/Nx)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&ri.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function kF(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function oSe(e){e.registerComponentModel(nSe),e.registerComponentView(iSe),e.registerCoordinateSystem("calendar",aSe)}function sSe(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function OF(e,t){var r;return R(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function lSe(e,t,r){var n=ce({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(it(i,n,!0),al(i,n,{ignoreSize:!0}),JG(r,i),_m(r,i),_m(r,i,"shape"),_m(r,i,"style"),_m(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var oU=["transition","enterFrom","leaveTo"],uSe=oU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function _m(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?oU:uSe,i=0;i=0;c--){var f=i[c],h=$r(f.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,y=Xi(d),S=d===a?{width:s,height:l}:{width:y.width,height:y.height},w={},x=P_(v,f,S,null,{hv:f.hv,boundingMode:f.bounding},w);if(!Xi(v).isNew&&x){for(var T=f.transition,b={},A=0;A=0)?b[M]=D:v[M]=D}kt(v,b,r,0)}else v.attr(w)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){yy(i,Xi(i).option,n,r._lastGraphicModel)}),this._elMap=Ne()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(mr);function pT(e){var t=Oe(NF,e)?NF[e]:rM(e),r=new t({});return Xi(r).type=e,r}function FF(e,t,r,n){var i=pT(r);return t.add(i),n.set(e,i),Xi(i).id=e,Xi(i).isNew=!0,i}function yy(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){yy(a,t,r,n)}),X_(e,t,n),r.removeKey(Xi(e).id))}function VF(e,t,r,n){e.isGroup||R([["cursor",na.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];Oe(t,a)?e[a]=et(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),R(yt(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=$e(a)?a:null}}),Oe(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function vSe(e){return e=ce({},e),R(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(KG),function(t){delete e[t]}),e}function dSe(e,t,r){var n=Ke(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ke(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function pSe(e){e.registerComponentModel(fSe),e.registerComponentView(hSe),e.registerPreprocessor(function(t){var r=t.graphic;ge(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var BF=["x","y","radius","angle","single"],gSe=["cartesian2d","polar","singleAxis"];function mSe(e){var t=e.get("coordinateSystem");return ht(gSe,t)>=0}function Xs(e){return e+"Axis"}function ySe(e,t){var r=Ne(),n=[],i=Ne();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=r.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(r.get(f)||r.set(f,[]))[h]=!0})}return n}function sU(e){var t=e.ecModel,r={infoList:[],infoMap:Ne()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(Xs(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var Fx=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),zd=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=zF(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=zF(r);it(this.option,r,!0),it(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;R([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=Ne(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return R(BF,function(i){var a=this.getReferringComponents(Xs(i),coe);if(a.specified){n=!0;var o=new Fx;R(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new Fx;if(h.add(f.componentIndex),r.set(c,h),a=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",Vr).models[0];v&&R(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Vr).models[0]&&h.add(d.componentIndex)})}}}a&&R(BF,function(u){if(a){var c=i.findComponents({mainType:Xs(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new Fx;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");R([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(Xs(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){R(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(Xs(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;R([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;R(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(w&&!x&&!T)return!0;w&&(m=!0),x&&(d=!0),T&&(g=!0)}return m&&d&&g})}else qc(c,function(v){if(a==="empty")l.setData(u=u.map(v,function(g){return s(g)?g:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});qc(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;qc(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Ht(n[0]+o,n,[0,100],!0):a!=null&&(o=Ht(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=zz(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function xSe(e,t,r){var n=[1/0,-1/0];qc(r,function(o){the(n,o.getData(),t)});var i=e.getAxisModel(),a=T$(i.axis.scale,i,n).calculate();return[a.min,a.max]}var bSe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(Xs(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new wSe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=Ne();return R(r,function(i){R(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function CSe(e){e.registerAction("dataZoom",function(t,r){var n=ySe(r,t);R(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var $F=!1;function TD(e){$F||($F=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,bSe),CSe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function TSe(e){e.registerComponentModel(_Se),e.registerComponentView(SSe),TD(e)}var ji=function(){function e(){}return e}(),lU={};function jc(e,t){lU[e]=t}function uU(e){return lU[e]}var ASe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;R(this.option.feature,function(n,i){var a=uU(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),it(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(mt);function MSe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=Hr(n,a,i);Eu(t.get("orient"),e,t.get("itemGap"),o.width,o.height),P_(e,n,a,i)}function cU(e,t){var r=nh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ct({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var DSe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];R(u,function(d,g){f.push(g)}),new Jo(this._featureNames||[],f).add(h).update(h).remove(tt(h,null)).execute(),this._featureNames=f;function h(d,g){var m=f[d],y=f[g],S=u[m],w=new $t(S,r,r.ecModel),x;if(a&&a.newTitle!=null&&a.featureName===m&&(S.title=a.newTitle),m&&!y){if(ISe(m))x={onclick:w.option.onclick,featureName:m};else{var T=uU(m);if(!T)return;x=new T}c[m]=x}else if(x=c[y],!x)return;x.uid=rh("toolbox-feature"),x.model=w,x.ecModel=n,x.api=i;var b=x instanceof ji;if(!m&&y){b&&x.dispose&&x.dispose(n,i);return}if(!w.get("show")||b&&x.unusable){b&&x.remove&&x.remove(n,i);return}v(w,x,m),w.setIconStatus=function(A,M){var D=this.option,L=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[A]=M,L[A]&&(M==="emphasis"?jo:Ko)(L[A])},x instanceof ji&&x.render&&x.render(w,n,i,a)}function v(d,g,m){var y=d.getModel("iconStyle"),S=d.getModel(["emphasis","iconStyle"]),w=g instanceof ji&&g.getIcons?g.getIcons():d.get("icon"),x=d.get("title")||{},T,b;Ee(w)?(T={},T[m]=w):T=w,Ee(x)?(b={},b[m]=x):b=x;var A=d.iconPaths={};R(T,function(M,D){var L=up(M,{},{x:-s/2,y:-s/2,width:s,height:s});L.setStyle(y.getItemStyle());var P=L.ensureState("emphasis");P.style=S.getItemStyle();var E=new It({style:{text:b[D],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:nM({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},n)},ignore:!0});L.setTextContent(E),eh({el:L,componentModel:r,itemName:D,formatterParamsExtra:{title:b[D]}}),L.__title=b[D],L.on("mouseover",function(){var F=S.getItemStyle(),O=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:S.get("textFill")||F.fill||F.stroke||"#000",backgroundColor:S.get("textBackgroundColor")}),L.setTextConfig({position:S.get("textPosition")||O}),E.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",D])!=="emphasis"&&i.leaveEmphasis(this),E.hide()}),(d.get(["iconStatus",D])==="emphasis"?jo:Ko)(L),o.add(L),L.on("click",ke(g.onclick,g,n,i,D)),A[D]=L})}MSe(o,r,i),o.add(cU(o.getBoundingRect(),r)),l||o.eachChild(function(d){var g=d.__title,m=d.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),S=d.getTextContent(),w=S&&S.ensureState("emphasis");if(w&&!$e(w)&&g){var x=w.style||(w.style={}),T=rp(g,It.makeFont(x)),b=d.x+o.x,A=d.y+o.y+s,M=!1;A+T.height>i.getHeight()&&(y.position="top",M=!0);var D=M?-5-T.height:s+10;b+T.width/2>i.getWidth()?(y.position=["100%",D],x.align="right"):b-T.width/2<0&&(y.position=[0,D],x.align="left")}})},t.prototype.updateView=function(r,n,i,a){R(this._features,function(o){o instanceof ji&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){R(this._features,function(i){i instanceof ji&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){R(this._features,function(i){i instanceof ji&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(mr);function ISe(e){return e.indexOf("my")===0}var LSe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=gt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=d.length,y=new Uint8Array(m);m--;)y[m]=d.charCodeAt(m);var S=new Blob([y]);window.navigator.msSaveOrOpenBlob(S,g)}else{var w=document.createElement("iframe");document.body.appendChild(w);var x=w.contentWindow,T=x.document;T.open("image/svg+xml","replace"),T.write(d),T.close(),x.focus(),T.execCommand("SaveAs",!0,g),document.body.removeChild(w)}}else{var b=i.get("lang"),A='',M=window.open();M.document.write(A),M.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(ji),HF="__ec_magicType_stack__",PSe=[["line","bar"],["stack"]],RSe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return R(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(WF[i]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=WF[i](h,v,f,a);d&&(We(d,f.option),s.series.push(d));var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(i==="line"||i==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,S=y+"Axis",w=f.getReferringComponents(S,Vr).models[0],x=w.componentIndex;s[S]=s[S]||[];for(var T=0;T<=x;T++)s[S][x]=s[S][x]||{};s[S][x].boundaryGap=i==="bar"}}};R(PSe,function(f){ht(f,i)>=0&&R(f,function(h){a.setIconStatus(h,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=it({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(ji),WF={line:function(e,t,r,n){if(e==="bar")return it({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return it({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===HF;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),it({id:t,stack:i?"":HF},n.get(["option","stack"])||{},!0)}};co({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var Z_=new Array(60).join("-"),zf=" ";function ESe(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function kSe(e){var t=[];return R(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(Se(r.series,function(v){return v.name})),l=[i.model.getCategories()];R(r.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(g){return g}))});for(var u=[s.join(zf)],c=0;c1||r>0&&!e.noHeader;return R(e.blocks,function(i){var a=A4(i);a>=t&&(t=a+ +(n&&(!a||DC(i)&&!i.noHeader)))}),t}return 0}function Tue(e,t,r,n){var i=t.noHeader,a=Mue(A4(t)),o=[],s=t.blocks||[];Xn(!s||ge(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Oe(u,l)){var c=new y4(u[l],null);s.sort(function(d,g){return c.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(d,g){var m=t.valueFormatter,y=T4(d)(m?ce(ce({},e),{valueFormatter:m}):e,d,g>0?a.html:0,n);y!=null&&o.push(y)});var f=e.renderMode==="richText"?o.join(a.richText):IC(o.join(""),i?r:a.html);if(i)return f;var h=bC(t.header,"ordinal",e.useUTC),v=C4(n,e.renderMode).nameStyle;return e.renderMode==="richText"?M4(e,h,v)+a.richText+f:IC('
'+ai(h)+"
"+f,r)}function Aue(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(x){return x=ge(x)?x:[x],Se(x,function(T,b){return bC(T,ge(v)?v[b]:v,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":bC(l,"ordinal",u),v=t.valueType,d=o?[]:c(t.value,t.dataIndex),g=!s||!a,m=!s&&a,y=C4(n,i),S=y.nameStyle,w=y.valueStyle;return i==="richText"?(s?"":f)+(a?"":M4(e,h,S))+(o?"":Lue(e,d,g,m,w)):IC((s?"":f)+(a?"":Due(h,!s,S))+(o?"":Iue(d,g,m,w)),r)}}function ZE(e,t,r,n,i,a){if(e){var o=T4(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Mue(e){return{html:bue[e],richText:Cue[e]}}function IC(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function Due(e,t,r){var n=t?"margin-left:2px":"";return''+ai(e)+""}function Iue(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ge(e)?e:[e],''+Se(e,function(o){return ai(o)}).join("  ")+""}function M4(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Lue(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ge(t)?t.join(" "):t,a)}function D4(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return qu(n)}function I4(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var xw=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Wz()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=wle({color:r,type:t,renderMode:n,markerId:i});return Ee(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};ge(r)?R(r,function(a){return ce(n,a)}):ce(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function L4(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=ge(s),u=D4(t,r),c,f,h,v;if(o>1||l&&!o){var d=Pue(s,t,r,a,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=c=Ef(i,r,a[0]),f=g.type}else v=c=l?s[0]:s;var m=HA(t),y=m&&t.name||"",S=i.getName(r),w=n?y:S;return rn("section",{header:y,noHeader:n||!m,sortParam:v,blocks:[rn("nameValue",{markerType:"item",markerColor:u,name:w,noName:!ma(w),value:c,valueType:f,dataIndex:r})].concat(h||[])})}function Pue(e,t,r,n,i){var a=t.getData(),o=io(e,function(f,h,v){var d=a.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(f){c(Ef(a,r,f),f)}):R(e,c);function c(f,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(rn("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ws=Tt();function Wg(e,t){return e.getName(t)||e.getId(t)}var hy="__universalTransitionEnabled",ur=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Zv({count:Eue,reset:kue}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=ws(this).sourceManager=new x4(this);a.prepareSource();var o=this.getInitialData(r,i);jE(o,this),this.dataTask.context.data=o,ws(this).dataBeforeProcessed=o,qE(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Td(this),a=i?ih(r):{},o=this.subType;mt.hasClass(o)&&(o+="Series"),it(r,n.getTheme().get(this.subType)),it(r,this.getDefaultOption()),Uu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&al(r,a,i)},t.prototype.mergeOption=function(r,n){r=it(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Td(this);i&&al(this.option,r,i);var a=ws(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);jE(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ws(this).dataBeforeProcessed=o,qE(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!vi(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=hM.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Wg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[hy])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Ye(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return mt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(mt);Gr(ur,E_);Gr(ur,hM);Qz(ur,mt);function qE(e){var t=e.name;HA(e)||(e.name=Rue(e)||t)}function Rue(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return R(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function Eue(e){return e.model.getRawData().count()}function kue(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Oue}function Oue(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function jE(e,t){R(zy(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,tt(Nue,t))})}function Nue(e,t){var r=LC(e);return r&&r.setOutputEnd((t||this).count()),t}function LC(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var mr=function(){function e(){this.group=new qe,this.uid=rh("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();UA(mr);p_(mr);function oh(){var e=Tt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var P4=Tt(),Fue=oh(),Kt=function(){function e(){this.group=new qe,this.uid=rh("viewChart"),this.renderTask=Zv({plan:Vue,reset:Bue}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&JE(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&JE(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){pl(this.group,t)},e.markUpdateMethod=function(t,r){P4(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function KE(e,t,r){e&&xd(e)&&(t==="emphasis"?jo:Ko)(e,r)}function JE(e,t,r){var n=Yu(e,t),i=t&&t.highlightKey!=null?wse(t.highlightKey):null;n!=null?R(Yt(n),function(a){KE(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){KE(a,r,i)})}UA(Kt);p_(Kt);function Vue(e){return Fue(e.model)}function Bue(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&P4(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),zue[l]}var zue={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},n0="\0__throttleOriginMethod",QE="\0__throttleRate",ek="\0__throttleType";function yM(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var h=function(){for(var v=[],d=0;d=0?f():o=setTimeout(f,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function sh(e,t,r,n){var i=e[t];if(i){var a=i[n0]||i,o=i[ek],s=i[QE];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=yM(a,r,n==="debounce"),i[n0]=a,i[ek]=n,i[QE]=r}return i}}function Md(e,t){var r=e[t];r&&r[n0]&&(r.clear&&r.clear(),e[t]=r[n0])}var tk=Tt(),rk={itemStyle:Xu(FG,!0),lineStyle:Xu(NG,!0)},Gue={lineStyle:"stroke",itemStyle:"fill"};function R4(e,t){var r=e.visualStyleMapper||rk[t];return r||(console.warn("Unknown style type '"+t+"'."),rk.itemStyle)}function E4(e,t){var r=e.visualDrawType||Gue[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var $ue={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=R4(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=E4(e,n),u=o[l],c=$e(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$e(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||$e(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=e.getDataParams(d),m=ce({},o);m[l]=c(g),v.setItemVisual(d,"style",m)}}}},Hh=new $t,Hue={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=R4(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Hh.option=l[n];var u=i(Hh),c=o.ensureUniqueItemVisual(s,"style");ce(c,u),Hh.option.decal&&(o.setItemVisual(s,"decal",Hh.option.decal),Hh.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Wue={performRawSeries:!0,overallReset:function(e){var t=Ne();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),tk(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=tk(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=E4(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var h=a.ensureUniqueItemVisual(c,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=r.getColorFromPalette(v,o,d)}})}})}},Ug=Math.PI;function Uue(e,t){t=t||{},We(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new qe,n=new Ct({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new It({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ct({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new x_({shape:{startAngle:-Ug/2,endAngle:-Ug/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ug*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ug*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var k4=function(){function e(t,r,n,i){this._stageTaskMap=Ne(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=Ne();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;R(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Xn(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;R(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(m){s(i,m)&&(m.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,i.block);d.each(function(m){m.perform(g)}),h.perform(g)&&(a=!0)}else f&&f.each(function(m,y){s(i,m)&&m.dirty();var S=o.getPerformArgs(m,i.block);S.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(S)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Ne(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||Zv({plan:jue,reset:Kue,count:Que}));v.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Zv({reset:Yue});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Ne(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,v="";Xn(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):c?c(n,i).each(d):(f=!1,R(n.getSeries(),d));function d(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(h=!0,Zv({reset:Xue,onDirty:que})));y.context={model:g,overallProgress:f},y.agent=o,y.__block=f,a._pipe(g,y)}h&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return $e(t)&&(t={overallReset:t,seriesType:ece(t)}),t.uid=rh("stageHandler"),r&&(t.visualType=r),t},e}();function Yue(e){e.overallReset(e.ecModel,e.api,e.payload)}function Xue(e){return e.overallProgress&&Zue}function Zue(){this.agent.dirty(),this.getDownstream().dirty()}function que(){this.agent&&this.agent.dirty()}function jue(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Kue(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Yt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Se(t,function(r,n){return O4(n)}):Jue}var Jue=O4(0);function O4(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),PC=["symbol","symbolSize","symbolRotate","symbolOffset"],ok=PC.concat(["symbolKeepAspect"]),nce={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&_u(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function RC(e,t,r){for(var n=t.type==="radial"?yce(e,t,r):mce(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Pt(e)?[e]:ge(e)?e:null}function SM(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Sce(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Se(r,function(a){return a/i}),n/=i)}return[r,n]}var wce=new lo(!0);function o0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function sk(e){return typeof e=="string"&&e!=="none"}function s0(e){var t=e.fill;return t!=null&&t!=="none"}function lk(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function uk(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function EC(e,t,r){var n=YA(t.image,t.__image,r);if(g_(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Qm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function xce(e,t,r,n){var i,a=o0(r),o=s0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||wce,f=t.__dirty;if(!n){var h=r.fill,v=r.stroke,d=o&&!!h.colorStops,g=a&&!!v.colorStops,m=o&&!!h.image,y=a&&!!v.image,S=void 0,w=void 0,x=void 0,T=void 0,b=void 0;(d||g)&&(b=t.getBoundingRect()),d&&(S=f?RC(e,h,b):t.__canvasFillGradient,t.__canvasFillGradient=S),g&&(w=f?RC(e,v,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=w),m&&(x=f||!t.__canvasFillPattern?EC(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=x),y&&(T=f||!t.__canvasStrokePattern?EC(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?e.fillStyle=S:m&&(x?e.fillStyle=x:o=!1),g?e.strokeStyle=w:y&&(T?e.strokeStyle=T:a=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var M,D;e.setLineDash&&r.lineDash&&(i=SM(t),M=i[0],D=i[1]);var L=!0;(u||f&Yc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),L=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),L&&c.rebuildPath(e,l?s:1),M&&(e.setLineDash(M),e.lineDashOffset=D),n||(r.strokeFirst?(a&&uk(e,r),o&&lk(e,r)):(o&&lk(e,r),a&&uk(e,r))),M&&e.setLineDash([])}function bce(e,t,r){var n=t.__image=YA(r.image,t.__image,t,t.onload);if(!(!n||!g_(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,h=s-c;e.drawImage(n,u,c,f,h,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function Cce(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||tl,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=SM(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(o0(r)&&e.strokeText(i,r.x,r.y),s0(r)&&e.fillText(i,r.x,r.y)):(s0(r)&&e.fillText(i,r.x,r.y),o0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var ck=["shadowBlur","shadowOffsetX","shadowOffsetY"],fk=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function G4(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){li(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Iu.opacity:o}(n||t.blend!==r.blend)&&(a||(li(e,i),a=!0),e.globalCompositeOperation=t.blend||Iu.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Cn]){if(this._disposed){this.id;return}var a,o,s;if(Ye(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Cn]=!0,!this._model||n){var l=new Ble(this._api),u=this._theme,c=this._model=new vM;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},OC);var f={seriesTransition:s,optionChanged:!0};if(i)this[ii]={silent:a,updateParams:f},this[Cn]=!1,this.getZr().wakeUp();else{try{Ec(this),xs.update.call(this,null,f)}catch(h){throw this[ii]=null,this[Cn]=!1,h}this._ssr||this._zr.flush(),this[ii]=null,this[Cn]=!1,Wh.call(this,a),Uh.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||gt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(gt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return R(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;R(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return R(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Ak[i]){var l=s,u=s,c=-s,f=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();R(jv,function(w,x){if(w.group===i){var T=n?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(Ze(r)),b=w.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),c=o(b.right,c),f=o(b.bottom,f),h.push({dom:T,left:b.left,top:b.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,g=f-u,m=rl.createCanvas(),y=PR(m,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var S="";return R(h,function(w){var x=w.left-l,T=w.top-u;S+=''+w.dom+""}),y.painter.getSvgRoot().innerHTML=S,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Ct({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),R(h,function(w){var x=new ln({style:{x:w.left*v-l,y:w.top*v-u,image:w.dom}});y.add(x)}),y.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Mw(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Mw(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Hv(i,r);return R(o,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Hv(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?_M(s,l,n):fp(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;R(qce,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&yu(s,function(d){var g=Ke(d);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=ce({},g.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),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)}),R(qv,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),R(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),ace(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&jz(this.getDom(),bM,"");var n=this,i=n._api,a=n._model;R(n._componentsViews,function(o){o.dispose(a,i)}),R(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 jv[n.id]},t.prototype.resize=function(r){if(!this[Cn]){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[ii]&&(a==null&&(a=this[ii].silent),i=!0,this[ii]=null),this[Cn]=!0;try{i&&Ec(this),xs.update.call(this,{type:"resize",animation:ce({duration:0},r&&r.animation)})}catch(o){throw this[Cn]=!1,o}this[Cn]=!1,Wh.call(this,a),Uh.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Ye(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!NC[r]){var i=NC[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=ce({},r);return n.type=qv[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Ye(n)||(n={silent:!!n}),!!l0[r.type]&&this._model){if(this[Cn]){this._pendingActions.push(r);return}var i=n.silent;Iw.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&>.browser.weChat&&this._throttledZrFlush(),Wh.call(this,i),Uh.call(this,i)}},t.prototype.updateLabelLayout=function(){pa.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Ec=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),Aw(f,!0),Aw(f,!1),h.plan()},Aw=function(f,h){for(var v=f._model,d=f._scheduler,g=h?f._componentsViews:f._chartsViews,m=h?f._componentsMap:f._chartsMap,y=f._zr,S=f._api,w=0;wh.get("hoverLayerThreshold")&&!gt.node&&!gt.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=f._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(g){return l(g,v,d,-1/0),!0})}}function l(f,h,v,d){var g=f.getTextContent(),m=f.getTextGuideLine(),y=f.isGroup;if(y)for(var S=f.childrenRef(),w=0;w0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(mf(y))return;if(y instanceof pt&&xse(y),y.__dirty){var S=y.prevStates;S&&y.useStates(S)}if(d){y.stateTransition=m;var w=y.getTextContent(),x=y.getTextGuideLine();w&&(w.stateTransition=m),x&&(x.stateTransition=m)}y.__dirty&&i(y)}})}Ck=function(f){return new(function(h){j(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){jo(d,g),Bi(f)},v.prototype.leaveEmphasis=function(d,g){Ko(d,g),Bi(f)},v.prototype.enterBlur=function(d){vG(d),Bi(f)},v.prototype.leaveBlur=function(d){KA(d),Bi(f)},v.prototype.enterSelect=function(d){dG(d),Bi(f)},v.prototype.leaveSelect=function(d){pG(d),Bi(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v}(s4))(f)},r$=function(f){function h(v,d){for(var g=0;g=0)){Mk.push(r);var a=k4.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function l$(e,t){NC[e]=t}function nfe(e,t,r){var n=kce("registerMap");n&&n(e,t,r)}var ife=mue;nc(wM,$ue);nc(O_,Hue);nc(O_,Wue);nc(wM,nce);nc(O_,ice);nc(j4,Rce);o$(u4);s$(Fce,Kle);l$("default",Uue);co({type:Lu,event:Lu,update:Lu},Er);co({type:sy,event:sy,update:sy},Er);co({type:Wv,event:Wv,update:Wv},Er);co({type:ly,event:ly,update:ly},Er);co({type:Uv,event:Uv,update:Uv},Er);a$("light",tce);a$("dark",V4);var Dk=[],afe={registerPreprocessor:o$,registerProcessor:s$,registerPostInit:Qce,registerPostUpdate:efe,registerUpdateLifecycle:CM,registerAction:co,registerCoordinateSystem:tfe,registerLayout:rfe,registerVisual:nc,registerTransform:ife,registerLoading:l$,registerMap:nfe,registerImpl:Ece,PRIORITY:Yce,ComponentModel:mt,ComponentView:mr,SeriesModel:ur,ChartView:Kt,registerComponentModel:function(e){mt.registerClass(e)},registerComponentView:function(e){mr.registerClass(e)},registerSeriesModel:function(e){ur.registerClass(e)},registerChartView:function(e){Kt.registerClass(e)},registerSubTypeDefaulter:function(e,t){mt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){$ae(e,t)}};function vt(e){if(ge(e)){R(e,function(t){vt(t)});return}ht(Dk,e)>=0||(Dk.push(e),$e(e)&&(e={install:e}),e.install(afe))}function Yh(e){return e==null?0:e.length||1}function Ik(e){return e}var Jo=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||Ik,this._newKeyGetter=i||Ik,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var Xh=Ye,bs=Se,ffe=typeof Int32Array>"u"?Array:Int32Array,hfe="e\0\0",Lk=-1,vfe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],dfe=["_approximateExtent"],Pk,jg,Zh,qh,Rw,Kg,Ew,Wn=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;c$(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===aa;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),ge(a)?a=a.slice():Xh(a)&&(a=ce({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Xh(r)?ce(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Xh(t)?ce(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?ce(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;dC(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){R(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:bs(this.dimensions,this._getDimInfo,this),this.hostModel)),Rw(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];$e(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(kA(arguments)))})},e.internalField=function(){Pk=function(t){var r=t._invertedIndicesMap;R(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new ffe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();function hp(e,t){dM(e)||(e=pM(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Ne(),a=[],o=gfe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&v$(o),l=n===e.dimensionsDefine,u=l?h$(e):f$(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=Ne(c),h=new S4(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function gfe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return R(t,function(a){var o;Ye(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function mfe(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var yfe=function(){function e(t){this.coordSysDims=[],this.axisMap=Ne(),this.categoryAxisMap=Ne(),this.coordSysName=t}return e}();function _fe(e){var t=e.get("coordinateSystem"),r=new yfe(t),n=Sfe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Sfe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Vr).models[0],a=e.getReferringComponents("yAxis",Vr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),kc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),kc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Vr).models[0];t.coordSysDims=["single"],r.set("single",i),kc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Vr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),kc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),kc(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),kc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function kc(e){return e.get("type")==="category"}function wfe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;xfe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,h;if(R(a,function(S,w){Ee(S)&&(a[w]=S={name:S}),l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!c&&S.type!=="ordinal"&&S.type!=="time"&&(!i||i===S.coordDim)&&(c=S))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,g=0;R(a,function(S){S.coordDim===v&&g++});var m={name:f,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,d),y.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(a.push(m),a.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function xfe(e){return!c$(e.schema)}function ol(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function d$(e,t){return ol(e,t)?e.getCalculationInfo("stackResultDimension"):t}function bfe(e,t){var r=e.get("coordinateSystem"),n=cp.get(r),i;return t&&t.coordSysDims&&(i=Se(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=c0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Cfe(e,t,r){var n,i;return r&&R(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function as(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=pM(e)):(i=n.getSource(),a=i.sourceFormat===aa);var o=_fe(t),s=bfe(t,o),l=r.useEncodeDefaulter,u=$e(l)?l:l?tt(n4,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=hp(i,c),h=Cfe(f.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(f),d=wfe(t,{schema:f,store:v}),g=new Wn(f,t);g.setCalculationInfo(d);var m=h!=null&&Tfe(i)?function(y,S,w,x){return x===h?w:this.defaultDimValueGetter(y,S,w,x)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,m),g}function Tfe(e){if(e.sourceFormat===aa){var t=Afe(e.data||[]);return!ge(Kf(t))}}function Afe(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();p_(fo);var Mfe=0,FC=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Mfe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Se(n,Dfe);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Ee(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Ne(this.categories))},e}();function Dfe(e){return Ye(e)&&e.value!=null?e.value:e+""}function VC(e){return e.type==="interval"||e.type==="log"}function Ife(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=$z(a/t);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=p$(o),l=i.niceTickExtent=[Ar(Math.ceil(e[0]/o)*o,s),Ar(Math.floor(e[1]/o)*o,s)];return Lfe(l,e),i}function kw(e){var t=Math.pow(10,$A(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ar(r*t)}function p$(e){return Za(e)+2}function Rk(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Lfe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Rk(e,0,t),Rk(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function N_(e,t){return e>=t[0]&&e<=t[1]}function F_(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function V_(e,t){return e*(t[1]-t[0])+t[0]}var B_=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new FC({})),ge(i)&&(i=new FC({categories:Se(i,function(a){return Ye(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Ee(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),N_(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),F_(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(V_(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(fo);fo.registerClass(B_);var Xl=Ar,Qo=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return N_(r,this._extent)},t.prototype.normalize=function(r){return F_(r,this._extent)},t.prototype.scale=function(r){return V_(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=p$(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:Xl(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function y$(e){var t=Efe(e),r=[];return R(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Ie(n.get("barWidth"),s),g=Ie(n.get("barMaxWidth"),s),m=Ie(n.get("barMinWidth")||(b$(n)?.5:1),s),y=n.get("barGap"),S=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:S,axisKey:MM(a),stackId:AM(n)})}),_$(r)}function _$(e){var t={};R(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);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 R(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=yt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Ie(s,o),c=Ie(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),R(a,function(y){var S=y.maxWidth,w=y.minWidth;if(y.width){var x=y.width;S&&(x=Math.min(x,S)),w&&(x=Math.max(x,w)),y.width=x,f-=x+c*x,h--}else{var x=v;S&&Sx&&(x=w),x!==v&&(y.width=x,f-=x+c*x,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,g;R(a,function(y,S){y.width||(y.width=v),g=y,d+=y.width*(1+c)}),g&&(d-=g.width*c);var m=-d/2;R(a,function(y,S){r[i][S]=r[i][S]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),r}function kfe(e,t,r){if(e&&t){var n=e[MM(t)];return n!=null&&r!=null?n[AM(r)]:n}}function S$(e,t){var r=m$(e,t),n=y$(r);R(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=AM(i),u=n[MM(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function w$(e){return{seriesType:e,plan:oh(),reset:function(t){if(x$(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=ol(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=Ofe(i,a),d=b$(t),g=t.get("barMinHeight")||0,m=c&&r.getDimensionIndex(c),y=r.getLayout("size"),S=r.getLayout("offset");return{progress:function(w,x){for(var T=w.count,b=d&&ja(T*3),A=d&&l&&ja(T*3),M=d&&ja(T),D=n.master.getRect(),L=h?D.width:D.height,P,E=x.getStore(),F=0;(P=w.next())!=null;){var O=E.get(f?m:o,P),N=E.get(s,P),V=v,Y=void 0;f&&(Y=+O-E.get(o,P));var G=void 0,Z=void 0,J=void 0,re=void 0;if(h){var pe=n.dataToPoint([O,N]);if(f){var Me=n.dataToPoint([Y,N]);V=Me[0]}G=V,Z=pe[1]+S,J=pe[0]-V,re=y,Math.abs(J)0?r:1:r))}var Nfe=function(e,t,r,n){for(;r>>1;e[i][1]i&&(this._approxInterval=i);var s=Jg.length,l=Math.min(Nfe(Jg,this._approxInterval,0,s),s-1);this._interval=Jg[l][1],this._minLevelUnit=Jg[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Pt(r)?r:+so(r)},t.prototype.contain=function(r){return N_(this.parse(r),this._extent)},t.prototype.normalize=function(r){return F_(this.parse(r),this._extent)},t.prototype.scale=function(r){return V_(r,this._extent)},t.type="time",t}(Qo),Jg=[["second",oM],["minute",sM],["hour",Xv],["quarter-day",Xv*6],["half-day",Xv*12],["day",Ji*1.2],["half-week",Ji*3.5],["week",Ji*7],["month",Ji*31],["quarter",Ji*95],["half-year",wE/2],["year",wE]];function Ffe(e,t,r,n){var i=so(t),a=so(r),o=function(d){return bE(i,d,n)===bE(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function Vfe(e,t){return e/=Ji,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Bfe(e){var t=30*Ji;return e/=t,e>6?6:e>3?3:e>2?2:1}function zfe(e){return e/=Xv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Ek(e,t){return e/=t?sM:oM,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Gfe(e){return $z(e)}function $fe(e,t,r){var n=new Date(e);switch(_f(t)){case"year":case"month":n[$G(r)](0);case"day":n[HG(r)](1);case"hour":n[WG(r)](0);case"minute":n[UG(r)](0);case"second":n[YG(r)](0),n[XG(r)](0)}return n.getTime()}function Hfe(e,t,r,n){var i=1e4,a=zG,o=0;function s(L,P,E,F,O,N,V){for(var Y=new Date(P),G=P,Z=Y[F]();G1&&N===0&&E.unshift({value:E[0].value-G})}}for(var N=0;N=n[0]&&S<=n[1]&&f++)}var w=(n[1]-n[0])/t;if(f>w*1.5&&h>w/1.5||(u.push(m),f>w||e===a[v]))break}c=[]}}}for(var x=Wt(Se(u,function(L){return Wt(L,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(L){return L.length>0}),T=[],b=x.length-1,v=0;v0;)a*=10;var s=[Ar(Yfe(n[0]/a)*a),Ar(Ufe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Kv.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=ha(r)/ha(this.base),N_(r,this._extent)},t.prototype.normalize=function(r){return r=ha(r)/ha(this.base),F_(r,this._extent)},t.prototype.scale=function(r){return r=V_(r,this._extent),Qg(this.base,r)},t.type="log",t}(fo),C$=IM.prototype;C$.getMinorTicks=Kv.getMinorTicks;C$.getLabel=Kv.getLabel;function em(e,t){return Wfe(e,Za(t))}fo.registerClass(IM);var Xfe=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[qfe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Zfe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Zfe={min:"_determinedMin",max:"_determinedMax"},qfe={min:"_dataMin",max:"_dataMax"};function T$(e,t,r){var n=e.rawExtentInfo;return n||(n=new Xfe(e,t,r),e.rawExtentInfo=n,n)}function tm(e,t){return t==null?null:pd(t)?NaN:e.parse(t)}function A$(e,t){var r=e.type,n=T$(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=m$("bar",o),l=!1;if(R(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=y$(s),c=jfe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function jfe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=kfe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;R(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;R(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,h=c/f-c;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function Of(e,t){var r=t,n=A$(e,r),i=n.extent,a=r.get("splitNumber");e instanceof IM&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function z_(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new B_({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new DM({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(fo.getClass(t)||Qo)}}function Kfe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function uh(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):Ee(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):$e(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(LM(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function LM(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Jfe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof B_?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=uh(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var vp=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),the=1e-8;function Ok(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return nhe(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return R(o,function(s){s.type==="polygon"?Nk(s.exterior,i,a,r):R(s.points,function(l){Nk(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new at(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function ohe(e,t){return e=ahe(e),Se(Wt(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Fk(o[0],o.slice(1)));break;case"MultiPolygon":R(i.coordinates,function(l){l[0]&&a.push(new Fk(l[0],l.slice(1)))});break;case"LineString":a.push(new Vk([i.coordinates]));break;case"MultiLineString":a.push(new Vk(i.coordinates))}var s=new I$(n[t||"name"],a,n.cp);return s.properties=n,s})}var Ld=Tt();function P$(e,t){var r=Se(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function she(e){var t=e.getLabelModel().get("customValues");if(t){var r=uh(e);return{labels:P$(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?uhe(e):fhe(e)}function lhe(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:P$(e,r)}:e.type==="category"?che(e,t):{ticks:Se(e.scale.getTicks(),function(n){return n.value})}}function uhe(e){var t=e.getLabelModel(),r=R$(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function R$(e,t){var r=E$(e,"labels"),n=PM(t),i=k$(r,n);if(i)return i;var a,o;return $e(n)?a=F$(e,n):(o=n==="auto"?hhe(e):n,a=N$(e,o)),O$(r,n,{labels:a,labelCategoryInterval:o})}function che(e,t){var r=E$(e,"ticks"),n=PM(t),i=k$(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),$e(n))a=F$(e,n,!0);else if(n==="auto"){var s=R$(e,e.getLabelModel());o=s.labelCategoryInterval,a=Se(s.labels,function(l){return l.tickValue})}else o=n,a=N$(e,o,!0);return O$(r,n,{ticks:a,tickCategoryInterval:o})}function fhe(e){var t=e.scale.getTicks(),r=uh(e);return{labels:Se(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function E$(e,t){return Ld(e)[t]||(Ld(e)[t]=[])}function k$(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,v=0;l<=a[1];l+=s){var d=0,g=0,m=rp(r({value:l}),t.font,"center","top");d=m.width*1.3,g=m.height*1.3,h=Math.max(h,d,7),v=Math.max(v,g,7)}var y=h/c,S=v/f;isNaN(y)&&(y=1/0),isNaN(S)&&(S=1/0);var w=Math.max(0,Math.floor(Math.min(y,S))),x=Ld(e.model),T=e.getExtent(),b=x.lastAutoInterval,A=x.lastTickCount;return b!=null&&A!=null&&Math.abs(b-w)<=1&&Math.abs(A-o)<=1&&b>w&&x.axisExtent0===T[0]&&x.axisExtent1===T[1]?w=b:(x.lastTickCount=o,x.lastAutoInterval=w,x.axisExtent0=T[0],x.axisExtent1=T[1]),w}function dhe(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function N$(e,t,r){var n=uh(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=M$(e),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==a[0]&&g(a[0]);for(var d=u;d<=a[1];d+=l)g(d);v&&d-l!==a[1]&&g(a[1]);function g(m){var y={value:m};s.push(r?m:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:m})}return s}function F$(e,t,r){var n=e.scale,i=uh(e),a=[];return R(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Bk=[0,1],Ia=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return zz(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),zk(n,i.count())),Ht(t,Bk,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),zk(n,i.count()));var a=Ht(t,n,Bk,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=lhe(this,r),i=n.ticks,a=Se(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return phe(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Se(n,function(a){return Se(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return she(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return vhe(this)},e}();function zk(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function phe(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;R(t,function(v){v.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(v,d){return v=Ar(v),d=Ar(d),f?v>d:vi&&(i+=jh);var v=Math.atan2(s,o);if(v<0&&(v+=jh),v>=n&&v<=i||v+jh>=n&&v+jh<=i)return l[0]=c,l[1]=f,u-r;var d=r*Math.cos(n)+e,g=r*Math.sin(n)+t,m=r*Math.cos(i)+e,y=r*Math.sin(i)+t,S=(d-o)*(d-o)+(g-s)*(g-s),w=(m-o)*(m-o)+(y-s)*(y-s);return S0){t=t/180*Math.PI,ya.fromArray(e[0]),or.fromArray(e[1]),Lr.fromArray(e[2]),rt.sub(Ka,ya,or),rt.sub(Xa,Lr,or);var r=Ka.len(),n=Xa.len();if(!(r<.001||n<.001)){Ka.scale(1/r),Xa.scale(1/n);var i=Ka.dot(Xa),a=Math.cos(t);if(a1&&rt.copy($n,Lr),$n.toArray(e[1])}}}}function whe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,ya.fromArray(e[0]),or.fromArray(e[1]),Lr.fromArray(e[2]),rt.sub(Ka,or,ya),rt.sub(Xa,Lr,or);var n=Ka.len(),i=Xa.len();if(!(n<.001||i<.001)){Ka.scale(1/n),Xa.scale(1/i);var a=Ka.dot(t),o=Math.cos(r);if(a=l)rt.copy($n,Lr);else{$n.scaleAndAdd(Xa,s/Math.tan(Math.PI/2-c));var f=Lr.x!==or.x?($n.x-or.x)/(Lr.x-or.x):($n.y-or.y)/(Lr.y-or.y);if(isNaN(f))return;f<0?rt.copy($n,or):f>1&&rt.copy($n,Lr)}$n.toArray(e[1])}}}}function Fw(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function xhe(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Bs(n[0],n[1]),a=Bs(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=ty([],n[1],n[0],o/i),l=ty([],n[1],n[2],o/a),u=ty([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&a&&T(-c/o,0,o);var g=e[0],m=e[o-1],y,S;w(),y<0&&b(-y,.8),S<0&&b(S,.8),w(),x(y,S,1),x(S,y,-1),w(),y<0&&A(-y),S<0&&A(S);function w(){y=g.rect[t]-n,S=i-m.rect[t]-m.rect[r]}function x(M,D,L){if(M<0){var P=Math.min(D,-M);if(P>0){T(P*L,0,o);var E=P+M;E<0&&b(-E*L,1)}else b(-M*L,1)}}function T(M,D,L){M!==0&&(u=!0);for(var P=D;P0)for(var E=0;E0;E--){var V=L[E-1]*N;T(-V,E,o)}}}function A(M){var D=M<0?-1:1;M=Math.abs(M);for(var L=Math.ceil(M/(o-1)),P=0;P0?T(L,0,P+1):T(-L,o-P-1,o),M-=L,M<=0)return}return u}function bhe(e,t,r,n){return G$(e,"x","width",t,r,n)}function $$(e,t,r,n){return G$(e,"y","height",t,r,n)}function H$(e){var t=[];e.sort(function(g,m){return m.priority-g.priority});var r=new at(0,0,0,0);function n(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),ht(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),kt(n,u,r,l)}else if(n.attr(u),!th(n).valueAnimation){var f=et(n.style.opacity,1);n.style.opacity=0,vr(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var v=a.oldLayoutSelect={};rm(v,u,nm),rm(v,n.states.select,nm)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};rm(d,u,nm),rm(d,n.states.emphasis,nm)}OG(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=Ahe(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),kt(i,{shape:g},r)):(i.setShape(g),i.style.strokePercent=0,vr(i,{style:{strokePercent:1}},r)),a.oldLayout=g}},e}(),Bw=Tt();function Dhe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=Bw(r).labelManager;i||(i=Bw(r).labelManager=new Mhe),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=Bw(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var zw=Math.sin,Gw=Math.cos,W$=Math.PI,ql=Math.PI*2,Ihe=180/W$,U$=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),h=Ws(f-ql)||(c?u>=ql:-u>=ql),v=u>0?u%ql:u%ql+ql,d=!1;h?d=!0:Ws(f)?d=!1:d=v>=W$==!!c;var g=t+n*Gw(o),m=r+i*zw(o);this._start&&this._add("M",g,m);var y=Math.round(a*Ihe);if(h){var S=1/this._p,w=(c?1:-1)*(ql-S);this._add("A",n,i,y,1,+c,t+n*Gw(o+w),r+i*zw(o+w)),S>.01&&this._add("A",n,i,y,0,+c,g,m)}else{var x=t+n*Gw(s),T=r+i*zw(s);this._add("A",n,i,y,+d,+c,x,T)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,h=1;h"}function Vhe(e){return""}function OM(e,t){t=t||{};var r=t.newline?` +`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return Fhe(o,s)+(o!=="style"?ai(l):l||"")+(a?""+r+Se(a,function(u){return n(u)}).join(r)+r:"")+Vhe(o)}return n(e)}function Bhe(e,t,r){r=r||{};var n=r.newline?` +`:"",i=" {"+n,a=n+"}",o=Se(yt(e),function(l){return l+i+Se(yt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Se(yt(t),function(l){return"@keyframes "+l+i+Se(yt(t[l]),function(u){return u+i+Se(yt(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function GC(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Wk(e,t,r,n){return Kr("svg","root",{width:e,height:t,xmlns:Y$,"xmlns:xlink":X$,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var zhe=0;function q$(){return zhe++}var Uk={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Ql="transform-origin";function Ghe(e,t,r){var n=ce({},e.shape);ce(n,t),e.buildPath(r,n);var i=new U$;return i.reset(Pz(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function $he(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Ql]=r+"px "+n+"px")}var Hhe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function j$(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Whe(e,t,r){var n=e.shape.paths,i={},a,o;if(R(n,function(l){var u=GC(r.zrId);u.animation=!0,G_(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=yt(c),v=h.length;if(v){o=h[v-1];var d=c[o];for(var g in d){var m=d[g];i[g]=i[g]||{d:""},i[g].d+=m.d||""}for(var y in f){var S=f[y].animation;S.indexOf(o)>=0&&(a=S)}}}),!!a){t.d=!1;var s=j$(i,r);return a.replace(o,s)}}function Yk(e){return Ee(e)?Uk[e]?"cubic-bezier("+Uk[e]+")":BA(e)?e:"":""}function G_(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof eM){var s=Whe(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var ie=j$(A,r);return ie+" "+S[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=r.zrId+"-cls-"+q$();r.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function Uhe(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};Xk(n,t,r)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(a=Qb(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),Xk(n,t,r)}}function Xk(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+q$(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var Pd=Math.round;function K$(e){return e&&Ee(e.src)}function J$(e){return e&&$e(e.toDataURL)}function NM(e,t,r,n){khe(function(i,a){var o=i==="fill"||i==="stroke";o&&Lz(a)?eH(t,e,i,n):o&&zA(a)?tH(r,e,i,n):o&&a==="none"?e[i]="transparent":e[i]=a},t,r,!1),Jhe(r,e,n)}function FM(e,t){var r=Hae(t);r&&(r.each(function(n,i){n!=null&&(e[(Hk+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[Hk+"silent"]="true"))}function Zk(e){return Ws(e[0]-1)&&Ws(e[1])&&Ws(e[2])&&Ws(e[3]-1)}function Yhe(e){return Ws(e[4])&&Ws(e[5])}function VM(e,t,r){if(t&&!(Yhe(t)&&Zk(t))){var n=1e4;e.transform=Zk(t)?"translate("+Pd(t[4]*n)/n+" "+Pd(t[5]*n)/n+")":hae(t)}}function qk(e,t,r){for(var n=e.points,i=[],a=0;a"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Xn(h,m),Xn(v,m)}else if(h==null||v==null){var y=function(L,P){if(L){var E=L.elm,F=h||P.width,O=v||P.height;L.tag==="pattern"&&(u?(O=1,F/=a.width):c&&(F=1,O/=a.height)),L.attrs.width=F,L.attrs.height=O,E&&(E.setAttribute("width",F),E.setAttribute("height",O))}},S=YA(d,null,e,function(L){l||y(b,L),y(f,L)});S&&S.width&&S.height&&(h=h||S.width,v=v||S.height)}f=Kr("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else i.svgElement&&(f=Ze(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var w,x;l?w=x=1:u?(x=1,w=o.width/a.width):c?(w=1,x=o.height/a.height):o.patternUnits="userSpaceOnUse",w!=null&&!isNaN(w)&&(o.width=w),x!=null&&!isNaN(x)&&(o.height=x);var T=Rz(i);T&&(o.patternTransform=T);var b=Kr("pattern","",o,[f]),A=OM(b),M=n.patternCache,D=M[A];D||(D=n.zrId+"-p"+n.patternIdx++,M[A]=D,o.id=D,b=n.defs[D]=Kr("pattern",D,o,[f])),t[r]=h_(D)}}function Qhe(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=Kr("clipPath",a,o,[Q$(e,r)])}t["clip-path"]=h_(a)}function Jk(e){return document.createTextNode(e)}function lu(e,t,r){e.insertBefore(t,r)}function Qk(e,t){e.removeChild(t)}function eO(e,t){e.appendChild(t)}function rH(e){return e.parentNode}function nH(e){return e.nextSibling}function $w(e,t){e.textContent=t}var tO=58,eve=120,tve=Kr("","");function $C(e){return e===void 0}function Wa(e){return e!==void 0}function rve(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function bv(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Rd(e){var t,r=e.children,n=e.tag;if(Wa(n)){var i=e.elm=Z$(n);if(BM(tve,e),ge(r))for(t=0;ta?(d=r[l+1]==null?null:r[l+1].elm,iH(e,d,r,i,l)):d0(e,t,n,a))}function Zc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(BM(e,t),$C(t.text)?Wa(n)&&Wa(i)?n!==i&&nve(r,n,i):Wa(i)?(Wa(e.text)&&$w(r,""),iH(r,null,i,0,i.length-1)):Wa(n)?d0(r,n,0,n.length-1):Wa(e.text)&&$w(r,""):e.text!==t.text&&(Wa(n)&&d0(r,n,0,n.length-1),$w(r,t.text)))}function ive(e,t){if(bv(e,t))Zc(e,t);else{var r=e.elm,n=rH(r);Rd(t),n!==null&&(lu(n,t.elm,nH(r)),d0(n,[e],0,0))}return t}var ave=0,ove=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=rO(),this.configLayer=rO(),this.storage=r,this._opts=n=ce({},n),this.root=t,this._id="zr"+ave++,this._oldVNode=Wk(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=Z$("svg");BM(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",ive(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return Kk(t,GC(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=GC(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis;var o=[],s=this._bgVNode=sve(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=Kr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Se(yt(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(Kr("defs","defs",{},u)),t.animation){var c=Bhe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=Kr("style","stl",{},[],c);o.push(f)}}return Wk(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},OM(this.renderToVNode({animation:et(t.cssAnimation,!0),emphasis:et(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:et(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(h&&l&&h[g]===l[g]);g--);for(var m=d-1;m>g;m--)o--,s=a[o-1];for(var y=g+1;y=s)}}for(var f=this.__startIndex;f15)break}}O.prevElClipPaths&&y.restore()};if(S)if(S.length===0)M=m.__endIndex;else for(var L=v.dpr,P=0;P0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?im:0),this._needsManuallyCompositing),c.__builtin__||RA("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&bi&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,h){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?it(n[t],r,!0):n[t]=r;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(ur);function Nf(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Ef(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var dp=function(e){j(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=zr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=pve,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){jo(this.childAt(0))},t.prototype.downplay=function(){Ko(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):kt(h,v,s,n),Ta(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,vr(h,v,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,h,v,d,g,m,y;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,h=a.focus,v=a.blurScope,g=a.labelStatesModels,m=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var S=a&&a.itemModel?a.itemModel:r.getItemModel(n),w=S.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),f=S.getModel(["select","itemStyle"]).getItemStyle(),c=S.getModel(["blur","itemStyle"]).getItemStyle(),h=w.get("focus"),v=w.get("blurScope"),d=w.get("disabled"),g=tn(S),m=w.getShallow("scale"),y=S.getShallow("cursor")}var x=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var T=rc(r.getItemVisual(n,"symbolOffset"),i);T&&(s.x=T[0],s.y=T[1]),y&&s.attr("cursor",y);var b=r.getItemVisual(n,"style"),A=b.fill;if(s instanceof ln){var M=s.style;s.useStyle(ce({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else s.__isEmptyBrush?s.useStyle(ce({},b)):s.useStyle(b),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),L=this._z2;D!=null?L==null&&(this._z2=s.z2,s.z2+=D):L!=null&&(s.z2=L,this._z2=null);var P=o&&o.useNameLabel;_n(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:A,defaultOpacity:b.opacity});function E(N){return P?r.getName(N):Nf(r,N)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var F=s.ensureState("emphasis");F.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;F.scaleX=this._sizeX*O,F.scaleY=this._sizeY*O,this.setSymbolScale(1),Cr(this,h,v,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Ke(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&il(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();il(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return lh(r.getItemVisual(n,"symbolSize"))},t}(qe);function pve(e,t){this.parent.drift(e,t)}function Ww(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function aO(e){return e!=null&&!Ye(e)&&(e={isIgnore:e}),e||{}}function oO(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:tn(t),cursorStyle:t.get("cursor")}}var pp=function(){function e(t){this.group=new qe,this._SymbolCtor=t||dp}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=aO(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=oO(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var h=c(f);if(Ww(t,h,f,r)){var v=new o(t,f,l,u);v.setPosition(h),t.setItemGraphicEl(f,v),n.add(v)}}).update(function(f,h){var v=a.getItemGraphicEl(h),d=c(f);if(!Ww(t,d,f,r)){n.remove(v);return}var g=t.getItemVisual(f,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==g)n.remove(v),v=new o(t,f,l,u),v.setPosition(d);else{v.updateData(t,f,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):kt(v,y,i)}n.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var h=a.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=oO(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=aO(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function sH(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function mve(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function yve(e,t,r,n,i,a,o,s){for(var l=mve(e,t),u=[],c=[],f=[],h=[],v=[],d=[],g=[],m=oH(i,t,o),y=e.getLayout("points")||[],S=t.getLayout("points")||[],w=0;w=i||g<0)break;if(ku(y,S)){if(l){g+=a;continue}break}if(g===r)e[a>0?"moveTo":"lineTo"](y,S),f=y,h=S;else{var w=y-u,x=S-c;if(w*w+x*x<.5){g+=a;continue}if(o>0){for(var T=g+a,b=t[T*2],A=t[T*2+1];b===y&&A===S&&m=n||ku(b,A))v=y,d=S;else{L=b-u,P=A-c;var O=y-u,N=b-y,V=S-c,Y=A-S,G=void 0,Z=void 0;if(s==="x"){G=Math.abs(O),Z=Math.abs(N);var J=L>0?1:-1;v=y-J*G*o,d=S,E=y+J*Z*o,F=S}else if(s==="y"){G=Math.abs(V),Z=Math.abs(Y);var re=P>0?1:-1;v=y,d=S-re*G*o,E=y,F=S+re*Z*o}else G=Math.sqrt(O*O+V*V),Z=Math.sqrt(N*N+Y*Y),D=Z/(Z+G),v=y-L*o*(1-D),d=S-P*o*(1-D),E=y+L*o*D,F=S+P*o*D,E=Cs(E,Ts(b,y)),F=Cs(F,Ts(A,S)),E=Ts(E,Cs(b,y)),F=Ts(F,Cs(A,S)),L=E-y,P=F-S,v=y-L*G/Z,d=S-P*G/Z,v=Cs(v,Ts(u,y)),d=Cs(d,Ts(c,S)),v=Ts(v,Cs(u,y)),d=Ts(d,Cs(c,S)),L=y-v,P=S-d,E=y+L*Z/G,F=S+P*Z/G}e.bezierCurveTo(f,h,v,d,y,S),f=E,h=F}else e.lineTo(y,S)}u=y,c=S,g+=a}return m}var lH=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),_ve=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lH},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&ku(i[o*2-2],i[o*2-1]);o--);for(;a=0){var x=u?(d-l)*w+l:(v-s)*w+s;return u?[r,x]:[x,r]}s=v,l=d;break;case o.C:v=a[f++],d=a[f++],g=a[f++],m=a[f++],y=a[f++],S=a[f++];var T=u?Hy(s,v,g,y,r,c):Hy(l,d,m,S,r,c);if(T>0)for(var b=0;b=0){var x=u?Zr(l,d,m,S,A):Zr(s,v,g,y,A);return u?[r,x]:[x,r]}}s=y,l=S;break}}},t}(pt),Sve=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(lH),uH=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new Sve},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&ku(i[s*2-2],i[s*2-1]);s--);for(;ot){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function bve(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Se(a.stops,function(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=xve(u,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,g=h[0].coord-d,m=h[v-1].coord+d,y=m-g;if(y<.001)return"transparent";R(h,function(w){w.offset=(w.coord-g)/y}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var S=new sp(0,0,0,0,h,!0);return S[i]=g,S[i+"2"]=m,S}}}function Cve(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Tve(a,t))){var o=t.mapDimension(a.dim),s={};return R(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Tve(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function Ave(e,t){return isNaN(e)||isNaN(t)}function Mve(e){for(var t=e.length/2;t>0&&Ave(e[t*2-2],e[t*2-1]);t--);return t-1}function fO(e,t){return[e[t*2],e[t*2+1]]}function Dve(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function hH(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var J=g.getState("emphasis").style;J.lineWidth=+g.style.lineWidth+1}Ke(g).seriesIndex=r.seriesIndex,Cr(g,Y,G,Z);var re=cO(r.get("smooth")),pe=r.get("smoothMonotone");if(g.setShape({smooth:re,smoothMonotone:pe,connectNulls:M}),m){var Me=l.getCalculationInfo("stackedOnSeries"),Le=0;m.useStyle(We(c.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Me&&(Le=cO(Me.get("smooth"))),m.setShape({smooth:re,stackedOnSmooth:Le,smoothMonotone:pe,connectNulls:M}),yn(m,r,"areaStyle"),Ke(m).seriesIndex=r.seriesIndex,Cr(m,Y,G,Z)}var Fe=function(Ge){a._changePolyState(Ge)};l.eachItemGraphicEl(function(Ge){Ge&&(Ge.onHoverStateChange=Fe)}),this._polyline.onHoverStateChange=Fe,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f,this._step=P,this._valueOrigin=x,r.get("triggerLineEvent")&&(this.packEventData(r,g),m&&this.packEventData(r,m))},t.prototype.packEventData=function(r,n){Ke(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Yu(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 c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=r.get("zlevel")||0,v=r.get("z")||0;u=new dp(o,s),u.x=c,u.y=f,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 Kt.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Yu(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 Kt.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;jy(this._polyline,r),n&&jy(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new _ve({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new uH({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");$e(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=$e(f)?f(null):f;r.eachItemGraphicEl(function(v,d){var g=v;if(g){var m=[v.x,v.y],y=void 0,S=void 0,w=void 0;if(i)if(o){var x=i,T=n.pointToCoord(m);a?(y=x.startAngle,S=x.endAngle,w=-T[1]/180*Math.PI):(y=x.r0,S=x.r,w=T[0])}else{var b=i;a?(y=b.x,S=b.x+b.width,w=v.x):(y=b.y+b.height,S=b.y,w=v.y)}var A=S===y?0:(w-y)/(S-y);l&&(A=1-A);var M=$e(f)?f(d):c*A+h,D=g.getSymbolPath(),L=D.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),L&&L.animateFrom({style:{opacity:0}},{duration:300,delay:M}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(hH(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 It({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Mve(l);c>=0&&(_n(s,tn(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?aH(o,v):Nf(o,f)},enableTextSetter:!0},Ive(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),S=m.inverse,w=n.shape,x=S?y?w.x:w.y+w.height:y?w.x+w.width:w.y,T=(y?g:0)*(S?-1:1),b=(y?0:-g)*(S?-1:1),A=y?"x":"y",M=Dve(f,x,A),D=M.range,L=D[1]-D[0],P=void 0;if(L>=1){if(L>1&&!v){var E=fO(f,D[0]);u.attr({x:E[0]+T,y:E[1]+b}),o&&(P=h.getRawValue(D[0]))}else{var E=c.getPointOn(x,A);E&&u.attr({x:E[0]+T,y:E[1]+b});var F=h.getRawValue(D[0]),O=h.getRawValue(D[1]);o&&(P=Kz(i,d,F,O,M.t))}a.lastFrameIndex=D[0]}else{var N=r===1||a.lastFrameIndex>0?D[0]:0,E=fO(f,N);o&&(P=h.getRawValue(N)),u.attr({x:E[0]+T,y:E[1]+b})}if(o){var V=th(u);typeof V.setLabelText=="function"&&V.setLabelText(P)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,h=yve(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,g=h.next,m=h.stackedOnNext;if(o&&(v=As(h.current,i,o,l),d=As(h.stackedOnCurrent,i,o,l),g=As(h.next,i,o,l),m=As(h.stackedOnNext,i,o,l)),uO(v,g)>3e3||c&&uO(d,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=v;var y={shape:{points:g}};h.current!==v&&(y.shape.__points=h.next),u.stopAnimation(),kt(u,y,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),kt(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var S=[],w=h.status,x=0;xt&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;rt&&(t=a,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},Rve=function(e){return Math.round(e.length/2)};function vH(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;Ee(a)?d=Pve[a]:$e(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,Rve))}}}}}function Eve(e){e.registerChartView(Lve),e.registerSeriesModel(dve),e.registerLayout(mp("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,vH("line"))}var Ed=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return as(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)R(a.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),g=h.getTickModel().get("alignWithLabel"),m=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!g&&(m+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var S=void 0,w=void 0,x=1,T=0;Tm){w=(b+S)/2;break}T===1&&(x=A-d[0].tickValue)}w==null&&(S?S&&(w=d[d.length-1].coord):w=d[0].coord),s[v]=h.toGlobalCoord(w)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(ur);ur.registerClass(Ed);var kve=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return as(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=gl(Ed.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Ed),Ove=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),p0=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new Ove},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){bd(a,r,Ke(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Kt),hO={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=Yw(t.x,e.x),s=Xw(t.x+t.width,i),l=Yw(t.y,e.y),u=Xw(t.y+t.height,a),c=si?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Xw(t.r,e.r),a=Yw(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},vO={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Ct({shape:ce({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?p0:qn,c=new u({shape:n,z2:1});c.name="item";var f=dH(i);if(c.calculateTextPosition=Nve(f,{isRoundCap:u===p0}),a){var h=c.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?kt:vr)(c,{shape:d},a)}return c}};function zve(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function dO(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?kt:vr)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?kt:vr)(r,{shape:u},c,i)}function pO(e,t){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Hve(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function dH(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function mO(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=wu(n.getModel("itemStyle"),c,!0);ce(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var h=n.getShallow("cursor");h&&e.attr("cursor",h);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=tn(n);_n(e,d,{labelFetcher:a,labelDataIndex:r,defaultText:Nf(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var g=e.getTextContent();if(s&&g){var m=n.get(["label","position"]);e.textConfig.inside=m==="middle"?!0:null,Fve(e,m==="outside"?v:m,dH(o),n.get(["label","rotate"]))}kG(g,d,a.getRawValue(r),function(S){return aH(t,S)});var y=n.getModel(["emphasis"]);Cr(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),yn(e,n),Hve(i)&&(e.style.fill="none",e.style.stroke="none",R(e.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function Wve(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var Uve=function(){function e(){}return e}(),yO=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new Uve},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function Yve(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function pH(e,t,r){if(ic(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function Xve(e,t,r){var n=e.type==="polar"?qn:Ct;return new n({shape:pH(t,r,e),silent:!0,z2:0})}function Zve(e){e.registerChartView(Bve),e.registerSeriesModel(kve),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,tt(S$,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,w$("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,vH("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var wO=Math.PI*2,lm=Math.PI/180;function gH(e,t){return Hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function mH(e,t){var r=gH(e,t),n=e.get("center"),i=e.get("radius");ge(i)||(i=[0,i]);var a=Ie(r.width,t.getWidth()),o=Ie(r.height,t.getHeight()),s=Math.min(a,o),l=Ie(i[0],s/2),u=Ie(i[1],s/2),c,f,h=e.coordinateSystem;if(h){var v=h.dataToPoint(n);c=v[0]||0,f=v[1]||0}else ge(n)||(n=[n,n]),c=Ie(n[0],a)+r.x,f=Ie(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function qve(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=gH(n,r),s=mH(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*lm,v=n.get("endAngle"),d=n.get("padAngle")*lm;v=v==="auto"?h-wO:-v*lm;var g=n.get("minAngle")*lm,m=g+d,y=0;i.each(a,function(Y){!isNaN(Y)&&y++});var S=i.getSum(a),w=Math.PI/(S||y)*2,x=n.get("clockwise"),T=n.get("roseType"),b=n.get("stillShowZeroSum"),A=i.getDataExtent(a);A[0]=0;var M=x?1:-1,D=[h,v],L=M*d/2;XA(D,!x),h=D[0],v=D[1];var P=yH(n);P.startAngle=h,P.endAngle=v,P.clockwise=x;var E=Math.abs(v-h),F=E,O=0,N=h;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(Y,G){var Z;if(isNaN(Y)){i.setItemLayout(G,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:f,r:T?NaN:c});return}T!=="area"?Z=S===0&&b?w:Y*w:Z=E/y,ZZ?(re=N+M*Z/2,pe=re):(re=N+L,pe=J-L),i.setItemLayout(G,{angle:Z,startAngle:re,endAngle:pe,clockwise:x,cx:l,cy:u,r0:f,r:T?Ht(Y,A,[f,c]):c}),N=J}),Fr?y:m,T=Math.abs(w.label.y-r);if(T>=x.maxY){var b=w.label.x-t-w.len2*i,A=n+w.len,M=Math.abs(b)e.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var g=n.getBoundingRect();a.width=g.width;var m=(n.style.margin||0)+2.1;a.height=g.height+m,a.y-=(a.height-f)/2}}}function Zw(e){return e.position==="center"}function Jve(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*jve,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var A in b.states)if(b.states[A].ignore===!1)return!0;return!1}t.each(function(b){var A=t.getItemGraphicEl(b),M=A.shape,D=A.getTextContent(),L=A.getTextGuideLine(),P=t.getItemModel(b),E=P.getModel("label"),F=E.get("position")||P.get(["emphasis","label","position"]),O=E.get("distanceToLabelLine"),N=E.get("alignTo"),V=Ie(E.get("edgeDistance"),u),Y=E.get("bleedMargin"),G=P.getModel("labelLine"),Z=G.get("length");Z=Ie(Z,u);var J=G.get("length2");if(J=Ie(J,u),Math.abs(M.endAngle-M.startAngle)0?"right":"left":pe>0?"left":"right"}var te=Math.PI,_e=0,fe=E.get("rotate");if(Pt(fe))_e=fe*(te/180);else if(F==="center")_e=0;else if(fe==="radial"||fe===!0){var $=pe<0?-re+te:-re;_e=$}else if(fe==="tangential"&&F!=="outside"&&F!=="outer"){var U=Math.atan2(pe,Me);U<0&&(U=te*2+U);var Q=Me>0;Q&&(U=te+U),_e=U-te}if(a=!!_e,D.x=Le,D.y=Fe,D.rotation=_e,D.setStyle({verticalAlign:"middle"}),le){D.setStyle({align:ie});var Pe=D.states.select;Pe&&(Pe.x+=D.x,Pe.y+=D.y)}else{var ae=D.getBoundingRect().clone();ae.applyTransform(D.getComputedTransform());var xe=(D.style.margin||0)+2.1;ae.y-=xe/2,ae.height+=xe,r.push({label:D,labelLine:L,position:F,len:Z,len2:J,minTurnAngle:G.get("minTurnAngle"),maxSurfaceAngle:G.get("maxSurfaceAngle"),surfaceNormal:new rt(pe,Me),linePoints:Ge,textAlign:ie,labelDistance:O,labelAlignTo:N,edgeDistance:V,bleedMargin:Y,rect:ae,unconstrainedWidth:ae.width,labelStyleWidth:D.style.width})}A.setTextConfig({inside:le})}}),!a&&e.get("avoidLabelOverlap")&&Kve(r,n,i,l,u,h,c,f);for(var g=0;g0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=a.r0}},t.type="pie",t}(Kt);function ch(e,t,r){t=ge(t)&&{coordDimensions:t}||ce({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=hp(n,t).dimensions,a=new Wn(i,e);return a.initData(n,r),a}var _p=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),tde=Tt(),rde=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new _p(ke(this.getData,this),ke(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ch(this,{coordDimensions:["value"],encodeDefaulter:tt(cM,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=tde(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Xae(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Uu(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(ur);function nde(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Pt(o)&&!isNaN(o)&&o<0)})}}}function ide(e){e.registerChartView(ede),e.registerSeriesModel(rde),z4("pie",e.registerAction),e.registerLayout(tt(qve,"pie")),e.registerProcessor(yp("pie")),e.registerProcessor(nde("pie"))}var ade=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return as(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(ur),SH=4,ode=function(){function e(){}return e}(),sde=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new ode},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=0;u--){var c=u*2,f=a[c]-s/2,h=a[c+1]-l/2;if(r>=f&&n>=h&&r<=f+s&&n<=h+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),ude=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=mp("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new lde:new pp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Kt),cde=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(mt),WC=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Vr).models[0]},t.type="cartesian2dAxis",t}(mt);Gr(WC,vp);var wH={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},fde=it({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},wH),zM=it({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},wH),hde=it({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},zM),vde=We({logBase:10},zM);const xH={category:fde,value:zM,time:hde,log:vde};var dde={value:1,category:1,time:1,log:1};function Ff(e,t,r,n){R(dde,function(i,a){var o=it(it({},xH[a],!0),n,!0),s=function(l){j(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=Td(this),v=h?ih(c):{},d=f.getTheme();it(c,d.get(a+"Axis")),it(c,this.getDefaultOption()),c.type=bO(c),h&&al(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=FC.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",bO)}function bO(e){return e.type||(e.data?"category":"value")}var pde=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Se(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Wt(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),UC=["x","y"];function CO(e){return e.type==="interval"||e.type==="time"}var gde=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=UC,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!CO(r)||!CO(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-i[0]*c,v=o[1]-a[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=jf([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new at(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return mn(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return mn(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new at(a,o,s,l)},t}(pde),mde=function(e){j(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Ia);function YC(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[s],a.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),on(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function TO(e){return e.get("coordinateSystem")==="cartesian2d"}function AO(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Vr).models[0];t[n]=a}),t}var qw=Math.log;function bH(e,t,r){var n=Qo.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=A$(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var h=qw(e.base);u=[qw(u[0])/h,qw(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=n.getExtent.call(e);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=n.getInterval.call(e),g=u[0],m=u[1];if(c&&f)d=(m-g)/o;else if(c)for(m=u[0]+d*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)d=kw(d),g=u[1]-d*o;else{var y=e.getTicks().length-1;y>o&&(d=kw(d));var S=d*o;m=Math.ceil(u[1]/d)*d,g=Ar(m-S),g<0&&u[0]>=0?(g=0,m=Ar(S)):m>0&&u[1]<=0&&(m=0,g=-Ar(S))}var w=(i[0].value-a[0].value)/s,x=(i[o].value-a[o].value)/s;n.setExtent.call(e,g+d*w,m+d*x),n.setInterval.call(e,d),(w||x)&&n.setNiceExtent.call(e,g+d,m-d)}var yde=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=UC,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=yt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,g=v.scale;VC(g)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(Of(g,d),VC(g)&&(s=v))}c.length&&(s||(s=c.pop(),Of(s.scale,s.model)),R(c,function(m){bH(m.scale,m.model,s.scale)}))}}i(n.x),i(n.y);var a={};R(n.x,function(o){MO(n,"y",o,a)}),R(n.y,function(o){MO(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Hr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(R(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Jfe(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),R(this._coordsList,function(u){u.calcAffineTransform()});function l(){R(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),_de(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Ye(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):_d(i-Us)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),IO={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(mn(s,s,o),mn(l,l,o));var c=ce({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new jr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Rf(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);Ee(h)&&(h=[h,h]),(Ee(v)||Pt(v))&&(v=[v,v]);var d=rc(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],m=v[1];R([{rotate:e.rotation+Math.PI/2,offset:d[0],r:0},{rotate:e.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,S){if(h[S]!=="none"&&h[S]!=null){var w=zr(h[S],-g/2,-m/2,g,m,c.stroke,!0),x=y.r+y.offset,T=u?l:s;w.attr({rotation:y.rotate,x:T[0]+x*Math.cos(e.rotation),y:T[1]-x*Math.sin(e.rotation),silent:!0,z2:11}),r.add(w)}})}}},axisTickLabel:function(e,t,r,n){var i=xde(r,n,t,e),a=Cde(r,n,t,e);if(wde(t,a,i),bde(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=z$(Se(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));H$(o)}},axisName:function(e,t,r,n){var i=on(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,PO(a)?e.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Us/180);var d;PO(a)?h=Un.innerTextLayout(e.rotation,v??e.rotation,o):(h=Sde(e.rotation,a,v||0,u),d=e.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),m=t.get("nameTruncate",!0)||{},y=m.ellipsis,S=on(e.nameTruncateMaxWidth,m.maxWidth,d),w=new It({x:f[0],y:f[1],rotation:h.rotation,silent:Un.isLabelSilent(t),style:lr(s,{text:i,font:g,overflow:"truncate",width:S,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(eh({el:w,componentModel:t,itemName:i}),w.__fullText=i,w.anid="name",t.get("triggerEvent")){var x=Un.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,Ke(w).eventData=x}n.add(w),w.updateTransform(),r.add(w),w.decomposeTransform()}}};function Sde(e,t,r,n){var i=Gz(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return _d(i-Us/2)?(o=l?"bottom":"top",a="center"):_d(i-Us*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iUs/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function wde(e,t,r){if(!M$(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],h=r[r.length-2];n===!1?(zi(a),zi(u)):LO(a,o)&&(n?(zi(o),zi(c)):(zi(a),zi(u))),i===!1?(zi(s),zi(f)):LO(l,s)&&(i?(zi(l),zi(h)):(zi(s),zi(f)))}}function zi(e){e&&(e.ignore=!0)}function LO(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=f_([]);return ec(i,i,-e.rotation),r.applyTransform(Wo([],i,e.getLocalTransform())),n.applyTransform(Wo([],i,t.getLocalTransform())),r.intersect(n)}}function PO(e){return e==="middle"||e==="center"}function CH(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function Lde(e){var t=GM(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=XC(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]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var g=l;d.color!=null&&(g=We({color:d.color},l));var m=it(Ze(d),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:h},!1);if(Ee(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else $e(c)&&(m.name=c(m.name,m));var S=new $t(m,null,this.ecModel);return Gr(S,vp.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:it({lineStyle:{color:"#bbb"}},Kh.axisLine),axisLabel:um(Kh.axisLabel,!1),axisTick:um(Kh.axisTick,!1),splitLine:um(Kh.splitLine,!0),splitArea:um(Kh.splitArea,!0),indicator:[]},t}(mt),Hde=["axisLine","axisTickLabel","axisName"],Wde=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=Se(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Un(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});R(a,function(o){R(Hde,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),h=l.get("color"),v=u.get("color"),d=ge(h)?h:[h],g=ge(v)?v:[v],m=[],y=[];function S(N,V,Y){var G=Y%V.length;return N[G]=N[G]||[],G}if(a==="circle")for(var w=i[0].getTicksCoords(),x=n.cx,T=n.cy,b=0;b3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;Jw(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),h=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);Jw(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!FO(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;Jw(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(ia);function Jw(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(Zo(n.event),LH(e,t,r,n,i))}function LH(e,t,r,n,i){i.isAvailableBehavior=ke(dy,null,r,n),e.trigger(t,i)}function dy(e,t,r){var n=r[e];return!e||n&&(!Ee(n)||t.event[n+"Key"])}function HM(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function WM(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Kde={axisPointer:1,tooltip:1,brush:1};function $_(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!Kde.hasOwnProperty(n.mainType)&&i&&i.model!==r}function PH(e){if(Ee(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var Qw,g0={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},VO=yt(g0),m0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},BO=yt(m0),Jde=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=PH(t);this._defsUsePending=[];var i=new qe;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Si(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;tpe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=H_(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(f=EH(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var v=i;i=new qe,i.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Ct({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=Qw[s];if(c&&Oe(Qw,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var h={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var v=zO[s];if(v&&Oe(zO,s)){var d=v.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=d)}}if(l&&l.isGroup)for(var m=t.firstChild;m;)m.nodeType===1?this._parseNode(m,l,n,u,a,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},e.prototype._parseText=function(t,r){var n=new Pf({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),Qde(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){Qw={g:function(t,r){var n=new qe;return Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Ct;return Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new is;return Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new jr;return Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new w_;return Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=HO(n));var a=new jn({shape:{points:i||[]},silent:!0});return Gi(r,a),Si(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=HO(n));var a=new Kn({shape:{points:i||[]},silent:!0});return Gi(r,a),Si(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new ln;return Gi(r,n),Si(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new qe;return Gi(r,s),Si(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new qe;return Gi(r,s),Si(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=xG(n);return Gi(r,i),Si(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),zO={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new sp(t,r,n,i);return GO(e,a),$O(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new AG(t,r,n);return GO(e,i),$O(e,i),i}};function GO(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function $O(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};RH(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Gi(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),We(t.__inheritedStyle,e.__inheritedStyle))}function HO(e){for(var t=H_(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=H_(o);switch(i=i||Mi(),s){case"translate":ao(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":VA(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ec(i,i,-parseFloat(l[0])*ex,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*ex);Wo(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*ex);Wo(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var UO=/([^\s:;]+)\s*:\s*([^:;]+)/g;function RH(e,t,r){var n=e.getAttribute("style");if(n){UO.lastIndex=0;for(var i;(i=UO.exec(n))!=null;){var a=i[1],o=Oe(g0,a)?g0[a]:null;o&&(t[o]=i[2]);var s=Oe(m0,a)?m0[a]:null;s&&(r[s]=i[2])}}}function ape(e,t,r){for(var n=0;n0,m={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=Ne(),n=Ne(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(v,d){return d&&(v=d(v)),v&&[v[0]*a.scaleX+a.x,v[1]*a.scaleY+a.y]}function f(v){for(var d=[],g=!u&&l&&l.project,m=0;m=0)&&(h=i);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;_n(t,tn(n),{labelFetcher:h,labelDataIndex:f,defaultText:r},v);var d=t.getTextContent();if(d&&(kH(d).ignore=d.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function jO(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ke(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function KO(e,t,r,n,i){e.data||eh({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function JO(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Cr(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Sse(t,i,r),o}function QO(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),R(e,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(ur);function Tpe(e,t){var r={};return R(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c1?(x.width=w,x.height=w/m):(x.height=w,x.width=w*m),x.y=S[1]-x.height/2,x.x=S[0]-x.width/2;else{var T=e.getBoxLayoutParams();T.aspect=m,x=Hr(T,{width:d,height:g})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Ipe(e,t){R(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var Lpe=function(){function e(){this.dimensions=NH}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new jC(l+s,l,ce({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=nN,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),R(a,function(o,s){var l=Se(o,function(c){return c.get("nameMap")}),u=new jC(s,s,ce({nameMap:EA(l)},i(o[0])));u.zoomLimit=on.apply(null,Se(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=nN,u.resize(o[0],r),R(o,function(c){c.coordinateSystem=u,Ipe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=Ne(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function Npe(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){Bpe(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=zpe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function Fpe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function aN(e){return arguments.length?e:Hpe}function Cv(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Vpe(e,t){return Hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Bpe(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function zpe(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=tx(s),a=rx(a),s&&a;){i=tx(i),o=rx(o),i.hierNode.ancestor=e;var h=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);h>0&&($pe(Gpe(s,e,r),e,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!tx(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!rx(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function tx(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function rx(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Gpe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function $pe(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function Hpe(e,t){return e.parentNode===t.parentNode?1:2}var Wpe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Upe=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Wpe},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=Ie(n.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*h,r.moveTo(o[0],o[1]),r.lineTo(v[0],v[1]),r.moveTo(s[0],s[1]),v[c]=s[c],r.lineTo(v[0],v[1]),v[c]=l[c],r.lineTo(v[0],v[1]),r.lineTo(l[0],l[1]);for(var d=1;dS.x,T||(x=x-Math.PI));var A=T?"left":"right",M=s.getModel("label"),D=M.get("rotate"),L=D*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:M.get("position")||A,rotation:D==null?-x:L,origin:"center"}),P.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),F=E==="relative"?zy(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;F&&(Ke(r).focus=F),Xpe(i,o,c,r,d,v,g,n),r.__edge&&(r.onHoverStateChange=function(O){if(O!=="blur"){var N=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);N&&N.hoverState===ip||jy(r.__edge,O)}})}function Xpe(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),h=e.get(["lineStyle","curveness"]),v=e.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),g=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(g||(g=n.__edge=new op({shape:KC(c,f,h,i,i)})),kt(g,{shape:KC(c,f,h,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var m=t.children,y=[],S=0;Sr&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r=0){var n=r.getData().tree.root,i=e.targetNode;if(Ee(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function $H(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function qM(e,t){var r=$H(e);return ht(r,t)>=0}function W_(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var rge=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new $t(i,this,this.ecModel),o=ZM.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=a),h})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return rn("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=W_(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(ur);function nge(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)r.push(i[a])}}function ige(e,t){e.eachSeriesByType("tree",function(r){age(r,t)})}function age(e,t){var r=Vpe(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=aN(function(w,x){return(w.parentNode===x.parentNode?1:2)/w.depth})):(i=r.width,a=r.height,o=aN());var s=e.getData().tree.root,l=s.children[0];if(l){Ope(s),nge(l,Npe,o),s.hierNode.modifier=-l.hierNode.prelim,Qh(l,Fpe);var u=l,c=l,f=l;Qh(l,function(w){var x=w.getLayout().x;xc.getLayout().x&&(c=w),w.depth>f.depth&&(f=w)});var h=u===c?1:o(u,c)/2,v=h-u.getLayout().x,d=0,g=0,m=0,y=0;if(n==="radial")d=i/(c.getLayout().x+h+v),g=a/(f.depth-1||1),Qh(l,function(w){m=(w.getLayout().x+v)*d,y=(w.depth-1)*g;var x=Cv(m,y);w.setLayout({x:x.x,y:x.y,rawX:m,rawY:y},!0)});else{var S=e.getOrient();S==="RL"||S==="LR"?(g=a/(c.getLayout().x+h+v),d=i/(f.depth-1||1),Qh(l,function(w){y=(w.getLayout().x+v)*g,m=S==="LR"?(w.depth-1)*d:i-(w.depth-1)*d,w.setLayout({x:m,y},!0)})):(S==="TB"||S==="BT")&&(d=i/(c.getLayout().x+h+v),g=a/(f.depth-1||1),Qh(l,function(w){m=(w.getLayout().x+v)*d,y=S==="TB"?(w.depth-1)*g:a-(w.depth-1)*g,w.setLayout({x:m,y},!0)}))}}}function oge(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");ce(s,o)})})}function sge(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=YM(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function lge(e){e.registerChartView(Ype),e.registerSeriesModel(rge),e.registerLayout(ige),e.registerVisual(oge),sge(e)}var cN=["treemapZoomToNode","treemapRender","treemapMove"];function uge(e){for(var t=0;t1;)a=a.parentNode;var o=TC(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var cge=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};WH(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new $t({itemStyle:o},this,n);a=r.levels=fge(a,n);var l=Se(a||[],function(f){return new $t(f,s,n)},this),u=ZM.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),g=d?l[d.depth]:null;return h.parentModel=g||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return rn("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=W_(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},ce(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=Ne(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){HH(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(ur);function WH(e){var t=0;R(e.children,function(n){WH(n);var i=n.value;ge(i)&&(i=i[0]),t+=i});var r=e.value;ge(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),ge(e.value)?e.value[0]=r:e.value=r}function fge(e,t){var r=Yt(t.get("color")),n=Yt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;R(e,function(s){var l=new $t(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}var hge=8,fN=8,nx=5,vge=function(){function e(t){this.group=new qe,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),P_(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=$r(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+hge*2,r.emptyItemWidth);r.totalWidth+=s+fN,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=xle(r.pos,r.box),h=r.totalWidth,v=r.renderList,d=i.getModel("itemStyle").getItemStyle(),g=v.length-1;g>=0;g--){var m=v[g],y=m.node,S=m.width,w=m.text;h>f.width&&(h-=S-u,S=u,w=null);var x=new jn({shape:{points:dge(l,0,S,c,g===v.length-1,g===0)},style:We(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new It({style:lr(a,{text:w})}),textConfig:{position:"inside"},z2:Jf*1e4,onclick:tt(s,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=lr(o,{text:w}),x.ensureState("emphasis").style=d,Cr(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),pge(x,t,y),l+=S+fN}},e.prototype.remove=function(){this.group.removeAll()},e}();function dge(e,t,r,n,i,a){var o=[[i?e:e-nx,t],[e+r,t],[e+r,t+n],[i?e:e-nx,t+n]];return!a&&o.splice(2,0,[e+r+nx,t+n/2]),!i&&o.push([e,t+n/2]),o}function pge(e,t,r){Ke(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&W_(r,t)}}var gge=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;ivN||Math.abs(r.dy)>vN)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new at(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=a,u){var h=u.min||0,v=u.max||1/0;f=Math.max(Math.min(v,f),h)}var d=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;n-=g.x,i-=g.y;var m=Mi();ao(m,m,[-n,-i]),VA(m,m,[d,d]),ao(m,m,[n,i]),l.applyTransform(m),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&r0(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new vge(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(qM(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=ev(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(Kt);function ev(){return{nodeGroup:[],background:[],content:[]}}function xge(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),h=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,d=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),S=s&&s.getRawIndex(),w=o.viewChildren,x=c.upperHeight,T=w&&w.length,b=h.getModel("itemStyle"),A=h.getModel(["emphasis","itemStyle"]),M=h.getModel(["blur","itemStyle"]),D=h.getModel(["select","itemStyle"]),L=b.get("borderRadius")||0,P=Le("nodeGroup",JC);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),y0(P).nodeWidth=v,y0(P).nodeHeight=d,c.isAboveViewRoot)return P;var E=Le("background",hN,u,_ge);E&&Z(P,E,T&&c.upperLabelHeight);var F=h.getModel("emphasis"),O=F.get("focus"),N=F.get("blurScope"),V=F.get("disabled"),Y=O==="ancestor"?o.getAncestorsIndices():O==="descendant"?o.getDescendantIndices():O;if(T)xd(P)&&gu(P,!1),E&&(gu(E,!V),f.setItemGraphicEl(o.dataIndex,E),mC(E,Y,N));else{var G=Le("content",hN,u,Sge);G&&J(P,G),E.disableMorphing=!0,E&&xd(E)&&gu(E,!1),gu(P,!V),f.setItemGraphicEl(o.dataIndex,P),mC(P,Y,N)}return P;function Z(ie,le,de){var me=Ke(le);if(me.dataIndex=o.dataIndex,me.seriesIndex=e.seriesIndex,le.setShape({x:0,y:0,width:v,height:d,r:L}),m)re(le);else{le.invisible=!1;var be=o.getVisual("style"),Re=be.stroke,H=gN(b);H.fill=Re;var W=tu(A);W.fill=A.get("borderColor");var te=tu(M);te.fill=M.get("borderColor");var _e=tu(D);if(_e.fill=D.get("borderColor"),de){var fe=v-2*g;pe(le,Re,be.opacity,{x:g,y:0,width:fe,height:x})}else le.removeTextContent();le.setStyle(H),le.ensureState("emphasis").style=W,le.ensureState("blur").style=te,le.ensureState("select").style=_e,Zu(le)}ie.add(le)}function J(ie,le){var de=Ke(le);de.dataIndex=o.dataIndex,de.seriesIndex=e.seriesIndex;var me=Math.max(v-2*g,0),be=Math.max(d-2*g,0);if(le.culling=!0,le.setShape({x:g,y:g,width:me,height:be,r:L}),m)re(le);else{le.invisible=!1;var Re=o.getVisual("style"),H=Re.fill,W=gN(b);W.fill=H,W.decal=Re.decal;var te=tu(A),_e=tu(M),fe=tu(D);pe(le,H,Re.opacity,null),le.setStyle(W),le.ensureState("emphasis").style=te,le.ensureState("blur").style=_e,le.ensureState("select").style=fe,Zu(le)}ie.add(le)}function re(ie){!ie.invisible&&a.push(ie)}function pe(ie,le,de,me){var be=h.getModel(me?pN:dN),Re=$r(h.get("name"),null),H=be.getShallow("show");_n(ie,tn(h,me?pN:dN),{defaultText:H?Re:null,inheritColor:le,defaultOpacity:de,labelFetcher:e,labelDataIndex:o.dataIndex});var W=ie.getTextContent();if(W){var te=W.style,_e=OA(te.padding||0);me&&(ie.setTextConfig({layoutRect:me}),W.disableLabelLayout=!0),W.beforeUpdate=function(){var $=Math.max((me?me.width:ie.shape.width)-_e[1]-_e[3],0),U=Math.max((me?me.height:ie.shape.height)-_e[0]-_e[2],0);(te.width!==$||te.height!==U)&&W.setStyle({width:$,height:U})},te.truncateMinChar=2,te.lineOverflow="truncate",Me(te,me,c);var fe=W.getState("emphasis");Me(fe?fe.style:null,me,c)}}function Me(ie,le,de){var me=ie?ie.text:null;if(!le&&de.isLeafRoot&&me!=null){var be=e.get("drillDownIcon",!0);ie.text=be?be+" "+me:me}}function Le(ie,le,de,me){var be=S!=null&&r[ie][S],Re=i[ie];return be?(r[ie][S]=null,Fe(Re,be)):m||(be=new le,be instanceof na&&(be.z2=bge(de,me)),Ge(Re,be)),t[ie][y]=be}function Fe(ie,le){var de=ie[y]={};le instanceof JC?(de.oldX=le.x,de.oldY=le.y):de.oldShape=ce({},le.shape)}function Ge(ie,le){var de=ie[y]={},me=o.parentNode,be=le instanceof qe;if(me&&(!n||n.direction==="drillDown")){var Re=0,H=0,W=i.background[me.getRawIndex()];!n&&W&&W.oldShape&&(Re=W.oldShape.width,H=W.oldShape.height),be?(de.oldX=0,de.oldY=H):de.oldShape={x:Re,y:H,width:0,height:0}}de.fadein=!be}}function bge(e,t){return e*yge+t}var Nd=R,Cge=Ye,_0=-1,en=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=Ze(t);this.type=n,this.mappingMethod=r,this._normalizeData=Mge[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(ix(i),Tge(i)):r==="category"?i.categories?Age(i):ix(i,!0):(Xn(r!=="linear"||i.dataExtent),ix(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ke(this._normalizeData,this)},e.listVisualTypes=function(){return yt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Ye(t)?R(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=ge(t)?[]:Ye(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&Nd(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(ge(t))t=t.slice();else if(Cge(t)){var r=[];Nd(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function ix(e,t){var r=e.visual,n=[];Ye(r)?Nd(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),UH(e,n)}function fm(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:QC([0,1])}}function mN(e){var t=this.option.visual;return t[Math.round(Ht(e,[0,1],[0,t.length-1],!0))]||{}}function tv(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function Tv(e){var t=this.option.visual;return t[this.option.loop&&e!==_0?e%t.length:e]}function ru(){return this.option.visual[0]}function QC(e){return{linear:function(t){return Ht(t,e,this.option.visual,!0)},category:Tv,piecewise:function(t,r){var n=eT.call(this,r);return n==null&&(n=Ht(t,e,this.option.visual,!0)),n},fixed:ru}}function eT(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=en.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function UH(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Se(t,function(r){var n=Di(r);return n||[0,0,0,1]})),t}var Mge={linear:function(e){return Ht(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=en.findPieceIndex(e,t,!0);if(r!=null)return Ht(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??_0},fixed:Er};function hm(e,t,r){return e?t<=r:t=r.length||g===r[g.depth]){var y=Ege(i,l,g,m,d,n);XH(g,y,r,n)}})}}}function Lge(e,t,r){var n=ce({},t),i=r.designatedVisualItemStyle;return R(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function yN(e){var t=ax(e,"color");if(t){var r=ax(e,"colorAlpha"),n=ax(e,"colorSaturation");return n&&(t=zv(t,null,null,n)),r&&(t=Wy(t,r)),t}}function Pge(e,t){return t!=null?zv(t,null,null,e):null}function ax(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function Rge(e,t,r,n,i,a){if(!(!a||!a.length)){var o=ox(t,"color")||i.color!=null&&i.color!=="none"&&(ox(t,"colorAlpha")||ox(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var h=new en(f);return YH(h).drColorMappingBy=c,h}}}function ox(e,t){var r=e.get(t);return ge(r)&&r.length?{name:t,range:r}:null}function Ege(e,t,r,n,i,a){var o=ce({},t);if(i){var s=i.type,l=s==="color"&&YH(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Fd=Math.max,S0=Math.min,_N=on,jM=R,ZH=["itemStyle","borderWidth"],kge=["itemStyle","gapWidth"],Oge=["upperLabel","show"],Nge=["upperLabel","height"];const Fge={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=Hr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=Ie(_N(s.width,l[0]),i),c=Ie(_N(s.height,l[1]),a),f=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=Od(n,h,e),d=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,g=e.getViewRoot(),m=$H(g);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?Hge(e,v,g,u,c):d?[d.width,d.height]:[u,c],S=o.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var w={squareRatio:o.squareRatio,sort:S,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(x),qH(g,w,!1,0),x=g.getLayout(),jM(m,function(b,A){var M=(m[A+1]||g).getValue();b.setLayout(ce({dataExtent:[M,M],borderWidth:0,upperHeight:0},x))})}var T=e.getData().tree.root;T.setLayout(Wge(s,d,v),!0),e.setLayoutInfo(s),jH(T,new at(-s.x,-s.y,i,a),m,g,0)}};function qH(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(ZH),u=s.get(kge)/2,c=KH(s),f=Math.max(l,c),h=l-u,v=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Fd(i-2*h,0),a=Fd(a-h-v,0);var d=i*a,g=Vge(e,s,d,t,r,n);if(g.length){var m={x:h,y:v,width:i,height:a},y=S0(i,a),S=1/0,w=[];w.area=0;for(var x=0,T=g.length;x=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function $ge(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;an&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Fd(u*n/l,l/(u*i)):1/0}function SN(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,h=e.length;fER&&(u=ER),a=s}un&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(T[0]=-T[0],T[1]=-T[1]);var A=x[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var M=-Math.atan2(x[1],x[0]);f[0].8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*y+c[0],a.y=-h[1]*S+c[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*A+c[0],a.y=c[1]+D,d=x[0]<0?"right":"left",a.originX=-y*A,a.originY=-D;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+D,d="center",a.originY=-D;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*A+f[0],a.y=f[1]+D,d=x[0]>=0?"right":"left",a.originX=y*A,a.originY=-D;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||g,align:a.__align||d})}},t}(qe),tD=function(){function e(t){this.group=new qe,this._LineCtor=t||eD}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=AN(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=AN(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!lme(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function AN(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:tn(t)}}function MN(e){return isNaN(e[0])||isNaN(e[1])}function fx(e){return e&&!MN(e[0])&&!MN(e[1])}var hx=[],vx=[],dx=[],Fc=an,px=Mu,DN=Math.abs;function IN(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){hx[0]=Fc(n[0],i[0],a[0],c),hx[1]=Fc(n[1],i[1],a[1],c);var f=DN(px(hx,t)-l);f=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function gx(e,t){var r=[],n=gd,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Ho(u[0]),Ho(u[1])],u[2]&&u.__original.push(Ho(u[2])));var h=u.__original;if(u[2]!=null){if(Bn(i[0],h[0]),Bn(i[1],h[2]),Bn(i[2],h[1]),c&&c!=="none"){var v=Mv(s.node1),d=IN(i,h[0],v*t);n(i[0][0],i[1][0],i[2][0],d,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],d,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var v=Mv(s.node2),d=IN(i,h[1],v*t);n(i[0][0],i[1][0],i[2][0],d,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],d,r),i[1][1]=r[1],i[2][1]=r[2]}Bn(u[0],i[0]),Bn(u[1],i[2]),Bn(u[2],i[1])}else{if(Bn(a[0],h[0]),Bn(a[1],h[1]),du(o,a[1],a[0]),qf(o,o),c&&c!=="none"){var v=Mv(s.node1);$b(a[0],a[0],o,v*t)}if(f&&f!=="none"){var v=Mv(s.node2);$b(a[1],a[1],o,-v*t)}Bn(u[0],a[0]),Bn(u[1],a[1])}})}function LN(e){return e.type==="view"}var ume=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new pp,a=new tD,o=this.group;this._controller=new Sp(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(LN(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):kt(u,c,r)}gx(r.getGraph(),Av(r));var f=r.getData();s.updateData(f);var h=r.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var v=r.forceLayout,d=r.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,d);var g=r.get("layout");f.graph.eachNode(function(w){var x=w.dataIndex,T=w.getGraphicEl(),b=w.getModel();if(T){T.off("drag").off("dragend");var A=b.get("draggable");A&&T.on("drag",function(D){switch(g){case"force":v.warmUp(),!a._layouting&&a._startForceLayoutIteration(v,d),v.setFixed(x),f.setItemLayout(x,[T.x,T.y]);break;case"circular":f.setItemLayout(x,[T.x,T.y]),w.setLayout({fixed:!0},!0),QM(r,"symbolSize",w,[D.offsetX,D.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(x,[T.x,T.y]),JM(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){v&&v.setUnfixed(x)}),T.setDraggable(A,!!b.get("cursor"));var M=b.get(["emphasis","focus"]);M==="adjacency"&&(Ke(T).focus=w.getAdjacentDataIndices())}}),f.graph.eachEdge(function(w){var x=w.getGraphicEl(),T=w.getModel().get(["emphasis","focus"]);x&&T==="adjacency"&&(Ke(x).focus={edge:[w.dataIndex],node:[w.node1.dataIndex,w.node2.dataIndex]})});var m=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),y=f.getLayout("cx"),S=f.getLayout("cy");f.graph.eachNode(function(w){tW(w,m,y,S)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!$_(u,i,r)}),!LN(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){HM(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){WM(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),gx(r.getGraph(),Av(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=Av(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){gx(r.getGraph(),Av(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Kt);function Vc(e){return"_EC_"+e}var cme=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[Vc(t)]){var i=new nu(t,r);return i.hostGraph=this,this.nodes.push(i),n[Vc(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[Vc(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(Pt(t)&&(t=this.nodes[t]),Pt(r)&&(r=this.nodes[r]),t instanceof nu||(t=i[Vc(t)]),r instanceof nu||(r=i[Vc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new nW(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof nu&&(t=t.id),r instanceof nu&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof nu||(r=this._nodesMap[Vc(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Gr(nu,iW("hostGraph","data"));Gr(nW,iW("hostGraph","edgeData"));function aW(e,t,r,n,i){for(var a=new cme(n),o=0;o "+h)),u++)}var v=r.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar")d=as(e,r);else{var g=cp.get(v),m=g?g.dimensions||[]:[];ht(m,"value")<0&&m.concat(["value"]);var y=hp(e,{coordDimensions:m,encodeDefine:r.getEncode()}).dimensions;d=new Wn(y,r),d.initData(e)}var S=new Wn(["value"],r);return S.initData(l,s),i&&i(d,S),zH({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var fme=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new _p(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Uu(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){Kge(this);var s=aW(a,i,this,!0,l);return R(s.edges,function(u){Jge(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(d){var g=o._categoriesModels,m=d.getShallow("category"),y=g[m];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var f=$t.prototype.getModel;function h(d,g){var m=f.call(this,d,g);return m.resolveParentPath=v,m}c.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var g=d.slice();return d[0]==="label"?g[0]="edgeLabel":d[1]==="label"&&(g[1]="edgeLabel"),g}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),rn("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=L4({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=Se(this.option.categories||[],function(i){return i.value!=null?i:ce({value:0},i)}),n=new Wn(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(ur),hme={type:"graphRoam",event:"graphRoam",update:"none"};function vme(e){e.registerChartView(ume),e.registerSeriesModel(fme),e.registerProcessor(Yge),e.registerVisual(Xge),e.registerVisual(Zge),e.registerLayout(Qge),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,tme),e.registerLayout(nme),e.registerCoordinateSystem("graphView",{dimensions:wp.dimensions,create:ame}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Er),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Er),e.registerAction(hme,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=YM(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var dme=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),pme=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new dme},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}(pt);function gme(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=Ie(r[0],t.getWidth()),s=Ie(r[1],t.getHeight()),l=Ie(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function dm(e,t){var r=e==null?"":e+"";return t&&(Ee(t)?r=t.replace("{value}",r):$e(t)&&(r=t(e))),r}var mme=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=gme(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),h=f.get("roundCap"),v=h?p0:qn,d=f.get("show"),g=f.getModel("lineStyle"),m=g.get("width"),y=[u,c];XA(y,!l),u=y[0],c=y[1];for(var S=c-u,w=u,x=[],T=0;d&&T=D&&(L===0?0:a[L-1][0])Math.PI/2&&(Le+=Math.PI)):Me==="tangential"?Le=-M-Math.PI/2:Pt(Me)&&(Le=Me*Math.PI/180),Le===0?f.add(new It({style:lr(w,{text:Z,x:re,y:pe,verticalAlign:N<-.8?"top":N>.8?"bottom":"middle",align:O<-.4?"left":O>.4?"right":"center"},{inheritColor:J}),silent:!0})):f.add(new It({style:lr(w,{text:Z,x:re,y:pe,verticalAlign:"middle",align:"center"},{inheritColor:J}),silent:!0,originX:re,originY:pe,rotation:Le}))}if(S.get("show")&&V!==x){var Y=S.get("distance");Y=Y?Y+c:c;for(var Fe=0;Fe<=T;Fe++){O=Math.cos(M),N=Math.sin(M);var Ge=new jr({shape:{x1:O*(d-Y)+h,y1:N*(d-Y)+v,x2:O*(d-A-Y)+h,y2:N*(d-A-Y)+v},silent:!0,style:E});E.stroke==="auto"&&Ge.setStyle({stroke:a((V+Fe/T)/x)}),f.add(Ge),M+=L}M-=L}else M+=D}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,h=this._data,v=this._progressEls,d=[],g=r.get(["pointer","show"]),m=r.getModel("progress"),y=m.get("show"),S=r.getData(),w=S.mapDimension("value"),x=+r.get("min"),T=+r.get("max"),b=[x,T],A=[s,l];function M(L,P){var E=S.getItemModel(L),F=E.getModel("pointer"),O=Ie(F.get("width"),o.r),N=Ie(F.get("length"),o.r),V=r.get(["pointer","icon"]),Y=F.get("offsetCenter"),G=Ie(Y[0],o.r),Z=Ie(Y[1],o.r),J=F.get("keepAspect"),re;return V?re=zr(V,G-O/2,Z-N,O,N,null,J):re=new pme({shape:{angle:-Math.PI/2,width:O,r:N,x:G,y:Z}}),re.rotation=-(P+Math.PI/2),re.x=o.cx,re.y=o.cy,re}function D(L,P){var E=m.get("roundCap"),F=E?p0:qn,O=m.get("overlap"),N=O?m.get("width"):c/S.count(),V=O?o.r-N:o.r-(L+1)*N,Y=O?o.r:o.r-L*N,G=new F({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:V,r:Y}});return O&&(G.z2=T-S.get(w,L)%T),G}(y||g)&&(S.diff(h).add(function(L){var P=S.get(w,L);if(g){var E=M(L,s);vr(E,{rotation:-((isNaN(+P)?A[0]:Ht(P,b,A,!0))+Math.PI/2)},r),f.add(E),S.setItemGraphicEl(L,E)}if(y){var F=D(L,s),O=m.get("clip");vr(F,{shape:{endAngle:Ht(P,b,A,O)}},r),f.add(F),dC(r.seriesIndex,S.dataType,L,F),d[L]=F}}).update(function(L,P){var E=S.get(w,L);if(g){var F=h.getItemGraphicEl(P),O=F?F.rotation:s,N=M(L,O);N.rotation=O,kt(N,{rotation:-((isNaN(+E)?A[0]:Ht(E,b,A,!0))+Math.PI/2)},r),f.add(N),S.setItemGraphicEl(L,N)}if(y){var V=v[P],Y=V?V.shape.endAngle:s,G=D(L,Y),Z=m.get("clip");kt(G,{shape:{endAngle:Ht(E,b,A,Z)}},r),f.add(G),dC(r.seriesIndex,S.dataType,L,G),d[L]=G}}).execute(),S.each(function(L){var P=S.getItemModel(L),E=P.getModel("emphasis"),F=E.get("focus"),O=E.get("blurScope"),N=E.get("disabled");if(g){var V=S.getItemGraphicEl(L),Y=S.getItemVisual(L,"style"),G=Y.fill;if(V instanceof ln){var Z=V.style;V.useStyle(ce({image:Z.image,x:Z.x,y:Z.y,width:Z.width,height:Z.height},Y))}else V.useStyle(Y),V.type!=="pointer"&&V.setColor(G);V.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),V.style.fill==="auto"&&V.setStyle("fill",a(Ht(S.get(w,L),b,[0,1],!0))),V.z2EmphasisLift=0,yn(V,P),Cr(V,F,O,N)}if(y){var J=d[L];J.useStyle(S.getItemVisual(L,"style")),J.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),J.z2EmphasisLift=0,yn(J,P),Cr(J,F,O,N)}}),this._progressEls=d)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=zr(s,n.cx-o/2+Ie(l[0],n.r),n.cy-o/2+Ie(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),h=new qe,v=[],d=[],g=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new It({silent:!0}),d[y]=new It({silent:!0})}).update(function(y,S){v[y]=s._titleEls[S],d[y]=s._detailEls[S]}).execute(),l.each(function(y){var S=l.getItemModel(y),w=l.get(u,y),x=new qe,T=a(Ht(w,[c,f],[0,1],!0)),b=S.getModel("title");if(b.get("show")){var A=b.get("offsetCenter"),M=o.cx+Ie(A[0],o.r),D=o.cy+Ie(A[1],o.r),L=v[y];L.attr({z2:m?0:2,style:lr(b,{x:M,y:D,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:T})}),x.add(L)}var P=S.getModel("detail");if(P.get("show")){var E=P.get("offsetCenter"),F=o.cx+Ie(E[0],o.r),O=o.cy+Ie(E[1],o.r),N=Ie(P.get("width"),o.r),V=Ie(P.get("height"),o.r),Y=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:T,L=d[y],G=P.get("formatter");L.attr({z2:m?0:2,style:lr(P,{x:F,y:O,text:dm(w,G),width:isNaN(N)?null:N,height:isNaN(V)?null:V,align:"center",verticalAlign:"middle"},{inheritColor:Y})}),kG(L,{normal:P},w,function(J){return dm(J,G)}),g&&OG(L,y,l,r,{getFormattedLabel:function(J,re,pe,Me,Le,Fe){return dm(Fe?Fe.interpolatedValue:w,G)}}),x.add(L)}h.add(x)}),this.group.add(h),this._titleEls=v,this._detailEls=d},t.type="gauge",t}(Kt),yme=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return ch(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(ur);function _me(e){e.registerChartView(mme),e.registerSeriesModel(yme)}var Sme=["itemStyle","opacity"],wme=function(e){j(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new Kn,s=new It;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(Sme);c=c??1,i||Ta(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,vr(a,{style:{opacity:c}},o,n)):kt(a,{style:{opacity:c},shape:{points:l.points}},o,n),yn(a,s),this._updateLabel(r,n),Cr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),h=f.fill;_n(o,tn(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var v=c.linePoints;a.setShape({points:v}),i.textGuideLineConfig={anchor:v?new rt(v[0][0],v[0][1]):null},kt(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),RM(i,EM(l),{stroke:h})},t}(jn),xme=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new wme(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);bd(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Kt),bme=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new _p(ke(this.getData,this),ke(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return ch(this,{coordDimensions:["value"],encodeDefaulter:tt(cM,this)})},t.prototype._defaultLabelLine=function(r){Uu(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(ur);function Cme(e,t){return Hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Tme(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();oGme)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!yx(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function yx(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var Wme=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&it(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){R(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=Wt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);R(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(mt),Ume=function(e){j(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Ia);function oc(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=Bc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Bc(s,[0,o]),i=a=Bc(s,[i,a]),n=0}t[0]=Bc(t[0],r),t[1]=Bc(t[1],r);var l=_x(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=Bc(t[n],c);var f;return f=_x(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function _x(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function Bc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Sx=R,sW=Math.min,lW=Math.max,EN=Math.floor,Yme=Math.ceil,kN=Ar,Xme=Math.PI,Zme=function(){function e(t,r,n){this.type="parallel",this._axesMap=Ne(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;Sx(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Ume(o,z_(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();Sx(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Of(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=Hr(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=pm(t.get("axisExpandWidth"),l),f=pm(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=t.get("axisExpandWindow"),d;if(v)d=pm(v[1]-v[0],l),v[1]=v[0]+d;else{d=pm(c*(f-1),l);var g=t.get("axisExpandCenter")||EN(u/2);v=[c*g-d/2],v[1]=v[0]+d}var m=(s-d)/(u-f);m<3&&(m=0);var y=[EN(kN(v[0]/c,1))+1,Yme(kN(v[1]/c,1))-1],S=m/c*v[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:S}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Sx(n,function(o,s){var l=(i.axisExpandable?jme:qme)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Xme/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],h=c[a],v=Mi();ec(v,v,h),ao(v,v,f),this._axesLayout[o]={position:f,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];R(o,function(m){s.push(t.mapDimension(m)),l.push(a.get(m).model)});for(var u=this.hasAxisBrushed(),c=n;ca*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?oc(l,i,o,"all"):u="none";else{var v=i[1]-i[0],d=o[1]*s/v;i=[lW(0,d-v/2)],i[1]=sW(o[1],i[0]+v),i[0]=i[1]-v}return{axisExpandWindow:i,behavior:u}},e}();function pm(e,t){return sW(lW(e,t[0]),t[1])}function qme(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function jme(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e=0;i--)Qi(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;atye}function dW(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function pW(e,t,r,n){var i=new qe;return i.add(new Ct({name:"main",style:oD(r),silent:!0,draggable:!0,cursor:"move",drift:tt(FN,e,t,i,["n","s","w","e"]),ondragend:tt(Ku,t,{isEnd:!0})})),R(n,function(a){i.add(new Ct({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:tt(FN,e,t,i,a),ondragend:tt(Ku,t,{isEnd:!0})}))}),i}function gW(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Vf(i,rye),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],h=c-a+i/2,v=f-a+i/2,d=c-o,g=f-s,m=d+i,y=g+i;Do(e,t,"main",o,s,d,g),n.transformable&&(Do(e,t,"w",l,u,a,y),Do(e,t,"e",h,u,a,y),Do(e,t,"n",l,u,m,a),Do(e,t,"s",l,v,m,a),Do(e,t,"nw",l,u,a,a),Do(e,t,"ne",h,u,a,a),Do(e,t,"sw",l,v,a,a),Do(e,t,"se",h,v,a,a))}function oT(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(oD(r)),i.attr({silent:!n,cursor:n?"move":"default"}),R([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?sT(e,a[0]):lye(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?iye[s]+"-resize":null})})}function Do(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(cye(sD(e,t,[[n,i],[n+a,i+o]])))}function oD(e){return We({strokeNoScale:!0},e.brushStyle)}function mW(e,t,r,n){var i=[Bd(e,r),Bd(t,n)],a=[Vf(e,r),Vf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function sye(e){return Ru(e.group)}function sT(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=C_(r[t],sye(e));return n[i]}function lye(e,t){var r=[sT(e,t[0]),sT(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function FN(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=yW(t,i,a);R(n,function(u){var c=nye[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(mW(s[0][0],s[1][0],s[0][1],s[1][1])),nD(t,r),Ku(t,{isEnd:!1})}function uye(e,t,r,n){var i=t.__brushOption.range,a=yW(e,r,n);R(i,function(o){o[0]+=a[0],o[1]+=a[1]}),nD(e,t),Ku(e,{isEnd:!1})}function yW(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function sD(e,t,r){var n=vW(e,t);return n&&n!==ju?n.clipPath(r,e._transform):Ze(r)}function cye(e){var t=Bd(e[0][0],e[1][0]),r=Bd(e[0][1],e[1][1]),n=Vf(e[0][0],e[1][0]),i=Vf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function fye(e,t,r){if(!(!e._brushType||vye(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=aD(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var Y_={lineX:zN(0),lineY:zN(1),rect:{createCover:function(e,t){function r(n){return n}return pW({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=dW(e);return mW(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){gW(e,t,r,n)},updateCommon:oT,contain:uT},polygon:{createCover:function(e,t){var r=new qe;return r.add(new Kn({name:"main",style:oD(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new jn({name:"main",draggable:!0,drift:tt(uye,e,t),ondragend:tt(Ku,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:sD(e,t,r)})},updateCommon:oT,contain:uT}};function zN(e){return{createCover:function(t,r){return pW({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=dW(t),n=Bd(r[0][e],r[1][e]),i=Vf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=vW(t,r);if(o!==ju&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),gW(t,r,l,i)},updateCommon:oT,contain:uT}}function SW(e){return e=lD(e),function(t){return PG(t,e)}}function wW(e,t){return e=lD(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function xW(e,t,r){var n=lD(e);return function(i,a){return n.contain(a[0],a[1])&&!$_(i,t,r)}}function lD(e){return at.create(e)}var dye=["axisLine","axisTickLabel","axisName"],pye=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new rD(n.getZr())).on("brush",ke(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!gye(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new qe,this.group.add(this._axisGroup),!!r.get("show")){var s=yye(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,h=l.getAxisLayout(f),v=ce({strokeContainThreshold:c},h),d=new Un(r,v);R(dye,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,r,s,c,i),lp(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=at.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:SW(f),isTargetByCursor:xW(f,s,a),getLinearBrushOtherExtent:wW(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(mye(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=Se(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(mr);function gye(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function mye(e){var t=e.axis;return Se(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function yye(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var _ye={type:"axisAreaSelect",event:"axisAreaSelected"};function Sye(e){e.registerAction(_ye,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var wye={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function bW(e){e.registerComponentView($me),e.registerComponentModel(Wme),e.registerCoordinateSystem("parallel",Jme),e.registerPreprocessor(Vme),e.registerComponentModel(iT),e.registerComponentView(pye),Ff(e,"parallel",iT,wye),Sye(e)}function xye(e){vt(bW),e.registerChartView(Lme),e.registerSeriesModel(Eme),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Fme)}var bye=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),Cye=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new bye},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){jo(this)},t.prototype.downplay=function(){Ko(this)},t}(pt),Tye=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),h=r.getData("edge"),v=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var g=new Cye,m=Ke(g);m.dataIndex=d.dataIndex,m.seriesIndex=r.seriesIndex,m.dataType="edge";var y=d.getModel(),S=y.getModel("lineStyle"),w=S.get("curveness"),x=d.node1.getLayout(),T=d.node1.getModel(),b=T.get("localX"),A=T.get("localY"),M=d.node2.getLayout(),D=d.node2.getModel(),L=D.get("localX"),P=D.get("localY"),E=d.getLayout(),F,O,N,V,Y,G,Z,J;g.shape.extent=Math.max(1,E.dy),g.shape.orient=v,v==="vertical"?(F=(b!=null?b*u:x.x)+E.sy,O=(A!=null?A*c:x.y)+x.dy,N=(L!=null?L*u:M.x)+E.ty,V=P!=null?P*c:M.y,Y=F,G=O*(1-w)+V*w,Z=N,J=O*w+V*(1-w)):(F=(b!=null?b*u:x.x)+x.dx,O=(A!=null?A*c:x.y)+E.sy,N=L!=null?L*u:M.x,V=(P!=null?P*c:M.y)+E.ty,Y=F*(1-w)+N*w,G=O,Z=F*w+N*(1-w),J=V),g.setShape({x1:F,y1:O,x2:N,y2:V,cpx1:Y,cpy1:G,cpx2:Z,cpy2:J}),g.useStyle(S.getItemStyle()),GN(g.style,v,d);var re=""+y.get("value"),pe=tn(y,"edgeLabel");_n(g,pe,{labelFetcher:{getFormattedLabel:function(Fe,Ge,ie,le,de,me){return r.getFormattedLabel(Fe,Ge,"edge",le,eo(de,pe.normal&&pe.normal.get("formatter"),re),me)}},labelDataIndex:d.dataIndex,defaultText:re}),g.setTextConfig({position:"inside"});var Me=y.getModel("emphasis");yn(g,y,"lineStyle",function(Fe){var Ge=Fe.getItemStyle();return GN(Ge,v,d),Ge}),s.add(g),h.setItemGraphicEl(d.dataIndex,g);var Le=Me.get("focus");Cr(g,Le==="adjacency"?d.getAdjacentDataIndices():Le==="trajectory"?d.getTrajectoryDataIndices():Le,Me.get("blurScope"),Me.get("disabled"))}),o.eachNode(function(d){var g=d.getLayout(),m=d.getModel(),y=m.get("localX"),S=m.get("localY"),w=m.getModel("emphasis"),x=m.get(["itemStyle","borderRadius"])||0,T=new Ct({shape:{x:y!=null?y*u:g.x,y:S!=null?S*c:g.y,width:g.dx,height:g.dy,r:x},style:m.getModel("itemStyle").getItemStyle(),z2:10});_n(T,tn(m),{labelFetcher:{getFormattedLabel:function(A,M){return r.getFormattedLabel(A,M,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),T.disableLabelAnimation=!0,T.setStyle("fill",d.getVisual("color")),T.setStyle("decal",d.getVisual("style").decal),yn(T,m),s.add(T),f.setItemGraphicEl(d.dataIndex,T),Ke(T).dataType="node";var b=w.get("focus");Cr(T,b==="adjacency"?d.getAdjacentDataIndices():b==="trajectory"?d.getTrajectoryDataIndices():b,w.get("blurScope"),w.get("disabled"))}),f.eachItemGraphicEl(function(d,g){var m=f.getItemModel(g);m.get("draggable")&&(d.drift=function(y,S){a._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=S,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},d.ondragend=function(){a._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(Aye(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Kt);function GN(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");Ee(n)&&Ee(i)&&(e.fill=new sp(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function Aye(e,t,r){var n=new Ct({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return vr(n,{shape:{width:e.width+20}},t,r),n}var Mye=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new $t(o[l],this,n));if(a&&i){var u=aW(a,i,this,!0,c);return u.data}function c(f,h){f.wrapMethod("getItemModel",function(v,d){var g=v.parentModel,m=g.getData().getItemLayout(d);if(m){var y=m.depth,S=g.levelModels[y];S&&(v.parentModel=S)}return v}),h.wrapMethod("getItemModel",function(v,d){var g=v.parentModel,m=g.getGraph().getEdgeByIndex(d),y=m.node1.getLayout();if(y){var S=y.depth,w=g.levelModels[S];w&&(v.parentModel=w)}return v})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(v){return isNaN(v)||v==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return rn("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,h=this.getDataParams(r,i).data.name;return rn("nameValue",{name:h!=null?h+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(ur);function Dye(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=Iye(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;Pye(u);var f=Wt(u,function(g){return g.getLayout().value===0}),h=f.length!==0?0:r.get("layoutIterations"),v=r.get("orient"),d=r.get("nodeAlign");Lye(u,c,n,i,o,s,h,v,d)})}function Iye(e,t){return Hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Lye(e,t,r,n,i,a,o,s,l){Rye(e,t,r,i,a,s,l),Nye(e,t,a,i,n,o,s),Uye(e,s)}function Pye(e){R(e,function(t){var r=Qs(t.outEdges,w0),n=Qs(t.inEdges,w0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function Rye(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,h=0;h=0;y&&m.depth>v&&(v=m.depth),g.setLayout({depth:y?m.depth:f},!0),a==="vertical"?g.setLayout({dy:r},!0):g.setLayout({dx:r},!0);for(var S=0;Sf-1?v:f-1;o&&o!=="left"&&Eye(e,o,a,A);var M=a==="vertical"?(i-r)/A:(n-r)/A;Oye(e,M,a)}function CW(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function Eye(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,Bye(s,l,o),xx(s,i,r,n,o),Wye(s,l,o),xx(s,i,r,n,o)}function Fye(e,t){var r=[],n=t==="vertical"?"y":"x",i=cC(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),R(i.keys,function(a){r.push(i.buckets.get(a))}),r}function Vye(e,t,r,n,i,a){var o=1/0;R(e,function(s){var l=s.length,u=0;R(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[h]+t;var d=i==="vertical"?n:r;if(u=c-t-d,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[a]+l.getLayout()[h]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function Bye(e,t,r){R(e.slice().reverse(),function(n){R(n,function(i){if(i.outEdges.length){var a=Qs(i.outEdges,zye,r)/Qs(i.outEdges,w0);if(isNaN(a)){var o=i.outEdges.length;a=o?Qs(i.outEdges,Gye,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-sl(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-sl(i,r))*t;i.setLayout({y:l},!0)}}})})}function zye(e,t){return sl(e.node2,t)*e.getValue()}function Gye(e,t){return sl(e.node2,t)}function $ye(e,t){return sl(e.node1,t)*e.getValue()}function Hye(e,t){return sl(e.node1,t)}function sl(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function w0(e){return e.getValue()}function Qs(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),R(n,function(s){var l=new en({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&R(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Xye(e){e.registerChartView(Tye),e.registerSeriesModel(Mye),e.registerLayout(Dye),e.registerVisual(Yye),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var TW=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],v=[i,a],d=v[c].get("type"),g=v[1-c].get("type"),m=t.data;if(m&&l){var y=[];R(m,function(x,T){var b;ge(x)?(b=x.slice(),x.unshift(T)):ge(x.value)?(b=ce({},x),b.value=b.value.slice(),x.value.unshift(T)):b=x,y.push(b)}),t.data=y}var S=this.defaultValueDimensions,w=[{name:f,type:c0(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:c0(g),dimsDef:S.slice()}];return ch(this,{coordDimensions:w,dimensionsCount:S.length+1,encodeDefaulter:tt(n4,w,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),AW=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(ur);Gr(AW,TW,!0);var Zye=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=$N(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var h=a.getItemLayout(u);f?(Ta(f),MW(h,f,a,u)):f=$N(h,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(Kt),qye=function(){function e(){}return e}(),jye=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new qye},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();ag){var x=[y,w];n.push(x)}}}return{boxData:r,outliers:n}}var n0e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Pn){var n="";Bt(n)}var i=r0e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function i0e(e){e.registerSeriesModel(AW),e.registerChartView(Zye),e.registerLayout(Jye),e.registerTransform(n0e)}var a0e=["color","borderColor"],o0e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){pl(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&HN(u,f))return;var h=bx(f,c,!0);vr(h,{shape:{points:f.ends}},r,c),Cx(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(h);return}var v=n.getItemLayout(c);if(s&&HN(u,v)){a.remove(h);return}h?(kt(h,{shape:{points:v.ends}},r,c),Ta(h)):h=bx(v),Cx(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),WN(r,this.group);var n=r.get("clip",!0)?gp(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=bx(s);Cx(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){WN(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Kt),s0e=function(){function e(){}return e}(),l0e=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new s0e},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}(pt);function bx(e,t,r){var n=e.ends;return new l0e({shape:{points:r?u0e(n,e):n},z2:100})}function HN(e,t){for(var r=!0,n=0;n0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(a0e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var DW=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(ur);Gr(DW,TW,!0);function f0e(e){!e||!ge(e.series)||R(e.series,function(t){Ye(t)&&t.type==="k"&&(t.type="candlestick")})}var h0e=["itemStyle","borderColor"],v0e=["itemStyle","borderColor0"],d0e=["itemStyle","borderColorDoji"],p0e=["itemStyle","color"],g0e=["itemStyle","color0"],m0e={seriesType:"candlestick",plan:oh(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?p0e:g0e)}function n(a,o){return o.get(a===0?d0e:a>0?h0e:v0e)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");ce(f,c)}}}}}},y0e={seriesType:"candlestick",plan:oh(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=_0e(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=Se(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],h=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?d:v};function v(g,m){for(var y,S=m.getStore();(y=g.next())!=null;){var w=S.get(s,y),x=S.get(u,y),T=S.get(c,y),b=S.get(f,y),A=S.get(h,y),M=Math.min(x,T),D=Math.max(x,T),L=Y(M,w),P=Y(D,w),E=Y(b,w),F=Y(A,w),O=[];G(O,P,0),G(O,L,1),O.push(J(F),J(P),J(E),J(L));var N=m.getItemModel(y),V=!!N.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:UN(S,y,x,T,c,V),initBaseline:x>T?P[a]:L[a],ends:O,brushRect:Z(b,A,w)})}function Y(re,pe){var Me=[];return Me[i]=pe,Me[a]=re,isNaN(pe)||isNaN(re)?[NaN,NaN]:t.dataToPoint(Me)}function G(re,pe,Me){var Le=pe.slice(),Fe=pe.slice();Le[i]=uy(Le[i]+n/2,1,!1),Fe[i]=uy(Fe[i]-n/2,1,!0),Me?re.push(Le,Fe):re.push(Fe,Le)}function Z(re,pe,Me){var Le=Y(re,Me),Fe=Y(pe,Me);return Le[i]-=n/2,Fe[i]-=n/2,{x:Le[0],y:Le[1],width:n,height:Fe[1]-Le[1]}}function J(re){return re[i]=uy(re[i],1),re}}function d(g,m){for(var y=ja(g.count*4),S=0,w,x=[],T=[],b,A=m.getStore(),M=!!e.get(["itemStyle","borderColorDoji"]);(b=g.next())!=null;){var D=A.get(s,b),L=A.get(u,b),P=A.get(c,b),E=A.get(f,b),F=A.get(h,b);if(isNaN(D)||isNaN(E)||isNaN(F)){y[S++]=NaN,S+=3;continue}y[S++]=UN(A,b,L,P,c,M),x[i]=D,x[a]=E,w=t.dataToPoint(x,null,T),y[S++]=w?w[0]:NaN,y[S++]=w?w[1]:NaN,x[a]=F,w=t.dataToPoint(x,null,T),y[S++]=w?w[1]:NaN}m.setLayout("largePoints",y)}}};function UN(e,t,r,n,i,a){var o;return r>n?o=-1:r0?e.get(i,t-1)<=n?1:-1:1,o}function _0e(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=Ie(et(e.get("barMaxWidth"),i),i),o=Ie(et(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?Ie(s,i):Math.max(Math.min(i/2,a),o)}function S0e(e){e.registerChartView(o0e),e.registerSeriesModel(DW),e.registerPreprocessor(f0e),e.registerVisual(m0e),e.registerLayout(y0e)}function YN(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var w0e=function(e){j(t,e);function t(r,n){var i=e.call(this)||this,a=new dp(r,n),o=new qe;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var h=void 0;$e(f)?h=f(i):h=f,a.__t>0&&(h=-s*a.__t),this._animateSymbol(a,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return Bs(r.__p1,r.__cp1)+Bs(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=an,c=qb;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),h=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(h,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],h=i[l+1];r.x=f[0]*(1-c)+c*h[0],r.y=f[1]*(1-c)+c*h[1];var v=r.__t<1?h[0]-f[0]:f[0]-h[0],d=r.__t<1?h[1]-f[1]:f[1]-h[1];r.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(IW),A0e=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),M0e=function(e){j(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new A0e},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o0){r.moveTo(i[o++],i[o++]);for(var l=1;l0){var v=(u+f)/2-(c-h)*a,d=(c+h)/2-(f-u)*a;r.quadraticCurveTo(v,d,f,h)}else r.lineTo(f,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var f=a[u++],h=a[u++],v=1;v0){var m=(f+d)/2-(h-g)*o,y=(h+g)/2-(d-f)*o;if(nG(f,h,m,y,d,g,s,r,n))return l}else if(Rs(f,h,d,g,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),PW={seriesType:"lines",plan:oh(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&gp(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=PW.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new D0e:new tD(o?a?T0e:LW:a?IW:eD),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(Kt),L0e=typeof Uint32Array>"u"?Array:Uint32Array,P0e=typeof Float64Array>"u"?Array:Float64Array;function XN(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Se(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),EA([i,r[0],r[1]])}))}var R0e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],XN(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(XN(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=zy(this._flatCoords,n.flatCoords),this._flatCoordsOffset=zy(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(ur);function gm(e){return e instanceof Array||(e=[e,e]),e}var E0e={seriesType:"lines",reset:function(e){var t=gm(e.get("symbol")),r=gm(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=gm(s.getShallow("symbol",!0)),u=gm(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};function k0e(e){e.registerChartView(I0e),e.registerSeriesModel(R0e),e.registerLayout(PW),e.registerVisual(E0e)}var O0e=256,N0e=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=rl.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,h=f.getContext("2d"),v=t.length;f.width=r,f.height=n;for(var d=0;d0){var E=o(w)?l:u;w>0&&(w=w*L+M),T[b++]=E[P],T[b++]=E[P+1],T[b++]=E[P+2],T[b++]=E[P+3]*w*256}else b+=4}return h.putImageData(x,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=rl.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();function F0e(e,t,r){var n=e[1]-e[0];t=Se(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=t[0]&&n<=t[1]}}function ZN(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var B0e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):ZN(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(ZN(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){pl(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=ic(s,"cartesian2d"),u,c,f,h;if(l){var v=s.getAxis("x"),d=s.getAxis("y");u=v.getBandWidth()+.5,c=d.getBandWidth()+.5,f=v.scale.getExtent(),h=d.scale.getExtent()}for(var g=this.group,m=r.getData(),y=r.getModel(["emphasis","itemStyle"]).getItemStyle(),S=r.getModel(["blur","itemStyle"]).getItemStyle(),w=r.getModel(["select","itemStyle"]).getItemStyle(),x=r.get(["itemStyle","borderRadius"]),T=tn(r),b=r.getModel("emphasis"),A=b.get("focus"),M=b.get("blurScope"),D=b.get("disabled"),L=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=i;Pf[1]||Nh[1])continue;var V=s.dataToPoint([O,N]);E=new Ct({shape:{x:V[0]-u/2,y:V[1]-c/2,width:u,height:c},style:F})}else{if(isNaN(m.get(L[1],P)))continue;E=new Ct({z2:1,shape:s.dataToRect([m.get(L[0],P)]).contentShape,style:F})}if(m.hasItemOption){var Y=m.getItemModel(P),G=Y.getModel("emphasis");y=G.getModel("itemStyle").getItemStyle(),S=Y.getModel(["blur","itemStyle"]).getItemStyle(),w=Y.getModel(["select","itemStyle"]).getItemStyle(),x=Y.get(["itemStyle","borderRadius"]),A=G.get("focus"),M=G.get("blurScope"),D=G.get("disabled"),T=tn(Y)}E.shape.r=x;var Z=r.getRawValue(P),J="-";Z&&Z[2]!=null&&(J=Z[2]+""),_n(E,T,{labelFetcher:r,labelDataIndex:P,defaultOpacity:F.opacity,defaultText:J}),E.ensureState("emphasis").style=y,E.ensureState("blur").style=S,E.ensureState("select").style=w,Cr(E,A,M,D),E.incremental=o,o&&(E.states.emphasis.hoverLayer=!0),g.add(E),m.setItemGraphicEl(P,E),this._progressiveEls&&this._progressiveEls.push(E)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new N0e;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var h=Math.max(c.x,0),v=Math.max(c.y,0),d=Math.min(c.width+c.x,a.getWidth()),g=Math.min(c.height+c.y,a.getHeight()),m=d-h,y=g-v,S=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],w=l.mapArray(S,function(A,M,D){var L=r.dataToPoint([A,M]);return L[0]-=h,L[1]-=v,L.push(D),L}),x=i.getExtent(),T=i.type==="visualMap.continuous"?V0e(x,i.option.range):F0e(x,i.getPieceList(),i.option.selected);u.update(w,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},T);var b=new ln({style:{width:m,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Kt),z0e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return as(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=cp.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(ur);function G0e(e){e.registerChartView(B0e),e.registerSeriesModel(z0e)}var $0e=["itemStyle","borderWidth"],qN=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Mx=new is,H0e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:qN[+c],categoryDim:qN[1-+c]};o.diff(s).add(function(d){if(o.hasValue(d)){var g=KN(o,d),m=jN(o,d,g,h),y=JN(o,h,m);o.setItemGraphicEl(d,y),a.add(y),eF(y,h,m)}}).update(function(d,g){var m=s.getItemGraphicEl(g);if(!o.hasValue(d)){a.remove(m);return}var y=KN(o,d),S=jN(o,d,y,h),w=FW(o,S);m&&w!==m.__pictorialShapeStr&&(a.remove(m),o.setItemGraphicEl(d,null),m=null),m?j0e(m,h,S):m=JN(o,h,S,!0),o.setItemGraphicEl(d,m),m.__pictorialSymbolMeta=S,a.add(m),eF(m,h,S)}).remove(function(d){var g=s.getItemGraphicEl(d);g&&QN(s,d,g.__pictorialSymbolMeta.animationModel,g)}).execute();var v=r.get("clip",!0)?gp(r.coordinateSystem,!1,r):null;return v?a.setClipPath(v):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){QN(a,Ke(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Kt);function jN(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};W0e(r,a,i,n,h),U0e(e,t,i,a,o,h.boundingLength,h.pxSign,c,n,h),Y0e(r,h.symbolScale,u,n,h);var v=h.symbolSize,d=rc(r.get("symbolOffset"),v);return X0e(r,v,i,a,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function W0e(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(ge(o)){var f=[Dx(s,o[0])-l,Dx(s,o[1])-l];f[1]0?1:-1}function Dx(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function U0e(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(r[f.wh]),v=e.getItemVisual(t,"symbolSize"),d;ge(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[f.index]=Ie(d[f.index],h),d[c.index]=Ie(d[c.index],n?h:Math.abs(a)),u.symbolSize=d;var g=u.symbolScale=[d[0]/s,d[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Y0e(e,t,r,n,i){var a=e.get($0e)||0;a&&(Mx.attr({scaleX:t[0],scaleY:t[1],rotation:r}),Mx.updateTransform(),a/=Mx.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function X0e(e,t,r,n,i,a,o,s,l,u,c,f){var h=c.categoryDim,v=c.valueDim,d=f.pxSign,g=Math.max(t[v.index]+s,0),m=g;if(n){var y=Math.abs(l),S=on(e.get("symbolMargin"),"15%")+"",w=!1;S.lastIndexOf("!")===S.length-1&&(w=!0,S=S.slice(0,S.length-1));var x=Ie(S,t[v.index]),T=Math.max(g+x*2,0),b=w?0:x*2,A=Hz(n),M=A?n:tF((y+b)/T),D=y-M*g;x=D/2/(w?M:Math.max(M-1,1)),T=g+x*2,b=w?0:x*2,!A&&n!=="fixed"&&(M=u?tF((Math.abs(u)+b)/T):0),m=M*T-b,f.repeatTimes=M,f.symbolMargin=x}var L=d*(m/2),P=f.pathPosition=[];P[h.index]=r[h.wh]/2,P[v.index]=o==="start"?L:o==="end"?l-L:l/2,a&&(P[0]+=a[0],P[1]+=a[1]);var E=f.bundlePosition=[];E[h.index]=r[h.xy],E[v.index]=r[v.xy];var F=f.barRectShape=ce({},r);F[v.wh]=d*Math.max(Math.abs(r[v.wh]),Math.abs(P[v.index]+L)),F[h.wh]=r[h.wh];var O=f.clipShape={};O[h.xy]=-r[h.xy],O[h.wh]=c.ecSize[h.wh],O[v.xy]=0,O[v.wh]=r[v.wh]}function RW(e){var t=e.symbolPatternSize,r=zr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function EW(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(uD(e,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(S=u-1-g),m[l.index]=f*(S-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function kW(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?wf(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=RW(r),i.add(a),wf(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function OW(e,t,r){var n=ce({},t.barRectShape),i=e.__pictorialBarRect;i?wf(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Ct({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function NW(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=ce({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)kt(i,{shape:a},s,l);else{a[o.wh]=0,i=new Ct({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],tc[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function KN(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=Z0e,r.isAnimationEnabled=q0e,r}function Z0e(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function q0e(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function JN(e,t,r,n){var i=new qe,a=new qe;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?EW(i,t,r):kW(i,t,r),OW(i,r,n),NW(i,t,r,n),i.__pictorialShapeStr=FW(e,r),i.__pictorialSymbolMeta=r,i}function j0e(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;kt(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?EW(e,t,r,!0):kW(e,t,r,!0),OW(e,r,!0),NW(e,t,r,!0)}function QN(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];uD(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),R(a,function(o){il(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function FW(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function uD(e,t,r){R(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function wf(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&tc[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function eF(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),h=a.get("scale");uD(e,function(g){if(g instanceof ln){var m=g.style;g.useStyle(ce({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},r.style))}else g.useStyle(r.style);var y=g.ensureState("emphasis");y.style=o,h&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=r.z2});var v=t.valueDim.posDesc[+(r.boundingLength>0)],d=e.__pictorialBarRect;d.ignoreClip=!0,_n(d,tn(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Nf(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:v}),Cr(e,c,f,a.get("disabled"))}function tF(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var K0e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=gl(Ed.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Ed);function J0e(e){e.registerChartView(H0e),e.registerSeriesModel(K0e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,tt(S$,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,w$("pictorialBar"))}var Q0e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function h(m){return m.name}var v=new Jo(this._layersSeries||[],l,h,h),d=[];v.add(ke(g,this,"add")).update(ke(g,this,"update")).remove(ke(g,this,"remove")).execute();function g(m,y,S){var w=o._layers;if(m==="remove"){s.remove(w[y]);return}for(var x=[],T=[],b,A=l[y].indices,M=0;Ma&&(a=s),n.push(s)}for(var u=0;ua&&(a=f)}return{y0:i,max:a}}function i_e(e){e.registerChartView(Q0e),e.registerSeriesModel(t_e),e.registerLayout(r_e),e.registerProcessor(yp("themeRiver"))}var a_e=2,o_e=4,nF=function(e){j(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=a_e,o.textConfig={inside:!0},Ke(o).seriesIndex=n.seriesIndex;var s=new It({z2:o_e,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;Ke(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=ce({},c);f.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=kf(v,o));var d=wu(l.getModel("itemStyle"),f,!0);ce(f,d),R(Zn,function(S){var w=s.ensureState(S),x=l.getModel([S,"itemStyle"]);w.style=x.getItemStyle();var T=wu(x,f);T&&(w.shape=T)}),r?(s.setShape(f),s.shape.r=c.r0,vr(s,{shape:{r:c.r}},i,n.dataIndex)):(kt(s,{shape:f},i),Ta(s)),s.useStyle(h),this._updateLabel(i);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?n.getAncestorsIndices():m==="descendant"?n.getDescendantIndices():m;Cr(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,h=f.getTextContent(),v=this.node.dataIndex,d=a.get("minAngle")/180*Math.PI,g=a.get("show")&&!(d!=null&&Math.abs(s)O&&!_d(V-O)&&V0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,r,n,i):(o.virtualPiece=new nF(S,r,n,i),c.add(o.virtualPiece)),w.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(w.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";r0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:cT,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(Kt),c_e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};VW(i);var a=this._levelModels=Se(r.levels||[],function(l){return new $t(l,this,n)},this),o=ZM.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),h=a[f.depth];return h&&(u.parentModel=h),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=W_(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){HH(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(ur);function VW(e){var t=0;R(e.children,function(n){VW(n);var i=n.value;ge(i)&&(i=i[0]),t+=i});var r=e.value;ge(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),ge(e.value)?e.value[0]=r:e.value=r}var aF=Math.PI/180;function f_e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");ge(a)||(a=[0,a]),ge(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=Ie(i[0],o),c=Ie(i[1],s),f=Ie(a[0],l/2),h=Ie(a[1],l/2),v=-n.get("startAngle")*aF,d=n.get("minAngle")*aF,g=n.getData().tree.root,m=n.getViewRoot(),y=m.depth,S=n.get("sort");S!=null&&BW(m,S);var w=0;R(m.children,function(V){!isNaN(V.getValue())&&w++});var x=m.getValue(),T=Math.PI/(x||w)*2,b=m.depth>0,A=m.height-(b?-1:1),M=(h-f)/(A||1),D=n.get("clockwise"),L=n.get("stillShowZeroSum"),P=D?1:-1,E=function(V,Y){if(V){var G=Y;if(V!==g){var Z=V.getValue(),J=x===0&&L?T:Z*T;J1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&Ee(s)&&(s=Jb(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");ce(u,l)})})}function d_e(e){e.registerChartView(u_e),e.registerSeriesModel(c_e),e.registerLayout(tt(f_e,"sunburst")),e.registerProcessor(tt(yp,"sunburst")),e.registerVisual(v_e),l_e(e)}var oF={color:"fill",borderColor:"stroke"},p_e={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Yo=Tt(),g_e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return as(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=Yo(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(ur);function m_e(e,t){return t=t||[0,0],Se(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function y_e(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ke(m_e,e)}}}function __e(e,t){return t=t||[0,0],Se([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function S_e(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:ke(__e,e)}}}function w_e(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function x_e(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ke(w_e,e)}}}function b_e(e,t){return t=t||[0,0],Se(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function C_e(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:ke(b_e,e)}}}function T_e(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function zW(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Oe(e,"text")))}function GW(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},Oe(n,"text")&&(o.text=n.text),Oe(n,"rich")&&(o.rich=n.rich),Oe(n,"textFill")&&(o.fill=n.textFill),Oe(n,"textStroke")&&(o.stroke=n.textStroke),Oe(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Oe(n,"fontSize")&&(o.fontSize=n.fontSize),Oe(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Oe(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Oe(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),Oe(n,"textPosition")&&(i.position=n.textPosition),Oe(n,"textOffset")&&(i.offset=n.textOffset),Oe(n,"textRotation")&&(i.rotation=n.textRotation),Oe(n,"textDistance")&&(i.distance=n.textDistance)}return sF(o,e),R(o.rich,function(l){sF(l,l)}),{textConfig:i,textContent:a}}function sF(e,t){t&&(t.font=t.textFont||t.font,Oe(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Oe(t,"textAlign")&&(e.align=t.textAlign),Oe(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Oe(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Oe(t,"textWidth")&&(e.width=t.textWidth),Oe(t,"textHeight")&&(e.height=t.textHeight),Oe(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Oe(t,"textPadding")&&(e.padding=t.textPadding),Oe(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Oe(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Oe(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Oe(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Oe(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Oe(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Oe(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function lF(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";uF(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,R(t.rich,function(s){uF(s,s)}),n}function uF(e,t){t&&(Oe(t,"fill")&&(e.textFill=t.fill),Oe(t,"stroke")&&(e.textStroke=t.fill),Oe(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Oe(t,"font")&&(e.font=t.font),Oe(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Oe(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Oe(t,"fontSize")&&(e.fontSize=t.fontSize),Oe(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Oe(t,"align")&&(e.textAlign=t.align),Oe(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Oe(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Oe(t,"width")&&(e.textWidth=t.width),Oe(t,"height")&&(e.textHeight=t.height),Oe(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Oe(t,"padding")&&(e.textPadding=t.padding),Oe(t,"borderColor")&&(e.textBorderColor=t.borderColor),Oe(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Oe(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Oe(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Oe(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Oe(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Oe(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Oe(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Oe(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Oe(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Oe(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var $W={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},cF=yt($W);io(oo,function(e,t){return e[t]=1,e},{});oo.join(", ");var x0=["","style","shape","extra"],Bf=Tt();function cD(e,t,r,n,i){var a=e+"Animation",o=Qf(e,n,i)||{},s=Bf(t).userDuring;return o.duration>0&&(o.during=s?ke(L_e,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),ce(o,r[a]),o}function py(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Bf(e),u=t.style;l.userDuring=t.during;var c={},f={};if(R_e(e,t,f),hF("shape",t,f),hF("extra",t,f),!a&&s&&(P_e(e,t,c),fF("shape",e,t,c),fF("extra",e,t,c),E_e(e,t,u,c)),f.style=u,A_e(e,f,o),D_e(e,t),s)if(a){var h={};R(x0,function(d){var g=d?t[d]:t;g&&g.enterFrom&&(d&&(h[d]=h[d]||{}),ce(d?h[d]:h,g.enterFrom))});var v=cD("enter",e,t,r,i);v.duration>0&&e.animateFrom(h,v)}else M_e(e,t,i||0,r,c);HW(e,t),u?e.dirty():e.markRedraw()}function HW(e,t){for(var r=Bf(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function D_e(e,t){Oe(t,"silent")&&(e.silent=t.silent),Oe(t,"ignore")&&(e.ignore=t.ignore),e instanceof na&&Oe(t,"invisible")&&(e.invisible=t.invisible),e instanceof pt&&Oe(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Ga={},I_e={setTransform:function(e,t){return Ga.el[e]=t,this},getTransform:function(e){return Ga.el[e]},setShape:function(e,t){var r=Ga.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=Ga.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=Ga.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=Ga.el.style;if(t)return t[e]},setExtra:function(e,t){var r=Ga.el.extra||(Ga.el.extra={});return r[e]=t,this},getExtra:function(e){var t=Ga.el.extra;if(t)return t[e]}};function L_e(){var e=this,t=e.el;if(t){var r=Bf(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}Ga.el=t,n(I_e)}}function fF(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),Ou(l))ce(o,a);else for(var u=Yt(l),c=0;c=0){!o&&(o=n[e]={});for(var v=yt(a),c=0;c=0)){var h=e.getAnimationStyleProps(),v=h?h.style:null;if(v){!a&&(a=n.style={});for(var d=yt(r),u=0;u=0?t.getStore().get(Y,N):void 0}var G=t.get(V.name,N),Z=V&&V.ordinalMeta;return Z?Z.categories[G]:G}function b(O,N){N==null&&(N=u);var V=t.getItemVisual(N,"style"),Y=V&&V.fill,G=V&&V.opacity,Z=S(N,Ys).getItemStyle();Y!=null&&(Z.fill=Y),G!=null&&(Z.opacity=G);var J={inheritColor:Ee(Y)?Y:"#000"},re=w(N,Ys),pe=lr(re,null,J,!1,!0);pe.text=re.getShallow("show")?et(e.getFormattedLabel(N,Ys),Nf(t,N)):null;var Me=e0(re,J,!1);return D(O,Z),Z=lF(Z,pe,Me),O&&M(Z,O),Z.legacy=!0,Z}function A(O,N){N==null&&(N=u);var V=S(N,Xo).getItemStyle(),Y=w(N,Xo),G=lr(Y,null,null,!0,!0);G.text=Y.getShallow("show")?eo(e.getFormattedLabel(N,Xo),e.getFormattedLabel(N,Ys),Nf(t,N)):null;var Z=e0(Y,null,!0);return D(O,V),V=lF(V,G,Z),O&&M(V,O),V.legacy=!0,V}function M(O,N){for(var V in N)Oe(N,V)&&(O[V]=N[V])}function D(O,N){O&&(O.textFill&&(N.textFill=O.textFill),O.textPosition&&(N.textPosition=O.textPosition))}function L(O,N){if(N==null&&(N=u),Oe(oF,O)){var V=t.getItemVisual(N,"style");return V?V[oF[O]]:null}if(Oe(p_e,O))return t.getItemVisual(N,O)}function P(O){if(a.type==="cartesian2d"){var N=a.getBaseAxis();return Rfe(We({axis:N},O))}}function E(){return r.getCurrentSeriesIndices()}function F(O){return nM(O,r)}}function H_e(e){var t={};return R(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function Rx(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=pD(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Cr(s,n.focus,n.blurScope,n.emphasisDisabled),s}function pD(e,t,r,n,i,a){var o=-1,s=t;t&&XW(t,n,i)&&(o=ht(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=vD(n),s&&B_e(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),$i.normal.cfg=$i.normal.conOpt=$i.emphasis.cfg=$i.emphasis.conOpt=$i.blur.cfg=$i.blur.conOpt=$i.select.cfg=$i.select.conOpt=null,$i.isLegacy=!1,U_e(u,r,n,i,l,$i),W_e(u,r,n,i,l),dD(e,u,r,n,$i,i,l),Oe(n,"info")&&(Yo(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function XW(e,t,r){var n=Yo(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&j_e(a)&&ZW(a)!==n.customPathData||i==="image"&&Oe(o,"image")&&o.image!==n.customImagePath}function W_e(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&XW(o,a,n)&&(o=null),o||(o=vD(a),e.setClipPath(o)),dD(null,o,t,a,null,n,i)}}function U_e(e,t,r,n,i,a){if(!e.isGroup){dF(r,null,a),dF(r,Xo,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=vD(o),e.setTextContent(c)),dD(null,c,t,o,null,n,i);for(var f=o&&o.style,h=0;h=c;v--){var d=t.childAt(v);X_e(t,d,i)}}}function X_e(e,t,r){t&&X_(t,Yo(e).option,r)}function Z_e(e){new Jo(e.oldChildren,e.newChildren,pF,pF,e).add(gF).update(gF).remove(q_e).execute()}function pF(e,t){var r=e&&e.name;return r??F_e+t}function gF(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;pD(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function q_e(e){var t=this.context,r=t.oldChildren[e];r&&X_(r,Yo(r).option,t.seriesModel)}function ZW(e){return e&&(e.pathData||e.d)}function j_e(e){return e&&(Oe(e,"pathData")||Oe(e,"d"))}function K_e(e){e.registerChartView(z_e),e.registerSeriesModel(g_e)}var uu=Tt(),mF=Ze,Ex=ke,mD=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new qe,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=tt(yF,r,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}SF(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=GM(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=uu(t).pointerEl=new tc[a.type](mF(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=uu(t).labelEl=new It(mF(r.label));t.add(a),_F(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=uu(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=uu(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),_F(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=up(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Zo(u.event)},onmousedown:Ex(this._onHandleDragMove,this,0,0),drift:Ex(this._onHandleDragMove,this),ondragend:Ex(this._onHandleDragEnd,this)}),n.add(i)),SF(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ge(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,sh(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){yF(this._axisPointerModel,!r&&this._moveAnimation,this._handle,kx(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(kx(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(kx(i)),uu(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Md(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function yF(e,t,r,n){qW(uu(r).lastProp,n)||(uu(r).lastProp=n,t?kt(r,n,e):(r.stopAnimation(),r.attr(n)))}function qW(e,t){if(Ye(e)&&Ye(t)){var r=!0;return R(t,function(n,i){r=r&&qW(e[i],n)}),!!r}else return e===t}function _F(e,t){e[t.get(["label","show"])?"show":"hide"]()}function kx(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function SF(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function yD(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function jW(e,t,r,n,i){var a=r.get("value"),o=KW(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=nh(s.get("padding")||0),u=s.getFont(),c=rp(o,u),f=i.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=i.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(f[1]-=v),g==="middle"&&(f[1]-=v/2),J_e(f,h,v,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:lr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function J_e(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function KW(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:LM(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ee(o)?a=o.replace("{value}",a):$e(o)&&(a=o(s))}return a}function _D(e,t,r){var n=Mi();return ec(n,n,r.rotation),ao(n,n,r.position),xa([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function JW(e,t,r,n,i,a){var o=Un.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),jW(t,n,i,a,{position:_D(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function SD(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function QW(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function wF(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var Q_e=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=xF(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=yD(a),v=e1e[u](s,f,c);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=YC(l.model,i);JW(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=YC(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=_D(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=xF(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[c]}},t}(mD);function xF(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var e1e={line:function(e,t,r){var n=SD([t,r[0]],[t,r[1]],bF(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:QW([t-n/2,r[0]],[n,i],bF(e))}}};function bF(e){return e.dim==="x"?0:1}var t1e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(mt),Go=Tt(),r1e=R;function eU(e,t,r){if(!gt.node){var n=t.getZr();Go(n).records||(Go(n).records={}),n1e(n,t);var i=Go(n).records[e]||(Go(n).records[e]={});i.handler=r}}function n1e(e,t){if(Go(e).initialized)return;Go(e).initialized=!0,r("click",tt(CF,"click")),r("mousemove",tt(CF,"mousemove")),r("globalout",a1e);function r(n,i){e.on(n,function(a){var o=o1e(t);r1e(Go(e).records,function(s){s&&i(s,a,o.dispatchAction)}),i1e(o.pendings,t)})}}function i1e(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function a1e(e,t,r){e.handler("leave",null,r)}function CF(e,t,r,n){t.handler(e,r,n)}function o1e(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function vT(e,t){if(!gt.node){var r=t.getZr(),n=(Go(r).records||{})[e];n&&(Go(r).records[e]=null)}}var s1e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";eU("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){vT("axisPointer",n)},t.prototype.dispose=function(r,n){vT("axisPointer",n)},t.type="axisPointer",t}(mr);function tU(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Yu(a,e);if(o==null||o<0||ge(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=a.mapDimension(h),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(Se(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var TF=Tt();function l1e(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ke(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){gy(i)&&(i=tU({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=gy(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||gy(i),h={},v={},d={list:[],map:{}},g={showPointer:tt(c1e,v),showTooltip:tt(f1e,d)};R(s.coordSysMap,function(y,S){var w=l||y.containPoint(i);R(s.coordSysAxesInfo[S],function(x,T){var b=x.axis,A=p1e(u,x);if(!f&&w&&(!u||A)){var M=A&&A.value;M==null&&!l&&(M=b.pointToData(i)),M!=null&&AF(x,M,g,!1,h)}})});var m={};return R(c,function(y,S){var w=y.linkGroup;w&&!v[S]&&R(w.axesInfo,function(x,T){var b=v[T];if(x!==y&&b){var A=b.value;w.mapper&&(A=y.axis.scale.parse(w.mapper(A,MF(x),MF(y)))),m[y.key]=A}})}),R(m,function(y,S){AF(c[S],y,g,!0,h)}),h1e(v,c,h),v1e(d,i,e,o),d1e(c,o,r),h}}function AF(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=u1e(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&ce(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function u1e(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,e,r);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=e-f,g=Math.abs(d);g<=o&&((g=0&&s<0)&&(o=g,s=d,i=f,a.length=0),R(h,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function c1e(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function f1e(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=kd(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.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 h1e(e,t,r){var n=r.axesInfo=[];R(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function v1e(e,t,r,n){if(gy(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function d1e(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=TF(n)[i]||{},o=TF(n)[i]={};R(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&R(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];R(a,function(u,c){!o[c]&&l.push(u)}),R(o,function(u,c){!a[c]&&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 p1e(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function MF(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function gy(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function xp(e){ac.registerAxisPointerClass("CartesianAxisPointer",Q_e),e.registerComponentModel(t1e),e.registerComponentView(s1e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!ge(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=Tde(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},l1e)}function g1e(e){vt(IH),vt(xp)}var m1e=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),h=a.get("type");if(h&&h!=="none"){var v=yD(a),d=_1e[h](s,l,f,c);d.style=v,r.graphicKey=d.type,r.pointer=d}var g=a.get(["label","margin"]),m=y1e(n,i,a,l,g);jW(r,i,a,o,m)},t}(mD);function y1e(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var h=Mi();ec(h,h,s),ao(h,h,[n.cx,n.cy]),u=xa([o,-i],h);var v=t.getModel("axisLabel").get("rotate")||0,d=Un.innerTextLayout(s,v*Math.PI/180,-1);c=d.textAlign,f=d.textVerticalAlign}else{var g=l[1];u=n.coordToPoint([g+i,o]);var m=n.cx,y=n.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",f=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var _1e={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:SD(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:wF(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:wF(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}},S1e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(mt),wD=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Vr).models[0]},t.type="polarAxis",t}(mt);Gr(wD,vp);var w1e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(wD),x1e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(wD),xD=function(e){j(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(Ia);xD.prototype.dataToRadius=Ia.prototype.dataToCoord;xD.prototype.radiusToData=Ia.prototype.coordToData;var b1e=Tt(),bD=function(e){j(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=rp(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=b1e(r.model),g=d.lastAutoInterval,m=d.lastTickCount;return g!=null&&m!=null&&Math.abs(g-v)<=1&&Math.abs(m-o)<=1&&g>v?v=g:(d.lastTickCount=o,d.lastAutoInterval=v),v},t}(Ia);bD.prototype.dataToAngle=Ia.prototype.dataToCoord;bD.prototype.angleToData=Ia.prototype.coordToData;var rU=["radius","angle"],C1e=function(){function e(t){this.dimensions=rU,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new xD,this._angleAxis=new bD,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,h=this.r0;return c<=f*f&&c>=h*h}}},e.prototype.convertToPixel=function(t,r,n){var i=DF(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=DF(r);return i===this?this.pointToData(n):null},e}();function DF(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function T1e(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=Ie(n[0],i),e.cy=Ie(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:ge(l)||(l=[0,l]);var u=[Ie(l[0],s),Ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function A1e(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();R(f0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),R(f0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Of(n.scale,n.model),Of(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function M1e(e){return e.mainType==="angleAxis"}function IF(e,t){var r;if(e.type=t.get("type"),e.scale=z_(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),M1e(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(r=t.get("endAngle"))!==null&&r!==void 0?r:n+(e.inverse?-360:360);e.setExtent(n,i)}t.axis=e,e.model=t}var D1e={dimensions:rU,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new C1e(i+"");a.update=A1e;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");IF(o,l),IF(s,u),T1e(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",Vr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}},I1e=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function mm(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function ym(e){var t=e.getRadiusAxis();return t.inverse?0:1}function LF(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var L1e=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Se(i.getViewLabels(),function(c){c=Ze(c);var f=i.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(h),c});LF(u),LF(s),R(I1e,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&P1e[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(ac),P1e={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=ym(r),f=c?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?h=new tc[v]({shape:{cx:r.cx,cy:r.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new ap({shape:{cx:r.cx,cy:r.cy,r:a[c],r0:a[f]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,e.add(h)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[ym(r)],u=Se(n,function(c){return new jr({shape:mm(r,[l,l+s],c.coord)})});e.add(Ki(u,{style:We(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[ym(r)],c=[],f=0;fy?"left":"right",x=Math.abs(m[1]-S)/g<.3?"middle":m[1]>S?"top":"bottom";if(s&&s[d]){var T=s[d];Ye(T)&&T.textStyle&&(v=new $t(T.textStyle,l,l.ecModel))}var b=new It({silent:Un.isLabelSilent(t),style:lr(v,{x:m[0],y:m[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:w,verticalAlign:x})});if(e.add(b),c){var A=Un.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=f.rawLabel,Ke(b).eventData=A}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",N=D;T&&(n[c][F]||(n[c][F]={p:D,n:D}),N=n[c][F][O]);var V=void 0,Y=void 0,G=void 0,Z=void 0;if(d.dim==="radius"){var J=d.dataToCoord(E)-D,re=l.dataToCoord(F);Math.abs(J)=Z})}}})}function V1e(e){var t={};R(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=iU(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;t[l]=f;var v=nU(n);h[v]||f.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=Ie(n.get("barWidth"),c),g=Ie(n.get("barMaxWidth"),c),m=n.get("barGap"),y=n.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(f.remainedWidth,d),h[v].width=d,f.remainedWidth-=d),g&&(h[v].maxWidth=g),m!=null&&(f.gap=m),y!=null&&(f.categoryGap=y)});var r={};return R(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=Ie(n.categoryGap,o),l=Ie(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),R(a,function(g,m){var y=g.maxWidth;y&&y=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=PF(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=PF(r);return i===this?this.pointToData(n):null},e}();function PF(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function q1e(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new Z1e(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",Vr).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var j1e={create:q1e,dimensions:aU},RF=["x","y"],K1e=["width","height"],J1e=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=Ox(l,1-T0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var h=yD(a),v=Q1e[f](s,c,u);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=dT(i);JW(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=dT(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=_D(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=T0(o),u=Ox(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=Ox(s,1-l),h=(f[1]+f[0])/2,v=[h,h];return v[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},t}(mD),Q1e={line:function(e,t,r){var n=SD([t,r[0]],[t,r[1]],T0(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:QW([t-n/2,r[0]],[n,i],T0(e))}}};function T0(e){return e.isHorizontal()?0:1}function Ox(e,t){var r=e.getRect();return[r[RF[t]],r[RF[t]]+r[K1e[t]]]}var eSe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(mr);function tSe(e){vt(xp),ac.registerAxisPointerClass("SingleAxisPointer",J1e),e.registerComponentView(eSe),e.registerComponentView(U1e),e.registerComponentModel(my),Ff(e,"single",my,my.defaultOption),e.registerCoordinateSystem("single",j1e)}var rSe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=ih(r);e.prototype.init.apply(this,arguments),EF(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),EF(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(mt);function EF(e,t){var r=e.cellSize,n;ge(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Se([0,1],function(a){return ble(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});al(e,t,{type:"box",ignoreSize:i})}var nSe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Ct({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,h=0;f.time<=n.end.time;h++){d(f.formatedDate),h===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(r,g,i);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new Kn({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return Ee(r)&&r?Sle(r,n):$e(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,h=i==="horizontal"?0:1,v={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var g=o.get("formatter"),m={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(g,m),S=new It({z2:30,style:lr(o,{text:y})});S.attr(this._yearTextPositionControl(S,v[l],i,l,s)),a.add(S)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||Ee(s))&&(s&&(n=xC(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=c==="center",g=0;g=i.start.time&&n.times.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/Nx)-Math.floor(r[0].time/Nx)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&ri.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function kF(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function aSe(e){e.registerComponentModel(rSe),e.registerComponentView(nSe),e.registerCoordinateSystem("calendar",iSe)}function oSe(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function OF(e,t){var r;return R(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function sSe(e,t,r){var n=ce({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(it(i,n,!0),al(i,n,{ignoreSize:!0}),JG(r,i),_m(r,i),_m(r,i,"shape"),_m(r,i,"style"),_m(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var oU=["transition","enterFrom","leaveTo"],lSe=oU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function _m(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?oU:lSe,i=0;i=0;c--){var f=i[c],h=$r(f.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,y=Xi(d),S=d===a?{width:s,height:l}:{width:y.width,height:y.height},w={},x=P_(v,f,S,null,{hv:f.hv,boundingMode:f.bounding},w);if(!Xi(v).isNew&&x){for(var T=f.transition,b={},A=0;A=0)?b[M]=D:v[M]=D}kt(v,b,r,0)}else v.attr(w)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){yy(i,Xi(i).option,n,r._lastGraphicModel)}),this._elMap=Ne()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(mr);function pT(e){var t=Oe(NF,e)?NF[e]:rM(e),r=new t({});return Xi(r).type=e,r}function FF(e,t,r,n){var i=pT(r);return t.add(i),n.set(e,i),Xi(i).id=e,Xi(i).isNew=!0,i}function yy(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){yy(a,t,r,n)}),X_(e,t,n),r.removeKey(Xi(e).id))}function VF(e,t,r,n){e.isGroup||R([["cursor",na.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];Oe(t,a)?e[a]=et(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),R(yt(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=$e(a)?a:null}}),Oe(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function hSe(e){return e=ce({},e),R(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(KG),function(t){delete e[t]}),e}function vSe(e,t,r){var n=Ke(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ke(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function dSe(e){e.registerComponentModel(cSe),e.registerComponentView(fSe),e.registerPreprocessor(function(t){var r=t.graphic;ge(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var BF=["x","y","radius","angle","single"],pSe=["cartesian2d","polar","singleAxis"];function gSe(e){var t=e.get("coordinateSystem");return ht(pSe,t)>=0}function Xs(e){return e+"Axis"}function mSe(e,t){var r=Ne(),n=[],i=Ne();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,v){var d=r.get(h);d&&d[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(r.get(f)||r.set(f,[]))[h]=!0})}return n}function sU(e){var t=e.ecModel,r={infoList:[],infoMap:Ne()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(Xs(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var Fx=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),zd=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=zF(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=zF(r);it(this.option,r,!0),it(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;R([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=Ne(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return R(BF,function(i){var a=this.getReferringComponents(Xs(i),uoe);if(a.specified){n=!0;var o=new Fx;R(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new Fx;if(h.add(f.componentIndex),r.set(c,h),a=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",Vr).models[0];v&&R(u,function(d){f.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Vr).models[0]&&h.add(d.componentIndex)})}}}a&&R(BF,function(u){if(a){var c=i.findComponents({mainType:Xs(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new Fx;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");R([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(Xs(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){R(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(Xs(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;R([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;R(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(w&&!x&&!T)return!0;w&&(m=!0),x&&(d=!0),T&&(g=!0)}return m&&d&&g})}else qc(c,function(v){if(a==="empty")l.setData(u=u.map(v,function(g){return s(g)?g:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});qc(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;qc(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Ht(n[0]+o,n,[0,100],!0):a!=null&&(o=Ht(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=zz(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function wSe(e,t,r){var n=[1/0,-1/0];qc(r,function(o){ehe(n,o.getData(),t)});var i=e.getAxisModel(),a=T$(i.axis.scale,i,n).calculate();return[a.min,a.max]}var xSe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(Xs(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new SSe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=Ne();return R(r,function(i){R(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function bSe(e){e.registerAction("dataZoom",function(t,r){var n=mSe(r,t);R(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var $F=!1;function TD(e){$F||($F=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,xSe),bSe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function CSe(e){e.registerComponentModel(ySe),e.registerComponentView(_Se),TD(e)}var ji=function(){function e(){}return e}(),lU={};function jc(e,t){lU[e]=t}function uU(e){return lU[e]}var TSe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;R(this.option.feature,function(n,i){var a=uU(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),it(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(mt);function ASe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=Hr(n,a,i);Eu(t.get("orient"),e,t.get("itemGap"),o.width,o.height),P_(e,n,a,i)}function cU(e,t){var r=nh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ct({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var MSe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];R(u,function(d,g){f.push(g)}),new Jo(this._featureNames||[],f).add(h).update(h).remove(tt(h,null)).execute(),this._featureNames=f;function h(d,g){var m=f[d],y=f[g],S=u[m],w=new $t(S,r,r.ecModel),x;if(a&&a.newTitle!=null&&a.featureName===m&&(S.title=a.newTitle),m&&!y){if(DSe(m))x={onclick:w.option.onclick,featureName:m};else{var T=uU(m);if(!T)return;x=new T}c[m]=x}else if(x=c[y],!x)return;x.uid=rh("toolbox-feature"),x.model=w,x.ecModel=n,x.api=i;var b=x instanceof ji;if(!m&&y){b&&x.dispose&&x.dispose(n,i);return}if(!w.get("show")||b&&x.unusable){b&&x.remove&&x.remove(n,i);return}v(w,x,m),w.setIconStatus=function(A,M){var D=this.option,L=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[A]=M,L[A]&&(M==="emphasis"?jo:Ko)(L[A])},x instanceof ji&&x.render&&x.render(w,n,i,a)}function v(d,g,m){var y=d.getModel("iconStyle"),S=d.getModel(["emphasis","iconStyle"]),w=g instanceof ji&&g.getIcons?g.getIcons():d.get("icon"),x=d.get("title")||{},T,b;Ee(w)?(T={},T[m]=w):T=w,Ee(x)?(b={},b[m]=x):b=x;var A=d.iconPaths={};R(T,function(M,D){var L=up(M,{},{x:-s/2,y:-s/2,width:s,height:s});L.setStyle(y.getItemStyle());var P=L.ensureState("emphasis");P.style=S.getItemStyle();var E=new It({style:{text:b[D],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:nM({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},n)},ignore:!0});L.setTextContent(E),eh({el:L,componentModel:r,itemName:D,formatterParamsExtra:{title:b[D]}}),L.__title=b[D],L.on("mouseover",function(){var F=S.getItemStyle(),O=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:S.get("textFill")||F.fill||F.stroke||"#000",backgroundColor:S.get("textBackgroundColor")}),L.setTextConfig({position:S.get("textPosition")||O}),E.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",D])!=="emphasis"&&i.leaveEmphasis(this),E.hide()}),(d.get(["iconStatus",D])==="emphasis"?jo:Ko)(L),o.add(L),L.on("click",ke(g.onclick,g,n,i,D)),A[D]=L})}ASe(o,r,i),o.add(cU(o.getBoundingRect(),r)),l||o.eachChild(function(d){var g=d.__title,m=d.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),S=d.getTextContent(),w=S&&S.ensureState("emphasis");if(w&&!$e(w)&&g){var x=w.style||(w.style={}),T=rp(g,It.makeFont(x)),b=d.x+o.x,A=d.y+o.y+s,M=!1;A+T.height>i.getHeight()&&(y.position="top",M=!0);var D=M?-5-T.height:s+10;b+T.width/2>i.getWidth()?(y.position=["100%",D],x.align="right"):b-T.width/2<0&&(y.position=[0,D],x.align="left")}})},t.prototype.updateView=function(r,n,i,a){R(this._features,function(o){o instanceof ji&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){R(this._features,function(i){i instanceof ji&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){R(this._features,function(i){i instanceof ji&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(mr);function DSe(e){return e.indexOf("my")===0}var ISe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=gt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=d.length,y=new Uint8Array(m);m--;)y[m]=d.charCodeAt(m);var S=new Blob([y]);window.navigator.msSaveOrOpenBlob(S,g)}else{var w=document.createElement("iframe");document.body.appendChild(w);var x=w.contentWindow,T=x.document;T.open("image/svg+xml","replace"),T.write(d),T.close(),x.focus(),T.execCommand("SaveAs",!0,g),document.body.removeChild(w)}}else{var b=i.get("lang"),A='',M=window.open();M.document.write(A),M.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(ji),HF="__ec_magicType_stack__",LSe=[["line","bar"],["stack"]],PSe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return R(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(WF[i]){var s={series:[]},l=function(f){var h=f.subType,v=f.id,d=WF[i](h,v,f,a);d&&(We(d,f.option),s.series.push(d));var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(i==="line"||i==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,S=y+"Axis",w=f.getReferringComponents(S,Vr).models[0],x=w.componentIndex;s[S]=s[S]||[];for(var T=0;T<=x;T++)s[S][x]=s[S][x]||{};s[S][x].boundaryGap=i==="bar"}}};R(LSe,function(f){ht(f,i)>=0&&R(f,function(h){a.setIconStatus(h,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=it({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(ji),WF={line:function(e,t,r,n){if(e==="bar")return it({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return it({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===HF;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),it({id:t,stack:i?"":HF},n.get(["option","stack"])||{},!0)}};co({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var Z_=new Array(60).join("-"),zf=" ";function RSe(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function ESe(e){var t=[];return R(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(Se(r.series,function(v){return v.name})),l=[i.model.getCategories()];R(r.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(g){return g}))});for(var u=[s.join(zf)],c=0;c=0)return!0}var gT=new RegExp("["+zf+"]+","g");function VSe(e){for(var t=e.split(/\n+/g),r=A0(t.shift()).split(gT),n=[],i=Se(r,function(l){return{name:l,data:[]}}),a=0;a=0)return!0}var gT=new RegExp("["+zf+"]+","g");function FSe(e){for(var t=e.split(/\n+/g),r=A0(t.shift()).split(gT),n=[],i=Se(r,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function WSe(e){var t=AD(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return fU(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function USe(e){hU(e).snapshots=null}function YSe(e){return AD(e).length}function AD(e){var t=hU(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var XSe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){USe(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(ji);co({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var ZSe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],MD=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=UF(r,t);R(qSe,function(o,s){(!n||!n.include||ht(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=Vx[n.brushType](0,a,i);n.__rangeOffset={offset:qF[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){R(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&R(a.coordSyses,function(o){var s=Vx[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){R(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=Vx[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?qF[n.brushType](a.values,o.offset,jSe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return Se(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:SW(i),isTargetByCursor:xW(i,t,n.coordSysModel),getLinearBrushOtherExtent:wW(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&ht(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=UF(r,t),a=0;ae[1]&&e.reverse(),e}function UF(e,t){return Hv(e,t,{includeMainTypes:ZSe})}var qSe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=Ne(),o={},s={};!r&&!n&&!i||(R(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),R(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),R(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];R(u.getCartesians(),function(f,h){(ht(r,f.getAxis("x").model)>=0||ht(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:XF.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){R(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:XF.geo})})}},YF=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],XF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Ru(e)),t}},Vx={lineX:tt(ZF,0),lineY:tt(ZF,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[mT([i[0],a[0]]),mT([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=Se(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function ZF(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=mT(Se([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var qF={lineX:tt(jF,0),lineY:tt(jF,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Se(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function jF(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function jSe(e,t){var r=KF(e),n=KF(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function KF(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var yT=R,KSe=aoe("toolbox-dataZoom_"),JSe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new rD(i.getZr()),this._brushController.on("brush",ke(this._onBrush,this)).mount()),twe(r,n,this,a,i),ewe(r,n)},t.prototype.onclick=function(r,n,i){QSe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new MD(DD(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),HSe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,a),g=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=oc(0,f.slice(),h.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(r){var n=[];yT(r,function(i,a){n.push(Ze(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(ji),QSe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(WSe(this.ecModel))}};function DD(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function ewe(e,t){e.setIconStatus("back",YSe(t)>1?"emphasis":"normal")}function twe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new MD(DD(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Lle("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=DD(n),o=Hv(e,a);yT(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),yT(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:KSe+u+f};h[c]=f,i.push(h)}return i});function rwe(e){e.registerComponentModel(ASe),e.registerComponentView(DSe),jc("saveAsImage",LSe),jc("magicType",RSe),jc("dataView",GSe),jc("dataZoom",JSe),jc("restore",XSe),vt(TSe)}var nwe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(mt);function vU(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function dU(e){if(gt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-f)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function cwe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=gt.transformSupported?","+ID+n:",left"+n+",top"+n),owe+":"+i}function JF(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!gt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=gt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+ID+":"+o+";":[["top",0],["left",0],[pU,o]]}function fwe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),R(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function hwe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=I4(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(cwe(i,r)),a&&n.push("background-color:"+a),R(["width","color","radius"],function(v){var d="border-"+v,g=qG(d),m=e.get(g);m!=null&&n.push(d+":"+m+(v==="color"?"":"px"))}),n.push(fwe(c)),f!=null&&n.push("padding:"+nh(f).join("px ")+"px"),n.join(";")+";"}function QF(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Fie(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var vwe=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,gt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(Ee(a)?document.querySelector(a):Lf(a)?a:$e(a)&&a(t.getDom()));QF(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Wi(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=awe(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=swe+hwe(t,!this._firstShow,this._longHide)+JF(a[0],a[1],!0)+("border-color:"+qu(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Ee(a)&&n.get("trigger")==="item"&&!vU(n)&&(s=uwe(n,i,a)),Ee(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ge(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||gt.node||!i.getDom())){var o=r5(a,i);this._ticket="";var s=a.dataByCoordSys,l=Swe(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 c=pwe;c.x=a.x,c.y=a.y,c.update(),Ke(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},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 f=tU(a,n),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(r5(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=rv([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=Ke(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;yu(i,function(c){if(Ke(c).dataIndex!=null)return l=c,!0;if(Ke(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ke(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=rv([n.tooltipOption],a),l=this._renderMode,u=[],c=rn("section",{blocks:[],noHeader:!0}),f=[],h=new xw;R(r,function(S){R(S.dataByAxis,function(w){var x=i.getComponent(w.axisDim+"Axis",w.axisIndex),T=w.value;if(!(!x||T==null)){var b=KW(T,x.axis,i,w.seriesDataIndices,w.valueLabelOpt),A=rn("section",{header:b,noHeader:!ma(b),sortBlocks:!0,blocks:[]});c.blocks.push(A),R(w.seriesDataIndices,function(M){var D=i.getSeriesByIndex(M.seriesIndex),L=M.dataIndexInside,P=D.getDataParams(L);if(!(P.dataIndex<0)){P.axisDim=w.axisDim,P.axisIndex=w.axisIndex,P.axisType=w.axisType,P.axisId=w.axisId,P.axisValue=LM(x.axis,{value:T}),P.axisValueLabel=b,P.marker=h.makeTooltipMarker("item",qu(P.color),l);var E=$E(D.formatTooltip(L,!0,null)),F=E.frag;if(F){var O=rv([D],a).get("valueFormatter");A.blocks.push(O?ce({valueFormatter:O},F):F)}E.text&&f.push(E.text),u.push(P)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,d=s.get("order"),g=ZE(c,h,l,d,i.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var m=l==="richText"?` +*`,"g")),n={series:[]};return R(r,function(i,a){if(NSe(i)){var o=FSe(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=VSe(i);n.series.push(o)}}),n}var zSe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=a.get("optionToContent"),h=a.get("contentToOption"),v=OSe(r);if($e(f)){var d=f(n.getOption());Ee(d)?u.innerHTML=d:Lf(d)&&u.appendChild(d)}else{c.readOnly=a.get("readOnly");var g=c.style;g.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",g.color=a.get("textColor"),g.borderColor=a.get("textareaBorderColor"),g.backgroundColor=a.get("textareaColor"),c.value=v.value,u.appendChild(c)}var m=v.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var S="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document.createElement("div"),x=document.createElement("div");S+=";background-color:"+a.get("buttonColor"),S+=";color:"+a.get("buttonTextColor");var T=this;function b(){i.removeChild(o),T._dom=null}Zb(w,"click",b),Zb(x,"click",function(){if(h==null&&f!=null||h!=null&&f==null){b();return}var A;try{$e(h)?A=h(u,n.getOption()):A=BSe(c.value,m)}catch(M){throw b(),new Error("Data view format error "+M)}A&&n.dispatchAction({type:"changeDataView",newOption:A}),b()}),w.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=w.style.cssText=S,!a.get("readOnly")&&y.appendChild(x),y.appendChild(w),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(ji);function GSe(e,t){return Se(e,function(r,n){var i=t&&t[n];if(Ye(i)&&!ge(i)){var a=Ye(r)&&!ge(r);a||(r={value:r});var o=i.name!=null&&r.name==null;return r=We(r,i),o&&delete r.name,r}else return r})}co({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];R(e.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)r.push(ce({type:"scatter"},n));else{var a=i.get("data");r.push({name:n.name,data:GSe(n.data,a)})}}),t.mergeOption(We({series:r},e.newOption))});var fU=R,hU=Tt();function $Se(e,t){var r=AD(e);fU(t,function(n,i){for(var a=r.length-1;a>=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function HSe(e){var t=AD(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return fU(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function WSe(e){hU(e).snapshots=null}function USe(e){return AD(e).length}function AD(e){var t=hU(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var YSe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){WSe(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(ji);co({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var XSe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],MD=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=UF(r,t);R(ZSe,function(o,s){(!n||!n.include||ht(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=Vx[n.brushType](0,a,i);n.__rangeOffset={offset:qF[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){R(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&R(a.coordSyses,function(o){var s=Vx[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){R(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=Vx[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?qF[n.brushType](a.values,o.offset,qSe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return Se(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:SW(i),isTargetByCursor:xW(i,t,n.coordSysModel),getLinearBrushOtherExtent:wW(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&ht(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=UF(r,t),a=0;ae[1]&&e.reverse(),e}function UF(e,t){return Hv(e,t,{includeMainTypes:XSe})}var ZSe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=Ne(),o={},s={};!r&&!n&&!i||(R(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),R(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),R(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];R(u.getCartesians(),function(f,h){(ht(r,f.getAxis("x").model)>=0||ht(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:XF.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){R(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:XF.geo})})}},YF=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],XF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Ru(e)),t}},Vx={lineX:tt(ZF,0),lineY:tt(ZF,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[mT([i[0],a[0]]),mT([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=Se(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function ZF(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=mT(Se([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var qF={lineX:tt(jF,0),lineY:tt(jF,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Se(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function jF(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function qSe(e,t){var r=KF(e),n=KF(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function KF(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var yT=R,jSe=ioe("toolbox-dataZoom_"),KSe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new rD(i.getZr()),this._brushController.on("brush",ke(this._onBrush,this)).mount()),ewe(r,n,this,a,i),QSe(r,n)},t.prototype.onclick=function(r,n,i){JSe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new MD(DD(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),$Se(a,i),this._dispatchZoomAction(i);function s(u,c,f){var h=c.getAxis(u),v=h.model,d=l(u,v,a),g=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=oc(0,f.slice(),h.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,c.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(r){var n=[];yT(r,function(i,a){n.push(Ze(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(ji),JSe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(HSe(this.ecModel))}};function DD(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function QSe(e,t){e.setIconStatus("back",USe(t)>1?"emphasis":"normal")}function ewe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new MD(DD(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Ile("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=DD(n),o=Hv(e,a);yT(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),yT(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:jSe+u+f};h[c]=f,i.push(h)}return i});function twe(e){e.registerComponentModel(TSe),e.registerComponentView(MSe),jc("saveAsImage",ISe),jc("magicType",PSe),jc("dataView",zSe),jc("dataZoom",KSe),jc("restore",YSe),vt(CSe)}var rwe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(mt);function vU(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function dU(e){if(gt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-f)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function uwe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=gt.transformSupported?","+ID+n:",left"+n+",top"+n),awe+":"+i}function JF(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!gt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=gt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+ID+":"+o+";":[["top",0],["left",0],[pU,o]]}function cwe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),R(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function fwe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=I4(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(uwe(i,r)),a&&n.push("background-color:"+a),R(["width","color","radius"],function(v){var d="border-"+v,g=qG(d),m=e.get(g);m!=null&&n.push(d+":"+m+(v==="color"?"":"px"))}),n.push(cwe(c)),f!=null&&n.push("padding:"+nh(f).join("px ")+"px"),n.join(";")+";"}function QF(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Nie(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var hwe=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,gt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(Ee(a)?document.querySelector(a):Lf(a)?a:$e(a)&&a(t.getDom()));QF(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Wi(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=iwe(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=owe+fwe(t,!this._firstShow,this._longHide)+JF(a[0],a[1],!0)+("border-color:"+qu(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Ee(a)&&n.get("trigger")==="item"&&!vU(n)&&(s=lwe(n,i,a)),Ee(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ge(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||gt.node||!i.getDom())){var o=r5(a,i);this._ticket="";var s=a.dataByCoordSys,l=_we(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 c=dwe;c.x=a.x,c.y=a.y,c.update(),Ke(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},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 f=tU(a,n),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(r5(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=rv([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=Ke(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;yu(i,function(c){if(Ke(c).dataIndex!=null)return l=c,!0;if(Ke(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ke(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=rv([n.tooltipOption],a),l=this._renderMode,u=[],c=rn("section",{blocks:[],noHeader:!0}),f=[],h=new xw;R(r,function(S){R(S.dataByAxis,function(w){var x=i.getComponent(w.axisDim+"Axis",w.axisIndex),T=w.value;if(!(!x||T==null)){var b=KW(T,x.axis,i,w.seriesDataIndices,w.valueLabelOpt),A=rn("section",{header:b,noHeader:!ma(b),sortBlocks:!0,blocks:[]});c.blocks.push(A),R(w.seriesDataIndices,function(M){var D=i.getSeriesByIndex(M.seriesIndex),L=M.dataIndexInside,P=D.getDataParams(L);if(!(P.dataIndex<0)){P.axisDim=w.axisDim,P.axisIndex=w.axisIndex,P.axisType=w.axisType,P.axisId=w.axisId,P.axisValue=LM(x.axis,{value:T}),P.axisValueLabel=b,P.marker=h.makeTooltipMarker("item",qu(P.color),l);var E=$E(D.formatTooltip(L,!0,null)),F=E.frag;if(F){var O=rv([D],a).get("valueFormatter");A.blocks.push(O?ce({valueFormatter:O},F):F)}E.text&&f.push(E.text),u.push(P)}})}})}),c.blocks.reverse(),f.reverse();var v=n.position,d=s.get("order"),g=ZE(c,h,l,d,i.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var m=l==="richText"?` -`:"
",y=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Ke(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=r.positionDefault,g=rv([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,f),S=new xw;y.marker=S.makeTooltipMarker("item",qu(y.color),v);var w=$E(u.formatTooltip(c,!1,f)),x=g.get("order"),T=g.get("valueFormatter"),b=w.frag,A=b?ZE(T?ce({valueFormatter:T},b):b,S,v,x,a.get("useUTC"),g.get("textStyle")):w.text,M="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,A,y,M,r.offsetX,r.offsetY,r.position,r.target,S)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Ke(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Ee(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=Ze(l),l.content=ai(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var v=r.positionDefault,d=rv(f,this._tooltipModel,v?{position:v}:null),g=d.get("content"),m=Math.random()+"",y=new xw;this._showOrMove(d,function(){var S=Ze(d.get("formatterParams")||{});this._showTooltipContent(d,g,S,m,r.offsetX,r.offsetY,r.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),g=d.color;if(h)if(Ee(h)){var m=r.ecModel.get("useUTC"),y=ge(i)?i[0]:i,S=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,S&&(v=A_(y.axisValue,v,m)),v=jG(v,i,!0)}else if($e(h)){var w=ke(function(x,T){x===this._ticket&&(f.setContent(T,c,r,g,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,v=h(i,a,w)}else v=h;f.setContent(v,c,r,g,l),f.show(r,g),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||ge(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ge(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),$e(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),ge(n))i=Ie(n[0],u),a=Ie(n[1],c);else if(Ye(n)){var g=n;g.width=f[0],g.height=f[1];var m=Hr(g,{width:u,height:c});i=m.x,a=m.y,h=null,v=null}else if(Ee(n)&&l){var y=_we(n,d,f,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=mwe(i,a,o,u,c,h?null:20,v?null:20);i=y[0],a=y[1]}if(h&&(i-=n5(h)?f[0]/2:h==="right"?f[0]:0),v&&(a-=n5(v)?f[1]/2:v==="bottom"?f[1]:0),vU(r)){var y=ywe(i,a,o,u,c);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&R(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&R(u,function(h,v){var d=f[v]||{},g=h.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&g.length===m.length,o&&R(g,function(y,S){var w=m[S];o=o&&y.seriesIndex===w.seriesIndex&&y.dataIndex===w.dataIndex}),a&&R(h.seriesDataIndices,function(y){var S=y.seriesIndex,w=n[S],x=a[S];w&&x&&x.data!==w.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){gt.node||!n.getDom()||(Md(this,"_updatePosition"),this._tooltipContent.dispose(),vT("itemTooltip",n))},t.type="tooltip",t}(mr);function rv(e,t,r){var n=t.ecModel,i;r?(i=new $t(r,n,n),i=new $t(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof $t&&(o=o.get("tooltip",!0)),Ee(o)&&(o={formatter:o}),o&&(i=new $t(o,i,n)))}return i}function r5(e,t){return e.dispatchAction||ke(t.dispatchAction,t)}function mwe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function ywe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function _we(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function n5(e){return e==="center"||e==="middle"}function Swe(e,t,r){var n=WA(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=np(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Ke(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function wwe(e){vt(xp),e.registerComponentModel(nwe),e.registerComponentView(gwe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Er),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Er)}var xwe=["rect","polygon","keep","clear"];function bwe(e,t){var r=Yt(e?e.brush:[]);if(r.length){var n=[];R(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;ge(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),Cwe(s),t&&!s.length&&s.push.apply(s,xwe)}}function Cwe(e){var t={};R(e,function(r){t[r]=1}),e.length=0,R(t,function(r,n){e.push(n)})}var i5=R;function a5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function _T(e,t,r){var n={};return i5(t,function(a){var o=n[a]=i();i5(e[a],function(s,l){if(en.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new en(u),l==="opacity"&&(u=Ze(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new en(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function mU(e,t,r){var n;R(r,function(i){t.hasOwnProperty(i)&&a5(t[i])&&(n=!0)}),n&&R(r,function(i){t.hasOwnProperty(i)&&a5(t[i])?e[i]=Ze(t[i]):delete e[i]})}function Twe(e,t,r,n,i,a){var o={};R(e,function(f){var h=en.prepareVisualTypes(t[f]);o[f]=h});var s;function l(f){return _M(r,s,f)}function u(f,h){B4(r,s,f,h)}r.each(c);function c(f,h){s=f;var v=r.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=n.call(i,f),g=t[d],m=o[d],y=0,S=m.length;yt[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&c5(t)}};function c5(e){return new at(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Ewe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new rD(n.getZr())).on("brush",ke(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){yU(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Ze(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Ze(i),$from:n})},t.type="brush",t}(mr),kwe="#ddd",Owe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&mU(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:kwe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Se(r,function(n){return f5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=f5(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(mt);function f5(e,t){return it({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new $t(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var Nwe=["rect","polygon","lineX","lineY","keep","clear"],Fwe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,R(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return R(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:Nwe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(ji);function Vwe(e){e.registerComponentView(Ewe),e.registerComponentModel(Owe),e.registerPreprocessor(bwe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Dwe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Er),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Er),jc("brush",Fwe)}var Bwe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(mt),zwe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=et(r.get("textBaseline"),r.get("textVerticalAlign")),c=new It({style:lr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=r.get("subtext"),v=new It({style:lr(s,{text:h,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),g=r.get("sublink"),m=r.get("triggerEvent",!0);c.silent=!d&&!m,v.silent=!g&&!m,d&&c.on("click",function(){r0(d,"_"+r.get("target"))}),g&&v.on("click",function(){r0(g,"_"+r.get("subtarget"))}),Ke(c).eventData=Ke(v).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),h&&a.add(v);var y=a.getBoundingRect(),S=r.getBoxLayoutParams();S.width=y.width,S.height=y.height;var w=Hr(S,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?w.x+=w.width:l==="center"&&(w.x+=w.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?w.y+=w.height:u==="middle"&&(w.y+=w.height/2),u=u||"top"),a.x=w.x,a.y=w.y,a.markRedraw();var x={align:l,verticalAlign:u};c.setStyle(x),v.setStyle(x),y=a.getBoundingRect();var T=w.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var A=new Ct({shape:{x:y.x-T[3],y:y.y-T[0],width:y.width+T[1]+T[3],height:y.height+T[0]+T[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(A)}},t.type="title",t}(mr);function Gwe(e){e.registerComponentModel(Bwe),e.registerComponentView(zwe)}var h5=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],R(n,function(u,c){var f=$r(Kf(u),""),h;Ye(u)?(h=Ze(u),h.value=c):h=c,o.push(h),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Wn([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(mt),_U=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=gl(h5.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(h5);Gr(_U,E_.prototype);var $we=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(mr),Hwe=function(e){j(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(La),zx=Math.PI,v5=Tt(),Wwe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return rn("nameValue",{noName:!0,value:c})},R(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=Ywe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:zx/2},f=a==="vertical"?o.height:o.width,h=r.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,g=v?h.get("itemGap"):0,m=d+g,y=r.get(["label","rotate"])||0;y=y*zx/180;var S,w,x,T=h.get("position",!0),b=v&&h.get("showPlayBtn",!0),A=v&&h.get("showPrevBtn",!0),M=v&&h.get("showNextBtn",!0),D=0,L=f;T==="left"||T==="bottom"?(b&&(S=[0,0],D+=m),A&&(w=[D,0],D+=m),M&&(x=[L-d,0],L-=m)):(b&&(S=[L-d,0],L-=m),A&&(w=[0,0],D+=m),M&&(x=[L-d,0],L-=m));var P=[D,L];return r.get("inverse")&&P.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:y,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:S,prevBtnPosition:w,nextBtnPosition:x,axisExtent:P,controlSize:d,controlGap:g}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Mi(),l=o.x,u=o.y+o.height;ao(s,s,[-l,-u]),ec(s,s,-zx/2),ao(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=S(o),f=S(i.getBoundingRect()),h=S(a.getBoundingRect()),v=[i.x,i.y],d=[a.x,a.y];d[0]=v[0]=c[0][0];var g=r.labelPosOpt;if(g==null||Ee(g)){var m=g==="+"?0:1;w(v,f,c,1,m),w(d,h,c,1,1-m)}else{var m=g>=0?0:1;w(v,f,c,1,m),d[1]=v[1]+g}i.setPosition(v),a.setPosition(d),i.rotation=a.rotation=r.rotation,y(i),y(a);function y(x){x.originX=c[0][0]-x.x,x.originY=c[1][0]-x.y}function S(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function w(x,T,b,A,M){x[A]+=b[A][M]-T[A][M]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=Uwe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Hwe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new qe;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new jr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:ce({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new jr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:We({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],R(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),h=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),d=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:ke(o._changeTimeline,o,u.value)},m=d5(f,h,n,g);m.ensureState("emphasis").style=v.getItemStyle(),m.ensureState("progress").style=d.getItemStyle(),Pu(m);var y=Ke(m);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],R(u,function(c){var f=c.tickValue,h=l.getItemModel(f),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),g=h.getModel(["progress","label"]),m=i.dataToCoord(c.tickValue),y=new It({x:m,y:0,rotation:r.labelRotation-r.rotation,onclick:ke(o._changeTimeline,o,f),silent:!1,style:lr(v,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=lr(d),y.ensureState("progress").style=lr(g),n.add(y),Pu(y),v5(y).dataIndex=f,o._tickLabels.push(y)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);h(r.nextBtnPosition,"next",ke(this._changeTimeline,this,f?"-":"+")),h(r.prevBtnPosition,"prev",ke(this._changeTimeline,this,f?"+":"-")),h(r.playPosition,c?"stop":"play",ke(this._handlePlayClick,this,!c),!0);function h(v,d,g,m){if(v){var y=Ta(et(a.get(["controlStyle",d+"BtnSize"]),o),o),S=[0,-y/2,y,y],w=Xwe(a,d+"Icon",S,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});w.ensureState("emphasis").style=u,n.add(w),Pu(w)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ke(u._handlePointerDrag,u),f.ondragend=ke(u._handlePointerDragend,u),p5(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){p5(f,u._progressLine,s,i,a)}};this._currentPointer=d5(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=Qi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(h)),[o,f]}var Gx={min:tt(xm,"min"),max:tt(xm,"max"),average:tt(xm,"average"),median:tt(xm,"median")};function Gd(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!Qwe(t)&&!ge(t.coord)&&ge(i)){var a=SU(t,r,n,e);if(t=Ze(t),t.type&&Gx[t.type]&&a.baseAxis&&a.valueAxis){var o=ht(i,a.baseAxis.dim),s=ht(i,a.valueAxis.dim),l=Gx[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!ge(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)Gx[u[c]]&&(u[c]=PD(r,r.mapDimension(i[c]),u[c]));return t}}function SU(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(exe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function exe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function $d(e,t){return e&&e.containData&&t.coord&&!wT(t)?e.containData(t.coord):!0}function txe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!wT(t)&&!wT(r)?e.containZone(t.coord,r.coord):!0}function wU(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Js(o,t[a])}:function(r,n,i,a){return Js(r.value,t[a])}}function PD(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var $x=Tt(),RD=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=Ne()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){$x(s).keep=!1}),n.eachSeries(function(s){var l=ts.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!$x(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){$x(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;R(r,function(a){var o=ts.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?vG(l):KA(l))})}})},t.type="marker",t}(mr);function m5(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=Ie(a.get("x"),r.getWidth()),l=Ie(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var rxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=ts.getMarkerModelFromSeries(a,"markPoint");o&&(m5(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new pp),f=nxe(o,r,n);n.setData(f),m5(n.getData(),r,a),f.each(function(h){var v=f.getItemModel(h),d=v.getShallow("symbol"),g=v.getShallow("symbolSize"),m=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),S=v.getShallow("symbolKeepAspect");if($e(d)||$e(g)||$e(m)||$e(y)){var w=n.getRawValue(h),x=n.getDataParams(h);$e(d)&&(d=d(w,x)),$e(g)&&(g=g(w,x)),$e(m)&&(m=m(w,x)),$e(y)&&(y=y(w,x))}var T=v.getModel("itemStyle").getItemStyle(),b=fp(l,"color");T.fill||(T.fill=b),f.setItemVisual(h,{symbol:d,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:S,style:T})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(v){Ke(v).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(RD);function nxe(e,t,r){var n;e?n=Se(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return ce(ce({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Wn(n,r),a=Se(r.get("data"),tt(Gd,t));e&&(a=Wt(a,tt($d,e)));var o=wU(!!e,n);return i.initData(a,null,o),i}function ixe(e){e.registerComponentModel(Jwe),e.registerComponentView(rxe),e.registerPreprocessor(function(t){LD(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var axe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ts),bm=Tt(),oxe=function(e,t,r,n){var i=e.getData(),a;if(ge(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=on(n.yAxis,n.xAxis);else{var u=SU(n,i,t,e);s=u.valueAxis;var c=d$(i,u.valueDataDim);l=PD(i,c,o)}var f=s.dim==="x"?0:1,h=1-f,v=Ze(n),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var g=r.get("precision");g>=0&&Pt(l)&&(l=+l.toFixed(Math.min(g,20))),v.coord[f]=d.coord[f]=l,a=[v,d,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var m=[Gd(e,a[0]),Gd(e,a[1]),ce({},a[2])];return m[2].type=m[2].type||null,it(m[2],m[0]),it(m[2],m[1]),m};function M0(e){return!isNaN(e)&&!isFinite(e)}function y5(e,t,r,n){var i=1-e,a=n.dimensions[e];return M0(t[i])&&M0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function sxe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(y5(1,r,n,e)||y5(0,r,n,e)))return!0}return $d(e,t[0])&&$d(e,t[1])}function Hx(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=Ie(o.get("x"),i.getWidth()),u=Ie(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),h=e.get(c[1],t);s=a.dataToPoint([f,h])}if(ic(a,"cartesian2d")){var v=a.getAxis("x"),d=a.getAxis("y"),c=a.dimensions;M0(e.get(c[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[r?0:1]):M0(e.get(c[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var lxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=ts.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=bm(o).from,u=bm(o).to;l.each(function(c){Hx(l,c,!0,a,i),Hx(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new tD);this.group.add(c.group);var f=uxe(o,r,n),h=f.from,v=f.to,d=f.line;bm(n).from=h,bm(n).to=v,n.setData(d);var g=n.get("symbol"),m=n.get("symbolSize"),y=n.get("symbolRotate"),S=n.get("symbolOffset");ge(g)||(g=[g,g]),ge(m)||(m=[m,m]),ge(y)||(y=[y,y]),ge(S)||(S=[S,S]),f.from.each(function(x){w(h,x,!0),w(v,x,!1)}),d.each(function(x){var T=d.getItemModel(x).getModel("lineStyle").getLineStyle();d.setItemLayout(x,[h.getItemLayout(x),v.getItemLayout(x)]),T.stroke==null&&(T.stroke=h.getItemVisual(x,"style").fill),d.setItemVisual(x,{fromSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(x,"symbolOffset"),fromSymbolRotate:h.getItemVisual(x,"symbolRotate"),fromSymbolSize:h.getItemVisual(x,"symbolSize"),fromSymbol:h.getItemVisual(x,"symbol"),toSymbolKeepAspect:v.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(x,"symbolOffset"),toSymbolRotate:v.getItemVisual(x,"symbolRotate"),toSymbolSize:v.getItemVisual(x,"symbolSize"),toSymbol:v.getItemVisual(x,"symbol"),style:T})}),c.updateData(d),f.line.eachItemGraphicEl(function(x){Ke(x).dataModel=n,x.traverse(function(T){Ke(T).dataModel=n})});function w(x,T,b){var A=x.getItemModel(T);Hx(x,T,b,r,a);var M=A.getModel("itemStyle").getItemStyle();M.fill==null&&(M.fill=fp(l,"color")),x.setItemVisual(T,{symbolKeepAspect:A.get("symbolKeepAspect"),symbolOffset:et(A.get("symbolOffset",!0),S[b?0:1]),symbolRotate:et(A.get("symbolRotate",!0),y[b?0:1]),symbolSize:et(A.get("symbolSize"),m[b?0:1]),symbol:et(A.get("symbol",!0),g[b?0:1]),style:M})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(RD);function uxe(e,t,r){var n;e?n=Se(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return ce(ce({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Wn(n,r),a=new Wn(n,r),o=new Wn([],r),s=Se(r.get("data"),tt(oxe,t,e,r));e&&(s=Wt(s,tt(sxe,e)));var l=wU(!!e,n);return i.initData(Se(s,function(u){return u[0]}),null,l),a.initData(Se(s,function(u){return u[1]}),null,l),o.initData(Se(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function cxe(e){e.registerComponentModel(axe),e.registerComponentView(lxe),e.registerPreprocessor(function(t){LD(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var fxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ts),Cm=Tt(),hxe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Gd(e,i),s=Gd(e,a),l=o.coord,u=s.coord;l[0]=on(l[0],-1/0),l[1]=on(l[1],-1/0),u[0]=on(u[0],1/0),u[1]=on(u[1],1/0);var c=EA([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function D0(e){return!isNaN(e)&&!isFinite(e)}function _5(e,t,r,n){var i=1-e;return D0(t[i])&&D0(r[i])}function vxe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return ic(e,"cartesian2d")?r&&n&&(_5(1,r,n)||_5(0,r,n))?!0:txe(e,i,a):$d(e,i)||$d(e,a)}function S5(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=Ie(o.get(r[0]),i.getWidth()),u=Ie(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),h=a.clampData(c),v=a.clampData(f),d=[];r[0]==="x0"?d[0]=h[0]>v[0]?f[0]:c[0]:d[0]=h[0]>v[0]?c[0]:f[0],r[1]==="y0"?d[1]=h[1]>v[1]?f[1]:c[1]:d[1]=h[1]>v[1]?c[1]:f[1],s=n.getMarkerPosition(d,r,!0)}else{var g=e.get(r[0],t),m=e.get(r[1],t),y=[g,m];a.clampData&&a.clampData(y,y),s=a.dataToPoint(y,!0)}if(ic(a,"cartesian2d")){var S=a.getAxis("x"),w=a.getAxis("y"),g=e.get(r[0],t),m=e.get(r[1],t);D0(g)?s[0]=S.toGlobalCoord(S.getExtent()[r[0]==="x0"?0:1]):D0(m)&&(s[1]=w.toGlobalCoord(w.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var w5=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],dxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=ts.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Se(w5,function(f){return S5(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new qe});this.group.add(c.group),this.markKeep(c);var f=pxe(o,r,n);n.setData(f),f.each(function(h){var v=Se(w5,function(M){return S5(f,h,M,r,a)}),d=o.getAxis("x").scale,g=o.getAxis("y").scale,m=d.getExtent(),y=g.getExtent(),S=[d.parse(f.get("x0",h)),d.parse(f.get("x1",h))],w=[g.parse(f.get("y0",h)),g.parse(f.get("y1",h))];Qi(S),Qi(w);var x=!(m[0]>S[1]||m[1]w[1]||y[1]=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(mt),zc=tt,bT=R,Tm=qe,xU=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Tm),this.group.add(this._selectorGroup=new Tm),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),v=Hr(c,f,h),d=this.layoutInner(r,o,v,a,l,u),g=Hr(We({width:d.width,height:d.height},c),f,h);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=cU(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=Ne(),f=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),bT(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var m=new Tm;m.newline=!0,u.add(m);return}var y=i.getSeriesByName(g)[0];if(!c.get(g))if(y){var S=y.getData(),w=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),T=S.getVisual("style"),b=this._createItem(y,g,d,v,n,r,w,T,x,f,a);b.on("click",zc(x5,g,null,a,h)).on("mouseover",zc(CT,y.name,null,a,h)).on("mouseout",zc(TT,y.name,null,a,h)),i.ssr&&b.eachChild(function(A){var M=Ke(A);M.seriesIndex=y.seriesIndex,M.dataIndex=d,M.ssrType="legend"}),c.set(g,!0)}else i.eachRawSeries(function(A){if(!c.get(g)&&A.legendVisualProvider){var M=A.legendVisualProvider;if(!M.containName(g))return;var D=M.indexOfName(g),L=M.getItemVisual(D,"style"),P=M.getItemVisual(D,"legendIcon"),E=Di(L.fill);E&&E[3]===0&&(E[3]=.2,L=ce(ce({},L),{fill:Uo(E,"rgba")}));var F=this._createItem(A,g,d,v,n,r,{},L,P,f,a);F.on("click",zc(x5,null,g,a,h)).on("mouseover",zc(CT,null,g,a,h)).on("mouseout",zc(TT,null,g,a,h)),i.ssr&&F.eachChild(function(O){var N=Ke(O);N.seriesIndex=A.seriesIndex,N.dataIndex=d,N.ssrType="legend"}),c.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();bT(r,function(u){var c=u.type,f=new It({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);_n(f,{normal:h,emphasis:v},{defaultText:u.title}),Pu(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,h){var v=r.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(n),y=a.get("symbolRotate"),S=a.get("symbolKeepAspect"),w=a.get("icon");c=w||c||"roundRect";var x=yxe(c,a,l,u,v,m,h),T=new Tm,b=a.getModel("textStyle");if($e(r.getLegendIcon)&&(!w||w==="inherit"))T.add(r.getLegendIcon({itemWidth:d,itemHeight:g,icon:c,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:S}));else{var A=w==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;T.add(_xe({itemWidth:d,itemHeight:g,icon:c,iconRotate:A,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:S}))}var M=s==="left"?d+5:-5,D=s,L=o.get("formatter"),P=n;Ee(L)&&L?P=L.replace("{name}",n??""):$e(L)&&(P=L(n));var E=m?b.getTextColor():a.get("inactiveColor");T.add(new It({style:lr(b,{text:P,x:M,y:g/2,fill:E,align:D,verticalAlign:"middle"},{inheritColor:E})}));var F=new Ct({shape:T.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&eh({el:F,componentModel:o,itemName:n,itemTooltipOption:O.option}),T.add(F),T.eachChild(function(N){N.silent=!0}),F.silent=!f,this.getContentGroup().add(T),Pu(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Eu(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Eu("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),g=r.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",S=g===0?"y":"x";s==="end"?v[g]+=c[m]+d:f[g]+=h[m]+d,v[1-g]+=c[y]/2-h[y]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var w={x:0,y:0};return w[m]=c[m]+d+h[m],w[y]=Math.max(c[y],h[y]),w[S]=Math.min(0,h[S]+v[1-g]),w}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(mr);function yxe(e,t,r,n,i,a,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),bT(m,function(S,w){m[w]==="inherit"&&(m[w]=y[w])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:kf(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function _xe(e){var t=e.icon||"roundRect",r=zr(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function x5(e,t,r,n){TT(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),CT(e,t,r,n)}function bU(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],m=[-v.x,-v.y];n||(m[a]=c[u]);var y=[0,0],S=[-d.x,-d.y],w=et(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var x=r.get("pageButtonPosition",!0);x==="end"?S[a]+=i[o]-d[o]:y[a]+=d[o]+w}S[1-a]+=v[s]/2-d[s]/2,c.setPosition(m),f.setPosition(y),h.setPosition(S);var T={x:0,y:0};if(T[o]=g?i[o]:v[o],T[s]=Math.max(v[s],d[s]),T[l]=Math.min(0,d[l]+S[1-a]),f.__rectSize=i[o],g){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-w,0),b[s]=T[s],f.setClipPath(new Ct({shape:b})),f.__rectSize=b[o]}else h.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(r);return A.pageIndex!=null&&kt(c,{x:A.contentPosition[0],y:A.contentPosition[1]},g?r:null),this._updatePageInfoView(r,A),T},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;R(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,v=i.childOfName(c);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",Ee(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Wx[o],l=Ux[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var g=x(f);d.contentPosition[o]=-g.s;for(var m=u+1,y=g,S=g,w=null;m<=h;++m)w=x(c[m]),(!w&&S.e>y.s+a||w&&!T(w,y.s))&&(S.i>y.i?y=S:y=w,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),S=w;for(var m=u-1,y=g,S=g,w=null;m>=-1;--m)w=x(c[m]),(!w||!T(S,w.s))&&y.i=A&&b.s<=A+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(xU);function Cxe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function Txe(e){vt(CU),e.registerComponentModel(xxe),e.registerComponentView(bxe),Cxe(e)}function Axe(e){vt(CU),vt(Txe)}var Mxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=gl(zd.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(zd),ED=Tt();function Dxe(e,t,r){ED(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function Ixe(e,t){for(var r=ED(e).coordSysRecordMap,n=r.keys(),i=0;in[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function kxe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=ED(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=Ne());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=sU(a);R(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,Lxe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Ne());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){TU(i,a);return}var c=Exe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),sh(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Oxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),Dxe(i,r,{pan:ke(Yx.pan,this),zoom:ke(Yx.zoom,this),scrollMove:ke(Yx.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Ixe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(CD),Yx={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=Xx[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(oc(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:T5(function(e,t,r,n,i,a){var o=Xx[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:T5(function(e,t,r,n,i,a){var o=Xx[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function T5(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(oc(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Xx={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function AU(e){TD(e),e.registerComponentModel(Mxe),e.registerComponentView(Oxe),kxe(e)}var Nxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=gl(zd.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(zd),av=Ct,A5=7,Fxe=1,Zx=30,Vxe=7,ov="horizontal",M5="vertical",Bxe=5,zxe=["line","bar","candlestick","scatter"],Gxe={easing:"cubicOut",duration:100,delay:0},$xe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ke(this._onBrush,this),this._onBrushEnd=ke(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),sh(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Md(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new qe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?Vxe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===ov?{right:s.width-o.x-o.width,top:s.height-Zx-A5-a,width:o.width,height:Zx}:{right:A5,top:o.y,width:Zx,height:o.height},u=ih(r.option);R(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===M5&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===ov&&!o?{scaleY:l?1:-1,scaleX:1}:i===ov&&o?{scaleY:l?1:-1,scaleX:-1}:i===M5&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new av({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new av({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ke(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var v=[0,n[1]],d=[0,n[0]],g=[[n[0],0],[0,0]],m=[],y=d[1]/(o.count()-1),S=0,w=Math.round(o.count()/n[0]),x;o.each([l],function(D,L){if(w>0&&L%w){S+=y;return}var P=D==null||isNaN(D)||D==="",E=P?0:Ht(D,f,v,!0);P&&!x&&L?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&x&&(g.push([S,0]),m.push([S,0])),g.push([S,E]),m.push([S,E]),S+=y,x=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var T=this.dataZoomModel;function b(D){var L=T.getModel(D?"selectedDataBackground":"dataBackground"),P=new qe,E=new jn({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),F=new Kn({shape:{points:c},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(E),P.add(F),P}for(var A=0;A<3;A++){var M=b(A===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();R(l,function(u){if(!i&&!(n!==!0&&ht(zxe,u.get("type"))<0)){var c=a.getComponent(Xs(o),s).axis,f=Hxe(o),h,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(h=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),h=n.filler=new av({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new av({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Fxe,fill:"rgba(0,0,0,0)"}})),R([0,1],function(w){var x=l.get("handleIcon");!a0[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var T=zr(x,-1,0,2,2,null,!0);T.attr({cursor:D5(this._orient),draggable:!0,drift:ke(this._onDragMove,this,w),ondragend:ke(this._onDragEnd,this),onmouseover:ke(this._showDataInfo,this,!0),onmouseout:ke(this._showDataInfo,this,!1),z2:5});var b=T.getBoundingRect(),A=l.get("handleSize");this._handleHeight=Ie(A,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,T.setStyle(l.getModel("handleStyle").getItemStyle()),T.style.strokeNoScale=!0,T.rectHover=!0,T.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Pu(T);var M=l.get("handleColor");M!=null&&(T.style.fill=M),o.add(i[w]=T);var D=l.getModel("textStyle");r.add(a[w]=new It({silent:!0,invisible:!0,style:lr(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var v=h;if(f){var d=Ie(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new Ct({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),m=d*.8,y=n.moveHandleIcon=zr(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new Ct({invisible:!0,shape:{y:s[1]-S,height:d+S}}),v.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:D5(this._orient),drift:ke(this._onDragMove,this,"all"),ondragstart:ke(this._showDataInfo,this,!0),ondragend:ke(this._onDragEnd,this),onmouseover:ke(this._showDataInfo,this,!0),onmouseout:ke(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Ht(r[0],[0,100],n,!0),Ht(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];oc(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?Ht(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ht(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Qi([Ht(a[0],o,l,!0),Ht(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=Qi(i.slice()),o=this._size;R([0,1],function(v){var d=n.handles[v],g=this._handleHeight;d.attr({scaleX:g/2,scaleY:g/2,x:i[v]+(v?-1:1),y:o[1]/2-g/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;cn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new rt(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Qi([Ht(i.x,o,s,!0),Ht(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(Zo(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new av({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?Gxe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=sU(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(CD);function Hxe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function D5(e){return e==="vertical"?"ns-resize":"ew-resize"}function MU(e){e.registerComponentModel(Nxe),e.registerComponentView($xe),TD(e)}function Wxe(e){vt(AU),vt(MU)}var DU={get:function(e,t,r){var n=Ze((Uxe[e]||{})[t]);return r&&ge(n)?n[n.length-1]:n}},Uxe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},I5=en.mapVisual,Yxe=en.eachVisual,Xxe=ge,L5=R,Zxe=Qi,qxe=Ht,I0=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&mU(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ke(r,this),this.controllerVisuals=_T(this.option.controller,n,r),this.targetVisuals=_T(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Yt(r),n},t.prototype.eachTargetSeries=function(r,n){R(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],ge(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(Ee(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if($e(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=Zxe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});it(a,i),it(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){Xxe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,h,v){var d=f[h],g=f[v];d&&!g&&(g=f[v]={},L5(d,function(m,y){if(en.isValidType(y)){var S=DU.get(y,"inactive",s);S!=null&&(g[y]=S,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";L5(this.stateList,function(y){var S=this.itemSize,w=f[y];w||(w=f[y]={color:s?d:[d]}),w.symbol==null&&(w.symbol=h&&Ze(h)||(s?m:[m])),w.symbolSize==null&&(w.symbolSize=v&&Ze(v)||(s?S[0]:[S[0],S[0]])),w.symbol=I5(w.symbol,function(b){return b==="none"?m:b});var x=w.symbolSize;if(x!=null){var T=-1/0;Yxe(x,function(b){b>T&&(T=b)}),w.symbolSize=I5(x,function(b){return qxe(b,[0,T],[0,S[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(mt),P5=[20,140],jxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=P5[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=P5[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):ge(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=Qi((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=R5(this,"outOfRange",this.getExtent()),i=R5(this,"inRange",this.option.range.slice()),a=[];function o(v,d){a.push({value:v,color:r(v,d)})}for(var s=0,l=0,u=i.length,c=n.length;lr[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new qe(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();Kxe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var h=Ha(r[c],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=v/l[0],f.x=l[0]-v/2;var d=ba(i.handleLabelPoints[c],Ru(f,this.group));s[c].setStyle({x:d[0],y:d[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(r,"color",h),d=this.getControllerVisual(r,"symbolSize"),g=Ha(r,s,u,!0),m=l[0]-d/2,y={x:f.x,y:f.y};f.y=g,f.x=m;var S=ba(c.indicatorLabelPoint,Ru(f,this.group)),w=c.indicatorLabel;w.attr("invisible",!1);var x=this._applyTransform("left",c.mainGroup),T=this._orient,b=T==="horizontal";w.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?x:"middle",align:b?"center":x});var A={x:m,y:g,style:{fill:v}},M={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var D={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(A,D),w.animateTo(M,D)}else f.attr(A),w.attr(M);this._firstShowIndicator=!1;var L=this._shapes.handleLabels;if(L)for(var P=0;Po[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(n||N5(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var d=loe(h,v);this._dispatchHighDown("downplay",_y(d[0],i)),this._dispatchHighDown("highlight",_y(d[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(yu(r.target,function(l){var u=Ke(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function abe(e,t,r,n){for(var i=t.targetVisuals[n],a=en.prepareVisualTypes(i),o={color:fp(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(rbe,nbe),R(ibe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(obe))}function RU(e){e.registerComponentModel(jxe),e.registerComponentView(ebe),PU(e)}var sbe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],lbe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Ze(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Se(this._pieceList,function(l){return l=Ze(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=en.listVisualTypes(),a=this.isCategory();R(r.pieces,function(s){R(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),R(n,function(s,l){var u=!1;R(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&R(this.stateList,function(c){(r[c]||(r[c]={}))[l]=DU.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,R(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;R(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Ze(r)},t.prototype.getValueState=function(r){var n=en.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=en.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var h=a.getRepresentValue({interval:c});f||(f=a.getValueState(h));var v=r(h,f);c[0]===-1/0?i[0]=v:c[1]===1/0?i[1]=v:n.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return R(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=gl(I0.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(I0),lbe={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function z5(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var ube=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,h=on(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,h,l),R(c.viewPieceList,function(v){var d=v.piece,g=new qe;g.onclick=ke(this._onItemClick,this,d),this._enableHoverLink(g,v.indexInModelPieceList);var m=n.getRepresentValue(d);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(m);g.add(new It({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}r.add(g)},this),f&&this._renderEndsText(r,f[1],u,h,l),Eu(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:_y(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return LU(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new qe,l=this.visualMapModel.textStyleModel;s.add(new It({style:lr(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Se(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(zr(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Ze(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,R(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(IU);function EU(e){e.registerComponentModel(sbe),e.registerComponentView(ube),PU(e)}function cbe(e){vt(RU),vt(EU)}var fbe={label:{enabled:!0},decal:{show:!1}},G5=Tt(),hbe={};function vbe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Ze(fbe);it(n.label,e.getLocaleModel().get("aria"),!1),it(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=Ne();e.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),G5(h).scope=v}}),e.eachRawSeries(function(h){if(e.isSeriesFiltered(h))return;if($e(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var S=TC(h.ecModel,h.name,hbe,e.getSeriesCount()),w=v.getVisual("decal");v.setVisual("decal",x(w,S))}else{var d=h.getRawData(),g={},m=G5(h).scope;v.each(function(T){var b=v.getRawIndex(T);g[b]=T});var y=d.count();d.each(function(T){var b=g[T],A=d.getName(T)||T+"",M=TC(h.ecModel,A,m,y),D=v.getItemVisual(b,"decal");v.setItemVisual(b,"decal",x(D,M))})}function x(T,b){var A=T?ce(ce({},b),T):b;return A.dirty=!0,A}})}}function a(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=We(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=e.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,g=Math.min(h,d),m;if(!(h<1)){var y=s();if(y){var S=f.get(["general","withTitle"]);m=o(S,{title:y})}else m=f.get(["general","withoutTitle"]);var w=[],x=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(x,{seriesCount:h}),e.eachSeries(function(M,D){if(D1?f.get(["series","multiple",E]):f.get(["series","single",E]),L=o(L,{seriesId:M.seriesIndex,seriesName:M.get("name"),seriesType:l(M.subType)});var F=M.getData();if(F.count()>v){var O=f.get(["data","partialData"]);L+=o(O,{displayCnt:v})}else L+=f.get(["data","allData"]);for(var N=f.get(["data","separator","middle"]),V=f.get(["data","separator","end"]),Y=[],G=0;G":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},gbe=function(){function e(t){var r=this._condVal=Ee(t)?new RegExp(t):Die(t)?t:null;if(r==null){var n="";Bt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return Ee(r)?this._condVal.test(t):Pt(r)?this._condVal.test(t+""):!1},e}(),mbe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),ybe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[F,O]}function c(F,O,N,V){af(F,N)&&af(O,V)||i.push(F,O,N,V,N,V)}function f(F,O,N,V,Y,G){var Z=Math.abs(O-F),J=Math.tan(Z/4)*4/3,re=OM:P2&&n.push(i),n}function MT(e,t,r,n,i,a,o,s,l,u){if(af(e,r)&&af(t,n)&&af(i,o)&&af(a,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-e,v=s-t,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var g=r-e,m=n-t,y=i-o,S=a-s,w=g*g+m*m,x=y*y+S*S;if(w=0&&M=0){l.push(o,s);return}var D=[],L=[];nl(e,r,i,o,.5,D),nl(t,n,a,s,.5,L),MT(D[0],L[0],D[1],L[1],D[2],L[2],D[3],L[3],l,u),MT(D[4],L[4],D[5],L[5],D[6],L[6],D[7],L[7],l,u)}function Rbe(e,t){var r=AT(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=OU([l,u],c?0:1,t),h=(c?s:u)/f.length,v=0;vi,o=OU([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,h=0;h1?null:new rt(g*l+e,g*u+t)}function Obe(e,t,r){var n=new rt;rt.sub(n,r,t),n.normalize();var i=new rt;rt.sub(i,e,t);var a=i.dot(n);return a}function $c(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function Nbe(e,t,r){for(var n=e.length,i=[],a=0;ao?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),Nbe(t,u,c)}function L0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);L0(e,a[0],i,n),L0(e,a[1],r-i,n)}return n}function Fbe(e,t){for(var r=[],n=0;n0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function E0(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Se(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=Se(a,function(s,l){return{cp:s,z:Ybe(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function VU(e){return zbe(e.path,e.count)}function DT(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Xbe(e,t,r){var n=[];function i(T){for(var b=0;b=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var qbe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;j5(e)&&(u=e,c=t),j5(t)&&(u=t,c=e);function f(y,S,w,x,T){var b=y.many,A=y.one;if(b.length===1&&!T){var M=S?b[0]:A,D=S?A:b[0];if(P0(M))f({many:[M],one:D},!0,w,x,!0);else{var L=s?We({delay:s(w,x)},l):l;OD(M,D,L),a(M,D,M,D,L)}}else for(var P=We({dividePath:qbe[r],individualDelay:s&&function(Y,G,Z,J){return s(Y+w,x)}},l),E=S?Xbe(b,A,P):Zbe(A,b,P),F=E.fromIndividuals,O=E.toIndividuals,N=F.length,V=0;Vt.length,v=u?K5(c,u):K5(h?t:e,[h?e:t]),d=0,g=0;gBU))for(var a=n.getIndices(),o=0;o0&&b.group.traverse(function(M){M instanceof pt&&!M.animators.length&&M.animateFrom({style:{opacity:0}},A)})})}function rV(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function nV(e){return ge(e)?e.sort().join(","):e}function Es(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function rCe(e,t){var r=Ne(),n=Ne(),i=Ne();return R(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=rV(a),c=nV(u);n.set(c,{dataGroupId:s,data:l}),ge(u)&&R(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),R(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=rV(a),u=nV(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Es(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Es(s),data:s}]});else if(ge(l)){var f=[];R(l,function(d){var g=n.get(d);g.data&&f.push({dataGroupId:g.dataGroupId,divide:Es(g.data),data:g.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Es(s)}]})}else{var h=i.get(l);if(h){var v=r.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Es(h.data)}],newSeries:[]},r.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Es(s)})}}}}),r}function iV(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Es(t.oldData[s]),groupIdDim:o.dimension})}),R(Yt(e.to),function(o){var s=iV(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Es(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&zU(i,a,n)}function iCe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){R(Yt(n.seriesTransition),function(i){R(Yt(i.to),function(a){for(var o=n.updatedSeries,s=0;s{const o=dt(()=>{var v,d,g;const c=(v=getComputedStyle(t.value))==null?void 0:v.color,f=(d=getComputedStyle(r.value))==null?void 0:d.color,h=(g=getComputedStyle(n.value))==null?void 0:g.color;return{legend:{bottom:0,data:[i("download"),i("upload")],textStyle:{color:c}},grid:{left:60,top:15,right:10,bottom:25},xAxis:{type:"category",axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1}},yAxis:{type:"value",splitNumber:4,max:m=>Math.max(m.max,102400),axisLine:{show:!1},axisLabel:{align:"left",padding:[0,0,0,-45],formatter:m=>`${Pr(m,{maximumFractionDigits:1})}/s`,color:c},splitLine:{show:!1}},animation:!1,series:[{name:i("upload"),data:hv.value,symbol:"none",emphasis:{disabled:!0},type:"line",color:h,smooth:!0},{name:i("download"),data:fv.value,symbol:"none",emphasis:{disabled:!0},type:"line",color:f,smooth:!0}]}}),s=Jce(a.value);s.setOption(o.value),hr(o,()=>{s.setOption(o.value)});const{width:l}=qJ(a),u=Cf.debounce(()=>{s.resize()},100);hr(()=>l.value,()=>{u()})}),(o,s)=>(he(),Te(wt,null,[se("div",{ref_key:"chart",ref:a,class:"card h-28 w-full bg-base-100 p-0 shadow-lg"},null,512),se("span",{class:"hidden text-base-content",ref_key:"text",ref:t},null,512),se("span",{class:"hidden text-primary",ref_key:"primaryText",ref:r},null,512),se("span",{class:"hidden text-info",ref_key:"secondaryText",ref:n},null,512)],64))}}),oCe="modulepreload",sCe=function(e,t){return new URL(e,t).href},aV={},lCe=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(r.map(u=>{if(u=sCe(u,n),u in aV)return;aV[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!n)for(let d=o.length-1;d>=0;d--){const g=o[d];if(g.href===u&&(!c||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const v=document.createElement("link");if(v.rel=c?"stylesheet":oCe,c||(v.as="script"),v.crossOrigin="",v.href=u,l&&v.setAttribute("nonce",l),document.head.appendChild(v),c)return new Promise((d,g)=>{v.addEventListener("load",d),v.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})},uCe=Qt({props:{conn:Object},name:"ConnectionCard",setup(e,{emit:t}){return()=>{const r=ze("span",{class:"flex-1"},null),n=ze("span",{class:"w-80 grow break-all text-sm tracking-tight text-primary/80 sm:text-base"},[e.conn.metadata.host||e.conn.metadata.destinationIP,ze("span",{class:"hidden sm:inline"},[Ir(":"),e.conn.metadata.destinationPort])]),i=ze("div",{class:"badge flex bg-base-200 px-1 text-sm text-base-content"},[ze(ine,{class:"h-4 w-3"},null),ze("div",{class:"hidden w-16 text-right sm:inline"},[Pr(e.conn.download),Ir(" |")," "]),ze("div",{class:"w-20 text-right"},[Pr(e.conn.downloadSpeed),Ir("/s")])]),a=ze("div",{class:"badge hidden bg-base-200 px-1 text-sm text-base-content 2xl:flex"},[ze(J2,{class:"h-4 w-3"},null),ze("div",{class:"w-16 text-right"},[Pr(e.conn.upload),Ir(" | ")]),ze("div",{class:"w-20 text-right"},[Pr(e.conn.uploadSpeed),Ir("/s")])]),o=ze("div",{class:"badge hidden bg-base-200 px-1 text-sm text-base-content lg:flex"},[ze(J2,{class:"h-4 w-3"},null),ze("div",{class:"w-16 text-right"},[Pr(e.conn.upload),Ir(" | ")]),ze("div",{class:"w-20 text-right"},[Pr(e.conn.uploadSpeed),Ir("/s")])]),s=ze("div",{class:"flex w-12 gap-1"},[ze("button",{class:"btn btn-circle btn-xs",onClick:()=>t("info",e.conn)},[ze(X3,{class:"h-4 w-4"},null)]),ze("button",{onClick:()=>t_(e.conn.id)},[ze(AA,{class:"h-4 w-4"},null)])]),l=ze("span",{class:"inline w-56 text-sm"},[[...e.conn.chains].reverse().join("->")]),u=ze("span",{class:"hidden text-sm tracking-tight xl:inline"},[e.conn.rule]),c=ze("span",{class:"hidden min-w-48 px-2 text-sm 2xl:inline"},[e.conn.metadata.processPath]),f=ze("span",{class:Qr("inline whitespace-nowrap text-right text-sm tracking-tight",Au.value===Tu.ZH_CN?"w-20":"w-32")},[i_(e.conn.start)]),h=ze("span",{class:"hidden w-36 text-sm lg:inline"},[e.conn.metadata.type,Ir(" | "),e.conn.metadata.network]),v=ze("span",{class:"hidden w-36 text-sm md:inline"},[e.conn.metadata.type,Ir(" | "),e.conn.metadata.network]),d=e.conn.metadata.destinationIP||"remote-resolve",g=ze("span",{class:"hidden w-96 truncate text-sm tracking-tight xl:flex"},[ze("span",null,[e.conn.metadata.sourceIP,Ir(":"),e.conn.metadata.sourcePort]),ze("span",null,[Ir("->")]),ze("span",null,[d,Ir(":"),e.conn.metadata.destinationPort])]),m=ze("span",{class:"hidden w-52 truncate text-sm tracking-tight 3xl:flex"},[ze("span",null,[e.conn.metadata.sourceIP]),ze("span",null,[Ir("->")]),ze("span",null,[d])]);return S3.value&&Kee.value?ze("div",{class:"card w-full flex-row items-center justify-between gap-1 rounded-xl bg-base-100 px-2 py-1 shadow-lg"},[n,l,m,v,i,a,f,s]):ze("div",{class:"card w-full gap-[1px] rounded-xl bg-base-100 px-2 py-[1px] shadow-lg"},[ze("div",{class:"flex flex-row items-center gap-1 px-1"},[n,r,c,g,i,o]),ze("div",{class:"flex flex-row items-center gap-1 px-1"},[l,u,r,h,f,s])])}}});/** +`:"
",y=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Ke(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=r.positionDefault,g=rv([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,f),S=new xw;y.marker=S.makeTooltipMarker("item",qu(y.color),v);var w=$E(u.formatTooltip(c,!1,f)),x=g.get("order"),T=g.get("valueFormatter"),b=w.frag,A=b?ZE(T?ce({valueFormatter:T},b):b,S,v,x,a.get("useUTC"),g.get("textStyle")):w.text,M="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,A,y,M,r.offsetX,r.offsetY,r.position,r.target,S)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Ke(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Ee(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=Ze(l),l.content=ai(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var v=r.positionDefault,d=rv(f,this._tooltipModel,v?{position:v}:null),g=d.get("content"),m=Math.random()+"",y=new xw;this._showOrMove(d,function(){var S=Ze(d.get("formatterParams")||{});this._showTooltipContent(d,g,S,m,r.offsetX,r.offsetY,r.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),g=d.color;if(h)if(Ee(h)){var m=r.ecModel.get("useUTC"),y=ge(i)?i[0]:i,S=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,S&&(v=A_(y.axisValue,v,m)),v=jG(v,i,!0)}else if($e(h)){var w=ke(function(x,T){x===this._ticket&&(f.setContent(T,c,r,g,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,v=h(i,a,w)}else v=h;f.setContent(v,c,r,g,l),f.show(r,g),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||ge(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ge(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),$e(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),ge(n))i=Ie(n[0],u),a=Ie(n[1],c);else if(Ye(n)){var g=n;g.width=f[0],g.height=f[1];var m=Hr(g,{width:u,height:c});i=m.x,a=m.y,h=null,v=null}else if(Ee(n)&&l){var y=ywe(n,d,f,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=gwe(i,a,o,u,c,h?null:20,v?null:20);i=y[0],a=y[1]}if(h&&(i-=n5(h)?f[0]/2:h==="right"?f[0]:0),v&&(a-=n5(v)?f[1]/2:v==="bottom"?f[1]:0),vU(r)){var y=mwe(i,a,o,u,c);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&R(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&R(u,function(h,v){var d=f[v]||{},g=h.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&g.length===m.length,o&&R(g,function(y,S){var w=m[S];o=o&&y.seriesIndex===w.seriesIndex&&y.dataIndex===w.dataIndex}),a&&R(h.seriesDataIndices,function(y){var S=y.seriesIndex,w=n[S],x=a[S];w&&x&&x.data!==w.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){gt.node||!n.getDom()||(Md(this,"_updatePosition"),this._tooltipContent.dispose(),vT("itemTooltip",n))},t.type="tooltip",t}(mr);function rv(e,t,r){var n=t.ecModel,i;r?(i=new $t(r,n,n),i=new $t(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof $t&&(o=o.get("tooltip",!0)),Ee(o)&&(o={formatter:o}),o&&(i=new $t(o,i,n)))}return i}function r5(e,t){return e.dispatchAction||ke(t.dispatchAction,t)}function gwe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function mwe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function ywe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function n5(e){return e==="center"||e==="middle"}function _we(e,t,r){var n=WA(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=np(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Ke(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function Swe(e){vt(xp),e.registerComponentModel(rwe),e.registerComponentView(pwe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Er),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Er)}var wwe=["rect","polygon","keep","clear"];function xwe(e,t){var r=Yt(e?e.brush:[]);if(r.length){var n=[];R(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;ge(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),bwe(s),t&&!s.length&&s.push.apply(s,wwe)}}function bwe(e){var t={};R(e,function(r){t[r]=1}),e.length=0,R(t,function(r,n){e.push(n)})}var i5=R;function a5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function _T(e,t,r){var n={};return i5(t,function(a){var o=n[a]=i();i5(e[a],function(s,l){if(en.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new en(u),l==="opacity"&&(u=Ze(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new en(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function mU(e,t,r){var n;R(r,function(i){t.hasOwnProperty(i)&&a5(t[i])&&(n=!0)}),n&&R(r,function(i){t.hasOwnProperty(i)&&a5(t[i])?e[i]=Ze(t[i]):delete e[i]})}function Cwe(e,t,r,n,i,a){var o={};R(e,function(f){var h=en.prepareVisualTypes(t[f]);o[f]=h});var s;function l(f){return _M(r,s,f)}function u(f,h){B4(r,s,f,h)}r.each(c);function c(f,h){s=f;var v=r.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=n.call(i,f),g=t[d],m=o[d],y=0,S=m.length;yt[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&c5(t)}};function c5(e){return new at(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Rwe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new rD(n.getZr())).on("brush",ke(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){yU(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Ze(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Ze(i),$from:n})},t.type="brush",t}(mr),Ewe="#ddd",kwe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&mU(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:Ewe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Se(r,function(n){return f5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=f5(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(mt);function f5(e,t){return it({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new $t(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var Owe=["rect","polygon","lineX","lineY","keep","clear"],Nwe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,R(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return R(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:Owe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(ji);function Fwe(e){e.registerComponentView(Rwe),e.registerComponentModel(kwe),e.registerPreprocessor(xwe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Mwe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Er),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Er),jc("brush",Nwe)}var Vwe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(mt),Bwe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=et(r.get("textBaseline"),r.get("textVerticalAlign")),c=new It({style:lr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=r.get("subtext"),v=new It({style:lr(s,{text:h,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),g=r.get("sublink"),m=r.get("triggerEvent",!0);c.silent=!d&&!m,v.silent=!g&&!m,d&&c.on("click",function(){r0(d,"_"+r.get("target"))}),g&&v.on("click",function(){r0(g,"_"+r.get("subtarget"))}),Ke(c).eventData=Ke(v).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),h&&a.add(v);var y=a.getBoundingRect(),S=r.getBoxLayoutParams();S.width=y.width,S.height=y.height;var w=Hr(S,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?w.x+=w.width:l==="center"&&(w.x+=w.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?w.y+=w.height:u==="middle"&&(w.y+=w.height/2),u=u||"top"),a.x=w.x,a.y=w.y,a.markRedraw();var x={align:l,verticalAlign:u};c.setStyle(x),v.setStyle(x),y=a.getBoundingRect();var T=w.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var A=new Ct({shape:{x:y.x-T[3],y:y.y-T[0],width:y.width+T[1]+T[3],height:y.height+T[0]+T[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(A)}},t.type="title",t}(mr);function zwe(e){e.registerComponentModel(Vwe),e.registerComponentView(Bwe)}var h5=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],R(n,function(u,c){var f=$r(Kf(u),""),h;Ye(u)?(h=Ze(u),h.value=c):h=c,o.push(h),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Wn([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(mt),_U=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=gl(h5.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(h5);Gr(_U,E_.prototype);var Gwe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(mr),$we=function(e){j(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Ia),zx=Math.PI,v5=Tt(),Hwe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return rn("nameValue",{noName:!0,value:c})},R(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=Uwe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:zx/2},f=a==="vertical"?o.height:o.width,h=r.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,g=v?h.get("itemGap"):0,m=d+g,y=r.get(["label","rotate"])||0;y=y*zx/180;var S,w,x,T=h.get("position",!0),b=v&&h.get("showPlayBtn",!0),A=v&&h.get("showPrevBtn",!0),M=v&&h.get("showNextBtn",!0),D=0,L=f;T==="left"||T==="bottom"?(b&&(S=[0,0],D+=m),A&&(w=[D,0],D+=m),M&&(x=[L-d,0],L-=m)):(b&&(S=[L-d,0],L-=m),A&&(w=[0,0],D+=m),M&&(x=[L-d,0],L-=m));var P=[D,L];return r.get("inverse")&&P.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:y,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:S,prevBtnPosition:w,nextBtnPosition:x,axisExtent:P,controlSize:d,controlGap:g}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Mi(),l=o.x,u=o.y+o.height;ao(s,s,[-l,-u]),ec(s,s,-zx/2),ao(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=S(o),f=S(i.getBoundingRect()),h=S(a.getBoundingRect()),v=[i.x,i.y],d=[a.x,a.y];d[0]=v[0]=c[0][0];var g=r.labelPosOpt;if(g==null||Ee(g)){var m=g==="+"?0:1;w(v,f,c,1,m),w(d,h,c,1,1-m)}else{var m=g>=0?0:1;w(v,f,c,1,m),d[1]=v[1]+g}i.setPosition(v),a.setPosition(d),i.rotation=a.rotation=r.rotation,y(i),y(a);function y(x){x.originX=c[0][0]-x.x,x.originY=c[1][0]-x.y}function S(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function w(x,T,b,A,M){x[A]+=b[A][M]-T[A][M]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=Wwe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new $we("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new qe;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new jr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:ce({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new jr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:We({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],R(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),h=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),d=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:ke(o._changeTimeline,o,u.value)},m=d5(f,h,n,g);m.ensureState("emphasis").style=v.getItemStyle(),m.ensureState("progress").style=d.getItemStyle(),Pu(m);var y=Ke(m);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],R(u,function(c){var f=c.tickValue,h=l.getItemModel(f),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),g=h.getModel(["progress","label"]),m=i.dataToCoord(c.tickValue),y=new It({x:m,y:0,rotation:r.labelRotation-r.rotation,onclick:ke(o._changeTimeline,o,f),silent:!1,style:lr(v,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=lr(d),y.ensureState("progress").style=lr(g),n.add(y),Pu(y),v5(y).dataIndex=f,o._tickLabels.push(y)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);h(r.nextBtnPosition,"next",ke(this._changeTimeline,this,f?"-":"+")),h(r.prevBtnPosition,"prev",ke(this._changeTimeline,this,f?"+":"-")),h(r.playPosition,c?"stop":"play",ke(this._handlePlayClick,this,!c),!0);function h(v,d,g,m){if(v){var y=Ca(et(a.get(["controlStyle",d+"BtnSize"]),o),o),S=[0,-y/2,y,y],w=Ywe(a,d+"Icon",S,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});w.ensureState("emphasis").style=u,n.add(w),Pu(w)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ke(u._handlePointerDrag,u),f.ondragend=ke(u._handlePointerDragend,u),p5(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){p5(f,u._progressLine,s,i,a)}};this._currentPointer=d5(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=Qi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(h)),[o,f]}var Gx={min:tt(xm,"min"),max:tt(xm,"max"),average:tt(xm,"average"),median:tt(xm,"median")};function Gd(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!Jwe(t)&&!ge(t.coord)&&ge(i)){var a=SU(t,r,n,e);if(t=Ze(t),t.type&&Gx[t.type]&&a.baseAxis&&a.valueAxis){var o=ht(i,a.baseAxis.dim),s=ht(i,a.valueAxis.dim),l=Gx[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!ge(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)Gx[u[c]]&&(u[c]=PD(r,r.mapDimension(i[c]),u[c]));return t}}function SU(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(Qwe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function Qwe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function $d(e,t){return e&&e.containData&&t.coord&&!wT(t)?e.containData(t.coord):!0}function exe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!wT(t)&&!wT(r)?e.containZone(t.coord,r.coord):!0}function wU(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Js(o,t[a])}:function(r,n,i,a){return Js(r.value,t[a])}}function PD(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var $x=Tt(),RD=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=Ne()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){$x(s).keep=!1}),n.eachSeries(function(s){var l=ts.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!$x(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){$x(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;R(r,function(a){var o=ts.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?vG(l):KA(l))})}})},t.type="marker",t}(mr);function m5(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=Ie(a.get("x"),r.getWidth()),l=Ie(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var txe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=ts.getMarkerModelFromSeries(a,"markPoint");o&&(m5(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new pp),f=rxe(o,r,n);n.setData(f),m5(n.getData(),r,a),f.each(function(h){var v=f.getItemModel(h),d=v.getShallow("symbol"),g=v.getShallow("symbolSize"),m=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),S=v.getShallow("symbolKeepAspect");if($e(d)||$e(g)||$e(m)||$e(y)){var w=n.getRawValue(h),x=n.getDataParams(h);$e(d)&&(d=d(w,x)),$e(g)&&(g=g(w,x)),$e(m)&&(m=m(w,x)),$e(y)&&(y=y(w,x))}var T=v.getModel("itemStyle").getItemStyle(),b=fp(l,"color");T.fill||(T.fill=b),f.setItemVisual(h,{symbol:d,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:S,style:T})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(v){Ke(v).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(RD);function rxe(e,t,r){var n;e?n=Se(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return ce(ce({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Wn(n,r),a=Se(r.get("data"),tt(Gd,t));e&&(a=Wt(a,tt($d,e)));var o=wU(!!e,n);return i.initData(a,null,o),i}function nxe(e){e.registerComponentModel(Kwe),e.registerComponentView(txe),e.registerPreprocessor(function(t){LD(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var ixe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ts),bm=Tt(),axe=function(e,t,r,n){var i=e.getData(),a;if(ge(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=on(n.yAxis,n.xAxis);else{var u=SU(n,i,t,e);s=u.valueAxis;var c=d$(i,u.valueDataDim);l=PD(i,c,o)}var f=s.dim==="x"?0:1,h=1-f,v=Ze(n),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var g=r.get("precision");g>=0&&Pt(l)&&(l=+l.toFixed(Math.min(g,20))),v.coord[f]=d.coord[f]=l,a=[v,d,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var m=[Gd(e,a[0]),Gd(e,a[1]),ce({},a[2])];return m[2].type=m[2].type||null,it(m[2],m[0]),it(m[2],m[1]),m};function M0(e){return!isNaN(e)&&!isFinite(e)}function y5(e,t,r,n){var i=1-e,a=n.dimensions[e];return M0(t[i])&&M0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function oxe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(y5(1,r,n,e)||y5(0,r,n,e)))return!0}return $d(e,t[0])&&$d(e,t[1])}function Hx(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=Ie(o.get("x"),i.getWidth()),u=Ie(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),h=e.get(c[1],t);s=a.dataToPoint([f,h])}if(ic(a,"cartesian2d")){var v=a.getAxis("x"),d=a.getAxis("y"),c=a.dimensions;M0(e.get(c[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[r?0:1]):M0(e.get(c[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var sxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=ts.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=bm(o).from,u=bm(o).to;l.each(function(c){Hx(l,c,!0,a,i),Hx(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new tD);this.group.add(c.group);var f=lxe(o,r,n),h=f.from,v=f.to,d=f.line;bm(n).from=h,bm(n).to=v,n.setData(d);var g=n.get("symbol"),m=n.get("symbolSize"),y=n.get("symbolRotate"),S=n.get("symbolOffset");ge(g)||(g=[g,g]),ge(m)||(m=[m,m]),ge(y)||(y=[y,y]),ge(S)||(S=[S,S]),f.from.each(function(x){w(h,x,!0),w(v,x,!1)}),d.each(function(x){var T=d.getItemModel(x).getModel("lineStyle").getLineStyle();d.setItemLayout(x,[h.getItemLayout(x),v.getItemLayout(x)]),T.stroke==null&&(T.stroke=h.getItemVisual(x,"style").fill),d.setItemVisual(x,{fromSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(x,"symbolOffset"),fromSymbolRotate:h.getItemVisual(x,"symbolRotate"),fromSymbolSize:h.getItemVisual(x,"symbolSize"),fromSymbol:h.getItemVisual(x,"symbol"),toSymbolKeepAspect:v.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(x,"symbolOffset"),toSymbolRotate:v.getItemVisual(x,"symbolRotate"),toSymbolSize:v.getItemVisual(x,"symbolSize"),toSymbol:v.getItemVisual(x,"symbol"),style:T})}),c.updateData(d),f.line.eachItemGraphicEl(function(x){Ke(x).dataModel=n,x.traverse(function(T){Ke(T).dataModel=n})});function w(x,T,b){var A=x.getItemModel(T);Hx(x,T,b,r,a);var M=A.getModel("itemStyle").getItemStyle();M.fill==null&&(M.fill=fp(l,"color")),x.setItemVisual(T,{symbolKeepAspect:A.get("symbolKeepAspect"),symbolOffset:et(A.get("symbolOffset",!0),S[b?0:1]),symbolRotate:et(A.get("symbolRotate",!0),y[b?0:1]),symbolSize:et(A.get("symbolSize"),m[b?0:1]),symbol:et(A.get("symbol",!0),g[b?0:1]),style:M})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(RD);function lxe(e,t,r){var n;e?n=Se(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return ce(ce({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Wn(n,r),a=new Wn(n,r),o=new Wn([],r),s=Se(r.get("data"),tt(axe,t,e,r));e&&(s=Wt(s,tt(oxe,e)));var l=wU(!!e,n);return i.initData(Se(s,function(u){return u[0]}),null,l),a.initData(Se(s,function(u){return u[1]}),null,l),o.initData(Se(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function uxe(e){e.registerComponentModel(ixe),e.registerComponentView(sxe),e.registerPreprocessor(function(t){LD(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var cxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ts),Cm=Tt(),fxe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Gd(e,i),s=Gd(e,a),l=o.coord,u=s.coord;l[0]=on(l[0],-1/0),l[1]=on(l[1],-1/0),u[0]=on(u[0],1/0),u[1]=on(u[1],1/0);var c=EA([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function D0(e){return!isNaN(e)&&!isFinite(e)}function _5(e,t,r,n){var i=1-e;return D0(t[i])&&D0(r[i])}function hxe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return ic(e,"cartesian2d")?r&&n&&(_5(1,r,n)||_5(0,r,n))?!0:exe(e,i,a):$d(e,i)||$d(e,a)}function S5(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=Ie(o.get(r[0]),i.getWidth()),u=Ie(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),h=a.clampData(c),v=a.clampData(f),d=[];r[0]==="x0"?d[0]=h[0]>v[0]?f[0]:c[0]:d[0]=h[0]>v[0]?c[0]:f[0],r[1]==="y0"?d[1]=h[1]>v[1]?f[1]:c[1]:d[1]=h[1]>v[1]?c[1]:f[1],s=n.getMarkerPosition(d,r,!0)}else{var g=e.get(r[0],t),m=e.get(r[1],t),y=[g,m];a.clampData&&a.clampData(y,y),s=a.dataToPoint(y,!0)}if(ic(a,"cartesian2d")){var S=a.getAxis("x"),w=a.getAxis("y"),g=e.get(r[0],t),m=e.get(r[1],t);D0(g)?s[0]=S.toGlobalCoord(S.getExtent()[r[0]==="x0"?0:1]):D0(m)&&(s[1]=w.toGlobalCoord(w.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var w5=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],vxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=ts.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Se(w5,function(f){return S5(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new qe});this.group.add(c.group),this.markKeep(c);var f=dxe(o,r,n);n.setData(f),f.each(function(h){var v=Se(w5,function(M){return S5(f,h,M,r,a)}),d=o.getAxis("x").scale,g=o.getAxis("y").scale,m=d.getExtent(),y=g.getExtent(),S=[d.parse(f.get("x0",h)),d.parse(f.get("x1",h))],w=[g.parse(f.get("y0",h)),g.parse(f.get("y1",h))];Qi(S),Qi(w);var x=!(m[0]>S[1]||m[1]w[1]||y[1]=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(mt),zc=tt,bT=R,Tm=qe,xU=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Tm),this.group.add(this._selectorGroup=new Tm),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),v=Hr(c,f,h),d=this.layoutInner(r,o,v,a,l,u),g=Hr(We({width:d.width,height:d.height},c),f,h);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=cU(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=Ne(),f=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),bT(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var m=new Tm;m.newline=!0,u.add(m);return}var y=i.getSeriesByName(g)[0];if(!c.get(g))if(y){var S=y.getData(),w=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),T=S.getVisual("style"),b=this._createItem(y,g,d,v,n,r,w,T,x,f,a);b.on("click",zc(x5,g,null,a,h)).on("mouseover",zc(CT,y.name,null,a,h)).on("mouseout",zc(TT,y.name,null,a,h)),i.ssr&&b.eachChild(function(A){var M=Ke(A);M.seriesIndex=y.seriesIndex,M.dataIndex=d,M.ssrType="legend"}),c.set(g,!0)}else i.eachRawSeries(function(A){if(!c.get(g)&&A.legendVisualProvider){var M=A.legendVisualProvider;if(!M.containName(g))return;var D=M.indexOfName(g),L=M.getItemVisual(D,"style"),P=M.getItemVisual(D,"legendIcon"),E=Di(L.fill);E&&E[3]===0&&(E[3]=.2,L=ce(ce({},L),{fill:Uo(E,"rgba")}));var F=this._createItem(A,g,d,v,n,r,{},L,P,f,a);F.on("click",zc(x5,null,g,a,h)).on("mouseover",zc(CT,null,g,a,h)).on("mouseout",zc(TT,null,g,a,h)),i.ssr&&F.eachChild(function(O){var N=Ke(O);N.seriesIndex=A.seriesIndex,N.dataIndex=d,N.ssrType="legend"}),c.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();bT(r,function(u){var c=u.type,f=new It({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);_n(f,{normal:h,emphasis:v},{defaultText:u.title}),Pu(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,h){var v=r.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(n),y=a.get("symbolRotate"),S=a.get("symbolKeepAspect"),w=a.get("icon");c=w||c||"roundRect";var x=mxe(c,a,l,u,v,m,h),T=new Tm,b=a.getModel("textStyle");if($e(r.getLegendIcon)&&(!w||w==="inherit"))T.add(r.getLegendIcon({itemWidth:d,itemHeight:g,icon:c,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:S}));else{var A=w==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;T.add(yxe({itemWidth:d,itemHeight:g,icon:c,iconRotate:A,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:S}))}var M=s==="left"?d+5:-5,D=s,L=o.get("formatter"),P=n;Ee(L)&&L?P=L.replace("{name}",n??""):$e(L)&&(P=L(n));var E=m?b.getTextColor():a.get("inactiveColor");T.add(new It({style:lr(b,{text:P,x:M,y:g/2,fill:E,align:D,verticalAlign:"middle"},{inheritColor:E})}));var F=new Ct({shape:T.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&eh({el:F,componentModel:o,itemName:n,itemTooltipOption:O.option}),T.add(F),T.eachChild(function(N){N.silent=!0}),F.silent=!f,this.getContentGroup().add(T),Pu(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Eu(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Eu("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),g=r.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",S=g===0?"y":"x";s==="end"?v[g]+=c[m]+d:f[g]+=h[m]+d,v[1-g]+=c[y]/2-h[y]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var w={x:0,y:0};return w[m]=c[m]+d+h[m],w[y]=Math.max(c[y],h[y]),w[S]=Math.min(0,h[S]+v[1-g]),w}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(mr);function mxe(e,t,r,n,i,a,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),bT(m,function(S,w){m[w]==="inherit"&&(m[w]=y[w])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:kf(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function yxe(e){var t=e.icon||"roundRect",r=zr(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function x5(e,t,r,n){TT(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),CT(e,t,r,n)}function bU(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],m=[-v.x,-v.y];n||(m[a]=c[u]);var y=[0,0],S=[-d.x,-d.y],w=et(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var x=r.get("pageButtonPosition",!0);x==="end"?S[a]+=i[o]-d[o]:y[a]+=d[o]+w}S[1-a]+=v[s]/2-d[s]/2,c.setPosition(m),f.setPosition(y),h.setPosition(S);var T={x:0,y:0};if(T[o]=g?i[o]:v[o],T[s]=Math.max(v[s],d[s]),T[l]=Math.min(0,d[l]+S[1-a]),f.__rectSize=i[o],g){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-w,0),b[s]=T[s],f.setClipPath(new Ct({shape:b})),f.__rectSize=b[o]}else h.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(r);return A.pageIndex!=null&&kt(c,{x:A.contentPosition[0],y:A.contentPosition[1]},g?r:null),this._updatePageInfoView(r,A),T},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;R(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,v=i.childOfName(c);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",Ee(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Wx[o],l=Ux[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var g=x(f);d.contentPosition[o]=-g.s;for(var m=u+1,y=g,S=g,w=null;m<=h;++m)w=x(c[m]),(!w&&S.e>y.s+a||w&&!T(w,y.s))&&(S.i>y.i?y=S:y=w,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),S=w;for(var m=u-1,y=g,S=g,w=null;m>=-1;--m)w=x(c[m]),(!w||!T(S,w.s))&&y.i=A&&b.s<=A+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(xU);function bxe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function Cxe(e){vt(CU),e.registerComponentModel(wxe),e.registerComponentView(xxe),bxe(e)}function Txe(e){vt(CU),vt(Cxe)}var Axe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=gl(zd.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(zd),ED=Tt();function Mxe(e,t,r){ED(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function Dxe(e,t){for(var r=ED(e).coordSysRecordMap,n=r.keys(),i=0;in[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function Exe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=ED(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=Ne());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=sU(a);R(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,Ixe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Ne());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){TU(i,a);return}var c=Rxe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),sh(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var kxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),Mxe(i,r,{pan:ke(Yx.pan,this),zoom:ke(Yx.zoom,this),scrollMove:ke(Yx.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Dxe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(CD),Yx={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=Xx[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(oc(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:T5(function(e,t,r,n,i,a){var o=Xx[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:T5(function(e,t,r,n,i,a){var o=Xx[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function T5(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(oc(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Xx={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function AU(e){TD(e),e.registerComponentModel(Axe),e.registerComponentView(kxe),Exe(e)}var Oxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=gl(zd.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(zd),av=Ct,A5=7,Nxe=1,Zx=30,Fxe=7,ov="horizontal",M5="vertical",Vxe=5,Bxe=["line","bar","candlestick","scatter"],zxe={easing:"cubicOut",duration:100,delay:0},Gxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ke(this._onBrush,this),this._onBrushEnd=ke(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),sh(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Md(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new qe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?Fxe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===ov?{right:s.width-o.x-o.width,top:s.height-Zx-A5-a,width:o.width,height:Zx}:{right:A5,top:o.y,width:Zx,height:o.height},u=ih(r.option);R(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===M5&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===ov&&!o?{scaleY:l?1:-1,scaleX:1}:i===ov&&o?{scaleY:l?1:-1,scaleX:-1}:i===M5&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new av({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new av({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ke(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var v=[0,n[1]],d=[0,n[0]],g=[[n[0],0],[0,0]],m=[],y=d[1]/(o.count()-1),S=0,w=Math.round(o.count()/n[0]),x;o.each([l],function(D,L){if(w>0&&L%w){S+=y;return}var P=D==null||isNaN(D)||D==="",E=P?0:Ht(D,f,v,!0);P&&!x&&L?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&x&&(g.push([S,0]),m.push([S,0])),g.push([S,E]),m.push([S,E]),S+=y,x=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var T=this.dataZoomModel;function b(D){var L=T.getModel(D?"selectedDataBackground":"dataBackground"),P=new qe,E=new jn({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),F=new Kn({shape:{points:c},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(E),P.add(F),P}for(var A=0;A<3;A++){var M=b(A===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();R(l,function(u){if(!i&&!(n!==!0&&ht(Bxe,u.get("type"))<0)){var c=a.getComponent(Xs(o),s).axis,f=$xe(o),h,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(h=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),h=n.filler=new av({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new av({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Nxe,fill:"rgba(0,0,0,0)"}})),R([0,1],function(w){var x=l.get("handleIcon");!a0[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var T=zr(x,-1,0,2,2,null,!0);T.attr({cursor:D5(this._orient),draggable:!0,drift:ke(this._onDragMove,this,w),ondragend:ke(this._onDragEnd,this),onmouseover:ke(this._showDataInfo,this,!0),onmouseout:ke(this._showDataInfo,this,!1),z2:5});var b=T.getBoundingRect(),A=l.get("handleSize");this._handleHeight=Ie(A,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,T.setStyle(l.getModel("handleStyle").getItemStyle()),T.style.strokeNoScale=!0,T.rectHover=!0,T.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Pu(T);var M=l.get("handleColor");M!=null&&(T.style.fill=M),o.add(i[w]=T);var D=l.getModel("textStyle");r.add(a[w]=new It({silent:!0,invisible:!0,style:lr(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var v=h;if(f){var d=Ie(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new Ct({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),m=d*.8,y=n.moveHandleIcon=zr(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new Ct({invisible:!0,shape:{y:s[1]-S,height:d+S}}),v.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:D5(this._orient),drift:ke(this._onDragMove,this,"all"),ondragstart:ke(this._showDataInfo,this,!0),ondragend:ke(this._onDragEnd,this),onmouseover:ke(this._showDataInfo,this,!0),onmouseout:ke(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Ht(r[0],[0,100],n,!0),Ht(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];oc(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?Ht(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ht(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Qi([Ht(a[0],o,l,!0),Ht(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=Qi(i.slice()),o=this._size;R([0,1],function(v){var d=n.handles[v],g=this._handleHeight;d.attr({scaleX:g/2,scaleY:g/2,x:i[v]+(v?-1:1),y:o[1]/2-g/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;cn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new rt(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Qi([Ht(i.x,o,s,!0),Ht(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(Zo(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new av({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?zxe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=sU(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(CD);function $xe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function D5(e){return e==="vertical"?"ns-resize":"ew-resize"}function MU(e){e.registerComponentModel(Oxe),e.registerComponentView(Gxe),TD(e)}function Hxe(e){vt(AU),vt(MU)}var DU={get:function(e,t,r){var n=Ze((Wxe[e]||{})[t]);return r&&ge(n)?n[n.length-1]:n}},Wxe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},I5=en.mapVisual,Uxe=en.eachVisual,Yxe=ge,L5=R,Xxe=Qi,Zxe=Ht,I0=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&mU(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ke(r,this),this.controllerVisuals=_T(this.option.controller,n,r),this.targetVisuals=_T(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Yt(r),n},t.prototype.eachTargetSeries=function(r,n){R(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],ge(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(Ee(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if($e(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=Xxe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});it(a,i),it(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){Yxe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,h,v){var d=f[h],g=f[v];d&&!g&&(g=f[v]={},L5(d,function(m,y){if(en.isValidType(y)){var S=DU.get(y,"inactive",s);S!=null&&(g[y]=S,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";L5(this.stateList,function(y){var S=this.itemSize,w=f[y];w||(w=f[y]={color:s?d:[d]}),w.symbol==null&&(w.symbol=h&&Ze(h)||(s?m:[m])),w.symbolSize==null&&(w.symbolSize=v&&Ze(v)||(s?S[0]:[S[0],S[0]])),w.symbol=I5(w.symbol,function(b){return b==="none"?m:b});var x=w.symbolSize;if(x!=null){var T=-1/0;Uxe(x,function(b){b>T&&(T=b)}),w.symbolSize=I5(x,function(b){return Zxe(b,[0,T],[0,S[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(mt),P5=[20,140],qxe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=P5[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=P5[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):ge(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=Qi((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=R5(this,"outOfRange",this.getExtent()),i=R5(this,"inRange",this.option.range.slice()),a=[];function o(v,d){a.push({value:v,color:r(v,d)})}for(var s=0,l=0,u=i.length,c=n.length;lr[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new qe(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();jxe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var h=$a(r[c],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=v/l[0],f.x=l[0]-v/2;var d=xa(i.handleLabelPoints[c],Ru(f,this.group));s[c].setStyle({x:d[0],y:d[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(r,"color",h),d=this.getControllerVisual(r,"symbolSize"),g=$a(r,s,u,!0),m=l[0]-d/2,y={x:f.x,y:f.y};f.y=g,f.x=m;var S=xa(c.indicatorLabelPoint,Ru(f,this.group)),w=c.indicatorLabel;w.attr("invisible",!1);var x=this._applyTransform("left",c.mainGroup),T=this._orient,b=T==="horizontal";w.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?x:"middle",align:b?"center":x});var A={x:m,y:g,style:{fill:v}},M={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var D={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(A,D),w.animateTo(M,D)}else f.attr(A),w.attr(M);this._firstShowIndicator=!1;var L=this._shapes.handleLabels;if(L)for(var P=0;Po[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(n||N5(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var d=soe(h,v);this._dispatchHighDown("downplay",_y(d[0],i)),this._dispatchHighDown("highlight",_y(d[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(yu(r.target,function(l){var u=Ke(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function ibe(e,t,r,n){for(var i=t.targetVisuals[n],a=en.prepareVisualTypes(i),o={color:fp(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(tbe,rbe),R(nbe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(abe))}function RU(e){e.registerComponentModel(qxe),e.registerComponentView(Qxe),PU(e)}var obe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],sbe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Ze(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Se(this._pieceList,function(l){return l=Ze(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=en.listVisualTypes(),a=this.isCategory();R(r.pieces,function(s){R(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),R(n,function(s,l){var u=!1;R(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&R(this.stateList,function(c){(r[c]||(r[c]={}))[l]=DU.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,R(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;R(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Ze(r)},t.prototype.getValueState=function(r){var n=en.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=en.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var h=a.getRepresentValue({interval:c});f||(f=a.getValueState(h));var v=r(h,f);c[0]===-1/0?i[0]=v:c[1]===1/0?i[1]=v:n.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return R(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=gl(I0.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(I0),sbe={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function z5(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var lbe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,h=on(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,h,l),R(c.viewPieceList,function(v){var d=v.piece,g=new qe;g.onclick=ke(this._onItemClick,this,d),this._enableHoverLink(g,v.indexInModelPieceList);var m=n.getRepresentValue(d);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(m);g.add(new It({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}r.add(g)},this),f&&this._renderEndsText(r,f[1],u,h,l),Eu(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:_y(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return LU(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new qe,l=this.visualMapModel.textStyleModel;s.add(new It({style:lr(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Se(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(zr(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Ze(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,R(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(IU);function EU(e){e.registerComponentModel(obe),e.registerComponentView(lbe),PU(e)}function ube(e){vt(RU),vt(EU)}var cbe={label:{enabled:!0},decal:{show:!1}},G5=Tt(),fbe={};function hbe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Ze(cbe);it(n.label,e.getLocaleModel().get("aria"),!1),it(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=Ne();e.eachSeries(function(h){if(!h.isColorBySeries()){var v=f.get(h.type);v||(v={},f.set(h.type,v)),G5(h).scope=v}}),e.eachRawSeries(function(h){if(e.isSeriesFiltered(h))return;if($e(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var S=TC(h.ecModel,h.name,fbe,e.getSeriesCount()),w=v.getVisual("decal");v.setVisual("decal",x(w,S))}else{var d=h.getRawData(),g={},m=G5(h).scope;v.each(function(T){var b=v.getRawIndex(T);g[b]=T});var y=d.count();d.each(function(T){var b=g[T],A=d.getName(T)||T+"",M=TC(h.ecModel,A,m,y),D=v.getItemVisual(b,"decal");v.setItemVisual(b,"decal",x(D,M))})}function x(T,b){var A=T?ce(ce({},b),T):b;return A.dirty=!0,A}})}}function a(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=We(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=e.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,g=Math.min(h,d),m;if(!(h<1)){var y=s();if(y){var S=f.get(["general","withTitle"]);m=o(S,{title:y})}else m=f.get(["general","withoutTitle"]);var w=[],x=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(x,{seriesCount:h}),e.eachSeries(function(M,D){if(D1?f.get(["series","multiple",E]):f.get(["series","single",E]),L=o(L,{seriesId:M.seriesIndex,seriesName:M.get("name"),seriesType:l(M.subType)});var F=M.getData();if(F.count()>v){var O=f.get(["data","partialData"]);L+=o(O,{displayCnt:v})}else L+=f.get(["data","allData"]);for(var N=f.get(["data","separator","middle"]),V=f.get(["data","separator","end"]),Y=[],G=0;G":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},pbe=function(){function e(t){var r=this._condVal=Ee(t)?new RegExp(t):Mie(t)?t:null;if(r==null){var n="";Bt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return Ee(r)?this._condVal.test(t):Pt(r)?this._condVal.test(t+""):!1},e}(),gbe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),mbe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[F,O]}function c(F,O,N,V){af(F,N)&&af(O,V)||i.push(F,O,N,V,N,V)}function f(F,O,N,V,Y,G){var Z=Math.abs(O-F),J=Math.tan(Z/4)*4/3,re=OM:P2&&n.push(i),n}function MT(e,t,r,n,i,a,o,s,l,u){if(af(e,r)&&af(t,n)&&af(i,o)&&af(a,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-e,v=s-t,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var g=r-e,m=n-t,y=i-o,S=a-s,w=g*g+m*m,x=y*y+S*S;if(w=0&&M=0){l.push(o,s);return}var D=[],L=[];nl(e,r,i,o,.5,D),nl(t,n,a,s,.5,L),MT(D[0],L[0],D[1],L[1],D[2],L[2],D[3],L[3],l,u),MT(D[4],L[4],D[5],L[5],D[6],L[6],D[7],L[7],l,u)}function Pbe(e,t){var r=AT(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=OU([l,u],c?0:1,t),h=(c?s:u)/f.length,v=0;vi,o=OU([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,h=0;h1?null:new rt(g*l+e,g*u+t)}function kbe(e,t,r){var n=new rt;rt.sub(n,r,t),n.normalize();var i=new rt;rt.sub(i,e,t);var a=i.dot(n);return a}function $c(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function Obe(e,t,r){for(var n=e.length,i=[],a=0;ao?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),Obe(t,u,c)}function L0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);L0(e,a[0],i,n),L0(e,a[1],r-i,n)}return n}function Nbe(e,t){for(var r=[],n=0;n0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function E0(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Se(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=Se(a,function(s,l){return{cp:s,z:Ube(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function VU(e){return Bbe(e.path,e.count)}function DT(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Ybe(e,t,r){var n=[];function i(T){for(var b=0;b=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var Zbe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;j5(e)&&(u=e,c=t),j5(t)&&(u=t,c=e);function f(y,S,w,x,T){var b=y.many,A=y.one;if(b.length===1&&!T){var M=S?b[0]:A,D=S?A:b[0];if(P0(M))f({many:[M],one:D},!0,w,x,!0);else{var L=s?We({delay:s(w,x)},l):l;OD(M,D,L),a(M,D,M,D,L)}}else for(var P=We({dividePath:Zbe[r],individualDelay:s&&function(Y,G,Z,J){return s(Y+w,x)}},l),E=S?Ybe(b,A,P):Xbe(A,b,P),F=E.fromIndividuals,O=E.toIndividuals,N=F.length,V=0;Vt.length,v=u?K5(c,u):K5(h?t:e,[h?e:t]),d=0,g=0;gBU))for(var a=n.getIndices(),o=0;o0&&b.group.traverse(function(M){M instanceof pt&&!M.animators.length&&M.animateFrom({style:{opacity:0}},A)})})}function rV(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function nV(e){return ge(e)?e.sort().join(","):e}function Es(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function tCe(e,t){var r=Ne(),n=Ne(),i=Ne();return R(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=rV(a),c=nV(u);n.set(c,{dataGroupId:s,data:l}),ge(u)&&R(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),R(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=rV(a),u=nV(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Es(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Es(s),data:s}]});else if(ge(l)){var f=[];R(l,function(d){var g=n.get(d);g.data&&f.push({dataGroupId:g.dataGroupId,divide:Es(g.data),data:g.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Es(s)}]})}else{var h=i.get(l);if(h){var v=r.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Es(h.data)}],newSeries:[]},r.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Es(s)})}}}}),r}function iV(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Es(t.oldData[s]),groupIdDim:o.dimension})}),R(Yt(e.to),function(o){var s=iV(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Es(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&zU(i,a,n)}function nCe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){R(Yt(n.seriesTransition),function(i){R(Yt(i.to),function(a){for(var o=n.updatedSeries,s=0;s{const o=dt(()=>{var v,d,g;const c=(v=getComputedStyle(t.value))==null?void 0:v.color,f=(d=getComputedStyle(r.value))==null?void 0:d.color,h=(g=getComputedStyle(n.value))==null?void 0:g.color;return{legend:{bottom:0,data:[i("download"),i("upload")],textStyle:{color:c}},grid:{left:60,top:15,right:10,bottom:25},xAxis:{type:"category",axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1}},yAxis:{type:"value",splitNumber:4,max:m=>Math.max(m.max,102400),axisLine:{show:!1},axisLabel:{align:"left",padding:[0,0,0,-45],formatter:m=>`${Pr(m,{maximumFractionDigits:1})}/s`,color:c},splitLine:{show:!1}},animation:!1,series:[{name:i("upload"),data:hv.value,symbol:"none",emphasis:{disabled:!0},type:"line",color:h,smooth:!0},{name:i("download"),data:fv.value,symbol:"none",emphasis:{disabled:!0},type:"line",color:f,smooth:!0}]}}),s=Kce(a.value);s.setOption(o.value),hr(o,()=>{s.setOption(o.value)});const{width:l}=qJ(a),u=Cf.debounce(()=>{s.resize()},100);hr(()=>l.value,()=>{u()})}),(o,s)=>(he(),Ae(wt,null,[oe("div",{ref_key:"chart",ref:a,class:"card h-28 w-full bg-base-100 p-0 shadow-lg"},null,512),oe("span",{class:"hidden text-base-content",ref_key:"text",ref:t},null,512),oe("span",{class:"hidden text-primary",ref_key:"primaryText",ref:r},null,512),oe("span",{class:"hidden text-info",ref_key:"secondaryText",ref:n},null,512)],64))}}),aCe="modulepreload",oCe=function(e,t){return new URL(e,t).href},aV={},sCe=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(r.map(u=>{if(u=oCe(u,n),u in aV)return;aV[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!n)for(let d=o.length-1;d>=0;d--){const g=o[d];if(g.href===u&&(!c||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const v=document.createElement("link");if(v.rel=c?"stylesheet":aCe,c||(v.as="script"),v.crossOrigin="",v.href=u,l&&v.setAttribute("nonce",l),document.head.appendChild(v),c)return new Promise((d,g)=>{v.addEventListener("load",d),v.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})},lCe=Jt({props:{conn:Object},name:"ConnectionCard",setup(e,{emit:t}){return()=>{const r=ze("span",{class:"flex-1"},null),n=ze("span",{class:"w-80 grow break-all text-sm tracking-tight text-primary/80 sm:text-base"},[e.conn.metadata.host||e.conn.metadata.destinationIP,ze("span",{class:"hidden sm:inline"},[Ir(":"),e.conn.metadata.destinationPort])]),i=ze("div",{class:"badge flex bg-base-200 px-1 text-sm text-base-content"},[ze(ine,{class:"h-4 w-3"},null),ze("div",{class:"hidden w-16 text-right sm:inline"},[Pr(e.conn.download),Ir(" |")," "]),ze("div",{class:"w-20 text-right"},[Pr(e.conn.downloadSpeed),Ir("/s")])]),a=ze("div",{class:"badge hidden bg-base-200 px-1 text-sm text-base-content 2xl:flex"},[ze(J2,{class:"h-4 w-3"},null),ze("div",{class:"w-16 text-right"},[Pr(e.conn.upload),Ir(" | ")]),ze("div",{class:"w-20 text-right"},[Pr(e.conn.uploadSpeed),Ir("/s")])]),o=ze("div",{class:"badge hidden bg-base-200 px-1 text-sm text-base-content lg:flex"},[ze(J2,{class:"h-4 w-3"},null),ze("div",{class:"w-16 text-right"},[Pr(e.conn.upload),Ir(" | ")]),ze("div",{class:"w-20 text-right"},[Pr(e.conn.uploadSpeed),Ir("/s")])]),s=ze("div",{class:"flex w-12 gap-1"},[ze("button",{class:"btn btn-circle btn-xs",onClick:()=>t("info",e.conn)},[ze(X3,{class:"h-4 w-4"},null)]),ze("button",{onClick:()=>t_(e.conn.id)},[ze(AA,{class:"h-4 w-4"},null)])]),l=ze("span",{class:"inline w-56 text-sm"},[[...e.conn.chains].reverse().join("->")]),u=ze("span",{class:"hidden text-sm tracking-tight xl:inline"},[e.conn.rule]),c=ze("span",{class:"hidden min-w-48 px-2 text-sm 2xl:inline"},[e.conn.metadata.processPath]),f=ze("span",{class:Qr("inline whitespace-nowrap text-right text-sm tracking-tight",Au.value===Tu.ZH_CN?"w-20":"w-32")},[i_(e.conn.start)]),h=ze("span",{class:"hidden w-36 text-sm lg:inline"},[e.conn.metadata.type,Ir(" | "),e.conn.metadata.network]),v=ze("span",{class:"hidden w-36 text-sm md:inline"},[e.conn.metadata.type,Ir(" | "),e.conn.metadata.network]),d=e.conn.metadata.destinationIP||"remote-resolve",g=ze("span",{class:"hidden w-96 truncate text-sm tracking-tight xl:flex"},[ze("span",null,[e.conn.metadata.sourceIP,Ir(":"),e.conn.metadata.sourcePort]),ze("span",null,[Ir("->")]),ze("span",null,[d,Ir(":"),e.conn.metadata.destinationPort])]),m=ze("span",{class:"hidden w-52 truncate text-sm tracking-tight 3xl:flex"},[ze("span",null,[e.conn.metadata.sourceIP]),ze("span",null,[Ir("->")]),ze("span",null,[d])]);return S3.value&&Kee.value?ze("div",{class:"card w-full flex-row items-center justify-between gap-1 rounded-xl bg-base-100 px-2 py-1 shadow-lg"},[n,l,m,v,i,a,f,s]):ze("div",{class:"card w-full gap-[1px] rounded-xl bg-base-100 px-2 py-[1px] shadow-lg"},[ze("div",{class:"flex flex-row items-center gap-1 px-1"},[n,r,c,g,i,o]),ze("div",{class:"flex flex-row items-center gap-1 px-1"},[l,u,r,h,f,s])])}}});/** * table-core * * Copyright (c) TanStack @@ -131,10 +131,10 @@ PERFORMANCE OF THIS SOFTWARE. * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Zs(e,t){return typeof e=="function"?e(t):e}function Li(e,t){return r=>{t.setState(n=>({...n,[e]:Zs(r,n[e])}))}}function Nu(e){return e instanceof Function}function cCe(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function GU(e,t){const r=[],n=i=>{i.forEach(a=>{r.push(a);const o=t(a);o!=null&&o.length&&n(o)})};return n(e),r}function ct(e,t,r){let n=[],i;return a=>{let o;r.key&&r.debug&&(o=Date.now());const s=e(a);if(!(s.length!==n.length||s.some((c,f)=>n[f]!==c)))return i;n=s;let u;if(r.key&&r.debug&&(u=Date.now()),i=t(...s),r==null||r.onChange==null||r.onChange(i),r.key&&r.debug&&r!=null&&r.debug()){const c=Math.round((Date.now()-o)*100)/100,f=Math.round((Date.now()-u)*100)/100,h=f/16,v=(d,g)=>{for(d=String(d);d.length{t.setState(n=>({...n,[e]:Zs(r,n[e])}))}}function Nu(e){return e instanceof Function}function uCe(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function GU(e,t){const r=[],n=i=>{i.forEach(a=>{r.push(a);const o=t(a);o!=null&&o.length&&n(o)})};return n(e),r}function ct(e,t,r){let n=[],i;return a=>{let o;r.key&&r.debug&&(o=Date.now());const s=e(a);if(!(s.length!==n.length||s.some((c,f)=>n[f]!==c)))return i;n=s;let u;if(r.key&&r.debug&&(u=Date.now()),i=t(...s),r==null||r.onChange==null||r.onChange(i),r.key&&r.debug&&r!=null&&r.debug()){const c=Math.round((Date.now()-o)*100)/100,f=Math.round((Date.now()-u)*100)/100,h=f/16,v=(d,g)=>{for(d=String(d);d.length{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:n}}function fCe(e,t,r,n){const i=()=>{var o;return(o=a.getValue())!=null?o:e.options.renderFallbackValue},a={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:i,getContext:ct(()=>[e,r,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),ft(e.options,"debugCells"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,r,t,e)},{}),a}function hCe(e,t,r,n){var i,a;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(a=s.id)!=null?a:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=h=>{let v=h;for(const g of l.split(".")){var d;v=(d=v)==null?void 0:d[g]}return v}:c=h=>h[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:ct(()=>[!0],()=>{var h;return[f,...(h=f.columns)==null?void 0:h.flatMap(v=>v.getFlatColumns())]},ft(e.options,"debugColumns")),getLeafColumns:ct(()=>[e._getOrderColumnsFn()],h=>{var v;if((v=f.columns)!=null&&v.length){let d=f.columns.flatMap(g=>g.getLeafColumns());return h(d)}return[f]},ft(e.options,"debugColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(f,e);return f}const Tn="debugHeaders";function oV(e,t,r){var n;let a={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(a),o},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(a,e)}),a}const vCe={createTable:e=>{e.getHeaderGroups=ct(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>{var a,o;const s=(a=n==null?void 0:n.map(f=>r.find(h=>h.id===f)).filter(Boolean))!=null?a:[],l=(o=i==null?void 0:i.map(f=>r.find(h=>h.id===f)).filter(Boolean))!=null?o:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(i!=null&&i.includes(f.id)));return Am(t,[...s,...u,...l],e)},ft(e.options,Tn)),e.getCenterHeaderGroups=ct(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>(r=r.filter(a=>!(n!=null&&n.includes(a.id))&&!(i!=null&&i.includes(a.id))),Am(t,r,e,"center")),ft(e.options,Tn)),e.getLeftHeaderGroups=ct(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var i;const a=(i=n==null?void 0:n.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Am(t,a,e,"left")},ft(e.options,Tn)),e.getRightHeaderGroups=ct(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var i;const a=(i=n==null?void 0:n.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Am(t,a,e,"right")},ft(e.options,Tn)),e.getFooterGroups=ct(()=>[e.getHeaderGroups()],t=>[...t].reverse(),ft(e.options,Tn)),e.getLeftFooterGroups=ct(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),ft(e.options,Tn)),e.getCenterFooterGroups=ct(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),ft(e.options,Tn)),e.getRightFooterGroups=ct(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),ft(e.options,Tn)),e.getFlatHeaders=ct(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),ft(e.options,Tn)),e.getLeftFlatHeaders=ct(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),ft(e.options,Tn)),e.getCenterFlatHeaders=ct(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),ft(e.options,Tn)),e.getRightFlatHeaders=ct(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),ft(e.options,Tn)),e.getCenterLeafHeaders=ct(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),ft(e.options,Tn)),e.getLeftLeafHeaders=ct(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),ft(e.options,Tn)),e.getRightLeafHeaders=ct(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),ft(e.options,Tn)),e.getLeafHeaders=ct(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var i,a,o,s,l,u;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(o=(s=r[0])==null?void 0:s.headers)!=null?o:[],...(l=(u=n[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},ft(e.options,Tn))}};function Am(e,t,r,n){var i,a;let o=0;const s=function(h,v){v===void 0&&(v=1),o=Math.max(o,v),h.filter(d=>d.getIsVisible()).forEach(d=>{var g;(g=d.columns)!=null&&g.length&&s(d.columns,v+1)},0)};s(e);let l=[];const u=(h,v)=>{const d={depth:v,id:[n,`${v}`].filter(Boolean).join("_"),headers:[]},g=[];h.forEach(m=>{const y=[...g].reverse()[0],S=m.column.depth===d.depth;let w,x=!1;if(S&&m.column.parent?w=m.column.parent:(w=m.column,x=!0),y&&(y==null?void 0:y.column)===w)y.subHeaders.push(m);else{const T=oV(r,w,{id:[n,v,w.id,m==null?void 0:m.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${g.filter(b=>b.column===w).length}`:void 0,depth:v,index:g.length});T.subHeaders.push(m),g.push(T)}d.headers.push(m),m.headerGroup=d}),l.push(d),v>0&&u(g,v-1)},c=t.map((h,v)=>oV(r,h,{depth:o,index:v}));u(c,o-1),l.reverse();const f=h=>h.filter(d=>d.column.getIsVisible()).map(d=>{let g=0,m=0,y=[0];d.subHeaders&&d.subHeaders.length?(y=[],f(d.subHeaders).forEach(w=>{let{colSpan:x,rowSpan:T}=w;g+=x,y.push(T)})):g=1;const S=Math.min(...y);return m=m+S,d.colSpan=g,d.rowSpan=m,{colSpan:g,rowSpan:m}});return f((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const $U=(e,t,r,n,i,a,o)=>{let s={id:t,index:n,original:r,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,n),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,n),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>GU(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:ct(()=>[e.getAllLeafColumns()],l=>l.map(u=>fCe(e,s,u,u.id)),ft(e.options,"debugRows")),_getAllCellsByColumnId:ct(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),ft(e.options,"debugRows"))};for(let l=0;l{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},HU=(e,t,r)=>{var n,i;const a=r==null||(n=r.toString())==null?void 0:n.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(a))};HU.autoRemove=e=>Ca(e);const WU=(e,t,r)=>{var n;return!!(!((n=e.getValue(t))==null||(n=n.toString())==null)&&n.includes(r))};WU.autoRemove=e=>Ca(e);const UU=(e,t,r)=>{var n;return((n=e.getValue(t))==null||(n=n.toString())==null?void 0:n.toLowerCase())===(r==null?void 0:r.toLowerCase())};UU.autoRemove=e=>Ca(e);const YU=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};YU.autoRemove=e=>Ca(e)||!(e!=null&&e.length);const XU=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});XU.autoRemove=e=>Ca(e)||!(e!=null&&e.length);const ZU=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});ZU.autoRemove=e=>Ca(e)||!(e!=null&&e.length);const qU=(e,t,r)=>e.getValue(t)===r;qU.autoRemove=e=>Ca(e);const jU=(e,t,r)=>e.getValue(t)==r;jU.autoRemove=e=>Ca(e);const ND=(e,t,r)=>{let[n,i]=r;const a=e.getValue(t);return a>=n&&a<=i};ND.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,i=typeof r!="number"?parseFloat(r):r,a=t===null||Number.isNaN(n)?-1/0:n,o=r===null||Number.isNaN(i)?1/0:i;if(a>o){const s=a;a=o,o=s}return[a,o]};ND.autoRemove=e=>Ca(e)||Ca(e[0])&&Ca(e[1]);const Eo={includesString:HU,includesStringSensitive:WU,equalsString:UU,arrIncludes:YU,arrIncludesAll:XU,arrIncludesSome:ZU,equals:qU,weakEquals:jU,inNumberRange:ND};function Ca(e){return e==null||e===""}const pCe={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Li("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);return typeof n=="string"?Eo.includesString:typeof n=="number"?Eo.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Eo.equals:Array.isArray(n)?Eo.arrIncludes:Eo.weakEquals},e.getFilterFn=()=>{var r,n;return Nu(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:Eo[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,n,i;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return(r=t.getState().columnFilters)==null||(r=r.find(n=>n.id===e.id))==null?void 0:r.value},e.getFilterIndex=()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.setFilterValue=r=>{t.setColumnFilters(n=>{const i=e.getFilterFn(),a=n==null?void 0:n.find(c=>c.id===e.id),o=Zs(r,a?a.value:void 0);if(sV(i,o,e)){var s;return(s=n==null?void 0:n.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:o};if(a){var u;return(u=n==null?void 0:n.map(c=>c.id===e.id?l:c))!=null?u:[]}return n!=null&&n.length?[...n,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const r=e.getAllLeafColumns(),n=i=>{var a;return(a=Zs(t,i))==null?void 0:a.filter(o=>{const s=r.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(sV(l,o.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function sV(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const gCe=(e,t,r)=>r.reduce((n,i)=>{const a=i.getValue(e);return n+(typeof a=="number"?a:0)},0),mCe=(e,t,r)=>{let n;return r.forEach(i=>{const a=i.getValue(e);a!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}),n},yCe=(e,t,r)=>{let n;return r.forEach(i=>{const a=i.getValue(e);a!=null&&(n=a)&&(n=a)}),n},_Ce=(e,t,r)=>{let n,i;return r.forEach(a=>{const o=a.getValue(e);o!=null&&(n===void 0?o>=o&&(n=i=o):(n>o&&(n=o),i{let r=0,n=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++r,n+=a)}),r)return n/r},wCe=(e,t)=>{if(!t.length)return;const r=t.map(a=>a.getValue(e));if(!cCe(r))return;if(r.length===1)return r[0];const n=Math.floor(r.length/2),i=r.sort((a,o)=>a-o);return r.length%2!==0?i[n]:(i[n-1]+i[n])/2},xCe=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),bCe=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,CCe=(e,t)=>t.length,Qx={sum:gCe,min:mCe,max:yCe,extent:_Ce,mean:SCe,median:wCe,unique:xCe,uniqueCount:bCe,count:CCe},TCe={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Li("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},e.getCanGroup=()=>{var r,n;return((r=e.columnDef.enableGrouping)!=null?r:!0)&&((n=t.options.enableGrouping)!=null?n:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);if(typeof n=="number")return Qx.sum;if(Object.prototype.toString.call(n)==="[object Date]")return Qx.extent},e.getAggregationFn=()=>{var r,n;if(!e)throw new Error;return Nu(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:Qx[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];const n=t.getColumn(r);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[r]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,t,r,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=r.subRows)!=null&&i.length)}}};function ACe(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(a=>!t.includes(a.id));return r==="remove"?n:[...t.map(a=>e.find(o=>o.id===a)).filter(Boolean),...n]}const MCe={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Li("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ct(r=>[ed(t,r)],r=>r.findIndex(n=>n.id===e.id),ft(t.options,"debugColumns")),e.getIsFirstColumn=r=>{var n;return((n=ed(t,r)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=r=>{var n;const i=ed(t,r);return((n=i[i.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},e._getOrderColumnsFn=ct(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>i=>{let a=[];if(!(t!=null&&t.length))a=i;else{const o=[...t],s=[...i];for(;s.length&&o.length;){const l=o.shift(),u=s.findIndex(c=>c.id===l);u>-1&&a.push(s.splice(u,1)[0])}a=[...a,...s]}return ACe(a,r,n)},ft(e.options,"debugTable"))}},eb=()=>({left:[],right:[]}),DCe={getInitialState:e=>({columnPinning:eb(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Li("columnPinning",e)}),createColumn:(e,t)=>{e.pin=r=>{const n=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,o;if(r==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(r==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f))),right:((o=i==null?void 0:i.right)!=null?o:[]).filter(f=>!(n!=null&&n.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var i,a,o;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((a=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const r=e.getLeafColumns().map(s=>s.id),{left:n,right:i}=t.getState().columnPinning,a=r.some(s=>n==null?void 0:n.includes(s)),o=r.some(s=>i==null?void 0:i.includes(s));return a?"left":o?"right":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();return i?(r=(n=t.getState().columnPinning)==null||(n=n[i])==null?void 0:n.indexOf(e.id))!=null?r:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ct(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,i)=>{const a=[...n??[],...i??[]];return r.filter(o=>!a.includes(o.column.id))},ft(t.options,"debugRows")),e.getLeftVisibleCells=ct(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(r,n)=>(n??[]).map(a=>r.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),ft(t.options,"debugRows")),e.getRightVisibleCells=ct(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(a=>r.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),ft(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var r,n;return e.setColumnPinning(t?eb():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:eb())},e.getIsSomeColumnsPinned=t=>{var r;const n=e.getState().columnPinning;if(!t){var i,a;return!!((i=n.left)!=null&&i.length||(a=n.right)!=null&&a.length)}return!!((r=n[t])!=null&&r.length)},e.getLeftLeafColumns=ct(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),ft(e.options,"debugColumns")),e.getRightLeafColumns=ct(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),ft(e.options,"debugColumns")),e.getCenterLeafColumns=ct(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const i=[...r??[],...n??[]];return t.filter(a=>!i.includes(a.id))},ft(e.options,"debugColumns"))}},Mm={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},tb=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),ICe={getDefaultColumnDef:()=>Mm,getInitialState:e=>({columnSizing:{},columnSizingInfo:tb(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Li("columnSizing",e),onColumnSizingInfoChange:Li("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var r,n,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:Mm.minSize,(n=a??e.columnDef.size)!=null?n:Mm.size),(i=e.columnDef.maxSize)!=null?i:Mm.maxSize)},e.getStart=ct(r=>[r,ed(t,r),t.getState().columnSizing],(r,n)=>n.slice(0,e.getIndex(r)).reduce((i,a)=>i+a.getSize(),0),ft(t.options,"debugColumns")),e.getAfter=ct(r=>[r,ed(t,r),t.getState().columnSizing],(r,n)=>n.slice(e.getIndex(r)+1).reduce((i,a)=>i+a.getSize(),0),ft(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(r=>{let{[e.id]:n,...i}=r;return i})},e.getCanResize=()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let r=0;const n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var a;r+=(a=i.column.getSize())!=null?a:0}};return n(e),r},e.getStart=()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},e.getResizeHandler=r=>{const n=t.getColumn(e.column.id),i=n==null?void 0:n.getCanResize();return a=>{if(!n||!i||(a.persist==null||a.persist(),rb(a)&&a.touches&&a.touches.length>1))return;const o=e.getSize(),s=e?e.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[n.id,n.getSize()]],l=rb(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(y,S)=>{typeof S=="number"&&(t.setColumnSizingInfo(w=>{var x,T;const b=t.options.columnResizeDirection==="rtl"?-1:1,A=(S-((x=w==null?void 0:w.startOffset)!=null?x:0))*b,M=Math.max(A/((T=w==null?void 0:w.startSize)!=null?T:0),-.999999);return w.columnSizingStart.forEach(D=>{let[L,P]=D;u[L]=Math.round(Math.max(P+P*M,0)*100)/100}),{...w,deltaOffset:A,deltaPercentage:M}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(w=>({...w,...u})))},f=y=>c("move",y),h=y=>{c("end",y),t.setColumnSizingInfo(S=>({...S,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},v=r||typeof document<"u"?document:null,d={moveHandler:y=>f(y.clientX),upHandler:y=>{v==null||v.removeEventListener("mousemove",d.moveHandler),v==null||v.removeEventListener("mouseup",d.upHandler),h(y.clientX)}},g={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),f(y.touches[0].clientX),!1),upHandler:y=>{var S;v==null||v.removeEventListener("touchmove",g.moveHandler),v==null||v.removeEventListener("touchend",g.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),h((S=y.touches[0])==null?void 0:S.clientX)}},m=LCe()?{passive:!1}:!1;rb(a)?(v==null||v.addEventListener("touchmove",g.moveHandler,m),v==null||v.addEventListener("touchend",g.upHandler,m)):(v==null||v.addEventListener("mousemove",d.moveHandler,m),v==null||v.addEventListener("mouseup",d.upHandler,m)),t.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},e.resetHeaderSizeInfo=t=>{var r;e.setColumnSizingInfo(t?tb():(r=e.initialState.columnSizingInfo)!=null?r:tb())},e.getTotalSize=()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0}}};let Dm=null;function LCe(){if(typeof Dm=="boolean")return Dm;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return Dm=e,Dm}function rb(e){return e.type==="touchstart"}const PCe={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Li("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},e.getIsVisible=()=>{var r,n;const i=e.columns;return(r=i.length?i.some(a=>a.getIsVisible()):(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},e.getCanHide=()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ct(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),ft(t.options,"debugRows")),e.getVisibleCells=ct(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],ft(t.options,"debugRows"))},createTable:e=>{const t=(r,n)=>ct(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),ft(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),e.resetColumnVisibility=r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:r||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}};function ed(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const RCe={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},ECe={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Li("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r;const n=(r=e.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[t.id])==null?void 0:r.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var r,n,i,a;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Eo.includesString,e.getGlobalFilterFn=()=>{var t,r;const{globalFilterFn:n}=e.options;return Nu(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:Eo[n]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},kCe={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Li("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;e._autoResetExpanded=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var i,a;e.setExpanded(n?{}:(i=(a=e.initialState)==null?void 0:a.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const o=a.split(".");n=Math.max(n,o.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=r=>{t.setExpanded(n=>{var i;const a=n===!0?!0:!!(n!=null&&n[e.id]);let o={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=n,r=(i=r)!=null?i:!a,!a&&r)return{...o,[e.id]:!0};if(a&&!r){const{[e.id]:s,...l}=o;return l}return n})},e.getIsExpanded=()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n!=null&&n[e.id])},e.getCanExpand=()=>{var r,n,i;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let r=!0,n=e;for(;r&&n.parentId;)n=t.getRow(n.parentId,!0),r=n.getIsExpanded();return r},e.getToggleExpandedHandler=()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}}},IT=0,LT=10,nb=()=>({pageIndex:IT,pageSize:LT}),OCe={getInitialState:e=>({...e,pagination:{...nb(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Li("pagination",e)}),createTable:e=>{let t=!1,r=!1;e._autoResetPageIndex=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=n=>{const i=a=>Zs(n,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=n=>{var i;e.setPagination(n?nb():(i=e.initialState.pagination)!=null?i:nb())},e.setPageIndex=n=>{e.setPagination(i=>{let a=Zs(n,i.pageIndex);const o=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...i,pageIndex:a}})},e.resetPageIndex=n=>{var i,a;e.setPageIndex(n?IT:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:IT)},e.resetPageSize=n=>{var i,a;e.setPageSize(n?LT:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:LT)},e.setPageSize=n=>{e.setPagination(i=>{const a=Math.max(1,Zs(n,i.pageSize)),o=i.pageSize*i.pageIndex,s=Math.floor(o/a);return{...i,pageIndex:s,pageSize:a}})},e.setPageCount=n=>e.setPagination(i=>{var a;let o=Zs(n,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=ct(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((a,o)=>o)),i},ft(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:ne.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},ib=()=>({top:[],bottom:[]}),NCe={getInitialState:e=>({rowPinning:ib(),...e}),getDefaultOptions:e=>({onRowPinningChange:Li("rowPinning",e)}),createRow:(e,t)=>{e.pin=(r,n,i)=>{const a=n?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],o=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(l=>{var u,c;if(r==="bottom"){var f,h;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(g=>!(s!=null&&s.has(g))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)]}}if(r==="top"){var v,d;return{top:[...((v=l==null?void 0:l.top)!=null?v:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)],bottom:((d=l==null?void 0:l.bottom)!=null?d:[]).filter(g=>!(s!=null&&s.has(g)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(g=>!(s!=null&&s.has(g))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(g=>!(s!=null&&s.has(g)))}})},e.getCanPin=()=>{var r;const{enableRowPinning:n,enablePinning:i}=t.options;return typeof n=="function"?n(e):(r=n??i)!=null?r:!0},e.getIsPinned=()=>{const r=[e.id],{top:n,bottom:i}=t.getState().rowPinning,a=r.some(s=>n==null?void 0:n.includes(s)),o=r.some(s=>i==null?void 0:i.includes(s));return a?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();if(!i)return-1;const a=(r=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:r.map(o=>{let{id:s}=o;return s});return(n=a==null?void 0:a.indexOf(e.id))!=null?n:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var r,n;return e.setRowPinning(t?ib():(r=(n=e.initialState)==null?void 0:n.rowPinning)!=null?r:ib())},e.getIsSomeRowsPinned=t=>{var r;const n=e.getState().rowPinning;if(!t){var i,a;return!!((i=n.top)!=null&&i.length||(a=n.bottom)!=null&&a.length)}return!!((r=n[t])!=null&&r.length)},e._getPinnedRows=(t,r,n)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(r??[]).map(o=>{const s=e.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(r??[]).map(o=>t.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:n}))},e.getTopRows=ct(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,r)=>e._getPinnedRows(t,r,"top"),ft(e.options,"debugRows")),e.getBottomRows=ct(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,r)=>e._getPinnedRows(t,r,"bottom"),ft(e.options,"debugRows")),e.getCenterRows=ct(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,r,n)=>{const i=new Set([...r??[],...n??[]]);return t.filter(a=>!i.has(a.id))},ft(e.options,"debugRows"))}},FCe={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Li("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(a=>{a.getCanSelect()&&(n[a.id]=!0)}):i.forEach(a=>{delete n[a.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...r};return e.getRowModel().rows.forEach(a=>{PT(i,a.id,n,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ct(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?ab(e,r):{rows:[],flatRows:[],rowsById:{}},ft(e.options,"debugTable")),e.getFilteredSelectedRowModel=ct(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?ab(e,r):{rows:[],flatRows:[],rowsById:{}},ft(e.options,"debugTable")),e.getGroupedSelectedRowModel=ct(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?ab(e,r):{rows:[],flatRows:[],rowsById:{}},ft(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!(t.length&&Object.keys(r).length);return n&&t.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(i=>!r[i.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(r,n)=>{const i=e.getIsSelected();t.setRowSelection(a=>{var o;if(r=typeof r<"u"?r:!i,e.getCanSelect()&&i===r)return a;const s={...a};return PT(s,e.id,r,(o=n==null?void 0:n.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:r}=t.getState();return FD(e,r)},e.getIsSomeSelected=()=>{const{rowSelection:r}=t.getState();return RT(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=t.getState();return RT(e,r)==="all"},e.getCanSelect=()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},e.getCanSelectSubRows=()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},e.getCanMultiSelect=()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},e.getToggleSelectedHandler=()=>{const r=e.getCanSelect();return n=>{var i;r&&e.toggleSelected((i=n.target)==null?void 0:i.checked)}}}},PT=(e,t,r,n,i)=>{var a;const o=i.getRow(t,!0);r?(o.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),o.getCanSelect()&&(e[t]=!0)):delete e[t],n&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>PT(e,s.id,r,n,i))};function ab(e,t){const r=e.getState().rowSelection,n=[],i={},a=function(o,s){return o.map(l=>{var u;const c=FD(l,r);if(c&&(n.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:a(l.subRows)}),c)return l}).filter(Boolean)};return{rows:a(t.rows),flatRows:n,rowsById:i}}function FD(e,t){var r;return(r=t[e.id])!=null?r:!1}function RT(e,t,r){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let i=!0,a=!1;return e.subRows.forEach(o=>{if(!(a&&!i)&&(o.getCanSelect()&&(FD(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=RT(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const ET=/([0-9]+)/gm,VCe=(e,t,r)=>KU(ul(e.getValue(r)).toLowerCase(),ul(t.getValue(r)).toLowerCase()),BCe=(e,t,r)=>KU(ul(e.getValue(r)),ul(t.getValue(r))),zCe=(e,t,r)=>VD(ul(e.getValue(r)).toLowerCase(),ul(t.getValue(r)).toLowerCase()),GCe=(e,t,r)=>VD(ul(e.getValue(r)),ul(t.getValue(r))),$Ce=(e,t,r)=>{const n=e.getValue(r),i=t.getValue(r);return n>i?1:nVD(e.getValue(r),t.getValue(r));function VD(e,t){return e===t?0:e>t?1:-1}function ul(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function KU(e,t){const r=e.split(ET).filter(Boolean),n=t.split(ET).filter(Boolean);for(;r.length&&n.length;){const i=r.shift(),a=n.shift(),o=parseInt(i,10),s=parseInt(a,10),l=[o,s].sort();if(isNaN(l[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return r.length-n.length}const sv={alphanumeric:VCe,alphanumericCaseSensitive:BCe,text:zCe,textCaseSensitive:GCe,datetime:$Ce,basic:HCe},WCe={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Li("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const i of r){const a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return sv.datetime;if(typeof a=="string"&&(n=!0,a.split(ET).length>1))return sv.alphanumeric}return n?sv.text:sv.basic},e.getAutoSortDir=()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof(r==null?void 0:r.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var r,n;if(!e)throw new Error;return Nu(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:sv[e.columnDef.sortingFn]},e.toggleSorting=(r,n)=>{const i=e.getNextSortingOrder(),a=typeof r<"u"&&r!==null;t.setSorting(o=>{const s=o==null?void 0:o.find(v=>v.id===e.id),l=o==null?void 0:o.findIndex(v=>v.id===e.id);let u=[],c,f=a?r:i==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&n?s?c="toggle":c="add":o!=null&&o.length&&l!==o.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(a||i||(c="remove")),c==="add"){var h;u=[...o,{id:e.id,desc:f}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=o.map(v=>v.id===e.id?{...v,desc:f}:v):c==="remove"?u=o.filter(v=>v.id!==e.id):u=[{id:e.id,desc:f}];return u})},e.getFirstSortDir=()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=r=>{var n,i;const a=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==a&&((n=t.options.enableSortingRemoval)==null||n)&&(!(r&&(i=t.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":a},e.getCanSort=()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},e.getIsSorted=()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(i=>i.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.clearSorting=()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const r=e.getCanSort();return n=>{r&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},UCe=[vCe,PCe,MCe,DCe,dCe,pCe,RCe,ECe,WCe,TCe,kCe,OCe,NCe,FCe,ICe];function YCe(e){var t,r;const n=[...UCe,...(t=e._features)!=null?t:[]];let i={_features:n};const a=i._features.reduce((h,v)=>Object.assign(h,v.getDefaultOptions==null?void 0:v.getDefaultOptions(i)),{}),o=h=>i.options.mergeOptions?i.options.mergeOptions(a,h):{...a,...h};let l={...{},...(r=e.initialState)!=null?r:{}};i._features.forEach(h=>{var v;l=(v=h.getInitialState==null?void 0:h.getInitialState(l))!=null?v:l});const u=[];let c=!1;const f={_features:n,options:{...a,...e},initialState:l,_queue:h=>{u.push(h),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(v=>setTimeout(()=>{throw v})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const v=Zs(h,i.options);i.options=o(v)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,v,d)=>{var g;return(g=i.options.getRowId==null?void 0:i.options.getRowId(h,v,d))!=null?g:`${d?[d.id,v].join("."):v}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,v)=>{let d=(v?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!d&&(d=i.getCoreRowModel().rowsById[h],!d))throw new Error;return d},_getDefaultColumnDef:ct(()=>[i.options.defaultColumn],h=>{var v;return h=(v=h)!=null?v:{},{header:d=>{const g=d.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:d=>{var g,m;return(g=(m=d.renderValue())==null||m.toString==null?void 0:m.toString())!=null?g:null},...i._features.reduce((d,g)=>Object.assign(d,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...h}},ft(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:ct(()=>[i._getColumnDefs()],h=>{const v=function(d,g,m){return m===void 0&&(m=0),d.map(y=>{const S=hCe(i,y,m,g),w=y;return S.columns=w.columns?v(w.columns,S,m+1):[],S})};return v(h)},ft(e,"debugColumns")),getAllFlatColumns:ct(()=>[i.getAllColumns()],h=>h.flatMap(v=>v.getFlatColumns()),ft(e,"debugColumns")),_getAllFlatColumnsById:ct(()=>[i.getAllFlatColumns()],h=>h.reduce((v,d)=>(v[d.id]=d,v),{}),ft(e,"debugColumns")),getAllLeafColumns:ct(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,v)=>{let d=h.flatMap(g=>g.getLeafColumns());return v(d)},ft(e,"debugColumns")),getColumn:h=>i._getAllFlatColumnsById()[h]};Object.assign(i,f);for(let h=0;hct(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(i,a,o){a===void 0&&(a=0);const s=[];for(let u=0;ue._autoResetPageIndex()))}function ZCe(){return e=>ct(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,r,n)=>!r.rows.length||t!==!0&&!Object.keys(t??{}).length||!n?r:qCe(r),ft(e.options,"debugTable"))}function qCe(e){const t=[],r=n=>{var i;t.push(n),(i=n.subRows)!=null&&i.length&&n.getIsExpanded()&&n.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function jCe(){return e=>ct(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,r)=>{if(!r.rows.length||!t.length)return r.rows.forEach(l=>{l.depth=0,l.parentId=void 0}),r;const n=t.filter(l=>e.getColumn(l)),i=[],a={},o=function(l,u,c){if(u===void 0&&(u=0),u>=n.length)return l.map(d=>(d.depth=u,i.push(d),a[d.id]=d,d.subRows&&(d.subRows=o(d.subRows,u+1,d.id)),d));const f=n[u],h=KCe(l,f);return Array.from(h.entries()).map((d,g)=>{let[m,y]=d,S=`${f}:${m}`;S=c?`${c}>${S}`:S;const w=o(y,u+1,S);w.forEach(b=>{b.parentId=S});const x=u?GU(y,b=>b.subRows):y,T=$U(e,S,x[0].original,g,u,void 0,c);return Object.assign(T,{groupingColumnId:f,groupingValue:m,subRows:w,leafRows:x,getValue:b=>{if(n.includes(b)){if(T._valuesCache.hasOwnProperty(b))return T._valuesCache[b];if(y[0]){var A;T._valuesCache[b]=(A=y[0].getValue(b))!=null?A:void 0}return T._valuesCache[b]}if(T._groupingValuesCache.hasOwnProperty(b))return T._groupingValuesCache[b];const M=e.getColumn(b),D=M==null?void 0:M.getAggregationFn();if(D)return T._groupingValuesCache[b]=D(b,x,y),T._groupingValuesCache[b]}}),w.forEach(b=>{i.push(b),a[b.id]=b}),T})},s=o(r.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},ft(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function KCe(e,t){const r=new Map;return e.reduce((n,i)=>{const a=`${i.getGroupingValue(t)}`,o=n.get(a);return o?o.push(i):n.set(a,[i]),n},r)}function JCe(){return e=>ct(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,i=[],a=n.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),o={};a.forEach(l=>{const u=e.getColumn(l.id);u&&(o[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(c=>({...c}));return u.sort((c,f)=>{for(let v=0;v{var f;i.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(r.rows),flatRows:i,rowsById:r.rowsById}},ft(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/** + color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,r==null?void 0:r.key)}return i}}function ft(e,t,r,n){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:n}}function cCe(e,t,r,n){const i=()=>{var o;return(o=a.getValue())!=null?o:e.options.renderFallbackValue},a={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:i,getContext:ct(()=>[e,r,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),ft(e.options,"debugCells"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,r,t,e)},{}),a}function fCe(e,t,r,n){var i,a;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(a=s.id)!=null?a:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=h=>{let v=h;for(const g of l.split(".")){var d;v=(d=v)==null?void 0:d[g]}return v}:c=h=>h[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:ct(()=>[!0],()=>{var h;return[f,...(h=f.columns)==null?void 0:h.flatMap(v=>v.getFlatColumns())]},ft(e.options,"debugColumns")),getLeafColumns:ct(()=>[e._getOrderColumnsFn()],h=>{var v;if((v=f.columns)!=null&&v.length){let d=f.columns.flatMap(g=>g.getLeafColumns());return h(d)}return[f]},ft(e.options,"debugColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(f,e);return f}const Tn="debugHeaders";function oV(e,t,r){var n;let a={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(a),o},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(a,e)}),a}const hCe={createTable:e=>{e.getHeaderGroups=ct(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>{var a,o;const s=(a=n==null?void 0:n.map(f=>r.find(h=>h.id===f)).filter(Boolean))!=null?a:[],l=(o=i==null?void 0:i.map(f=>r.find(h=>h.id===f)).filter(Boolean))!=null?o:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(i!=null&&i.includes(f.id)));return Am(t,[...s,...u,...l],e)},ft(e.options,Tn)),e.getCenterHeaderGroups=ct(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>(r=r.filter(a=>!(n!=null&&n.includes(a.id))&&!(i!=null&&i.includes(a.id))),Am(t,r,e,"center")),ft(e.options,Tn)),e.getLeftHeaderGroups=ct(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var i;const a=(i=n==null?void 0:n.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Am(t,a,e,"left")},ft(e.options,Tn)),e.getRightHeaderGroups=ct(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var i;const a=(i=n==null?void 0:n.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Am(t,a,e,"right")},ft(e.options,Tn)),e.getFooterGroups=ct(()=>[e.getHeaderGroups()],t=>[...t].reverse(),ft(e.options,Tn)),e.getLeftFooterGroups=ct(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),ft(e.options,Tn)),e.getCenterFooterGroups=ct(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),ft(e.options,Tn)),e.getRightFooterGroups=ct(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),ft(e.options,Tn)),e.getFlatHeaders=ct(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),ft(e.options,Tn)),e.getLeftFlatHeaders=ct(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),ft(e.options,Tn)),e.getCenterFlatHeaders=ct(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),ft(e.options,Tn)),e.getRightFlatHeaders=ct(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),ft(e.options,Tn)),e.getCenterLeafHeaders=ct(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),ft(e.options,Tn)),e.getLeftLeafHeaders=ct(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),ft(e.options,Tn)),e.getRightLeafHeaders=ct(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),ft(e.options,Tn)),e.getLeafHeaders=ct(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var i,a,o,s,l,u;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(o=(s=r[0])==null?void 0:s.headers)!=null?o:[],...(l=(u=n[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},ft(e.options,Tn))}};function Am(e,t,r,n){var i,a;let o=0;const s=function(h,v){v===void 0&&(v=1),o=Math.max(o,v),h.filter(d=>d.getIsVisible()).forEach(d=>{var g;(g=d.columns)!=null&&g.length&&s(d.columns,v+1)},0)};s(e);let l=[];const u=(h,v)=>{const d={depth:v,id:[n,`${v}`].filter(Boolean).join("_"),headers:[]},g=[];h.forEach(m=>{const y=[...g].reverse()[0],S=m.column.depth===d.depth;let w,x=!1;if(S&&m.column.parent?w=m.column.parent:(w=m.column,x=!0),y&&(y==null?void 0:y.column)===w)y.subHeaders.push(m);else{const T=oV(r,w,{id:[n,v,w.id,m==null?void 0:m.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${g.filter(b=>b.column===w).length}`:void 0,depth:v,index:g.length});T.subHeaders.push(m),g.push(T)}d.headers.push(m),m.headerGroup=d}),l.push(d),v>0&&u(g,v-1)},c=t.map((h,v)=>oV(r,h,{depth:o,index:v}));u(c,o-1),l.reverse();const f=h=>h.filter(d=>d.column.getIsVisible()).map(d=>{let g=0,m=0,y=[0];d.subHeaders&&d.subHeaders.length?(y=[],f(d.subHeaders).forEach(w=>{let{colSpan:x,rowSpan:T}=w;g+=x,y.push(T)})):g=1;const S=Math.min(...y);return m=m+S,d.colSpan=g,d.rowSpan=m,{colSpan:g,rowSpan:m}});return f((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const $U=(e,t,r,n,i,a,o)=>{let s={id:t,index:n,original:r,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,n),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,n),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>GU(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:ct(()=>[e.getAllLeafColumns()],l=>l.map(u=>cCe(e,s,u,u.id)),ft(e.options,"debugRows")),_getAllCellsByColumnId:ct(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),ft(e.options,"debugRows"))};for(let l=0;l{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},HU=(e,t,r)=>{var n,i;const a=r==null||(n=r.toString())==null?void 0:n.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(a))};HU.autoRemove=e=>ba(e);const WU=(e,t,r)=>{var n;return!!(!((n=e.getValue(t))==null||(n=n.toString())==null)&&n.includes(r))};WU.autoRemove=e=>ba(e);const UU=(e,t,r)=>{var n;return((n=e.getValue(t))==null||(n=n.toString())==null?void 0:n.toLowerCase())===(r==null?void 0:r.toLowerCase())};UU.autoRemove=e=>ba(e);const YU=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};YU.autoRemove=e=>ba(e)||!(e!=null&&e.length);const XU=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});XU.autoRemove=e=>ba(e)||!(e!=null&&e.length);const ZU=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});ZU.autoRemove=e=>ba(e)||!(e!=null&&e.length);const qU=(e,t,r)=>e.getValue(t)===r;qU.autoRemove=e=>ba(e);const jU=(e,t,r)=>e.getValue(t)==r;jU.autoRemove=e=>ba(e);const ND=(e,t,r)=>{let[n,i]=r;const a=e.getValue(t);return a>=n&&a<=i};ND.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,i=typeof r!="number"?parseFloat(r):r,a=t===null||Number.isNaN(n)?-1/0:n,o=r===null||Number.isNaN(i)?1/0:i;if(a>o){const s=a;a=o,o=s}return[a,o]};ND.autoRemove=e=>ba(e)||ba(e[0])&&ba(e[1]);const Eo={includesString:HU,includesStringSensitive:WU,equalsString:UU,arrIncludes:YU,arrIncludesAll:XU,arrIncludesSome:ZU,equals:qU,weakEquals:jU,inNumberRange:ND};function ba(e){return e==null||e===""}const dCe={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Li("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);return typeof n=="string"?Eo.includesString:typeof n=="number"?Eo.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Eo.equals:Array.isArray(n)?Eo.arrIncludes:Eo.weakEquals},e.getFilterFn=()=>{var r,n;return Nu(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:Eo[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,n,i;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return(r=t.getState().columnFilters)==null||(r=r.find(n=>n.id===e.id))==null?void 0:r.value},e.getFilterIndex=()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.setFilterValue=r=>{t.setColumnFilters(n=>{const i=e.getFilterFn(),a=n==null?void 0:n.find(c=>c.id===e.id),o=Zs(r,a?a.value:void 0);if(sV(i,o,e)){var s;return(s=n==null?void 0:n.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:o};if(a){var u;return(u=n==null?void 0:n.map(c=>c.id===e.id?l:c))!=null?u:[]}return n!=null&&n.length?[...n,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const r=e.getAllLeafColumns(),n=i=>{var a;return(a=Zs(t,i))==null?void 0:a.filter(o=>{const s=r.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(sV(l,o.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function sV(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const pCe=(e,t,r)=>r.reduce((n,i)=>{const a=i.getValue(e);return n+(typeof a=="number"?a:0)},0),gCe=(e,t,r)=>{let n;return r.forEach(i=>{const a=i.getValue(e);a!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}),n},mCe=(e,t,r)=>{let n;return r.forEach(i=>{const a=i.getValue(e);a!=null&&(n=a)&&(n=a)}),n},yCe=(e,t,r)=>{let n,i;return r.forEach(a=>{const o=a.getValue(e);o!=null&&(n===void 0?o>=o&&(n=i=o):(n>o&&(n=o),i{let r=0,n=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++r,n+=a)}),r)return n/r},SCe=(e,t)=>{if(!t.length)return;const r=t.map(a=>a.getValue(e));if(!uCe(r))return;if(r.length===1)return r[0];const n=Math.floor(r.length/2),i=r.sort((a,o)=>a-o);return r.length%2!==0?i[n]:(i[n-1]+i[n])/2},wCe=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),xCe=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,bCe=(e,t)=>t.length,Qx={sum:pCe,min:gCe,max:mCe,extent:yCe,mean:_Ce,median:SCe,unique:wCe,uniqueCount:xCe,count:bCe},CCe={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Li("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},e.getCanGroup=()=>{var r,n;return((r=e.columnDef.enableGrouping)!=null?r:!0)&&((n=t.options.enableGrouping)!=null?n:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);if(typeof n=="number")return Qx.sum;if(Object.prototype.toString.call(n)==="[object Date]")return Qx.extent},e.getAggregationFn=()=>{var r,n;if(!e)throw new Error;return Nu(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:Qx[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];const n=t.getColumn(r);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[r]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,t,r,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=r.subRows)!=null&&i.length)}}};function TCe(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(a=>!t.includes(a.id));return r==="remove"?n:[...t.map(a=>e.find(o=>o.id===a)).filter(Boolean),...n]}const ACe={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Li("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ct(r=>[ed(t,r)],r=>r.findIndex(n=>n.id===e.id),ft(t.options,"debugColumns")),e.getIsFirstColumn=r=>{var n;return((n=ed(t,r)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=r=>{var n;const i=ed(t,r);return((n=i[i.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},e._getOrderColumnsFn=ct(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>i=>{let a=[];if(!(t!=null&&t.length))a=i;else{const o=[...t],s=[...i];for(;s.length&&o.length;){const l=o.shift(),u=s.findIndex(c=>c.id===l);u>-1&&a.push(s.splice(u,1)[0])}a=[...a,...s]}return TCe(a,r,n)},ft(e.options,"debugTable"))}},eb=()=>({left:[],right:[]}),MCe={getInitialState:e=>({columnPinning:eb(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Li("columnPinning",e)}),createColumn:(e,t)=>{e.pin=r=>{const n=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,o;if(r==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(r==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f))),right:((o=i==null?void 0:i.right)!=null?o:[]).filter(f=>!(n!=null&&n.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var i,a,o;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((a=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const r=e.getLeafColumns().map(s=>s.id),{left:n,right:i}=t.getState().columnPinning,a=r.some(s=>n==null?void 0:n.includes(s)),o=r.some(s=>i==null?void 0:i.includes(s));return a?"left":o?"right":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();return i?(r=(n=t.getState().columnPinning)==null||(n=n[i])==null?void 0:n.indexOf(e.id))!=null?r:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ct(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,i)=>{const a=[...n??[],...i??[]];return r.filter(o=>!a.includes(o.column.id))},ft(t.options,"debugRows")),e.getLeftVisibleCells=ct(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(r,n)=>(n??[]).map(a=>r.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),ft(t.options,"debugRows")),e.getRightVisibleCells=ct(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(a=>r.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),ft(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var r,n;return e.setColumnPinning(t?eb():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:eb())},e.getIsSomeColumnsPinned=t=>{var r;const n=e.getState().columnPinning;if(!t){var i,a;return!!((i=n.left)!=null&&i.length||(a=n.right)!=null&&a.length)}return!!((r=n[t])!=null&&r.length)},e.getLeftLeafColumns=ct(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),ft(e.options,"debugColumns")),e.getRightLeafColumns=ct(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),ft(e.options,"debugColumns")),e.getCenterLeafColumns=ct(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const i=[...r??[],...n??[]];return t.filter(a=>!i.includes(a.id))},ft(e.options,"debugColumns"))}},Mm={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},tb=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),DCe={getDefaultColumnDef:()=>Mm,getInitialState:e=>({columnSizing:{},columnSizingInfo:tb(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Li("columnSizing",e),onColumnSizingInfoChange:Li("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var r,n,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:Mm.minSize,(n=a??e.columnDef.size)!=null?n:Mm.size),(i=e.columnDef.maxSize)!=null?i:Mm.maxSize)},e.getStart=ct(r=>[r,ed(t,r),t.getState().columnSizing],(r,n)=>n.slice(0,e.getIndex(r)).reduce((i,a)=>i+a.getSize(),0),ft(t.options,"debugColumns")),e.getAfter=ct(r=>[r,ed(t,r),t.getState().columnSizing],(r,n)=>n.slice(e.getIndex(r)+1).reduce((i,a)=>i+a.getSize(),0),ft(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(r=>{let{[e.id]:n,...i}=r;return i})},e.getCanResize=()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let r=0;const n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var a;r+=(a=i.column.getSize())!=null?a:0}};return n(e),r},e.getStart=()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},e.getResizeHandler=r=>{const n=t.getColumn(e.column.id),i=n==null?void 0:n.getCanResize();return a=>{if(!n||!i||(a.persist==null||a.persist(),rb(a)&&a.touches&&a.touches.length>1))return;const o=e.getSize(),s=e?e.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[n.id,n.getSize()]],l=rb(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(y,S)=>{typeof S=="number"&&(t.setColumnSizingInfo(w=>{var x,T;const b=t.options.columnResizeDirection==="rtl"?-1:1,A=(S-((x=w==null?void 0:w.startOffset)!=null?x:0))*b,M=Math.max(A/((T=w==null?void 0:w.startSize)!=null?T:0),-.999999);return w.columnSizingStart.forEach(D=>{let[L,P]=D;u[L]=Math.round(Math.max(P+P*M,0)*100)/100}),{...w,deltaOffset:A,deltaPercentage:M}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(w=>({...w,...u})))},f=y=>c("move",y),h=y=>{c("end",y),t.setColumnSizingInfo(S=>({...S,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},v=r||typeof document<"u"?document:null,d={moveHandler:y=>f(y.clientX),upHandler:y=>{v==null||v.removeEventListener("mousemove",d.moveHandler),v==null||v.removeEventListener("mouseup",d.upHandler),h(y.clientX)}},g={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),f(y.touches[0].clientX),!1),upHandler:y=>{var S;v==null||v.removeEventListener("touchmove",g.moveHandler),v==null||v.removeEventListener("touchend",g.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),h((S=y.touches[0])==null?void 0:S.clientX)}},m=ICe()?{passive:!1}:!1;rb(a)?(v==null||v.addEventListener("touchmove",g.moveHandler,m),v==null||v.addEventListener("touchend",g.upHandler,m)):(v==null||v.addEventListener("mousemove",d.moveHandler,m),v==null||v.addEventListener("mouseup",d.upHandler,m)),t.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},e.resetHeaderSizeInfo=t=>{var r;e.setColumnSizingInfo(t?tb():(r=e.initialState.columnSizingInfo)!=null?r:tb())},e.getTotalSize=()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0}}};let Dm=null;function ICe(){if(typeof Dm=="boolean")return Dm;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return Dm=e,Dm}function rb(e){return e.type==="touchstart"}const LCe={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Li("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},e.getIsVisible=()=>{var r,n;const i=e.columns;return(r=i.length?i.some(a=>a.getIsVisible()):(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},e.getCanHide=()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ct(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),ft(t.options,"debugRows")),e.getVisibleCells=ct(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],ft(t.options,"debugRows"))},createTable:e=>{const t=(r,n)=>ct(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),ft(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),e.resetColumnVisibility=r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:r||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}};function ed(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const PCe={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},RCe={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Li("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r;const n=(r=e.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[t.id])==null?void 0:r.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var r,n,i,a;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Eo.includesString,e.getGlobalFilterFn=()=>{var t,r;const{globalFilterFn:n}=e.options;return Nu(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:Eo[n]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},ECe={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Li("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;e._autoResetExpanded=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var i,a;e.setExpanded(n?{}:(i=(a=e.initialState)==null?void 0:a.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const o=a.split(".");n=Math.max(n,o.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=r=>{t.setExpanded(n=>{var i;const a=n===!0?!0:!!(n!=null&&n[e.id]);let o={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=n,r=(i=r)!=null?i:!a,!a&&r)return{...o,[e.id]:!0};if(a&&!r){const{[e.id]:s,...l}=o;return l}return n})},e.getIsExpanded=()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n!=null&&n[e.id])},e.getCanExpand=()=>{var r,n,i;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let r=!0,n=e;for(;r&&n.parentId;)n=t.getRow(n.parentId,!0),r=n.getIsExpanded();return r},e.getToggleExpandedHandler=()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}}},IT=0,LT=10,nb=()=>({pageIndex:IT,pageSize:LT}),kCe={getInitialState:e=>({...e,pagination:{...nb(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Li("pagination",e)}),createTable:e=>{let t=!1,r=!1;e._autoResetPageIndex=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=n=>{const i=a=>Zs(n,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=n=>{var i;e.setPagination(n?nb():(i=e.initialState.pagination)!=null?i:nb())},e.setPageIndex=n=>{e.setPagination(i=>{let a=Zs(n,i.pageIndex);const o=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...i,pageIndex:a}})},e.resetPageIndex=n=>{var i,a;e.setPageIndex(n?IT:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:IT)},e.resetPageSize=n=>{var i,a;e.setPageSize(n?LT:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:LT)},e.setPageSize=n=>{e.setPagination(i=>{const a=Math.max(1,Zs(n,i.pageSize)),o=i.pageSize*i.pageIndex,s=Math.floor(o/a);return{...i,pageIndex:s,pageSize:a}})},e.setPageCount=n=>e.setPagination(i=>{var a;let o=Zs(n,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=ct(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((a,o)=>o)),i},ft(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:ne.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},ib=()=>({top:[],bottom:[]}),OCe={getInitialState:e=>({rowPinning:ib(),...e}),getDefaultOptions:e=>({onRowPinningChange:Li("rowPinning",e)}),createRow:(e,t)=>{e.pin=(r,n,i)=>{const a=n?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],o=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(l=>{var u,c;if(r==="bottom"){var f,h;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(g=>!(s!=null&&s.has(g))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)]}}if(r==="top"){var v,d;return{top:[...((v=l==null?void 0:l.top)!=null?v:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)],bottom:((d=l==null?void 0:l.bottom)!=null?d:[]).filter(g=>!(s!=null&&s.has(g)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(g=>!(s!=null&&s.has(g))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(g=>!(s!=null&&s.has(g)))}})},e.getCanPin=()=>{var r;const{enableRowPinning:n,enablePinning:i}=t.options;return typeof n=="function"?n(e):(r=n??i)!=null?r:!0},e.getIsPinned=()=>{const r=[e.id],{top:n,bottom:i}=t.getState().rowPinning,a=r.some(s=>n==null?void 0:n.includes(s)),o=r.some(s=>i==null?void 0:i.includes(s));return a?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();if(!i)return-1;const a=(r=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:r.map(o=>{let{id:s}=o;return s});return(n=a==null?void 0:a.indexOf(e.id))!=null?n:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var r,n;return e.setRowPinning(t?ib():(r=(n=e.initialState)==null?void 0:n.rowPinning)!=null?r:ib())},e.getIsSomeRowsPinned=t=>{var r;const n=e.getState().rowPinning;if(!t){var i,a;return!!((i=n.top)!=null&&i.length||(a=n.bottom)!=null&&a.length)}return!!((r=n[t])!=null&&r.length)},e._getPinnedRows=(t,r,n)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(r??[]).map(o=>{const s=e.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(r??[]).map(o=>t.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:n}))},e.getTopRows=ct(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,r)=>e._getPinnedRows(t,r,"top"),ft(e.options,"debugRows")),e.getBottomRows=ct(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,r)=>e._getPinnedRows(t,r,"bottom"),ft(e.options,"debugRows")),e.getCenterRows=ct(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,r,n)=>{const i=new Set([...r??[],...n??[]]);return t.filter(a=>!i.has(a.id))},ft(e.options,"debugRows"))}},NCe={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Li("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(a=>{a.getCanSelect()&&(n[a.id]=!0)}):i.forEach(a=>{delete n[a.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...r};return e.getRowModel().rows.forEach(a=>{PT(i,a.id,n,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ct(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?ab(e,r):{rows:[],flatRows:[],rowsById:{}},ft(e.options,"debugTable")),e.getFilteredSelectedRowModel=ct(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?ab(e,r):{rows:[],flatRows:[],rowsById:{}},ft(e.options,"debugTable")),e.getGroupedSelectedRowModel=ct(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?ab(e,r):{rows:[],flatRows:[],rowsById:{}},ft(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!(t.length&&Object.keys(r).length);return n&&t.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(i=>!r[i.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(r,n)=>{const i=e.getIsSelected();t.setRowSelection(a=>{var o;if(r=typeof r<"u"?r:!i,e.getCanSelect()&&i===r)return a;const s={...a};return PT(s,e.id,r,(o=n==null?void 0:n.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:r}=t.getState();return FD(e,r)},e.getIsSomeSelected=()=>{const{rowSelection:r}=t.getState();return RT(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=t.getState();return RT(e,r)==="all"},e.getCanSelect=()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},e.getCanSelectSubRows=()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},e.getCanMultiSelect=()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},e.getToggleSelectedHandler=()=>{const r=e.getCanSelect();return n=>{var i;r&&e.toggleSelected((i=n.target)==null?void 0:i.checked)}}}},PT=(e,t,r,n,i)=>{var a;const o=i.getRow(t,!0);r?(o.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),o.getCanSelect()&&(e[t]=!0)):delete e[t],n&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>PT(e,s.id,r,n,i))};function ab(e,t){const r=e.getState().rowSelection,n=[],i={},a=function(o,s){return o.map(l=>{var u;const c=FD(l,r);if(c&&(n.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:a(l.subRows)}),c)return l}).filter(Boolean)};return{rows:a(t.rows),flatRows:n,rowsById:i}}function FD(e,t){var r;return(r=t[e.id])!=null?r:!1}function RT(e,t,r){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let i=!0,a=!1;return e.subRows.forEach(o=>{if(!(a&&!i)&&(o.getCanSelect()&&(FD(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=RT(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const ET=/([0-9]+)/gm,FCe=(e,t,r)=>KU(ul(e.getValue(r)).toLowerCase(),ul(t.getValue(r)).toLowerCase()),VCe=(e,t,r)=>KU(ul(e.getValue(r)),ul(t.getValue(r))),BCe=(e,t,r)=>VD(ul(e.getValue(r)).toLowerCase(),ul(t.getValue(r)).toLowerCase()),zCe=(e,t,r)=>VD(ul(e.getValue(r)),ul(t.getValue(r))),GCe=(e,t,r)=>{const n=e.getValue(r),i=t.getValue(r);return n>i?1:nVD(e.getValue(r),t.getValue(r));function VD(e,t){return e===t?0:e>t?1:-1}function ul(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function KU(e,t){const r=e.split(ET).filter(Boolean),n=t.split(ET).filter(Boolean);for(;r.length&&n.length;){const i=r.shift(),a=n.shift(),o=parseInt(i,10),s=parseInt(a,10),l=[o,s].sort();if(isNaN(l[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return r.length-n.length}const sv={alphanumeric:FCe,alphanumericCaseSensitive:VCe,text:BCe,textCaseSensitive:zCe,datetime:GCe,basic:$Ce},HCe={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Li("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const i of r){const a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return sv.datetime;if(typeof a=="string"&&(n=!0,a.split(ET).length>1))return sv.alphanumeric}return n?sv.text:sv.basic},e.getAutoSortDir=()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof(r==null?void 0:r.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var r,n;if(!e)throw new Error;return Nu(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:sv[e.columnDef.sortingFn]},e.toggleSorting=(r,n)=>{const i=e.getNextSortingOrder(),a=typeof r<"u"&&r!==null;t.setSorting(o=>{const s=o==null?void 0:o.find(v=>v.id===e.id),l=o==null?void 0:o.findIndex(v=>v.id===e.id);let u=[],c,f=a?r:i==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&n?s?c="toggle":c="add":o!=null&&o.length&&l!==o.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(a||i||(c="remove")),c==="add"){var h;u=[...o,{id:e.id,desc:f}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=o.map(v=>v.id===e.id?{...v,desc:f}:v):c==="remove"?u=o.filter(v=>v.id!==e.id):u=[{id:e.id,desc:f}];return u})},e.getFirstSortDir=()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=r=>{var n,i;const a=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==a&&((n=t.options.enableSortingRemoval)==null||n)&&(!(r&&(i=t.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":a},e.getCanSort=()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},e.getIsSorted=()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(i=>i.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.clearSorting=()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const r=e.getCanSort();return n=>{r&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},WCe=[hCe,LCe,ACe,MCe,vCe,dCe,PCe,RCe,HCe,CCe,ECe,kCe,OCe,NCe,DCe];function UCe(e){var t,r;const n=[...WCe,...(t=e._features)!=null?t:[]];let i={_features:n};const a=i._features.reduce((h,v)=>Object.assign(h,v.getDefaultOptions==null?void 0:v.getDefaultOptions(i)),{}),o=h=>i.options.mergeOptions?i.options.mergeOptions(a,h):{...a,...h};let l={...{},...(r=e.initialState)!=null?r:{}};i._features.forEach(h=>{var v;l=(v=h.getInitialState==null?void 0:h.getInitialState(l))!=null?v:l});const u=[];let c=!1;const f={_features:n,options:{...a,...e},initialState:l,_queue:h=>{u.push(h),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(v=>setTimeout(()=>{throw v})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const v=Zs(h,i.options);i.options=o(v)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,v,d)=>{var g;return(g=i.options.getRowId==null?void 0:i.options.getRowId(h,v,d))!=null?g:`${d?[d.id,v].join("."):v}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,v)=>{let d=(v?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!d&&(d=i.getCoreRowModel().rowsById[h],!d))throw new Error;return d},_getDefaultColumnDef:ct(()=>[i.options.defaultColumn],h=>{var v;return h=(v=h)!=null?v:{},{header:d=>{const g=d.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:d=>{var g,m;return(g=(m=d.renderValue())==null||m.toString==null?void 0:m.toString())!=null?g:null},...i._features.reduce((d,g)=>Object.assign(d,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...h}},ft(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:ct(()=>[i._getColumnDefs()],h=>{const v=function(d,g,m){return m===void 0&&(m=0),d.map(y=>{const S=fCe(i,y,m,g),w=y;return S.columns=w.columns?v(w.columns,S,m+1):[],S})};return v(h)},ft(e,"debugColumns")),getAllFlatColumns:ct(()=>[i.getAllColumns()],h=>h.flatMap(v=>v.getFlatColumns()),ft(e,"debugColumns")),_getAllFlatColumnsById:ct(()=>[i.getAllFlatColumns()],h=>h.reduce((v,d)=>(v[d.id]=d,v),{}),ft(e,"debugColumns")),getAllLeafColumns:ct(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,v)=>{let d=h.flatMap(g=>g.getLeafColumns());return v(d)},ft(e,"debugColumns")),getColumn:h=>i._getAllFlatColumnsById()[h]};Object.assign(i,f);for(let h=0;hct(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(i,a,o){a===void 0&&(a=0);const s=[];for(let u=0;ue._autoResetPageIndex()))}function XCe(){return e=>ct(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,r,n)=>!r.rows.length||t!==!0&&!Object.keys(t??{}).length||!n?r:ZCe(r),ft(e.options,"debugTable"))}function ZCe(e){const t=[],r=n=>{var i;t.push(n),(i=n.subRows)!=null&&i.length&&n.getIsExpanded()&&n.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function qCe(){return e=>ct(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,r)=>{if(!r.rows.length||!t.length)return r.rows.forEach(l=>{l.depth=0,l.parentId=void 0}),r;const n=t.filter(l=>e.getColumn(l)),i=[],a={},o=function(l,u,c){if(u===void 0&&(u=0),u>=n.length)return l.map(d=>(d.depth=u,i.push(d),a[d.id]=d,d.subRows&&(d.subRows=o(d.subRows,u+1,d.id)),d));const f=n[u],h=jCe(l,f);return Array.from(h.entries()).map((d,g)=>{let[m,y]=d,S=`${f}:${m}`;S=c?`${c}>${S}`:S;const w=o(y,u+1,S);w.forEach(b=>{b.parentId=S});const x=u?GU(y,b=>b.subRows):y,T=$U(e,S,x[0].original,g,u,void 0,c);return Object.assign(T,{groupingColumnId:f,groupingValue:m,subRows:w,leafRows:x,getValue:b=>{if(n.includes(b)){if(T._valuesCache.hasOwnProperty(b))return T._valuesCache[b];if(y[0]){var A;T._valuesCache[b]=(A=y[0].getValue(b))!=null?A:void 0}return T._valuesCache[b]}if(T._groupingValuesCache.hasOwnProperty(b))return T._groupingValuesCache[b];const M=e.getColumn(b),D=M==null?void 0:M.getAggregationFn();if(D)return T._groupingValuesCache[b]=D(b,x,y),T._groupingValuesCache[b]}}),w.forEach(b=>{i.push(b),a[b.id]=b}),T})},s=o(r.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},ft(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function jCe(e,t){const r=new Map;return e.reduce((n,i)=>{const a=`${i.getGroupingValue(t)}`,o=n.get(a);return o?o.push(i):n.set(a,[i]),n},r)}function KCe(){return e=>ct(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,i=[],a=n.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),o={};a.forEach(l=>{const u=e.getColumn(l.id);u&&(o[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(c=>({...c}));return u.sort((c,f)=>{for(let v=0;v{var f;i.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(r.rows),flatRows:i,rowsById:r.rowsById}},ft(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/** * vue-table * * Copyright (c) TanStack @@ -143,10 +143,10 @@ PERFORMANCE OF THIS SOFTWARE. * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Im(){return!0}const QCe=Symbol("merge-proxy"),eTe={get(e,t,r){return t===QCe?r:e.get(t)},has(e,t){return e.has(t)},set:Im,deleteProperty:Im,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Im,deleteProperty:Im}},ownKeys(e){return e.keys()}};function ob(e){return"value"in e?e.value:e}function Dv(){for(var e=arguments.length,t=new Array(e),r=0;r=0;i--){const a=ob(t[i])[n];if(a!==void 0)return a}},has(n){for(let i=t.length-1;i>=0;i--)if(n in ob(t[i]))return!0;return!1},keys(){const n=[];for(let i=0;i()=>typeof e.render=="function"||typeof e.render=="object"?No(e.render,e.props):e.render});function lV(e){return Dv(e,{data:oe(e.data)})}function tTe(e){const t=sr(e.data),r=Dv({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(a,o){return t?{...a,...o}:Dv(a,o)}},t?lV(e):e),n=YCe(r);if(t){const a=W0(e.data);hr(a,()=>{n.setState(o=>({...o,data:a.value}))},{immediate:!0})}const i=Je(n.initialState);return rA(()=>{n.setOptions(a=>{var o;const s=new Proxy({},{get:(l,u)=>i.value[u]});return Dv(a,t?lV(e):e,{state:Dv(s,(o=e.state)!=null?o:{}),onStateChange:l=>{l instanceof Function?i.value=l(i.value):i.value=l,e.onStateChange==null||e.onStateChange(l)}})})}),n}const rTe={class:"table table-zebra table-xs overflow-hidden rounded-lg bg-base-100 shadow-lg"},nTe={class:"bg-base-100"},iTe=["colSpan","onClick"],aTe={class:"flex items-center gap-1"},oTe=["onClick"],sTe=["onClick"],lTe={key:0},uTe=Qt({__name:"ConnectionTable",emits:["info"],setup(e,{emit:t}){const r=t,{t:n}=Wu(),i=[{header:()=>n("details"),enableSorting:!1,id:Nr.Details,cell:({row:u})=>No("button",{class:"btn btn-xs btn-circle",onClick:()=>{const c=u.original;r("info",c)}},[No(X3,{class:"h-4 w-4"})])},{header:()=>n("close"),enableSorting:!1,id:Nr.Close,cell:({row:u})=>No("button",{class:"btn btn-xs btn-circle",onClick:()=>{const c=u.original;t_(c.id)}},[No(AA,{class:"h-4 w-4"})])},{header:()=>n("type"),id:Nr.Type,accessorFn:u=>`${u.metadata.type} | ${u.metadata.network}`},{header:()=>n("process"),id:Nr.Process,accessorFn:u=>u.metadata.processPath||"-"},{header:()=>n("host"),id:Nr.Host,accessorFn:u=>`${u.metadata.host?u.metadata.host:u.metadata.destinationIP}:${u.metadata.destinationPort}`},{header:()=>n("rule"),id:Nr.Rule,accessorFn:u=>u.rulePayload?`${u.rule} -> ${u.rulePayload}`:u.rule},{header:()=>n("chains"),id:Nr.Chains,accessorFn:u=>u.chains.slice().reverse().join(" -> ")},{header:()=>n("connectTime"),enableGrouping:!1,id:Nr.ConnectTime,accessorFn:u=>i_(u.start),sortingFn:(u,c)=>Fu(u.original.start).valueOf()-Fu(c.original.start).valueOf()},{header:()=>n("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:Nr.DlSpeed,accessorFn:u=>`${Pr(u.downloadSpeed)}/s`,sortingFn:(u,c)=>u.original.downloadSpeed-c.original.downloadSpeed},{header:()=>n("ulSpeed"),enableGrouping:!1,id:Nr.UlSpeed,accessorFn:u=>`${Pr(u.uploadSpeed)}/s`,sortingFn:(u,c)=>u.original.uploadSpeed-c.original.uploadSpeed},{header:()=>n("dl"),enableGrouping:!1,id:Nr.Download,accessorFn:u=>Pr(u.download),sortingFn:(u,c)=>u.original.download-c.original.download},{header:()=>n("ul"),enableGrouping:!1,id:Nr.Upload,accessorFn:u=>Pr(u.upload),sortingFn:(u,c)=>u.original.upload-c.original.upload},{header:()=>n("sourceIP"),id:Nr.SourceIP,accessorFn:u=>u.metadata.sourceIP},{header:()=>n("sourcePort"),id:Nr.SourcePort,accessorFn:u=>u.metadata.sourcePort},{header:()=>n("destination"),id:Nr.Destination,accessorFn:u=>u.metadata.destinationIP||u.metadata.host}],a=Je([]),o=Je({}),s=Wr("config/table-sorting",[]),l=tTe({get data(){return ky.value},columns:i,state:{get columnOrder(){return m2.value},get columnVisibility(){return{...Object.fromEntries(Object.values(Nr).map(u=>[u,!1])),...Object.fromEntries(m2.value.map(u=>[u,!0]))}},get grouping(){return a.value},get expanded(){return o.value},get sorting(){return s.value}},onGroupingChange:u=>{Nu(u)?a.value=u(a.value):a.value=u},onExpandedChange:u=>{Nu(u)&&(o.value=u(o.value))},onSortingChange:u=>{Nu(u)?s.value=u(s.value):s.value=u},getSortedRowModel:JCe(),getGroupedRowModel:jCe(),getExpandedRowModel:ZCe(),getCoreRowModel:XCe()});return(u,c)=>(he(),Te("table",rTe,[se("thead",nTe,[(he(!0),Te(wt,null,wr(oe(l).getHeaderGroups(),f=>(he(),Te("tr",{key:f.id},[(he(!0),Te(wt,null,wr(f.headers,h=>(he(),Te("th",{key:h.id,colSpan:h.colSpan,class:Gt(h.column.getCanSort()?"cursor-pointer select-none":""),onClick:v=>{var d;return(d=h.column.getToggleSortingHandler())==null?void 0:d(v)}},[se("div",aTe,[h.column.getCanGroup()?(he(),Te("button",{key:0,class:"cursor-pointer",onClick:oA(()=>h.column.getToggleGroupingHandler()(),["stop"])},[h.column.getIsGrouped()?(he(),qt(oe(Q2),{key:0,class:"h-4 w-4"})):(he(),qt(oe(eR),{key:1,class:"h-4 w-4"}))],8,oTe)):jt("",!0),h.isPlaceholder?jt("",!0):(he(),qt(oe(Lm),{key:1,render:h.column.columnDef.header,props:h.getContext()},null,8,["render","props"])),h.column.getIsSorted()==="asc"?(he(),qt(oe(G3),{key:2,class:"h-4 w-4"})):jt("",!0),h.column.getIsSorted()==="desc"?(he(),qt(oe(B3),{key:3,class:"h-4 w-4"})):jt("",!0)])],10,iTe))),128))]))),128))]),se("tbody",null,[(he(!0),Te(wt,null,wr(oe(l).getRowModel().rows,f=>(he(),Te("tr",{key:f.id,class:"h-9 hover:!bg-primary hover:text-primary-content"},[(he(!0),Te(wt,null,wr(f.getVisibleCells(),h=>(he(),Te("td",{key:h.id,class:"text-sm"},[se("div",{class:Gt(oe(Qr)("flex items-center gap-2 whitespace-nowrap",[oe(Nr).Download,oe(Nr).DlSpeed,oe(Nr).Upload,oe(Nr).UlSpeed].includes(h.column.id)&&"w-14"))},[h.column.getIsGrouped()?(he(),Te(wt,{key:0},[f.getCanExpand()?(he(),Te(wt,{key:0},[se("button",{onClick:()=>f.getToggleExpandedHandler()(),class:"cursor-pointer"},[f.getIsExpanded()?(he(),qt(oe(Q2),{key:0,class:"h-4 w-4"})):(he(),qt(oe(eR),{key:1,class:"h-4 w-4"}))],8,sTe),ze(oe(Lm),{render:h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"]),h.column.getIsGrouped()?(he(),Te("div",lTe,"("+Xe(f.subRows.length)+")",1)):jt("",!0)],64)):jt("",!0)],64)):h.getIsAggregated()?(he(),qt(oe(Lm),{key:1,render:h.column.columnDef.aggregatedCell??h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"])):h.getIsPlaceholder()?jt("",!0):(he(),qt(oe(Lm),{key:2,render:h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"]))],2)]))),128))]))),128))])]))}});var k0={d:(e,t)=>{for(var r in t)k0.o(t,r)&&!k0.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},JU={};function kT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rdTe});const nt=(uV={computed:()=>dt,createTextVNode:()=>Ir,createVNode:()=>ze,defineComponent:()=>Qt,reactive:()=>Wf,ref:()=>Je,watch:()=>hr,watchEffect:()=>rA},sb={},k0.d(sb,uV),sb),cTe=(0,nt.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,nt.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),fTe=(0,nt.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var r=t.emit;return{uiType:(0,nt.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,nt.computed)({get:function(){return e.checked},set:function(n){return r("update:modelValue",n)}})}},render:function(){var e=this.uiType,t=this.model,r=this.$emit;return(0,nt.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(n){return n.stopPropagation()}},[(0,nt.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,nt.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return r("change",t)}},null)])}}),hTe=(0,nt.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,r=e==="objectStart"||e==="arrayStart";return r||e==="objectCollapsed"||e==="arrayCollapsed"?(0,nt.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(r?"open":"close"),onClick:t},[(0,nt.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,nt.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var uV,sb;function OT(e){return OT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OT(e)}function e8(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function au(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0,i=n||{},a=i.key,o=i.index,s=i.type,l=s===void 0?"content":s,u=i.showComma,c=u!==void 0&&u,f=i.length,h=f===void 0?1:f,v=e8(e);if(v==="array"){var d=cV(e.map(function(y,S,w){return au(y,"".concat(t,"[").concat(S,"]"),r+1,{index:S,showComma:S!==w.length-1,length:h,type:l})}));return[au("[",t,r,{showComma:!1,key:a,length:e.length,type:"arrayStart"})[0]].concat(d,au("]",t,r,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(v==="object"){var g=Object.keys(e),m=cV(g.map(function(y,S,w){return au(e[y],/^[a-zA-Z_]\w*$/.test(y)?"".concat(t,".").concat(y):"".concat(t,'["').concat(y,'"]'),r+1,{key:y,showComma:S!==w.length-1,length:h,type:l})}));return[au("{",t,r,{showComma:!1,key:a,index:o,length:g.length,type:"objectStart"})[0]].concat(m,au("}",t,r,{showComma:c,length:g.length,type:"objectEnd"})[0])}return[{content:e,level:r,key:a,index:o,path:t,showComma:c,length:h,type:l}]}function cV(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=O0(e),r=[];t.length;){var n=t.shift();Array.isArray(n)?t.unshift.apply(t,O0(n)):r.push(n)}return r}function NT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(OT(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var r=e.map(function(a){return NT(a,t)});return t.set(e,r),r}var n={};for(var i in e)n[i]=NT(e[i],t);return t.set(e,n),n}function fV(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hV(e){for(var t=1;t=w||b.length>=x,D=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,b);return b.type!=="objectStart"&&b.type!=="arrayStart"||!M&&!D?T:wi(wi({},T),{},N0({},b.path,1))},{})},s=(0,nt.reactive)({translateY:0,visibleData:null,hiddenPaths:o(e.deep,e.collapsedNodeLength)}),l=(0,nt.computed)(function(){for(var w=null,x=[],T=a.value.length,b=0;bw.length?w.length-T:A;M<0&&(M=0);var D=M+T;s.translateY=M*e.itemHeight,s.visibleData=w.filter(function(L,P){return P>=M&&P{var a;t.value=i,(a=r.value)==null||a.showModal()};return(i,a)=>(he(),Te("div",gTe,[oe(wa)?(he(),qt(rz,{key:0,horizontal:!0})):jt("",!0),oe(pA)?(he(),Te(wt,{key:1},[oe(ky).length?jt("",!0):(he(),Te("div",mTe,Xe(i.$t("noContent")),1)),se("div",yTe,[(he(!0),Te(wt,null,wr(oe(ky),o=>(he(),qt(oe(uCe),{key:o.id,conn:o,onInfo:n},null,8,["conn"]))),128))])],64)):(he(),qt(uTe,{key:2,onInfo:n})),se("dialog",{ref_key:"modalRef",ref:r,class:"modal"},[se("div",_Te,[ze(oe(pTe),{data:t.value},null,8,["data"])]),a[0]||(a[0]=se("form",{method:"dialog",class:"modal-backdrop"},[se("button",null,"close")],-1))],512)]))}}),wTe={class:"flex h-full flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},xTe={key:1,class:"card w-full flex-row gap-1 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},bTe=Qt({__name:"LogsPage",setup(e){const t={[ef.Error]:"text-error",[ef.Warning]:"text-warning",[ef.Info]:"text-primary",[ef.Debug]:"text-accent"},r=dt(()=>pv.value.filter(n=>pf.value?n.payload.includes(pf.value)||n.type.includes(pf.value):!0));return(n,i)=>(he(),Te("div",wTe,[oe(wa)?(he(),qt(nz,{key:0,horizontal:!0})):jt("",!0),r.value.length?jt("",!0):(he(),Te("div",xTe,Xe(n.$t("noContent")),1)),(he(!0),Te(wt,null,wr(r.value,a=>(he(),Te("div",{key:a.seq,class:"card w-full flex-row gap-1 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},[se("span",null,Xe(a.seq),1),se("span",{class:Gt(t[a.type])},Xe(a.type),3),se("span",null,Xe(a.payload),1)]))),128))]))}});var Xr=(e=>(e[e.MEDIUM=300]="MEDIUM",e[e.HIGH=800]="HIGH",e[e.NOT_CONNECTED=0]="NOT_CONNECTED",e))(Xr||{});const CTe={class:"badge flex w-12 items-center justify-center shadow-sm"},r8=Qt({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,r=dt(()=>n_(t.name)),n=dt(()=>r.value(he(),Te("div",CTe,[r.value>0?(he(),Te("div",{key:0,class:Gt(oe(Qr)("text-xs",n.value))},Xe(r.value)+"ms ",3)):(he(),qt(oe(H3),{key:1,class:"h-4 w-4"}))]))}}),TTe={class:"flex-1 whitespace-nowrap text-xs md:text-sm"},ATe={class:"flex items-center gap-2 text-xs"},MTe={class:"flex-1"},DTe={key:0},n8=Qt({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,r=dt(()=>Af.value[t.name]),n=Je(!1),i=o=>(o=o.toLowerCase(),o=o.replace("shadowsocks","ss"),o=o.replace("hysteria","hy"),o=o.replace("wireguard","wg"),o),a=async()=>{if(!n.value){n.value=!0;try{await tte(t.name),n.value=!1}catch{n.value=!1}}};return(o,s)=>(he(),Te("div",{class:Gt(oe(Qr)("flex cursor-pointer flex-wrap items-center justify-end gap-2 rounded-md bg-base-200 p-2 shadow-md",t.active&&"bg-primary text-primary-content"))},[se("div",TTe,Xe(r.value.name),1),se("div",ATe,[se("div",MTe,[se("span",null,Xe(i(r.value.type)),1),r.value.udp?(he(),Te("span",DTe," | udp")):jt("",!0)]),ze(r8,{class:Gt(n.value?"animate-pulse":""),name:r.value.name,onClick:oA(a,["stop"])},null,8,["class","name"])])],2))}}),ITe={key:0,class:"flex flex-wrap gap-1 pt-2"},LTe={key:0,class:"h-2 w-2 rounded-full bg-white"},PTe={key:1,class:"flex items-center gap-2 py-2"},RTe={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},ETe=Qt({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,r=dt(()=>t.nodes.map(l=>({latency:n_(l),name:l}))),n=l=>l===Xr.NOT_CONNECTED?"bg-gray-500":lr.value.filter(l=>l.latencyXr.NOT_CONNECTED).length),a=dt(()=>r.value.filter(l=>l.latency>=Xr.MEDIUM&&l.latencyr.value.filter(l=>l.latency>=Xr.HIGH).length),s=dt(()=>r.value.filter(l=>l.latency===Xr.NOT_CONNECTED).length);return(l,u)=>l.nodes.length<20?(he(),Te("div",ITe,[(he(!0),Te(wt,null,wr(r.value,c=>(he(),Te("div",{key:c.name,class:Gt(["flex h-4 w-4 items-center justify-center rounded-full shadow-lg",n(c.latency)])},[l.now===c.name?(he(),Te("div",LTe)):jt("",!0)],2))),128))])):(he(),Te("div",PTe,[se("div",RTe,[se("div",{class:Gt(n(oe(Xr).MEDIUM-1)),style:fu({width:`${i.value*100/l.nodes.length}%`})},null,6),se("div",{class:Gt(n(oe(Xr).HIGH-1)),style:fu({width:`${a.value*100/l.nodes.length}%`})},null,6),se("div",{class:Gt(n(oe(Xr).HIGH+1)),style:fu({width:`${o.value*100/l.nodes.length}%`})},null,6),se("div",{class:Gt(n(oe(Xr).NOT_CONNECTED)),style:fu({width:`${s.value*100/l.nodes.length}%`})},null,6)])]))}}),kTe={class:"collapse collapse-arrow bg-base-100 shadow-lg"},OTe={class:"collapse-title"},NTe={class:"flex items-center gap-2"},FTe={class:"text-lg font-medium sm:text-xl"},VTe={class:"text-xs sm:text-sm"},BTe={class:"text-sm"},zTe={class:"collapse-content flex flex-col gap-2"},GTe=Qt({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,r=dt({get(){return Ry.value[t.name]},set(u){Ry.value[t.name]=u}}),n=Je(r.value);hr(r,u=>{u?n.value=u:setTimeout(()=>{u===r.value&&(n.value=u)},1e3)});const i=dt(()=>Af.value[t.name]),a=dt(()=>w3(i.value.all??[])),o=Je(!1),s=async()=>{if(!o.value){o.value=!0;try{await rte(t.name),o.value=!1}catch{o.value=!1}}},l=dt(()=>Vs.value.filter(c=>c.chains.includes(t.name)).reduce((c,f)=>c+f.downloadSpeed,0));return(u,c)=>(he(),Te("div",kTe,[se("div",OTe,[se("div",NTe,[se("div",FTe,Xe(i.value.name),1),se("div",VTe,Xe(i.value.now),1),ze(r8,{class:Gt(oe(Qr)("z-10",o.value?"animate-pulse":"")),name:i.value.now,onClick:oA(s,["stop"])},null,8,["class","name"]),c[1]||(c[1]=se("div",{class:"flex-1"},null,-1)),se("div",BTe,Xe(oe(Pr)(l.value))+"/s",1)]),ze(ETe,{nodes:a.value,now:i.value.now},null,8,["nodes","now"])]),ci(se("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=f=>r.value=f)},null,512),[[aA,r.value]]),se("div",zTe,[n.value?(he(),Te("div",{key:0,class:Gt(oe(Qr)("grid grid-cols-1 gap-2 sm:grid-cols-2 3xl:grid-cols-3",!oe(dA)&&"lg:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5"))},[(he(!0),Te(wt,null,wr(a.value,f=>(he(),qt(n8,{key:f,name:f,active:f===i.value.now,onClick:h=>oe(ete)(i.value.name,f)},null,8,["name","active","onClick"]))),128))],2)):jt("",!0)])]))}}),$Te={class:"collapse collapse-arrow bg-base-100 shadow-lg"},HTe={class:"collapse-title"},WTe={class:"flex items-center gap-2"},UTe={class:"text-lg font-medium sm:text-xl"},YTe={class:"flex gap-2"},XTe=["value"],ZTe={class:"flex gap-4"},qTe={class:"text-sm text-slate-500"},jTe={class:"text-sm text-slate-500"},KTe={class:"text-sm text-slate-500"},JTe={key:1,class:"flex flex-wrap gap-1 pt-2"},QTe={class:"collapse-content flex flex-col gap-2"},eAe=Qt({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,r=v=>v===Xr.NOT_CONNECTED?"bg-gray-500":v{v?i.value=v:setTimeout(()=>{v===n.value&&(i.value=v)},1e3)});const a=v=>{const{Download:d=0,Upload:g=0,Total:m=0,Expire:y=0}=v,S=Pr(m,{binary:!0}),w=Pr(d+g,{binary:!0}),x=Cf.toFinite(((d+g)/m*100).toFixed(2));return{total:S,used:w,percentage:x,expirePrefix:()=>{const{t:A}=Wu();return A("expire")},expireStr:()=>{const{t:A}=Wu();return y===0?A("noExpire"):Fu(y*1e3).format("YYYY-MM-DD")}}},o=dt(()=>vf.value.find(v=>v.name===t.name)),s=dt(()=>w3(o.value.proxies.map(v=>v.name))),l=dt(()=>o.value.subscriptionInfo?a(o.value.subscriptionInfo):null),u=Je(!1),c=Je(!1),f=async()=>{if(!c.value){c.value=!0;try{await $ee(t.name),await Oy(),c.value=!1}catch{c.value=!1}}},h=async()=>{if(!u.value){u.value=!0;try{await v3(t.name),await Oy(),u.value=!1}catch{u.value=!1}}};return(v,d)=>(he(),Te("div",$Te,[se("div",HTe,[se("div",WTe,[se("div",UTe,Xe(o.value.name),1),d[1]||(d[1]=se("div",{class:"flex-1"},null,-1)),se("div",YTe,[se("button",{class:Gt(oe(Qr)("btn btn-circle btn-xs z-30",c.value?"animate-pulse":"")),onClick:f},[ze(oe(H3),{class:"h-4 w-4"})],2),se("button",{class:Gt(oe(Qr)("btn btn-circle btn-xs z-30",u.value?"animate-spin":"")),onClick:h},[ze(oe(z3),{class:"h-4 w-4"})],2)])]),l.value?(he(),Te("progress",{key:0,class:"progress",value:l.value.percentage,max:"100"},null,8,XTe)):jt("",!0),se("div",ZTe,[l.value?(he(),Te(wt,{key:0},[se("div",qTe,Xe(l.value.used)+" / "+Xe(l.value.total)+" ( "+Xe(l.value.percentage)+"% ) ",1),se("div",jTe,Xe(l.value.expirePrefix())+": "+Xe(l.value.expireStr()),1)],64)):jt("",!0),se("div",KTe,Xe(v.$t("updated"))+" "+Xe(oe(i_)(o.value.updatedAt)),1)]),n.value?jt("",!0):(he(),Te("div",JTe,[(he(!0),Te(wt,null,wr(s.value,g=>(he(),Te("div",{key:g,class:Gt(["flex h-4 w-4 items-center justify-center rounded-full shadow-lg",r(oe(n_)(g))])},null,2))),128))]))]),ci(se("input",{type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=g=>n.value=g)},null,512),[[aA,n.value]]),se("div",QTe,[i.value?(he(),Te("div",{key:0,class:Gt(oe(Qr)("grid grid-cols-1 gap-2 sm:grid-cols-2 3xl:grid-cols-3",!oe(dA)&&"lg:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5"))},[(he(!0),Te(wt,null,wr(s.value,g=>(he(),qt(n8,{key:g,name:g},null,8,["name"]))),128))],2)):jt("",!0)])]))}}),tAe={class:"h-full overflow-y-auto overflow-x-hidden p-2"},rAe={key:1,class:"grid grid-cols-2 gap-1"},nAe={key:2,class:"grid grid-cols-1 gap-1"},iAe=Qt({__name:"ProxiesPage",setup(e){const t=dt(()=>hf.value===Tf.PROVIDER?eAe:GTe),r=dt(()=>hf.value===Tf.PROVIDER?vf.value.map(i=>i.name):jee.value&&qm.value.length?[...qm.value,Mb]:qm.value),n=(i,a)=>i.filter((o,s)=>s%2===a);return(i,a)=>(he(),Te("div",tAe,[oe(wa)?(he(),qt(iz,{key:0,horizontal:!0})):jt("",!0),oe(S3)&&oe(dA)&&r.value.length>1?(he(),Te("div",rAe,[(he(),Te(wt,null,wr([0,1],o=>se("div",{key:o,class:"flex flex-1 flex-col gap-1"},[(he(!0),Te(wt,null,wr(n(r.value,o),s=>(he(),qt(Bu(t.value),{key:s,name:s},null,8,["name"]))),128))])),64))])):(he(),Te("div",nAe,[(he(!0),Te(wt,null,wr(r.value,o=>(he(),qt(Bu(t.value),{key:o,name:o},null,8,["name"]))),128))]))]))}}),aAe={class:"card w-full flex-row gap-1 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},oAe={class:"w-20 text-primary"},sAe={class:"flex-1"},lAe=Qt({__name:"RuleCard",props:{rule:{}},setup(e){return(t,r)=>(he(),Te("div",aAe,[se("div",oAe,Xe(t.rule.proxy),1),se("div",sAe,Xe(t.rule.payload),1)]))}}),uAe={class:"card w-full flex-row items-center gap-1 rounded-xl bg-base-100 p-1 px-2 text-sm shadow-lg"},cAe={class:"w-48 flex-1 text-primary"},fAe={class:"w-16"},hAe={class:"w-16"},vAe={class:"w-48"},dAe=Qt({__name:"RuleProvider",props:{ruleProvider:{}},setup(e){const t=Je(!1),r=e,n=async()=>{t.value||(t.value=!0,await d3(r.ruleProvider.name),DA(),t.value=!1)};return(i,a)=>(he(),Te("div",null,[se("div",uAe,[se("span",cAe,Xe(i.ruleProvider.name)+" ("+Xe(i.ruleProvider.ruleCount)+") ",1),se("span",fAe,Xe(i.ruleProvider.behavior),1),se("span",hAe,Xe(i.ruleProvider.vehicleType),1),se("span",vAe,Xe(i.$t("updated"))+" "+Xe(oe(i_)(i.ruleProvider.updatedAt)),1),se("button",{class:Gt(oe(Qr)("btn btn-circle btn-xs",t.value?"animate-spin":"")),onClick:n},[ze(oe(z3),{class:"h-4 w-4"})],2)])]))}}),pAe={class:"flex h-full flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},gAe=Qt({__name:"RulesPage",setup(e){return(t,r)=>(he(),Te("div",pAe,[oe(wa)?(he(),qt(oz,{key:0,horizontal:!0})):jt("",!0),oe(Ov)===oe(fd).PROVIDER?(he(!0),Te(wt,{key:1},wr(oe(Vy),n=>(he(),qt(dAe,{key:n.name,ruleProvider:n},null,8,["ruleProvider"]))),128)):(he(!0),Te(wt,{key:2},wr(oe(az),n=>(he(),qt(lAe,{key:n.payload,rule:n},null,8,["rule"]))),128))]))}});/*! + */function Im(){return!0}const JCe=Symbol("merge-proxy"),QCe={get(e,t,r){return t===JCe?r:e.get(t)},has(e,t){return e.has(t)},set:Im,deleteProperty:Im,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Im,deleteProperty:Im}},ownKeys(e){return e.keys()}};function ob(e){return"value"in e?e.value:e}function Dv(){for(var e=arguments.length,t=new Array(e),r=0;r=0;i--){const a=ob(t[i])[n];if(a!==void 0)return a}},has(n){for(let i=t.length-1;i>=0;i--)if(n in ob(t[i]))return!0;return!1},keys(){const n=[];for(let i=0;i()=>typeof e.render=="function"||typeof e.render=="object"?No(e.render,e.props):e.render});function lV(e){return Dv(e,{data:se(e.data)})}function eTe(e){const t=sr(e.data),r=Dv({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(a,o){return t?{...a,...o}:Dv(a,o)}},t?lV(e):e),n=UCe(r);if(t){const a=W0(e.data);hr(a,()=>{n.setState(o=>({...o,data:a.value}))},{immediate:!0})}const i=Je(n.initialState);return rA(()=>{n.setOptions(a=>{var o;const s=new Proxy({},{get:(l,u)=>i.value[u]});return Dv(a,t?lV(e):e,{state:Dv(s,(o=e.state)!=null?o:{}),onStateChange:l=>{l instanceof Function?i.value=l(i.value):i.value=l,e.onStateChange==null||e.onStateChange(l)}})})}),n}const tTe={class:"table table-zebra table-xs overflow-hidden rounded-lg bg-base-100 shadow-lg"},rTe={class:"bg-base-100"},nTe=["colSpan","onClick"],iTe={class:"flex items-center gap-1"},aTe=["onClick"],oTe=["onClick"],sTe={key:0},lTe=Jt({__name:"ConnectionTable",emits:["info"],setup(e,{emit:t}){const r=t,{t:n}=Wu(),i=[{header:()=>n("details"),enableSorting:!1,id:Nr.Details,cell:({row:u})=>No("button",{class:"btn btn-xs btn-circle",onClick:()=>{const c=u.original;r("info",c)}},[No(X3,{class:"h-4 w-4"})])},{header:()=>n("close"),enableSorting:!1,id:Nr.Close,cell:({row:u})=>No("button",{class:"btn btn-xs btn-circle",onClick:()=>{const c=u.original;t_(c.id)}},[No(AA,{class:"h-4 w-4"})])},{header:()=>n("type"),id:Nr.Type,accessorFn:u=>`${u.metadata.type} | ${u.metadata.network}`},{header:()=>n("process"),id:Nr.Process,accessorFn:u=>u.metadata.processPath||"-"},{header:()=>n("host"),id:Nr.Host,accessorFn:u=>`${u.metadata.host?u.metadata.host:u.metadata.destinationIP}:${u.metadata.destinationPort}`},{header:()=>n("rule"),id:Nr.Rule,accessorFn:u=>u.rulePayload?`${u.rule} -> ${u.rulePayload}`:u.rule},{header:()=>n("chains"),id:Nr.Chains,accessorFn:u=>u.chains.slice().reverse().join(" -> ")},{header:()=>n("connectTime"),enableGrouping:!1,id:Nr.ConnectTime,accessorFn:u=>i_(u.start),sortingFn:(u,c)=>Fu(u.original.start).valueOf()-Fu(c.original.start).valueOf()},{header:()=>n("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:Nr.DlSpeed,accessorFn:u=>`${Pr(u.downloadSpeed)}/s`,sortingFn:(u,c)=>u.original.downloadSpeed-c.original.downloadSpeed},{header:()=>n("ulSpeed"),enableGrouping:!1,id:Nr.UlSpeed,accessorFn:u=>`${Pr(u.uploadSpeed)}/s`,sortingFn:(u,c)=>u.original.uploadSpeed-c.original.uploadSpeed},{header:()=>n("dl"),enableGrouping:!1,id:Nr.Download,accessorFn:u=>Pr(u.download),sortingFn:(u,c)=>u.original.download-c.original.download},{header:()=>n("ul"),enableGrouping:!1,id:Nr.Upload,accessorFn:u=>Pr(u.upload),sortingFn:(u,c)=>u.original.upload-c.original.upload},{header:()=>n("sourceIP"),id:Nr.SourceIP,accessorFn:u=>u.metadata.sourceIP},{header:()=>n("sourcePort"),id:Nr.SourcePort,accessorFn:u=>u.metadata.sourcePort},{header:()=>n("destination"),id:Nr.Destination,accessorFn:u=>u.metadata.destinationIP||u.metadata.host}],a=Je([]),o=Je({}),s=Wr("config/table-sorting",[]),l=eTe({get data(){return ky.value},columns:i,state:{get columnOrder(){return m2.value},get columnVisibility(){return{...Object.fromEntries(Object.values(Nr).map(u=>[u,!1])),...Object.fromEntries(m2.value.map(u=>[u,!0]))}},get grouping(){return a.value},get expanded(){return o.value},get sorting(){return s.value}},onGroupingChange:u=>{Nu(u)?a.value=u(a.value):a.value=u},onExpandedChange:u=>{Nu(u)&&(o.value=u(o.value))},onSortingChange:u=>{Nu(u)?s.value=u(s.value):s.value=u},getSortedRowModel:KCe(),getGroupedRowModel:qCe(),getExpandedRowModel:XCe(),getCoreRowModel:YCe()});return(u,c)=>(he(),Ae("table",tTe,[oe("thead",rTe,[(he(!0),Ae(wt,null,wr(se(l).getHeaderGroups(),f=>(he(),Ae("tr",{key:f.id},[(he(!0),Ae(wt,null,wr(f.headers,h=>(he(),Ae("th",{key:h.id,colSpan:h.colSpan,class:Gt(h.column.getCanSort()?"cursor-pointer select-none":""),onClick:v=>{var d;return(d=h.column.getToggleSortingHandler())==null?void 0:d(v)}},[oe("div",iTe,[h.column.getCanGroup()?(he(),Ae("button",{key:0,class:"cursor-pointer",onClick:oA(()=>h.column.getToggleGroupingHandler()(),["stop"])},[h.column.getIsGrouped()?(he(),qt(se(Q2),{key:0,class:"h-4 w-4"})):(he(),qt(se(eR),{key:1,class:"h-4 w-4"}))],8,aTe)):nr("",!0),h.isPlaceholder?nr("",!0):(he(),qt(se(Lm),{key:1,render:h.column.columnDef.header,props:h.getContext()},null,8,["render","props"])),h.column.getIsSorted()==="asc"?(he(),qt(se(G3),{key:2,class:"h-4 w-4"})):nr("",!0),h.column.getIsSorted()==="desc"?(he(),qt(se(B3),{key:3,class:"h-4 w-4"})):nr("",!0)])],10,nTe))),128))]))),128))]),oe("tbody",null,[(he(!0),Ae(wt,null,wr(se(l).getRowModel().rows,f=>(he(),Ae("tr",{key:f.id,class:"h-9 hover:!bg-primary hover:text-primary-content"},[(he(!0),Ae(wt,null,wr(f.getVisibleCells(),h=>(he(),Ae("td",{key:h.id,class:"text-sm"},[oe("div",{class:Gt(se(Qr)("flex items-center gap-2 whitespace-nowrap",[se(Nr).Download,se(Nr).DlSpeed,se(Nr).Upload,se(Nr).UlSpeed].includes(h.column.id)&&"w-14"))},[h.column.getIsGrouped()?(he(),Ae(wt,{key:0},[f.getCanExpand()?(he(),Ae(wt,{key:0},[oe("button",{onClick:()=>f.getToggleExpandedHandler()(),class:"cursor-pointer"},[f.getIsExpanded()?(he(),qt(se(Q2),{key:0,class:"h-4 w-4"})):(he(),qt(se(eR),{key:1,class:"h-4 w-4"}))],8,oTe),ze(se(Lm),{render:h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"]),h.column.getIsGrouped()?(he(),Ae("div",sTe,"("+Xe(f.subRows.length)+")",1)):nr("",!0)],64)):nr("",!0)],64)):h.getIsAggregated()?(he(),qt(se(Lm),{key:1,render:h.column.columnDef.aggregatedCell??h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"])):h.getIsPlaceholder()?nr("",!0):(he(),qt(se(Lm),{key:2,render:h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"]))],2)]))),128))]))),128))])]))}});var k0={d:(e,t)=>{for(var r in t)k0.o(t,r)&&!k0.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},JU={};function kT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rvTe});const nt=(uV={computed:()=>dt,createTextVNode:()=>Ir,createVNode:()=>ze,defineComponent:()=>Jt,reactive:()=>Wf,ref:()=>Je,watch:()=>hr,watchEffect:()=>rA},sb={},k0.d(sb,uV),sb),uTe=(0,nt.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,nt.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),cTe=(0,nt.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var r=t.emit;return{uiType:(0,nt.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,nt.computed)({get:function(){return e.checked},set:function(n){return r("update:modelValue",n)}})}},render:function(){var e=this.uiType,t=this.model,r=this.$emit;return(0,nt.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(n){return n.stopPropagation()}},[(0,nt.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,nt.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return r("change",t)}},null)])}}),fTe=(0,nt.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,r=e==="objectStart"||e==="arrayStart";return r||e==="objectCollapsed"||e==="arrayCollapsed"?(0,nt.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(r?"open":"close"),onClick:t},[(0,nt.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,nt.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var uV,sb;function OT(e){return OT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OT(e)}function e8(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function au(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0,i=n||{},a=i.key,o=i.index,s=i.type,l=s===void 0?"content":s,u=i.showComma,c=u!==void 0&&u,f=i.length,h=f===void 0?1:f,v=e8(e);if(v==="array"){var d=cV(e.map(function(y,S,w){return au(y,"".concat(t,"[").concat(S,"]"),r+1,{index:S,showComma:S!==w.length-1,length:h,type:l})}));return[au("[",t,r,{showComma:!1,key:a,length:e.length,type:"arrayStart"})[0]].concat(d,au("]",t,r,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(v==="object"){var g=Object.keys(e),m=cV(g.map(function(y,S,w){return au(e[y],/^[a-zA-Z_]\w*$/.test(y)?"".concat(t,".").concat(y):"".concat(t,'["').concat(y,'"]'),r+1,{key:y,showComma:S!==w.length-1,length:h,type:l})}));return[au("{",t,r,{showComma:!1,key:a,index:o,length:g.length,type:"objectStart"})[0]].concat(m,au("}",t,r,{showComma:c,length:g.length,type:"objectEnd"})[0])}return[{content:e,level:r,key:a,index:o,path:t,showComma:c,length:h,type:l}]}function cV(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=O0(e),r=[];t.length;){var n=t.shift();Array.isArray(n)?t.unshift.apply(t,O0(n)):r.push(n)}return r}function NT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(OT(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var r=e.map(function(a){return NT(a,t)});return t.set(e,r),r}var n={};for(var i in e)n[i]=NT(e[i],t);return t.set(e,n),n}function fV(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hV(e){for(var t=1;t=w||b.length>=x,D=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,b);return b.type!=="objectStart"&&b.type!=="arrayStart"||!M&&!D?T:wi(wi({},T),{},N0({},b.path,1))},{})},s=(0,nt.reactive)({translateY:0,visibleData:null,hiddenPaths:o(e.deep,e.collapsedNodeLength)}),l=(0,nt.computed)(function(){for(var w=null,x=[],T=a.value.length,b=0;bw.length?w.length-T:A;M<0&&(M=0);var D=M+T;s.translateY=M*e.itemHeight,s.visibleData=w.filter(function(L,P){return P>=M&&P{var a;t.value=i,(a=r.value)==null||a.showModal()};return(i,a)=>(he(),Ae("div",pTe,[se(Qa)?(he(),qt(rz,{key:0,horizontal:!0})):nr("",!0),se(pA)?(he(),Ae(wt,{key:1},[se(ky).length?nr("",!0):(he(),Ae("div",gTe,Xe(i.$t("noContent")),1)),oe("div",mTe,[(he(!0),Ae(wt,null,wr(se(ky),o=>(he(),qt(se(lCe),{key:o.id,conn:o,onInfo:n},null,8,["conn"]))),128))])],64)):(he(),qt(lTe,{key:2,onInfo:n})),oe("dialog",{ref_key:"modalRef",ref:r,class:"modal"},[oe("div",yTe,[ze(se(dTe),{data:t.value},null,8,["data"])]),a[0]||(a[0]=oe("form",{method:"dialog",class:"modal-backdrop"},[oe("button",null,"close")],-1))],512)]))}}),STe={class:"flex h-full flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},wTe={key:1,class:"card w-full flex-row gap-1 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},xTe=Jt({__name:"LogsPage",setup(e){const t={[ef.Error]:"text-error",[ef.Warning]:"text-warning",[ef.Info]:"text-primary",[ef.Debug]:"text-accent"},r=dt(()=>pv.value.filter(n=>pf.value?n.payload.includes(pf.value)||n.type.includes(pf.value):!0));return(n,i)=>(he(),Ae("div",STe,[se(Qa)?(he(),qt(nz,{key:0,horizontal:!0})):nr("",!0),r.value.length?nr("",!0):(he(),Ae("div",wTe,Xe(n.$t("noContent")),1)),(he(!0),Ae(wt,null,wr(r.value,a=>(he(),Ae("div",{key:a.seq,class:"card w-full flex-row gap-1 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},[oe("span",null,Xe(a.seq),1),oe("span",{class:Gt(t[a.type])},Xe(a.type),3),oe("span",null,Xe(a.payload),1)]))),128))]))}});var Xr=(e=>(e[e.MEDIUM=300]="MEDIUM",e[e.HIGH=800]="HIGH",e[e.NOT_CONNECTED=0]="NOT_CONNECTED",e))(Xr||{});const bTe={class:"badge flex w-12 items-center justify-center shadow-sm"},r8=Jt({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,r=dt(()=>n_(t.name)),n=dt(()=>r.value(he(),Ae("div",bTe,[r.value>0?(he(),Ae("div",{key:0,class:Gt(se(Qr)("text-xs",n.value))},Xe(r.value)+"ms ",3)):(he(),qt(se(H3),{key:1,class:"h-4 w-4"}))]))}}),CTe={class:"flex-1 whitespace-nowrap text-xs md:text-sm"},TTe={class:"flex items-center gap-2 text-xs"},ATe={class:"flex-1"},MTe={key:0},n8=Jt({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,r=dt(()=>Af.value[t.name]),n=Je(!1),i=o=>(o=o.toLowerCase(),o=o.replace("shadowsocks","ss"),o=o.replace("hysteria","hy"),o=o.replace("wireguard","wg"),o),a=async()=>{if(!n.value){n.value=!0;try{await tte(t.name),n.value=!1}catch{n.value=!1}}};return(o,s)=>(he(),Ae("div",{class:Gt(se(Qr)("flex cursor-pointer flex-wrap items-center justify-end gap-2 rounded-md bg-base-200 p-2 shadow-md",t.active&&"bg-primary text-primary-content"))},[oe("div",CTe,Xe(r.value.name),1),oe("div",TTe,[oe("div",ATe,[oe("span",null,Xe(i(r.value.type)),1),r.value.udp?(he(),Ae("span",MTe," | udp")):nr("",!0)]),ze(r8,{class:Gt(n.value?"animate-pulse":""),name:r.value.name,onClick:oA(a,["stop"])},null,8,["class","name"])])],2))}}),DTe={key:0,class:"flex flex-wrap gap-1 pt-2"},ITe={key:0,class:"h-2 w-2 rounded-full bg-white"},LTe={key:1,class:"flex items-center gap-2 py-2"},PTe={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},RTe=Jt({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,r=dt(()=>t.nodes.map(l=>({latency:n_(l),name:l}))),n=l=>l===Xr.NOT_CONNECTED?"bg-gray-500":lr.value.filter(l=>l.latencyXr.NOT_CONNECTED).length),a=dt(()=>r.value.filter(l=>l.latency>=Xr.MEDIUM&&l.latencyr.value.filter(l=>l.latency>=Xr.HIGH).length),s=dt(()=>r.value.filter(l=>l.latency===Xr.NOT_CONNECTED).length);return(l,u)=>l.nodes.length<20?(he(),Ae("div",DTe,[(he(!0),Ae(wt,null,wr(r.value,c=>(he(),Ae("div",{key:c.name,class:Gt(["flex h-4 w-4 items-center justify-center rounded-full shadow-lg",n(c.latency)])},[l.now===c.name?(he(),Ae("div",ITe)):nr("",!0)],2))),128))])):(he(),Ae("div",LTe,[oe("div",PTe,[oe("div",{class:Gt(n(se(Xr).MEDIUM-1)),style:fu({width:`${i.value*100/l.nodes.length}%`})},null,6),oe("div",{class:Gt(n(se(Xr).HIGH-1)),style:fu({width:`${a.value*100/l.nodes.length}%`})},null,6),oe("div",{class:Gt(n(se(Xr).HIGH+1)),style:fu({width:`${o.value*100/l.nodes.length}%`})},null,6),oe("div",{class:Gt(n(se(Xr).NOT_CONNECTED)),style:fu({width:`${s.value*100/l.nodes.length}%`})},null,6)])]))}}),ETe={class:"collapse collapse-arrow bg-base-100 shadow-lg"},kTe={class:"collapse-title"},OTe={class:"flex items-center gap-2"},NTe={class:"text-lg font-medium sm:text-xl"},FTe={class:"text-xs sm:text-sm"},VTe={class:"text-sm"},BTe={class:"collapse-content flex flex-col gap-2"},zTe=Jt({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,r=dt({get(){return Ry.value[t.name]},set(u){Ry.value[t.name]=u}}),n=Je(r.value);hr(r,u=>{u?n.value=u:setTimeout(()=>{u===r.value&&(n.value=u)},1e3)});const i=dt(()=>Af.value[t.name]),a=dt(()=>w3(i.value.all??[])),o=Je(!1),s=async()=>{if(!o.value){o.value=!0;try{await rte(t.name),o.value=!1}catch{o.value=!1}}},l=dt(()=>Vs.value.filter(c=>c.chains.includes(t.name)).reduce((c,f)=>c+f.downloadSpeed,0));return(u,c)=>(he(),Ae("div",ETe,[oe("div",kTe,[oe("div",OTe,[oe("div",NTe,Xe(i.value.name),1),oe("div",FTe,Xe(i.value.now),1),ze(r8,{class:Gt(se(Qr)("z-10",o.value?"animate-pulse":"")),name:i.value.now,onClick:oA(s,["stop"])},null,8,["class","name"]),c[1]||(c[1]=oe("div",{class:"flex-1"},null,-1)),oe("div",VTe,Xe(se(Pr)(l.value))+"/s",1)]),ze(RTe,{nodes:a.value,now:i.value.now},null,8,["nodes","now"])]),ci(oe("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=f=>r.value=f)},null,512),[[aA,r.value]]),oe("div",BTe,[n.value?(he(),Ae("div",{key:0,class:Gt(se(Qr)("grid grid-cols-1 gap-2 sm:grid-cols-2 3xl:grid-cols-3",!se(dA)&&"lg:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5"))},[(he(!0),Ae(wt,null,wr(a.value,f=>(he(),qt(n8,{key:f,name:f,active:f===i.value.now,onClick:h=>se(ete)(i.value.name,f)},null,8,["name","active","onClick"]))),128))],2)):nr("",!0)])]))}}),GTe={class:"collapse collapse-arrow bg-base-100 shadow-lg"},$Te={class:"collapse-title"},HTe={class:"flex items-center gap-2"},WTe={class:"text-lg font-medium sm:text-xl"},UTe={class:"flex gap-2"},YTe=["value"],XTe={class:"flex gap-4"},ZTe={class:"text-sm text-slate-500"},qTe={class:"text-sm text-slate-500"},jTe={class:"text-sm text-slate-500"},KTe={key:1,class:"flex flex-wrap gap-1 pt-2"},JTe={class:"collapse-content flex flex-col gap-2"},QTe=Jt({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,r=v=>v===Xr.NOT_CONNECTED?"bg-gray-500":v{v?i.value=v:setTimeout(()=>{v===n.value&&(i.value=v)},1e3)});const a=v=>{const{Download:d=0,Upload:g=0,Total:m=0,Expire:y=0}=v,S=Pr(m,{binary:!0}),w=Pr(d+g,{binary:!0}),x=Cf.toFinite(((d+g)/m*100).toFixed(2));return{total:S,used:w,percentage:x,expirePrefix:()=>{const{t:A}=Wu();return A("expire")},expireStr:()=>{const{t:A}=Wu();return y===0?A("noExpire"):Fu(y*1e3).format("YYYY-MM-DD")}}},o=dt(()=>vf.value.find(v=>v.name===t.name)),s=dt(()=>w3(o.value.proxies.map(v=>v.name))),l=dt(()=>o.value.subscriptionInfo?a(o.value.subscriptionInfo):null),u=Je(!1),c=Je(!1),f=async()=>{if(!c.value){c.value=!0;try{await $ee(t.name),await Oy(),c.value=!1}catch{c.value=!1}}},h=async()=>{if(!u.value){u.value=!0;try{await v3(t.name),await Oy(),u.value=!1}catch{u.value=!1}}};return(v,d)=>(he(),Ae("div",GTe,[oe("div",$Te,[oe("div",HTe,[oe("div",WTe,Xe(o.value.name),1),d[1]||(d[1]=oe("div",{class:"flex-1"},null,-1)),oe("div",UTe,[oe("button",{class:Gt(se(Qr)("btn btn-circle btn-xs z-30",c.value?"animate-pulse":"")),onClick:f},[ze(se(H3),{class:"h-4 w-4"})],2),oe("button",{class:Gt(se(Qr)("btn btn-circle btn-xs z-30",u.value?"animate-spin":"")),onClick:h},[ze(se(z3),{class:"h-4 w-4"})],2)])]),l.value?(he(),Ae("progress",{key:0,class:"progress",value:l.value.percentage,max:"100"},null,8,YTe)):nr("",!0),oe("div",XTe,[l.value?(he(),Ae(wt,{key:0},[oe("div",ZTe,Xe(l.value.used)+" / "+Xe(l.value.total)+" ( "+Xe(l.value.percentage)+"% ) ",1),oe("div",qTe,Xe(l.value.expirePrefix())+": "+Xe(l.value.expireStr()),1)],64)):nr("",!0),oe("div",jTe,Xe(v.$t("updated"))+" "+Xe(se(i_)(o.value.updatedAt)),1)]),n.value?nr("",!0):(he(),Ae("div",KTe,[(he(!0),Ae(wt,null,wr(s.value,g=>(he(),Ae("div",{key:g,class:Gt(["flex h-4 w-4 items-center justify-center rounded-full shadow-lg",r(se(n_)(g))])},null,2))),128))]))]),ci(oe("input",{type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=g=>n.value=g)},null,512),[[aA,n.value]]),oe("div",JTe,[i.value?(he(),Ae("div",{key:0,class:Gt(se(Qr)("grid grid-cols-1 gap-2 sm:grid-cols-2 3xl:grid-cols-3",!se(dA)&&"lg:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5"))},[(he(!0),Ae(wt,null,wr(s.value,g=>(he(),qt(n8,{key:g,name:g},null,8,["name"]))),128))],2)):nr("",!0)])]))}}),eAe={class:"h-full overflow-y-auto overflow-x-hidden p-2"},tAe={key:1,class:"grid grid-cols-2 gap-1"},rAe={key:2,class:"grid grid-cols-1 gap-1"},nAe=Jt({__name:"ProxiesPage",setup(e){const t=dt(()=>hf.value===Tf.PROVIDER?QTe:zTe),r=dt(()=>hf.value===Tf.PROVIDER?vf.value.map(i=>i.name):jee.value&&qm.value.length?[...qm.value,Mb]:qm.value),n=(i,a)=>i.filter((o,s)=>s%2===a);return(i,a)=>(he(),Ae("div",eAe,[se(Qa)?(he(),qt(iz,{key:0,horizontal:!0})):nr("",!0),se(S3)&&se(dA)&&r.value.length>1?(he(),Ae("div",tAe,[(he(),Ae(wt,null,wr([0,1],o=>oe("div",{key:o,class:"flex flex-1 flex-col gap-1"},[(he(!0),Ae(wt,null,wr(n(r.value,o),s=>(he(),qt(Bu(t.value),{key:s,name:s},null,8,["name"]))),128))])),64))])):(he(),Ae("div",rAe,[(he(!0),Ae(wt,null,wr(r.value,o=>(he(),qt(Bu(t.value),{key:o,name:o},null,8,["name"]))),128))]))]))}}),iAe={class:"card w-full flex-row gap-1 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},aAe={class:"w-20 text-primary"},oAe={class:"flex-1"},sAe=Jt({__name:"RuleCard",props:{rule:{}},setup(e){return(t,r)=>(he(),Ae("div",iAe,[oe("div",aAe,Xe(t.rule.proxy),1),oe("div",oAe,Xe(t.rule.payload),1)]))}}),lAe={class:"card w-full flex-row items-center gap-1 rounded-xl bg-base-100 p-1 px-2 text-sm shadow-lg"},uAe={class:"w-48 flex-1 text-primary"},cAe={class:"w-16"},fAe={class:"w-16"},hAe={class:"w-48"},vAe=Jt({__name:"RuleProvider",props:{ruleProvider:{}},setup(e){const t=Je(!1),r=e,n=async()=>{t.value||(t.value=!0,await d3(r.ruleProvider.name),DA(),t.value=!1)};return(i,a)=>(he(),Ae("div",null,[oe("div",lAe,[oe("span",uAe,Xe(i.ruleProvider.name)+" ("+Xe(i.ruleProvider.ruleCount)+") ",1),oe("span",cAe,Xe(i.ruleProvider.behavior),1),oe("span",fAe,Xe(i.ruleProvider.vehicleType),1),oe("span",hAe,Xe(i.$t("updated"))+" "+Xe(se(i_)(i.ruleProvider.updatedAt)),1),oe("button",{class:Gt(se(Qr)("btn btn-circle btn-xs",t.value?"animate-spin":"")),onClick:n},[ze(se(z3),{class:"h-4 w-4"})],2)])]))}}),dAe={class:"flex h-full flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},pAe=Jt({__name:"RulesPage",setup(e){return(t,r)=>(he(),Ae("div",dAe,[se(Qa)?(he(),qt(oz,{key:0,horizontal:!0})):nr("",!0),se(Ov)===se(fd).PROVIDER?(he(!0),Ae(wt,{key:1},wr(se(Vy),n=>(he(),qt(vAe,{key:n.name,ruleProvider:n},null,8,["ruleProvider"]))),128)):(he(!0),Ae(wt,{key:2},wr(se(az),n=>(he(),qt(sAe,{key:n.payload,rule:n},null,8,["rule"]))),128))]))}});/*! * vue-router v4.5.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const Kc=typeof document<"u";function i8(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function mAe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&i8(e.default)}const rr=Object.assign;function lb(e,t){const r={};for(const n in t){const i=t[n];r[n]=Ma(i)?i.map(e):e(i)}return r}const td=()=>{},Ma=Array.isArray,a8=/#/g,yAe=/&/g,_Ae=/\//g,SAe=/=/g,wAe=/\?/g,o8=/\+/g,xAe=/%5B/g,bAe=/%5D/g,s8=/%5E/g,CAe=/%60/g,l8=/%7B/g,TAe=/%7C/g,u8=/%7D/g,AAe=/%20/g;function BD(e){return encodeURI(""+e).replace(TAe,"|").replace(xAe,"[").replace(bAe,"]")}function MAe(e){return BD(e).replace(l8,"{").replace(u8,"}").replace(s8,"^")}function FT(e){return BD(e).replace(o8,"%2B").replace(AAe,"+").replace(a8,"%23").replace(yAe,"%26").replace(CAe,"`").replace(l8,"{").replace(u8,"}").replace(s8,"^")}function DAe(e){return FT(e).replace(SAe,"%3D")}function IAe(e){return BD(e).replace(a8,"%23").replace(wAe,"%3F")}function LAe(e){return e==null?"":IAe(e).replace(_Ae,"%2F")}function Hd(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const PAe=/\/$/,RAe=e=>e.replace(PAe,"");function ub(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(n=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),i=e(a)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=NAe(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:Hd(o)}}function EAe(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function dV(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function kAe(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Gf(t.matched[n],r.matched[i])&&c8(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Gf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function c8(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!OAe(e[r],t[r]))return!1;return!0}function OAe(e,t){return Ma(e)?pV(e,t):Ma(t)?pV(t,e):e===t}function pV(e,t){return Ma(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function NAe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=r.length-1,o,s;for(o=0;o1&&a--;else break;return r.slice(0,a).join("/")+"/"+n.slice(o).join("/")}const Ms={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Wd;(function(e){e.pop="pop",e.push="push"})(Wd||(Wd={}));var rd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(rd||(rd={}));function FAe(e){if(!e)if(Kc){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),RAe(e)}const VAe=/^[^#]+#/;function BAe(e,t){return e.replace(VAe,"#")+t}function zAe(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const q_=()=>({left:window.scrollX,top:window.scrollY});function GAe(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=zAe(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function gV(e,t){return(history.state?history.state.position-t:-1)+e}const VT=new Map;function $Ae(e,t){VT.set(e,t)}function HAe(e){const t=VT.get(e);return VT.delete(e),t}let WAe=()=>location.protocol+"//"+location.host;function f8(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),dV(l,"")}return dV(r,e)+n+i}function UAe(e,t,r,n){let i=[],a=[],o=null;const s=({state:h})=>{const v=f8(e,location),d=r.value,g=t.value;let m=0;if(h){if(r.value=v,t.value=h,o&&o===d){o=null;return}m=g?h.position-g.position:0}else n(v);i.forEach(y=>{y(r.value,d,{delta:m,type:Wd.pop,direction:m?m>0?rd.forward:rd.back:rd.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 c(){const{history:h}=window;h.state&&h.replaceState(rr({},h.state,{scroll:q_()}),"")}function f(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function mV(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?q_():null}}function YAe(e){const{history:t,location:r}=window,n={value:f8(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const f=e.indexOf("#"),h=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:WAe()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),i.value=u}catch(v){console.error(v),r[c?"replace":"assign"](h)}}function o(l,u){const c=rr({},t.state,mV(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,c,!0),n.value=l}function s(l,u){const c=rr({},i.value,t.state,{forward:l,scroll:q_()});a(c.current,c,!0);const f=rr({},mV(n.value,l,null),{position:c.position+1},u);a(l,f,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function XAe(e){e=FAe(e);const t=YAe(e),r=UAe(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=rr({location:"",base:e,go:n,createHref:BAe.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function ZAe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),XAe(e)}function qAe(e){return typeof e=="string"||e&&typeof e=="object"}function h8(e){return typeof e=="string"||typeof e=="symbol"}const v8=Symbol("");var yV;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(yV||(yV={}));function $f(e,t){return rr(new Error,{type:e,[v8]:!0},t)}function Io(e,t){return e instanceof Error&&v8 in e&&(t==null||!!(e.type&t))}const _V="[^/]+?",jAe={sensitive:!1,strict:!1,start:!0,end:!0},KAe=/[.+*?^${}()[\]/\\]/g;function JAe(e,t){const r=rr({},jAe,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function d8(e,t){let r=0;const n=e.score,i=t.score;for(;r0&&t[t.length-1]<0}const eMe={type:0,value:""},tMe=/[a-zA-Z0-9_]/;function rMe(e){if(!e)return[[]];if(e==="/")return[[eMe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${r})/"${u}": ${v}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",c="";function f(){u&&(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s{o(w)}:td}function o(f){if(h8(f)){const h=n.get(f);h&&(n.delete(f),r.splice(r.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=r.indexOf(f);h>-1&&(r.splice(h,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return r}function l(f){const h=sMe(f,r);r.splice(h,0,f),f.record.name&&!bV(f)&&n.set(f.record.name,f)}function u(f,h){let v,d={},g,m;if("name"in f&&f.name){if(v=n.get(f.name),!v)throw $f(1,{location:f});m=v.record.name,d=rr(wV(h.params,v.keys.filter(w=>!w.optional).concat(v.parent?v.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),f.params&&wV(f.params,v.keys.map(w=>w.name))),g=v.stringify(d)}else if(f.path!=null)g=f.path,v=r.find(w=>w.re.test(g)),v&&(d=v.parse(g),m=v.record.name);else{if(v=h.name?n.get(h.name):r.find(w=>w.re.test(h.path)),!v)throw $f(1,{location:f,currentLocation:h});m=v.record.name,d=rr({},h.params,f.params),g=v.stringify(d)}const y=[];let S=v;for(;S;)y.unshift(S.record),S=S.parent;return{name:m,path:g,params:d,matched:y,meta:oMe(y)}}e.forEach(f=>a(f));function c(){r.length=0,n.clear()}return{addRoute:a,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:s,getRecordMatcher:i}}function wV(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function xV(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:aMe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function aMe(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function bV(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function oMe(e){return e.reduce((t,r)=>rr(t,r.meta),{})}function CV(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function sMe(e,t){let r=0,n=t.length;for(;r!==n;){const a=r+n>>1;d8(e,t[a])<0?n=a:r=a+1}const i=lMe(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function lMe(e){let t=e;for(;t=t.parent;)if(p8(t)&&d8(e,t)===0)return t}function p8({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function uMe(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&FT(a)):[n&&FT(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function cMe(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Ma(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const fMe=Symbol(""),AV=Symbol(""),zD=Symbol(""),GD=Symbol(""),BT=Symbol("");function lv(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function ks(e,t,r,n,i,a=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l($f(4,{from:r,to:t})):h instanceof Error?l(h):qAe(h)?l($f(2,{from:t,to:h})):(o&&n.enterCallbacks[i]===o&&typeof h=="function"&&o.push(h),s())},c=a(()=>e.call(n&&n.instances[i],t,r,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>l(h))})}function cb(e,t,r,n,i=a=>a()){const a=[];for(const o of e)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(i8(l)){const c=(l.__vccOpts||l)[t];c&&a.push(ks(c,r,n,o,s,i))}else{let u=l();a.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const f=mAe(c)?c.default:c;o.mods[s]=c,o.components[s]=f;const v=(f.__vccOpts||f)[t];return v&&ks(v,r,n,o,s,i)()}))}}return a}function MV(e){const t=Sa(zD),r=Sa(GD),n=dt(()=>{const l=oe(e.to);return t.resolve(l)}),i=dt(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],f=r.matched;if(!c||!f.length)return-1;const h=f.findIndex(Gf.bind(null,c));if(h>-1)return h;const v=DV(l[u-2]);return u>1&&DV(c)===v&&f[f.length-1].path!==v?f.findIndex(Gf.bind(null,l[u-2])):h}),a=dt(()=>i.value>-1&&gMe(r.params,n.value.params)),o=dt(()=>i.value>-1&&i.value===r.matched.length-1&&c8(r.params,n.value.params));function s(l={}){if(pMe(l)){const u=t[oe(e.replace)?"replace":"push"](oe(e.to)).catch(td);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:dt(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function hMe(e){return e.length===1?e[0]:e}const vMe=Qt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:MV,setup(e,{slots:t}){const r=Wf(MV(e)),{options:n}=Sa(zD),i=dt(()=>({[IV(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[IV(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&hMe(t.default(r));return e.custom?a:No("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),dMe=vMe;function pMe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function gMe(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Ma(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function DV(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const IV=(e,t,r)=>e??t??r,mMe=Qt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Sa(BT),i=dt(()=>e.route||n.value),a=Sa(AV,0),o=dt(()=>{let u=oe(a);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=dt(()=>i.value.matched[o.value]);Om(AV,dt(()=>o.value+1)),Om(fMe,s),Om(BT,i);const l=Je();return hr(()=>[l.value,s.value,e.name],([u,c,f],[h,v,d])=>{c&&(c.instances[f]=u,v&&v!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=v.leaveGuards),c.updateGuards.size||(c.updateGuards=v.updateGuards))),u&&c&&(!v||!Gf(c,v)||!h)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,h=f&&f.components[c];if(!h)return LV(r.default,{Component:h,route:u});const v=f.props[c],d=v?v===!0?u.params:typeof v=="function"?v(u):v:null,m=No(h,rr({},d,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return LV(r.default,{Component:m,route:u})||m}}});function LV(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const g8=mMe;function yMe(e){const t=iMe(e.routes,e),r=e.parseQuery||uMe,n=e.stringifyQuery||TV,i=e.history,a=lv(),o=lv(),s=lv(),l=W0(Ms);let u=Ms;Kc&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=lb.bind(null,ie=>""+ie),f=lb.bind(null,LAe),h=lb.bind(null,Hd);function v(ie,le){let de,me;return h8(ie)?(de=t.getRecordMatcher(ie),me=le):me=ie,t.addRoute(me,de)}function d(ie){const le=t.getRecordMatcher(ie);le&&t.removeRoute(le)}function g(){return t.getRoutes().map(ie=>ie.record)}function m(ie){return!!t.getRecordMatcher(ie)}function y(ie,le){if(le=rr({},le||l.value),typeof ie=="string"){const W=ub(r,ie,le.path),te=t.resolve({path:W.path},le),_e=i.createHref(W.fullPath);return rr(W,te,{params:h(te.params),hash:Hd(W.hash),redirectedFrom:void 0,href:_e})}let de;if(ie.path!=null)de=rr({},ie,{path:ub(r,ie.path,le.path).path});else{const W=rr({},ie.params);for(const te in W)W[te]==null&&delete W[te];de=rr({},ie,{params:f(W)}),le.params=f(le.params)}const me=t.resolve(de,le),be=ie.hash||"";me.params=c(h(me.params));const Re=EAe(n,rr({},ie,{hash:MAe(be),path:me.path})),H=i.createHref(Re);return rr({fullPath:Re,hash:be,query:n===TV?cMe(ie.query):ie.query||{}},me,{redirectedFrom:void 0,href:H})}function S(ie){return typeof ie=="string"?ub(r,ie,l.value.path):rr({},ie)}function w(ie,le){if(u!==ie)return $f(8,{from:le,to:ie})}function x(ie){return A(ie)}function T(ie){return x(rr(S(ie),{replace:!0}))}function b(ie){const le=ie.matched[ie.matched.length-1];if(le&&le.redirect){const{redirect:de}=le;let me=typeof de=="function"?de(ie):de;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=S(me):{path:me},me.params={}),rr({query:ie.query,hash:ie.hash,params:me.path!=null?{}:ie.params},me)}}function A(ie,le){const de=u=y(ie),me=l.value,be=ie.state,Re=ie.force,H=ie.replace===!0,W=b(de);if(W)return A(rr(S(W),{state:typeof W=="object"?rr({},be,W.state):be,force:Re,replace:H}),le||de);const te=de;te.redirectedFrom=le;let _e;return!Re&&kAe(n,me,de)&&(_e=$f(16,{to:te,from:me}),re(me,me,!0,!1)),(_e?Promise.resolve(_e):L(te,me)).catch(fe=>Io(fe)?Io(fe,2)?fe:J(fe):G(fe,te,me)).then(fe=>{if(fe){if(Io(fe,2))return A(rr({replace:H},S(fe.to),{state:typeof fe.to=="object"?rr({},be,fe.to.state):be,force:Re}),le||te)}else fe=E(te,me,!0,H,be);return P(te,me,fe),fe})}function M(ie,le){const de=w(ie,le);return de?Promise.reject(de):Promise.resolve()}function D(ie){const le=Le.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(ie):ie()}function L(ie,le){let de;const[me,be,Re]=_Me(ie,le);de=cb(me.reverse(),"beforeRouteLeave",ie,le);for(const W of me)W.leaveGuards.forEach(te=>{de.push(ks(te,ie,le))});const H=M.bind(null,ie,le);return de.push(H),Ge(de).then(()=>{de=[];for(const W of a.list())de.push(ks(W,ie,le));return de.push(H),Ge(de)}).then(()=>{de=cb(be,"beforeRouteUpdate",ie,le);for(const W of be)W.updateGuards.forEach(te=>{de.push(ks(te,ie,le))});return de.push(H),Ge(de)}).then(()=>{de=[];for(const W of Re)if(W.beforeEnter)if(Ma(W.beforeEnter))for(const te of W.beforeEnter)de.push(ks(te,ie,le));else de.push(ks(W.beforeEnter,ie,le));return de.push(H),Ge(de)}).then(()=>(ie.matched.forEach(W=>W.enterCallbacks={}),de=cb(Re,"beforeRouteEnter",ie,le,D),de.push(H),Ge(de))).then(()=>{de=[];for(const W of o.list())de.push(ks(W,ie,le));return de.push(H),Ge(de)}).catch(W=>Io(W,8)?W:Promise.reject(W))}function P(ie,le,de){s.list().forEach(me=>D(()=>me(ie,le,de)))}function E(ie,le,de,me,be){const Re=w(ie,le);if(Re)return Re;const H=le===Ms,W=Kc?history.state:{};de&&(me||H?i.replace(ie.fullPath,rr({scroll:H&&W&&W.scroll},be)):i.push(ie.fullPath,be)),l.value=ie,re(ie,le,de,H),J()}let F;function O(){F||(F=i.listen((ie,le,de)=>{if(!Fe.listening)return;const me=y(ie),be=b(me);if(be){A(rr(be,{replace:!0,force:!0}),me).catch(td);return}u=me;const Re=l.value;Kc&&$Ae(gV(Re.fullPath,de.delta),q_()),L(me,Re).catch(H=>Io(H,12)?H:Io(H,2)?(A(rr(S(H.to),{force:!0}),me).then(W=>{Io(W,20)&&!de.delta&&de.type===Wd.pop&&i.go(-1,!1)}).catch(td),Promise.reject()):(de.delta&&i.go(-de.delta,!1),G(H,me,Re))).then(H=>{H=H||E(me,Re,!1),H&&(de.delta&&!Io(H,8)?i.go(-de.delta,!1):de.type===Wd.pop&&Io(H,20)&&i.go(-1,!1)),P(me,Re,H)}).catch(td)}))}let N=lv(),V=lv(),Y;function G(ie,le,de){J(ie);const me=V.list();return me.length?me.forEach(be=>be(ie,le,de)):console.error(ie),Promise.reject(ie)}function Z(){return Y&&l.value!==Ms?Promise.resolve():new Promise((ie,le)=>{N.add([ie,le])})}function J(ie){return Y||(Y=!ie,O(),N.list().forEach(([le,de])=>ie?de(ie):le()),N.reset()),ie}function re(ie,le,de,me){const{scrollBehavior:be}=e;if(!Kc||!be)return Promise.resolve();const Re=!de&&HAe(gV(ie.fullPath,0))||(me||!de)&&history.state&&history.state.scroll||null;return Zd().then(()=>be(ie,le,Re)).then(H=>H&&GAe(H)).catch(H=>G(H,ie,le))}const pe=ie=>i.go(ie);let Me;const Le=new Set,Fe={currentRoute:l,listening:!0,addRoute:v,removeRoute:d,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:g,resolve:y,options:e,push:x,replace:T,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:V.add,isReady:Z,install(ie){const le=this;ie.component("RouterLink",dMe),ie.component("RouterView",g8),ie.config.globalProperties.$router=le,Object.defineProperty(ie.config.globalProperties,"$route",{enumerable:!0,get:()=>oe(l)}),Kc&&!Me&&l.value===Ms&&(Me=!0,x(i.location).catch(be=>{}));const de={};for(const be in Ms)Object.defineProperty(de,be,{get:()=>l.value[be],enumerable:!0});ie.provide(zD,le),ie.provide(GD,nB(de)),ie.provide(BT,l);const me=ie.unmount;Le.add(ie),ie.unmount=function(){Le.delete(ie),Le.size<1&&(u=Ms,F&&F(),F=null,l.value=Ms,Me=!1,Y=!1),me()}}};function Ge(ie){return ie.reduce((le,de)=>le.then(()=>D(de)),Promise.resolve())}return Fe}function _Me(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oGf(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Gf(u,l))||i.push(l))}return[r,n,i]}function m8(e){return Sa(GD)}var pn=(e=>(e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e))(pn||{});const j_=yMe({history:ZAe("./"),routes:[{path:"/proxies",name:"proxies",component:iAe},{path:"/connections",name:"connections",component:STe},{path:"/logs",name:"logs",component:bTe},{path:"/rules",name:"rules",component:gAe},{path:"/settings",name:"settings",component:()=>lCe(()=>import("./SettingsPage-DEVpjBAC.js"),[],import.meta.url)},{path:"/:catchAll(.*)",redirect:"proxies"}]}),PV=jJ("zashboard"),y8=e=>{typeof e=="string"&&Fs.value?PV.value=`zashboard | ${TA.global.t(e)}`:PV.value="zashboard"};j_.afterEach(e=>{y8(e.name)});hr(Au,()=>{y8(j_.currentRoute.value.name)});const SMe={class:"flex flex-col gap-4 text-sm"},wMe={class:"flex flex-col items-center justify-center"},xMe={class:"flex flex-col items-center justify-center"},bMe={class:"flex flex-col items-center justify-center"},CMe={class:"flex flex-col items-center justify-center"},TMe={class:"btn btn-circle btn-sm"},AMe=Qt({__name:"VerticalInfos",setup(e){return(t,r)=>(he(),Te("div",SMe,[se("div",wMe,[ze(oe(B3),{class:"h-5 w-5"}),Ir(" "+Xe(oe(Pr)(oe(Jc))),1)]),se("div",xMe,[ze(oe(G3),{class:"h-5 w-5"}),Ir(" "+Xe(oe(Pr)(oe(Qc))),1)]),se("div",bMe,[ze(oe(lne),{class:"h-5 w-5"}),Ir(" "+Xe(oe(Pr)(oe(Ey),{binary:!0})),1)]),se("div",CMe,[se("button",TMe,[ze(oe(one),{class:"h-5 w-5",onClick:r[0]||(r[0]=n=>wa.value=!1)})])])]))}}),MMe={class:"drawer-side z-30"},DMe={class:"menu flex-1 pb-0"},IMe=["href"],LMe={class:"card bg-base-100 shadow-lg"},PMe=Qt({__name:"SideBar",setup(e){const t={[pn.connections]:rz,[pn.logs]:nz,[pn.proxies]:iz,[pn.rules]:oz},r={[pn.proxies]:Y3,[pn.connections]:$3,[pn.rules]:j3,[pn.logs]:U3,[pn.settings]:W3},n=dt(()=>i.name?t[i.name]:null),i=m8(),a=Object.values(pn);return(o,s)=>(he(),Te("div",MMe,[s[0]||(s[0]=se("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),se("div",{class:Gt(oe(Qr)("flex h-full flex-col gap-2 overflow-x-hidden bg-base-200 p-2 text-base-content !transition-all duration-500",oe(wa)?"w-16 px-0":"w-[21rem]"))},[se("ul",DMe,[(he(!0),Te(wt,null,wr(oe(a),l=>(he(),Te("li",{key:l},[se("a",{class:Gt(l===oe(i).name?"active":"inactive"),href:`#${l}`},[(he(),qt(Bu(r[l]),{class:"h-5 w-5"})),oe(wa)?jt("",!0):(he(),Te(wt,{key:0},[Ir(Xe(o.$t(l)),1)],64))],10,IMe)]))),128))]),oe(wa)?(he(),qt(AMe,{key:0})):(he(),Te(wt,{key:1},[se("div",LMe,[n.value?(he(),qt(Bu(n.value),{key:0})):jt("",!0),ze(mne)]),ze(aCe)],64))],2)]))}}),RMe={class:"w-128 drawer md:drawer-open"},EMe={class:"drawer-content fixed bottom-0 flex h-full w-full flex-col overflow-hidden md:relative md:w-auto"},kMe={class:"flex h-12 w-full items-center justify-center gap-1 bg-base-200 p-1 md:hidden"},OMe={class:"menu menu-horizontal"},NMe=["href"],FMe={for:"sidebar"},VMe={class:"btn btn-circle drawer-button btn-sm bg-neutral text-neutral-content shadow-lg"},BMe=Qt({__name:"HomePage",setup(e){const t={[pn.proxies]:Y3,[pn.connections]:$3,[pn.rules]:j3,[pn.logs]:U3,[pn.settings]:W3},r=m8(),n=Object.values(pn);return hr(Fo,()=>{Ov.value=fd.RULES,hf.value=Tf.PROXIES,y3(),Oy(),DA(),Qee(),Bb()},{immediate:!0}),(i,a)=>(he(),Te("div",RMe,[a[0]||(a[0]=se("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),ze(PMe),se("div",EMe,[ze(oe(g8),{class:"flex-1 bg-base-200/50"}),se("div",kMe,[se("ul",OMe,[(he(!0),Te(wt,null,wr(oe(n),o=>(he(),Te("li",{key:o},[se("a",{class:Gt(o===oe(r).name?"active":"inactive"),href:`#${o}`},[(he(),qt(Bu(t[o]),{class:"h-5 w-5"}))],10,NMe)]))),128))]),se("label",FMe,[se("div",VMe,[ze(oe(sne),{class:"h-4 w-4"})])])])])]))}}),zMe={class:"flex h-full w-full items-center justify-center"},GMe={class:"rounded-lg bg-base-100 p-6 shadow-lg"},$Me={class:"mb-4 text-2xl font-semibold"},HMe={class:"form-control mb-4"},WMe={class:"label"},UMe={class:"label-text"},YMe={class:"form-control mb-4"},XMe={class:"label"},ZMe={class:"label-text"},qMe={class:"form-control mb-4"},jMe={class:"label"},KMe={class:"label-text"},JMe={class:"form-control"},QMe={class:"label"},eDe={class:"label-text"},tDe=["onClick"],rDe=Qt({__name:"SetupPage",setup(e){var i,a;const t=Wf({protocol:"http",host:"127.0.0.1",port:9090,password:""}),r=async(o,s=!1)=>{const{protocol:l,host:u,port:c,password:f}=o;if(!l||!u||!c){alert("Please fill in all the fields.");return}const h=await fetch(`${l}://${u}:${c}/version`,{method:"GET",headers:{Authorization:`Bearer ${f}`}}),{version:v,message:d}=await h.json();if(!v){s||alert(d);return}oQ(o),j_.push({name:"proxies"})},n=new URLSearchParams(window.location.search||((a=(i=location.hash.match(/\?.*$/))==null?void 0:i[0])==null?void 0:a.replace("?","")));return n.has("hostname")?r({protocol:window.location.protocol.replace(":",""),host:n.get("hostname"),port:Number(n.get("port")),password:n.get("secret")}):r(t,!0),(o,s)=>(he(),Te("div",zMe,[se("div",GMe,[se("h1",$Me,Xe(o.$t("setup")),1),se("div",HMe,[se("label",WMe,[se("span",UMe,Xe(o.$t("protocol")),1)]),ci(se("select",{class:"select select-bordered w-full","onUpdate:modelValue":s[0]||(s[0]=l=>t.protocol=l)},s[5]||(s[5]=[se("option",{value:"http"},"HTTP",-1),se("option",{value:"https"},"HTTPS",-1)]),512),[[Jd,t.protocol]])]),se("div",YMe,[se("label",XMe,[se("span",ZMe,Xe(o.$t("host")),1)]),ci(se("input",{type:"text",class:"input input-bordered w-full","onUpdate:modelValue":s[1]||(s[1]=l=>t.host=l)},null,512),[[ff,t.host]])]),se("div",qMe,[se("label",jMe,[se("span",KMe,Xe(o.$t("port")),1)]),ci(se("input",{type:"text",class:"input input-bordered w-full","onUpdate:modelValue":s[2]||(s[2]=l=>t.port=l)},null,512),[[ff,t.port]])]),se("div",JMe,[se("label",QMe,[se("span",eDe,Xe(o.$t("password")),1)]),ci(se("input",{type:"password",class:"input input-bordered w-full","onUpdate:modelValue":s[3]||(s[3]=l=>t.password=l)},null,512),[[ff,t.password]])]),se("button",{class:"btn btn-primary mt-4 w-full",onClick:s[4]||(s[4]=l=>r(t))},Xe(o.$t("submit")),1),(he(!0),Te(wt,null,wr(oe(ud),l=>(he(),Te("button",{class:"btn btn-xs mt-2 w-full",key:l.uuid,onClick:u=>Fo.value=l.uuid},Xe(l.protocol)+"://"+Xe(l.host)+":"+Xe(l.port),9,tDe))),128))])]))}}),nDe=["data-theme"],iDe=Qt({__name:"App",setup(e){return(t,r)=>(he(),Te("div",{class:"flex h-dvh w-screen overflow-x-hidden bg-base-100 font-twemoji","data-theme":oe(qee)},[oe(Fs)?(he(),qt(BMe,{key:1})):(he(),qt(rDe,{key:0}))],8,nDe))}}),$D=AJ(iDe);Fu.extend(ij);$D.use(j_);$D.use(TA);$D.mount("#app");export{jt as A,aA as B,Nr as C,jee as D,dA as E,wt as F,ff as G,g3 as H,m3 as I,pA as J,Kee as K,cDe as L,uDe as M,sDe as N,oDe as O,Qr as P,lDe as Q,Wf as a,qd as b,dt as c,Qt as d,m2 as e,he as f,Gu as g,No as h,sr as i,Te as j,ze as k,Qj as l,wr as m,Zd as n,QT as o,Xe as p,se as q,Je as r,Ir as s,aDe as t,oe as u,ci as v,hr as w,Jd as x,qee as y,Gt as z}; + */const Kc=typeof document<"u";function i8(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function gAe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&i8(e.default)}const tr=Object.assign;function lb(e,t){const r={};for(const n in t){const i=t[n];r[n]=Aa(i)?i.map(e):e(i)}return r}const td=()=>{},Aa=Array.isArray,a8=/#/g,mAe=/&/g,yAe=/\//g,_Ae=/=/g,SAe=/\?/g,o8=/\+/g,wAe=/%5B/g,xAe=/%5D/g,s8=/%5E/g,bAe=/%60/g,l8=/%7B/g,CAe=/%7C/g,u8=/%7D/g,TAe=/%20/g;function BD(e){return encodeURI(""+e).replace(CAe,"|").replace(wAe,"[").replace(xAe,"]")}function AAe(e){return BD(e).replace(l8,"{").replace(u8,"}").replace(s8,"^")}function FT(e){return BD(e).replace(o8,"%2B").replace(TAe,"+").replace(a8,"%23").replace(mAe,"%26").replace(bAe,"`").replace(l8,"{").replace(u8,"}").replace(s8,"^")}function MAe(e){return FT(e).replace(_Ae,"%3D")}function DAe(e){return BD(e).replace(a8,"%23").replace(SAe,"%3F")}function IAe(e){return e==null?"":DAe(e).replace(yAe,"%2F")}function Hd(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const LAe=/\/$/,PAe=e=>e.replace(LAe,"");function ub(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(n=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),i=e(a)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=OAe(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:Hd(o)}}function RAe(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function dV(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function EAe(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Gf(t.matched[n],r.matched[i])&&c8(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Gf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function c8(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!kAe(e[r],t[r]))return!1;return!0}function kAe(e,t){return Aa(e)?pV(e,t):Aa(t)?pV(t,e):e===t}function pV(e,t){return Aa(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function OAe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=r.length-1,o,s;for(o=0;o1&&a--;else break;return r.slice(0,a).join("/")+"/"+n.slice(o).join("/")}const Ms={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Wd;(function(e){e.pop="pop",e.push="push"})(Wd||(Wd={}));var rd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(rd||(rd={}));function NAe(e){if(!e)if(Kc){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),PAe(e)}const FAe=/^[^#]+#/;function VAe(e,t){return e.replace(FAe,"#")+t}function BAe(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const q_=()=>({left:window.scrollX,top:window.scrollY});function zAe(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=BAe(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function gV(e,t){return(history.state?history.state.position-t:-1)+e}const VT=new Map;function GAe(e,t){VT.set(e,t)}function $Ae(e){const t=VT.get(e);return VT.delete(e),t}let HAe=()=>location.protocol+"//"+location.host;function f8(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),dV(l,"")}return dV(r,e)+n+i}function WAe(e,t,r,n){let i=[],a=[],o=null;const s=({state:h})=>{const v=f8(e,location),d=r.value,g=t.value;let m=0;if(h){if(r.value=v,t.value=h,o&&o===d){o=null;return}m=g?h.position-g.position:0}else n(v);i.forEach(y=>{y(r.value,d,{delta:m,type:Wd.pop,direction:m?m>0?rd.forward:rd.back:rd.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 c(){const{history:h}=window;h.state&&h.replaceState(tr({},h.state,{scroll:q_()}),"")}function f(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function mV(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?q_():null}}function UAe(e){const{history:t,location:r}=window,n={value:f8(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const f=e.indexOf("#"),h=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:HAe()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),i.value=u}catch(v){console.error(v),r[c?"replace":"assign"](h)}}function o(l,u){const c=tr({},t.state,mV(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,c,!0),n.value=l}function s(l,u){const c=tr({},i.value,t.state,{forward:l,scroll:q_()});a(c.current,c,!0);const f=tr({},mV(n.value,l,null),{position:c.position+1},u);a(l,f,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function YAe(e){e=NAe(e);const t=UAe(e),r=WAe(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=tr({location:"",base:e,go:n,createHref:VAe.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function XAe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),YAe(e)}function ZAe(e){return typeof e=="string"||e&&typeof e=="object"}function h8(e){return typeof e=="string"||typeof e=="symbol"}const v8=Symbol("");var yV;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(yV||(yV={}));function $f(e,t){return tr(new Error,{type:e,[v8]:!0},t)}function Io(e,t){return e instanceof Error&&v8 in e&&(t==null||!!(e.type&t))}const _V="[^/]+?",qAe={sensitive:!1,strict:!1,start:!0,end:!0},jAe=/[.+*?^${}()[\]/\\]/g;function KAe(e,t){const r=tr({},qAe,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function d8(e,t){let r=0;const n=e.score,i=t.score;for(;r0&&t[t.length-1]<0}const QAe={type:0,value:""},eMe=/[a-zA-Z0-9_]/;function tMe(e){if(!e)return[[]];if(e==="/")return[[QAe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${r})/"${u}": ${v}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",c="";function f(){u&&(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s{o(w)}:td}function o(f){if(h8(f)){const h=n.get(f);h&&(n.delete(f),r.splice(r.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=r.indexOf(f);h>-1&&(r.splice(h,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return r}function l(f){const h=oMe(f,r);r.splice(h,0,f),f.record.name&&!bV(f)&&n.set(f.record.name,f)}function u(f,h){let v,d={},g,m;if("name"in f&&f.name){if(v=n.get(f.name),!v)throw $f(1,{location:f});m=v.record.name,d=tr(wV(h.params,v.keys.filter(w=>!w.optional).concat(v.parent?v.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),f.params&&wV(f.params,v.keys.map(w=>w.name))),g=v.stringify(d)}else if(f.path!=null)g=f.path,v=r.find(w=>w.re.test(g)),v&&(d=v.parse(g),m=v.record.name);else{if(v=h.name?n.get(h.name):r.find(w=>w.re.test(h.path)),!v)throw $f(1,{location:f,currentLocation:h});m=v.record.name,d=tr({},h.params,f.params),g=v.stringify(d)}const y=[];let S=v;for(;S;)y.unshift(S.record),S=S.parent;return{name:m,path:g,params:d,matched:y,meta:aMe(y)}}e.forEach(f=>a(f));function c(){r.length=0,n.clear()}return{addRoute:a,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:s,getRecordMatcher:i}}function wV(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function xV(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:iMe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function iMe(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function bV(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function aMe(e){return e.reduce((t,r)=>tr(t,r.meta),{})}function CV(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function oMe(e,t){let r=0,n=t.length;for(;r!==n;){const a=r+n>>1;d8(e,t[a])<0?n=a:r=a+1}const i=sMe(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function sMe(e){let t=e;for(;t=t.parent;)if(p8(t)&&d8(e,t)===0)return t}function p8({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function lMe(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&FT(a)):[n&&FT(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function uMe(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Aa(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const cMe=Symbol(""),AV=Symbol(""),zD=Symbol(""),GD=Symbol(""),BT=Symbol("");function lv(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function ks(e,t,r,n,i,a=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l($f(4,{from:r,to:t})):h instanceof Error?l(h):ZAe(h)?l($f(2,{from:t,to:h})):(o&&n.enterCallbacks[i]===o&&typeof h=="function"&&o.push(h),s())},c=a(()=>e.call(n&&n.instances[i],t,r,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>l(h))})}function cb(e,t,r,n,i=a=>a()){const a=[];for(const o of e)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(i8(l)){const c=(l.__vccOpts||l)[t];c&&a.push(ks(c,r,n,o,s,i))}else{let u=l();a.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const f=gAe(c)?c.default:c;o.mods[s]=c,o.components[s]=f;const v=(f.__vccOpts||f)[t];return v&&ks(v,r,n,o,s,i)()}))}}return a}function MV(e){const t=Sa(zD),r=Sa(GD),n=dt(()=>{const l=se(e.to);return t.resolve(l)}),i=dt(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],f=r.matched;if(!c||!f.length)return-1;const h=f.findIndex(Gf.bind(null,c));if(h>-1)return h;const v=DV(l[u-2]);return u>1&&DV(c)===v&&f[f.length-1].path!==v?f.findIndex(Gf.bind(null,l[u-2])):h}),a=dt(()=>i.value>-1&&pMe(r.params,n.value.params)),o=dt(()=>i.value>-1&&i.value===r.matched.length-1&&c8(r.params,n.value.params));function s(l={}){if(dMe(l)){const u=t[se(e.replace)?"replace":"push"](se(e.to)).catch(td);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:dt(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function fMe(e){return e.length===1?e[0]:e}const hMe=Jt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:MV,setup(e,{slots:t}){const r=Wf(MV(e)),{options:n}=Sa(zD),i=dt(()=>({[IV(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[IV(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&fMe(t.default(r));return e.custom?a:No("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),vMe=hMe;function dMe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function pMe(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Aa(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function DV(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const IV=(e,t,r)=>e??t??r,gMe=Jt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Sa(BT),i=dt(()=>e.route||n.value),a=Sa(AV,0),o=dt(()=>{let u=se(a);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=dt(()=>i.value.matched[o.value]);Om(AV,dt(()=>o.value+1)),Om(cMe,s),Om(BT,i);const l=Je();return hr(()=>[l.value,s.value,e.name],([u,c,f],[h,v,d])=>{c&&(c.instances[f]=u,v&&v!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=v.leaveGuards),c.updateGuards.size||(c.updateGuards=v.updateGuards))),u&&c&&(!v||!Gf(c,v)||!h)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,h=f&&f.components[c];if(!h)return LV(r.default,{Component:h,route:u});const v=f.props[c],d=v?v===!0?u.params:typeof v=="function"?v(u):v:null,m=No(h,tr({},d,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return LV(r.default,{Component:m,route:u})||m}}});function LV(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const g8=gMe;function mMe(e){const t=nMe(e.routes,e),r=e.parseQuery||lMe,n=e.stringifyQuery||TV,i=e.history,a=lv(),o=lv(),s=lv(),l=W0(Ms);let u=Ms;Kc&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=lb.bind(null,ie=>""+ie),f=lb.bind(null,IAe),h=lb.bind(null,Hd);function v(ie,le){let de,me;return h8(ie)?(de=t.getRecordMatcher(ie),me=le):me=ie,t.addRoute(me,de)}function d(ie){const le=t.getRecordMatcher(ie);le&&t.removeRoute(le)}function g(){return t.getRoutes().map(ie=>ie.record)}function m(ie){return!!t.getRecordMatcher(ie)}function y(ie,le){if(le=tr({},le||l.value),typeof ie=="string"){const W=ub(r,ie,le.path),te=t.resolve({path:W.path},le),_e=i.createHref(W.fullPath);return tr(W,te,{params:h(te.params),hash:Hd(W.hash),redirectedFrom:void 0,href:_e})}let de;if(ie.path!=null)de=tr({},ie,{path:ub(r,ie.path,le.path).path});else{const W=tr({},ie.params);for(const te in W)W[te]==null&&delete W[te];de=tr({},ie,{params:f(W)}),le.params=f(le.params)}const me=t.resolve(de,le),be=ie.hash||"";me.params=c(h(me.params));const Re=RAe(n,tr({},ie,{hash:AAe(be),path:me.path})),H=i.createHref(Re);return tr({fullPath:Re,hash:be,query:n===TV?uMe(ie.query):ie.query||{}},me,{redirectedFrom:void 0,href:H})}function S(ie){return typeof ie=="string"?ub(r,ie,l.value.path):tr({},ie)}function w(ie,le){if(u!==ie)return $f(8,{from:le,to:ie})}function x(ie){return A(ie)}function T(ie){return x(tr(S(ie),{replace:!0}))}function b(ie){const le=ie.matched[ie.matched.length-1];if(le&&le.redirect){const{redirect:de}=le;let me=typeof de=="function"?de(ie):de;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=S(me):{path:me},me.params={}),tr({query:ie.query,hash:ie.hash,params:me.path!=null?{}:ie.params},me)}}function A(ie,le){const de=u=y(ie),me=l.value,be=ie.state,Re=ie.force,H=ie.replace===!0,W=b(de);if(W)return A(tr(S(W),{state:typeof W=="object"?tr({},be,W.state):be,force:Re,replace:H}),le||de);const te=de;te.redirectedFrom=le;let _e;return!Re&&EAe(n,me,de)&&(_e=$f(16,{to:te,from:me}),re(me,me,!0,!1)),(_e?Promise.resolve(_e):L(te,me)).catch(fe=>Io(fe)?Io(fe,2)?fe:J(fe):G(fe,te,me)).then(fe=>{if(fe){if(Io(fe,2))return A(tr({replace:H},S(fe.to),{state:typeof fe.to=="object"?tr({},be,fe.to.state):be,force:Re}),le||te)}else fe=E(te,me,!0,H,be);return P(te,me,fe),fe})}function M(ie,le){const de=w(ie,le);return de?Promise.reject(de):Promise.resolve()}function D(ie){const le=Le.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(ie):ie()}function L(ie,le){let de;const[me,be,Re]=yMe(ie,le);de=cb(me.reverse(),"beforeRouteLeave",ie,le);for(const W of me)W.leaveGuards.forEach(te=>{de.push(ks(te,ie,le))});const H=M.bind(null,ie,le);return de.push(H),Ge(de).then(()=>{de=[];for(const W of a.list())de.push(ks(W,ie,le));return de.push(H),Ge(de)}).then(()=>{de=cb(be,"beforeRouteUpdate",ie,le);for(const W of be)W.updateGuards.forEach(te=>{de.push(ks(te,ie,le))});return de.push(H),Ge(de)}).then(()=>{de=[];for(const W of Re)if(W.beforeEnter)if(Aa(W.beforeEnter))for(const te of W.beforeEnter)de.push(ks(te,ie,le));else de.push(ks(W.beforeEnter,ie,le));return de.push(H),Ge(de)}).then(()=>(ie.matched.forEach(W=>W.enterCallbacks={}),de=cb(Re,"beforeRouteEnter",ie,le,D),de.push(H),Ge(de))).then(()=>{de=[];for(const W of o.list())de.push(ks(W,ie,le));return de.push(H),Ge(de)}).catch(W=>Io(W,8)?W:Promise.reject(W))}function P(ie,le,de){s.list().forEach(me=>D(()=>me(ie,le,de)))}function E(ie,le,de,me,be){const Re=w(ie,le);if(Re)return Re;const H=le===Ms,W=Kc?history.state:{};de&&(me||H?i.replace(ie.fullPath,tr({scroll:H&&W&&W.scroll},be)):i.push(ie.fullPath,be)),l.value=ie,re(ie,le,de,H),J()}let F;function O(){F||(F=i.listen((ie,le,de)=>{if(!Fe.listening)return;const me=y(ie),be=b(me);if(be){A(tr(be,{replace:!0,force:!0}),me).catch(td);return}u=me;const Re=l.value;Kc&&GAe(gV(Re.fullPath,de.delta),q_()),L(me,Re).catch(H=>Io(H,12)?H:Io(H,2)?(A(tr(S(H.to),{force:!0}),me).then(W=>{Io(W,20)&&!de.delta&&de.type===Wd.pop&&i.go(-1,!1)}).catch(td),Promise.reject()):(de.delta&&i.go(-de.delta,!1),G(H,me,Re))).then(H=>{H=H||E(me,Re,!1),H&&(de.delta&&!Io(H,8)?i.go(-de.delta,!1):de.type===Wd.pop&&Io(H,20)&&i.go(-1,!1)),P(me,Re,H)}).catch(td)}))}let N=lv(),V=lv(),Y;function G(ie,le,de){J(ie);const me=V.list();return me.length?me.forEach(be=>be(ie,le,de)):console.error(ie),Promise.reject(ie)}function Z(){return Y&&l.value!==Ms?Promise.resolve():new Promise((ie,le)=>{N.add([ie,le])})}function J(ie){return Y||(Y=!ie,O(),N.list().forEach(([le,de])=>ie?de(ie):le()),N.reset()),ie}function re(ie,le,de,me){const{scrollBehavior:be}=e;if(!Kc||!be)return Promise.resolve();const Re=!de&&$Ae(gV(ie.fullPath,0))||(me||!de)&&history.state&&history.state.scroll||null;return Zd().then(()=>be(ie,le,Re)).then(H=>H&&zAe(H)).catch(H=>G(H,ie,le))}const pe=ie=>i.go(ie);let Me;const Le=new Set,Fe={currentRoute:l,listening:!0,addRoute:v,removeRoute:d,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:g,resolve:y,options:e,push:x,replace:T,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:V.add,isReady:Z,install(ie){const le=this;ie.component("RouterLink",vMe),ie.component("RouterView",g8),ie.config.globalProperties.$router=le,Object.defineProperty(ie.config.globalProperties,"$route",{enumerable:!0,get:()=>se(l)}),Kc&&!Me&&l.value===Ms&&(Me=!0,x(i.location).catch(be=>{}));const de={};for(const be in Ms)Object.defineProperty(de,be,{get:()=>l.value[be],enumerable:!0});ie.provide(zD,le),ie.provide(GD,nB(de)),ie.provide(BT,l);const me=ie.unmount;Le.add(ie),ie.unmount=function(){Le.delete(ie),Le.size<1&&(u=Ms,F&&F(),F=null,l.value=Ms,Me=!1,Y=!1),me()}}};function Ge(ie){return ie.reduce((le,de)=>le.then(()=>D(de)),Promise.resolve())}return Fe}function yMe(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oGf(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Gf(u,l))||i.push(l))}return[r,n,i]}function m8(e){return Sa(GD)}var pn=(e=>(e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e))(pn||{});const j_=mMe({history:XAe("./"),routes:[{path:"/proxies",name:"proxies",component:nAe},{path:"/connections",name:"connections",component:_Te},{path:"/logs",name:"logs",component:xTe},{path:"/rules",name:"rules",component:pAe},{path:"/settings",name:"settings",component:()=>sCe(()=>import("./SettingsPage-gUZKGfEk.js"),[],import.meta.url)},{path:"/:catchAll(.*)",redirect:"proxies"}]}),PV=jJ("zashboard"),y8=e=>{typeof e=="string"&&Fs.value?PV.value=`zashboard | ${TA.global.t(e)}`:PV.value="zashboard"};j_.afterEach(e=>{y8(e.name)});hr(Au,()=>{y8(j_.currentRoute.value.name)});const _Me={class:"flex flex-col gap-4 text-sm"},SMe={class:"flex flex-col items-center justify-center"},wMe={class:"flex flex-col items-center justify-center"},xMe={class:"flex flex-col items-center justify-center"},bMe={class:"flex flex-col items-center justify-center"},CMe={class:"btn btn-circle btn-sm"},TMe=Jt({__name:"VerticalInfos",setup(e){return(t,r)=>(he(),Ae("div",_Me,[oe("div",SMe,[ze(se(B3),{class:"h-5 w-5"}),Ir(" "+Xe(se(Pr)(se(Jc))),1)]),oe("div",wMe,[ze(se(G3),{class:"h-5 w-5"}),Ir(" "+Xe(se(Pr)(se(Qc))),1)]),oe("div",xMe,[ze(se(lne),{class:"h-5 w-5"}),Ir(" "+Xe(se(Pr)(se(Ey),{binary:!0})),1)]),oe("div",bMe,[oe("button",CMe,[ze(se(one),{class:"h-5 w-5",onClick:r[0]||(r[0]=n=>Qa.value=!1)})])])]))}}),AMe={class:"drawer-side z-30"},MMe={class:"menu flex-1 pb-0"},DMe=["href"],IMe={class:"card bg-base-100 shadow-lg"},LMe=Jt({__name:"SideBar",setup(e){const t={[pn.connections]:rz,[pn.logs]:nz,[pn.proxies]:iz,[pn.rules]:oz},r={[pn.proxies]:Y3,[pn.connections]:$3,[pn.rules]:j3,[pn.logs]:U3,[pn.settings]:W3},n=dt(()=>i.name?t[i.name]:null),i=m8(),a=Object.values(pn);return(o,s)=>(he(),Ae("div",AMe,[s[0]||(s[0]=oe("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),oe("div",{class:Gt(se(Qr)("flex h-full flex-col gap-2 overflow-x-hidden bg-base-200 p-2 text-base-content !transition-all duration-500",se(Qa)?"w-16 px-0":"w-[21rem]"))},[oe("ul",MMe,[(he(!0),Ae(wt,null,wr(se(a),l=>(he(),Ae("li",{key:l},[oe("a",{class:Gt(l===se(i).name?"active":"inactive"),href:`#${l}`},[(he(),qt(Bu(r[l]),{class:"h-5 w-5"})),se(Qa)?nr("",!0):(he(),Ae(wt,{key:0},[Ir(Xe(o.$t(l)),1)],64))],10,DMe)]))),128))]),se(Qa)?(he(),qt(TMe,{key:0})):(he(),Ae(wt,{key:1},[oe("div",IMe,[n.value?(he(),qt(Bu(n.value),{key:0})):nr("",!0),ze(mne)]),ze(iCe)],64))],2)]))}}),PMe={class:"w-128 drawer md:drawer-open"},RMe={class:"drawer-content fixed bottom-0 flex h-full w-full flex-col overflow-hidden md:relative md:w-auto"},EMe={class:"flex h-12 w-full items-center justify-center gap-1 bg-base-200 p-1 md:hidden"},kMe={class:"menu menu-horizontal"},OMe=["href"],NMe={for:"sidebar"},FMe={class:"btn btn-circle drawer-button btn-sm bg-neutral text-neutral-content shadow-lg"},VMe=Jt({__name:"HomePage",setup(e){const t={[pn.proxies]:Y3,[pn.connections]:$3,[pn.rules]:j3,[pn.logs]:U3,[pn.settings]:W3},r=m8(),n=Object.values(pn);return hr(Fo,()=>{Ov.value=fd.RULES,hf.value=Tf.PROXIES,y3(),Oy(),DA(),Qee(),Bb()},{immediate:!0}),(i,a)=>(he(),Ae("div",PMe,[a[0]||(a[0]=oe("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),ze(LMe),oe("div",RMe,[ze(se(g8),{class:"flex-1 bg-base-200/50"}),oe("div",EMe,[oe("ul",kMe,[(he(!0),Ae(wt,null,wr(se(n),o=>(he(),Ae("li",{key:o},[oe("a",{class:Gt(o===se(r).name?"active":"inactive"),href:`#${o}`},[(he(),qt(Bu(t[o]),{class:"h-5 w-5"}))],10,OMe)]))),128))]),oe("label",NMe,[oe("div",FMe,[ze(se(sne),{class:"h-4 w-4"})])])])])]))}}),BMe={class:"flex h-full w-full items-center justify-center"},zMe={class:"rounded-lg bg-base-100 p-6 shadow-lg"},GMe={class:"mb-4 text-2xl font-semibold"},$Me={class:"form-control mb-4"},HMe={class:"label"},WMe={class:"label-text"},UMe={class:"form-control mb-4"},YMe={class:"label"},XMe={class:"label-text"},ZMe={class:"form-control mb-4"},qMe={class:"label"},jMe={class:"label-text"},KMe={class:"form-control"},JMe={class:"label"},QMe={class:"label-text"},eDe=["onClick"],tDe=Jt({__name:"SetupPage",setup(e){var i,a;const t=Wf({protocol:"http",host:"127.0.0.1",port:9090,password:""}),r=async(o,s=!1)=>{const{protocol:l,host:u,port:c,password:f}=o;if(!l||!u||!c){alert("Please fill in all the fields.");return}const h=await fetch(`${l}://${u}:${c}/version`,{method:"GET",headers:{Authorization:`Bearer ${f}`}}),{version:v,message:d}=await h.json();if(!v){s||alert(d);return}oQ(o),j_.push({name:"proxies"})},n=new URLSearchParams(window.location.search||((a=(i=location.hash.match(/\?.*$/))==null?void 0:i[0])==null?void 0:a.replace("?","")));return n.has("hostname")?r({protocol:window.location.protocol.replace(":",""),host:n.get("hostname"),port:Number(n.get("port")),password:n.get("secret")}):r(t,!0),(o,s)=>(he(),Ae("div",BMe,[oe("div",zMe,[oe("h1",GMe,Xe(o.$t("setup")),1),oe("div",$Me,[oe("label",HMe,[oe("span",WMe,Xe(o.$t("protocol")),1)]),ci(oe("select",{class:"select select-bordered w-full","onUpdate:modelValue":s[0]||(s[0]=l=>t.protocol=l)},s[5]||(s[5]=[oe("option",{value:"http"},"HTTP",-1),oe("option",{value:"https"},"HTTPS",-1)]),512),[[Jd,t.protocol]])]),oe("div",UMe,[oe("label",YMe,[oe("span",XMe,Xe(o.$t("host")),1)]),ci(oe("input",{type:"text",class:"input input-bordered w-full","onUpdate:modelValue":s[1]||(s[1]=l=>t.host=l)},null,512),[[ff,t.host]])]),oe("div",ZMe,[oe("label",qMe,[oe("span",jMe,Xe(o.$t("port")),1)]),ci(oe("input",{type:"text",class:"input input-bordered w-full","onUpdate:modelValue":s[2]||(s[2]=l=>t.port=l)},null,512),[[ff,t.port]])]),oe("div",KMe,[oe("label",JMe,[oe("span",QMe,Xe(o.$t("password")),1)]),ci(oe("input",{type:"password",class:"input input-bordered w-full","onUpdate:modelValue":s[3]||(s[3]=l=>t.password=l)},null,512),[[ff,t.password]])]),oe("button",{class:"btn btn-primary mt-4 w-full",onClick:s[4]||(s[4]=l=>r(t))},Xe(o.$t("submit")),1),(he(!0),Ae(wt,null,wr(se(ud),l=>(he(),Ae("button",{class:"btn btn-xs mt-2 w-full",key:l.uuid,onClick:u=>Fo.value=l.uuid},Xe(l.protocol)+"://"+Xe(l.host)+":"+Xe(l.port),9,eDe))),128))])]))}}),rDe=["data-theme"],nDe=Jt({__name:"App",setup(e){return(t,r)=>(he(),Ae("div",{class:"flex h-dvh w-screen overflow-x-hidden bg-base-100 font-twemoji","data-theme":se(qee)},[se(Fs)?(he(),qt(VMe,{key:1})):(he(),qt(tDe,{key:0}))],8,rDe))}}),$D=AJ(nDe);Fu.extend(ij);$D.use(j_);$D.use(TA);$D.mount("#app");export{nr as A,aA as B,Nr as C,jee as D,dA as E,wt as F,ff as G,g3 as H,m3 as I,pA as J,Kee as K,uDe as L,lDe as M,oDe as N,aDe as O,Qr as P,sDe as Q,Wf as a,qd as b,dt as c,Jt as d,m2 as e,he as f,Gu as g,No as h,sr as i,Ae as j,ze as k,Qj as l,wr as m,Zd as n,QT as o,Xe as p,oe as q,Je as r,Ir as s,iDe as t,se as u,ci as v,hr as w,Jd as x,qee as y,Gt as z}; diff --git a/index.html b/index.html index 483f4cb7..d5bf6193 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ zashboard - +