From 301d8ffbec3eb027920ae023f2c0d7f2217136b0 Mon Sep 17 00:00:00 2001 From: Zephyruso Date: Mon, 2 Dec 2024 02:47:20 +0000 Subject: [PATCH] deploy: cd0f65b6f8ee0e07efa880bd8f162b8413be88b9 --- assets/index-BZWzgbpw.js | 157 --------------------------------------- assets/index-Cicg2cHj.js | 157 +++++++++++++++++++++++++++++++++++++++ index.html | 2 +- 3 files changed, 158 insertions(+), 158 deletions(-) delete mode 100644 assets/index-BZWzgbpw.js create mode 100644 assets/index-Cicg2cHj.js diff --git a/assets/index-BZWzgbpw.js b/assets/index-BZWzgbpw.js deleted file mode 100644 index 7320ecb6..00000000 --- a/assets/index-BZWzgbpw.js +++ /dev/null @@ -1,157 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var ym=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function TD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $y={exports:{}},xJ=$y.exports,lR;function z3(){return lR||(lR=1,function(e,t){(function(r,n){e.exports=n()})(xJ,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",v="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var N=["th","st","nd","rd"],V=O%100;return"["+O+(N[(V-20)%10]||N[V]||N[0])+"]"}},b=function(O,N,V){var U=String(O);return!U||U.length>=N?O:""+Array(N+1-U.length).join(V)+O},w={s:b,z:function(O){var N=-O.utcOffset(),V=Math.abs(N),U=Math.floor(V/60),G=V%60;return(N<=0?"+":"-")+b(U,2,"0")+":"+b(G,2,"0")},m:function O(N,V){if(N.date()1)return O(Q[0])}else{var ie=N.name;x[ie]=N,G=ie}return!U&&G&&(C=G),G||!U&&C},I=function(O,N){if(D(O))return O.clone();var V=typeof N=="object"?N:{};return V.date=O,V.args=arguments,new E(V)},P=w;P.l=M,P.i=D,P.w=function(O,N){return I(O,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var E=function(){function O(V){this.$L=M(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[A]=!0}var N=O.prototype;return N.parse=function(V){this.$d=function(U){var G=U.date,Z=U.utc;if(G===null)return new Date(NaN);if(P.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var Q=G.match(m);if(Q){var ie=Q[2]-1||0,pe=(Q[7]||"0").substring(0,3);return Z?new Date(Date.UTC(Q[1],ie,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,pe)):new Date(Q[1],ie,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,pe)}}return new Date(G)}(V),this.init()},N.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},N.$utils=function(){return P},N.isValid=function(){return this.$d.toString()!==g},N.isSame=function(V,U){var G=I(V);return this.startOf(U)<=G&&G<=this.endOf(U)},N.isAfter=function(V,U){return I(V)0,x<=C.r||!C.r){x<=1&&w>0&&(C=S[w-1]);var A=y[C.l];d&&(x=d(""+x)),g=typeof A=="string"?A.replace("%d",x):A(x,c,C.l,m);break}}if(c)return g;var D=m?y.future:y.past;return typeof D=="function"?D(g):D.replace("%s",g)},a.to=function(u,c){return s(u,c,this,!0)},a.from=function(u,c){return s(u,c,this)};var l=function(u){return u.$u?i.utc():i()};a.toNow=function(u){return this.to(l(this),u)},a.fromNow=function(u){return this.from(l(this),u)}}})}(Wy)),Wy.exports}var IJ=MJ();const LJ=TD(IJ);/** -* @vue/shared v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function AD(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const wr={},th=[],Co=()=>{},PJ=()=>!1,o1=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),DD=e=>e.startsWith("onUpdate:"),Sn=Object.assign,MD=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},RJ=Object.prototype.hasOwnProperty,hr=(e,t)=>RJ.call(e,t),ct=Array.isArray,rh=e=>Kp(e)==="[object Map]",Vh=e=>Kp(e)==="[object Set]",fR=e=>Kp(e)==="[object Date]",At=e=>typeof e=="function",Kr=e=>typeof e=="string",Ya=e=>typeof e=="symbol",Cr=e=>e!==null&&typeof e=="object",G3=e=>(Cr(e)||At(e))&&At(e.then)&&At(e.catch),$3=Object.prototype.toString,Kp=e=>$3.call(e),EJ=e=>Kp(e).slice(8,-1),H3=e=>Kp(e)==="[object Object]",ID=e=>Kr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dv=AD(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),s1=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},kJ=/-(\w)/g,wa=s1(e=>e.replace(kJ,(t,r)=>r?r.toUpperCase():"")),OJ=/\B([A-Z])/g,Hc=s1(e=>e.replace(OJ,"-$1").toLowerCase()),l1=s1(e=>e.charAt(0).toUpperCase()+e.slice(1)),Eb=s1(e=>e?`on${l1(e)}`:""),Pl=(e,t)=>!Object.is(e,t),Uy=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},F0=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hR;const u1=()=>hR||(hR=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tc(e){if(ct(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 Kt(e){let t="";if(Kr(e))t=e;else if(ct(e))for(let r=0;rJp(r,t))}const Y3=e=>!!(e&&e.__v_isRef===!0),ke=e=>Kr(e)?e:e==null?"":ct(e)||Cr(e)&&(e.toString===$3||!At(e.toString))?Y3(e)?ke(e.value):JSON.stringify(e,X3,2):String(e),X3=(e,t)=>Y3(t)?X3(e,t.value):rh(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],a)=>(r[kb(n,a)+" =>"]=i,r),{})}:Vh(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>kb(r))}:Ya(t)?kb(t):Cr(t)&&!ct(t)&&!H3(t)?String(t):t,kb=(e,t="")=>{var r;return Ya(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 ri;class Z3{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ri,!t&&ri&&(this.index=(ri.scopes||(ri.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(Iv){let t=Iv;for(Iv=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Mv;){let t=Mv;for(Mv=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 Q3(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ez(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),ED(n),UJ(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function UC(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(tz(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function tz(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===lp))return;e.globalVersion=lp;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!UC(e)){e.flags&=-3;return}const r=Ar,n=Ga;Ar=e,Ga=!0;try{Q3(e);const i=e.fn(e._value);(t.version===0||Pl(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Ar=r,Ga=n,ez(e),e.flags&=-3}}function ED(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)ED(a,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function UJ(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Ga=!0;const rz=[];function Kl(){rz.push(Ga),Ga=!1}function Jl(){const e=rz.pop();Ga=e===void 0?!0:e}function dR(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Ar;Ar=void 0;try{t()}finally{Ar=r}}}let lp=0;class YJ{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 c1{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(!Ar||!Ga||Ar===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Ar)r=this.activeLink=new YJ(Ar,this),Ar.deps?(r.prevDep=Ar.depsTail,Ar.depsTail.nextDep=r,Ar.depsTail=r):Ar.deps=Ar.depsTail=r,nz(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=Ar.depsTail,r.nextDep=void 0,Ar.depsTail.nextDep=r,Ar.depsTail=r,Ar.deps===r&&(Ar.deps=n)}return r}trigger(t){this.version++,lp++,this.notify(t)}notify(t){PD();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{RD()}}}function nz(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)nz(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const V0=new WeakMap,pc=Symbol(""),YC=Symbol(""),up=Symbol("");function $n(e,t,r){if(Ga&&Ar){let n=V0.get(e);n||V0.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new c1),i.map=n,i.key=r),i.track()}}function ls(e,t,r,n,i,a){const o=V0.get(e);if(!o){lp++;return}const s=l=>{l&&l.trigger()};if(PD(),t==="clear")o.forEach(s);else{const l=ct(e),u=l&&ID(r);if(l&&r==="length"){const c=Number(n);o.forEach((f,h)=>{(h==="length"||h===up||!Ya(h)&&h>=c)&&s(f)})}else switch((r!==void 0||o.has(void 0))&&s(o.get(r)),u&&s(o.get(up)),t){case"add":l?u&&s(o.get("length")):(s(o.get(pc)),rh(e)&&s(o.get(YC)));break;case"delete":l||(s(o.get(pc)),rh(e)&&s(o.get(YC)));break;case"set":rh(e)&&s(o.get(pc));break}}RD()}function XJ(e,t){const r=V0.get(e);return r&&r.get(t)}function gf(e){const t=or(e);return t===e?t:($n(t,"iterate",up),Sa(e)?t:t.map(Hn))}function f1(e){return $n(e=or(e),"iterate",up),e}const ZJ={__proto__:null,[Symbol.iterator](){return Nb(this,Symbol.iterator,Hn)},concat(...e){return gf(this).concat(...e.map(t=>ct(t)?gf(t):t))},entries(){return Nb(this,"entries",e=>(e[1]=Hn(e[1]),e))},every(e,t){return jo(this,"every",e,t,void 0,arguments)},filter(e,t){return jo(this,"filter",e,t,r=>r.map(Hn),arguments)},find(e,t){return jo(this,"find",e,t,Hn,arguments)},findIndex(e,t){return jo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jo(this,"findLast",e,t,Hn,arguments)},findLastIndex(e,t){return jo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jo(this,"forEach",e,t,void 0,arguments)},includes(...e){return Fb(this,"includes",e)},indexOf(...e){return Fb(this,"indexOf",e)},join(e){return gf(this).join(e)},lastIndexOf(...e){return Fb(this,"lastIndexOf",e)},map(e,t){return jo(this,"map",e,t,void 0,arguments)},pop(){return bd(this,"pop")},push(...e){return bd(this,"push",e)},reduce(e,...t){return vR(this,"reduce",e,t)},reduceRight(e,...t){return vR(this,"reduceRight",e,t)},shift(){return bd(this,"shift")},some(e,t){return jo(this,"some",e,t,void 0,arguments)},splice(...e){return bd(this,"splice",e)},toReversed(){return gf(this).toReversed()},toSorted(e){return gf(this).toSorted(e)},toSpliced(...e){return gf(this).toSpliced(...e)},unshift(...e){return bd(this,"unshift",e)},values(){return Nb(this,"values",Hn)}};function Nb(e,t,r){const n=f1(e),i=n[t]();return n!==e&&!Sa(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const qJ=Array.prototype;function jo(e,t,r,n,i,a){const o=f1(e),s=o!==e&&!Sa(e),l=o[t];if(l!==qJ[t]){const f=l.apply(e,a);return s?Hn(f):f}let u=r;o!==e&&(s?u=function(f,h){return r.call(this,Hn(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 vR(e,t,r,n){const i=f1(e);let a=r;return i!==e&&(Sa(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,Hn(s),l,e)}),i[t](a,...n)}function Fb(e,t,r){const n=or(e);$n(n,"iterate",up);const i=n[t](...r);return(i===-1||i===!1)&&ND(r[0])?(r[0]=or(r[0]),n[t](...r)):i}function bd(e,t,r=[]){Kl(),PD();const n=or(e)[t].apply(e,r);return RD(),Jl(),n}const jJ=AD("__proto__,__v_isRef,__isVue"),iz=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ya));function KJ(e){Ya(e)||(e=String(e));const t=or(this);return $n(t,"has",e),t.hasOwnProperty(e)}class az{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?sQ:uz:a?lz:sz).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=ct(t);if(!i){let l;if(o&&(l=ZJ[r]))return l;if(r==="hasOwnProperty")return KJ}const s=Reflect.get(t,r,bt(t)?t:n);return(Ya(r)?iz.has(r):jJ(r))||(i||$n(t,"get",r),a)?s:bt(s)?o&&ID(r)?s:s.value:Cr(s)?i?h1(s):Wc(s):s}}class oz extends az{constructor(t=!1){super(!1,t)}set(t,r,n,i){let a=t[r];if(!this._isShallow){const l=Pc(a);if(!Sa(n)&&!Pc(n)&&(a=or(a),n=or(n)),!ct(t)&&bt(a)&&!bt(n))return l?!1:(a.value=n,!0)}const o=ct(t)&&ID(r)?Number(r)e,_m=e=>Reflect.getPrototypeOf(e);function rQ(e,t,r){return function(...n){const i=this.__v_raw,a=or(i),o=rh(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),c=r?XC:t?ZC:Hn;return!t&&$n(a,"iterate",l?YC:pc),{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 Sm(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function nQ(e,t){const r={get(i){const a=this.__v_raw,o=or(a),s=or(i);e||(Pl(i,s)&&$n(o,"get",i),$n(o,"get",s));const{has:l}=_m(o),u=t?XC:e?ZC:Hn;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&&$n(or(i),"iterate",pc),Reflect.get(i,"size",i)},has(i){const a=this.__v_raw,o=or(a),s=or(i);return e||(Pl(i,s)&&$n(o,"has",i),$n(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=or(s),u=t?XC:e?ZC:Hn;return!e&&$n(l,"iterate",pc),s.forEach((c,f)=>i.call(a,u(c),u(f),o))}};return Sn(r,e?{add:Sm("add"),set:Sm("set"),delete:Sm("delete"),clear:Sm("clear")}:{add(i){!t&&!Sa(i)&&!Pc(i)&&(i=or(i));const a=or(this);return _m(a).has.call(a,i)||(a.add(i),ls(a,"add",i,i)),this},set(i,a){!t&&!Sa(a)&&!Pc(a)&&(a=or(a));const o=or(this),{has:s,get:l}=_m(o);let u=s.call(o,i);u||(i=or(i),u=s.call(o,i));const c=l.call(o,i);return o.set(i,a),u?Pl(a,c)&&ls(o,"set",i,a):ls(o,"add",i,a),this},delete(i){const a=or(this),{has:o,get:s}=_m(a);let l=o.call(a,i);l||(i=or(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&ls(a,"delete",i,void 0),u},clear(){const i=or(this),a=i.size!==0,o=i.clear();return a&&ls(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=rQ(i,e,t)}),r}function kD(e,t){const r=nQ(e,t);return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(hr(r,i)&&i in n?r:n,i,a)}const iQ={get:kD(!1,!1)},aQ={get:kD(!1,!0)},oQ={get:kD(!0,!1)};const sz=new WeakMap,lz=new WeakMap,uz=new WeakMap,sQ=new WeakMap;function lQ(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function uQ(e){return e.__v_skip||!Object.isExtensible(e)?0:lQ(EJ(e))}function Wc(e){return Pc(e)?e:OD(e,!1,QJ,iQ,sz)}function cz(e){return OD(e,!1,tQ,aQ,lz)}function h1(e){return OD(e,!0,eQ,oQ,uz)}function OD(e,t,r,n,i){if(!Cr(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=uQ(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function nh(e){return Pc(e)?nh(e.__v_raw):!!(e&&e.__v_isReactive)}function Pc(e){return!!(e&&e.__v_isReadonly)}function Sa(e){return!!(e&&e.__v_isShallow)}function ND(e){return e?!!e.__v_raw:!1}function or(e){const t=e&&e.__v_raw;return t?or(t):e}function cQ(e){return!hr(e,"__v_skip")&&Object.isExtensible(e)&&W3(e,"__v_skip",!0),e}const Hn=e=>Cr(e)?Wc(e):e,ZC=e=>Cr(e)?h1(e):e;function bt(e){return e?e.__v_isRef===!0:!1}function je(e){return fz(e,!1)}function d1(e){return fz(e,!0)}function fz(e,t){return bt(e)?e:new fQ(e,t)}class fQ{constructor(t,r){this.dep=new c1,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:or(t),this._value=r?t:Hn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Sa(t)||Pc(t);t=n?t:or(t),Pl(t,r)&&(this._rawValue=t,this._value=n?t:Hn(t),this.dep.trigger())}}function J(e){return bt(e)?e.value:e}const hQ={get:(e,t,r)=>t==="__v_raw"?e:J(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return bt(i)&&!bt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function hz(e){return nh(e)?e:new Proxy(e,hQ)}class dQ{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new c1,{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 vQ(e){return new dQ(e)}function pQ(e){const t=ct(e)?new Array(e.length):{};for(const r in e)t[r]=dz(e,r);return t}class gQ{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 XJ(or(this._object),this._key)}}class mQ{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 yQ(e,t,r){return bt(e)?e:At(e)?new mQ(e):Cr(e)&&arguments.length>1?dz(e,t,r):je(e)}function dz(e,t,r){const n=e[t];return bt(n)?n:new gQ(e,t,r)}class _Q{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new c1(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=lp-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ar!==this)return J3(this,!0),!0}get value(){const t=this.dep.track();return tz(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function SQ(e,t,r=!1){let n,i;return At(e)?n=e:(n=e.get,i=e.set),new _Q(n,i,r)}const bm={},B0=new WeakMap;let Gu;function bQ(e,t=!1,r=Gu){if(r){let n=B0.get(r);n||B0.set(r,n=[]),n.push(e)}}function wQ(e,t,r=wr){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=w=>i?w:Sa(w)||i===!1||i===0?us(w,1):us(w);let c,f,h,d,v=!1,g=!1;if(bt(e)?(f=()=>e.value,v=Sa(e)):nh(e)?(f=()=>u(e),v=!0):ct(e)?(g=!0,v=e.some(w=>nh(w)||Sa(w)),f=()=>e.map(w=>{if(bt(w))return w.value;if(nh(w))return u(w);if(At(w))return l?l(w,2):w()})):At(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){Kl();try{h()}finally{Jl()}}const w=Gu;Gu=c;try{return l?l(e,3,[d]):e(d)}finally{Gu=w}}:f=Co,t&&i){const w=f,C=i===!0?1/0:i;f=()=>us(w(),C)}const m=q3(),y=()=>{c.stop(),m&&m.active&&MD(m.effects,c)};if(a&&t){const w=t;t=(...C)=>{w(...C),y()}}let S=g?new Array(e.length).fill(bm):bm;const b=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const C=c.run();if(i||v||(g?C.some((x,A)=>Pl(x,S[A])):Pl(C,S))){h&&h();const x=Gu;Gu=c;try{const A=[C,S===bm?void 0:g&&S[0]===bm?[]:S,d];l?l(t,3,A):t(...A),S=C}finally{Gu=x}}}else c.run()};return s&&s(b),c=new j3(f),c.scheduler=o?()=>o(b,!1):b,d=w=>bQ(w,!1,c),h=c.onStop=()=>{const w=B0.get(c);if(w){if(l)l(w,4);else for(const C of w)C();B0.delete(c)}},t?n?b(!0):S=c.run():o?o(b.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function us(e,t=1/0,r){if(t<=0||!Cr(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,bt(e))us(e.value,t,r);else if(ct(e))for(let n=0;n{us(n,t,r)});else if(H3(e)){for(const n in e)us(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&us(e[n],t,r)}return e}/** -* @vue/runtime-core v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Qp(e,t,r,n){try{return n?e(...n):e()}catch(i){v1(i,t,r)}}function Mo(e,t,r,n){if(At(e)){const i=Qp(e,t,r,n);return i&&G3(i)&&i.catch(a=>{v1(a,t,r)}),i}if(ct(e)){const i=[];for(let a=0;a>>1,i=ai[n],a=cp(i);a=cp(r)?ai.push(e):ai.splice(CQ(t),0,e),e.flags|=1,pz()}}function pz(){z0||(z0=vz.then(mz))}function TQ(e){ct(e)?ih.push(...e):ll&&e.id===-1?ll.splice(zf+1,0,e):e.flags&1||(ih.push(e),e.flags|=1),pz()}function pR(e,t,r=ho+1){for(;rcp(r)-cp(n));if(ih.length=0,ll){ll.push(...t);return}for(ll=t,zf=0;zfe.id==null?e.flags&2?-1:1/0:e.id;function mz(e){try{for(ho=0;ho{n._d&&CR(-1);const a=G0(t);let o;try{o=e(...i)}finally{G0(a),n._d&&CR(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Dr(e,t){if(yn===null)return e;const r=y1(yn),n=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport;function VD(e,t){e.shapeFlag&6&&e.component?(e.transition=t,VD(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 Ut(e,t){return At(e)?Sn({name:e.name},t,{setup:e}):e}function _z(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $0(e,t,r,n,i=!1){if(ct(e)){e.forEach((v,g)=>$0(v,t&&(ct(t)?t[g]:t),r,n,i));return}if(ah(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&$0(e,t,r,n.component.subTree);return}const a=n.shapeFlag&4?y1(n.component):n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===wr?s.refs={}:s.refs,f=s.setupState,h=or(f),d=f===wr?()=>!1:v=>hr(h,v);if(u!=null&&u!==l&&(Kr(u)?(c[u]=null,d(u)&&(f[u]=null)):bt(u)&&(u.value=null)),At(l))Qp(l,s,12,[o,c]);else{const v=Kr(l),g=bt(l);if(v||g){const m=()=>{if(e.f){const y=v?d(l)?f[l]:c[l]:l.value;i?ct(y)&&MD(y,a):ct(y)?y.includes(a)||y.push(a):v?(c[l]=[a],d(l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else v?(c[l]=o,d(l)&&(f[l]=o)):g&&(l.value=o,e.k&&(c[e.k]=o))};o?(m.id=-1,Bi(m,r)):m()}}}u1().requestIdleCallback;u1().cancelIdleCallback;const ah=e=>!!e.type.__asyncLoader,Sz=e=>e.type.__isKeepAlive;function MQ(e,t){bz(e,"a",t)}function IQ(e,t){bz(e,"da",t)}function bz(e,t,r=In){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(p1(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Sz(i.parent.vnode)&&LQ(n,t,r,i),i=i.parent}}function LQ(e,t,r,n){const i=p1(t,e,n,!0);g1(()=>{MD(n[t],i)},r)}function p1(e,t,r=In,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Kl();const s=tg(r),l=Mo(t,r,e,o);return s(),Jl(),l});return n?i.unshift(a):i.push(a),a}}const Es=e=>(t,r=In)=>{(!vp||e==="sp")&&p1(e,(...n)=>t(...n),r)},PQ=Es("bm"),Bh=Es("m"),RQ=Es("bu"),EQ=Es("u"),wz=Es("bum"),g1=Es("um"),kQ=Es("sp"),OQ=Es("rtg"),NQ=Es("rtc");function FQ(e,t=In){p1("ec",e,t)}const VQ="components",xz=Symbol.for("v-ndc");function Vl(e){return Kr(e)?BQ(VQ,e,!1)||e:e||xz}function BQ(e,t,r=!0,n=!1){const i=yn||In;if(i){const a=i.type;{const s=Aee(a,!1);if(s&&(s===t||s===wa(t)||s===l1(wa(t))))return a}const o=gR(i[e]||a[e],t)||gR(i.appContext[e],t);return!o&&n?a:o}}function gR(e,t){return e&&(e[t]||e[wa(t)]||e[l1(wa(t))])}function dr(e,t,r,n){let i;const a=r,o=ct(e);if(o||Kr(e)){const s=o&&nh(e);let l=!1;s&&(l=!Sa(e),e=f1(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;ldp(t)?!(t.type===Bl||t.type===lt&&!Cz(t.children)):!0)?e:null}const qC=e=>e?Hz(e)?y1(e):qC(e.parent):null,Lv=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=>qC(e.parent),$root:e=>qC(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>BD(e),$forceUpdate:e=>e.f||(e.f=()=>{FD(e.update)}),$nextTick:e=>e.n||(e.n=Uc.bind(e.proxy)),$watch:e=>see.bind(e)}),Vb=(e,t)=>e!==wr&&!e.__isScriptSetup&&hr(e,t),GQ={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 d=o[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(Vb(n,t))return o[t]=1,n[t];if(i!==wr&&hr(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&hr(u,t))return o[t]=3,a[t];if(r!==wr&&hr(r,t))return o[t]=4,r[t];jC&&(o[t]=0)}}const c=Lv[t];let f,h;if(c)return t==="$attrs"&&$n(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==wr&&hr(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,hr(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return Vb(i,t)?(i[t]=r,!0):n!==wr&&hr(n,t)?(n[t]=r,!0):hr(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!==wr&&hr(e,o)||Vb(t,o)||(s=a[0])&&hr(s,o)||hr(n,o)||hr(Lv,o)||hr(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:hr(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function mR(e){return ct(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let jC=!0;function $Q(e){const t=BD(e),r=e.proxy,n=e.ctx;jC=!1,t.beforeCreate&&yR(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:d,updated:v,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:S,destroyed:b,unmounted:w,render:C,renderTracked:x,renderTriggered:A,errorCaptured:D,serverPrefetch:M,expose:I,inheritAttrs:P,components:E,directives:F,filters:O}=t;if(u&&HQ(u,n,null),o)for(const U in o){const G=o[U];At(G)&&(n[U]=G.bind(r))}if(i){const U=i.call(r,r);Cr(U)&&(e.data=Wc(U))}if(jC=!0,a)for(const U in a){const G=a[U],Z=At(G)?G.bind(r,r):At(G.get)?G.get.bind(r,r):Co,Q=!At(G)&&At(G.set)?G.set.bind(r):Co,ie=at({get:Z,set:Q});Object.defineProperty(n,U,{enumerable:!0,configurable:!0,get:()=>ie.value,set:pe=>ie.value=pe})}if(s)for(const U in s)Tz(s[U],n,r,U);if(l){const U=At(l)?l.call(r):l;Reflect.ownKeys(U).forEach(G=>{Yy(G,U[G])})}c&&yR(c,e,"c");function V(U,G){ct(G)?G.forEach(Z=>U(Z.bind(r))):G&&U(G.bind(r))}if(V(PQ,f),V(Bh,h),V(RQ,d),V(EQ,v),V(MQ,g),V(IQ,m),V(FQ,D),V(NQ,x),V(OQ,A),V(wz,S),V(g1,w),V(kQ,M),ct(I))if(I.length){const U=e.exposed||(e.exposed={});I.forEach(G=>{Object.defineProperty(U,G,{get:()=>r[G],set:Z=>r[G]=Z})})}else e.exposed||(e.exposed={});C&&e.render===Co&&(e.render=C),P!=null&&(e.inheritAttrs=P),E&&(e.components=E),F&&(e.directives=F),M&&_z(e)}function HQ(e,t,r=Co){ct(e)&&(e=KC(e));for(const n in e){const i=e[n];let a;Cr(i)?"default"in i?a=$a(i.from||n,i.default,!0):a=$a(i.from||n):a=$a(i),bt(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function yR(e,t,r){Mo(ct(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Tz(e,t,r,n){let i=n.includes(".")?Vz(r,n):()=>r[n];if(Kr(e)){const a=t[e];At(a)&&vr(i,a)}else if(At(e))vr(i,e.bind(r));else if(Cr(e))if(ct(e))e.forEach(a=>Tz(a,t,r,n));else{const a=At(e.handler)?e.handler.bind(r):t[e.handler];At(a)&&vr(i,a,e)}}function BD(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=>H0(l,u,o,!0)),H0(l,t,o)),Cr(t)&&a.set(t,l),l}function H0(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&H0(e,a,r,!0),i&&i.forEach(o=>H0(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=WQ[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const WQ={data:_R,props:SR,emits:SR,methods:iv,computed:iv,beforeCreate:Kn,created:Kn,beforeMount:Kn,mounted:Kn,beforeUpdate:Kn,updated:Kn,beforeDestroy:Kn,beforeUnmount:Kn,destroyed:Kn,unmounted:Kn,activated:Kn,deactivated:Kn,errorCaptured:Kn,serverPrefetch:Kn,components:iv,directives:iv,watch:YQ,provide:_R,inject:UQ};function _R(e,t){return t?e?function(){return Sn(At(e)?e.call(this,this):e,At(t)?t.call(this,this):t)}:t:e}function UQ(e,t){return iv(KC(e),KC(t))}function KC(e){if(ct(e)){const t={};for(let r=0;r1)return r&&At(t)?t.call(n&&n.proxy):t}}const Dz={},Mz=()=>Object.create(Dz),Iz=e=>Object.getPrototypeOf(e)===Dz;function qQ(e,t,r,n=!1){const i={},a=Mz();e.propsDefaults=Object.create(null),Lz(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:cz(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function jQ(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=or(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,d]=Pz(f,t,!0);Sn(o,h),d&&s.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return Cr(e)&&n.set(e,th),th;if(ct(a))for(let c=0;ce[0]==="_"||e==="$stable",zD=e=>ct(e)?e.map(po):[po(e)],JQ=(e,t,r)=>{if(t._n)return t;const n=fp((...i)=>zD(t(...i)),r);return n._c=!1,n},Ez=(e,t,r)=>{const n=e._ctx;for(const i in e){if(Rz(i))continue;const a=e[i];if(At(a))t[i]=JQ(i,a,n);else if(a!=null){const o=zD(a);t[i]=()=>o}}},kz=(e,t)=>{const r=zD(t);e.slots.default=()=>r},Oz=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},QQ=(e,t,r)=>{const n=e.slots=Mz();if(e.vnode.shapeFlag&32){const i=t._;i?(Oz(n,t,r),r&&W3(n,"_",i,!0)):Ez(t,n)}else t&&kz(e,t)},eee=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=wr;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:Oz(i,t,r):(a=!t.$stable,Ez(t,i)),o=t}else t&&(kz(e,t),o={default:1});if(a)for(const s in i)!Rz(s)&&o[s]==null&&delete i[s]},Bi=vee;function tee(e){return ree(e)}function ree(e,t){const r=u1();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:d=Co,insertStaticContent:v}=e,g=(H,W,ne,_e=null,he=null,$=null,Y=void 0,te=null,le=!!W.dynamicChildren)=>{if(H===W)return;H&&!wd(H,W)&&(_e=oe(H),pe(H,he,$,!0),H=null),W.patchFlag===-2&&(le=!1,W.dynamicChildren=null);const{type:xe,ref:Pe,shapeFlag:K}=W;switch(xe){case eg:m(H,W,ne,_e);break;case Bl:y(H,W,ne,_e);break;case Gb:H==null&&S(W,ne,_e,Y);break;case lt:E(H,W,ne,_e,he,$,Y,te,le);break;default:K&1?C(H,W,ne,_e,he,$,Y,te,le):K&6?F(H,W,ne,_e,he,$,Y,te,le):(K&64||K&128)&&xe.process(H,W,ne,_e,he,$,Y,te,le,me)}Pe!=null&&he&&$0(Pe,H&&H.ref,$,W||H,!W)},m=(H,W,ne,_e)=>{if(H==null)n(W.el=s(W.children),ne,_e);else{const he=W.el=H.el;W.children!==H.children&&u(he,W.children)}},y=(H,W,ne,_e)=>{H==null?n(W.el=l(W.children||""),ne,_e):W.el=H.el},S=(H,W,ne,_e)=>{[H.el,H.anchor]=v(H.children,W,ne,_e,H.el,H.anchor)},b=({el:H,anchor:W},ne,_e)=>{let he;for(;H&&H!==W;)he=h(H),n(H,ne,_e),H=he;n(W,ne,_e)},w=({el:H,anchor:W})=>{let ne;for(;H&&H!==W;)ne=h(H),i(H),H=ne;i(W)},C=(H,W,ne,_e,he,$,Y,te,le)=>{W.type==="svg"?Y="svg":W.type==="math"&&(Y="mathml"),H==null?x(W,ne,_e,he,$,Y,te,le):M(H,W,he,$,Y,te,le)},x=(H,W,ne,_e,he,$,Y,te)=>{let le,xe;const{props:Pe,shapeFlag:K,transition:ce,dirs:Ge}=H;if(le=H.el=o(H.type,$,Pe&&Pe.is,Pe),K&8?c(le,H.children):K&16&&D(H.children,le,null,_e,he,Bb(H,$),Y,te),Ge&&du(H,null,_e,"created"),A(le,H,H.scopeId,Y,_e),Pe){for(const Pt in Pe)Pt!=="value"&&!Dv(Pt)&&a(le,Pt,null,Pe[Pt],$,_e);"value"in Pe&&a(le,"value",null,Pe.value,$),(xe=Pe.onVnodeBeforeMount)&&ro(xe,_e,H)}Ge&&du(H,null,_e,"beforeMount");const Je=nee(he,ce);Je&&ce.beforeEnter(le),n(le,W,ne),((xe=Pe&&Pe.onVnodeMounted)||Je||Ge)&&Bi(()=>{xe&&ro(xe,_e,H),Je&&ce.enter(le),Ge&&du(H,null,_e,"mounted")},he)},A=(H,W,ne,_e,he)=>{if(ne&&d(H,ne),_e)for(let $=0;$<_e.length;$++)d(H,_e[$]);if(he){let $=he.subTree;if(W===$||zz($.type)&&($.ssContent===W||$.ssFallback===W)){const Y=he.vnode;A(H,Y,Y.scopeId,Y.slotScopeIds,he.parent)}}},D=(H,W,ne,_e,he,$,Y,te,le=0)=>{for(let xe=le;xe{const te=W.el=H.el;let{patchFlag:le,dynamicChildren:xe,dirs:Pe}=W;le|=H.patchFlag&16;const K=H.props||wr,ce=W.props||wr;let Ge;if(ne&&vu(ne,!1),(Ge=ce.onVnodeBeforeUpdate)&&ro(Ge,ne,W,H),Pe&&du(W,H,ne,"beforeUpdate"),ne&&vu(ne,!0),(K.innerHTML&&ce.innerHTML==null||K.textContent&&ce.textContent==null)&&c(te,""),xe?I(H.dynamicChildren,xe,te,ne,_e,Bb(W,he),$):Y||G(H,W,te,null,ne,_e,Bb(W,he),$,!1),le>0){if(le&16)P(te,K,ce,ne,he);else if(le&2&&K.class!==ce.class&&a(te,"class",null,ce.class,he),le&4&&a(te,"style",K.style,ce.style,he),le&8){const Je=W.dynamicProps;for(let Pt=0;Pt{Ge&&ro(Ge,ne,W,H),Pe&&du(W,H,ne,"updated")},_e)},I=(H,W,ne,_e,he,$,Y)=>{for(let te=0;te{if(W!==ne){if(W!==wr)for(const $ in W)!Dv($)&&!($ in ne)&&a(H,$,W[$],null,he,_e);for(const $ in ne){if(Dv($))continue;const Y=ne[$],te=W[$];Y!==te&&$!=="value"&&a(H,$,te,Y,he,_e)}"value"in ne&&a(H,"value",W.value,ne.value,he)}},E=(H,W,ne,_e,he,$,Y,te,le)=>{const xe=W.el=H?H.el:s(""),Pe=W.anchor=H?H.anchor:s("");let{patchFlag:K,dynamicChildren:ce,slotScopeIds:Ge}=W;Ge&&(te=te?te.concat(Ge):Ge),H==null?(n(xe,ne,_e),n(Pe,ne,_e),D(W.children||[],ne,Pe,he,$,Y,te,le)):K>0&&K&64&&ce&&H.dynamicChildren?(I(H.dynamicChildren,ce,ne,he,$,Y,te),(W.key!=null||he&&W===he.subTree)&&Nz(H,W,!0)):G(H,W,ne,Pe,he,$,Y,te,le)},F=(H,W,ne,_e,he,$,Y,te,le)=>{W.slotScopeIds=te,H==null?W.shapeFlag&512?he.ctx.activate(W,ne,_e,Y,le):O(W,ne,_e,he,$,Y,le):N(H,W,le)},O=(H,W,ne,_e,he,$,Y)=>{const te=H.component=bee(H,_e,he);if(Sz(H)&&(te.ctx.renderer=me),wee(te,!1,Y),te.asyncDep){if(he&&he.registerDep(te,V,Y),!H.el){const le=te.subTree=Be(Bl);y(null,le,W,ne)}}else V(te,H,W,ne,he,$,Y)},N=(H,W,ne)=>{const _e=W.component=H.component;if(hee(H,W,ne))if(_e.asyncDep&&!_e.asyncResolved){U(_e,W,ne);return}else _e.next=W,_e.update();else W.el=H.el,_e.vnode=W},V=(H,W,ne,_e,he,$,Y)=>{const te=()=>{if(H.isMounted){let{next:K,bu:ce,u:Ge,parent:Je,vnode:Pt}=H;{const wn=Fz(H);if(wn){K&&(K.el=Pt.el,U(H,K,Y)),wn.asyncDep.then(()=>{H.isUnmounted||te()});return}}let zt=K,Rr;vu(H,!1),K?(K.el=Pt.el,U(H,K,Y)):K=Pt,ce&&Uy(ce),(Rr=K.props&&K.props.onVnodeBeforeUpdate)&&ro(Rr,Je,K,Pt),vu(H,!0);const zr=zb(H),En=H.subTree;H.subTree=zr,g(En,zr,f(En.el),oe(En),H,he,$),K.el=zr.el,zt===null&&dee(H,zr.el),Ge&&Bi(Ge,he),(Rr=K.props&&K.props.onVnodeUpdated)&&Bi(()=>ro(Rr,Je,K,Pt),he)}else{let K;const{el:ce,props:Ge}=W,{bm:Je,m:Pt,parent:zt,root:Rr,type:zr}=H,En=ah(W);if(vu(H,!1),Je&&Uy(Je),!En&&(K=Ge&&Ge.onVnodeBeforeMount)&&ro(K,zt,W),vu(H,!0),ce&&Re){const wn=()=>{H.subTree=zb(H),Re(ce,H.subTree,H,he,null)};En&&zr.__asyncHydrate?zr.__asyncHydrate(ce,H,wn):wn()}else{Rr.ce&&Rr.ce._injectChildStyle(zr);const wn=H.subTree=zb(H);g(null,wn,ne,_e,H,he,$),W.el=wn.el}if(Pt&&Bi(Pt,he),!En&&(K=Ge&&Ge.onVnodeMounted)){const wn=W;Bi(()=>ro(K,zt,wn),he)}(W.shapeFlag&256||zt&&ah(zt.vnode)&&zt.vnode.shapeFlag&256)&&H.a&&Bi(H.a,he),H.isMounted=!0,W=ne=_e=null}};H.scope.on();const le=H.effect=new j3(te);H.scope.off();const xe=H.update=le.run.bind(le),Pe=H.job=le.runIfDirty.bind(le);Pe.i=H,Pe.id=H.uid,le.scheduler=()=>FD(Pe),vu(H,!0),xe()},U=(H,W,ne)=>{W.component=H;const _e=H.vnode.props;H.vnode=W,H.next=null,jQ(H,W.props,_e,ne),eee(H,W.children,ne),Kl(),pR(H),Jl()},G=(H,W,ne,_e,he,$,Y,te,le=!1)=>{const xe=H&&H.children,Pe=H?H.shapeFlag:0,K=W.children,{patchFlag:ce,shapeFlag:Ge}=W;if(ce>0){if(ce&128){Q(xe,K,ne,_e,he,$,Y,te,le);return}else if(ce&256){Z(xe,K,ne,_e,he,$,Y,te,le);return}}Ge&8?(Pe&16&&He(xe,he,$),K!==xe&&c(ne,K)):Pe&16?Ge&16?Q(xe,K,ne,_e,he,$,Y,te,le):He(xe,he,$,!0):(Pe&8&&c(ne,""),Ge&16&&D(K,ne,_e,he,$,Y,te,le))},Z=(H,W,ne,_e,he,$,Y,te,le)=>{H=H||th,W=W||th;const xe=H.length,Pe=W.length,K=Math.min(xe,Pe);let ce;for(ce=0;cePe?He(H,he,$,!0,!1,K):D(W,ne,_e,he,$,Y,te,le,K)},Q=(H,W,ne,_e,he,$,Y,te,le)=>{let xe=0;const Pe=W.length;let K=H.length-1,ce=Pe-1;for(;xe<=K&&xe<=ce;){const Ge=H[xe],Je=W[xe]=le?ul(W[xe]):po(W[xe]);if(wd(Ge,Je))g(Ge,Je,ne,null,he,$,Y,te,le);else break;xe++}for(;xe<=K&&xe<=ce;){const Ge=H[K],Je=W[ce]=le?ul(W[ce]):po(W[ce]);if(wd(Ge,Je))g(Ge,Je,ne,null,he,$,Y,te,le);else break;K--,ce--}if(xe>K){if(xe<=ce){const Ge=ce+1,Je=Gece)for(;xe<=K;)pe(H[xe],he,$,!0),xe++;else{const Ge=xe,Je=xe,Pt=new Map;for(xe=Je;xe<=ce;xe++){const xn=W[xe]=le?ul(W[xe]):po(W[xe]);xn.key!=null&&Pt.set(xn.key,xe)}let zt,Rr=0;const zr=ce-Je+1;let En=!1,wn=0;const zo=new Array(zr);for(xe=0;xe=zr){pe(xn,he,$,!0);continue}let vi;if(xn.key!=null)vi=Pt.get(xn.key);else for(zt=Je;zt<=ce;zt++)if(zo[zt-Je]===0&&wd(xn,W[zt])){vi=zt;break}vi===void 0?pe(xn,he,$,!0):(zo[vi-Je]=xe+1,vi>=wn?wn=vi:En=!0,g(xn,W[vi],ne,null,he,$,Y,te,le),Rr++)}const ef=En?iee(zo):th;for(zt=ef.length-1,xe=zr-1;xe>=0;xe--){const xn=Je+xe,vi=W[xn],Ig=xn+1{const{el:$,type:Y,transition:te,children:le,shapeFlag:xe}=H;if(xe&6){ie(H.component.subTree,W,ne,_e);return}if(xe&128){H.suspense.move(W,ne,_e);return}if(xe&64){Y.move(H,W,ne,me);return}if(Y===lt){n($,W,ne);for(let K=0;Kte.enter($),he);else{const{leave:K,delayLeave:ce,afterLeave:Ge}=te,Je=()=>n($,W,ne),Pt=()=>{K($,()=>{Je(),Ge&&Ge()})};ce?ce($,Je,Pt):Pt()}else n($,W,ne)},pe=(H,W,ne,_e=!1,he=!1)=>{const{type:$,props:Y,ref:te,children:le,dynamicChildren:xe,shapeFlag:Pe,patchFlag:K,dirs:ce,cacheIndex:Ge}=H;if(K===-2&&(he=!1),te!=null&&$0(te,null,ne,H,!0),Ge!=null&&(W.renderCache[Ge]=void 0),Pe&256){W.ctx.deactivate(H);return}const Je=Pe&1&&ce,Pt=!ah(H);let zt;if(Pt&&(zt=Y&&Y.onVnodeBeforeUnmount)&&ro(zt,W,H),Pe&6)ze(H.component,ne,_e);else{if(Pe&128){H.suspense.unmount(ne,_e);return}Je&&du(H,null,W,"beforeUnmount"),Pe&64?H.type.remove(H,W,ne,me,_e):xe&&!xe.hasOnce&&($!==lt||K>0&&K&64)?He(xe,W,ne,!1,!0):($===lt&&K&384||!he&&Pe&16)&&He(le,W,ne),_e&&De(H)}(Pt&&(zt=Y&&Y.onVnodeUnmounted)||Je)&&Bi(()=>{zt&&ro(zt,W,H),Je&&du(H,null,W,"unmounted")},ne)},De=H=>{const{type:W,el:ne,anchor:_e,transition:he}=H;if(W===lt){Le(ne,_e);return}if(W===Gb){w(H);return}const $=()=>{i(ne),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(H.shapeFlag&1&&he&&!he.persisted){const{leave:Y,delayLeave:te}=he,le=()=>Y(ne,$);te?te(H.el,$,le):le()}else $()},Le=(H,W)=>{let ne;for(;H!==W;)ne=h(H),i(H),H=ne;i(W)},ze=(H,W,ne)=>{const{bum:_e,scope:he,job:$,subTree:Y,um:te,m:le,a:xe}=H;wR(le),wR(xe),_e&&Uy(_e),he.stop(),$&&($.flags|=8,pe(Y,H,W,ne)),te&&Bi(te,W),Bi(()=>{H.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},He=(H,W,ne,_e=!1,he=!1,$=0)=>{for(let Y=$;Y{if(H.shapeFlag&6)return oe(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const W=h(H.anchor||H.el),ne=W&&W[AQ];return ne?h(ne):W};let ue=!1;const ve=(H,W,ne)=>{H==null?W._vnode&&pe(W._vnode,null,null,!0):g(W._vnode||null,H,W,null,null,null,ne),W._vnode=H,ue||(ue=!0,pR(),gz(),ue=!1)},me={p:g,um:pe,m:ie,r:De,mt:O,mc:D,pc:G,pbc:I,n:oe,o:e};let Ce,Re;return{render:ve,hydrate:Ce,createApp:ZQ(ve,Ce)}}function Bb({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 vu({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function nee(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Nz(e,t,r=!1){const n=e.children,i=t.children;if(ct(n)&&ct(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 Fz(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fz(t)}function wR(e){if(e)for(let t=0;t$a(aee);function GD(e,t){return $D(e,null,t)}function vr(e,t,r){return $D(e,t,r)}function $D(e,t,r=wr){const{immediate:n,deep:i,flush:a,once:o}=r,s=Sn({},r),l=t&&n||!t&&a!=="post";let u;if(vp){if(a==="sync"){const d=oee();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Co,d.resume=Co,d.pause=Co,d}}const c=In;s.call=(d,v,g)=>Mo(d,c,v,g);let f=!1;a==="post"?s.scheduler=d=>{Bi(d,c&&c.suspense)}:a!=="sync"&&(f=!0,s.scheduler=(d,v)=>{v?d():FD(d)}),s.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const h=wQ(e,t,s);return vp&&(u?u.push(h):l&&h()),h}function see(e,t,r){const n=this.proxy,i=Kr(e)?e.includes(".")?Vz(n,e):()=>n[e]:e.bind(n,n);let a;At(t)?a=t:(a=t.handler,r=t);const o=tg(this),s=$D(i,a.bind(n),r);return o(),s}function Vz(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[`${wa(t)}Modifiers`]||e[`${Hc(t)}Modifiers`];function uee(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||wr;let i=r;const a=t.startsWith("update:"),o=a&&lee(n,t.slice(7));o&&(o.trim&&(i=r.map(c=>Kr(c)?c.trim():c)),o.number&&(i=r.map(F0)));let s,l=n[s=Eb(t)]||n[s=Eb(wa(t))];!l&&a&&(l=n[s=Eb(Hc(t))]),l&&Mo(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,Mo(u,e,6,i)}}function Bz(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(!At(e)){const l=u=>{const c=Bz(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?(Cr(e)&&n.set(e,null),null):(ct(a)?a.forEach(l=>o[l]=null):Sn(o,a),Cr(e)&&n.set(e,o),o)}function m1(e,t){return!e||!o1(t)?!1:(t=t.slice(2).replace(/Once$/,""),hr(e,t[0].toLowerCase()+t.slice(1))||hr(e,Hc(t))||hr(e,t))}function zb(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:d,ctx:v,inheritAttrs:g}=e,m=G0(e);let y,S;try{if(r.shapeFlag&4){const w=i||n,C=w;y=po(u.call(C,w,c,f,d,h,v)),S=s}else{const w=t;y=po(w.length>1?w(f,{attrs:s,slots:o,emit:l}):w(f,null)),S=t.props?s:cee(s)}}catch(w){Pv.length=0,v1(w,e,1),y=Be(Bl)}let b=y;if(S&&g!==!1){const w=Object.keys(S),{shapeFlag:C}=b;w.length&&C&7&&(a&&w.some(DD)&&(S=fee(S,a)),b=mh(b,S,!1,!0))}return r.dirs&&(b=mh(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(r.dirs):r.dirs),r.transition&&VD(b,r.transition),y=b,G0(m),y}const cee=e=>{let t;for(const r in e)(r==="class"||r==="style"||o1(r))&&((t||(t={}))[r]=e[r]);return t},fee=(e,t)=>{const r={};for(const n in e)(!DD(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function hee(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?xR(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function vee(e,t){t&&t.pendingBranch?ct(e)?t.effects.push(...e):t.effects.push(e):TQ(e)}const lt=Symbol.for("v-fgt"),eg=Symbol.for("v-txt"),Bl=Symbol.for("v-cmt"),Gb=Symbol.for("v-stc"),Pv=[];let Hi=null;function se(e=!1){Pv.push(Hi=e?null:[])}function pee(){Pv.pop(),Hi=Pv[Pv.length-1]||null}let hp=1;function CR(e,t=!1){hp+=e,e<0&&Hi&&t&&(Hi.hasOnce=!0)}function Gz(e){return e.dynamicChildren=hp>0?Hi||th:null,pee(),hp>0&&Hi&&Hi.push(e),e}function be(e,t,r,n,i,a){return Gz(ee(e,t,r,n,i,a,!0))}function qt(e,t,r,n,i){return Gz(Be(e,t,r,n,i,!0))}function dp(e){return e?e.__v_isVNode===!0:!1}function wd(e,t){return e.type===t.type&&e.key===t.key}const $z=({key:e})=>e??null,Xy=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Kr(e)||bt(e)||At(e)?{i:yn,r:e,k:t,f:!!r}:e:null);function ee(e,t=null,r=null,n=0,i=null,a=e===lt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$z(t),ref:t&&Xy(t),scopeId:yz,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:yn};return s?(HD(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Kr(r)?8:16),hp>0&&!o&&Hi&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Hi.push(l),l}const Be=gee;function gee(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===xz)&&(e=Bl),dp(e)){const s=mh(e,t,!0);return r&&HD(s,r),hp>0&&!a&&Hi&&(s.shapeFlag&6?Hi[Hi.indexOf(e)]=s:Hi.push(s)),s.patchFlag=-2,s}if(Dee(e)&&(e=e.__vccOpts),t){t=mee(t);let{class:s,style:l}=t;s&&!Kr(s)&&(t.class=Kt(s)),Cr(l)&&(ND(l)&&!ct(l)&&(l=Sn({},l)),t.style=tc(l))}const o=Kr(e)?1:zz(e)?128:DQ(e)?64:Cr(e)?4:At(e)?2:0;return ee(e,t,r,n,i,o,a,!0)}function mee(e){return e?ND(e)||Iz(e)?Sn({},e):e:null}function mh(e,t,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?yee(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&$z(u),ref:t&&t.ref?r&&a?ct(a)?a.concat(Xy(t)):[a,Xy(t)]:Xy(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!==lt?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&&mh(e.ssContent),ssFallback:e.ssFallback&&mh(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&VD(c,l.clone(c)),c}function Zt(e=" ",t=0){return Be(eg,null,e,t)}function tr(e="",t=!1){return t?(se(),qt(Bl,null,e)):Be(Bl,null,e)}function po(e){return e==null||typeof e=="boolean"?Be(Bl):ct(e)?Be(lt,null,e.slice()):dp(e)?ul(e):Be(eg,null,String(e))}function ul(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mh(e)}function HD(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ct(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),HD(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!Iz(t)?t._ctx=yn:i===3&&yn&&(yn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else At(t)?(t={default:t,_ctx:yn},r=32):(t=String(t),n&64?(r=16,t=[Zt(t)]):r=8);e.children=t,e.shapeFlag|=r}function yee(...e){const t={};for(let r=0;rIn||yn;let W0,QC;{const e=u1(),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)}};W0=t("__VUE_INSTANCE_SETTERS__",r=>In=r),QC=t("__VUE_SSR_SETTERS__",r=>vp=r)}const tg=e=>{const t=In;return W0(e),e.scope.on(),()=>{e.scope.off(),W0(t)}},TR=()=>{In&&In.scope.off(),W0(null)};function Hz(e){return e.vnode.shapeFlag&4}let vp=!1;function wee(e,t=!1,r=!1){t&&QC(t);const{props:n,children:i}=e.vnode,a=Hz(e);qQ(e,n,a,t),QQ(e,i,r);const o=a?xee(e,t):void 0;return t&&QC(!1),o}function xee(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,GQ);const{setup:n}=r;if(n){Kl();const i=e.setupContext=n.length>1?Tee(e):null,a=tg(e),o=Qp(n,e,0,[e.props,i]),s=G3(o);if(Jl(),a(),(s||e.sp)&&!ah(e)&&_z(e),s){if(o.then(TR,TR),t)return o.then(l=>{AR(e,l,t)}).catch(l=>{v1(l,e,0)});e.asyncDep=o}else AR(e,o,t)}else Wz(e,t)}function AR(e,t,r){At(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Cr(t)&&(e.setupState=hz(t)),Wz(e,r)}let DR;function Wz(e,t,r){const n=e.type;if(!e.render){if(!t&&DR&&!n.render){const i=n.template||BD(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=DR(i,u)}}e.render=n.render||Co}{const i=tg(e);Kl();try{$Q(e)}finally{Jl(),i()}}}const Cee={get(e,t){return $n(e,"get",""),e[t]}};function Tee(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Cee),slots:e.slots,emit:e.emit,expose:t}}function y1(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(hz(cQ(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Lv)return Lv[r](e)},has(t,r){return r in t||r in Lv}})):e.proxy}function Aee(e,t=!0){return At(e)?e.displayName||e.name:e.name||t&&e.__name}function Dee(e){return At(e)&&"__vccOpts"in e}const at=(e,t)=>SQ(e,t,vp);function yo(e,t,r){const n=arguments.length;return n===2?Cr(t)&&!ct(t)?dp(t)?Be(e,null,[t]):Be(e,t):Be(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&dp(r)&&(r=[r]),Be(e,t,r))}const Mee="3.5.13";/** -* @vue/runtime-dom v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let eT;const MR=typeof window<"u"&&window.trustedTypes;if(MR)try{eT=MR.createPolicy("vue",{createHTML:e=>e})}catch{}const Uz=eT?e=>eT.createHTML(e):e=>e,Iee="http://www.w3.org/2000/svg",Lee="http://www.w3.org/1998/Math/MathML",ns=typeof document<"u"?document:null,IR=ns&&ns.createElement("template"),Pee={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"?ns.createElementNS(Iee,e):t==="mathml"?ns.createElementNS(Lee,e):r?ns.createElement(e,{is:r}):ns.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>ns.createTextNode(e),createComment:e=>ns.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ns.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{IR.innerHTML=Uz(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const s=IR.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]}},Ree=Symbol("_vtc");function Eee(e,t,r){const n=e[Ree];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const LR=Symbol("_vod"),kee=Symbol("_vsh"),Oee=Symbol(""),Nee=/(^|;)\s*display\s*:/;function Fee(e,t,r){const n=e.style,i=Kr(r);let a=!1;if(r&&!i){if(t)if(Kr(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&Zy(n,s,"")}else for(const o in t)r[o]==null&&Zy(n,o,"");for(const o in r)o==="display"&&(a=!0),Zy(n,o,r[o])}else if(i){if(t!==r){const o=n[Oee];o&&(r+=";"+o),n.cssText=r,a=Nee.test(r)}}else t&&e.removeAttribute("style");LR in e&&(e[LR]=a?n.display:"",e[kee]&&(n.display="none"))}const PR=/\s*!important$/;function Zy(e,t,r){if(ct(r))r.forEach(n=>Zy(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Vee(e,t);PR.test(r)?e.setProperty(Hc(n),r.replace(PR,""),"important"):e[n]=r}}const RR=["Webkit","Moz","ms"],$b={};function Vee(e,t){const r=$b[t];if(r)return r;let n=wa(t);if(n!=="filter"&&n in e)return $b[t]=n;n=l1(n);for(let i=0;iHb||($ee.then(()=>Hb=0),Hb=Date.now());function Wee(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Mo(Uee(n,r.value),t,5,[n])};return r.value=e,r.attached=Hee(),r}function Uee(e,t){if(ct(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 VR=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Yee=(e,t,r,n,i,a)=>{const o=i==="svg";t==="class"?Eee(e,n,o):t==="style"?Fee(e,r,n):o1(t)?DD(t)||zee(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xee(e,t,n,o))?(OR(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&kR(e,t,n,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Kr(n))?OR(e,wa(t),n,a,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),kR(e,t,n,o))};function Xee(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&VR(t)&&At(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 VR(t)&&Kr(r)?!1:t in e}const yh=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ct(t)?r=>Uy(t,r):t};function Zee(e){e.target.composing=!0}function BR(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gs=Symbol("_assign"),Rl={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[gs]=yh(i);const a=n||i.props&&i.props.type==="number";pl(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r&&(s=s.trim()),a&&(s=F0(s)),e[gs](s)}),r&&pl(e,"change",()=>{e.value=e.value.trim()}),t||(pl(e,"compositionstart",Zee),pl(e,"compositionend",BR),pl(e,"change",BR))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:a}},o){if(e[gs]=yh(o),e.composing)return;const s=(a||e.type==="number")&&!/^0\d/.test(e.value)?F0(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))}},ss={deep:!0,created(e,t,r){e[gs]=yh(r),pl(e,"change",()=>{const n=e._modelValue,i=pp(e),a=e.checked,o=e[gs];if(ct(n)){const s=LD(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(Vh(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(Yz(e,a))})},mounted:zR,beforeUpdate(e,t,r){e[gs]=yh(r),zR(e,t,r)}};function zR(e,{value:t,oldValue:r},n){e._modelValue=t;let i;if(ct(t))i=LD(t,n.props.value)>-1;else if(Vh(t))i=t.has(n.props.value);else{if(t===r)return;i=Jp(t,Yz(e,!0))}e.checked!==i&&(e.checked=i)}const ms={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=Vh(t);pl(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?F0(pp(o)):pp(o));e[gs](e.multiple?i?new Set(a):a:a[0]),e._assigning=!0,Uc(()=>{e._assigning=!1})}),e[gs]=yh(n)},mounted(e,{value:t}){GR(e,t)},beforeUpdate(e,t,r){e[gs]=yh(r)},updated(e,{value:t}){e._assigning||GR(e,t)}};function GR(e,t){const r=e.multiple,n=ct(t);if(!(r&&!n&&!Vh(t))){for(let i=0,a=e.options.length;iString(u)===String(s)):o.selected=LD(t,s)>-1}else o.selected=t.has(s);else if(Jp(pp(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function pp(e){return"_value"in e?e._value:e.value}function Yz(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const qee=["ctrl","shift","alt","meta"],jee={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)=>qee.some(r=>e[`${r}Key`]&&!t.includes(r))},WD=(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=Jee().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=tte(n);if(!i)return;const a=t._component;!At(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,ete(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function ete(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function tte(e){return Kr(e)?document.querySelector(e):e}function Rc(e){return q3()?(WJ(e),!0):!1}function Ql(e){return typeof e=="function"?e():J(e)}const gc=typeof window<"u"&&typeof document<"u",rte=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,nte=e=>e!=null,ite=Object.prototype.toString,ate=e=>ite.call(e)==="[object Object]",Xz=()=>{};function ote(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 Zz=e=>e();function ste(e=Zz){const t=je(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:h1(t),pause:r,resume:n,eventFilter:i}}function qz(e){return Io()}function jz(...e){if(e.length!==1)return yQ(...e);const t=e[0];return typeof t=="function"?h1(vQ(()=>({get:t,set:Xz}))):je(t)}function lte(e,t,r={}){const{eventFilter:n=Zz,...i}=r;return vr(e,ote(n,t),i)}function ute(e,t,r={}){const{eventFilter:n,...i}=r,{eventFilter:a,pause:o,resume:s,isActive:l}=ste(n);return{stop:lte(e,t,{...i,eventFilter:a}),pause:o,resume:s,isActive:l}}function cte(e,t){qz()&&wz(e,t)}function UD(e,t=!0,r){qz()?Bh(e,r):t?e():Uc(e)}function fte(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=Ql(t);c<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,c)))}if(n&&gc&&u(),bt(t)||typeof t=="function"){const c=vr(t,()=>{o.value&&gc&&u()});Rc(c)}return Rc(l),{isActive:o,pause:l,resume:u}}const zl=gc?window:void 0,hte=gc?window.document:void 0;function yl(e){var t;const r=Ql(e);return(t=r==null?void 0:r.$el)!=null?t:r}function U0(...e){let t,r,n,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,i]=e,t=zl):[t,r,n,i]=e,!t)return Xz;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,f,h,d)=>(c.addEventListener(f,h,d),()=>c.removeEventListener(f,h,d)),l=vr(()=>[yl(t),Ql(i)],([c,f])=>{if(o(),!c)return;const h=ate(f)?{...f}:f;a.push(...r.flatMap(d=>n.map(v=>s(c,d,v,h))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Rc(u),u}function dte(){const e=je(!1),t=Io();return t&&Bh(()=>{e.value=!0},t),e}function YD(e){const t=dte();return at(()=>(t.value,!!e()))}function vte(e,t,r={}){const{window:n=zl,...i}=r;let a;const o=YD(()=>n&&"MutationObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},l=at(()=>{const h=Ql(e),d=(Array.isArray(h)?h:[h]).map(yl).filter(nte);return new Set(d)}),u=vr(()=>l.value,h=>{s(),o.value&&h.size&&(a=new MutationObserver(t),h.forEach(d=>a.observe(d,i)))},{immediate:!0,flush:"post"}),c=()=>a==null?void 0:a.takeRecords(),f=()=>{u(),s()};return Rc(f),{isSupported:o,stop:f,takeRecords:c}}function pte(e,t={}){const{window:r=zl}=t,n=YD(()=>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=GD(()=>{n.value&&(s(),i=r.matchMedia(Ql(e)),"addEventListener"in i?i.addEventListener("change",o):i.addListener(o),a.value=i.matches)});return Rc(()=>{l(),s(),i=void 0}),a}const wm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xm="__vueuse_ssr_handlers__",gte=mte();function mte(){return xm in wm||(wm[xm]=wm[xm]||{}),wm[xm]}function yte(e,t){return gte[e]||t}function _te(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 Ste={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()}},HR="vueuse-storage";function Yr(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=zl,eventFilter:h,onError:d=I=>{console.error(I)},initOnMounted:v}=n,g=(c?d1:je)(typeof t=="function"?t():t);if(!r)try{r=yte("getDefaultStorage",()=>{var I;return(I=zl)==null?void 0:I.localStorage})()}catch(I){d(I)}if(!r)return g;const m=Ql(t),y=_te(m),S=(i=n.serializer)!=null?i:Ste[y],{pause:b,resume:w}=ute(g,()=>x(g.value),{flush:a,deep:o,eventFilter:h});f&&s&&UD(()=>{r instanceof Storage?U0(f,"storage",D):U0(f,HR,M),v&&D()}),v||D();function C(I,P){if(f){const E={key:e,oldValue:I,newValue:P,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",E):new CustomEvent(HR,{detail:E}))}}function x(I){try{const P=r.getItem(e);if(I==null)C(P,null),r.removeItem(e);else{const E=S.write(I);P!==E&&(r.setItem(e,E),C(P,E))}}catch(P){d(P)}}function A(I){const P=I?I.newValue:r.getItem(e);if(P==null)return l&&m!=null&&r.setItem(e,S.write(m)),m;if(!I&&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 D(I){if(!(I&&I.storageArea!==r)){if(I&&I.key==null){g.value=m;return}if(!(I&&I.key!==e)){b();try{(I==null?void 0:I.newValue)!==S.write(g.value)&&(g.value=A(I))}catch(P){d(P)}finally{I?Uc(w):w()}}}}function M(I){D(I.detail)}return g}function bte(e,t,r={}){const{window:n=zl,...i}=r;let a;const o=YD(()=>n&&"ResizeObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},l=at(()=>{const f=Ql(e);return Array.isArray(f)?f.map(h=>yl(h)):[yl(f)]}),u=vr(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 Rc(c),{isSupported:o,stop:c}}function wte(e,t={width:0,height:0},r={}){const{window:n=zl,box:i="content-box"}=r,a=at(()=>{var f,h;return(h=(f=yl(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),o=je(t.width),s=je(t.height),{stop:l}=bte(e,([f])=>{const h=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(n&&a.value){const d=yl(e);if(d){const v=d.getBoundingClientRect();o.value=v.width,s.value=v.height}}else if(h){const d=Array.isArray(h)?h:[h];o.value=d.reduce((v,{inlineSize:g})=>v+g,0),s.value=d.reduce((v,{blockSize:g})=>v+g,0)}else o.value=f.contentRect.width,s.value=f.contentRect.height},r);UD(()=>{const f=yl(e);f&&(o.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=vr(()=>yl(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 xte(e=null,t={}){var r,n,i;const{document:a=hte,restoreOnUnmount:o=f=>f}=t,s=(r=a==null?void 0:a.title)!=null?r:"",l=jz((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):Ql(h).replace(/%s/g,f)}return vr(l,(f,h)=>{f!==h&&a&&(a.title=c(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&a&&!u&&vte((i=a.head)==null?void 0:i.querySelector("title"),()=>{a&&a.title!==l.value&&(l.value=c(a.title))},{childList:!0}),cte(()=>{if(o){const f=o(s,l.value||"");f!=null&&a&&(a.title=f)}}),l}const WR="ping";function Wb(e){return e===!0?{}:e}function Cte(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=jz(e);let d,v,g=!1,m=0,y=[],S;const b=()=>{if(y.length&&f.value&&c.value==="OPEN"){for(const M of y)f.value.send(M);y=[]}},w=()=>{clearTimeout(S),S=void 0},C=(M=1e3,I)=>{!gc||!f.value||(g=!0,w(),d==null||d(),f.value.close(M,I),f.value=void 0)},x=(M,I=!0)=>!f.value||c.value!=="OPEN"?(I&&y.push(M),!1):(b(),f.value.send(M),!0),A=()=>{if(g||typeof h.value>"u")return;const M=new WebSocket(h.value,l);f.value=M,c.value="CONNECTING",M.onopen=()=>{c.value="OPEN",m=0,r==null||r(M),v==null||v(),b()},M.onclose=I=>{if(c.value="CLOSED",n==null||n(M,I),!g&&t.autoReconnect&&(f.value==null||M===f.value)){const{retries:P=-1,delay:E=1e3,onFailed:F}=Wb(t.autoReconnect);typeof P=="number"&&(P<0||m{i==null||i(M,I)},M.onmessage=I=>{if(t.heartbeat){w();const{message:P=WR,responseMessage:E=P}=Wb(t.heartbeat);if(I.data===E)return}u.value=I.data,a==null||a(M,I)}};if(t.heartbeat){const{message:M=WR,interval:I=1e3,pongTimeout:P=1e3}=Wb(t.heartbeat),{pause:E,resume:F}=fte(()=>{x(M,!1),S==null&&(S=setTimeout(()=>{C(),g=!1},P))},I,{immediate:!1});d=E,v=F}s&&(gc&&U0("beforeunload",()=>C()),Rc(C));const D=()=>{!gc&&!rte||(C(),g=!1,m=0,A())};return o&&D(),vr(h,D),{data:u,status:c,close:C,send:x,open:D,ws:f}}function Tte(e={}){const{window:t=zl,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(),UD(u),U0("resize",u,{passive:!0}),i){const c=pte("(orientation: portrait)");vr(c,()=>u())}return{width:s,height:l}}var av={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 Ate=av.exports,UR;function Dte(){return UR||(UR=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,d=4,v=1,g=2,m=1,y=2,S=4,b=8,w=16,C=32,x=64,A=128,D=256,M=512,I=30,P="...",E=800,F=16,O=1,N=2,V=3,U=1/0,G=9007199254740991,Z=17976931348623157e292,Q=NaN,ie=4294967295,pe=ie-1,De=ie>>>1,Le=[["ary",A],["bind",m],["bindKey",y],["curry",b],["curryRight",w],["flip",M],["partial",C],["partialRight",x],["rearg",D]],ze="[object Arguments]",He="[object Array]",oe="[object AsyncFunction]",ue="[object Boolean]",ve="[object Date]",me="[object DOMException]",Ce="[object Error]",Re="[object Function]",H="[object GeneratorFunction]",W="[object Map]",ne="[object Number]",_e="[object Null]",he="[object Object]",$="[object Promise]",Y="[object Proxy]",te="[object RegExp]",le="[object Set]",xe="[object String]",Pe="[object Symbol]",K="[object Undefined]",ce="[object WeakMap]",Ge="[object WeakSet]",Je="[object ArrayBuffer]",Pt="[object DataView]",zt="[object Float32Array]",Rr="[object Float64Array]",zr="[object Int8Array]",En="[object Int16Array]",wn="[object Int32Array]",zo="[object Uint8Array]",ef="[object Uint8ClampedArray]",xn="[object Uint16Array]",vi="[object Uint32Array]",Ig=/\b__p \+= '';/g,U7=/\b(__p \+=) '' \+/g,Y7=/(__e\(.*?\)|\b__t\)) \+\n'';/g,EL=/&(?:amp|lt|gt|quot|#39);/g,kL=/[&<>"']/g,X7=RegExp(EL.source),Z7=RegExp(kL.source),q7=/<%-([\s\S]+?)%>/g,j7=/<%([\s\S]+?)%>/g,OL=/<%=([\s\S]+?)%>/g,K7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J7=/^\w*$/,Q7=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bS=/[\\^$.*+?()[\]{}|]/g,e9=RegExp(bS.source),wS=/^\s+/,t9=/\s/,r9=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,n9=/\{\n\/\* \[wrapped with (.+)\] \*/,i9=/,? & /,a9=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,o9=/[()=,{}\[\]\/\s]/,s9=/\\(\\)?/g,l9=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,NL=/\w*$/,u9=/^[-+]0x[0-9a-f]+$/i,c9=/^0b[01]+$/i,f9=/^\[object .+?Constructor\]$/,h9=/^0o[0-7]+$/i,d9=/^(?:0|[1-9]\d*)$/,v9=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Lg=/($^)/,p9=/['\n\r\u2028\u2029\\]/g,Pg="\\ud800-\\udfff",g9="\\u0300-\\u036f",m9="\\ufe20-\\ufe2f",y9="\\u20d0-\\u20ff",FL=g9+m9+y9,VL="\\u2700-\\u27bf",BL="a-z\\xdf-\\xf6\\xf8-\\xff",_9="\\xac\\xb1\\xd7\\xf7",S9="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",b9="\\u2000-\\u206f",w9=" \\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",zL="A-Z\\xc0-\\xd6\\xd8-\\xde",GL="\\ufe0e\\ufe0f",$L=_9+S9+b9+w9,xS="['’]",x9="["+Pg+"]",HL="["+$L+"]",Rg="["+FL+"]",WL="\\d+",C9="["+VL+"]",UL="["+BL+"]",YL="[^"+Pg+$L+WL+VL+BL+zL+"]",CS="\\ud83c[\\udffb-\\udfff]",T9="(?:"+Rg+"|"+CS+")",XL="[^"+Pg+"]",TS="(?:\\ud83c[\\udde6-\\uddff]){2}",AS="[\\ud800-\\udbff][\\udc00-\\udfff]",tf="["+zL+"]",ZL="\\u200d",qL="(?:"+UL+"|"+YL+")",A9="(?:"+tf+"|"+YL+")",jL="(?:"+xS+"(?:d|ll|m|re|s|t|ve))?",KL="(?:"+xS+"(?:D|LL|M|RE|S|T|VE))?",JL=T9+"?",QL="["+GL+"]?",D9="(?:"+ZL+"(?:"+[XL,TS,AS].join("|")+")"+QL+JL+")*",M9="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",I9="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",eP=QL+JL+D9,L9="(?:"+[C9,TS,AS].join("|")+")"+eP,P9="(?:"+[XL+Rg+"?",Rg,TS,AS,x9].join("|")+")",R9=RegExp(xS,"g"),E9=RegExp(Rg,"g"),DS=RegExp(CS+"(?="+CS+")|"+P9+eP,"g"),k9=RegExp([tf+"?"+UL+"+"+jL+"(?="+[HL,tf,"$"].join("|")+")",A9+"+"+KL+"(?="+[HL,tf+qL,"$"].join("|")+")",tf+"?"+qL+"+"+jL,tf+"+"+KL,I9,M9,WL,L9].join("|"),"g"),O9=RegExp("["+ZL+Pg+FL+GL+"]"),N9=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,F9=["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"],V9=-1,Ir={};Ir[zt]=Ir[Rr]=Ir[zr]=Ir[En]=Ir[wn]=Ir[zo]=Ir[ef]=Ir[xn]=Ir[vi]=!0,Ir[ze]=Ir[He]=Ir[Je]=Ir[ue]=Ir[Pt]=Ir[ve]=Ir[Ce]=Ir[Re]=Ir[W]=Ir[ne]=Ir[he]=Ir[te]=Ir[le]=Ir[xe]=Ir[ce]=!1;var Tr={};Tr[ze]=Tr[He]=Tr[Je]=Tr[Pt]=Tr[ue]=Tr[ve]=Tr[zt]=Tr[Rr]=Tr[zr]=Tr[En]=Tr[wn]=Tr[W]=Tr[ne]=Tr[he]=Tr[te]=Tr[le]=Tr[xe]=Tr[Pe]=Tr[zo]=Tr[ef]=Tr[xn]=Tr[vi]=!0,Tr[Ce]=Tr[Re]=Tr[ce]=!1;var B9={À:"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"},z9={"&":"&","<":"<",">":">",'"':""","'":"'"},G9={"&":"&","<":"<",">":">",""":'"',"'":"'"},$9={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},H9=parseFloat,W9=parseInt,tP=typeof ym=="object"&&ym&&ym.Object===Object&&ym,U9=typeof self=="object"&&self&&self.Object===Object&&self,Cn=tP||U9||Function("return this")(),MS=t&&!t.nodeType&&t,iu=MS&&!0&&e&&!e.nodeType&&e,rP=iu&&iu.exports===MS,IS=rP&&tP.process,ji=function(){try{var re=iu&&iu.require&&iu.require("util").types;return re||IS&&IS.binding&&IS.binding("util")}catch{}}(),nP=ji&&ji.isArrayBuffer,iP=ji&&ji.isDate,aP=ji&&ji.isMap,oP=ji&&ji.isRegExp,sP=ji&&ji.isSet,lP=ji&&ji.isTypedArray;function Li(re,we,de){switch(de.length){case 0:return re.call(we);case 1:return re.call(we,de[0]);case 2:return re.call(we,de[0],de[1]);case 3:return re.call(we,de[0],de[1],de[2])}return re.apply(we,de)}function Y9(re,we,de,Xe){for(var Ct=-1,ir=re==null?0:re.length;++Ct-1}function LS(re,we,de){for(var Xe=-1,Ct=re==null?0:re.length;++Xe-1;);return de}function gP(re,we){for(var de=re.length;de--&&rf(we,re[de],0)>-1;);return de}function tY(re,we){for(var de=re.length,Xe=0;de--;)re[de]===we&&++Xe;return Xe}var rY=kS(B9),nY=kS(z9);function iY(re){return"\\"+$9[re]}function aY(re,we){return re==null?r:re[we]}function nf(re){return O9.test(re)}function oY(re){return N9.test(re)}function sY(re){for(var we,de=[];!(we=re.next()).done;)de.push(we.value);return de}function VS(re){var we=-1,de=Array(re.size);return re.forEach(function(Xe,Ct){de[++we]=[Ct,Xe]}),de}function mP(re,we){return function(de){return re(we(de))}}function zs(re,we){for(var de=-1,Xe=re.length,Ct=0,ir=[];++de-1}function ZY(p,_){var T=this.__data__,L=jg(T,p);return L<0?(++this.size,T.push([p,_])):T[L][1]=_,this}Go.prototype.clear=WY,Go.prototype.delete=UY,Go.prototype.get=YY,Go.prototype.has=XY,Go.prototype.set=ZY;function $o(p){var _=-1,T=p==null?0:p.length;for(this.clear();++_=_?p:_)),p}function ea(p,_,T,L,k,z){var X,q=_&f,ae=_&h,Te=_&d;if(T&&(X=k?T(p,L,k,z):T(p)),X!==r)return X;if(!Fr(p))return p;var Ae=Dt(p);if(Ae){if(X=JX(p),!q)return pi(p,X)}else{var Me=On(p),$e=Me==Re||Me==H;if(Ys(p))return QP(p,q);if(Me==he||Me==ze||$e&&!k){if(X=ae||$e?{}:y2(p),!q)return ae?GX(p,cX(X,p)):zX(p,IP(X,p))}else{if(!Tr[Me])return k?p:{};X=QX(p,Me,q)}}z||(z=new Ma);var et=z.get(p);if(et)return et;z.set(p,X),X2(p)?p.forEach(function(ht){X.add(ea(ht,_,T,ht,p,z))}):U2(p)&&p.forEach(function(ht,Gt){X.set(Gt,ea(ht,_,T,Gt,p,z))});var ft=Te?ae?cb:ub:ae?mi:gn,Ot=Ae?r:ft(p);return Ki(Ot||p,function(ht,Gt){Ot&&(Gt=ht,ht=p[Gt]),hd(X,Gt,ea(ht,_,T,Gt,p,z))}),X}function fX(p){var _=gn(p);return function(T){return LP(T,p,_)}}function LP(p,_,T){var L=T.length;if(p==null)return!L;for(p=Sr(p);L--;){var k=T[L],z=_[k],X=p[k];if(X===r&&!(k in p)||!z(X))return!1}return!0}function PP(p,_,T){if(typeof p!="function")throw new Ji(o);return _d(function(){p.apply(r,T)},_)}function dd(p,_,T,L){var k=-1,z=Eg,X=!0,q=p.length,ae=[],Te=_.length;if(!q)return ae;T&&(_=Er(_,Pi(T))),L?(z=LS,X=!1):_.length>=i&&(z=od,X=!1,_=new su(_));e:for(;++kk?0:k+T),L=L===r||L>k?k:Rt(L),L<0&&(L+=k),L=T>L?0:q2(L);T0&&T(q)?_>1?Tn(q,_-1,T,L,k):Bs(k,q):L||(k[k.length]=q)}return k}var US=a2(),kP=a2(!0);function Qa(p,_){return p&&US(p,_,gn)}function YS(p,_){return p&&kP(p,_,gn)}function Jg(p,_){return Vs(_,function(T){return Xo(p[T])})}function uu(p,_){_=Ws(_,p);for(var T=0,L=_.length;p!=null&&T_}function vX(p,_){return p!=null&&pr.call(p,_)}function pX(p,_){return p!=null&&_ in Sr(p)}function gX(p,_,T){return p>=kn(_,T)&&p=120&&Ae.length>=120)?new su(X&&Ae):r}Ae=p[0];var Me=-1,$e=q[0];e:for(;++Me-1;)q!==p&&Hg.call(q,ae,1),Hg.call(p,ae,1);return p}function UP(p,_){for(var T=p?_.length:0,L=T-1;T--;){var k=_[T];if(T==L||k!==z){var z=k;Yo(k)?Hg.call(p,k,1):rb(p,k)}}return p}function QS(p,_){return p+Yg(TP()*(_-p+1))}function IX(p,_,T,L){for(var k=-1,z=sn(Ug((_-p)/(T||1)),0),X=de(z);z--;)X[L?z:++k]=p,p+=T;return X}function eb(p,_){var T="";if(!p||_<1||_>G)return T;do _%2&&(T+=p),_=Yg(_/2),_&&(p+=p);while(_);return T}function Ft(p,_){return mb(b2(p,_,yi),p+"")}function LX(p){return MP(pf(p))}function PX(p,_){var T=pf(p);return um(T,lu(_,0,T.length))}function gd(p,_,T,L){if(!Fr(p))return p;_=Ws(_,p);for(var k=-1,z=_.length,X=z-1,q=p;q!=null&&++kk?0:k+_),T=T>k?k:T,T<0&&(T+=k),k=_>T?0:T-_>>>0,_>>>=0;for(var z=de(k);++L>>1,X=p[z];X!==null&&!Ei(X)&&(T?X<=_:X<_)?L=z+1:k=z}return k}return tb(p,_,yi,T)}function tb(p,_,T,L){var k=0,z=p==null?0:p.length;if(z===0)return 0;_=T(_);for(var X=_!==_,q=_===null,ae=Ei(_),Te=_===r;k=i){var Te=_?null:UX(p);if(Te)return Og(Te);X=!1,k=od,ae=new su}else ae=_?[]:q;e:for(;++L=L?p:ta(p,_,T)}var JP=wY||function(p){return Cn.clearTimeout(p)};function QP(p,_){if(_)return p.slice();var T=p.length,L=SP?SP(T):new p.constructor(T);return p.copy(L),L}function ob(p){var _=new p.constructor(p.byteLength);return new Gg(_).set(new Gg(p)),_}function NX(p,_){var T=_?ob(p.buffer):p.buffer;return new p.constructor(T,p.byteOffset,p.byteLength)}function FX(p){var _=new p.constructor(p.source,NL.exec(p));return _.lastIndex=p.lastIndex,_}function VX(p){return fd?Sr(fd.call(p)):{}}function e2(p,_){var T=_?ob(p.buffer):p.buffer;return new p.constructor(T,p.byteOffset,p.length)}function t2(p,_){if(p!==_){var T=p!==r,L=p===null,k=p===p,z=Ei(p),X=_!==r,q=_===null,ae=_===_,Te=Ei(_);if(!q&&!Te&&!z&&p>_||z&&X&&ae&&!q&&!Te||L&&X&&ae||!T&&ae||!k)return 1;if(!L&&!z&&!Te&&p<_||Te&&T&&k&&!L&&!z||q&&T&&k||!X&&k||!ae)return-1}return 0}function BX(p,_,T){for(var L=-1,k=p.criteria,z=_.criteria,X=k.length,q=T.length;++L=q)return ae;var Te=T[L];return ae*(Te=="desc"?-1:1)}}return p.index-_.index}function r2(p,_,T,L){for(var k=-1,z=p.length,X=T.length,q=-1,ae=_.length,Te=sn(z-X,0),Ae=de(ae+Te),Me=!L;++q1?T[k-1]:r,X=k>2?T[2]:r;for(z=p.length>3&&typeof z=="function"?(k--,z):r,X&&Zn(T[0],T[1],X)&&(z=k<3?r:z,k=1),_=Sr(_);++L-1?k[z?_[X]:X]:r}}function l2(p){return Uo(function(_){var T=_.length,L=T,k=Qi.prototype.thru;for(p&&_.reverse();L--;){var z=_[L];if(typeof z!="function")throw new Ji(o);if(k&&!X&&sm(z)=="wrapper")var X=new Qi([],!0)}for(L=X?L:T;++L1&&Yt.reverse(),Ae&&aeq))return!1;var Te=z.get(p),Ae=z.get(_);if(Te&&Ae)return Te==_&&Ae==p;var Me=-1,$e=!0,et=T&g?new su:r;for(z.set(p,_),z.set(_,p);++Me1?"& ":"")+_[L],_=_.join(T>2?", ":" "),p.replace(r9,`{ -/* [wrapped with `+_+`] */ -`)}function tZ(p){return Dt(p)||hu(p)||!!(xP&&p&&p[xP])}function Yo(p,_){var T=typeof p;return _=_??G,!!_&&(T=="number"||T!="symbol"&&d9.test(p))&&p>-1&&p%1==0&&p<_}function Zn(p,_,T){if(!Fr(T))return!1;var L=typeof _;return(L=="number"?gi(T)&&Yo(_,T.length):L=="string"&&_ in T)?Ia(T[_],p):!1}function vb(p,_){if(Dt(p))return!1;var T=typeof p;return T=="number"||T=="symbol"||T=="boolean"||p==null||Ei(p)?!0:J7.test(p)||!K7.test(p)||_!=null&&p in Sr(_)}function rZ(p){var _=typeof p;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?p!=="__proto__":p===null}function pb(p){var _=sm(p),T=B[_];if(typeof T!="function"||!(_ in Ht.prototype))return!1;if(p===T)return!0;var L=fb(T);return!!L&&p===L[0]}function nZ(p){return!!_P&&_P in p}var iZ=Fg?Xo:Rb;function yd(p){var _=p&&p.constructor,T=typeof _=="function"&&_.prototype||sf;return p===T}function _2(p){return p===p&&!Fr(p)}function S2(p,_){return function(T){return T==null?!1:T[p]===_&&(_!==r||p in Sr(T))}}function aZ(p){var _=dm(p,function(L){return T.size===u&&T.clear(),L}),T=_.cache;return _}function oZ(p,_){var T=p[1],L=_[1],k=T|L,z=k<(m|y|A),X=L==A&&T==b||L==A&&T==D&&p[7].length<=_[8]||L==(A|D)&&_[7].length<=_[8]&&T==b;if(!(z||X))return p;L&m&&(p[2]=_[2],k|=T&m?0:S);var q=_[3];if(q){var ae=p[3];p[3]=ae?r2(ae,q,_[4]):q,p[4]=ae?zs(p[3],c):_[4]}return q=_[5],q&&(ae=p[5],p[5]=ae?n2(ae,q,_[6]):q,p[6]=ae?zs(p[5],c):_[6]),q=_[7],q&&(p[7]=q),L&A&&(p[8]=p[8]==null?_[8]:kn(p[8],_[8])),p[9]==null&&(p[9]=_[9]),p[0]=_[0],p[1]=k,p}function sZ(p){var _=[];if(p!=null)for(var T in Sr(p))_.push(T);return _}function lZ(p){return Bg.call(p)}function b2(p,_,T){return _=sn(_===r?p.length-1:_,0),function(){for(var L=arguments,k=-1,z=sn(L.length-_,0),X=de(z);++k0){if(++_>=E)return arguments[0]}else _=0;return p.apply(r,arguments)}}function um(p,_){var T=-1,L=p.length,k=L-1;for(_=_===r?L:_;++T<_;){var z=QS(T,k),X=p[z];p[z]=p[T],p[T]=X}return p.length=_,p}var A2=aZ(function(p){var _=[];return p.charCodeAt(0)===46&&_.push(""),p.replace(Q7,function(T,L,k,z){_.push(k?z.replace(s9,"$1"):L||T)}),_});function to(p){if(typeof p=="string"||Ei(p))return p;var _=p+"";return _=="0"&&1/p==-U?"-0":_}function fu(p){if(p!=null){try{return Vg.call(p)}catch{}try{return p+""}catch{}}return""}function cZ(p,_){return Ki(Le,function(T){var L="_."+T[0];_&T[1]&&!Eg(p,L)&&p.push(L)}),p.sort()}function D2(p){if(p instanceof Ht)return p.clone();var _=new Qi(p.__wrapped__,p.__chain__);return _.__actions__=pi(p.__actions__),_.__index__=p.__index__,_.__values__=p.__values__,_}function fZ(p,_,T){(T?Zn(p,_,T):_===r)?_=1:_=sn(Rt(_),0);var L=p==null?0:p.length;if(!L||_<1)return[];for(var k=0,z=0,X=de(Ug(L/_));k1?p[_-1]:r;return T=typeof T=="function"?(p.pop(),T):r,E2(p,T)});function k2(p){var _=B(p);return _.__chain__=!0,_}function hq(p,_){return _(p),p}function cm(p,_){return _(p)}var dq=Uo(function(p){var _=p.length,T=_?p[0]:0,L=this.__wrapped__,k=function(z){return WS(z,p)};return _>1||this.__actions__.length||!(L instanceof Ht)||!Yo(T)?this.thru(k):(L=L.slice(T,+T+(_?1:0)),L.__actions__.push({func:cm,args:[k],thisArg:r}),new Qi(L,this.__chain__).thru(function(z){return _&&!z.length&&z.push(r),z}))});function vq(){return k2(this)}function pq(){return new Qi(this.value(),this.__chain__)}function gq(){this.__values__===r&&(this.__values__=Z2(this.value()));var p=this.__index__>=this.__values__.length,_=p?r:this.__values__[this.__index__++];return{done:p,value:_}}function mq(){return this}function yq(p){for(var _,T=this;T instanceof qg;){var L=D2(T);L.__index__=0,L.__values__=r,_?k.__wrapped__=L:_=L;var k=L;T=T.__wrapped__}return k.__wrapped__=p,_}function _q(){var p=this.__wrapped__;if(p instanceof Ht){var _=p;return this.__actions__.length&&(_=new Ht(this)),_=_.reverse(),_.__actions__.push({func:cm,args:[yb],thisArg:r}),new Qi(_,this.__chain__)}return this.thru(yb)}function Sq(){return jP(this.__wrapped__,this.__actions__)}var bq=rm(function(p,_,T){pr.call(p,T)?++p[T]:Ho(p,T,1)});function wq(p,_,T){var L=Dt(p)?uP:hX;return T&&Zn(p,_,T)&&(_=r),L(p,ut(_,3))}function xq(p,_){var T=Dt(p)?Vs:EP;return T(p,ut(_,3))}var Cq=s2(M2),Tq=s2(I2);function Aq(p,_){return Tn(fm(p,_),1)}function Dq(p,_){return Tn(fm(p,_),U)}function Mq(p,_,T){return T=T===r?1:Rt(T),Tn(fm(p,_),T)}function O2(p,_){var T=Dt(p)?Ki:$s;return T(p,ut(_,3))}function N2(p,_){var T=Dt(p)?X9:RP;return T(p,ut(_,3))}var Iq=rm(function(p,_,T){pr.call(p,T)?p[T].push(_):Ho(p,T,[_])});function Lq(p,_,T,L){p=gi(p)?p:pf(p),T=T&&!L?Rt(T):0;var k=p.length;return T<0&&(T=sn(k+T,0)),gm(p)?T<=k&&p.indexOf(_,T)>-1:!!k&&rf(p,_,T)>-1}var Pq=Ft(function(p,_,T){var L=-1,k=typeof _=="function",z=gi(p)?de(p.length):[];return $s(p,function(X){z[++L]=k?Li(_,X,T):vd(X,_,T)}),z}),Rq=rm(function(p,_,T){Ho(p,T,_)});function fm(p,_){var T=Dt(p)?Er:BP;return T(p,ut(_,3))}function Eq(p,_,T,L){return p==null?[]:(Dt(_)||(_=_==null?[]:[_]),T=L?r:T,Dt(T)||(T=T==null?[]:[T]),HP(p,_,T))}var kq=rm(function(p,_,T){p[T?0:1].push(_)},function(){return[[],[]]});function Oq(p,_,T){var L=Dt(p)?PS:dP,k=arguments.length<3;return L(p,ut(_,4),T,k,$s)}function Nq(p,_,T){var L=Dt(p)?Z9:dP,k=arguments.length<3;return L(p,ut(_,4),T,k,RP)}function Fq(p,_){var T=Dt(p)?Vs:EP;return T(p,vm(ut(_,3)))}function Vq(p){var _=Dt(p)?MP:LX;return _(p)}function Bq(p,_,T){(T?Zn(p,_,T):_===r)?_=1:_=Rt(_);var L=Dt(p)?sX:PX;return L(p,_)}function zq(p){var _=Dt(p)?lX:EX;return _(p)}function Gq(p){if(p==null)return 0;if(gi(p))return gm(p)?af(p):p.length;var _=On(p);return _==W||_==le?p.size:jS(p).length}function $q(p,_,T){var L=Dt(p)?RS:kX;return T&&Zn(p,_,T)&&(_=r),L(p,ut(_,3))}var Hq=Ft(function(p,_){if(p==null)return[];var T=_.length;return T>1&&Zn(p,_[0],_[1])?_=[]:T>2&&Zn(_[0],_[1],_[2])&&(_=[_[0]]),HP(p,Tn(_,1),[])}),hm=xY||function(){return Cn.Date.now()};function Wq(p,_){if(typeof _!="function")throw new Ji(o);return p=Rt(p),function(){if(--p<1)return _.apply(this,arguments)}}function F2(p,_,T){return _=T?r:_,_=p&&_==null?p.length:_,Wo(p,A,r,r,r,r,_)}function V2(p,_){var T;if(typeof _!="function")throw new Ji(o);return p=Rt(p),function(){return--p>0&&(T=_.apply(this,arguments)),p<=1&&(_=r),T}}var Sb=Ft(function(p,_,T){var L=m;if(T.length){var k=zs(T,df(Sb));L|=C}return Wo(p,L,_,T,k)}),B2=Ft(function(p,_,T){var L=m|y;if(T.length){var k=zs(T,df(B2));L|=C}return Wo(_,L,p,T,k)});function z2(p,_,T){_=T?r:_;var L=Wo(p,b,r,r,r,r,r,_);return L.placeholder=z2.placeholder,L}function G2(p,_,T){_=T?r:_;var L=Wo(p,w,r,r,r,r,r,_);return L.placeholder=G2.placeholder,L}function $2(p,_,T){var L,k,z,X,q,ae,Te=0,Ae=!1,Me=!1,$e=!0;if(typeof p!="function")throw new Ji(o);_=na(_)||0,Fr(T)&&(Ae=!!T.leading,Me="maxWait"in T,z=Me?sn(na(T.maxWait)||0,_):z,$e="trailing"in T?!!T.trailing:$e);function et(Zr){var La=L,qo=k;return L=k=r,Te=Zr,X=p.apply(qo,La),X}function ft(Zr){return Te=Zr,q=_d(Gt,_),Ae?et(Zr):X}function Ot(Zr){var La=Zr-ae,qo=Zr-Te,sR=_-La;return Me?kn(sR,z-qo):sR}function ht(Zr){var La=Zr-ae,qo=Zr-Te;return ae===r||La>=_||La<0||Me&&qo>=z}function Gt(){var Zr=hm();if(ht(Zr))return Yt(Zr);q=_d(Gt,Ot(Zr))}function Yt(Zr){return q=r,$e&&L?et(Zr):(L=k=r,X)}function ki(){q!==r&&JP(q),Te=0,L=ae=k=q=r}function qn(){return q===r?X:Yt(hm())}function Oi(){var Zr=hm(),La=ht(Zr);if(L=arguments,k=this,ae=Zr,La){if(q===r)return ft(ae);if(Me)return JP(q),q=_d(Gt,_),et(ae)}return q===r&&(q=_d(Gt,_)),X}return Oi.cancel=ki,Oi.flush=qn,Oi}var Uq=Ft(function(p,_){return PP(p,1,_)}),Yq=Ft(function(p,_,T){return PP(p,na(_)||0,T)});function Xq(p){return Wo(p,M)}function dm(p,_){if(typeof p!="function"||_!=null&&typeof _!="function")throw new Ji(o);var T=function(){var L=arguments,k=_?_.apply(this,L):L[0],z=T.cache;if(z.has(k))return z.get(k);var X=p.apply(this,L);return T.cache=z.set(k,X)||z,X};return T.cache=new(dm.Cache||$o),T}dm.Cache=$o;function vm(p){if(typeof p!="function")throw new Ji(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 Zq(p){return V2(2,p)}var qq=OX(function(p,_){_=_.length==1&&Dt(_[0])?Er(_[0],Pi(ut())):Er(Tn(_,1),Pi(ut()));var T=_.length;return Ft(function(L){for(var k=-1,z=kn(L.length,T);++k=_}),hu=NP(function(){return arguments}())?NP:function(p){return Gr(p)&&pr.call(p,"callee")&&!wP.call(p,"callee")},Dt=de.isArray,cj=nP?Pi(nP):yX;function gi(p){return p!=null&&pm(p.length)&&!Xo(p)}function Xr(p){return Gr(p)&&gi(p)}function fj(p){return p===!0||p===!1||Gr(p)&&Xn(p)==ue}var Ys=TY||Rb,hj=iP?Pi(iP):_X;function dj(p){return Gr(p)&&p.nodeType===1&&!Sd(p)}function vj(p){if(p==null)return!0;if(gi(p)&&(Dt(p)||typeof p=="string"||typeof p.splice=="function"||Ys(p)||vf(p)||hu(p)))return!p.length;var _=On(p);if(_==W||_==le)return!p.size;if(yd(p))return!jS(p).length;for(var T in p)if(pr.call(p,T))return!1;return!0}function pj(p,_){return pd(p,_)}function gj(p,_,T){T=typeof T=="function"?T:r;var L=T?T(p,_):r;return L===r?pd(p,_,r,T):!!L}function wb(p){if(!Gr(p))return!1;var _=Xn(p);return _==Ce||_==me||typeof p.message=="string"&&typeof p.name=="string"&&!Sd(p)}function mj(p){return typeof p=="number"&&CP(p)}function Xo(p){if(!Fr(p))return!1;var _=Xn(p);return _==Re||_==H||_==oe||_==Y}function W2(p){return typeof p=="number"&&p==Rt(p)}function pm(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=G}function Fr(p){var _=typeof p;return p!=null&&(_=="object"||_=="function")}function Gr(p){return p!=null&&typeof p=="object"}var U2=aP?Pi(aP):bX;function yj(p,_){return p===_||qS(p,_,hb(_))}function _j(p,_,T){return T=typeof T=="function"?T:r,qS(p,_,hb(_),T)}function Sj(p){return Y2(p)&&p!=+p}function bj(p){if(iZ(p))throw new Ct(a);return FP(p)}function wj(p){return p===null}function xj(p){return p==null}function Y2(p){return typeof p=="number"||Gr(p)&&Xn(p)==ne}function Sd(p){if(!Gr(p)||Xn(p)!=he)return!1;var _=$g(p);if(_===null)return!0;var T=pr.call(_,"constructor")&&_.constructor;return typeof T=="function"&&T instanceof T&&Vg.call(T)==_Y}var xb=oP?Pi(oP):wX;function Cj(p){return W2(p)&&p>=-G&&p<=G}var X2=sP?Pi(sP):xX;function gm(p){return typeof p=="string"||!Dt(p)&&Gr(p)&&Xn(p)==xe}function Ei(p){return typeof p=="symbol"||Gr(p)&&Xn(p)==Pe}var vf=lP?Pi(lP):CX;function Tj(p){return p===r}function Aj(p){return Gr(p)&&On(p)==ce}function Dj(p){return Gr(p)&&Xn(p)==Ge}var Mj=om(KS),Ij=om(function(p,_){return p<=_});function Z2(p){if(!p)return[];if(gi(p))return gm(p)?Da(p):pi(p);if(sd&&p[sd])return sY(p[sd]());var _=On(p),T=_==W?VS:_==le?Og:pf;return T(p)}function Zo(p){if(!p)return p===0?p:0;if(p=na(p),p===U||p===-U){var _=p<0?-1:1;return _*Z}return p===p?p:0}function Rt(p){var _=Zo(p),T=_%1;return _===_?T?_-T:_:0}function q2(p){return p?lu(Rt(p),0,ie):0}function na(p){if(typeof p=="number")return p;if(Ei(p))return Q;if(Fr(p)){var _=typeof p.valueOf=="function"?p.valueOf():p;p=Fr(_)?_+"":_}if(typeof p!="string")return p===0?p:+p;p=vP(p);var T=c9.test(p);return T||h9.test(p)?W9(p.slice(2),T?2:8):u9.test(p)?Q:+p}function j2(p){return eo(p,mi(p))}function Lj(p){return p?lu(Rt(p),-G,G):p===0?p:0}function ur(p){return p==null?"":Ri(p)}var Pj=ff(function(p,_){if(yd(_)||gi(_)){eo(_,gn(_),p);return}for(var T in _)pr.call(_,T)&&hd(p,T,_[T])}),K2=ff(function(p,_){eo(_,mi(_),p)}),mm=ff(function(p,_,T,L){eo(_,mi(_),p,L)}),Rj=ff(function(p,_,T,L){eo(_,gn(_),p,L)}),Ej=Uo(WS);function kj(p,_){var T=cf(p);return _==null?T:IP(T,_)}var Oj=Ft(function(p,_){p=Sr(p);var T=-1,L=_.length,k=L>2?_[2]:r;for(k&&Zn(_[0],_[1],k)&&(L=1);++T1),z}),eo(p,cb(p),T),L&&(T=ea(T,f|h|d,YX));for(var k=_.length;k--;)rb(T,_[k]);return T});function Qj(p,_){return Q2(p,vm(ut(_)))}var eK=Uo(function(p,_){return p==null?{}:DX(p,_)});function Q2(p,_){if(p==null)return{};var T=Er(cb(p),function(L){return[L]});return _=ut(_),WP(p,T,function(L,k){return _(L,k[0])})}function tK(p,_,T){_=Ws(_,p);var L=-1,k=_.length;for(k||(k=1,p=r);++L_){var L=p;p=_,_=L}if(T||p%1||_%1){var k=TP();return kn(p+k*(_-p+H9("1e-"+((k+"").length-1))),_)}return QS(p,_)}var hK=hf(function(p,_,T){return _=_.toLowerCase(),p+(T?rR(_):_)});function rR(p){return Ab(ur(p).toLowerCase())}function nR(p){return p=ur(p),p&&p.replace(v9,rY).replace(E9,"")}function dK(p,_,T){p=ur(p),_=Ri(_);var L=p.length;T=T===r?L:lu(Rt(T),0,L);var k=T;return T-=_.length,T>=0&&p.slice(T,k)==_}function vK(p){return p=ur(p),p&&Z7.test(p)?p.replace(kL,nY):p}function pK(p){return p=ur(p),p&&e9.test(p)?p.replace(bS,"\\$&"):p}var gK=hf(function(p,_,T){return p+(T?"-":"")+_.toLowerCase()}),mK=hf(function(p,_,T){return p+(T?" ":"")+_.toLowerCase()}),yK=o2("toLowerCase");function _K(p,_,T){p=ur(p),_=Rt(_);var L=_?af(p):0;if(!_||L>=_)return p;var k=(_-L)/2;return am(Yg(k),T)+p+am(Ug(k),T)}function SK(p,_,T){p=ur(p),_=Rt(_);var L=_?af(p):0;return _&&L<_?p+am(_-L,T):p}function bK(p,_,T){p=ur(p),_=Rt(_);var L=_?af(p):0;return _&&L<_?am(_-L,T)+p:p}function wK(p,_,T){return T||_==null?_=0:_&&(_=+_),IY(ur(p).replace(wS,""),_||0)}function xK(p,_,T){return(T?Zn(p,_,T):_===r)?_=1:_=Rt(_),eb(ur(p),_)}function CK(){var p=arguments,_=ur(p[0]);return p.length<3?_:_.replace(p[1],p[2])}var TK=hf(function(p,_,T){return p+(T?"_":"")+_.toLowerCase()});function AK(p,_,T){return T&&typeof T!="number"&&Zn(p,_,T)&&(_=T=r),T=T===r?ie:T>>>0,T?(p=ur(p),p&&(typeof _=="string"||_!=null&&!xb(_))&&(_=Ri(_),!_&&nf(p))?Us(Da(p),0,T):p.split(_,T)):[]}var DK=hf(function(p,_,T){return p+(T?" ":"")+Ab(_)});function MK(p,_,T){return p=ur(p),T=T==null?0:lu(Rt(T),0,p.length),_=Ri(_),p.slice(T,T+_.length)==_}function IK(p,_,T){var L=B.templateSettings;T&&Zn(p,_,T)&&(_=r),p=ur(p),_=mm({},_,L,d2);var k=mm({},_.imports,L.imports,d2),z=gn(k),X=FS(k,z),q,ae,Te=0,Ae=_.interpolate||Lg,Me="__p += '",$e=BS((_.escape||Lg).source+"|"+Ae.source+"|"+(Ae===OL?l9:Lg).source+"|"+(_.evaluate||Lg).source+"|$","g"),et="//# sourceURL="+(pr.call(_,"sourceURL")?(_.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++V9+"]")+` -`;p.replace($e,function(ht,Gt,Yt,ki,qn,Oi){return Yt||(Yt=ki),Me+=p.slice(Te,Oi).replace(p9,iY),Gt&&(q=!0,Me+=`' + -__e(`+Gt+`) + -'`),qn&&(ae=!0,Me+=`'; -`+qn+`; -__p += '`),Yt&&(Me+=`' + -((__t = (`+Yt+`)) == null ? '' : __t) + -'`),Te=Oi+ht.length,ht}),Me+=`'; -`;var ft=pr.call(_,"variable")&&_.variable;if(!ft)Me=`with (obj) { -`+Me+` -} -`;else if(o9.test(ft))throw new Ct(s);Me=(ae?Me.replace(Ig,""):Me).replace(U7,"$1").replace(Y7,"$1;"),Me="function("+(ft||"obj")+`) { -`+(ft?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(q?", __e = _.escape":"")+(ae?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Me+`return __p -}`;var Ot=aR(function(){return ir(z,et+"return "+Me).apply(r,X)});if(Ot.source=Me,wb(Ot))throw Ot;return Ot}function LK(p){return ur(p).toLowerCase()}function PK(p){return ur(p).toUpperCase()}function RK(p,_,T){if(p=ur(p),p&&(T||_===r))return vP(p);if(!p||!(_=Ri(_)))return p;var L=Da(p),k=Da(_),z=pP(L,k),X=gP(L,k)+1;return Us(L,z,X).join("")}function EK(p,_,T){if(p=ur(p),p&&(T||_===r))return p.slice(0,yP(p)+1);if(!p||!(_=Ri(_)))return p;var L=Da(p),k=gP(L,Da(_))+1;return Us(L,0,k).join("")}function kK(p,_,T){if(p=ur(p),p&&(T||_===r))return p.replace(wS,"");if(!p||!(_=Ri(_)))return p;var L=Da(p),k=pP(L,Da(_));return Us(L,k).join("")}function OK(p,_){var T=I,L=P;if(Fr(_)){var k="separator"in _?_.separator:k;T="length"in _?Rt(_.length):T,L="omission"in _?Ri(_.omission):L}p=ur(p);var z=p.length;if(nf(p)){var X=Da(p);z=X.length}if(T>=z)return p;var q=T-af(L);if(q<1)return L;var ae=X?Us(X,0,q).join(""):p.slice(0,q);if(k===r)return ae+L;if(X&&(q+=ae.length-q),xb(k)){if(p.slice(q).search(k)){var Te,Ae=ae;for(k.global||(k=BS(k.source,ur(NL.exec(k))+"g")),k.lastIndex=0;Te=k.exec(Ae);)var Me=Te.index;ae=ae.slice(0,Me===r?q:Me)}}else if(p.indexOf(Ri(k),q)!=q){var $e=ae.lastIndexOf(k);$e>-1&&(ae=ae.slice(0,$e))}return ae+L}function NK(p){return p=ur(p),p&&X7.test(p)?p.replace(EL,fY):p}var FK=hf(function(p,_,T){return p+(T?" ":"")+_.toUpperCase()}),Ab=o2("toUpperCase");function iR(p,_,T){return p=ur(p),_=T?r:_,_===r?oY(p)?vY(p):K9(p):p.match(_)||[]}var aR=Ft(function(p,_){try{return Li(p,r,_)}catch(T){return wb(T)?T:new Ct(T)}}),VK=Uo(function(p,_){return Ki(_,function(T){T=to(T),Ho(p,T,Sb(p[T],p))}),p});function BK(p){var _=p==null?0:p.length,T=ut();return p=_?Er(p,function(L){if(typeof L[1]!="function")throw new Ji(o);return[T(L[0]),L[1]]}):[],Ft(function(L){for(var k=-1;++k<_;){var z=p[k];if(Li(z[0],this,L))return Li(z[1],this,L)}})}function zK(p){return fX(ea(p,f))}function Db(p){return function(){return p}}function GK(p,_){return p==null||p!==p?_:p}var $K=l2(),HK=l2(!0);function yi(p){return p}function Mb(p){return VP(typeof p=="function"?p:ea(p,f))}function WK(p){return zP(ea(p,f))}function UK(p,_){return GP(p,ea(_,f))}var YK=Ft(function(p,_){return function(T){return vd(T,p,_)}}),XK=Ft(function(p,_){return function(T){return vd(p,T,_)}});function Ib(p,_,T){var L=gn(_),k=Jg(_,L);T==null&&!(Fr(_)&&(k.length||!L.length))&&(T=_,_=p,p=this,k=Jg(_,gn(_)));var z=!(Fr(T)&&"chain"in T)||!!T.chain,X=Xo(p);return Ki(k,function(q){var ae=_[q];p[q]=ae,X&&(p.prototype[q]=function(){var Te=this.__chain__;if(z||Te){var Ae=p(this.__wrapped__),Me=Ae.__actions__=pi(this.__actions__);return Me.push({func:ae,args:arguments,thisArg:p}),Ae.__chain__=Te,Ae}return ae.apply(p,Bs([this.value()],arguments))})}),p}function ZK(){return Cn._===this&&(Cn._=SY),this}function Lb(){}function qK(p){return p=Rt(p),Ft(function(_){return $P(_,p)})}var jK=sb(Er),KK=sb(uP),JK=sb(RS);function oR(p){return vb(p)?ES(to(p)):MX(p)}function QK(p){return function(_){return p==null?r:uu(p,_)}}var eJ=c2(),tJ=c2(!0);function Pb(){return[]}function Rb(){return!1}function rJ(){return{}}function nJ(){return""}function iJ(){return!0}function aJ(p,_){if(p=Rt(p),p<1||p>G)return[];var T=ie,L=kn(p,ie);_=ut(_),p-=ie;for(var k=NS(L,_);++T0||_<0)?new Ht(T):(p<0?T=T.takeRight(-p):p&&(T=T.drop(p)),_!==r&&(_=Rt(_),T=_<0?T.dropRight(-_):T.take(_-p)),T)},Ht.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},Ht.prototype.toArray=function(){return this.take(ie)},Qa(Ht.prototype,function(p,_){var T=/^(?:filter|find|map|reject)|While$/.test(_),L=/^(?:head|last)$/.test(_),k=B[L?"take"+(_=="last"?"Right":""):_],z=L||/^find/.test(_);k&&(B.prototype[_]=function(){var X=this.__wrapped__,q=L?[1]:arguments,ae=X instanceof Ht,Te=q[0],Ae=ae||Dt(X),Me=function(Gt){var Yt=k.apply(B,Bs([Gt],q));return L&&$e?Yt[0]:Yt};Ae&&T&&typeof Te=="function"&&Te.length!=1&&(ae=Ae=!1);var $e=this.__chain__,et=!!this.__actions__.length,ft=z&&!$e,Ot=ae&&!et;if(!z&&Ae){X=Ot?X:new Ht(this);var ht=p.apply(X,q);return ht.__actions__.push({func:cm,args:[Me],thisArg:r}),new Qi(ht,$e)}return ft&&Ot?p.apply(this,q):(ht=this.thru(Me),ft?L?ht.value()[0]:ht.value():ht)})}),Ki(["pop","push","shift","sort","splice","unshift"],function(p){var _=Ng[p],T=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",L=/^(?:pop|shift)$/.test(p);B.prototype[p]=function(){var k=arguments;if(L&&!this.__chain__){var z=this.value();return _.apply(Dt(z)?z:[],k)}return this[T](function(X){return _.apply(Dt(X)?X:[],k)})}}),Qa(Ht.prototype,function(p,_){var T=B[_];if(T){var L=T.name+"";pr.call(uf,L)||(uf[L]=[]),uf[L].push({name:_,func:T})}}),uf[nm(r,y).name]=[{name:"wrapper",func:r}],Ht.prototype.clone=NY,Ht.prototype.reverse=FY,Ht.prototype.value=VY,B.prototype.at=dq,B.prototype.chain=vq,B.prototype.commit=pq,B.prototype.next=gq,B.prototype.plant=yq,B.prototype.reverse=_q,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=Sq,B.prototype.first=B.prototype.head,sd&&(B.prototype[sd]=mq),B},of=pY();iu?((iu.exports=of)._=of,MS._=of):Cn._=of}).call(Ate)}(av,av.exports)),av.exports}var Ec=Dte();const Mte=TD(Ec),An=[];for(let e=0;e<256;++e)An.push((e+256).toString(16).slice(1));function Ite(e,t=0){return(An[e[t+0]]+An[e[t+1]]+An[e[t+2]]+An[e[t+3]]+"-"+An[e[t+4]]+An[e[t+5]]+"-"+An[e[t+6]]+An[e[t+7]]+"-"+An[e[t+8]]+An[e[t+9]]+"-"+An[e[t+10]]+An[e[t+11]]+An[e[t+12]]+An[e[t+13]]+An[e[t+14]]+An[e[t+15]]).toLowerCase()}let Ub;const Lte=new Uint8Array(16);function Pte(){if(!Ub){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ub=crypto.getRandomValues.bind(crypto)}return Ub(Lte)}const Rte=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),YR={randomUUID:Rte};function Ete(e,t,r){if(YR.randomUUID&&!t&&!e)return YR.randomUUID();e=e||{};const n=e.random||(e.rng||Pte)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Ite(n)}const gp=Yr("setup/api-list",[]),cs=Yr("setup/active-uuid",""),_l=at(()=>gp.value.find(e=>e.uuid===cs.value)),kte=e=>{const t=gp.value.find(n=>Ec.isEqual(Ec.omit(n,"uuid"),e));if(t){cs.value=t.uuid;return}const r=Ete();gp.value.push({...e,uuid:r}),cs.value=r};function Kz(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ote}=Object.prototype,{getPrototypeOf:XD}=Object,_1=(e=>t=>{const r=Ote.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ja=e=>(e=e.toLowerCase(),t=>_1(t)===e),S1=e=>t=>typeof t===e,{isArray:zh}=Array,mp=S1("undefined");function Nte(e){return e!==null&&!mp(e)&&e.constructor!==null&&!mp(e.constructor)&&Ui(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Jz=ja("ArrayBuffer");function Fte(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jz(e.buffer),t}const Vte=S1("string"),Ui=S1("function"),Qz=S1("number"),b1=e=>e!==null&&typeof e=="object",Bte=e=>e===!0||e===!1,qy=e=>{if(_1(e)!=="object")return!1;const t=XD(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},zte=ja("Date"),Gte=ja("File"),$te=ja("Blob"),Hte=ja("FileList"),Wte=e=>b1(e)&&Ui(e.pipe),Ute=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ui(e.append)&&((t=_1(e))==="formdata"||t==="object"&&Ui(e.toString)&&e.toString()==="[object FormData]"))},Yte=ja("URLSearchParams"),[Xte,Zte,qte,jte]=["ReadableStream","Request","Response","Headers"].map(ja),Kte=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rg(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),zh(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const rc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tG=e=>!mp(e)&&e!==rc;function tT(){const{caseless:e}=tG(this)&&this||{},t={},r=(n,i)=>{const a=e&&eG(t,i)||i;qy(t[a])&&qy(n)?t[a]=tT(t[a],n):qy(n)?t[a]=tT({},n):zh(n)?t[a]=n.slice():t[a]=n};for(let n=0,i=arguments.length;n(rg(t,(i,a)=>{r&&Ui(i)?e[a]=Kz(i,r):e[a]=i},{allOwnKeys:n}),e),Qte=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ere=(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)},tre=(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&&XD(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},rre=(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},nre=e=>{if(!e)return null;if(zh(e))return e;let t=e.length;if(!Qz(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},ire=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&XD(Uint8Array)),are=(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])}},ore=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},sre=ja("HTMLFormElement"),lre=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),XR=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ure=ja("RegExp"),rG=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};rg(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},cre=e=>{rG(e,(t,r)=>{if(Ui(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ui(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+"'")})}})},fre=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return zh(e)?n(e):n(String(e).split(t)),r},hre=()=>{},dre=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Yb="abcdefghijklmnopqrstuvwxyz",ZR="0123456789",nG={DIGIT:ZR,ALPHA:Yb,ALPHA_DIGIT:Yb+Yb.toUpperCase()+ZR},vre=(e=16,t=nG.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function pre(e){return!!(e&&Ui(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const gre=e=>{const t=new Array(10),r=(n,i)=>{if(b1(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const a=zh(n)?[]:{};return rg(n,(o,s)=>{const l=r(o,i+1);!mp(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},mre=ja("AsyncFunction"),yre=e=>e&&(b1(e)||Ui(e))&&Ui(e.then)&&Ui(e.catch),iG=((e,t)=>e?setImmediate:t?((r,n)=>(rc.addEventListener("message",({source:i,data:a})=>{i===rc&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),rc.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ui(rc.postMessage)),_re=typeof queueMicrotask<"u"?queueMicrotask.bind(rc):typeof process<"u"&&process.nextTick||iG,ye={isArray:zh,isArrayBuffer:Jz,isBuffer:Nte,isFormData:Ute,isArrayBufferView:Fte,isString:Vte,isNumber:Qz,isBoolean:Bte,isObject:b1,isPlainObject:qy,isReadableStream:Xte,isRequest:Zte,isResponse:qte,isHeaders:jte,isUndefined:mp,isDate:zte,isFile:Gte,isBlob:$te,isRegExp:ure,isFunction:Ui,isStream:Wte,isURLSearchParams:Yte,isTypedArray:ire,isFileList:Hte,forEach:rg,merge:tT,extend:Jte,trim:Kte,stripBOM:Qte,inherits:ere,toFlatObject:tre,kindOf:_1,kindOfTest:ja,endsWith:rre,toArray:nre,forEachEntry:are,matchAll:ore,isHTMLForm:sre,hasOwnProperty:XR,hasOwnProp:XR,reduceDescriptors:rG,freezeMethods:cre,toObjectSet:fre,toCamelCase:lre,noop:hre,toFiniteNumber:dre,findKey:eG,global:rc,isContextDefined:tG,ALPHABET:nG,generateString:vre,isSpecCompliantForm:pre,toJSONObject:gre,isAsyncFn:mre,isThenable:yre,setImmediate:iG,asap:_re};function Mt(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(Mt,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 aG=Mt.prototype,oG={};["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=>{oG[e]={value:e}});Object.defineProperties(Mt,oG);Object.defineProperty(aG,"isAxiosError",{value:!0});Mt.from=(e,t,r,n,i,a)=>{const o=Object.create(aG);return ye.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Mt.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Sre=null;function rT(e){return ye.isPlainObject(e)||ye.isArray(e)}function sG(e){return ye.endsWith(e,"[]")?e.slice(0,-2):e}function qR(e,t,r){return e?e.concat(t).map(function(i,a){return i=sG(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function bre(e){return ye.isArray(e)&&!e.some(rT)}const wre=ye.toFlatObject(ye,{},null,function(t){return/^is[A-Z]/.test(t)});function w1(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(v){if(v===null)return"";if(ye.isDate(v))return v.toISOString();if(!l&&ye.isBlob(v))throw new Mt("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(v)||ye.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,g,m){let y=v;if(v&&!m&&typeof v=="object"){if(ye.endsWith(g,"{}"))g=n?g:g.slice(0,-2),v=JSON.stringify(v);else if(ye.isArray(v)&&bre(v)||(ye.isFileList(v)||ye.endsWith(g,"[]"))&&(y=ye.toArray(v)))return g=sG(g),y.forEach(function(b,w){!(ye.isUndefined(b)||b===null)&&t.append(o===!0?qR([g],w,a):o===null?g:g+"[]",u(b))}),!1}return rT(v)?!0:(t.append(qR(m,g,a),u(v)),!1)}const f=[],h=Object.assign(wre,{defaultVisitor:c,convertValue:u,isVisitable:rT});function d(v,g){if(!ye.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(v),ye.forEach(v,function(y,S){(!(ye.isUndefined(y)||y===null)&&i.call(t,y,ye.isString(S)?S.trim():S,g,h))===!0&&d(y,g?g.concat(S):[S])}),f.pop()}}if(!ye.isObject(e))throw new TypeError("data must be an object");return d(e),t}function jR(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ZD(e,t){this._pairs=[],e&&w1(e,this,t)}const lG=ZD.prototype;lG.append=function(t,r){this._pairs.push([t,r])};lG.toString=function(t){const r=t?function(n){return t.call(this,n,jR)}:jR;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function xre(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function uG(e,t,r){if(!t)return e;const n=r&&r.encode||xre;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 ZD(t,r).toString(n),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class KR{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 cG={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cre=typeof URLSearchParams<"u"?URLSearchParams:ZD,Tre=typeof FormData<"u"?FormData:null,Are=typeof Blob<"u"?Blob:null,Dre={isBrowser:!0,classes:{URLSearchParams:Cre,FormData:Tre,Blob:Are},protocols:["http","https","file","blob","url","data"]},qD=typeof window<"u"&&typeof document<"u",nT=typeof navigator=="object"&&navigator||void 0,Mre=qD&&(!nT||["ReactNative","NativeScript","NS"].indexOf(nT.product)<0),Ire=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Lre=qD&&window.location.href||"http://localhost",Pre=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qD,hasStandardBrowserEnv:Mre,hasStandardBrowserWebWorkerEnv:Ire,navigator:nT,origin:Lre},Symbol.toStringTag,{value:"Module"})),Wn={...Pre,...Dre};function Rre(e,t){return w1(e,new Wn.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return Wn.isNode&&ye.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Ere(e){return ye.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function kre(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]=kre(i[o])),!s)}if(ye.isFormData(e)&&ye.isFunction(e.entries)){const r={};return ye.forEachEntry(e,(n,i)=>{t(Ere(n),i,r,0)}),r}return null}function Ore(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 ng={transitional:cG,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(fG(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 Rre(t,this.formSerializer).toString();if((s=ye.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return w1(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),Ore(t)):t}],transformResponse:[function(t){const r=this.transitional||ng.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"?Mt.from(s,Mt.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:Wn.classes.FormData,Blob:Wn.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=>{ng.headers[e]={}});const Nre=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"]),Fre=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]&&Nre[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},JR=Symbol("internals");function xd(e){return e&&String(e).trim().toLowerCase()}function jy(e){return e===!1||e==null?e:ye.isArray(e)?e.map(jy):String(e)}function Vre(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 Bre=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xb(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 zre(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Gre(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 Di{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const c=xd(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]=jy(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())&&!Bre(t))o(Fre(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=xd(t),t){const n=ye.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Vre(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=xd(t),t){const n=ye.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Xb(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=xd(o),o){const s=ye.findKey(n,o);s&&(!r||Xb(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||Xb(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]=jy(i),delete r[a];return}const s=t?zre(a):String(a).trim();s!==a&&delete r[a],r[s]=jy(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[JR]=this[JR]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=xd(o);n[s]||(Gre(i,o),n[s]=!0)}return ye.isArray(t)?t.forEach(a):a(t),this}}Di.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ye.reduceDescriptors(Di.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});ye.freezeMethods(Di);function Zb(e,t){const r=this||ng,n=t||r,i=Di.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 hG(e){return!!(e&&e.__CANCEL__)}function Gh(e,t,r){Mt.call(this,e??"canceled",Mt.ERR_CANCELED,t,r),this.name="CanceledError"}ye.inherits(Gh,Mt,{__CANCEL__:!0});function dG(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Mt("Request failed with status code "+r.status,[Mt.ERR_BAD_REQUEST,Mt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function $re(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Hre(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 Y0=(e,t,r=3)=>{let n=0;const i=Hre(50,250);return Wre(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)},QR=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eE=e=>(...t)=>ye.asap(()=>e(...t)),Ure=Wn.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Wn.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Wn.origin),Wn.navigator&&/(msie|trident)/i.test(Wn.navigator.userAgent)):()=>!0,Yre=Wn.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 Xre(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Zre(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vG(e,t){return e&&!Xre(t)?Zre(e,t):t}const tE=e=>e instanceof Di?{...e}:e;function kc(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(tE(u),tE(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 pG=e=>{const t=kc({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=Di.from(o),t.url=uG(vG(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(Wn.hasStandardBrowserEnv||Wn.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(Wn.hasStandardBrowserEnv&&(n&&ye.isFunction(n)&&(n=n(t)),n||n!==!1&&Ure(t.url))){const u=i&&a&&Yre.read(a);u&&o.set(i,u)}return t},qre=typeof XMLHttpRequest<"u",jre=qre&&function(e){return new Promise(function(r,n){const i=pG(e);let a=i.data;const o=Di.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,h,d,v;function g(){d&&d(),v&&v(),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 b=Di.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:e,request:m};dG(function(A){r(A),g()},function(A){n(A),g()},C),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 Mt("Request aborted",Mt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Mt("Network Error",Mt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let w=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||cG;i.timeoutErrorMessage&&(w=i.timeoutErrorMessage),n(new Mt(w,C.clarifyTimeoutError?Mt.ETIMEDOUT:Mt.ECONNABORTED,e,m)),m=null},a===void 0&&o.setContentType(null),"setRequestHeader"in m&&ye.forEach(o.toJSON(),function(w,C){m.setRequestHeader(C,w)}),ye.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),s&&s!=="json"&&(m.responseType=i.responseType),u&&([h,v]=Y0(u,!0),m.addEventListener("progress",h)),l&&m.upload&&([f,d]=Y0(l),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",d)),(i.cancelToken||i.signal)&&(c=b=>{m&&(n(!b||b.type?new Gh(null,e,m):b),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const S=$re(i.url);if(S&&Wn.protocols.indexOf(S)===-1){n(new Mt("Unsupported protocol "+S+":",Mt.ERR_BAD_REQUEST,e));return}m.send(a||null)})},Kre=(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 Mt?c:new Gh(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,a(new Mt(`timeout ${t} of ms exceeded`,Mt.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}},Jre=function*(e,t){let r=e.byteLength;if(r{const i=Qre(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})},x1=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",gG=x1&&typeof ReadableStream=="function",tne=x1&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),mG=(e,...t)=>{try{return!!e(...t)}catch{return!1}},rne=gG&&mG(()=>{let e=!1;const t=new Request(Wn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),nE=64*1024,iT=gG&&mG(()=>ye.isReadableStream(new Response("").body)),X0={stream:iT&&(e=>e.body)};x1&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!X0[t]&&(X0[t]=ye.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Mt(`Response type '${t}' is not supported`,Mt.ERR_NOT_SUPPORT,n)})})})(new Response);const nne=async e=>{if(e==null)return 0;if(ye.isBlob(e))return e.size;if(ye.isSpecCompliantForm(e))return(await new Request(Wn.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 tne(e)).byteLength},ine=async(e,t)=>{const r=ye.toFiniteNumber(e.getContentLength());return r??nne(t)},ane=x1&&(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}=pG(e);u=u?(u+"").toLowerCase():"text";let d=Kre([i,a&&a.toAbortSignal()],o),v;const g=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let m;try{if(l&&rne&&r!=="get"&&r!=="head"&&(m=await ine(c,n))!==0){let C=new Request(t,{method:"POST",body:n,duplex:"half"}),x;if(ye.isFormData(n)&&(x=C.headers.get("content-type"))&&c.setContentType(x),C.body){const[A,D]=QR(m,Y0(eE(l)));n=rE(C.body,nE,A,D)}}ye.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...h,signal:d,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:y?f:void 0});let S=await fetch(v);const b=iT&&(u==="stream"||u==="response");if(iT&&(s||b&&g)){const C={};["status","statusText","headers"].forEach(M=>{C[M]=S[M]});const x=ye.toFiniteNumber(S.headers.get("content-length")),[A,D]=s&&QR(x,Y0(eE(s),!0))||[];S=new Response(rE(S.body,nE,A,()=>{D&&D(),g&&g()}),C)}u=u||"text";let w=await X0[ye.findKey(X0,u)||"text"](S,e);return!b&&g&&g(),await new Promise((C,x)=>{dG(C,x,{data:w,headers:Di.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:v})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Mt("Network Error",Mt.ERR_NETWORK,e,v),{cause:y.cause||y}):Mt.from(y,y&&y.code,e,v)}}),aT={http:Sre,xhr:jre,fetch:ane};ye.forEach(aT,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const iE=e=>`- ${e}`,one=e=>ye.isFunction(e)||e===null||e===!1,yG={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(iE).join(` -`):" "+iE(a[0]):"as no adapter specified";throw new Mt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:aT};function qb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gh(null,e)}function aE(e){return qb(e),e.headers=Di.from(e.headers),e.data=Zb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yG.getAdapter(e.adapter||ng.adapter)(e).then(function(n){return qb(e),n.data=Zb.call(e,e.transformResponse,n),n.headers=Di.from(n.headers),n},function(n){return hG(n)||(qb(e),n&&n.response&&(n.response.data=Zb.call(e,e.transformResponse,n.response),n.response.headers=Di.from(n.response.headers))),Promise.reject(n)})}const _G="1.7.8",C1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{C1[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const oE={};C1.transitional=function(t,r,n){function i(a,o){return"[Axios v"+_G+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new Mt(i(o," has been removed"+(r?" in "+r:"")),Mt.ERR_DEPRECATED);return r&&!oE[o]&&(oE[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}};C1.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function sne(e,t,r){if(typeof e!="object")throw new Mt("options must be an object",Mt.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 Mt("option "+a+" must be "+l,Mt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Mt("Unknown option "+a,Mt.ERR_BAD_OPTION)}}const Ky={assertOptions:sne,validators:C1},no=Ky.validators;class mc{constructor(t){this.defaults=t,this.interceptors={request:new KR,response:new KR}}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=kc(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&Ky.assertOptions(n,{silentJSONParsing:no.transitional(no.boolean),forcedJSONParsing:no.transitional(no.boolean),clarifyTimeoutError:no.transitional(no.boolean)},!1),i!=null&&(ye.isFunction(i)?r.paramsSerializer={serialize:i}:Ky.assertOptions(i,{encode:no.function,serialize:no.function},!0)),Ky.assertOptions(r,{baseUrl:no.spelling("baseURL"),withXsrfToken:no.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"],v=>{delete a[v]}),r.headers=Di.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 v=[aE.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),h=v.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 Gh(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 jD(function(i){t=i}),cancel:t}}}function lne(e){return function(r){return e.apply(null,r)}}function une(e){return ye.isObject(e)&&e.isAxiosError===!0}const oT={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(oT).forEach(([e,t])=>{oT[t]=e});function SG(e){const t=new mc(e),r=Kz(mc.prototype.request,t);return ye.extend(r,mc.prototype,t,{allOwnKeys:!0}),ye.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return SG(kc(e,i))},r}const $t=SG(ng);$t.Axios=mc;$t.CanceledError=Gh;$t.CancelToken=jD;$t.isCancel=hG;$t.VERSION=_G;$t.toFormData=w1;$t.AxiosError=Mt;$t.Cancel=$t.CanceledError;$t.all=function(t){return Promise.all(t)};$t.spread=lne;$t.isAxiosError=une;$t.mergeConfig=kc;$t.AxiosHeaders=Di;$t.formToJSON=e=>fG(ye.isHTMLForm(e)?new FormData(e):e);$t.getAdapter=yG.getAdapter;$t.HttpStatusCode=oT;$t.default=$t;$t.interceptors.request.use(e=>{var t,r,n,i;return e.baseURL=((t=_l.value)==null?void 0:t.protocol)+"://"+((r=_l.value)==null?void 0:r.host)+":"+((n=_l.value)==null?void 0:n.port),e.headers.Authorization="Bearer "+((i=_l.value)==null?void 0:i.password),e});const KD=je(),cne=()=>$t.get("/version"),fne=at(()=>{var e;return(e=KD.value)==null?void 0:e.includes("sing-box")}),hne=je("1.7.2");vr(_l,async e=>{if(e){const{data:t}=await cne();KD.value=t.version}},{immediate:!0});const dne=()=>$t.get("/proxies"),vne=(e,t)=>$t.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),pne=(e,t,r)=>$t.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),gne=(e,t,r)=>$t.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),mne=()=>$t.get("/providers/proxies"),bG=e=>$t.put(`/providers/proxies/${encodeURIComponent(e)}`),yne=e=>$t.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),_ne=()=>$t.get("/rules"),Sne=()=>$t.get("/providers/rules"),wG=e=>$t.put(`/providers/rules/${encodeURIComponent(e)}`),T1=e=>$t.delete(`/connections/${e}`),bne=()=>$t.get("/configs"),wne=e=>$t.patch("/configs",e),sE=()=>$t.post("/cache/fakeip/flush"),xne=()=>$t.put("/configs?reload=true",{path:"",payload:""}),Cne=()=>$t.post("/upgrade/ui"),A1=(e,t)=>{const r=_l.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)}),Cte(n,{autoClose:!1,autoReconnect:!0})},Tne=()=>A1("connections"),Ane=(e={})=>A1("logs",e),Dne=()=>A1("memory"),Mne=()=>A1("traffic");var zn=(e=>(e[e.MEDIUM=300]="MEDIUM",e[e.HIGH=800]="HIGH",e[e.NOT_CONNECTED=0]="NOT_CONNECTED",e))(zn||{}),Lo=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e))(Lo||{}),er=(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))(er||{}),gl=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(gl||{}),_h=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(_h||{}),Gl=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(Gl||{}),wi=(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))(wi||{}),nc=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(nc||{}),ic=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(ic||{}),br=(e=>(e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e))(br||{});const Jy=Yr("config/theme","default"),fs=Yr("config/language",Lo.EN_US),yc=Yr("config/is-sidebar-collapsed",window.screen.width>720),Qy=Yr("config/show-global-proxy",!0),Z0=Yr("config/collapse-group-map",{}),sh=Yr("config/two-columns",!0),Rv=Yr("config/speedtest-url","http://www.gstatic.com/generate_204"),Ev=Yr("config/speedtest-timeout",5e3),e0=Yr("config/proxy-sort-type",gl.DEFAULT),_c=je(Gl.PROXIES),t0=Yr("config/automatic-disconnection",!0),r0=Yr("config/two-columns-for-proxy-group-in-mobile",!1),ac=Yr("config/use-connecticon-card",!1),ju=Yr("config/connection-table-columns",[er.Close,er.Host,er.Type,er.Rule,er.Chains,er.Download,er.Upload,er.DlSpeed,er.UlSpeed,er.ConnectTime]),n0=Yr("config/compact-connection-card",!0);Yr("config/host-label-map",{});const kv=je(_h.RULES),ov=je(),xG=async()=>{ov.value=(await bne()).data},Ine=async e=>{await wne(e),xG()},_o=je([]),i0=je([]),q0=je(0),j0=je(0);let Cm;const Lne=()=>{Cm==null||Cm(),_o.value=[],i0.value=[],q0.value=0,j0.value=0;const e=Tne(),t=vr(e.data,r=>{var i;if(!r)return;const n=JSON.parse(r);q0.value=n.downloadTotal,j0.value=n.uploadTotal,!s0.value&&(i0.value=[...i0.value,...Ec.differenceWith(_o.value,n.connections,(a,o)=>a.id===o.id)],_o.value=((i=n.connections)==null?void 0:i.map(a=>{const o=_o.value.find(s=>s.id===a.id);return o?{...a,downloadSpeed:a.download-o.download,uploadSpeed:a.upload-o.upload}:{...a,downloadSpeed:0,uploadSpeed:0}}))??[])});Cm=()=>{t(),e.close()}},Ov=Yr("config/quick-filter-regex","dns|direct"),a0=Yr("config/quick-filter-enabled",!1),sv=je(nc.ACTIVE),lE={[wi.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[wi.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[wi.CHAINS]:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),[wi.DOWNLOAD]:(e,t)=>t.download-e.download,[wi.DOWNLOAD_SPEED]:(e,t)=>t.downloadSpeed-e.downloadSpeed,[wi.UPLOAD]:(e,t)=>t.upload-e.upload,[wi.UPLOAD_SPEED]:(e,t)=>t.uploadSpeed-e.uploadSpeed,[wi.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[wi.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[wi.CONNECT_TIME]:(e,t)=>Fl(t.start).valueOf()-Fl(e.start).valueOf()},o0=Yr("config/connection-sort-type",wi.HOST),Nv=je(""),s0=je(!1),K0=at(()=>(sv.value===nc.ACTIVE?_o.value:i0.value).filter(e=>{if(a0.value&&Ov.value){const t=new RegExp(Ov.value);if(t.test(e.chains.join(""))||t.test(e.metadata.host)||t.test(e.metadata.destinationIP))return!1}return cl.value&&e.metadata.sourceIP!==cl.value?!1:Nv.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(Nv.value)):!0}).sort((e,t)=>{const r=ac.value?lE[o0.value](e,t):lE[wi.HOST](e,t);return r===0?e.id.localeCompare(t.id):r})),cl=je(""),uE=at(()=>Mte.uniq(_o.value.map(e=>e.metadata.sourceIP)).sort());function CG(e,t){return se(),be("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"},[ee("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 Pne(e,t){return se(),be("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"},[ee("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function Rne(e,t){return se(),be("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"},[ee("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 TG(e,t){return se(),be("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"},[ee("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 Ene(e,t){return se(),be("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"},[ee("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 AG(e,t){return se(),be("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"},[ee("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 cE(e,t){return se(),be("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"},[ee("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function JD(e,t){return se(),be("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"},[ee("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 kne(e,t){return se(),be("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"},[ee("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function DG(e,t){return se(),be("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"},[ee("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 MG(e,t){return se(),be("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"},[ee("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"}),ee("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function One(e,t){return se(),be("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"},[ee("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 IG(e,t){return se(),be("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"},[ee("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 LG(e,t){return se(),be("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"},[ee("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 PG(e,t){return se(),be("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"},[ee("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 fE(e,t){return se(),be("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"},[ee("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 hE(e,t){return se(),be("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"},[ee("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 RG(e,t){return se(),be("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"},[ee("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function EG(e,t){return se(),be("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"},[ee("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 Nne(e,t){return se(),be("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"},[ee("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function kG(e,t){return se(),be("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"},[ee("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 QD(e,t){return se(),be("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"},[ee("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const eM="-",Fne=e=>{const t=Bne(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(eM);return s[0]===""&&s.length!==1&&s.shift(),OG(s,t)||Vne(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},OG=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?OG(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(eM);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},dE=/^\[(.+)\]$/,Vne=e=>{if(dE.test(e)){const t=dE.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Bne=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Gne(Object.entries(e.classGroups),r).forEach(([a,o])=>{sT(o,n,a,t)}),n},sT=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:vE(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(zne(i)){sT(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{sT(o,vE(t,a),r,n)})})},vE=(e,t)=>{let r=e;return t.split(eM).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},zne=e=>e.isThemeGetter,Gne=(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,$ne=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)}}},NG="!",Hne=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:d,baseClassName:v,maybePostfixModifierPosition:g}};return r?s=>r({className:s,parseClassName:o}):o},Wne=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},Une=e=>({cache:$ne(e.cacheSize),parseClassName:Hne(e),...Fne(e)}),Yne=/\s+/,Xne=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(Yne);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:d}=r(u);let v=!!d,g=n(v?h.substring(0,d):h);if(!g){if(!v){s=u+(s.length>0?" "+s:s);continue}if(g=n(h),!g){s=u+(s.length>0?" "+s:s);continue}v=!1}const m=Wne(c).join(":"),y=f?m+NG:m,S=y+g;if(a.includes(S))continue;a.push(S);const b=i(g,v);for(let w=0;w0?" "+s:s)}return s};function Zne(){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=Une(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=Xne(l,r);return i(l,c),c}return function(){return a(Zne.apply(null,arguments))}}const Lr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},VG=/^\[(?:([a-z-]+):)?(.+)\]$/i,jne=/^\d+\/\d+$/,Kne=new Set(["px","full","screen"]),Jne=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qne=/\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$/,eie=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tie=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rie=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ko=e=>lh(e)||Kne.has(e)||jne.test(e),Xs=e=>$h(e,"length",cie),lh=e=>!!e&&!Number.isNaN(Number(e)),jb=e=>$h(e,"number",lh),Cd=e=>!!e&&Number.isInteger(Number(e)),nie=e=>e.endsWith("%")&&lh(e.slice(0,-1)),Et=e=>VG.test(e),Zs=e=>Jne.test(e),iie=new Set(["length","size","percentage"]),aie=e=>$h(e,iie,BG),oie=e=>$h(e,"position",BG),sie=new Set(["image","url"]),lie=e=>$h(e,sie,hie),uie=e=>$h(e,"",fie),Td=()=>!0,$h=(e,t,r)=>{const n=VG.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},cie=e=>Qne.test(e)&&!eie.test(e),BG=()=>!1,fie=e=>tie.test(e),hie=e=>rie.test(e),die=()=>{const e=Lr("colors"),t=Lr("spacing"),r=Lr("blur"),n=Lr("brightness"),i=Lr("borderColor"),a=Lr("borderRadius"),o=Lr("borderSpacing"),s=Lr("borderWidth"),l=Lr("contrast"),u=Lr("grayscale"),c=Lr("hueRotate"),f=Lr("invert"),h=Lr("gap"),d=Lr("gradientColorStops"),v=Lr("gradientColorStopPositions"),g=Lr("inset"),m=Lr("margin"),y=Lr("opacity"),S=Lr("padding"),b=Lr("saturate"),w=Lr("scale"),C=Lr("sepia"),x=Lr("skew"),A=Lr("space"),D=Lr("translate"),M=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",Et,t],E=()=>[Et,t],F=()=>["",Ko,Xs],O=()=>["auto",lh,Et],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],U=()=>["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",Et],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>[lh,Et];return{cacheSize:500,separator:":",theme:{colors:[Td],spacing:[Ko,Xs],blur:["none","",Zs,Et],brightness:ie(),borderColor:[e],borderRadius:["none","","full",Zs,Et],borderSpacing:E(),borderWidth:F(),contrast:ie(),grayscale:Z(),hueRotate:ie(),invert:Z(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[nie,Xs],inset:P(),margin:P(),opacity:ie(),padding:E(),saturate:ie(),scale:ie(),sepia:Z(),skew:ie(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",Et]}],container:["container"],columns:[{columns:[Zs]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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(),Et]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],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",Cd,Et]}],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",Et]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Cd,Et]}],"grid-cols":[{"grid-cols":[Td]}],"col-start-end":[{col:["auto",{span:["full",Cd,Et]},Et]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Td]}],"row-start-end":[{row:["auto",{span:[Cd,Et]},Et]}],"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",Et]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Et]}],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",Et,t]}],"min-w":[{"min-w":[Et,t,"min","max","fit"]}],"max-w":[{"max-w":[Et,t,"none","full","min","max","fit","prose",{screen:[Zs]},Zs]}],h:[{h:[Et,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Et,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Et,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Et,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Zs,Xs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jb]}],"font-family":[{font:[Td]}],"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",Et]}],"line-clamp":[{"line-clamp":["none",lh,jb]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ko,Et]}],"list-image":[{"list-image":["none",Et]}],"list-style-type":[{list:["none","disc","decimal",Et]}],"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",Ko,Xs]}],"underline-offset":[{"underline-offset":["auto",Ko,Et]}],"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",Et]}],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",Et]}],"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(),oie]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",aie]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lie]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],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":[Ko,Et]}],"outline-w":[{outline:[Ko,Xs]}],"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":[Ko,Xs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Zs,uie]}],"shadow-color":[{shadow:[Td]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Zs,Et]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[C]}],"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":[b]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"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",Et]}],duration:[{duration:ie()}],ease:[{ease:["linear","in","out","in-out",Et]}],delay:[{delay:ie()}],animate:[{animate:["none","spin","ping","pulse","bounce",Et]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Cd,Et]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Et]}],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",Et]}],"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",Et]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ko,Xs,jb]}],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"]}}},nn=qne(die),vie={class:"tabs-boxed tabs tabs-sm"},pie={key:0,class:"flex items-center gap-2"},gie=["value"],mie={class:"flex items-center gap-2"},yie=["value","label"],_ie={class:"join flex-1"},Sie=["value","label"],zG=Ut({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{K0.value.forEach(r=>{T1(r.id)})};return(r,n)=>(se(),be("div",{class:Kt(J(nn)("flex flex-col gap-2 p-2 text-sm",r.horizontal&&"flex-row flex-wrap pb-0"))},[ee("div",vie,[ee("a",{role:"tab",class:Kt(J(nn)("tab",J(sv)===J(nc).ACTIVE&&"tab-active")),onClick:n[0]||(n[0]=()=>sv.value=J(nc).ACTIVE)},ke(r.$t("activeConnections")),3),ee("a",{role:"tab",class:Kt(J(nn)("tab",J(sv)===J(nc).CLOSED&&"tab-active")),onClick:n[1]||(n[1]=()=>sv.value=J(nc).CLOSED)},ke(r.$t("closedConnections")),3)]),J(ac)?(se(),be("div",pie,[Zt(ke(r.$t("sortBy"))+": ",1),Dr(ee("select",{class:"select select-bordered select-sm w-52","onUpdate:modelValue":n[2]||(n[2]=i=>bt(o0)?o0.value=i:null)},[(se(!0),be(lt,null,dr(Object.values(J(wi)),i=>(se(),be("option",{key:i,value:i},ke(r.$t(i)||i),9,gie))),128))],512),[[ms,J(o0)]])])):tr("",!0),ee("div",mie,[Zt(ke(r.$t("quickFilter"))+": ",1),Dr(ee("input",{type:"text",class:"input input-sm join-item input-bordered w-40","onUpdate:modelValue":n[3]||(n[3]=i=>bt(Ov)?Ov.value=i:null)},null,512),[[Rl,J(Ov)]]),Dr(ee("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":n[4]||(n[4]=i=>bt(a0)?a0.value=i:null)},null,512),[[ss,J(a0)]])]),r.horizontal?tr("",!0):Dr((se(),be("select",{key:1,class:"select select-bordered select-sm","onUpdate:modelValue":n[5]||(n[5]=i=>bt(cl)?cl.value=i:null)},[n[9]||(n[9]=ee("option",{value:"",label:"all"},null,-1)),(se(!0),be(lt,null,dr(J(uE),i=>(se(),be("option",{key:i,value:i,label:i},null,8,yie))),128))],512)),[[ms,J(cl)]]),ee("div",_ie,[r.horizontal?Dr((se(),be("select",{key:0,class:"join-item select select-bordered select-sm min-w-24","onUpdate:modelValue":n[6]||(n[6]=i=>bt(cl)?cl.value=i:null)},[n[10]||(n[10]=ee("option",{value:"",label:"all"},null,-1)),(se(!0),be(lt,null,dr(J(uE),i=>(se(),be("option",{key:i,value:i,label:i},null,8,Sie))),128))],512)),[[ms,J(cl)]]):tr("",!0),Dr(ee("input",{type:"text",class:"input input-sm join-item input-bordered w-24 flex-1","onUpdate:modelValue":n[7]||(n[7]=i=>bt(Nv)?Nv.value=i:null)},null,512),[[Rl,J(Nv)]]),ee("button",{class:"btn-bordered btn join-item btn-sm",onClick:n[8]||(n[8]=i=>s0.value=!J(s0))},[(se(),qt(Vl(J(s0)?J(EG):J(RG)),{class:"h-4 w-4"}))]),ee("button",{class:"btn-bordered btn join-item btn-sm",onClick:t},[Be(J(QD),{class:"h-4 w-4"})])])],2))}}),lv=je([]),uh=je(""),l0=je(!1),u0=Yr("config/log-level",ic.Info);let Tm;const lT=()=>{Tm==null||Tm(),lv.value=[];let e=1;const t=Ane({level:u0.value}),r=vr(t.data,n=>{if(!n)return;const i=JSON.parse(n);if(l0.value){e++;return}lv.value.unshift({...i,time:new Date().valueOf(),seq:e++}),lv.value=lv.value.slice(0,1e3)});Tm=()=>{r(),t.close()}},bie=["value"],GG=Ut({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,r)=>(se(),be("div",{class:Kt(J(nn)("join w-full p-2",t.horizontal&&"max-w-96 pb-0"))},[Dr(ee("select",{class:"join-item select select-bordered select-sm","onUpdate:modelValue":r[0]||(r[0]=n=>bt(u0)?u0.value=n:null),onChange:r[1]||(r[1]=(...n)=>J(lT)&&J(lT)(...n))},[(se(!0),be(lt,null,dr(Object.values(J(ic)),n=>(se(),be("option",{key:n,value:n},ke(n),9,bie))),128))],544),[[ms,J(u0)]]),Dr(ee("input",{type:"text",class:"input input-sm join-item input-bordered w-0 flex-1","onUpdate:modelValue":r[2]||(r[2]=n=>bt(uh)?uh.value=n:null)},null,512),[[Rl,J(uh)]]),ee("button",{class:"btn-bordered btn join-item btn-sm",onClick:r[3]||(r[3]=n=>l0.value=!J(l0))},[(se(),qt(Vl(J(l0)?J(EG):J(RG)),{class:"h-4 w-4"}))])],2))}}),uT="GLOBAL",Fv=je([]),Sh=je({}),D1=je({}),Sc=je([]),tM=e=>D1.value[rM(e)],J0=async()=>{const{data:e}=await dne(),{data:t}=await mne(),r=e.proxies[uT].all??[];Sh.value=e.proxies,Fv.value=Object.values(e.proxies).filter(n=>{var i;return((i=n.all)==null?void 0:i.length)&&n.name!==uT&&!(n!=null&&n.hide)}).sort((n,i)=>r.indexOf(n.name)-r.indexOf(i.name)).map(n=>n.name),D1.value=Object.fromEntries(Object.entries(e.proxies).map(([n,i])=>[n,Tie(i)])),Sc.value=Object.values(t.providers).filter(n=>n.name!=="default"&&n.vehicleType!=="Compatible")},wie=async(e,t)=>{await vne(e,t),Sh.value[e].now=t,t0.value&&_o.value.filter(r=>r.chains.includes(e)).forEach(r=>T1(r.id))},xie=async e=>{const{data:t}=await pne(e,Rv.value,Ev.value);D1.value[rM(e)]=t.delay},Cie=async e=>{const{data:t}=await gne(e,Rv.value,Ev.value);Object.entries(t).forEach(([r,n])=>{D1.value[rM(r)]=n})},Tie=e=>{var t;return((t=Ec.last(e.history))==null?void 0:t.delay)??0},rM=e=>{let t=Sh.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const r=Sh.value[t.now];if(!r)return t.name;t=r}return t.name},Aie={key:0,role:"tablist",class:"tabs-boxed tabs tabs-sm"},Die=["onClick"],Mie={key:1,class:"flex flex-col gap-2"},Iie={key:1,class:"w-full sm:hidden"},Lie=["label","value"],Pie=["value"],Rie=["label","value"],$G=Ut({__name:"ProxiesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=je(!1),r=async()=>{if(!t.value){t.value=!0;try{await Promise.all(Sc.value.map(a=>bG(a.name))),await J0(),t.value=!1}catch{t.value=!1}}},n=at(()=>{var a,o;return((a=ov.value)==null?void 0:a["mode-list"])||((o=ov.value)==null?void 0:o.modes)||["direct","rule","global"]}),i=a=>{const o=a.target.value;Ine({mode:o})};return(a,o)=>J(ov)?(se(),be("div",{key:0,class:Kt(J(nn)("flex flex-col gap-2 p-2",a.horizontal&&"flex-row flex-wrap pb-0"))},[J(Sc).length?(se(),be(lt,{key:0},[J(Sc).length?(se(),be("div",Aie,[(se(!0),be(lt,null,dr(J(Gl),s=>(se(),be("a",{role:"tab",class:Kt(["tab",{"tab-active":J(_c)===s}]),key:s,onClick:l=>_c.value=s},ke(a.$t(s)),11,Die))),128))])):tr("",!0),J(_c)===J(Gl).PROVIDER?(se(),be("div",Mie,[ee("button",{class:Kt(J(nn)("btn btn-sm",t.value?"animate-pulse":"")),onClick:r},ke(a.$t("upgradeAllProviders")),3)])):tr("",!0)],64)):tr("",!0),a.horizontal?(se(),be("div",Iie)):tr("",!0),Dr(ee("select",{class:"select select-bordered select-sm","onUpdate:modelValue":o[0]||(o[0]=s=>bt(e0)?e0.value=s:null)},[(se(!0),be(lt,null,dr(Object.values(J(gl)),s=>(se(),be("option",{key:s,label:a.$t(s),value:s},null,8,Lie))),128))],512),[[ms,J(e0)]]),ee("select",{class:"select select-bordered select-sm",value:J(ov).mode,onChange:i},[(se(!0),be(lt,null,dr(n.value,s=>(se(),be("option",{key:s,label:s,value:s},null,8,Rie))),128))],40,Pie)],2)):tr("",!0)}}),HG=je(),Q0=je([]),nM=async()=>{const{data:e}=await _ne(),{data:t}=await Sne();HG.value=e.rules,Q0.value=Object.values(t.providers)},Eie={role:"tablist",class:"tabs-boxed tabs tabs-sm"},kie=["onClick"],Oie={key:0,class:"flex flex-col gap-2"},WG=Ut({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=je(!1),r=async()=>{if(!t.value){t.value=!0;try{await Promise.all(Q0.value.map(n=>wG(n.name))),await nM(),t.value=!1}catch{t.value=!1}}};return(n,i)=>J(Q0).length?(se(),be("div",{key:0,class:Kt(J(nn)("flex flex-col gap-2 p-2",n.horizontal&&"flex-row pb-0"))},[ee("div",Eie,[(se(!0),be(lt,null,dr(J(_h),a=>(se(),be("a",{role:"tab",class:Kt(["tab",{"tab-active":J(kv)===a}]),key:a,onClick:o=>kv.value=a},ke(n.$t(a)),11,kie))),128))]),J(kv)===J(_h).PROVIDER?(se(),be("div",Oie,[ee("button",{class:Kt(J(nn)("btn btn-sm",t.value?"animate-pulse":"")),onClick:r},ke(n.$t("upgradeAllProviders")),3)])):tr("",!0)],2)):tr("",!0)}}),Nie=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],Fie=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Vie=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Bie=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],pE=(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 zie(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?Bie:Vie:t.binary?Fie:Nie,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=pE(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=pE(Number(e),t.locale,o),u=r[s];return a+l+n+u}const Or=(e,t)=>zie(e,{binary:!1,...t}),Gie=Tte(),UG=at(()=>Gie.width.value>1280),M1=e=>Fl(e).locale(fs.value).fromNow(),Am=e=>{const t=tM(e);return t===0?1/0:t},YG=e=>{switch(e=[...e],e0.value){case gl.DEFAULT:return e;case gl.NAME_ASC:return e.sort((t,r)=>t.localeCompare(r));case gl.NAME_DESC:return e.sort((t,r)=>r.localeCompare(t));case gl.LATENCY_ASC:return e.sort((t,r)=>Am(t)-Am(r));case gl.LATENCY_DESC:return e.sort((t,r)=>Am(r)-Am(t))}},iM=je(0),aM=je(0),oM=je(0),uv=je(new Array(60).fill(0)),cv=je(new Array(60).fill(0));let Dm;const $ie=()=>{Dm==null||Dm(),uv.value=new Array(60).fill(0),cv.value=new Array(60).fill(0);const e=Dne(),t=vr(e.data,i=>{if(!i)return;const a=JSON.parse(i);iM.value=a.inuse}),r=Mne(),n=vr(r.data,i=>{if(!i)return;const a=JSON.parse(i);aM.value=a.down,oM.value=a.up,uv.value.push(a.down),cv.value.push(a.up),uv.value=uv.value.slice(-60),cv.value=cv.value.slice(-60)});Dm=()=>{e.close(),t(),r.close(),n()}},Hie={class:"flex gap-2"},Wie=["value"],XG=Ut({__name:"BackendSwitch",setup(e){const t=at(()=>gp.value.map(n=>({label:`${n.protocol}://${n.host}:${n.port}`,value:n.uuid}))),r=()=>{cs.value=null};return(n,i)=>(se(),be("div",Hie,[Dr(ee("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":i[0]||(i[0]=a=>bt(cs)?cs.value=a:null)},[(se(!0),be(lt,null,dr(t.value,a=>(se(),be("option",{key:a.value,value:a.value},ke(a.label),9,Wie))),128))],512),[[ms,J(cs)]]),ee("button",{class:"btn btn-circle btn-xs",onClick:r},[Be(J(Nne),{class:"h-4 w-4"})])]))}}),Uie={class:"flex justify-between"},Yie={class:"flex flex-col gap-2 p-2 text-xs"},Xie={class:"flex flex-1 items-end justify-end p-2"},Zie=Ut({__name:"CommonCtrl",setup(e){return(t,r)=>(se(),be("div",Uie,[ee("div",Yie,[ee("div",null,ke(t.$t("connections"))+": "+ke(J(_o).length),1),ee("div",null,ke(t.$t("download"))+": "+ke(J(Or)(J(q0)))+" ("+ke(J(Or)(J(aM)))+"/s) ",1),ee("div",null,ke(t.$t("upload"))+": "+ke(J(Or)(J(j0)))+" ("+ke(J(Or)(J(oM)))+"/s) ",1),ee("div",null,ke(t.$t("memoryUsage"))+": "+ke(J(Or)(J(iM),{binary:!0})),1),ee("div",null,ke(t.$t("version"))+": "+ke(J(KD)),1),Be(XG)]),ee("div",Xie,[ee("button",{class:"btn btn-circle btn-ghost btn-xs",onClick:r[0]||(r[0]=n=>yc.value=!0)},[Be(J(Rne),{class:"h-5 w-5"})])])]))}});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var cT=function(e,t){return cT=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])},cT(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");cT(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var qie=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),jie=function(){function e(){this.browser=new qie,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}(),St=new jie;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(St.wxa=!0,St.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?St.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(St.node=!0,St.svgSupported=!0):Kie(navigator.userAgent,St);function Kie(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 sM=12,ZG="sans-serif",$l=sM+"px "+ZG,Jie=20,Qie=100,eae="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function tae(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 wae(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,d=c.top;o.push(h,d),l=l&&a&&h===a[f]&&d===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?_E(s,o):_E(o,s))}function t$(e){return e.nodeName.toUpperCase()==="CANVAS"}var xae=/([&<>"'])/g,Cae={"&":"&","<":"<",">":">",'"':""","'":"'"};function xi(e){return e==null?"":(e+"").replace(xae,function(t,r){return Cae[r]})}var Tae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jb=[],Aae=St.browser.firefox&&+St.browser.version.split(".")[0]<39;function mT(e,t,r,n){return r=r||{},n?bE(e,t,r):Aae&&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):bE(e,t,r),r}function bE(e,t,r){if(St.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(t$(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(gT(Jb,e,n,i)){r.zrX=Jb[0],r.zrY=Jb[1];return}}r.zrX=r.zrY=0}function vM(e){return e||window.event}function ua(e,t,r){if(t=vM(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&&mT(e,o,t,r)}else{mT(e,t,t,r);var a=Dae(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Tae.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Dae(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 yT(e,t,r,n){e.addEventListener(t,r,n)}function Mae(e,t,r,n){e.removeEventListener(t,r,n)}var Cs=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function wE(e){return e.which===2||e.which===3}var Iae=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=xE(n)/xE(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Lae(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Yi(){return[1,0,0,1,0,0]}function R1(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function pM(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 _s(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 Ro(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 Xc(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 gM(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 Uh(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 Pae(e){var t=Yi();return pM(t,e),t}var nt=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}(),Im=Math.min,Lm=Math.max,pu=new nt,gu=new nt,mu=new nt,yu=new nt,Ad=new nt,Dd=new nt,st=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=Im(t.x,this.x),n=Im(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lm(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lm(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=Yi();return Ro(a,a,[-r.x,-r.y]),gM(a,a,[n,i]),Ro(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=!(av&&(v=b,gv&&(v=w,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}pu.x=mu.x=r.x,pu.y=yu.y=r.y,gu.x=yu.x=r.x+r.width,gu.y=mu.y=r.y+r.height,pu.transform(n),yu.transform(n),gu.transform(n),mu.transform(n),t.x=Im(pu.x,gu.x,mu.x,yu.x),t.y=Im(pu.y,gu.y,mu.y,yu.y);var l=Lm(pu.x,gu.x,mu.x,yu.x),u=Lm(pu.y,gu.y,mu.y,yu.y);t.width=l-t.x,t.height=u-t.y},e}(),r$="silent";function Rae(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:Eae}}function Eae(){Cs(this.event)}var kae=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}(Ca),Md=function(){function e(t,r){this.x=t,this.y=r}return e}(),Oae=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ew=new st(0,0,0,0),n$=function(e){j(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Md(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new kae,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new yae(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(R(Oae,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=i$(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 Md(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 Md(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=Rae(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 Md(r,n);if(CE(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new st(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)&&(ew.copy(h.getBoundingRect()),h.transform&&ew.applyTransform(h.transform),ew.intersect(c)&&s.push(h))}if(s.length)for(var d=4,v=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Nae(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?r$:!0}return!1}function CE(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=Nae(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==r$)){t.target=o;break}}}function i$(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var a$=32,Id=7;function Fae(e){for(var t=0;e>=a$;)t|=e&1,e>>=1;return e+t}function TE(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 Vae(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 tw(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 rw(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 Bae(e,t){var r=Id,n,i,a=0,o=[];n=[],i=[];function s(d,v){n[a]=d,i[a]=v,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]i[d+1])break;c(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]=Id||A>=Id);if(D)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),v===1){for(y=0;y=0;y--)e[x+y]=e[C+y];e[w]=o[b];return}for(var A=r;;){var D=0,M=0,I=!1;do if(t(o[b],e[S])<0){if(e[w--]=e[S--],D++,M=0,--v===0){I=!0;break}}else if(e[w--]=o[b--],M++,D=0,--m===1){I=!0;break}while((D|M)=0;y--)e[x+y]=e[C+y];if(v===0){I=!0;break}}if(e[w--]=o[b--],--m===1){I=!0;break}if(M=m-tw(e[S],o,0,m,m-1,t),M!==0){for(w-=M,b-=M,m-=M,x=w+1,C=b+1,y=0;y=Id||M>=Id);if(I)break;A<0&&(A=0),A+=2}if(r=A,r<1&&(r=1),m===1){for(w-=v,S-=v,x=w+1,C=S+1,y=v-1;y>=0;y--)e[x+y]=e[C+y];e[w]=o[b]}else{if(m===0)throw new Error;for(C=w-(m-1),y=0;ys&&(l=s),AE(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 Gi=1,fv=2,Gf=4,DE=!1;function nw(){DE||(DE=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ME(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var zae=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ME}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(nw(),c.z=0),isNaN(c.z2)&&(nw(),c.z2=0),isNaN(c.zlevel)&&(nw(),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 d=t.getTextContent();d&&this._updateAndAddDisplayable(d,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}(),r_;r_=St.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}},Pm=Math.pow,El=Math.sqrt,n_=1e-8,o$=1e-4,IE=El(3),Rm=1/3,go=Yc(),va=Yc(),ch=Yc();function xl(e){return e>-n_&&en_||e<-n_}function ln(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 LE(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function i_(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,d=0;if(xl(c)&&xl(f))if(xl(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[d++]=v)}else{var g=f*f-4*c*h;if(xl(g)){var m=f/c,v=-s/o+m,y=-m/2;v>=0&&v<=1&&(a[d++]=v),y>=0&&y<=1&&(a[d++]=y)}else if(g>0){var S=El(g),b=c*s+1.5*o*(-f+S),w=c*s+1.5*o*(-f-S);b<0?b=-Pm(-b,Rm):b=Pm(b,Rm),w<0?w=-Pm(-w,Rm):w=Pm(w,Rm);var v=(-s-(b+w))/(3*o);v>=0&&v<=1&&(a[d++]=v)}else{var C=(2*c*s-3*o*f)/(2*El(c*c*c)),x=Math.acos(C)/3,A=El(c),D=Math.cos(x),v=(-s-2*A*D)/(3*o),y=(-s+A*(D+IE*Math.sin(x)))/(3*o),M=(-s+A*(D-IE*Math.sin(x)))/(3*o);v>=0&&v<=1&&(a[d++]=v),y>=0&&y<=1&&(a[d++]=y),M>=0&&M<=1&&(a[d++]=M)}}return d}function l$(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(xl(o)){if(s$(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(xl(c))i[0]=-a/(2*o);else if(c>0){var f=El(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 Wl(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 u$(e,t,r,n,i,a,o,s,l,u,c){var f,h=.005,d=1/0,v,g,m,y;go[0]=l,go[1]=u;for(var S=0;S<1;S+=.05)va[0]=ln(e,r,i,o,S),va[1]=ln(t,n,a,s,S),m=bc(go,va),m=0&&m=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(xl(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=El(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 c$(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function _p(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 f$(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;go[0]=o,go[1]=s;for(var h=0;h<1;h+=.05){va[0]=mn(e,r,i,h),va[1]=mn(t,n,a,h);var d=bc(go,va);d=0&&d=1?1:i_(0,n,a,1,l,s)&&ln(0,i,o,1,s[0])}}}var Uae=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||Ur,this.ondestroy=t.ondestroy||Ur,this.onrestart=t.onrestart||Ur,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=We(t)?t:Bv[t]||mM(t)},e}(),h$=function(){function e(t){this.value=t}return e}(),Yae=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new h$(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}(),ig=function(){function e(t){this._list=new Yae,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 h$(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}(),PE={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 Ha(e){return e=Math.round(e),e<0?0:e>255?255:e}function Xae(e){return e=Math.round(e),e<0?0:e>360?360:e}function Sp(e){return e<0?0:e>1?1:e}function iw(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ha(parseFloat(t)/100*255):Ha(parseInt(t,10))}function wc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Sp(parseFloat(t)/100):Sp(parseFloat(t))}function aw(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 Cl(e,t,r){return e+(t-e)*r}function la(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function ST(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var d$=new ig(20),Em=null;function yf(e,t){Em&&ST(Em,t),Em=d$.put(e,Em||t.slice())}function Xi(e,t){if(e){t=t||[];var r=d$.get(e);if(r)return ST(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in PE)return ST(t,PE[n]),yf(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)){la(t,0,0,0,1);return}return la(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),yf(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){la(t,0,0,0,1);return}return la(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),yf(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?la(t,+u[0],+u[1],+u[2],1):la(t,0,0,0,1);c=wc(u.pop());case"rgb":if(u.length>=3)return la(t,iw(u[0]),iw(u[1]),iw(u[2]),u.length===3?c:wc(u[3])),yf(e,t),t;la(t,0,0,0,1);return;case"hsla":if(u.length!==4){la(t,0,0,0,1);return}return u[3]=wc(u[3]),bT(u,t),yf(e,t),t;case"hsl":if(u.length!==3){la(t,0,0,0,1);return}return bT(u,t),yf(e,t),t;default:return}}la(t,0,0,0,1)}}function bT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=wc(e[1]),i=wc(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],la(t,Ha(aw(o,a,r+1/3)*255),Ha(aw(o,a,r)*255),Ha(aw(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Zae(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 d=[l*360,u,s];return e[3]!=null&&d.push(e[3]),d}}function wT(e,t){var r=Xi(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 Ss(r,r.length===4?"rgba":"rgb")}}function ow(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]=Ha(Cl(o[0],s[0],l)),r[1]=Ha(Cl(o[1],s[1],l)),r[2]=Ha(Cl(o[2],s[2],l)),r[3]=Sp(Cl(o[3],s[3],l)),r}}function qae(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=Xi(t[i]),s=Xi(t[a]),l=n-i,u=Ss([Ha(Cl(o[0],s[0],l)),Ha(Cl(o[1],s[1],l)),Ha(Cl(o[2],s[2],l)),Sp(Cl(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=Xi(e);if(e)return i=Zae(i),t!=null&&(i[0]=Xae(t)),r!=null&&(i[1]=wc(r)),n!=null&&(i[2]=wc(n)),Ss(bT(i),"rgba")}function a_(e,t){var r=Xi(e);if(r&&t!=null)return r[3]=Sp(t),Ss(r,"rgba")}function Ss(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 o_(e,t){var r=Xi(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var RE=new ig(100);function xT(e){if(Ee(e)){var t=RE.get(e);return t||(t=wT(e,-.1),RE.put(e,t)),t}else if(L1(e)){var r=fe({},e);return r.colorStops=Se(e.colorStops,function(n){return{offset:n.offset,color:wT(n.color,-.1)}}),r}return e}var s_=Math.round;function bp(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Xi(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var EE=1e-4;function Tl(e){return e-EE}function km(e){return s_(e*1e3)/1e3}function CT(e){return s_(e*1e4)/1e4}function jae(e){return"matrix("+km(e[0])+","+km(e[1])+","+km(e[2])+","+km(e[3])+","+CT(e[4])+","+CT(e[5])+")"}var Kae={left:"start",right:"end",center:"middle",middle:"middle"};function Jae(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Qae(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function eoe(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 v$(e){return e&&!!e.image}function toe(e){return e&&!!e.svgElement}function yM(e){return v$(e)||toe(e)}function p$(e){return e.type==="linear"}function g$(e){return e.type==="radial"}function m$(e){return e&&(e.type==="linear"||e.type==="radial")}function E1(e){return"url(#"+e+")"}function y$(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 _$(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*c0,i=tt(e.scaleX,1),a=tt(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("+s_(o*c0)+"deg, "+s_(s*c0)+"deg)"),l.join(" ")}var roe=function(){return St.hasGlobalWindow&&We(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}}(),TT=Array.prototype.slice;function is(e,t,r){return(t-e)*r+e}function sw(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=OE,l=r;if(Un(r)){var u=ooe(r);s=u,(u===1&&!Nt(r[0])||u===2&&!Nt(r[0][0]))&&(o=!0)}else if(Nt(r)&&!yp(r))s=Nm;else if(Ee(r))if(!isNaN(+r))s=Nm;else{var c=Xi(r);c&&(l=c,s=hv)}else if(L1(r)){var f=fe({},l);f.colorStops=Se(r.colorStops,function(d){return{offset:d.offset,color:Xi(d.color)}}),p$(r)?s=AT:g$(r)&&(s=DT),l=f}a===0?this.valType=s:(s!==this.valType||s===OE)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=We(n)?n:Bv[n]||mM(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=Fm(i),u=NE(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)}v=o[c+1],d=o[c]}if(d&&v){this._lastFr=c,this._lastFrP=r;var m=v.percent-d.percent,y=m===0?1:h((r-d.percent)/m,1);v.easingFunc&&(y=v.easingFunc(y));var S=n?this._additiveValue:u?Ld:t[l];if((Fm(a)||u)&&!S&&(S=this._additiveValue=[]),this.discrete)t[l]=y<1?d.rawValue:v.rawValue;else if(Fm(a))a===p0?sw(S,d[i],v[i],y):noe(S,d[i],v[i],y);else if(NE(a)){var b=d[i],w=v[i],C=a===AT;t[l]={type:C?"linear":"radial",x:is(b.x,w.x,y),y:is(b.y,w.y,y),colorStops:Se(b.colorStops,function(A,D){var M=w.colorStops[D];return{offset:is(A.offset,M.offset,y),color:v0(sw([],A.color,M.color,y))}}),global:w.global},C?(t[l].x2=is(b.x2,w.x2,y),t[l].y2=is(b.y2,w.y2,y)):t[l].r=is(b.r,w.r,y)}else if(u)sw(S,d[i],v[i],y),n||(t[l]=v0(S));else{var x=is(d[i],v[i],y);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Nm?t[n]=t[n]+i:r===hv?(Xi(t[n],Ld),Om(Ld,Ld,i,1),t[n]=v0(Ld)):r===p0?Om(t[n],t[n],i,1):r===S$&&kE(t[n],t[n],i,1)},e}(),_M=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){cM("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,xt(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 qf(){return new Date().getTime()}var loe=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=qf()-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&&(r_(n),!r._paused&&r.update())}r_(n)},t.prototype.start=function(){this._running||(this._time=qf(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=qf(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=qf()-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 _M(r,n.loop);return this.addAnimator(i),i},t}(Ca),uoe=300,lw=St.domSupported,uw=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}}(),FE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},VE=!1;function MT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function coe(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 cw(e){e&&(e.zrByTouch=!0)}function foe(e,t){return ua(e.dom,new hoe(e,t),!0)}function b$(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 hoe=function(){function e(t,r){this.stopPropagation=Ur,this.stopImmediatePropagation=Ur,this.preventDefault=Ur,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Oa={mousedown:function(e){e=ua(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ua(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=ua(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ua(this.dom,e);var t=e.toElement||e.relatedTarget;b$(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){VE=!0,e=ua(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){VE||(e=ua(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ua(this.dom,e),cw(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Oa.mousemove.call(this,e),Oa.mousedown.call(this,e)},touchmove:function(e){e=ua(this.dom,e),cw(e),this.handler.processGesture(e,"change"),Oa.mousemove.call(this,e)},touchend:function(e){e=ua(this.dom,e),cw(e),this.handler.processGesture(e,"end"),Oa.mouseup.call(this,e),+new Date-+this.__lastTouchMomentGE||e<-GE}var Su=[],_f=[],hw=Yi(),dw=Math.abs,hs=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 _u(this.rotation)||_u(this.x)||_u(this.y)||_u(this.scaleX-1)||_u(this.scaleY-1)||_u(this.skewX)||_u(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(zE(n),this.invTransform=null);return}n=n||Yi(),r?this.getLocalTransform(n):zE(n),t&&(r?_s(n,t,n):pM(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Su);var n=Su[0]<0?-1:1,i=Su[1]<0?-1:1,a=((Su[0]-n)*r+n)/Su[0]||0,o=((Su[1]-i)*r+i)/Su[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Yi(),Uh(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||Yi(),_s(_f,t.invTransform,r),r=_f);var n=this.originX,i=this.originY;(n||i)&&(hw[4]=n,hw[5]=i,_s(_f,r,hw),_f[4]-=n,_f[5]-=i,r=_f),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&&Ln(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Ln(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&dw(t[0]-1)>1e-10&&dw(t[3]-1)>1e-10?Math.sqrt(dw(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){x$(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,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,g=i+l;r[4]=-v*a-h*g*o,r[5]=-g*o-d*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=h*o,u&&Xc(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}(),Eo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function x$(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function u_(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+=Xa(n[0],r.width),u+=Xa(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 vw="__zr_normal__",pw=Eo.concat(["ignore"]),moe=Po(Eo,function(e,t){return e[t]=!0,e},{ignore:!1}),Sf={},yoe=new st(0,0,0,0),O1=function(){function e(t){this.id=KG(),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=yoe;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Sf,n,c):u_(Sf,n,c),a.x=Sf.x,a.y=Sf.y,o=Sf.align,s=Sf.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var h=void 0,d=void 0;f==="center"?(h=c.width*.5,d=c.height*.5):(h=Xa(f[0],c.width),d=Xa(f[1],c.height)),u=!0,a.originX=-a.x+h+(i?0:c.x),a.originY=-a.y+d+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[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,b=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),b=!0)):(y=n.outsideFill,S=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(y),b=!0)),y=y||"#000",(y!==m.fill||S!==m.stroke||b!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=S,m.autoStroke=b,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=Gi,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()?RT:PT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Xi(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,Ss(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||{},fe(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(Ze(t))for(var n=t,i=xt(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(vw,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===vw,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(pt(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){cM("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&=~Gi),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,v);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&=~Gi)}},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=pt(i,t),o=pt(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(v,g){r.during(g)});for(var h=0;h0||i.force&&!o.length){var D=void 0,M=void 0,I=void 0;if(s){M={},h&&(D={});for(var w=0;w=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=pt(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=pt(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)?Ioe(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Br(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),A$),e=(+e).toFixed(t),r?e:+e}function _a(e){return e.sort(function(t,r){return t-r}),e}function So(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 Loe(e)}function Loe(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 D$(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 Poe(e,t){var r=Po(e,function(d,v){return d+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Se(e,function(d){return(isNaN(d)?0:d)/r*n*100}),a=n*100,o=Se(i,function(d){return Math.floor(d)}),s=Po(o,function(d,v){return d+v},0),l=Se(i,function(d,v){return d-o[v]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Se(o,function(d){return d/n})}function Roe(e,t){var r=Math.max(So(e),So(t)),n=e+t;return r>A$?n:Br(n,r)}var YE=9007199254740991;function M$(e){var t=Math.PI*2;return(e%t+t)%t}function wp(e){return e>-UE&&e=10&&t++,t}function I$(e,t){var r=SM(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 yw(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 XE(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&&pt(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var ise=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ase=Fc(ise),ose=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return ase(this,t,r)},e}(),OT=new ig(50);function sse(e){if(typeof e=="string"){var t=OT.get(e);return t&&t.image}else return e}function CM(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=OT.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!F1(t)&&a.pending.push(o)):(t=Hl.loadImage(e,KE,KE),t.__zrImageSrc=e,OT.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function KE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Zi(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 $$(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Zi(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?use(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Zi(e,n)}return e===""&&(e=t.placeholder),e}function use(e,t,r,n){for(var i=0,a=0,o=e.length;ad&&u){var v=Math.floor(d/s);f=f.slice(0,v)}if(e&&a&&c!=null)for(var g=G$(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;ms&&Sw(r,e.substring(s,u),t,o),Sw(r,l[2],t,o,l[1]),s=_w.lastIndex}si){C>0?(S.tokens=S.tokens.slice(0,C),m(S,w,b),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)==="%")x.percentWidth=E,c.push(x),x.contentWidth=Zi(x.text,I);else{if(F){var O=A.backgroundColor,N=O&&O.image;N&&(N=sse(N),F1(N)&&(x.width=Math.max(x.width,N.width*P/N.height)))}var V=v&&n!=null?n-w:null;V!=null&&V0&&v+n.accumWidth>n.width&&(c=t.split(` -`),u=!0),n.accumWidth=v}else{var g=H$(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+d,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 pse=Po(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function gse(e){return vse(e)?!!pse[e]:!0}function H$(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+d>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}c+=d,v?(l+=h,u+=d):(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 NT="__zr_style_"+Math.round(Math.random()*10),xc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},V1={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};xc[NT]=!0;var QE=["z","z2","invisible"],mse=["invisible"],xa=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=xt(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Vm[0]=Cw(i)*r+e,Vm[1]=xw(i)*n+t,Bm[0]=Cw(a)*r+e,Bm[1]=xw(a)*n+t,u(s,Vm,Bm),c(l,Vm,Bm),i=i%wu,i<0&&(i=i+wu),a=a%wu,a<0&&(a=a+wu),i>a&&!o?a+=wu:ii&&(zm[0]=Cw(d)*r+e,zm[1]=xw(d)*n+t,u(s,zm,s),c(l,zm,l))}var cr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},xu=[],Cu=[],io=[],qs=[],ao=[],oo=[],Tw=Math.min,Aw=Math.max,Tu=Math.cos,Au=Math.sin,Jo=Math.abs,FT=Math.PI,ol=FT*2,Dw=typeof Float32Array<"u",Pd=[];function Mw(e){var t=Math.round(e/FT*1e8)/1e8;return t%2*FT}function TM(e,t){var r=Mw(e[0]);r<0&&(r+=ol);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=ol?i=r+ol:t&&r-i>=ol?i=r-ol:!t&&r>i?i=r+(ol-Mw(r-i)):t&&r0&&(this._ux=Jo(n/l_/t)||0,this._uy=Jo(n/l_/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(cr.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=Jo(t-this._xi),i=Jo(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(cr.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(cr.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(cr.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(),Pd[0]=i,Pd[1]=a,TM(Pd,o),i=Pd[0],a=Pd[1];var s=a-i;return this.addData(cr.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Tu(a)*n+t,this._yi=Au(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(cr.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(cr.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)&&Dw&&(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(){io[0]=io[1]=ao[0]=ao[1]=Number.MAX_VALUE,qs[0]=qs[1]=oo[0]=oo[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Jo(b)>i||h===r-1)&&(g=Math.sqrt(S*S+b*b),a=m,o=y);break}case cr.C:{var w=t[h++],C=t[h++],m=t[h++],y=t[h++],x=t[h++],A=t[h++];g=Gae(a,o,w,C,m,y,x,A,10),a=x,o=A;break}case cr.Q:{var w=t[h++],C=t[h++],m=t[h++],y=t[h++];g=Hae(a,o,w,C,m,y,10),a=m,o=y;break}case cr.A:var D=t[h++],M=t[h++],I=t[h++],P=t[h++],E=t[h++],F=t[h++],O=F+E;h+=1,v&&(s=Tu(E)*I+D,l=Au(E)*P+M),g=Aw(I,P)*Tw(ol,Math.abs(F)),a=Tu(O)*I+D,o=Au(O)*P+M;break;case cr.R:{s=a=t[h++],l=o=t[h++];var N=t[h++],V=t[h++];g=N*2+V*2;break}case cr.Z:{var S=s-a,b=l-o;g=Math.sqrt(S*S+b*b),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,d=r<1,v,g,m=0,y=0,S,b=0,w,C;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,S=r*g,!S)))e:for(var x=0;x0&&(t.lineTo(w,C),b=0),A){case cr.M:s=u=n[x++],l=c=n[x++],t.moveTo(u,c);break;case cr.L:{f=n[x++],h=n[x++];var M=Jo(f-u),I=Jo(h-c);if(M>i||I>a){if(d){var P=v[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,b=0}else{var F=M*M+I*I;F>b&&(w=f,C=h,b=F)}break}case cr.C:{var O=n[x++],N=n[x++],V=n[x++],U=n[x++],G=n[x++],Z=n[x++];if(d){var P=v[y++];if(m+P>S){var E=(S-m)/P;Wl(u,O,V,G,E,xu),Wl(c,N,U,Z,E,Cu),t.bezierCurveTo(xu[1],Cu[1],xu[2],Cu[2],xu[3],Cu[3]);break e}m+=P}t.bezierCurveTo(O,N,V,U,G,Z),u=G,c=Z;break}case cr.Q:{var O=n[x++],N=n[x++],V=n[x++],U=n[x++];if(d){var P=v[y++];if(m+P>S){var E=(S-m)/P;_p(u,O,V,E,xu),_p(c,N,U,E,Cu),t.quadraticCurveTo(xu[1],Cu[1],xu[2],Cu[2]);break e}m+=P}t.quadraticCurveTo(O,N,V,U),u=V,c=U;break}case cr.A:var Q=n[x++],ie=n[x++],pe=n[x++],De=n[x++],Le=n[x++],ze=n[x++],He=n[x++],oe=!n[x++],ue=pe>De?pe:De,ve=Jo(pe-De)>.001,me=Le+ze,Ce=!1;if(d){var P=v[y++];m+P>S&&(me=Le+ze*(S-m)/P,Ce=!0),m+=P}if(ve&&t.ellipse?t.ellipse(Q,ie,pe,De,He,Le,me,oe):t.arc(Q,ie,ue,Le,me,oe),Ce)break e;D&&(s=Tu(Le)*pe+Q,l=Au(Le)*De+ie),u=Tu(me)*pe+Q,c=Au(me)*De+ie;break;case cr.R:s=u=n[x],l=c=n[x+1],f=n[x++],h=n[x++];var Re=n[x++],H=n[x++];if(d){var P=v[y++];if(m+P>S){var W=S-m;t.moveTo(f,h),t.lineTo(f+Tw(W,Re),h),W-=Re,W>0&&t.lineTo(f+Re,h+Tw(W,H)),W-=H,W>0&&t.lineTo(f+Aw(Re-W,0),h+H),W-=Re,W>0&&t.lineTo(f,h+Aw(H-W,0));break e}m+=P}t.rect(f,h,Re,H);break;case cr.Z:if(d){var P=v[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=cr,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function fl(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+=Rd);var h=Math.atan2(l,s);return h<0&&(h+=Rd),h>=n&&h<=i||h+Rd>=n&&h+Rd<=i}function as(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var js=Oo.CMD,Du=Math.PI*2,Cse=1e-4;function Tse(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Ase(),d=ln(t,n,a,s,ha[0]),h>1&&(v=ln(t,n,a,s,ha[1]))),h===2?mt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=mn(t,n,a,u),h=0;hr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);ni[0]=-l,ni[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Du-1e-4){n=0,i=Du;var c=a?1:-1;return o>=ni[0]+e&&o<=ni[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=Du,i+=Du);for(var h=0,d=0;d<2;d++){var v=ni[d];if(v+e>o){var g=Math.atan2(s,v),c=a?1:-1;g<0&&(g=Du+g),(g>=n&&g<=i||g+Du>=n&&g+Du<=i)&&(g>Math.PI/2&&g1&&(r||(s+=as(l,u,c,f,n,i))),m&&(l=a[v],u=a[v+1],c=l,f=u),g){case js.M:c=a[v++],f=a[v++],l=c,u=f;break;case js.L:if(r){if(fl(l,u,a[v],a[v+1],t,n,i))return!0}else s+=as(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case js.C:if(r){if(wse(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Dse(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case js.Q:if(r){if(W$(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Mse(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case js.A:var y=a[v++],S=a[v++],b=a[v++],w=a[v++],C=a[v++],x=a[v++];v+=1;var A=!!(1-a[v++]);h=Math.cos(C)*b+y,d=Math.sin(C)*w+S,m?(c=h,f=d):s+=as(l,u,h,d,n,i);var D=(n-y)*w/b+y;if(r){if(xse(y,S,w,C,C+x,A,t,D,i))return!0}else s+=Ise(y,S,w,C,C+x,A,D,i);l=Math.cos(C+x)*b+y,u=Math.sin(C+x)*w+S;break;case js.R:c=l=a[v++],f=u=a[v++];var M=a[v++],I=a[v++];if(h=c+M,d=f+I,r){if(fl(c,f,h,f,t,n,i)||fl(h,f,h,d,t,n,i)||fl(h,d,c,d,t,n,i)||fl(c,d,c,f,t,n,i))return!0}else s+=as(h,f,h,d,n,i),s+=as(c,d,c,f,n,i);break;case js.Z:if(r){if(fl(l,u,c,f,t,n,i))return!0}else s+=as(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!Tse(u,f)&&(s+=as(l,u,c,f,n,i)||0),s!==0}function Lse(e,t,r){return U$(e,0,!1,t,r)}function Pse(e,t,r,n){return U$(e,t,!0,r,n)}var c_=Ye({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},xc),Rse={style:Ye({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},V1.style)},Iw=Eo.concat(["invisible","culling","z","z2","zlevel","parent"]),_t=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?PT:n>.2?goe:RT}else if(r)return RT}return PT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ee(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=o_(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&Gf)&&(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)),Pse(s,l/u,r,n)))return!0}if(this.hasFill())return Lse(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Gf,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:fe(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Gf)},t.prototype.createStyle=function(r){return P1(c_,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=fe({},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=fe({},i.shape),fe(u,n.shape)):(u=fe({},a?this.shape:i.shape),fe(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=fe({},this.shape);for(var c={},f=xt(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 P1(Ese,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=ag(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}(xa);wh.prototype.type="tspan";var kse=Ye({x:0,y:0},xc),Ose={style:Ye({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},V1.style)};function Nse(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var bn=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return P1(kse,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Nse(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 Ose},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new st(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(xa);bn.prototype.type="image";function Fse(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 jf=Math.round;function Y$(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&&(jf(n*2)===jf(i*2)&&(e.x1=e.x2=sc(n,s,!0)),jf(a*2)===jf(o*2)&&(e.y1=e.y2=sc(a,s,!0))),e}}function X$(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=sc(n,s,!0),e.y=sc(i,s,!0),e.width=Math.max(sc(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(sc(i+o,s,!1)-e.y,o===0?0:1)),e}}function sc(e,t,r){if(!t)return e;var n=jf(e*2);return(n+jf(t))%2===0?n/2:(n+(r?1:-1))/2}var Vse=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Bse={},It=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,a,o,s;if(this.subPixelOptimize){var l=X$(Bse,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?Fse(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(_t);It.prototype.type="rect";var ik={fill:"#000"},ak=2,zse={style:Ye({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},V1.style)},kt=function(e){j(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ik,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=x[F],O.align==="right");)this._placeToken(O,r,D,y,E,"right",b),M-=O.width,E-=O.width,F--;for(P+=(a-(P-m)-(S-E)-M)/2;I<=F;)O=x[I],this._placeToken(O,r,D,y,P+O.width/2,"center",b),P+=O.width,I++;y+=D}},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 d=!!u.backgroundColor,v=r.textPadding;v&&(o=fk(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild(wh),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,S=!1,b=0,w=ck("fill"in u?u.fill:"fill"in n?n.fill:(S=!0,y.fill)),C=uk("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!y.autoStroke||S)?(b=ak,y.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=f,x&&(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||$l,m.opacity=To(u.opacity,n.opacity,1),sk(m,u),C&&(m.lineWidth=To(u.lineWidth,n.lineWidth,b),m.lineDash=tt(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=C),w&&(m.fill=w);var A=r.contentWidth,D=r.contentHeight;g.setBoundingRect(new st(dv(m.x,A,m.textAlign),$f(m.y,D,m.textBaseline),A,D))},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,d=r.borderRadius,v=this,g,m;if(h||r.lineHeight||u&&c){g=this._getOrCreateChild(It),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=d,g.dirtyShape()}if(h){var S=g.style;S.fill=l||null,S.fillOpacity=tt(r.fillOpacity,1)}else if(f){m=this._getOrCreateChild(bn),m.onload=function(){v.dirtyStyle()};var b=m.style;b.image=l.image,b.x=i,b.y=a,b.width=o,b.height=s}if(u&&c){var S=g.style;S.lineWidth=u,S.stroke=c,S.strokeOpacity=tt(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 w=(g||m).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=To(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return q$(r)&&(n=[r.fontStyle,r.fontWeight,Z$(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ba(n)||r.textFont||r.font},t}(xa),Gse={left:!0,right:1,center:1},$se={top:1,bottom:1,middle:1},ok=["fontStyle","fontWeight","fontSize","fontFamily"];function Z$(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?sM+"px":e+"px"}function sk(e,t){for(var r=0;r=0,a=!1;if(e instanceof _t){var o=j$(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(bf(s)||bf(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=fe({},n),u=fe({},u),u.fill=s):!bf(u.fill)&&bf(s)?(a=!0,n=fe({},n),u=fe({},u),u.fill=xT(s)):!bf(u.stroke)&&bf(l)&&(a||(n=fe({},n),u=fe({},u)),u.stroke=xT(l)),n.style=u}}if(n&&n.z2==null){a||(n=fe({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Xh)}return n}function qse(e,t,r){if(r&&r.z2==null){r=fe({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Wse)}return r}function jse(e,t,r){var n=pt(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Xse(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=fe({},r),o=fe({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Pw(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Zse(this,e,t,r);if(e==="blur")return jse(this,e,r);if(e==="select")return qse(this,e,r)}return r}function Vc(e){e.stateProxy=Pw;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Pw),r&&(r.stateProxy=Pw)}function gk(e,t){!n4(e,t)&&!e.__highByOuter&&ks(e,K$)}function mk(e,t){!n4(e,t)&&!e.__highByOuter&&ks(e,J$)}function As(e,t){e.__highByOuter|=1<<(t||0),ks(e,K$)}function Ds(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ks(e,J$)}function e4(e){ks(e,MM)}function IM(e){ks(e,Q$)}function t4(e){ks(e,Use)}function r4(e){ks(e,Yse)}function n4(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function i4(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=AM(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Q$(u)}),s&&r.push(a)),o.isBlured=!1}),R(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function BT(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 Tc(e,t,r){lc(e,!0),ks(e,Vc),GT(e,t,r)}function rle(e){lc(e,!1)}function Nr(e,t,r,n){n?rle(e):Tc(e,t,r)}function GT(e,t,r){var n=Qe(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var _k=["emphasis","blur","select"],nle={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Pn(e,t,r,n){r=r||"itemStyle";for(var i=0;i<_k.length;i++){var a=_k[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[nle[r]]()}}function lc(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Tp(e){return!!(e&&e.__highDownDispatcher)}function ile(e,t,r){var n=Qe(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function ale(e){var t=vk[e];return t==null&&dk<=32&&(t=vk[e]=dk++),t}function $T(e){var t=e.type;return t===Wv||t===_0||t===Uv}function Sk(e){var t=e.type;return t===Cc||t===y0}function ole(e){var t=j$(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var wf=Oo.CMD,sle=[[],[],[]],bk=Math.sqrt,lle=Math.atan2;function a4(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,c=wf.M,f=wf.C,h=wf.L,d=wf.R,v=wf.A,g=wf.Q;for(o=0,s=0;o1&&(o*=Rw(v),s*=Rw(v));var g=(i===a?-1:1)*Rw((o*o*(s*s)-o*o*(d*d)-s*s*(h*h))/(o*o*(d*d)+s*s*(h*h)))||0,m=g*o*d/s,y=g*-s*h/o,S=(e+r)/2+$m(f)*m-Gm(f)*y,b=(t+n)/2+Gm(f)*m+$m(f)*y,w=xk([1,0],[(h-m)/o,(d-y)/s]),C=[(h-m)/o,(d-y)/s],x=[(-1*h-m)/o,(-1*d-y)/s],A=xk(C,x);if(HT(C,x)<=-1&&(A=Ed),HT(C,x)>=1&&(A=0),A<0){var D=Math.round(A/Ed*1e6)/1e6;A=Ed*2+D%2*Ed}c.addData(u,S,b,o,s,w,A,f,a)}var ule=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,cle=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function fle(e){var t=new Oo;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Oo.CMD,l=e.match(ule);if(!l)return t;for(var u=0;uO*O+N*N&&(D=I,M=P),{cx:D,cy:M,x0:-c,y0:-f,x1:D*(i/C-1),y1:M*(i/C-1)}}function yle(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 _le(e,t){var r,n=vv(t.r,0),i=vv(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,d=Tk(u-l),v=d>Ew&&d%Ew;if(v>ka&&(d=v),!(n>ka))e.moveTo(c,f);else if(d>Ew-ka)e.moveTo(c+n*xf(l),f+n*Mu(l)),e.arc(c,f,n,l,u,!h),i>ka&&(e.moveTo(c+i*xf(u),f+i*Mu(u)),e.arc(c,f,i,u,l,h));else{var g=void 0,m=void 0,y=void 0,S=void 0,b=void 0,w=void 0,C=void 0,x=void 0,A=void 0,D=void 0,M=void 0,I=void 0,P=void 0,E=void 0,F=void 0,O=void 0,N=n*xf(l),V=n*Mu(l),U=i*xf(u),G=i*Mu(u),Z=d>ka;if(Z){var Q=t.cornerRadius;Q&&(r=yle(Q),g=r[0],m=r[1],y=r[2],S=r[3]);var ie=Tk(n-i)/2;if(b=so(ie,y),w=so(ie,S),C=so(ie,g),x=so(ie,m),M=A=vv(b,w),I=D=vv(C,x),(A>ka||D>ka)&&(P=n*xf(u),E=n*Mu(u),F=i*xf(l),O=i*Mu(l),dka){var ve=so(y,M),me=so(S,M),Ce=Hm(F,O,N,V,n,ve,h),Re=Hm(P,E,U,G,n,me,h);e.moveTo(c+Ce.cx+Ce.x0,f+Ce.cy+Ce.y0),M0&&e.arc(c+Ce.cx,f+Ce.cy,ve,Nn(Ce.y0,Ce.x0),Nn(Ce.y1,Ce.x1),!h),e.arc(c,f,n,Nn(Ce.cy+Ce.y1,Ce.cx+Ce.x1),Nn(Re.cy+Re.y1,Re.cx+Re.x1),!h),me>0&&e.arc(c+Re.cx,f+Re.cy,me,Nn(Re.y1,Re.x1),Nn(Re.y0,Re.x0),!h))}else e.moveTo(c+N,f+V),e.arc(c,f,n,l,u,!h);if(!(i>ka)||!Z)e.lineTo(c+U,f+G);else if(I>ka){var ve=so(g,I),me=so(m,I),Ce=Hm(U,G,P,E,i,-me,h),Re=Hm(N,V,F,O,i,-ve,h);e.lineTo(c+Ce.cx+Ce.x0,f+Ce.cy+Ce.y0),I0&&e.arc(c+Ce.cx,f+Ce.cy,me,Nn(Ce.y0,Ce.x0),Nn(Ce.y1,Ce.x1),!h),e.arc(c,f,i,Nn(Ce.cy+Ce.y1,Ce.cx+Ce.x1),Nn(Re.cy+Re.y1,Re.cx+Re.x1),h),ve>0&&e.arc(c+Re.cx,f+Re.cy,ve,Nn(Re.y1,Re.x1),Nn(Re.y0,Re.x0),!h))}else e.lineTo(c+U,f+G),e.arc(c,f,i,u,l,h)}e.closePath()}}}var Sle=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}(),ci=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Sle},t.prototype.buildPath=function(r,n){_le(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(_t);ci.prototype.type="sector";var ble=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),lg=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ble},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}(_t);lg.prototype.type="ring";function wle(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,d=e.length;h=2){if(n){var a=wle(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;sLu[1]){if(s=!1,a)return s;var c=Math.abs(Lu[0]-Iu[1]),f=Math.abs(Iu[0]-Lu[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,h=c.delay,d=c.easing,v={duration:f,delay:h||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Bt(e,t,r,n,i,a){EM("update",e,t,r,n,i,a)}function xr(e,t,r,n,i,a){EM("enter",e,t,r,n,i,a)}function fh(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 Mk(e){return!e.isGroup}function Nle(e){return e.shape!=null}function fg(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){Mk(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Nle(o)&&(s.shape=fe({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Mk(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Bt(o,l,r,Qe(o).dataIndex)}}})}function y4(e,t){return Se(e,function(r){var n=r[0];n=d_(n,t.x),n=v_(n,t.x+t.width);var i=r[1];return i=d_(i,t.y),i=v_(i,t.y+t.height),[n,i]})}function Fle(e,t){var r=d_(e.x,t.x),n=v_(e.x+e.width,t.x+t.width),i=d_(e.y,t.y),a=v_(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 hg(e,t,r){var n=fe({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),Ye(i,r),new bn(n)):W1(e.replace("path://",""),n,r,"center")}function pv(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var m=kw(d,v,c,f)/h;return!(m<0||m>1)}function kw(e,t,r,n){return e*n-r*t}function Vle(e){return e<=1e-6&&e>=-1e-6}function qh(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(xt(l),function(c){Ne(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Qe(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ye({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Ik(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function eu(e,t){if(e)if(ge(e))for(var r=0;r=0&&s.push(l)}),s}}function tu(e,t){return ot(ot({},e,!0),t,!0)}const jle={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:". "}}}},Kle={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 g_="ZH",NM="EN",hh=NM,b0={},FM={},T4=St.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||hh).toUpperCase();return e.indexOf(g_)>-1?g_:hh}():hh;function A4(e,t){e=e.toUpperCase(),FM[e]=new Xt(t),b0[e]=t}function Jle(e){if(Ee(e)){var t=b0[e.toUpperCase()]||{};return e===g_||e===NM?qe(t):ot(qe(t),qe(b0[hh]),!1)}else return ot(qe(e),qe(b0[hh]),!1)}function YT(e){return FM[e]}function Qle(){return FM[hh]}A4(NM,jle);A4(g_,Kle);var VM=1e3,BM=VM*60,Xv=BM*60,ya=Xv*24,kk=ya*365,gv={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}"},Ym="{yyyy}-{MM}-{dd}",Ok={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ym,hour:Ym+" "+gv.hour,minute:Ym+" "+gv.minute,second:Ym+" "+gv.second,millisecond:gv.none},Fw=["year","month","day","hour","minute","second","millisecond"],D4=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ks(e,t){return e+="","0000".substr(0,t-e.length)+e}function dh(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 eue(e){return e===dh(e)}function tue(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function X1(e,t,r,n){var i=ko(e),a=i[zM(r)](),o=i[vh(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Z1(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Dp(r)](),f=(c-1)%12+1,h=i[q1(r)](),d=i[j1(r)](),v=i[K1(r)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=n instanceof Xt?n:YT(n||T4)||Qle(),S=y.getModel("time"),b=S.get("month"),w=S.get("monthAbbr"),C=S.get("dayOfWeek"),x=S.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ks(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,Ks(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ks(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,C[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ks(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ks(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ks(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ks(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Ks(v,3)).replace(/{S}/g,v+"")}function rue(e,t,r,n,i){var a=null;if(Ee(r))a=r;else if(We(r))a=r(e.value,t,{level:e.level});else{var o=fe({},gv);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 X1(new Date(e.value),a,i,n)}function M4(e,t){var r=ko(e),n=r[vh(t)]()+1,i=r[Z1(t)](),a=r[Dp(t)](),o=r[q1(t)](),s=r[j1(t)](),l=r[K1(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&a===0,d=h&&i===1,v=d&&n===1;return v?"year":d?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Nk(e,t,r){var n=Nt(e)?ko(e):e;switch(t=t||M4(e,r),t){case"year":return n[zM(r)]();case"half-year":return n[vh(r)]()>=6?1:0;case"quarter":return Math.floor((n[vh(r)]()+1)/4);case"month":return n[vh(r)]();case"day":return n[Z1(r)]();case"half-day":return n[Dp(r)]()/24;case"hour":return n[Dp(r)]();case"minute":return n[q1(r)]();case"second":return n[j1(r)]();case"millisecond":return n[K1(r)]()}}function zM(e){return e?"getUTCFullYear":"getFullYear"}function vh(e){return e?"getUTCMonth":"getMonth"}function Z1(e){return e?"getUTCDate":"getDate"}function Dp(e){return e?"getUTCHours":"getHours"}function q1(e){return e?"getUTCMinutes":"getMinutes"}function j1(e){return e?"getUTCSeconds":"getSeconds"}function K1(e){return e?"getUTCMilliseconds":"getMilliseconds"}function nue(e){return e?"setUTCFullYear":"setFullYear"}function I4(e){return e?"setUTCMonth":"setMonth"}function L4(e){return e?"setUTCDate":"setDate"}function P4(e){return e?"setUTCHours":"setHours"}function R4(e){return e?"setUTCMinutes":"setMinutes"}function E4(e){return e?"setUTCSeconds":"setSeconds"}function k4(e){return e?"setUTCMilliseconds":"setMilliseconds"}function O4(e){if(!L$(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 N4(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 Jh=dM;function XT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Ba(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?ko(e):e;if(isNaN(+l)){if(s)return"-"}else return X1(l,n,r)}if(t==="ordinal")return fT(e)?i(e):Nt(e)&&a(e)?e+"":"-";var u=Ts(e);return a(u)?O4(u):fT(e)?i(e):typeof e=="boolean"?e+"":"-"}var Fk=["a","b","c","d","e","f","g"],Vw=function(e,t){return"{"+e+(t??"")+"}"};function F4(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 Bc(e,t){return t=t||"transparent",Ee(e)?e:Ze(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function m_(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var w0=R,V4=["left","right","top","bottom","width","height"],uc=[["width","left","right"],["height","top","bottom"]];function GM(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(),d,v;if(e==="horizontal"){var g=c.width+(h?-h.x+c.x:0);d=a+g,d>n||l.newline?(a=0,d=g,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(h?-h.y+c.y:0);v=o+m,v>i||l.newline?(a+=s+r,o=0,v=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=d+r:o=v+r)})}var Dc=GM;rt(GM,"vertical");rt(GM,"horizontal");function oue(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=Jh(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function an(e,t,r){r=Jh(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],d=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(c)&&(c=i-l-f-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),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 v=new st(a+r[3],o+r[0],u,c);return v.margin=r,v}function J1(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 st(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=an(Ye({width:u.width,height:u.height},t),r,n),h=o?f.x-u.x:0,d=s?f.y-u.y:0;return l==="raw"?(a.x=h,a.y=d):(a.x+=h,a.y+=d),a===e&&e.markRedraw(),!0}function sue(e,t){return e[uc[t][0]]!=null||e[uc[t][1]]!=null&&e[uc[t][2]]!=null}function Mp(e){var t=e.layoutMode||e.constructor.layoutMode;return Ze(t)?t:t?{type:t}:null}function Yl(e,t,r){var n=r&&r.ignoreSize;!ge(n)&&(n=[n,n]);var i=o(uc[0],0),a=o(uc[1],1);u(uc[0],e,i),u(uc[1],e,a);function o(c,f){var h={},d=0,v={},g=0,m=2;if(w0(c,function(b){v[b]=e[b]}),w0(c,function(b){s(t,b)&&(h[b]=v[b]=t[b]),l(h,b)&&d++,l(v,b)&&g++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(g===m||!d)return v;if(d>=m)return h;for(var y=0;y=0;l--)s=ot(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return og(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}(Xt);z$(wt,Xt);N1(wt);Zle(wt);qle(wt,uue);function uue(e){var t=[];return R(wt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Se(t,function(r){return bo(r).main}),e!=="dataset"&&pt(t,"dataset")<=0&&t.unshift("dataset"),t}var z4="";typeof navigator<"u"&&(z4=navigator.platform||"");var Cf="rgba(0, 0, 0, 0.2)";const cue={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Cf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Cf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Cf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Cf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Cf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Cf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:z4.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 G4=Ve(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ta="original",Yn="arrayRows",Aa="objectRows",Fo="keyedColumns",kl="typedArray",$4="unknown",Ao="column",ed="row",Mn={Must:1,Might:2,Not:3},H4=Lt();function fue(e){H4(e).datasetMap=Ve()}function W4(e,t,r){var n={},i=HM(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=H4(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),R(e,function(g,m){var y=Ze(g)?g:e[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,f=v(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=v(g);if(c==null){var b=h.valueWayDim;d(n[y],b,S),d(o,b,S),h.valueWayDim+=S}else if(c===m)d(n[y],0,S),d(a,0,S);else{var b=h.categoryWayDim;d(n[y],b,S),d(o,b,S),h.categoryWayDim+=S}});function d(g,m,y){for(var S=0;St)return e[n];return e[r-1]}function X4(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:gue(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 mue(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Xm,kd,Bk,zk="\0_ec_inner",yue=1,UM=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 Xt(a),this._locale=new Xt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=Hk(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Hk(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"?Bk(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=Ve(),u=n&&n.replaceMergeMainTypeMap;fue(this),R(r,function(f,h){f!=null&&(wt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?qe(f):ot(i[h],f,!0))}),u&&u.each(function(f,h){wt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),wt.topologicalTravel(s,wt.getAllClassMainTypes(),c,this);function c(f){var h=vue(this,f,nr(r[f])),d=a.get(f),v=d?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=O$(d,h,v);Hoe(g,f,wt),i[f]=null,a.set(f,null),o.set(f,0);var m=[],y=[],S=0,b;R(g,function(w,C){var x=w.existing,A=w.newOption;if(!A)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var D=f==="series",M=wt.getClass(f,w.keyInfo.subType,!D);if(!M)return;if(f==="tooltip"){if(b)return;b=!0}if(x&&x.constructor===M)x.name=w.keyInfo.name,x.mergeOption(A,this),x.optionUpdated(A,!1);else{var I=fe({componentIndex:C},w.keyInfo);x=new M(A,this,this,I),fe(x,I),w.brandNew&&(x.__requireNewView=!0),x.init(A,this,this),x.optionUpdated(null,!0)}}x?(m.push(x.option),y.push(x),S++):(m.push(void 0),y.push(void 0))},this),i[f]=m,a.set(f,y),o.set(f,S),f==="series"&&Xm(this)}this._seriesIndices||Xm(this)},t.prototype.getOption=function(){var r=qe(this.option);return R(r,function(n,i){if(wt.hasClass(i)){for(var a=nr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!xp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[zk],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 Due(e,t){return e.join(",")===t.join(",")}var Pa=R,Ip=Ze,Wk=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function zw(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Wk.length;r=0;m--){var y=e[m];if(s||(v=y.data.rawIndexOf(y.stackedByDimension,d)),v>=0){var S=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&S>0||l==="negative"&&S<0||l==="samesign"&&h>=0&&S>0||l==="samesign"&&h<=0&&S<0){h=Roe(h,S),g=S;break}}}return n[0]=h,n[1]=g,n})})}var Q1=function(){function e(t){this.data=t.data||(t.sourceFormat===Fo?{}:[]),this.sourceFormat=t.sourceFormat||$4,this.seriesLayoutBy=t.seriesLayoutBy||Ao,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=b)}d[0]=v,d[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};Kk=(t={},t[Yn+"_"+Ao]={pure:!0,appendData:a},t[Yn+"_"+ed]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Aa]={pure:!0,appendData:a},t[Fo]={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[Ta]={appendData:a},t[kl]={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 Ch(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function tO(e){var t,r;return Ze(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Zv(e){return new Wue(e)}var Wue=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 d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||d1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},Yue=function(){function e(t,r){if(!Nt(r)){var n="";Wt(n)}this._opFn=iH[t],this._rvalFloat=Ts(r)}return e.prototype.evaluate=function(t){return Nt(t)?this._opFn(t,this._rvalFloat):this._opFn(Ts(t),this._rvalFloat)},e}(),aH=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=Nt(t)?t:Ts(t),i=Nt(r)?r:Ts(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}(),Xue=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Ts(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=Ts(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function Zue(e,t){return e==="eq"||e==="ne"?new Xue(e==="eq",t):Ne(iH,e)?new Yue(e,t):null}var que=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ol(t,r)},e}();function jue(e,t){var r=new que,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Ao&&Wt(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 b="";Ne(l,y)&&Wt(b),l[y]=S}});else for(var c=0;c65535?ice:ace}function Tf(){return[1/0,-1/0]}function oce(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function iO(e,t,r,n,i){var a=lH[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=v,l=d,u=0),d===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++}v=!0}else if(a===2){for(var m=d[i[0]],b=d[i[1]],w=t[i[1]][0],C=t[i[1]][1],y=0;y=f&&S<=h||isNaN(S))&&(x>=w&&x<=C||isNaN(x))&&(l[u++]=g),g++}v=!0}}if(!v)if(a===1)for(var y=0;y=f&&S<=h||isNaN(S))&&(l[u++]=A)}else for(var y=0;yt[I][1])&&(D=!1)}D&&(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,d=new(Nd(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var v=1;vc&&(c=f,h=w)}P>0&&Pc-v&&(l=c-v,s.length=l);for(var g=0;gf[1]&&(f[1]=y),h[d++]=S}return a._count=d,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 Ol(r[a],this._dimensions[a])}Hw={arrayRows:t,objectRows:function(r,n,i,a){return Ol(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ol(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),uH=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(Zm(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=Mi(s)?kl:Ta,a=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=tt(f.seriesLayoutBy,h.seriesLayoutBy)||null,v=tt(f.sourceHeader,h.sourceHeader),g=tt(f.dimensions,h.dimensions),m=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||g;i=m?[jT(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:g},l)]:[]}else{var y=t;if(n){var S=this._applyTransform(r);i=S.sourceList,a=S.upstreamSignList}else{var b=y.get("source",!0);i=[jT(b,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&&oO(a)}var o,s=[],l=[];return R(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&oO(f),s.push(c),l.push(u._getVersionSign())}),n?o=rce(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Fue(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=dH(i);a>=t&&(t=a+ +(n&&(!a||JT(i)&&!i.noHeader)))}),t}return 0}function uce(e,t,r,n){var i=t.noHeader,a=fce(dH(t)),o=[],s=t.blocks||[];li(!s||ge(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ne(u,l)){var c=new aH(u[l],null);s.sort(function(v,g){return c.evaluate(v.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(v,g){var m=t.valueFormatter,y=hH(v)(m?fe(fe({},e),{valueFormatter:m}):e,v,g>0?a.html:0,n);y!=null&&o.push(y)});var f=e.renderMode==="richText"?o.join(a.richText):QT(o.join(""),i?r:a.html);if(i)return f;var h=XT(t.header,"ordinal",e.useUTC),d=fH(n,e.renderMode).nameStyle;return e.renderMode==="richText"?vH(e,h,d)+a.richText+f:QT('
'+xi(h)+"
"+f,r)}function cce(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(w){return w=ge(w)?w:[w],Se(w,function(C,x){return XT(C,ge(d)?d[x]:d,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":XT(l,"ordinal",u),d=t.valueType,v=o?[]:c(t.value,t.dataIndex),g=!s||!a,m=!s&&a,y=fH(n,i),S=y.nameStyle,b=y.valueStyle;return i==="richText"?(s?"":f)+(a?"":vH(e,h,S))+(o?"":vce(e,v,g,m,b)):QT((s?"":f)+(a?"":hce(h,!s,S))+(o?"":dce(v,g,m,b)),r)}}function sO(e,t,r,n,i,a){if(e){var o=hH(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function fce(e){return{html:sce[e],richText:lce[e]}}function QT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function hce(e,t,r){var n=t?"margin-left:2px":"";return''+xi(e)+""}function dce(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 xi(o)}).join("  ")+""}function vH(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function vce(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 pH(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Bc(n)}function gH(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Ww=function(){function e(){this.richTextStyles={},this._nextStyleNameId=P$()}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=aue({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 fe(n,a)}):fe(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function mH(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=pH(t,r),c,f,h,d;if(o>1||l&&!o){var v=pce(s,t,r,a,u);c=v.inlineValues,f=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);d=c=Ch(i,r,a[0]),f=g.type}else d=c=l?s[0]:s;var m=bM(t),y=m&&t.name||"",S=i.getName(r),b=n?y:S;return pn("section",{header:y,noHeader:n||!m,sortParam:d,blocks:[pn("nameValue",{markerType:"item",markerColor:u,name:b,noName:!Ba(b),value:c,valueType:f,dataIndex:r})].concat(h||[])})}function pce(e,t,r,n,i){var a=t.getData(),o=Po(e,function(f,h,d){var v=a.getDimensionInfo(d);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(f){c(Ch(a,r,f),f)}):R(e,c);function c(f,h){var d=a.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(o?u.push(pn("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:f,valueType:d.type})):(s.push(f),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Js=Lt();function qm(e,t){return e.getName(t)||e.getId(t)}var x0="__universalTransitionEnabled",_r=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:mce,reset:yce}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Js(this).sourceManager=new uH(this);a.prepareSource();var o=this.getInitialData(r,i);uO(o,this),this.dataTask.context.data=o,Js(this).dataBeforeProcessed=o,lO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Mp(this),a=i?Qh(r):{},o=this.subType;wt.hasClass(o)&&(o+="Series"),ot(r,n.getTheme().get(this.subType)),ot(r,this.getDefaultOption()),Oc(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Yl(r,a,i)},t.prototype.mergeOption=function(r,n){r=ot(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Mp(this);i&&Yl(this.option,r,i);var a=Js(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);uO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Js(this).dataBeforeProcessed=o,lO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Mi(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=WM.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[qm(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[x0])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"){Ze(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return wt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(wt);Qr(_r,eS);Qr(_r,WM);z$(_r,wt);function lO(e){var t=e.name;bM(e)||(e.name=gce(e)||t)}function gce(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 mce(e){return e.model.getRawData().count()}function yce(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_ce}function _ce(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function uO(e,t){R(t_(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,rt(Sce,t))})}function Sce(e,t){var r=eA(e);return r&&r.setOutputEnd((t||this).count()),t}function eA(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 Ke,this.uid=Kh("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}();xM(Mr);N1(Mr);function td(){var e=Lt();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 yH=Lt(),bce=td(),lr=function(){function e(){this.group=new Ke,this.uid=Kh("viewChart"),this.renderTask=Zv({plan:wce,reset:xce}),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&&fO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&fO(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){eu(this.group,t)},e.markUpdateMethod=function(t,r){yH(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function cO(e,t,r){e&&Tp(e)&&(t==="emphasis"?As:Ds)(e,r)}function fO(e,t,r){var n=Nc(e,t),i=t&&t.highlightKey!=null?ale(t.highlightKey):null;n!=null?R(nr(n),function(a){cO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){cO(a,r,i)})}xM(lr);N1(lr);function wce(e){return bce(e.model)}function xce(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&yH(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),Cce[l]}var Cce={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)}}},y_="\0__throttleOriginMethod",hO="\0__throttleRate",dO="\0__throttleType";function jM(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 d=[],v=0;v=0?f():o=setTimeout(f,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(d){c=d},h}function rd(e,t,r,n){var i=e[t];if(i){var a=i[y_]||i,o=i[dO],s=i[hO];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=jM(a,r,n==="debounce"),i[y_]=a,i[dO]=n,i[hO]=r}return i}}function Lp(e,t){var r=e[t];r&&r[y_]&&(r.clear&&r.clear(),e[t]=r[y_])}var vO=Lt(),pO={itemStyle:Fc(C4,!0),lineStyle:Fc(x4,!0)},Tce={lineStyle:"stroke",itemStyle:"fill"};function _H(e,t){var r=e.visualStyleMapper||pO[t];return r||(console.warn("Unknown style type '"+t+"'."),pO.itemStyle)}function SH(e,t){var r=e.visualDrawType||Tce[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Ace={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=_H(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=SH(e,n),u=o[l],c=We(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"||We(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||We(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(d,v){var g=e.getDataParams(v),m=fe({},o);m[l]=c(g),d.setItemVisual(v,"style",m)}}}},Fd=new Xt,Dce={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=_H(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Fd.option=l[n];var u=i(Fd),c=o.ensureUniqueItemVisual(s,"style");fe(c,u),Fd.option.decal&&(o.setItemVisual(s,"decal",Fd.option.decal),Fd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Mce={performRawSeries:!0,overallReset:function(e){var t=Ve();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)),vO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=vO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=SH(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"),d=n.getName(u)||u+"",v=n.count();h[l]=r.getColorFromPalette(d,o,v)}})}})}},jm=Math.PI;function Ice(e,t){t=t||{},Ye(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 Ke,n=new It({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new kt({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 It({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 H1({shape:{startAngle:-jm/2,endAngle:-jm/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:jm*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:jm*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 bH=function(){function e(t,r,n,i){this._stageTaskMap=Ve(),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=Ve();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="";li(!(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 d,v=h.agentStubMap;v.each(function(m){s(i,m)&&(m.dirty(),d=!0)}),d&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,i.block);v.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=Ve(),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,d=s.set(h,o&&o.get(h)||Zv({plan:kce,reset:Oce,count:Fce}));d.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,d)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Zv({reset:Lce});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Ve(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,d="";li(!t.createOnAllSeries,d),u?n.eachRawSeriesByType(u,v):c?c(n,i).each(v):(f=!1,R(n.getSeries(),v));function v(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(h=!0,Zv({reset:Pce,onDirty:Ece})));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 We(t)&&(t={overallReset:t,seriesType:Vce(t)}),t.uid=Kh("stageHandler"),r&&(t.visualType=r),t},e}();function Lce(e){e.overallReset(e.ecModel,e.api,e.payload)}function Pce(e){return e.overallProgress&&Rce}function Rce(){this.agent.dirty(),this.getDownstream().dirty()}function Ece(){this.agent&&this.agent.dirty()}function kce(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Oce(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=nr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Se(t,function(r,n){return wH(n)}):Nce}var Nce=wH(0);function wH(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&d===u.length-h.length){var v=u.slice(0,d);v!=="data"&&(r.mainType=v,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,d,v){return f[d]==null||h[v||d]===f[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),tA=["symbol","symbolSize","symbolRotate","symbolOffset"],_O=tA.concat(["symbolKeepAspect"]),Gce={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&&fc(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function rA(e,t,r){for(var n=t.type==="radial"?rfe(e,t,r):tfe(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Nt(e)?[e]:ge(e)?e:null}function JM(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&ife(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 afe=new Oo(!0);function b_(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function SO(e){return typeof e=="string"&&e!=="none"}function w_(e){var t=e.fill;return t!=null&&t!=="none"}function bO(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 wO(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 nA(e,t,r){var n=CM(t.image,t.__image,r);if(F1(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)*c0),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function ofe(e,t,r,n){var i,a=b_(r),o=w_(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||afe,f=t.__dirty;if(!n){var h=r.fill,d=r.stroke,v=o&&!!h.colorStops,g=a&&!!d.colorStops,m=o&&!!h.image,y=a&&!!d.image,S=void 0,b=void 0,w=void 0,C=void 0,x=void 0;(v||g)&&(x=t.getBoundingRect()),v&&(S=f?rA(e,h,x):t.__canvasFillGradient,t.__canvasFillGradient=S),g&&(b=f?rA(e,d,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(w=f||!t.__canvasFillPattern?nA(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=w),y&&(C=f||!t.__canvasStrokePattern?nA(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=S:m&&(w?e.fillStyle=w:o=!1),g?e.strokeStyle=b:y&&(C?e.strokeStyle=C:a=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var D,M;e.setLineDash&&r.lineDash&&(i=JM(t),D=i[0],M=i[1]);var I=!0;(u||f&Gf)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),I=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),I&&c.rebuildPath(e,l?s:1),D&&(e.setLineDash(D),e.lineDashOffset=M),n||(r.strokeFirst?(a&&wO(e,r),o&&bO(e,r)):(o&&bO(e,r),a&&wO(e,r))),D&&e.setLineDash([])}function sfe(e,t,r){var n=t.__image=CM(r.image,t.__image,t,t.onload);if(!(!n||!F1(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 lfe(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||$l,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=JM(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(b_(r)&&e.strokeText(i,r.x,r.y),w_(r)&&e.fillText(i,r.x,r.y)):(w_(r)&&e.fillText(i,r.x,r.y),b_(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var xO=["shadowBlur","shadowOffsetX","shadowOffsetY"],CO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function MH(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Ai(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?xc.opacity:o}(n||t.blend!==r.blend)&&(a||(Ai(e,i),a=!0),e.globalCompositeOperation=t.blend||xc.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[Fn]){if(this._disposed){this.id;return}var a,o,s;if(Ze(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Fn]=!0,!this._model||n){var l=new xue(this._api),u=this._theme,c=this._model=new UM;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},aA);var f={seriesTransition:s,optionChanged:!0};if(i)this[Si]={silent:a,updateParams:f},this[Fn]=!1,this.getZr().wakeUp();else{try{Df(this),Qs.update.call(this,null,f)}catch(h){throw this[Si]=null,this[Fn]=!1,h}this._ssr||this._zr.flush(),this[Si]=null,this[Fn]=!1,Vd.call(this,a),Bd.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||St.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(St.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(BO[i]){var l=s,u=s,c=-s,f=-s,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();R(jv,function(b,w){if(b.group===i){var C=n?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(qe(r)),x=b.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:C,left:x.left,top:x.top})}}),l*=d,u*=d,c*=d,f*=d;var v=c-l,g=f-u,m=Hl.createCanvas(),y=WE(m,{renderer:n?"svg":"canvas"});if(y.resize({width:v,height:g}),n){var S="";return R(h,function(b){var w=b.left-l,C=b.top-u;S+=''+b.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 It({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),R(h,function(b){var w=new bn({style:{x:b.left*d-l,y:b.top*d-u,image:b.dom}});y.add(w)}),y.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return qw(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return qw(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?KM(s,l,n):vg(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(Efe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&cc(s,function(v){var g=Qe(v);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=fe({},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),d=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:d},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)}),Hce(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&&F$(this.getDom(),tI,"");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[Fn]){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[Si]&&(a==null&&(a=this[Si].silent),i=!0,this[Si]=null),this[Fn]=!0;try{i&&Df(this),Qs.update.call(this,{type:"resize",animation:fe({duration:0},r&&r.animation)})}catch(o){throw this[Fn]=!1,o}this[Fn]=!1,Vd.call(this,a),Bd.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Ze(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!oA[r]){var i=oA[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=fe({},r);return n.type=qv[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Ze(n)||(n={silent:!!n}),!!x_[r.type]&&this._model){if(this[Fn]){this._pendingActions.push(r);return}var i=n.silent;Kw.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&St.browser.weChat&&this._throttledZrFlush(),Vd.call(this,i),Bd.call(this,i)}},t.prototype.updateLabelLayout=function(){Na.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(){Df=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),Zw(f,!0),Zw(f,!1),h.plan()},Zw=function(f,h){for(var d=f._model,v=f._scheduler,g=h?f._componentsViews:f._chartsViews,m=h?f._componentsMap:f._chartsMap,y=f._zr,S=f._api,b=0;bh.get("hoverLayerThreshold")&&!St.node&&!St.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 d=f.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function s(f,h){if(!f.preventAutoZ){var d=f.get("z")||0,v=f.get("zlevel")||0;h.eachRendered(function(g){return l(g,d,v,-1/0),!0})}}function l(f,h,d,v){var g=f.getTextContent(),m=f.getTextGuideLine(),y=f.isGroup;if(y)for(var S=f.childrenRef(),b=0;b0?{duration:g,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(fh(y))return;if(y instanceof _t&&ole(y),y.__dirty){var S=y.prevStates;S&&y.useStates(S)}if(v){y.stateTransition=m;var b=y.getTextContent(),w=y.getTextGuideLine();b&&(b.stateTransition=m),w&&(w.stateTransition=m)}y.__dirty&&i(y)}})}FO=function(f){return new(function(h){j(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);v=v.parent}},d.prototype.enterEmphasis=function(v,g){As(v,g),ia(f)},d.prototype.leaveEmphasis=function(v,g){Ds(v,g),ia(f)},d.prototype.enterBlur=function(v){e4(v),ia(f)},d.prototype.leaveBlur=function(v){IM(v),ia(f)},d.prototype.enterSelect=function(v){t4(v),ia(f)},d.prototype.leaveSelect=function(v){r4(v),ia(f)},d.prototype.getModel=function(){return f.getModel()},d.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},d}(Z4))(f)},HH=function(f){function h(d,v){for(var g=0;g=0)){zO.push(r);var a=bH.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function qH(e,t){oA[e]=t}function Gfe(e,t,r){var n=yfe("registerMap");n&&n(e,t,r)}var $fe=tce;jc(QM,Ace);jc(rS,Dce);jc(rS,Mce);jc(QM,Gce);jc(rS,$ce);jc(FH,gfe);XH(j4);ZH(bfe,Oue);qH("default",Ice);Vo({type:Cc,event:Cc,update:Cc},Ur);Vo({type:y0,event:y0,update:y0},Ur);Vo({type:Wv,event:Wv,update:Wv},Ur);Vo({type:_0,event:_0,update:_0},Ur);Vo({type:Uv,event:Uv,update:Uv},Ur);YH("light",Bce);YH("dark",TH);var GO=[],Hfe={registerPreprocessor:XH,registerProcessor:ZH,registerPostInit:Ffe,registerPostUpdate:Vfe,registerUpdateLifecycle:rI,registerAction:Vo,registerCoordinateSystem:Bfe,registerLayout:zfe,registerVisual:jc,registerTransform:$fe,registerLoading:qH,registerMap:Gfe,registerImpl:mfe,PRIORITY:Lfe,ComponentModel:wt,ComponentView:Mr,SeriesModel:_r,ChartView:lr,registerComponentModel:function(e){wt.registerClass(e)},registerComponentView:function(e){Mr.registerClass(e)},registerSeriesModel:function(e){_r.registerClass(e)},registerChartView:function(e){lr.registerClass(e)},registerSubTypeDefaulter:function(e,t){wt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Aoe(e,t)}};function gt(e){if(ge(e)){R(e,function(t){gt(t)});return}pt(GO,e)>=0||(GO.push(e),We(e)&&(e={install:e}),e.install(Hfe))}function zd(e){return e==null?0:e.length||1}function $O(e){return e}var Ms=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||$O,this._newKeyGetter=i||$O,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 d=0;d1)for(var s=0;s30}var Gd=Ze,el=Se,qfe=typeof Int32Array>"u"?Array:Int32Array,jfe="e\0\0",HO=-1,Kfe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Jfe=["_approximateExtent"],WO,ty,$d,Hd,ex,ry,tx,oi=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;KH(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===Ta;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():Gd(a)&&(a=fe({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Gd(r)?fe(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Gd(t)?fe(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?fe(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;VT(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:el(this.dimensions,this._getDimInfo,this),this.hostModel)),ex(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];We(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(hM(arguments)))})},e.internalField=function(){WO=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 qfe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();function pg(e,t){YM(e)||(e=XM(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Ve(),a=[],o=ehe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&eW(o),l=n===e.dimensionsDefine,u=l?QH(e):JH(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=Ve(c),h=new sH(o),d=0;d0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function ehe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return R(t,function(a){var o;Ze(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function the(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 rhe=function(){function e(t){this.coordSysDims=[],this.axisMap=Ve(),this.categoryAxisMap=Ve(),this.coordSysName=t}return e}();function nhe(e){var t=e.get("coordinateSystem"),r=new rhe(t),n=ihe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var ihe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",jr).models[0],a=e.getReferringComponents("yAxis",jr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Mf(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Mf(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",jr).models[0];t.coordSysDims=["single"],r.set("single",i),Mf(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",jr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Mf(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Mf(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),Mf(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Mf(e){return e.get("type")==="category"}function ahe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;ohe(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,b){Ee(S)&&(a[b]=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 d=c.coordDim,v=c.type,g=0;R(a,function(S){S.coordDim===d&&g++});var m={name:f,coordDim:d,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,v),y.storeDimIndex=s.ensureCalculationDimension(f,v)),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 ohe(e){return!KH(e.schema)}function Xl(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function tW(e,t){return Xl(e,t)?e.getCalculationInfo("stackResultDimension"):t}function she(e,t){var r=e.get("coordinateSystem"),n=dg.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=T_(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function lhe(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 Ns(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=XM(e)):(i=n.getSource(),a=i.sourceFormat===Ta);var o=nhe(t),s=she(t,o),l=r.useEncodeDefaulter,u=We(l)?l:l?rt(W4,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=pg(i,c),h=lhe(f.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(f),v=ahe(t,{schema:f,store:d}),g=new oi(f,t);g.setCalculationInfo(v);var m=h!=null&&uhe(i)?function(y,S,b,w){return w===h?b:this.defaultDimValueGetter(y,S,b,w)}:null;return g.hasItemOption=!1,g.initData(a?i:d,null,m),g}function uhe(e){if(e.sourceFormat===Ta){var t=che(e.data||[]);return!ge(Yh(t))}}function che(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}();N1(Bo);var fhe=0,sA=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++fhe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Se(n,hhe);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=Ve(this.categories))},e}();function hhe(e){return Ze(e)&&e.value!=null?e.value:e+""}function lA(e){return e.type==="interval"||e.type==="log"}function dhe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=I$(a/t);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=rW(o),l=i.niceTickExtent=[Br(Math.ceil(e[0]/o)*o,s),Br(Math.floor(e[1]/o)*o,s)];return vhe(l,e),i}function rx(e){var t=Math.pow(10,SM(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Br(r*t)}function rW(e){return So(e)+2}function UO(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function vhe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),UO(e,0,t),UO(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function nS(e,t){return e>=t[0]&&e<=t[1]}function iS(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function aS(e,t){return e*(t[1]-t[0])+t[0]}var oS=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 sA({})),ge(i)&&(i=new sA({categories:Se(i,function(a){return Ze(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),nS(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),iS(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(aS(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}(Bo);Bo.registerClass(oS);var ku=Br,Is=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 nS(r,this._extent)},t.prototype.normalize=function(r){return iS(r,this._extent)},t.prototype.scale=function(r){return aS(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=rW(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:ku(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]&&d0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function aW(e){var t=mhe(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 d=n.getData();s=Math.abs(o[1]-o[0])/d.count()}var v=Ie(n.get("barWidth"),s),g=Ie(n.get("barMaxWidth"),s),m=Ie(n.get("barMinWidth")||(cW(n)?.5:1),s),y=n.get("barGap"),S=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:S,axisKey:aI(a),stackId:iI(n)})}),oW(r)}function oW(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 d=n.barGap;d!=null&&(s.gap=d);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});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=xt(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,d=(f-u)/(h+(h-1)*c);d=Math.max(d,0),R(a,function(y){var S=y.maxWidth,b=y.minWidth;if(y.width){var w=y.width;S&&(w=Math.min(w,S)),b&&(w=Math.max(w,b)),y.width=w,f-=w+c*w,h--}else{var w=d;S&&Sw&&(w=b),w!==d&&(y.width=w,f-=w+c*w,h--)}}),d=(f-u)/(h+(h-1)*c),d=Math.max(d,0);var v=0,g;R(a,function(y,S){y.width||(y.width=d),g=y,v+=y.width*(1+c)}),g&&(v-=g.width*c);var m=-v/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 yhe(e,t,r){if(e&&t){var n=e[aI(t)];return n!=null&&r!=null?n[iI(r)]:n}}function sW(e,t){var r=iW(e,t),n=aW(r);R(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=iI(i),u=n[aI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function lW(e){return{seriesType:e,plan:td(),reset:function(t){if(uW(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=Xl(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),d=_he(i,a),v=cW(t),g=t.get("barMinHeight")||0,m=c&&r.getDimensionIndex(c),y=r.getLayout("size"),S=r.getLayout("offset");return{progress:function(b,w){for(var C=b.count,x=v&&wo(C*3),A=v&&l&&wo(C*3),D=v&&wo(C),M=n.master.getRect(),I=h?M.width:M.height,P,E=w.getStore(),F=0;(P=b.next())!=null;){var O=E.get(f?m:o,P),N=E.get(s,P),V=d,U=void 0;f&&(U=+O-E.get(o,P));var G=void 0,Z=void 0,Q=void 0,ie=void 0;if(h){var pe=n.dataToPoint([O,N]);if(f){var De=n.dataToPoint([U,N]);V=De[0]}G=V,Z=pe[1]+S,Q=pe[0]-V,ie=y,Math.abs(Q)0?r:1:r))}var She=function(e,t,r,n){for(;r>>1;e[i][1]i&&(this._approxInterval=i);var s=ny.length,l=Math.min(She(ny,this._approxInterval,0,s),s-1);this._interval=ny[l][1],this._minLevelUnit=ny[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Nt(r)?r:+ko(r)},t.prototype.contain=function(r){return nS(this.parse(r),this._extent)},t.prototype.normalize=function(r){return iS(this.parse(r),this._extent)},t.prototype.scale=function(r){return aS(r,this._extent)},t.type="time",t}(Is),ny=[["second",VM],["minute",BM],["hour",Xv],["quarter-day",Xv*6],["half-day",Xv*12],["day",ya*1.2],["half-week",ya*3.5],["week",ya*7],["month",ya*31],["quarter",ya*95],["half-year",kk/2],["year",kk]];function bhe(e,t,r,n){var i=ko(t),a=ko(r),o=function(v){return Nk(i,v,n)===Nk(a,v,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")},d=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 d()}}function whe(e,t){return e/=ya,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function xhe(e){var t=30*ya;return e/=t,e>6?6:e>3?3:e>2?2:1}function Che(e){return e/=Xv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function YO(e,t){return e/=t?BM:VM,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function The(e){return I$(e)}function Ahe(e,t,r){var n=new Date(e);switch(dh(t)){case"year":case"month":n[I4(r)](0);case"day":n[L4(r)](1);case"hour":n[P4(r)](0);case"minute":n[R4(r)](0);case"second":n[E4(r)](0),n[k4(r)](0)}return n.getTime()}function Dhe(e,t,r,n){var i=1e4,a=D4,o=0;function s(I,P,E,F,O,N,V){for(var U=new Date(P),G=P,Z=U[F]();G1&&N===0&&E.unshift({value:E[0].value-G})}}for(var N=0;N=n[0]&&S<=n[1]&&f++)}var b=(n[1]-n[0])/t;if(f>b*1.5&&h>b/1.5||(u.push(m),f>b||e===a[d]))break}c=[]}}}for(var w=Qt(Se(u,function(I){return Qt(I,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],x=w.length-1,d=0;d0;)a*=10;var s=[Br(Lhe(n[0]/a)*a),Br(Ihe(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=Ra(r)/Ra(this.base),nS(r,this._extent)},t.prototype.normalize=function(r){return r=Ra(r)/Ra(this.base),iS(r,this._extent)},t.prototype.scale=function(r){return r=aS(r,this._extent),iy(this.base,r)},t.type="log",t}(Bo),fW=sI.prototype;fW.getMinorTicks=Kv.getMinorTicks;fW.getLabel=Kv.getLabel;function ay(e,t){return Mhe(e,So(t))}Bo.registerClass(sI);var Phe=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,d=this._determinedMax;return h!=null&&(s=h,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[Ehe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Rhe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Rhe={min:"_determinedMin",max:"_determinedMax"},Ehe={min:"_dataMin",max:"_dataMax"};function hW(e,t,r){var n=e.rawExtentInfo;return n||(n=new Phe(e,t,r),e.rawExtentInfo=n,n)}function oy(e,t){return t==null?null:yp(t)?NaN:e.parse(t)}function dW(e,t){var r=e.type,n=hW(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=iW("bar",o),l=!1;if(R(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=aW(s),c=khe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function khe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=yhe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;R(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;R(o,function(d){l=Math.max(d.offset+d.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 Ah(e,t){var r=t,n=dW(e,r),i=n.extent,a=r.get("splitNumber");e instanceof sI&&(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 sS(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new oS({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new oI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Bo.getClass(t)||Is)}}function Ohe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function id(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):We(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(lI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function lI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Nhe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof oS?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=id(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var gg=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),Bhe=1e-8;function ZO(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return Ghe(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"?qO(s.exterior,i,a,r):R(s.points,function(l){qO(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 st(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 Whe(e,t){return e=Hhe(e),Se(Qt(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 jO(o[0],o.slice(1)));break;case"MultiPolygon":R(i.coordinates,function(l){l[0]&&a.push(new jO(l[0],l.slice(1)))});break;case"LineString":a.push(new KO([i.coordinates]));break;case"MultiLineString":a.push(new KO(i.coordinates))}var s=new gW(n[t||"name"],a,n.cp);return s.properties=n,s})}var Ep=Lt();function yW(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 Uhe(e){var t=e.getLabelModel().get("customValues");if(t){var r=id(e);return{labels:yW(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?Xhe(e):qhe(e)}function Yhe(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:yW(e,r)}:e.type==="category"?Zhe(e,t):{ticks:Se(e.scale.getTicks(),function(n){return n.value})}}function Xhe(e){var t=e.getLabelModel(),r=_W(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function _W(e,t){var r=SW(e,"labels"),n=uI(t),i=bW(r,n);if(i)return i;var a,o;return We(n)?a=CW(e,n):(o=n==="auto"?jhe(e):n,a=xW(e,o)),wW(r,n,{labels:a,labelCategoryInterval:o})}function Zhe(e,t){var r=SW(e,"ticks"),n=uI(t),i=bW(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),We(n))a=CW(e,n,!0);else if(n==="auto"){var s=_W(e,e.getLabelModel());o=s.labelCategoryInterval,a=Se(s.labels,function(l){return l.tickValue})}else o=n,a=xW(e,o,!0);return wW(r,n,{ticks:a,tickCategoryInterval:o})}function qhe(e){var t=e.scale.getTicks(),r=id(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 SW(e,t){return Ep(e)[t]||(Ep(e)[t]=[])}function bW(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,d=0;l<=a[1];l+=s){var v=0,g=0,m=ag(r({value:l}),t.font,"center","top");v=m.width*1.3,g=m.height*1.3,h=Math.max(h,v,7),d=Math.max(d,g,7)}var y=h/c,S=d/f;isNaN(y)&&(y=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(y,S))),w=Ep(e.model),C=e.getExtent(),x=w.lastAutoInterval,A=w.lastTickCount;return x!=null&&A!=null&&Math.abs(x-b)<=1&&Math.abs(A-o)<=1&&x>b&&w.axisExtent0===C[0]&&w.axisExtent1===C[1]?b=x:(w.lastTickCount=o,w.lastAutoInterval=b,w.axisExtent0=C[0],w.axisExtent1=C[1]),b}function Jhe(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 xW(e,t,r){var n=id(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=vW(e),h=o.get("showMinLabel")||f,d=o.get("showMaxLabel")||f;h&&u!==a[0]&&g(a[0]);for(var v=u;v<=a[1];v+=l)g(v);d&&v-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 CW(e,t,r){var n=e.scale,i=id(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 JO=[0,1],Ja=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 D$(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(),QO(n,i.count())),jt(t,JO,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),QO(n,i.count()));var a=jt(t,n,JO,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=Yhe(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 Qhe(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 Uhe(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 Khe(this)},e}();function QO(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function Qhe(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(d){d.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(d,v){return d=Br(d),v=Br(v),f?d>v:di&&(i+=Wd);var d=Math.atan2(s,o);if(d<0&&(d+=Wd),d>=n&&d<=i||d+Wd>=n&&d+Wd<=i)return l[0]=c,l[1]=f,u-r;var v=r*Math.cos(n)+e,g=r*Math.sin(n)+t,m=r*Math.cos(i)+e,y=r*Math.sin(i)+t,S=(v-o)*(v-o)+(g-s)*(g-s),b=(m-o)*(m-o)+(y-s)*(y-s);return S0){t=t/180*Math.PI,za.fromArray(e[0]),mr.fromArray(e[1]),Hr.fromArray(e[2]),nt.sub(xo,za,mr),nt.sub(mo,Hr,mr);var r=xo.len(),n=mo.len();if(!(r<.001||n<.001)){xo.scale(1/r),mo.scale(1/n);var i=xo.dot(mo),a=Math.cos(t);if(a1&&nt.copy(ii,Hr),ii.toArray(e[1])}}}}function ade(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,za.fromArray(e[0]),mr.fromArray(e[1]),Hr.fromArray(e[2]),nt.sub(xo,mr,za),nt.sub(mo,Hr,mr);var n=xo.len(),i=mo.len();if(!(n<.001||i<.001)){xo.scale(1/n),mo.scale(1/i);var a=xo.dot(t),o=Math.cos(r);if(a=l)nt.copy(ii,Hr);else{ii.scaleAndAdd(mo,s/Math.tan(Math.PI/2-c));var f=Hr.x!==mr.x?(ii.x-mr.x)/(Hr.x-mr.x):(ii.y-mr.y)/(Hr.y-mr.y);if(isNaN(f))return;f<0?nt.copy(ii,mr):f>1&&nt.copy(ii,Hr)}ii.toArray(e[1])}}}}function ax(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 ode(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=Sl(n[0],n[1]),a=Sl(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=h0([],n[1],n[0],o/i),l=h0([],n[1],n[2],o/a),u=h0([],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&&C(-c/o,0,o);var g=e[0],m=e[o-1],y,S;b(),y<0&&x(-y,.8),S<0&&x(S,.8),b(),w(y,S,1),w(S,y,-1),b(),y<0&&A(-y),S<0&&A(S);function b(){y=g.rect[t]-n,S=i-m.rect[t]-m.rect[r]}function w(D,M,I){if(D<0){var P=Math.min(M,-D);if(P>0){C(P*I,0,o);var E=P+D;E<0&&x(-E*I,1)}else x(-D*I,1)}}function C(D,M,I){D!==0&&(u=!0);for(var P=M;P0)for(var E=0;E0;E--){var V=I[E-1]*N;C(-V,E,o)}}}function A(D){var M=D<0?-1:1;D=Math.abs(D);for(var I=Math.ceil(D/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),D-=I,D<=0)return}return u}function sde(e,t,r,n){return MW(e,"x","width",t,r,n)}function IW(e,t,r,n){return MW(e,"y","height",t,r,n)}function LW(e){var t=[];e.sort(function(g,m){return m.priority-g.priority});var r=new st(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),pt(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Bt(n,u,r,l)}else if(n.attr(u),!jh(n).valueAnimation){var f=tt(n.style.opacity,1);n.style.opacity=0,xr(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var d=a.oldLayoutSelect={};sy(d,u,ly),sy(d,n.states.select,ly)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};sy(v,u,ly),sy(v,n.states.emphasis,ly)}w4(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=cde(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Bt(i,{shape:g},r)):(i.setShape(g),i.style.strokePercent=0,xr(i,{style:{strokePercent:1}},r)),a.oldLayout=g}},e}(),sx=Lt();function hde(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=sx(r).labelManager;i||(i=sx(r).labelManager=new fde),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=sx(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var lx=Math.sin,ux=Math.cos,PW=Math.PI,Nu=Math.PI*2,dde=180/PW,RW=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=Tl(f-Nu)||(c?u>=Nu:-u>=Nu),d=u>0?u%Nu:u%Nu+Nu,v=!1;h?v=!0:Tl(f)?v=!1:v=d>=PW==!!c;var g=t+n*ux(o),m=r+i*lx(o);this._start&&this._add("M",g,m);var y=Math.round(a*dde);if(h){var S=1/this._p,b=(c?1:-1)*(Nu-S);this._add("A",n,i,y,1,+c,t+n*ux(o+b),r+i*lx(o+b)),S>.01&&this._add("A",n,i,y,0,+c,g,m)}else{var w=t+n*ux(s),C=r+i*lx(s);this._add("A",n,i,y,+v,+c,w,C)}},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 wde(e){return""}function dI(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 bde(o,s)+(o!=="style"?xi(l):l||"")+(a?""+r+Se(a,function(u){return n(u)}).join(r)+r:"")+wde(o)}return n(e)}function xde(e,t,r){r=r||{};var n=r.newline?` -`:"",i=" {"+n,a=n+"}",o=Se(xt(e),function(l){return l+i+Se(xt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Se(xt(t),function(l){return"@keyframes "+l+i+Se(xt(t[l]),function(u){return u+i+Se(xt(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 fA(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function nN(e,t,r,n){return fn("svg","root",{width:e,height:t,xmlns:EW,"xmlns:xlink":kW,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var Cde=0;function NW(){return Cde++}var iN={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"},$u="transform-origin";function Tde(e,t,r){var n=fe({},e.shape);fe(n,t),e.buildPath(r,n);var i=new RW;return i.reset(y$(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function Ade(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[$u]=r+"px "+n+"px")}var Dde={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function FW(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Mde(e,t,r){var n=e.shape.paths,i={},a,o;if(R(n,function(l){var u=fA(r.zrId);u.animation=!0,lS(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=xt(c),d=h.length;if(d){o=h[d-1];var v=c[o];for(var g in v){var m=v[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=FW(i,r);return a.replace(o,s)}}function aN(e){return Ee(e)?iN[e]?"cubic-bezier("+iN[e]+")":mM(e)?e:"":""}function lS(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof RM){var s=Mde(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var oe=FW(A,r);return oe+" "+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-"+NW();r.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function Ide(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};oN(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=xT(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),oN(n,t,r)}}function oN(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+NW(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var kp=Math.round;function VW(e){return e&&Ee(e.src)}function BW(e){return e&&We(e.toDataURL)}function vI(e,t,r,n){yde(function(i,a){var o=i==="fill"||i==="stroke";o&&m$(a)?GW(t,e,i,n):o&&yM(a)?$W(r,e,i,n):o&&a==="none"?e[i]="transparent":e[i]=a},t,r,!1),Nde(r,e,n)}function pI(e,t){var r=Doe(t);r&&(r.each(function(n,i){n!=null&&(e[(rN+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[rN+"silent"]="true"))}function sN(e){return Tl(e[0]-1)&&Tl(e[1])&&Tl(e[2])&&Tl(e[3]-1)}function Lde(e){return Tl(e[4])&&Tl(e[5])}function gI(e,t,r){if(t&&!(Lde(t)&&sN(t))){var n=1e4;e.transform=sN(t)?"translate("+kp(t[4]*n)/n+" "+kp(t[5]*n)/n+")":jae(t)}}function lN(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.";li(h,m),li(d,m)}else if(h==null||d==null){var y=function(I,P){if(I){var E=I.elm,F=h||P.width,O=d||P.height;I.tag==="pattern"&&(u?(O=1,F/=a.width):c&&(F=1,O/=a.height)),I.attrs.width=F,I.attrs.height=O,E&&(E.setAttribute("width",F),E.setAttribute("height",O))}},S=CM(v,null,e,function(I){l||y(x,I),y(f,I)});S&&S.width&&S.height&&(h=h||S.width,d=d||S.height)}f=fn("image","img",{href:v,width:h,height:d}),o.width=h,o.height=d}else i.svgElement&&(f=qe(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var b,w;l?b=w=1:u?(w=1,b=o.width/a.width):c?(b=1,w=o.height/a.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),w!=null&&!isNaN(w)&&(o.height=w);var C=_$(i);C&&(o.patternTransform=C);var x=fn("pattern","",o,[f]),A=dI(x),D=n.patternCache,M=D[A];M||(M=n.zrId+"-p"+n.patternIdx++,D[A]=M,o.id=M,x=n.defs[M]=fn("pattern",M,o,[f])),t[r]=E1(M)}}function Fde(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]=fn("clipPath",a,o,[zW(e,r)])}t["clip-path"]=E1(a)}function fN(e){return document.createTextNode(e)}function Ju(e,t,r){e.insertBefore(t,r)}function hN(e,t){e.removeChild(t)}function dN(e,t){e.appendChild(t)}function HW(e){return e.parentNode}function WW(e){return e.nextSibling}function cx(e,t){e.textContent=t}var vN=58,Vde=120,Bde=fn("","");function hA(e){return e===void 0}function vo(e){return e!==void 0}function zde(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 yv(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Op(e){var t,r=e.children,n=e.tag;if(vo(n)){var i=e.elm=OW(n);if(mI(Bde,e),ge(r))for(t=0;ta?(v=r[l+1]==null?null:r[l+1].elm,UW(e,v,r,i,l)):I_(e,t,n,a))}function Hf(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(mI(e,t),hA(t.text)?vo(n)&&vo(i)?n!==i&&Gde(r,n,i):vo(i)?(vo(e.text)&&cx(r,""),UW(r,null,i,0,i.length-1)):vo(n)?I_(r,n,0,n.length-1):vo(e.text)&&cx(r,""):e.text!==t.text&&(vo(n)&&I_(r,n,0,n.length-1),cx(r,t.text)))}function $de(e,t){if(yv(e,t))Hf(e,t);else{var r=e.elm,n=HW(r);Op(t),n!==null&&(Ju(n,t.elm,WW(r)),I_(n,[e],0,0))}return t}var Hde=0,Wde=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=pN(),this.configLayer=pN(),this.storage=r,this._opts=n=fe({},n),this.root=t,this._id="zr"+Hde++,this._oldVNode=nN(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=OW("svg");mI(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",$de(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return cN(t,fA(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=fA(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis;var o=[],s=this._bgVNode=Ude(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=fn("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Se(xt(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(fn("defs","defs",{},u)),t.animation){var c=xde(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=fn("style","stl",{},[],c);o.push(f)}}return nN(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},dI(this.renderToVNode({animation:tt(t.cssAnimation,!0),emphasis:tt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:tt(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=v-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)D=m.__endIndex;else for(var I=d.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?uy:0),this._needsManuallyCompositing),c.__builtin__||cM("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&Gi&&!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]?ot(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}(_r);function Dh(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Ch(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 mg=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=Jr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Qde,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(){As(this.childAt(0))},t.prototype.downplay=function(){Ds(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 d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Bt(h,d,s,n),Za(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,xr(h,d,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,d,v,g,m,y;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,h=a.focus,d=a.blurScope,g=a.labelStatesModels,m=a.hoverScale,y=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var S=a&&a.itemModel?a.itemModel:r.getItemModel(n),b=S.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=S.getModel(["select","itemStyle"]).getItemStyle(),c=S.getModel(["blur","itemStyle"]).getItemStyle(),h=b.get("focus"),d=b.get("blurScope"),v=b.get("disabled"),g=vn(S),m=b.getShallow("scale"),y=S.getShallow("cursor")}var w=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var C=qc(r.getItemVisual(n,"symbolOffset"),i);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var x=r.getItemVisual(n,"style"),A=x.fill;if(s instanceof bn){var D=s.style;s.useStyle(fe({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},x))}else s.__isEmptyBrush?s.useStyle(fe({},x)):s.useStyle(x),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=r.getItemVisual(n,"liftZ"),I=this._z2;M!=null?I==null&&(this._z2=s.z2,s.z2+=M):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Rn(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:A,defaultOpacity:x.opacity});function E(N){return P?r.getName(N):Dh(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),Nr(this,h,d,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Qe(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ul(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ul(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return nd(r.getItemVisual(n,"symbolSize"))},t}(Ke);function Qde(e,t){this.parent.drift(e,t)}function hx(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 yN(e){return e!=null&&!Ze(e)&&(e={isIgnore:e}),e||{}}function _N(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:vn(t),cursorStyle:t.get("cursor")}}var yg=function(){function e(t){this.group=new Ke,this._SymbolCtor=t||mg}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=yN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=_N(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(hx(t,h,f,r)){var d=new o(t,f,l,u);d.setPosition(h),t.setItemGraphicEl(f,d),n.add(d)}}).update(function(f,h){var d=a.getItemGraphicEl(h),v=c(f);if(!hx(t,v,f,r)){n.remove(d);return}var g=t.getItemVisual(f,"symbol")||"circle",m=d&&d.getSymbolType&&d.getSymbolType();if(!d||m&&m!==g)n.remove(d),d=new o(t,f,l,u),d.setPosition(v);else{d.updateData(t,f,l,u);var y={x:v[0],y:v[1]};s?d.attr(y):Bt(d,y,i)}n.add(d),t.setItemGraphicEl(f,d)}).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=_N(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=yN(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 ZW(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 tve(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 rve(e,t,r,n,i,a,o,s){for(var l=tve(e,t),u=[],c=[],f=[],h=[],d=[],v=[],g=[],m=XW(i,t,o),y=e.getLayout("points")||[],S=t.getLayout("points")||[],b=0;b=i||g<0)break;if(Mc(y,S)){if(l){g+=a;continue}break}if(g===r)e[a>0?"moveTo":"lineTo"](y,S),f=y,h=S;else{var b=y-u,w=S-c;if(b*b+w*w<.5){g+=a;continue}if(o>0){for(var C=g+a,x=t[C*2],A=t[C*2+1];x===y&&A===S&&m=n||Mc(x,A))d=y,v=S;else{I=x-u,P=A-c;var O=y-u,N=x-y,V=S-c,U=A-S,G=void 0,Z=void 0;if(s==="x"){G=Math.abs(O),Z=Math.abs(N);var Q=I>0?1:-1;d=y-Q*G*o,v=S,E=y+Q*Z*o,F=S}else if(s==="y"){G=Math.abs(V),Z=Math.abs(U);var ie=P>0?1:-1;d=y,v=S-ie*G*o,E=y,F=S+ie*Z*o}else G=Math.sqrt(O*O+V*V),Z=Math.sqrt(N*N+U*U),M=Z/(Z+G),d=y-I*o*(1-M),v=S-P*o*(1-M),E=y+I*o*M,F=S+P*o*M,E=tl(E,rl(x,y)),F=tl(F,rl(A,S)),E=rl(E,tl(x,y)),F=rl(F,tl(A,S)),I=E-y,P=F-S,d=y-I*G/Z,v=S-P*G/Z,d=tl(d,rl(u,y)),v=tl(v,rl(c,S)),d=rl(d,tl(u,y)),v=rl(v,tl(c,S)),I=y-d,P=S-v,E=y+I*Z/G,F=S+P*Z/G}e.bezierCurveTo(f,h,d,v,y,S),f=E,h=F}else e.lineTo(y,S)}u=y,c=S,g+=a}return m}var qW=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),nve=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 qW},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Mc(i[o*2-2],i[o*2-1]);o--);for(;a=0){var w=u?(v-l)*b+l:(d-s)*b+s;return u?[r,w]:[w,r]}s=d,l=v;break;case o.C:d=a[f++],v=a[f++],g=a[f++],m=a[f++],y=a[f++],S=a[f++];var C=u?i_(s,d,g,y,r,c):i_(l,v,m,S,r,c);if(C>0)for(var x=0;x=0){var w=u?ln(l,v,m,S,A):ln(s,d,g,y,A);return u?[r,w]:[w,r]}}s=y,l=S;break}}},t}(_t),ive=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(qW),jW=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 ive},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&&Mc(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 sve(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(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=ove(u,i==="x"?r.getWidth():r.getHeight()),d=h.length;if(!d&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,g=h[0].coord-v,m=h[d-1].coord+v,y=m-g;if(y<.001)return"transparent";R(h,function(b){b.offset=(b.coord-g)/y}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||"transparent"});var S=new cg(0,0,0,0,h,!0);return S[i]=g,S[i+"2"]=m,S}}}function lve(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&uve(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 uve(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 cve(e,t){return isNaN(e)||isNaN(t)}function fve(e){for(var t=e.length/2;t>0&&cve(e[t*2-2],e[t*2-1]);t--);return t-1}function CN(e,t){return[e[t*2],e[t*2+1]]}function hve(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 QW(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var Q=g.getState("emphasis").style;Q.lineWidth=+g.style.lineWidth+1}Qe(g).seriesIndex=r.seriesIndex,Nr(g,U,G,Z);var ie=xN(r.get("smooth")),pe=r.get("smoothMonotone");if(g.setShape({smooth:ie,smoothMonotone:pe,connectNulls:D}),m){var De=l.getCalculationInfo("stackedOnSeries"),Le=0;m.useStyle(Ye(c.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),De&&(Le=xN(De.get("smooth"))),m.setShape({smooth:ie,stackedOnSmooth:Le,smoothMonotone:pe,connectNulls:D}),Pn(m,r,"areaStyle"),Qe(m).seriesIndex=r.seriesIndex,Nr(m,U,G,Z)}var ze=function(He){a._changePolyState(He)};l.eachItemGraphicEl(function(He){He&&(He.onHoverStateChange=ze)}),this._polyline.onHoverStateChange=ze,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=P,this._valueOrigin=w,r.get("triggerLineEvent")&&(this.packEventData(r,g),m&&this.packEventData(r,m))},t.prototype.packEventData=function(r,n){Qe(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=Nc(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,d=r.get("z")||0;u=new mg(o,s),u.x=c,u.y=f,u.setZ(h,d);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=h,v.z=d,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else lr.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Nc(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 lr.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;f_(this._polyline,r),n&&f_(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new nve({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 jW({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");We(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=We(f)?f(null):f;r.eachItemGraphicEl(function(d,v){var g=d;if(g){var m=[d.x,d.y],y=void 0,S=void 0,b=void 0;if(i)if(o){var w=i,C=n.pointToCoord(m);a?(y=w.startAngle,S=w.endAngle,b=-C[1]/180*Math.PI):(y=w.r0,S=w.r,b=C[0])}else{var x=i;a?(y=x.x,S=x.x+x.width,b=d.x):(y=x.y+x.height,S=x.y,b=d.y)}var A=S===y?0:(b-y)/(S-y);l&&(A=1-A);var D=We(f)?f(v):c*A+h,M=g.getSymbolPath(),I=M.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:D}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(QW(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 kt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=fve(l);c>=0&&(Rn(s,vn(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,h,d){return d!=null?YW(o,d):Dh(o,f)},enableTextSetter:!0},dve(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,d=h.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),S=m.inverse,b=n.shape,w=S?y?b.x:b.y+b.height:y?b.x+b.width:b.y,C=(y?g:0)*(S?-1:1),x=(y?0:-g)*(S?-1:1),A=y?"x":"y",D=hve(f,w,A),M=D.range,I=M[1]-M[0],P=void 0;if(I>=1){if(I>1&&!d){var E=CN(f,M[0]);u.attr({x:E[0]+C,y:E[1]+x}),o&&(P=h.getRawValue(M[0]))}else{var E=c.getPointOn(w,A);E&&u.attr({x:E[0]+C,y:E[1]+x});var F=h.getRawValue(M[0]),O=h.getRawValue(M[1]);o&&(P=V$(i,v,F,O,D.t))}a.lastFrameIndex=M[0]}else{var N=r===1||a.lastFrameIndex>0?M[0]:0,E=CN(f,N);o&&(P=h.getRawValue(N)),u.attr({x:E[0]+C,y:E[1]+x})}if(o){var V=jh(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=rve(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),d=h.current,v=h.stackedOnCurrent,g=h.next,m=h.stackedOnNext;if(o&&(d=nl(h.current,i,o,l),v=nl(h.stackedOnCurrent,i,o,l),g=nl(h.next,i,o,l),m=nl(h.stackedOnNext,i,o,l)),wN(d,g)>3e3||c&&wN(v,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=d;var y={shape:{points:g}};h.current!==d&&(y.shape.__points=h.next),u.stopAnimation(),Bt(u,y,f),c&&(c.setShape({points:d,stackedOnPoints:v}),c.stopAnimation(),Bt(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var S=[],b=h.status,w=0;wt&&(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]}},gve=function(e){return Math.round(e.length/2)};function eU(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),d=Math.round(s/h);if(isFinite(d)&&d>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var v=void 0;Ee(a)?v=pve[a]:We(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/d,v,gve))}}}}}function mve(e){e.registerChartView(vve),e.registerSeriesModel(Jde),e.registerLayout(Sg("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,eU("line"))}var Np=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 Ns(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,d){if(h.type==="category"&&n!=null){var v=h.getTicksCoords(),g=h.getTickModel().get("alignWithLabel"),m=o[d],y=n[d]==="x1"||n[d]==="y1";if(y&&!g&&(m+=1),v.length<2)return;if(v.length===2){s[d]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var S=void 0,b=void 0,w=1,C=0;Cm){b=(x+S)/2;break}C===1&&(w=A-v[0].tickValue)}b==null&&(S?S&&(b=v[v.length-1].coord):b=v[0].coord),s[d]=h.toGlobalCoord(b)}});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}(_r);_r.registerClass(Np);var yve=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 Ns(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=tu(Np.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}(Np),_ve=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}(),L_=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 _ve},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,d=Math.PI*2,v=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){Ap(a,r,Qe(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}(lr),TN={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=vx(t.x,e.x),s=px(t.x+t.width,i),l=vx(t.y,e.y),u=px(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=px(t.r,e.r),a=vx(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}},AN={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new It({shape:fe({},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?L_:ci,c=new u({shape:n,z2:1});c.name="item";var f=tU(i);if(c.calculateTextPosition=Sve(f,{isRoundCap:u===L_}),a){var h=c.shape,d=i?"r":"endAngle",v={};h[d]=i?n.r0:n.startAngle,v[d]=n[d],(s?Bt:xr)(c,{shape:v},a)}return c}};function Cve(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 DN(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?Bt:xr)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?Bt:xr)(r,{shape:u},c,i)}function MN(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 Dve(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function tU(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 LN(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=dc(n.getModel("itemStyle"),c,!0);fe(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 d=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",v=vn(n);Rn(e,v,{labelFetcher:a,labelDataIndex:r,defaultText:Dh(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=e.getTextContent();if(s&&g){var m=n.get(["label","position"]);e.textConfig.inside=m==="middle"?!0:null,bve(e,m==="outside"?d:m,tU(o),n.get(["label","rotate"]))}b4(g,v,a.getRawValue(r),function(S){return YW(t,S)});var y=n.getModel(["emphasis"]);Nr(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),Pn(e,n),Dve(i)&&(e.style.fill="none",e.style.stroke="none",R(e.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function Mve(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 Ive=function(){function e(){}return e}(),PN=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 Ive},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 Lve(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 rU(e,t,r){if(Kc(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 Pve(e,t,r){var n=e.type==="polar"?ci:It;return new n({shape:rU(t,r,e),silent:!0,z2:0})}function Rve(e){e.registerChartView(xve),e.registerSeriesModel(yve),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,rt(sW,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lW("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,eU("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 kN=Math.PI*2,dy=Math.PI/180;function nU(e,t){return an(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function iU(e,t){var r=nU(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 d=h.dataToPoint(n);c=d[0]||0,f=d[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 Eve(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=nU(n,r),s=iU(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*dy,d=n.get("endAngle"),v=n.get("padAngle")*dy;d=d==="auto"?h-kN:-d*dy;var g=n.get("minAngle")*dy,m=g+v,y=0;i.each(a,function(U){!isNaN(U)&&y++});var S=i.getSum(a),b=Math.PI/(S||y)*2,w=n.get("clockwise"),C=n.get("roseType"),x=n.get("stillShowZeroSum"),A=i.getDataExtent(a);A[0]=0;var D=w?1:-1,M=[h,d],I=D*v/2;TM(M,!w),h=M[0],d=M[1];var P=aU(n);P.startAngle=h,P.endAngle=d,P.clockwise=w;var E=Math.abs(d-h),F=E,O=0,N=h;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(U,G){var Z;if(isNaN(U)){i.setItemLayout(G,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:f,r:C?NaN:c});return}C!=="area"?Z=S===0&&x?b:U*b:Z=E/y,ZZ?(ie=N+D*Z/2,pe=ie):(ie=N+I,pe=Q-I),i.setItemLayout(G,{angle:Z,startAngle:ie,endAngle:pe,clockwise:w,cx:l,cy:u,r0:f,r:C?jt(U,A,[f,c]):c}),N=Q}),Fr?y:m,C=Math.abs(b.label.y-r);if(C>=w.maxY){var x=b.label.x-t-b.len2*i,A=n+b.len,D=Math.abs(x)e.unconstrainedWidth?null:d:null;n.setStyle("width",v)}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 gx(e){return e.position==="center"}function Nve(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 d(x){x.ignore=!0}function v(x){if(!x.ignore)return!0;for(var A in x.states)if(x.states[A].ignore===!1)return!0;return!1}t.each(function(x){var A=t.getItemGraphicEl(x),D=A.shape,M=A.getTextContent(),I=A.getTextGuideLine(),P=t.getItemModel(x),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),U=E.get("bleedMargin"),G=P.getModel("labelLine"),Z=G.get("length");Z=Ie(Z,u);var Q=G.get("length2");if(Q=Ie(Q,u),Math.abs(D.endAngle-D.startAngle)0?"right":"left":pe>0?"left":"right"}var ne=Math.PI,_e=0,he=E.get("rotate");if(Nt(he))_e=he*(ne/180);else if(F==="center")_e=0;else if(he==="radial"||he===!0){var $=pe<0?-ie+ne:-ie;_e=$}else if(he==="tangential"&&F!=="outside"&&F!=="outer"){var Y=Math.atan2(pe,De);Y<0&&(Y=ne*2+Y);var te=De>0;te&&(Y=ne+Y),_e=Y-ne}if(a=!!_e,M.x=Le,M.y=ze,M.rotation=_e,M.setStyle({verticalAlign:"middle"}),ue){M.setStyle({align:oe});var Pe=M.states.select;Pe&&(Pe.x+=M.x,Pe.y+=M.y)}else{var le=M.getBoundingRect().clone();le.applyTransform(M.getComputedTransform());var xe=(M.style.margin||0)+2.1;le.y-=xe/2,le.height+=xe,r.push({label:M,labelLine:I,position:F,len:Z,len2:Q,minTurnAngle:G.get("minTurnAngle"),maxSurfaceAngle:G.get("maxSurfaceAngle"),surfaceNormal:new nt(pe,De),linePoints:He,textAlign:oe,labelDistance:O,labelAlignTo:N,edgeDistance:V,bleedMargin:U,rect:le,unconstrainedWidth:le.width,labelStyleWidth:M.style.width})}A.setTextConfig({inside:ue})}}),!a&&e.get("avoidLabelOverlap")&&Ove(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}(lr);function ad(e,t,r){t=ge(t)&&{coordDimensions:t}||fe({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=pg(n,t).dimensions,a=new oi(i,e);return a.initData(n,r),a}var wg=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}(),Bve=Lt(),zve=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 wg(Oe(this.getData,this),Oe(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ad(this,{coordDimensions:["value"],encodeDefaulter:rt($M,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=Bve(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Poe(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){Oc(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}(_r);function Gve(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!(Nt(o)&&!isNaN(o)&&o<0)})}}}function $ve(e){e.registerChartView(Vve),e.registerSeriesModel(zve),DH("pie",e.registerAction),e.registerLayout(rt(Eve,"pie")),e.registerProcessor(bg("pie")),e.registerProcessor(Gve("pie"))}var Hve=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 Ns(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}(_r),sU=4,Wve=function(){function e(){}return e}(),Uve=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 Wve},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}(),Xve=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=Sg("").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 Yve:new yg,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}(lr),Zve=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}(wt),vA=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",jr).models[0]},t.type="cartesian2dAxis",t}(wt);Qr(vA,gg);var lU={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)"]}}},qve=ot({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},lU),yI=ot({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}}},lU),jve=ot({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},yI),Kve=Ye({logBase:10},yI);const uU={category:qve,value:yI,time:jve,log:Kve};var Jve={value:1,category:1,time:1,log:1};function Mh(e,t,r,n){R(Jve,function(i,a){var o=ot(ot({},uU[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=Mp(this),d=h?Qh(c):{},v=f.getTheme();ot(c,v.get(a+"Axis")),ot(c,this.getDefaultOption()),c.type=NN(c),h&&Yl(c,d,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=sA.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",NN)}function NN(e){return e.type||(e.data?"category":"value")}var Qve=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(),Qt(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}(),pA=["x","y"];function FN(e){return e.type==="interval"||e.type==="time"}var epe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=pA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!FN(r)||!FN(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,d=o[1]-a[0]*f,v=this._transform=[c,0,0,f,h,d];this._invTransform=Uh([],v)}}},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 st(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 Ln(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 Ln(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 st(a,o,s,l)},t}(Qve),tpe=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}(Ja);function gA(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},d=t.get("offset")||0,v=u==="x"?[f[2]-d,f[3]+d]:[f[0]-d,f[1]+d];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));v[h.onZero]=Math.max(Math.min(g,v[1]),v[0])}a.position=[u==="y"?v[h[l]]:f[0],u==="x"?v[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?v[h[s]]-v[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),_n(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 VN(e){return e.get("coordinateSystem")==="cartesian2d"}function BN(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,jr).models[0];t[n]=a}),t}var mx=Math.log;function cU(e,t,r){var n=Is.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=dW(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var h=mx(e.base);u=[mx(u[0])/h,mx(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var d=n.getExtent.call(e);c&&(u[0]=d[0]),f&&(u[1]=d[1]);var v=n.getInterval.call(e),g=u[0],m=u[1];if(c&&f)v=(m-g)/o;else if(c)for(m=u[0]+v*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)v=rx(v),g=u[1]-v*o;else{var y=e.getTicks().length-1;y>o&&(v=rx(v));var S=v*o;m=Math.ceil(u[1]/v)*v,g=Br(m-S),g<0&&u[0]>=0?(g=0,m=Br(S)):m>0&&u[1]<=0&&(m=0,g=-Br(S))}var b=(i[0].value-a[0].value)/s,w=(i[o].value-a[o].value)/s;n.setExtent.call(e,g+v*b,m+v*w),n.setInterval.call(e,v),(b||w)&&n.setNiceExtent.call(e,g+v,m-v)}var rpe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pA,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=xt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],d=o[h],v=d.model,g=d.scale;lA(g)&&v.get("alignTicks")&&v.get("interval")==null?c.push(d):(Ah(g,v),lA(g)&&(s=d))}c.length&&(s||(s=c.pop(),Ah(s.scale,s.model)),R(c,function(m){cU(m.scale,m.model,s.scale)}))}}i(n.x),i(n.y);var a={};R(n.x,function(o){zN(n,"y",o,a)}),R(n.y,function(o){zN(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=an(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=Nhe(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]),npe(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]}Ze(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):wp(i-Al)?(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}(),$N={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&&(Ln(s,s,o),Ln(l,l,o));var c=fe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new cn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});xh(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var d=t.get(["axisLine","symbolSize"]);Ee(h)&&(h=[h,h]),(Ee(d)||Nt(d))&&(d=[d,d]);var v=qc(t.get(["axisLine","symbolOffset"])||0,d),g=d[0],m=d[1];R([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,S){if(h[S]!=="none"&&h[S]!=null){var b=Jr(h[S],-g/2,-m/2,g,m,c.stroke,!0),w=y.r+y.offset,C=u?l:s;b.attr({rotation:y.rotate,x:C[0]+w*Math.cos(e.rotation),y:C[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),r.add(b)}})}}},axisTickLabel:function(e,t,r,n){var i=ope(r,n,t,e),a=lpe(r,n,t,e);if(ape(t,a,i),spe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=DW(Se(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));LW(o)}},axisName:function(e,t,r,n){var i=_n(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,WN(a)?e.labelOffset+o*l:0],h,d=t.get("nameRotate");d!=null&&(d=d*Al/180);var v;WN(a)?h=si.innerTextLayout(e.rotation,d??e.rotation,o):(h=ipe(e.rotation,a,d||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(h.rotation)),!isFinite(v)&&(v=null)));var g=s.getFont(),m=t.get("nameTruncate",!0)||{},y=m.ellipsis,S=_n(e.nameTruncateMaxWidth,m.maxWidth,v),b=new kt({x:f[0],y:f[1],rotation:h.rotation,silent:si.isLabelSilent(t),style:yr(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(qh({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var w=si.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Qe(b).eventData=w}n.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function ipe(e,t,r,n){var i=M$(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return wp(i-Al/2)?(o=l?"bottom":"top",a="center"):wp(i-Al*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iAl/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function ape(e,t,r){if(!vW(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?(aa(a),aa(u)):HN(a,o)&&(n?(aa(o),aa(c)):(aa(a),aa(u))),i===!1?(aa(s),aa(f)):HN(l,s)&&(i?(aa(l),aa(h)):(aa(s),aa(f)))}}function aa(e){e&&(e.ignore=!0)}function HN(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=R1([]);return Xc(i,i,-e.rotation),r.applyTransform(_s([],i,e.getLocalTransform())),n.applyTransform(_s([],i,t.getLocalTransform())),r.intersect(n)}}function WN(e){return e==="middle"||e==="center"}function fU(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function vpe(e){var t=_I(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=mA(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&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var g=l;v.color!=null&&(g=Ye({color:v.color},l));var m=ot(qe(v),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:v.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 We(c)&&(m.name=c(m.name,m));var S=new Xt(m,null,this.ecModel);return Qr(S,gg.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},this);this._indicatorModels=d},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:ot({lineStyle:{color:"#bbb"}},Ud.axisLine),axisLabel:vy(Ud.axisLabel,!1),axisTick:vy(Ud.axisTick,!1),splitLine:vy(Ud.splitLine,!0),splitArea:vy(Ud.splitArea,!0),indicator:[]},t}(wt),Dpe=["axisLine","axisTickLabel","axisName"],Mpe=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 si(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(Dpe,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"),d=u.get("color"),v=ge(h)?h:[h],g=ge(d)?d:[d],m=[],y=[];function S(N,V,U){var G=U%V.length;return N[G]=N[G]||[],G}if(a==="circle")for(var b=i[0].getTicksCoords(),w=n.cx,C=n.cy,x=0;x3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;Sx(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);Sx(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!jN(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;Sx(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ca);function Sx(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(Cs(n.event),mU(e,t,r,n,i))}function mU(e,t,r,n,i){i.isAvailableBehavior=Oe(T0,null,r,n),e.trigger(t,i)}function T0(e,t,r){var n=r[e];return!e||n&&(!Ee(n)||t.event[n+"Key"])}function bI(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function wI(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 Ope={axisPointer:1,tooltip:1,brush:1};function uS(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!Ope.hasOwnProperty(n.mainType)&&i&&i.model!==r}function yU(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 bx,P_={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"},KN=xt(P_),R_={"alignment-baseline":"textBaseline","stop-color":"stopColor"},JN=xt(R_),Npe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=yU(t);this._defsUsePending=[];var i=new Ke;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),Ni(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;Bpe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=cS(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=SU(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var d=i;i=new Ke,i.add(d),d.scaleX=d.scaleY=f.scale,d.x=f.x,d.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new It({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=bx[s];if(c&&Ne(bx,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 d=QN[s];if(d&&Ne(QN,s)){var v=d.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=v)}}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 wh({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});oa(r,n),Ni(t,n,this._defsUsePending,!1,!1),Fpe(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(){bx={g:function(t,r){var n=new Ke;return oa(r,n),Ni(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new It;return oa(r,n),Ni(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 Os;return oa(r,n),Ni(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 cn;return oa(r,n),Ni(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 $1;return oa(r,n),Ni(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=rF(n));var a=new fi({shape:{points:i||[]},silent:!0});return oa(r,a),Ni(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=rF(n));var a=new di({shape:{points:i||[]},silent:!0});return oa(r,a),Ni(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new bn;return oa(r,n),Ni(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 Ke;return oa(r,s),Ni(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 Ke;return oa(r,s),Ni(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=u4(n);return oa(r,i),Ni(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),QN={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 cg(t,r,n,i);return eF(e,a),tF(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 d4(t,r,n);return eF(e,i),tF(e,i),i}};function eF(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function tF(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={};_U(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function oa(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ye(t.__inheritedStyle,e.__inheritedStyle))}function rF(e){for(var t=cS(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=cS(o);switch(i=i||Yi(),s){case"translate":Ro(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":gM(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Xc(i,i,-parseFloat(l[0])*xx,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*xx);_s(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*xx);_s(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 iF=/([^\s:;]+)\s*:\s*([^:;]+)/g;function _U(e,t,r){var n=e.getAttribute("style");if(n){iF.lastIndex=0;for(var i;(i=iF.exec(n))!=null;){var a=i[1],o=Ne(P_,a)?P_[a]:null;o&&(t[o]=i[2]);var s=Ne(R_,a)?R_[a]:null;s&&(r[s]=i[2])}}}function Hpe(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=Ve(),n=Ve(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(d,v){return v&&(d=v(d)),d&&[d[0]*a.scaleX+a.x,d[1]*a.scaleY+a.y]}function f(d){for(var v=[],g=!u&&l&&l.project,m=0;m=0)&&(h=i);var d=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Rn(t,vn(n),{labelFetcher:h,labelDataIndex:f,defaultText:r},d);var v=t.getTextContent();if(v&&(bU(v).ignore=v.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 uF(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Qe(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function cF(e,t,r,n,i){e.data||qh({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function fF(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Nr(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&ile(t,i,r),o}function hF(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}(_r);function uge(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?(w.width=b,w.height=b/m):(w.height=b,w.width=b*m),w.y=S[1]-w.height/2,w.x=S[0]-w.width/2;else{var C=e.getBoxLayoutParams();C.aspect=m,w=an(C,{width:v,height:g})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function dge(e,t){R(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var vge=function(){function e(){this.dimensions=xU}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 SA(l+s,l,fe({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=gF,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 SA(s,s,fe({nameMap:fM(l)},i(o[0])));u.zoomLimit=_n.apply(null,Se(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=gF,u.resize(o[0],r),R(o,function(c){c.coordinateSystem=u,dge(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=Ve(),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 Sge(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){xge(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=Cge(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function bge(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function yF(e){return arguments.length?e:Dge}function _v(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function wge(e,t){return an(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xge(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 Cge(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=Cx(s),a=Tx(a),s&&a;){i=Cx(i),o=Tx(o),i.hierNode.ancestor=e;var h=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);h>0&&(Age(Tge(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&&!Cx(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!Tx(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function Cx(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Tx(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Tge(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function Age(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 Dge(e,t){return e.parentNode===t.parentNode?1:2}var Mge=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Ige=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 Mge},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),d=[];d[c]=o[c],d[f]=o[f]+(l[f]-o[f])*h,r.moveTo(o[0],o[1]),r.lineTo(d[0],d[1]),r.moveTo(s[0],s[1]),d[c]=s[c],r.lineTo(d[0],d[1]),d[c]=l[c],r.lineTo(d[0],d[1]),r.lineTo(l[0],l[1]);for(var v=1;vS.x,C||(w=w-Math.PI));var A=C?"left":"right",D=s.getModel("label"),M=D.get("rotate"),I=M*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:D.get("position")||A,rotation:M==null?-w:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),F=E==="relative"?t_(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;F&&(Qe(r).focus=F),Pge(i,o,c,r,v,d,g,n),r.__edge&&(r.onHoverStateChange=function(O){if(O!=="blur"){var N=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);N&&N.hoverState===sg||f_(r.__edge,O)}})}function Pge(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"]),d=e.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),g=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(g||(g=n.__edge=new ug({shape:bA(c,f,h,i,i)})),Bt(g,{shape:bA(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 IU(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function DI(e,t){var r=IU(e);return pt(r,t)>=0}function fS(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 zge=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 Xt(i,this,this.ecModel),o=AI.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(h,d){var v=o.getNodeByDataIndex(d);return v&&v.children.length&&v.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 pn("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=fS(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}(_r);function Gge(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 $ge(e,t){e.eachSeriesByType("tree",function(r){Hge(r,t)})}function Hge(e,t){var r=wge(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=yF(function(b,w){return(b.parentNode===w.parentNode?1:2)/b.depth})):(i=r.width,a=r.height,o=yF());var s=e.getData().tree.root,l=s.children[0];if(l){_ge(s),Gge(l,Sge,o),s.hierNode.modifier=-l.hierNode.prelim,Xd(l,bge);var u=l,c=l,f=l;Xd(l,function(b){var w=b.getLayout().x;wc.getLayout().x&&(c=b),b.depth>f.depth&&(f=b)});var h=u===c?1:o(u,c)/2,d=h-u.getLayout().x,v=0,g=0,m=0,y=0;if(n==="radial")v=i/(c.getLayout().x+h+d),g=a/(f.depth-1||1),Xd(l,function(b){m=(b.getLayout().x+d)*v,y=(b.depth-1)*g;var w=_v(m,y);b.setLayout({x:w.x,y:w.y,rawX:m,rawY:y},!0)});else{var S=e.getOrient();S==="RL"||S==="LR"?(g=a/(c.getLayout().x+h+d),v=i/(f.depth-1||1),Xd(l,function(b){y=(b.getLayout().x+d)*g,m=S==="LR"?(b.depth-1)*v:i-(b.depth-1)*v,b.setLayout({x:m,y},!0)})):(S==="TB"||S==="BT")&&(v=i/(c.getLayout().x+h+d),g=a/(f.depth-1||1),Xd(l,function(b){m=(b.getLayout().x+d)*v,y=S==="TB"?(b.depth-1)*g:a-(b.depth-1)*g,b.setLayout({x:m,y},!0)}))}}}function Wge(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");fe(s,o)})})}function Uge(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=CI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function Yge(e){e.registerChartView(Lge),e.registerSeriesModel(zge),e.registerLayout($ge),e.registerVisual(Wge),Uge(e)}var xF=["treemapZoomToNode","treemapRender","treemapMove"];function Xge(e){for(var t=0;t1;)a=a.parentNode;var o=qT(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var Zge=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};PU(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,n);a=r.levels=qge(a,n);var l=Se(a||[],function(f){return new Xt(f,s,n)},this),u=AI.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(h,d){var v=u.getNodeByDataIndex(d),g=v?l[v.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 pn("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=fS(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},fe(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=Ve(),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(){LU(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}(_r);function PU(e){var t=0;R(e.children,function(n){PU(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 qge(e,t){var r=nr(t.get("color")),n=nr(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;R(e,function(s){var l=new Xt(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 jge=8,CF=8,Ax=5,Kge=function(){function e(t){this.group=new Ke,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),J1(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=rn(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+jge*2,r.emptyItemWidth);r.totalWidth+=s+CF,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=oue(r.pos,r.box),h=r.totalWidth,d=r.renderList,v=i.getModel("itemStyle").getItemStyle(),g=d.length-1;g>=0;g--){var m=d[g],y=m.node,S=m.width,b=m.text;h>f.width&&(h-=S-u,S=u,b=null);var w=new fi({shape:{points:Jge(l,0,S,c,g===d.length-1,g===0)},style:Ye(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new kt({style:yr(a,{text:b})}),textConfig:{position:"inside"},z2:Xh*1e4,onclick:rt(s,y)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=yr(o,{text:b}),w.ensureState("emphasis").style=v,Nr(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),Qge(w,t,y),l+=S+CF}},e.prototype.remove=function(){this.group.removeAll()},e}();function Jge(e,t,r,n,i,a){var o=[[i?e:e-Ax,t],[e+r,t],[e+r,t+n],[i?e:e-Ax,t+n]];return!a&&o.splice(2,0,[e+r+Ax,t+n/2]),!i&&o.push([e,t+n/2]),o}function Qge(e,t,r){Qe(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&&fS(r,t)}}var eme=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;iAF||Math.abs(r.dy)>AF)){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 st(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,d=u.max||1/0;f=Math.max(Math.min(d,f),h)}var v=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;n-=g.x,i-=g.y;var m=Yi();Ro(m,m,[-n,-i]),gM(m,m,[v,v]),Ro(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&&m_(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 Kge(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(DI(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Zd(),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}(lr);function Zd(){return{nodeGroup:[],background:[],content:[]}}function ome(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 d=c.width,v=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),S=s&&s.getRawIndex(),b=o.viewChildren,w=c.upperHeight,C=b&&b.length,x=h.getModel("itemStyle"),A=h.getModel(["emphasis","itemStyle"]),D=h.getModel(["blur","itemStyle"]),M=h.getModel(["select","itemStyle"]),I=x.get("borderRadius")||0,P=Le("nodeGroup",wA);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),E_(P).nodeWidth=d,E_(P).nodeHeight=v,c.isAboveViewRoot)return P;var E=Le("background",TF,u,nme);E&&Z(P,E,C&&c.upperLabelHeight);var F=h.getModel("emphasis"),O=F.get("focus"),N=F.get("blurScope"),V=F.get("disabled"),U=O==="ancestor"?o.getAncestorsIndices():O==="descendant"?o.getDescendantIndices():O;if(C)Tp(P)&&lc(P,!1),E&&(lc(E,!V),f.setItemGraphicEl(o.dataIndex,E),GT(E,U,N));else{var G=Le("content",TF,u,ime);G&&Q(P,G),E.disableMorphing=!0,E&&Tp(E)&&lc(E,!1),lc(P,!V),f.setItemGraphicEl(o.dataIndex,P),GT(P,U,N)}return P;function Z(oe,ue,ve){var me=Qe(ue);if(me.dataIndex=o.dataIndex,me.seriesIndex=e.seriesIndex,ue.setShape({x:0,y:0,width:d,height:v,r:I}),m)ie(ue);else{ue.invisible=!1;var Ce=o.getVisual("style"),Re=Ce.stroke,H=IF(x);H.fill=Re;var W=Wu(A);W.fill=A.get("borderColor");var ne=Wu(D);ne.fill=D.get("borderColor");var _e=Wu(M);if(_e.fill=M.get("borderColor"),ve){var he=d-2*g;pe(ue,Re,Ce.opacity,{x:g,y:0,width:he,height:w})}else ue.removeTextContent();ue.setStyle(H),ue.ensureState("emphasis").style=W,ue.ensureState("blur").style=ne,ue.ensureState("select").style=_e,Vc(ue)}oe.add(ue)}function Q(oe,ue){var ve=Qe(ue);ve.dataIndex=o.dataIndex,ve.seriesIndex=e.seriesIndex;var me=Math.max(d-2*g,0),Ce=Math.max(v-2*g,0);if(ue.culling=!0,ue.setShape({x:g,y:g,width:me,height:Ce,r:I}),m)ie(ue);else{ue.invisible=!1;var Re=o.getVisual("style"),H=Re.fill,W=IF(x);W.fill=H,W.decal=Re.decal;var ne=Wu(A),_e=Wu(D),he=Wu(M);pe(ue,H,Re.opacity,null),ue.setStyle(W),ue.ensureState("emphasis").style=ne,ue.ensureState("blur").style=_e,ue.ensureState("select").style=he,Vc(ue)}oe.add(ue)}function ie(oe){!oe.invisible&&a.push(oe)}function pe(oe,ue,ve,me){var Ce=h.getModel(me?MF:DF),Re=rn(h.get("name"),null),H=Ce.getShallow("show");Rn(oe,vn(h,me?MF:DF),{defaultText:H?Re:null,inheritColor:ue,defaultOpacity:ve,labelFetcher:e,labelDataIndex:o.dataIndex});var W=oe.getTextContent();if(W){var ne=W.style,_e=dM(ne.padding||0);me&&(oe.setTextConfig({layoutRect:me}),W.disableLabelLayout=!0),W.beforeUpdate=function(){var $=Math.max((me?me.width:oe.shape.width)-_e[1]-_e[3],0),Y=Math.max((me?me.height:oe.shape.height)-_e[0]-_e[2],0);(ne.width!==$||ne.height!==Y)&&W.setStyle({width:$,height:Y})},ne.truncateMinChar=2,ne.lineOverflow="truncate",De(ne,me,c);var he=W.getState("emphasis");De(he?he.style:null,me,c)}}function De(oe,ue,ve){var me=oe?oe.text:null;if(!ue&&ve.isLeafRoot&&me!=null){var Ce=e.get("drillDownIcon",!0);oe.text=Ce?Ce+" "+me:me}}function Le(oe,ue,ve,me){var Ce=S!=null&&r[oe][S],Re=i[oe];return Ce?(r[oe][S]=null,ze(Re,Ce)):m||(Ce=new ue,Ce instanceof xa&&(Ce.z2=sme(ve,me)),He(Re,Ce)),t[oe][y]=Ce}function ze(oe,ue){var ve=oe[y]={};ue instanceof wA?(ve.oldX=ue.x,ve.oldY=ue.y):ve.oldShape=fe({},ue.shape)}function He(oe,ue){var ve=oe[y]={},me=o.parentNode,Ce=ue instanceof Ke;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),Ce?(ve.oldX=0,ve.oldY=H):ve.oldShape={x:Re,y:H,width:0,height:0}}ve.fadein=!Ce}}function sme(e,t){return e*rme+t}var Bp=R,lme=Ze,k_=-1,hn=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=qe(t);this.type=n,this.mappingMethod=r,this._normalizeData=fme[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(Dx(i),ume(i)):r==="category"?i.categories?cme(i):Dx(i,!0):(li(r!=="linear"||i.dataExtent),Dx(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return Oe(this._normalizeData,this)},e.listVisualTypes=function(){return xt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Ze(t)?R(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=ge(t)?[]:Ze(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&&Bp(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(lme(t)){var r=[];Bp(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 Dx(e,t){var r=e.visual,n=[];Ze(r)?Bp(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]),RU(e,n)}function gy(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:xA([0,1])}}function LF(e){var t=this.option.visual;return t[Math.round(jt(e,[0,1],[0,t.length-1],!0))]||{}}function qd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function Sv(e){var t=this.option.visual;return t[this.option.loop&&e!==k_?e%t.length:e]}function Uu(){return this.option.visual[0]}function xA(e){return{linear:function(t){return jt(t,e,this.option.visual,!0)},category:Sv,piecewise:function(t,r){var n=CA.call(this,r);return n==null&&(n=jt(t,e,this.option.visual,!0)),n},fixed:Uu}}function CA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=hn.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function RU(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Se(t,function(r){var n=Xi(r);return n||[0,0,0,1]})),t}var fme={linear:function(e){return jt(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=hn.findPieceIndex(e,t,!0);if(r!=null)return jt(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??k_},fixed:Ur};function my(e,t,r){return e?t<=r:t=r.length||g===r[g.depth]){var y=mme(i,l,g,m,v,n);kU(g,y,r,n)}})}}}function vme(e,t,r){var n=fe({},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 PF(e){var t=Mx(e,"color");if(t){var r=Mx(e,"colorAlpha"),n=Mx(e,"colorSaturation");return n&&(t=zv(t,null,null,n)),r&&(t=a_(t,r)),t}}function pme(e,t){return t!=null?zv(t,null,null,e):null}function Mx(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function gme(e,t,r,n,i,a){if(!(!a||!a.length)){var o=Ix(t,"color")||i.color!=null&&i.color!=="none"&&(Ix(t,"colorAlpha")||Ix(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 hn(f);return EU(h).drColorMappingBy=c,h}}}function Ix(e,t){var r=e.get(t);return ge(r)&&r.length?{name:t,range:r}:null}function mme(e,t,r,n,i,a){var o=fe({},t);if(i){var s=i.type,l=s==="color"&&EU(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 zp=Math.max,O_=Math.min,RF=_n,MI=R,OU=["itemStyle","borderWidth"],yme=["itemStyle","gapWidth"],_me=["upperLabel","show"],Sme=["upperLabel","height"];const bme={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=an(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=Ie(RF(s.width,l[0]),i),c=Ie(RF(s.height,l[1]),a),f=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],d=Vp(n,h,e),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,g=e.getViewRoot(),m=IU(g);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?Dme(e,d,g,u,c):v?[v.width,v.height]:[u,c],S=o.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var b={squareRatio:o.squareRatio,sort:S,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var w={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(w),NU(g,b,!1,0),w=g.getLayout(),MI(m,function(x,A){var D=(m[A+1]||g).getValue();x.setLayout(fe({dataExtent:[D,D],borderWidth:0,upperHeight:0},w))})}var C=e.getData().tree.root;C.setLayout(Mme(s,v,d),!0),e.setLayoutInfo(s),FU(C,new st(-s.x,-s.y,i,a),m,g,0)}};function NU(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(OU),u=s.get(yme)/2,c=VU(s),f=Math.max(l,c),h=l-u,d=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=zp(i-2*h,0),a=zp(a-h-d,0);var v=i*a,g=wme(e,s,v,t,r,n);if(g.length){var m={x:h,y:d,width:i,height:a},y=O_(i,a),S=1/0,b=[];b.area=0;for(var w=0,C=g.length;w=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function Ame(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?zp(u*n/l,l/(u*i)):1/0}function EF(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;fYE&&(u=YE),a=s}un&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var A=w[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var D=-Math.atan2(w[1],w[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],v=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]+M,v=w[0]<0?"right":"left",a.originX=-y*A,a.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=x[0],a.y=x[1]+M,v="center",a.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*A+f[0],a.y=f[1]+M,v=w[0]>=0?"right":"left",a.originX=y*A,a.originY=-M;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||g,align:a.__align||v})}},t}(Ke),EI=function(){function e(t){this.group=new Ke,this._LineCtor=t||RI}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=BF(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=BF(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!Yme(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function BF(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:vn(t)}}function zF(e){return isNaN(e[0])||isNaN(e[1])}function kx(e){return e&&!zF(e[0])&&!zF(e[1])}var Ox=[],Nx=[],Fx=[],Pf=mn,Vx=bc,GF=Math.abs;function $F(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){Ox[0]=Pf(n[0],i[0],a[0],c),Ox[1]=Pf(n[1],i[1],a[1],c);var f=GF(Vx(Ox,t)-l);f=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function Bx(e,t){var r=[],n=_p,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=[ys(u[0]),ys(u[1])],u[2]&&u.__original.push(ys(u[2])));var h=u.__original;if(u[2]!=null){if(ti(i[0],h[0]),ti(i[1],h[2]),ti(i[2],h[1]),c&&c!=="none"){var d=wv(s.node1),v=$F(i,h[0],d*t);n(i[0][0],i[1][0],i[2][0],v,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],v,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var d=wv(s.node2),v=$F(i,h[1],d*t);n(i[0][0],i[1][0],i[2][0],v,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],v,r),i[1][1]=r[1],i[2][1]=r[2]}ti(u[0],i[0]),ti(u[1],i[2]),ti(u[2],i[1])}else{if(ti(a[0],h[0]),ti(a[1],h[1]),oc(o,a[1],a[0]),Wh(o,o),c&&c!=="none"){var d=wv(s.node1);hT(a[0],a[0],o,d*t)}if(f&&f!=="none"){var d=wv(s.node2);hT(a[1],a[1],o,-d*t)}ti(u[0],a[0]),ti(u[1],a[1])}})}function HF(e){return e.type==="view"}var Xme=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 yg,a=new EI,o=this.group;this._controller=new xg(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(HF(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Bt(u,c,r)}Bx(r.getGraph(),bv(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 d=r.forceLayout,v=r.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,v);var g=r.get("layout");f.graph.eachNode(function(b){var w=b.dataIndex,C=b.getGraphicEl(),x=b.getModel();if(C){C.off("drag").off("dragend");var A=x.get("draggable");A&&C.on("drag",function(M){switch(g){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,v),d.setFixed(w),f.setItemLayout(w,[C.x,C.y]);break;case"circular":f.setItemLayout(w,[C.x,C.y]),b.setLayout({fixed:!0},!0),PI(r,"symbolSize",b,[M.offsetX,M.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(w,[C.x,C.y]),LI(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){d&&d.setUnfixed(w)}),C.setDraggable(A,!!x.get("cursor"));var D=x.get(["emphasis","focus"]);D==="adjacency"&&(Qe(C).focus=b.getAdjacentDataIndices())}}),f.graph.eachEdge(function(b){var w=b.getGraphicEl(),C=b.getModel().get(["emphasis","focus"]);w&&C==="adjacency"&&(Qe(w).focus={edge:[b.dataIndex],node:[b.node1.dataIndex,b.node2.dataIndex]})});var m=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),y=f.getLayout("cx"),S=f.getLayout("cy");f.graph.eachNode(function(b){$U(b,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)&&!uS(u,i,r)}),!HF(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){bI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){wI(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(),Bx(r.getGraph(),bv(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=bv(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){Bx(r.getGraph(),bv(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}(lr);function Rf(e){return"_EC_"+e}var Zme=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[Rf(t)]){var i=new Yu(t,r);return i.hostGraph=this,this.nodes.push(i),n[Rf(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[Rf(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(Nt(t)&&(t=this.nodes[t]),Nt(r)&&(r=this.nodes[r]),t instanceof Yu||(t=i[Rf(t)]),r instanceof Yu||(r=i[Rf(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new WU(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 Yu&&(t=t.id),r instanceof Yu&&(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 Yu||(r=this._nodesMap[Rf(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)}}}Qr(Yu,UU("hostGraph","data"));Qr(WU,UU("hostGraph","edgeData"));function YU(e,t,r,n,i){for(var a=new Zme(n),o=0;o "+h)),u++)}var d=r.get("coordinateSystem"),v;if(d==="cartesian2d"||d==="polar")v=Ns(e,r);else{var g=dg.get(d),m=g?g.dimensions||[]:[];pt(m,"value")<0&&m.concat(["value"]);var y=pg(e,{coordDimensions:m,encodeDefine:r.getEncode()}).dimensions;v=new oi(y,r),v.initData(e)}var S=new oi(["value"],r);return S.initData(l,s),i&&i(v,S),DU({mainData:v,struct:a,structAttr:"graph",datas:{node:v,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var qme=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 wg(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),Oc(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){Ome(this);var s=YU(a,i,this,!0,l);return R(s.edges,function(u){Nme(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var g=o._categoriesModels,m=v.getShallow("category"),y=g[m];return y&&(y.parentModel=v.parentModel,v.parentModel=y),v});var f=Xt.prototype.getModel;function h(v,g){var m=f.call(this,v,g);return m.resolveParentPath=d,m}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=d,v.getModel=h,v});function d(v){if(v&&(v[0]==="label"||v[1]==="label")){var g=v.slice();return v[0]==="label"?g[0]="edgeLabel":v[1]==="label"&&(g[1]="edgeLabel"),g}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(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),pn("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=mH({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:fe({value:0},i)}),n=new oi(["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}(_r),jme={type:"graphRoam",event:"graphRoam",update:"none"};function Kme(e){e.registerChartView(Xme),e.registerSeriesModel(qme),e.registerProcessor(Lme),e.registerVisual(Pme),e.registerVisual(Rme),e.registerLayout(Fme),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Bme),e.registerLayout(Gme),e.registerCoordinateSystem("graphView",{dimensions:Cg.dimensions,create:Hme}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Ur),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Ur),e.registerAction(jme,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=CI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var Jme=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),Qme=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 Jme},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}(_t);function eye(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 _y(e,t){var r=e==null?"":e+"";return t&&(Ee(t)?r=t.replace("{value}",r):We(t)&&(r=t(e))),r}var tye=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=eye(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"),d=h?L_:ci,v=f.get("show"),g=f.getModel("lineStyle"),m=g.get("width"),y=[u,c];TM(y,!l),u=y[0],c=y[1];for(var S=c-u,b=u,w=[],C=0;v&&C=M&&(I===0?0:a[I-1][0])Math.PI/2&&(Le+=Math.PI)):De==="tangential"?Le=-D-Math.PI/2:Nt(De)&&(Le=De*Math.PI/180),Le===0?f.add(new kt({style:yr(b,{text:Z,x:ie,y:pe,verticalAlign:N<-.8?"top":N>.8?"bottom":"middle",align:O<-.4?"left":O>.4?"right":"center"},{inheritColor:Q}),silent:!0})):f.add(new kt({style:yr(b,{text:Z,x:ie,y:pe,verticalAlign:"middle",align:"center"},{inheritColor:Q}),silent:!0,originX:ie,originY:pe,rotation:Le}))}if(S.get("show")&&V!==w){var U=S.get("distance");U=U?U+c:c;for(var ze=0;ze<=C;ze++){O=Math.cos(D),N=Math.sin(D);var He=new cn({shape:{x1:O*(v-U)+h,y1:N*(v-U)+d,x2:O*(v-A-U)+h,y2:N*(v-A-U)+d},silent:!0,style:E});E.stroke==="auto"&&He.setStyle({stroke:a((V+ze/C)/w)}),f.add(He),D+=I}D-=I}else D+=M}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,h=this._data,d=this._progressEls,v=[],g=r.get(["pointer","show"]),m=r.getModel("progress"),y=m.get("show"),S=r.getData(),b=S.mapDimension("value"),w=+r.get("min"),C=+r.get("max"),x=[w,C],A=[s,l];function D(I,P){var E=S.getItemModel(I),F=E.getModel("pointer"),O=Ie(F.get("width"),o.r),N=Ie(F.get("length"),o.r),V=r.get(["pointer","icon"]),U=F.get("offsetCenter"),G=Ie(U[0],o.r),Z=Ie(U[1],o.r),Q=F.get("keepAspect"),ie;return V?ie=Jr(V,G-O/2,Z-N,O,N,null,Q):ie=new Qme({shape:{angle:-Math.PI/2,width:O,r:N,x:G,y:Z}}),ie.rotation=-(P+Math.PI/2),ie.x=o.cx,ie.y=o.cy,ie}function M(I,P){var E=m.get("roundCap"),F=E?L_:ci,O=m.get("overlap"),N=O?m.get("width"):c/S.count(),V=O?o.r-N:o.r-(I+1)*N,U=O?o.r:o.r-I*N,G=new F({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:V,r:U}});return O&&(G.z2=C-S.get(b,I)%C),G}(y||g)&&(S.diff(h).add(function(I){var P=S.get(b,I);if(g){var E=D(I,s);xr(E,{rotation:-((isNaN(+P)?A[0]:jt(P,x,A,!0))+Math.PI/2)},r),f.add(E),S.setItemGraphicEl(I,E)}if(y){var F=M(I,s),O=m.get("clip");xr(F,{shape:{endAngle:jt(P,x,A,O)}},r),f.add(F),VT(r.seriesIndex,S.dataType,I,F),v[I]=F}}).update(function(I,P){var E=S.get(b,I);if(g){var F=h.getItemGraphicEl(P),O=F?F.rotation:s,N=D(I,O);N.rotation=O,Bt(N,{rotation:-((isNaN(+E)?A[0]:jt(E,x,A,!0))+Math.PI/2)},r),f.add(N),S.setItemGraphicEl(I,N)}if(y){var V=d[P],U=V?V.shape.endAngle:s,G=M(I,U),Z=m.get("clip");Bt(G,{shape:{endAngle:jt(E,x,A,Z)}},r),f.add(G),VT(r.seriesIndex,S.dataType,I,G),v[I]=G}}).execute(),S.each(function(I){var P=S.getItemModel(I),E=P.getModel("emphasis"),F=E.get("focus"),O=E.get("blurScope"),N=E.get("disabled");if(g){var V=S.getItemGraphicEl(I),U=S.getItemVisual(I,"style"),G=U.fill;if(V instanceof bn){var Z=V.style;V.useStyle(fe({image:Z.image,x:Z.x,y:Z.y,width:Z.width,height:Z.height},U))}else V.useStyle(U),V.type!=="pointer"&&V.setColor(G);V.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),V.style.fill==="auto"&&V.setStyle("fill",a(jt(S.get(b,I),x,[0,1],!0))),V.z2EmphasisLift=0,Pn(V,P),Nr(V,F,O,N)}if(y){var Q=v[I];Q.useStyle(S.getItemVisual(I,"style")),Q.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),Q.z2EmphasisLift=0,Pn(Q,P),Nr(Q,F,O,N)}}),this._progressEls=v)},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=Jr(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 Ke,d=[],v=[],g=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){d[y]=new kt({silent:!0}),v[y]=new kt({silent:!0})}).update(function(y,S){d[y]=s._titleEls[S],v[y]=s._detailEls[S]}).execute(),l.each(function(y){var S=l.getItemModel(y),b=l.get(u,y),w=new Ke,C=a(jt(b,[c,f],[0,1],!0)),x=S.getModel("title");if(x.get("show")){var A=x.get("offsetCenter"),D=o.cx+Ie(A[0],o.r),M=o.cy+Ie(A[1],o.r),I=d[y];I.attr({z2:m?0:2,style:yr(x,{x:D,y:M,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),w.add(I)}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),U=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=v[y],G=P.get("formatter");I.attr({z2:m?0:2,style:yr(P,{x:F,y:O,text:_y(b,G),width:isNaN(N)?null:N,height:isNaN(V)?null:V,align:"center",verticalAlign:"middle"},{inheritColor:U})}),b4(I,{normal:P},b,function(Q){return _y(Q,G)}),g&&w4(I,y,l,r,{getFormattedLabel:function(Q,ie,pe,De,Le,ze){return _y(ze?ze.interpolatedValue:b,G)}}),w.add(I)}h.add(w)}),this.group.add(h),this._titleEls=d,this._detailEls=v},t.type="gauge",t}(lr),rye=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 ad(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}(_r);function nye(e){e.registerChartView(tye),e.registerSeriesModel(rye)}var iye=["itemStyle","opacity"],aye=function(e){j(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new di,s=new kt;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(iye);c=c??1,i||Za(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,xr(a,{style:{opacity:c}},o,n)):Bt(a,{style:{opacity:c},shape:{points:l.points}},o,n),Pn(a,s),this._updateLabel(r,n),Nr(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;Rn(o,vn(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 d=c.linePoints;a.setShape({points:d}),i.textGuideLineConfig={anchor:d?new nt(d[0][0],d[0][1]):null},Bt(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),cI(i,fI(l),{stroke:h})},t}(fi),oye=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 aye(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);Ap(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}(lr),sye=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 wg(Oe(this.getData,this),Oe(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return ad(this,{coordDimensions:["value"],encodeDefaulter:rt($M,this)})},t.prototype._defaultLabelLine=function(r){Oc(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}(_r);function lye(e,t){return an(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function uye(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();oTye)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||!Gx(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 Gx(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}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.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&ot(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=Qt(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}(wt),Iye=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}(Ja);function Qc(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=Ef(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Ef(s,[0,o]),i=a=Ef(s,[i,a]),n=0}t[0]=Ef(t[0],r),t[1]=Ef(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]=Ef(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 Ef(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Hx=R,ZU=Math.min,qU=Math.max,YF=Math.floor,Lye=Math.ceil,XF=Br,Pye=Math.PI,Rye=function(){function e(t,r,n){this.type="parallel",this._axesMap=Ve(),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;Hx(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Iye(o,sS(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();Hx(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Ah(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=an(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=Sy(t.get("axisExpandWidth"),l),f=Sy(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,d=t.get("axisExpandWindow"),v;if(d)v=Sy(d[1]-d[0],l),d[1]=d[0]+v;else{v=Sy(c*(f-1),l);var g=t.get("axisExpandCenter")||YF(u/2);d=[c*g-v/2],d[1]=d[0]+v}var m=(s-v)/(u-f);m<3&&(m=0);var y=[YF(XF(d[0]/c,1))+1,Lye(XF(d[1]/c,1))-1],S=m/c*d[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:d,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])}),Hx(n,function(o,s){var l=(i.axisExpandable?kye:Eye)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Pye/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],h=c[a],d=Yi();Xc(d,d,h),Ro(d,d,f),this._axesLayout[o]={position:f,rotation:h,transform:d,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?Qc(l,i,o,"all"):u="none";else{var d=i[1]-i[0],v=o[1]*s/d;i=[qU(0,v-d/2)],i[1]=ZU(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:u}},e}();function Sy(e,t){return ZU(qU(e,t[0]),t[1])}function Eye(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function kye(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--)_a(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;aBye}function t8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function r8(e,t,r,n){var i=new Ke;return i.add(new It({name:"main",style:VI(r),silent:!0,draggable:!0,cursor:"move",drift:rt(jF,e,t,i,["n","s","w","e"]),ondragend:rt(Gc,t,{isEnd:!0})})),R(n,function(a){i.add(new It({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:rt(jF,e,t,i,a),ondragend:rt(Gc,t,{isEnd:!0})}))}),i}function n8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Ih(i,zye),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,d=f-a+i/2,v=c-o,g=f-s,m=v+i,y=g+i;es(e,t,"main",o,s,v,g),n.transformable&&(es(e,t,"w",l,u,a,y),es(e,t,"e",h,u,a,y),es(e,t,"n",l,u,m,a),es(e,t,"s",l,d,m,a),es(e,t,"nw",l,u,a,a),es(e,t,"ne",h,u,a,a),es(e,t,"sw",l,d,a,a),es(e,t,"se",h,d,a,a))}function LA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(VI(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?PA(e,a[0]):Yye(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?$ye[s]+"-resize":null})})}function es(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(Zye(BI(e,t,[[n,i],[n+a,i+o]])))}function VI(e){return Ye({strokeNoScale:!0},e.brushStyle)}function i8(e,t,r,n){var i=[$p(e,r),$p(t,n)],a=[Ih(e,r),Ih(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function Uye(e){return Ac(e.group)}function PA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=U1(r[t],Uye(e));return n[i]}function Yye(e,t){var r=[PA(e,t[0]),PA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function jF(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=a8(t,i,a);R(n,function(u){var c=Gye[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(i8(s[0][0],s[1][0],s[0][1],s[1][1])),OI(t,r),Gc(t,{isEnd:!1})}function Xye(e,t,r,n){var i=t.__brushOption.range,a=a8(e,r,n);R(i,function(o){o[0]+=a[0],o[1]+=a[1]}),OI(e,t),Gc(e,{isEnd:!1})}function a8(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 BI(e,t,r){var n=e8(e,t);return n&&n!==zc?n.clipPath(r,e._transform):qe(r)}function Zye(e){var t=$p(e[0][0],e[1][0]),r=$p(e[0][1],e[1][1]),n=Ih(e[0][0],e[1][0]),i=Ih(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function qye(e,t,r){if(!(!e._brushType||Kye(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=FI(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var dS={lineX:QF(0),lineY:QF(1),rect:{createCover:function(e,t){function r(n){return n}return r8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=t8(e);return i8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){n8(e,t,r,n)},updateCommon:LA,contain:EA},polygon:{createCover:function(e,t){var r=new Ke;return r.add(new di({name:"main",style:VI(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new fi({name:"main",draggable:!0,drift:rt(Xye,e,t),ondragend:rt(Gc,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:BI(e,t,r)})},updateCommon:LA,contain:EA}};function QF(e){return{createCover:function(t,r){return r8({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=t8(t),n=$p(r[0][e],r[1][e]),i=Ih(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=e8(t,r);if(o!==zc&&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(),n8(t,r,l,i)},updateCommon:LA,contain:EA}}function s8(e){return e=zI(e),function(t){return y4(t,e)}}function l8(e,t){return e=zI(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 u8(e,t,r){var n=zI(e);return function(i,a){return n.contain(a[0],a[1])&&!uS(i,t,r)}}function zI(e){return st.create(e)}var Jye=["axisLine","axisTickLabel","axisName"],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.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new kI(n.getZr())).on("brush",Oe(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!e0e(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ke,this.group.add(this._axisGroup),!!r.get("show")){var s=r0e(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,h=l.getAxisLayout(f),d=fe({strokeContainThreshold:c},h),v=new si(r,d);R(Jye,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(d,u,r,s,c,i),fg(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=st.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:s8(f),isTargetByCursor:u8(f,s,a),getLinearBrushOtherExtent:l8(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(t0e(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 e0e(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function t0e(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 r0e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var n0e={type:"axisAreaSelect",event:"axisAreaSelected"};function i0e(e){e.registerAction(n0e,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 a0e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function c8(e){e.registerComponentView(Aye),e.registerComponentModel(Mye),e.registerCoordinateSystem("parallel",Nye),e.registerPreprocessor(wye),e.registerComponentModel(MA),e.registerComponentView(Qye),Mh(e,"parallel",MA,a0e),i0e(e)}function o0e(e){gt(c8),e.registerChartView(vye),e.registerSeriesModel(mye),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,bye)}var s0e=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}(),l0e=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new s0e},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(){As(this)},t.prototype.downplay=function(){Ds(this)},t}(_t),u0e=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"),d=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var g=new l0e,m=Qe(g);m.dataIndex=v.dataIndex,m.seriesIndex=r.seriesIndex,m.dataType="edge";var y=v.getModel(),S=y.getModel("lineStyle"),b=S.get("curveness"),w=v.node1.getLayout(),C=v.node1.getModel(),x=C.get("localX"),A=C.get("localY"),D=v.node2.getLayout(),M=v.node2.getModel(),I=M.get("localX"),P=M.get("localY"),E=v.getLayout(),F,O,N,V,U,G,Z,Q;g.shape.extent=Math.max(1,E.dy),g.shape.orient=d,d==="vertical"?(F=(x!=null?x*u:w.x)+E.sy,O=(A!=null?A*c:w.y)+w.dy,N=(I!=null?I*u:D.x)+E.ty,V=P!=null?P*c:D.y,U=F,G=O*(1-b)+V*b,Z=N,Q=O*b+V*(1-b)):(F=(x!=null?x*u:w.x)+w.dx,O=(A!=null?A*c:w.y)+E.sy,N=I!=null?I*u:D.x,V=(P!=null?P*c:D.y)+E.ty,U=F*(1-b)+N*b,G=O,Z=F*b+N*(1-b),Q=V),g.setShape({x1:F,y1:O,x2:N,y2:V,cpx1:U,cpy1:G,cpx2:Z,cpy2:Q}),g.useStyle(S.getItemStyle()),eV(g.style,d,v);var ie=""+y.get("value"),pe=vn(y,"edgeLabel");Rn(g,pe,{labelFetcher:{getFormattedLabel:function(ze,He,oe,ue,ve,me){return r.getFormattedLabel(ze,He,"edge",ue,To(ve,pe.normal&&pe.normal.get("formatter"),ie),me)}},labelDataIndex:v.dataIndex,defaultText:ie}),g.setTextConfig({position:"inside"});var De=y.getModel("emphasis");Pn(g,y,"lineStyle",function(ze){var He=ze.getItemStyle();return eV(He,d,v),He}),s.add(g),h.setItemGraphicEl(v.dataIndex,g);var Le=De.get("focus");Nr(g,Le==="adjacency"?v.getAdjacentDataIndices():Le==="trajectory"?v.getTrajectoryDataIndices():Le,De.get("blurScope"),De.get("disabled"))}),o.eachNode(function(v){var g=v.getLayout(),m=v.getModel(),y=m.get("localX"),S=m.get("localY"),b=m.getModel("emphasis"),w=m.get(["itemStyle","borderRadius"])||0,C=new It({shape:{x:y!=null?y*u:g.x,y:S!=null?S*c:g.y,width:g.dx,height:g.dy,r:w},style:m.getModel("itemStyle").getItemStyle(),z2:10});Rn(C,vn(m),{labelFetcher:{getFormattedLabel:function(A,D){return r.getFormattedLabel(A,D,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),C.disableLabelAnimation=!0,C.setStyle("fill",v.getVisual("color")),C.setStyle("decal",v.getVisual("style").decal),Pn(C,m),s.add(C),f.setItemGraphicEl(v.dataIndex,C),Qe(C).dataType="node";var x=b.get("focus");Nr(C,x==="adjacency"?v.getAdjacentDataIndices():x==="trajectory"?v.getTrajectoryDataIndices():x,b.get("blurScope"),b.get("disabled"))}),f.eachItemGraphicEl(function(v,g){var m=f.getItemModel(g);m.get("draggable")&&(v.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})},v.ondragend=function(){a._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(c0e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(lr);function eV(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 cg(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function c0e(e,t,r){var n=new It({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return xr(n,{shape:{width:e.width+20}},t,r),n}var f0e=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 Xt(o[l],this,n));if(a&&i){var u=YU(a,i,this,!0,c);return u.data}function c(f,h){f.wrapMethod("getItemModel",function(d,v){var g=d.parentModel,m=g.getData().getItemLayout(v);if(m){var y=m.depth,S=g.levelModels[y];S&&(d.parentModel=S)}return d}),h.wrapMethod("getItemModel",function(d,v){var g=d.parentModel,m=g.getGraph().getEdgeByIndex(v),y=m.node1.getLayout();if(y){var S=y.depth,b=g.levelModels[S];b&&(d.parentModel=b)}return d})}},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(d){return isNaN(d)||d==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return pn("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 pn("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}(_r);function h0e(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=d0e(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;p0e(u);var f=Qt(u,function(g){return g.getLayout().value===0}),h=f.length!==0?0:r.get("layoutIterations"),d=r.get("orient"),v=r.get("nodeAlign");v0e(u,c,n,i,o,s,h,d,v)})}function d0e(e,t){return an(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function v0e(e,t,r,n,i,a,o,s,l){g0e(e,t,r,i,a,s,l),S0e(e,t,a,i,n,o,s),I0e(e,s)}function p0e(e){R(e,function(t){var r=Nl(t.outEdges,N_),n=Nl(t.inEdges,N_),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function g0e(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,h=0;h=0;y&&m.depth>d&&(d=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?d:f-1;o&&o!=="left"&&m0e(e,o,a,A);var D=a==="vertical"?(i-r)/A:(n-r)/A;_0e(e,D,a)}function f8(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function m0e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,x0e(s,l,o),Wx(s,i,r,n,o),M0e(s,l,o),Wx(s,i,r,n,o)}function b0e(e,t){var r=[],n=t==="vertical"?"y":"x",i=kT(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 w0e(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 v=i==="vertical"?n:r;if(u=c-t-v,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var d=f-2;d>=0;--d)l=o[d],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 x0e(e,t,r){R(e.slice().reverse(),function(n){R(n,function(i){if(i.outEdges.length){var a=Nl(i.outEdges,C0e,r)/Nl(i.outEdges,N_);if(isNaN(a)){var o=i.outEdges.length;a=o?Nl(i.outEdges,T0e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Zl(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Zl(i,r))*t;i.setLayout({y:l},!0)}}})})}function C0e(e,t){return Zl(e.node2,t)*e.getValue()}function T0e(e,t){return Zl(e.node2,t)}function A0e(e,t){return Zl(e.node1,t)*e.getValue()}function D0e(e,t){return Zl(e.node1,t)}function Zl(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function N_(e){return e.getValue()}function Nl(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),R(n,function(s){var l=new hn({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 P0e(e){e.registerChartView(u0e),e.registerSeriesModel(f0e),e.registerLayout(h0e),e.registerVisual(L0e),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 h8=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],d=[i,a],v=d[c].get("type"),g=d[1-c].get("type"),m=t.data;if(m&&l){var y=[];R(m,function(w,C){var x;ge(w)?(x=w.slice(),w.unshift(C)):ge(w.value)?(x=fe({},w),x.value=x.value.slice(),w.value.unshift(C)):x=w,y.push(x)}),t.data=y}var S=this.defaultValueDimensions,b=[{name:f,type:T_(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:T_(g),dimsDef:S.slice()}];return ad(this,{coordDimensions:b,dimensionsCount:S.length+1,encodeDefaulter:rt(W4,b,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),d8=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}(_r);Qr(d8,h8,!0);var R0e=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=tV(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?(Za(f),v8(h,f,a,u)):f=tV(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}(lr),E0e=function(){function e(){}return e}(),k0e=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 E0e},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 w=[y,b];n.push(w)}}}return{boxData:r,outliers:n}}var G0e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Yn){var n="";Wt(n)}var i=z0e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function $0e(e){e.registerSeriesModel(d8),e.registerChartView(R0e),e.registerLayout(N0e),e.registerTransform(G0e)}var H0e=["color","borderColor"],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){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){eu(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&&rV(u,f))return;var h=Ux(f,c,!0);xr(h,{shape:{points:f.ends}},r,c),Yx(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 d=n.getItemLayout(c);if(s&&rV(u,d)){a.remove(h);return}h?(Bt(h,{shape:{points:d.ends}},r,c),Za(h)):h=Ux(d),Yx(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(),nV(r,this.group);var n=r.get("clip",!0)?_g(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=Ux(s);Yx(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){nV(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}(lr),U0e=function(){function e(){}return e}(),Y0e=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 U0e},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}(_t);function Ux(e,t,r){var n=e.ends;return new Y0e({shape:{points:r?X0e(n,e):n},z2:100})}function rV(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(H0e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var p8=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}(_r);Qr(p8,h8,!0);function q0e(e){!e||!ge(e.series)||R(e.series,function(t){Ze(t)&&t.type==="k"&&(t.type="candlestick")})}var j0e=["itemStyle","borderColor"],K0e=["itemStyle","borderColor0"],J0e=["itemStyle","borderColorDoji"],Q0e=["itemStyle","color"],e_e=["itemStyle","color0"],t_e={seriesType:"candlestick",plan:td(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?Q0e:e_e)}function n(a,o){return o.get(a===0?J0e:a>0?j0e:K0e)}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");fe(f,c)}}}}}},r_e={seriesType:"candlestick",plan:td(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=n_e(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?v:d};function d(g,m){for(var y,S=m.getStore();(y=g.next())!=null;){var b=S.get(s,y),w=S.get(u,y),C=S.get(c,y),x=S.get(f,y),A=S.get(h,y),D=Math.min(w,C),M=Math.max(w,C),I=U(D,b),P=U(M,b),E=U(x,b),F=U(A,b),O=[];G(O,P,0),G(O,I,1),O.push(Q(F),Q(P),Q(E),Q(I));var N=m.getItemModel(y),V=!!N.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:iV(S,y,w,C,c,V),initBaseline:w>C?P[a]:I[a],ends:O,brushRect:Z(x,A,b)})}function U(ie,pe){var De=[];return De[i]=pe,De[a]=ie,isNaN(pe)||isNaN(ie)?[NaN,NaN]:t.dataToPoint(De)}function G(ie,pe,De){var Le=pe.slice(),ze=pe.slice();Le[i]=S0(Le[i]+n/2,1,!1),ze[i]=S0(ze[i]-n/2,1,!0),De?ie.push(Le,ze):ie.push(ze,Le)}function Z(ie,pe,De){var Le=U(ie,De),ze=U(pe,De);return Le[i]-=n/2,ze[i]-=n/2,{x:Le[0],y:Le[1],width:n,height:ze[1]-Le[1]}}function Q(ie){return ie[i]=S0(ie[i],1),ie}}function v(g,m){for(var y=wo(g.count*4),S=0,b,w=[],C=[],x,A=m.getStore(),D=!!e.get(["itemStyle","borderColorDoji"]);(x=g.next())!=null;){var M=A.get(s,x),I=A.get(u,x),P=A.get(c,x),E=A.get(f,x),F=A.get(h,x);if(isNaN(M)||isNaN(E)||isNaN(F)){y[S++]=NaN,S+=3;continue}y[S++]=iV(A,x,I,P,c,D),w[i]=M,w[a]=E,b=t.dataToPoint(w,null,C),y[S++]=b?b[0]:NaN,y[S++]=b?b[1]:NaN,w[a]=F,b=t.dataToPoint(w,null,C),y[S++]=b?b[1]:NaN}m.setLayout("largePoints",y)}}};function iV(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 n_e(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(tt(e.get("barMaxWidth"),i),i),o=Ie(tt(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?Ie(s,i):Math.max(Math.min(i/2,a),o)}function i_e(e){e.registerChartView(W0e),e.registerSeriesModel(p8),e.registerPreprocessor(q0e),e.registerVisual(t_e),e.registerLayout(r_e)}function aV(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 a_e=function(e){j(t,e);function t(r,n){var i=e.call(this)||this,a=new mg(r,n),o=new Ke;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;We(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 Sl(r.__p1,r.__cp1)+Sl(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=mn,c=_T;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 d=r.__t<1?h[0]-f[0]:f[0]-h[0],v=r.__t<1?h[1]-f[1]:f[1]-h[1];r.rotation=-Math.atan2(v,d)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(g8),c_e=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),f_e=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 c_e},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 d=(u+f)/2-(c-h)*a,v=(c+h)/2-(f-u)*a;r.quadraticCurveTo(d,v,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++],d=1;d0){var m=(f+v)/2-(h-g)*o,y=(h+g)/2-(v-f)*o;if(W$(f,h,m,y,v,g,s,r,n))return l}else if(fl(f,h,v,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}(),y8={seriesType:"lines",plan:td(),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)&&_g(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=y8.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 h_e:new EI(o?a?u_e:m8:a?g8:RI),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}(lr),v_e=typeof Uint32Array>"u"?Array:Uint32Array,p_e=typeof Float64Array>"u"?Array:Float64Array;function oV(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),fM([i,r[0],r[1]])}))}var g_e=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||[],oV(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(oV(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=t_(this._flatCoords,n.flatCoords),this._flatCoordsOffset=t_(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}(_r);function by(e){return e instanceof Array||(e=[e,e]),e}var m_e={seriesType:"lines",reset:function(e){var t=by(e.get("symbol")),r=by(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=by(s.getShallow("symbol",!0)),u=by(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 y_e(e){e.registerChartView(d_e),e.registerSeriesModel(g_e),e.registerLayout(y8),e.registerVisual(m_e)}var __e=256,S_e=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Hl.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"),d=t.length;f.width=r,f.height=n;for(var v=0;v0){var E=o(b)?l:u;b>0&&(b=b*I+D),C[x++]=E[P],C[x++]=E[P+1],C[x++]=E[P+2],C[x++]=E[P+3]*b*256}else x+=4}return h.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Hl.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 b_e(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 sV(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var x_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.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()):sV(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&&(sV(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){eu(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Kc(s,"cartesian2d"),u,c,f,h;if(l){var d=s.getAxis("x"),v=s.getAxis("y");u=d.getBandWidth()+.5,c=v.getBandWidth()+.5,f=d.scale.getExtent(),h=v.scale.getExtent()}for(var g=this.group,m=r.getData(),y=r.getModel(["emphasis","itemStyle"]).getItemStyle(),S=r.getModel(["blur","itemStyle"]).getItemStyle(),b=r.getModel(["select","itemStyle"]).getItemStyle(),w=r.get(["itemStyle","borderRadius"]),C=vn(r),x=r.getModel("emphasis"),A=x.get("focus"),D=x.get("blurScope"),M=x.get("disabled"),I=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 It({shape:{x:V[0]-u/2,y:V[1]-c/2,width:u,height:c},style:F})}else{if(isNaN(m.get(I[1],P)))continue;E=new It({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:F})}if(m.hasItemOption){var U=m.getItemModel(P),G=U.getModel("emphasis");y=G.getModel("itemStyle").getItemStyle(),S=U.getModel(["blur","itemStyle"]).getItemStyle(),b=U.getModel(["select","itemStyle"]).getItemStyle(),w=U.get(["itemStyle","borderRadius"]),A=G.get("focus"),D=G.get("blurScope"),M=G.get("disabled"),C=vn(U)}E.shape.r=w;var Z=r.getRawValue(P),Q="-";Z&&Z[2]!=null&&(Q=Z[2]+""),Rn(E,C,{labelFetcher:r,labelDataIndex:P,defaultOpacity:F.opacity,defaultText:Q}),E.ensureState("emphasis").style=y,E.ensureState("blur").style=S,E.ensureState("select").style=b,Nr(E,A,D,M),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 S_e;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),d=Math.max(c.y,0),v=Math.min(c.width+c.x,a.getWidth()),g=Math.min(c.height+c.y,a.getHeight()),m=v-h,y=g-d,S=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],b=l.mapArray(S,function(A,D,M){var I=r.dataToPoint([A,D]);return I[0]-=h,I[1]-=d,I.push(M),I}),w=i.getExtent(),C=i.type==="visualMap.continuous"?w_e(w,i.option.range):b_e(w,i.getPieceList(),i.option.selected);u.update(b,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var x=new bn({style:{width:m,height:y,x:h,y:d,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(lr),C_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.getInitialData=function(r,n){return Ns(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=dg.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}(_r);function T_e(e){e.registerChartView(x_e),e.registerSeriesModel(C_e)}var A_e=["itemStyle","borderWidth"],lV=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],qx=new Os,D_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.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:lV[+c],categoryDim:lV[1-+c]};o.diff(s).add(function(v){if(o.hasValue(v)){var g=cV(o,v),m=uV(o,v,g,h),y=fV(o,h,m);o.setItemGraphicEl(v,y),a.add(y),dV(y,h,m)}}).update(function(v,g){var m=s.getItemGraphicEl(g);if(!o.hasValue(v)){a.remove(m);return}var y=cV(o,v),S=uV(o,v,y,h),b=C8(o,S);m&&b!==m.__pictorialShapeStr&&(a.remove(m),o.setItemGraphicEl(v,null),m=null),m?k_e(m,h,S):m=fV(o,h,S,!0),o.setItemGraphicEl(v,m),m.__pictorialSymbolMeta=S,a.add(m),dV(m,h,S)}).remove(function(v){var g=s.getItemGraphicEl(v);g&&hV(s,v,g.__pictorialSymbolMeta.animationModel,g)}).execute();var d=r.get("clip",!0)?_g(r.coordinateSystem,!1,r):null;return d?a.setClipPath(d):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){hV(a,Qe(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(lr);function uV(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};M_e(r,a,i,n,h),I_e(e,t,i,a,o,h.boundingLength,h.pxSign,c,n,h),L_e(r,h.symbolScale,u,n,h);var d=h.symbolSize,v=qc(r.get("symbolOffset"),d);return P_e(r,d,i,a,o,v,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function M_e(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=[jx(s,o[0])-l,jx(s,o[1])-l];f[1]0?1:-1}function jx(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function I_e(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(r[f.wh]),d=e.getItemVisual(t,"symbolSize"),v;ge(d)?v=d.slice():d==null?v=["100%","100%"]:v=[d,d],v[f.index]=Ie(v[f.index],h),v[c.index]=Ie(v[c.index],n?h:Math.abs(a)),u.symbolSize=v;var g=u.symbolScale=[v[0]/s,v[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function L_e(e,t,r,n,i){var a=e.get(A_e)||0;a&&(qx.attr({scaleX:t[0],scaleY:t[1],rotation:r}),qx.updateTransform(),a/=qx.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function P_e(e,t,r,n,i,a,o,s,l,u,c,f){var h=c.categoryDim,d=c.valueDim,v=f.pxSign,g=Math.max(t[d.index]+s,0),m=g;if(n){var y=Math.abs(l),S=_n(e.get("symbolMargin"),"15%")+"",b=!1;S.lastIndexOf("!")===S.length-1&&(b=!0,S=S.slice(0,S.length-1));var w=Ie(S,t[d.index]),C=Math.max(g+w*2,0),x=b?0:w*2,A=L$(n),D=A?n:vV((y+x)/C),M=y-D*g;w=M/2/(b?D:Math.max(D-1,1)),C=g+w*2,x=b?0:w*2,!A&&n!=="fixed"&&(D=u?vV((Math.abs(u)+x)/C):0),m=D*C-x,f.repeatTimes=D,f.symbolMargin=w}var I=v*(m/2),P=f.pathPosition=[];P[h.index]=r[h.wh]/2,P[d.index]=o==="start"?I:o==="end"?l-I:l/2,a&&(P[0]+=a[0],P[1]+=a[1]);var E=f.bundlePosition=[];E[h.index]=r[h.xy],E[d.index]=r[d.xy];var F=f.barRectShape=fe({},r);F[d.wh]=v*Math.max(Math.abs(r[d.wh]),Math.abs(P[d.index]+I)),F[h.wh]=r[h.wh];var O=f.clipShape={};O[h.xy]=-r[h.xy],O[h.wh]=c.ecSize[h.wh],O[d.xy]=0,O[d.wh]=r[d.wh]}function _8(e){var t=e.symbolPatternSize,r=Jr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function S8(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(GI(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 b8(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?ph(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=_8(r),i.add(a),ph(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 w8(e,t,r){var n=fe({},t.barRectShape),i=e.__pictorialBarRect;i?ph(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new It({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function x8(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=fe({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)Bt(i,{shape:a},s,l);else{a[o.wh]=0,i=new It({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],Zc[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function cV(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=R_e,r.isAnimationEnabled=E_e,r}function R_e(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function E_e(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function fV(e,t,r,n){var i=new Ke,a=new Ke;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?S8(i,t,r):b8(i,t,r),w8(i,r,n),x8(i,t,r,n),i.__pictorialShapeStr=C8(e,r),i.__pictorialSymbolMeta=r,i}function k_e(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;Bt(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?S8(e,t,r,!0):b8(e,t,r,!0),w8(e,r,!0),x8(e,t,r,!0)}function hV(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];GI(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),R(a,function(o){Ul(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function C8(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function GI(e,t,r){R(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function ph(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&Zc[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function dV(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");GI(e,function(g){if(g instanceof bn){var m=g.style;g.useStyle(fe({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 d=t.valueDim.posDesc[+(r.boundingLength>0)],v=e.__pictorialBarRect;v.ignoreClip=!0,Rn(v,vn(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Dh(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:d}),Nr(e,c,f,a.get("disabled"))}function vV(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var O_e=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=tu(Np.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}(Np);function N_e(e){e.registerChartView(D_e),e.registerSeriesModel(O_e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,rt(sW,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lW("pictorialBar"))}var F_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 d=new Ms(this._layersSeries||[],l,h,h),v=[];d.add(Oe(g,this,"add")).update(Oe(g,this,"update")).remove(Oe(g,this,"remove")).execute();function g(m,y,S){var b=o._layers;if(m==="remove"){s.remove(b[y]);return}for(var w=[],C=[],x,A=l[y].indices,D=0;Da&&(a=s),n.push(s)}for(var u=0;ua&&(a=f)}return{y0:i,max:a}}function $_e(e){e.registerChartView(F_e),e.registerSeriesModel(B_e),e.registerLayout(z_e),e.registerProcessor(bg("themeRiver"))}var H_e=2,W_e=4,gV=function(e){j(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=H_e,o.textConfig={inside:!0},Qe(o).seriesIndex=n.seriesIndex;var s=new kt({z2:W_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;Qe(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=fe({},c);f.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var d=n.getVisual("decal");d&&(h.decal=Th(d,o));var v=dc(l.getModel("itemStyle"),f,!0);fe(f,v),R(ui,function(S){var b=s.ensureState(S),w=l.getModel([S,"itemStyle"]);b.style=w.getItemStyle();var C=dc(w,f);C&&(b.shape=C)}),r?(s.setShape(f),s.shape.r=c.r0,xr(s,{shape:{r:c.r}},i,n.dataIndex)):(Bt(s,{shape:f},i),Za(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;Nr(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(),d=this.node.dataIndex,v=a.get("minAngle")/180*Math.PI,g=a.get("show")&&!(v!=null&&Math.abs(s)O&&!wp(V-O)&&V0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,r,n,i):(o.virtualPiece=new gV(S,r,n,i),c.add(o.virtualPiece)),b.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(b.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";m_(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:kA,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}(lr),Z_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};T8(i);var a=this._levelModels=Se(r.levels||[],function(l){return new Xt(l,this,n)},this),o=AI.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=fS(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(){LU(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}(_r);function T8(e){var t=0;R(e.children,function(n){T8(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 yV=Math.PI/180;function q_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),d=-n.get("startAngle")*yV,v=n.get("minAngle")*yV,g=n.getData().tree.root,m=n.getViewRoot(),y=m.depth,S=n.get("sort");S!=null&&A8(m,S);var b=0;R(m.children,function(V){!isNaN(V.getValue())&&b++});var w=m.getValue(),C=Math.PI/(w||b)*2,x=m.depth>0,A=m.height-(x?-1:1),D=(h-f)/(A||1),M=n.get("clockwise"),I=n.get("stillShowZeroSum"),P=M?1:-1,E=function(V,U){if(V){var G=U;if(V!==g){var Z=V.getValue(),Q=w===0&&I?C:Z*C;Q1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&Ee(s)&&(s=wT(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");fe(u,l)})})}function J_e(e){e.registerChartView(X_e),e.registerSeriesModel(Z_e),e.registerLayout(rt(q_e,"sunburst")),e.registerProcessor(rt(bg,"sunburst")),e.registerVisual(K_e),Y_e(e)}var _V={color:"fill",borderColor:"stroke"},Q_e={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},bs=Lt(),e1e=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 Ns(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=bs(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}(_r);function t1e(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 r1e(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:Oe(t1e,e)}}}function n1e(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 i1e(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:Oe(n1e,e)}}}function a1e(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 o1e(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:Oe(a1e,e)}}}function s1e(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 l1e(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:Oe(s1e,e)}}}function u1e(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 D8(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Ne(e,"text")))}function M8(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},Ne(n,"text")&&(o.text=n.text),Ne(n,"rich")&&(o.rich=n.rich),Ne(n,"textFill")&&(o.fill=n.textFill),Ne(n,"textStroke")&&(o.stroke=n.textStroke),Ne(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Ne(n,"fontSize")&&(o.fontSize=n.fontSize),Ne(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Ne(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Ne(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),Ne(n,"textPosition")&&(i.position=n.textPosition),Ne(n,"textOffset")&&(i.offset=n.textOffset),Ne(n,"textRotation")&&(i.rotation=n.textRotation),Ne(n,"textDistance")&&(i.distance=n.textDistance)}return SV(o,e),R(o.rich,function(l){SV(l,l)}),{textConfig:i,textContent:a}}function SV(e,t){t&&(t.font=t.textFont||t.font,Ne(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Ne(t,"textAlign")&&(e.align=t.textAlign),Ne(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Ne(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Ne(t,"textWidth")&&(e.width=t.textWidth),Ne(t,"textHeight")&&(e.height=t.textHeight),Ne(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Ne(t,"textPadding")&&(e.padding=t.textPadding),Ne(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Ne(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Ne(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Ne(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Ne(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Ne(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Ne(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function bV(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";wV(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){wV(s,s)}),n}function wV(e,t){t&&(Ne(t,"fill")&&(e.textFill=t.fill),Ne(t,"stroke")&&(e.textStroke=t.fill),Ne(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Ne(t,"font")&&(e.font=t.font),Ne(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Ne(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Ne(t,"fontSize")&&(e.fontSize=t.fontSize),Ne(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Ne(t,"align")&&(e.textAlign=t.align),Ne(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Ne(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Ne(t,"width")&&(e.textWidth=t.width),Ne(t,"height")&&(e.textHeight=t.height),Ne(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Ne(t,"padding")&&(e.textPadding=t.padding),Ne(t,"borderColor")&&(e.textBorderColor=t.borderColor),Ne(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Ne(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Ne(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Ne(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Ne(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Ne(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Ne(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Ne(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Ne(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Ne(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var I8={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},xV=xt(I8);Po(Eo,function(e,t){return e[t]=1,e},{});Eo.join(", ");var F_=["","style","shape","extra"],Lh=Lt();function $I(e,t,r,n,i){var a=e+"Animation",o=Zh(e,n,i)||{},s=Lh(t).userDuring;return o.duration>0&&(o.during=s?Oe(v1e,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),fe(o,r[a]),o}function A0(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Lh(e),u=t.style;l.userDuring=t.during;var c={},f={};if(g1e(e,t,f),TV("shape",t,f),TV("extra",t,f),!a&&s&&(p1e(e,t,c),CV("shape",e,t,c),CV("extra",e,t,c),m1e(e,t,u,c)),f.style=u,c1e(e,f,o),h1e(e,t),s)if(a){var h={};R(F_,function(v){var g=v?t[v]:t;g&&g.enterFrom&&(v&&(h[v]=h[v]||{}),fe(v?h[v]:h,g.enterFrom))});var d=$I("enter",e,t,r,i);d.duration>0&&e.animateFrom(h,d)}else f1e(e,t,i||0,r,c);L8(e,t),u?e.dirty():e.markRedraw()}function L8(e,t){for(var r=Lh(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function h1e(e,t){Ne(t,"silent")&&(e.silent=t.silent),Ne(t,"ignore")&&(e.ignore=t.ignore),e instanceof xa&&Ne(t,"invisible")&&(e.invisible=t.invisible),e instanceof _t&&Ne(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var co={},d1e={setTransform:function(e,t){return co.el[e]=t,this},getTransform:function(e){return co.el[e]},setShape:function(e,t){var r=co.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=co.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=co.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=co.el.style;if(t)return t[e]},setExtra:function(e,t){var r=co.el.extra||(co.el.extra={});return r[e]=t,this},getExtra:function(e){var t=co.el.extra;if(t)return t[e]}};function v1e(){var e=this,t=e.el;if(t){var r=Lh(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}co.el=t,n(d1e)}}function CV(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]={}),Ic(l))fe(o,a);else for(var u=nr(l),c=0;c=0){!o&&(o=n[e]={});for(var d=xt(a),c=0;c=0)){var h=e.getAnimationStyleProps(),d=h?h.style:null;if(d){!a&&(a=n.style={});for(var v=xt(r),u=0;u=0?t.getStore().get(U,N):void 0}var G=t.get(V.name,N),Z=V&&V.ordinalMeta;return Z?Z.categories[G]:G}function x(O,N){N==null&&(N=u);var V=t.getItemVisual(N,"style"),U=V&&V.fill,G=V&&V.opacity,Z=S(N,Dl).getItemStyle();U!=null&&(Z.fill=U),G!=null&&(Z.opacity=G);var Q={inheritColor:Ee(U)?U:"#000"},ie=b(N,Dl),pe=yr(ie,null,Q,!1,!0);pe.text=ie.getShallow("show")?tt(e.getFormattedLabel(N,Dl),Dh(t,N)):null;var De=p_(ie,Q,!1);return M(O,Z),Z=bV(Z,pe,De),O&&D(Z,O),Z.legacy=!0,Z}function A(O,N){N==null&&(N=u);var V=S(N,ws).getItemStyle(),U=b(N,ws),G=yr(U,null,null,!0,!0);G.text=U.getShallow("show")?To(e.getFormattedLabel(N,ws),e.getFormattedLabel(N,Dl),Dh(t,N)):null;var Z=p_(U,null,!0);return M(O,V),V=bV(V,G,Z),O&&D(V,O),V.legacy=!0,V}function D(O,N){for(var V in N)Ne(N,V)&&(O[V]=N[V])}function M(O,N){O&&(O.textFill&&(N.textFill=O.textFill),O.textPosition&&(N.textPosition=O.textPosition))}function I(O,N){if(N==null&&(N=u),Ne(_V,O)){var V=t.getItemVisual(N,"style");return V?V[_V[O]]:null}if(Ne(Q_e,O))return t.getItemVisual(N,O)}function P(O){if(a.type==="cartesian2d"){var N=a.getBaseAxis();return ghe(Ye({axis:N},O))}}function E(){return r.getCurrentSeriesIndices()}function F(O){return OM(O,r)}}function D1e(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 eC(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=XI(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Nr(s,n.focus,n.blurScope,n.emphasisDisabled),s}function XI(e,t,r,n,i,a){var o=-1,s=t;t&&k8(t,n,i)&&(o=pt(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=UI(n),s&&x1e(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),sa.normal.cfg=sa.normal.conOpt=sa.emphasis.cfg=sa.emphasis.conOpt=sa.blur.cfg=sa.blur.conOpt=sa.select.cfg=sa.select.conOpt=null,sa.isLegacy=!1,I1e(u,r,n,i,l,sa),M1e(u,r,n,i,l),YI(e,u,r,n,sa,i,l),Ne(n,"info")&&(bs(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function k8(e,t,r){var n=bs(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&k1e(a)&&O8(a)!==n.customPathData||i==="image"&&Ne(o,"image")&&o.image!==n.customImagePath}function M1e(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&&k8(o,a,n)&&(o=null),o||(o=UI(a),e.setClipPath(o)),YI(null,o,t,a,null,n,i)}}function I1e(e,t,r,n,i,a){if(!e.isGroup){DV(r,null,a),DV(r,ws,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=UI(o),e.setTextContent(c)),YI(null,c,t,o,null,n,i);for(var f=o&&o.style,h=0;h=c;d--){var v=t.childAt(d);P1e(t,v,i)}}}function P1e(e,t,r){t&&vS(t,bs(e).option,r)}function R1e(e){new Ms(e.oldChildren,e.newChildren,MV,MV,e).add(IV).update(IV).remove(E1e).execute()}function MV(e,t){var r=e&&e.name;return r??b1e+t}function IV(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;XI(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function E1e(e){var t=this.context,r=t.oldChildren[e];r&&vS(r,bs(r).option,t.seriesModel)}function O8(e){return e&&(e.pathData||e.d)}function k1e(e){return e&&(Ne(e,"pathData")||Ne(e,"d"))}function O1e(e){e.registerChartView(C1e),e.registerSeriesModel(e1e)}var Qu=Lt(),LV=qe,tC=Oe,qI=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 Ke,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=rt(PV,r,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}EV(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=_I(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=Qu(t).pointerEl=new Zc[a.type](LV(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Qu(t).labelEl=new kt(LV(r.label));t.add(a),RV(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Qu(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=Qu(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),RV(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=hg(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Cs(u.event)},onmousedown:tC(this._onHandleDragMove,this,0,0),drift:tC(this._onHandleDragMove,this),ondragend:tC(this._onHandleDragEnd,this)}),n.add(i)),EV(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,rd(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){PV(this._axisPointerModel,!r&&this._moveAnimation,this._handle,rC(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(rC(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(rC(i)),Qu(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),Lp(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 PV(e,t,r,n){N8(Qu(r).lastProp,n)||(Qu(r).lastProp=n,t?Bt(r,n,e):(r.stopAnimation(),r.attr(n)))}function N8(e,t){if(Ze(e)&&Ze(t)){var r=!0;return R(t,function(n,i){r=r&&N8(e[i],n)}),!!r}else return e===t}function RV(e,t){e[t.get(["label","show"])?"show":"hide"]()}function rC(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function EV(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 jI(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 F8(e,t,r,n,i){var a=r.get("value"),o=V8(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Jh(s.get("padding")||0),u=s.getFont(),c=ag(o,u),f=i.position,h=c.width+l[1]+l[3],d=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=h),v==="center"&&(f[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(f[1]-=d),g==="middle"&&(f[1]-=d/2),N1e(f,h,d,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:yr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function N1e(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 V8(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:lI(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):We(o)&&(a=o(s))}return a}function KI(e,t,r){var n=Yi();return Xc(n,n,r.rotation),Ro(n,n,r.position),Wa([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function B8(e,t,r,n,i,a){var o=si.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),F8(t,n,i,a,{position:KI(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function JI(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function z8(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function kV(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var F1e=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=OV(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=jI(a),d=V1e[u](s,f,c);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=gA(l.model,i);B8(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=gA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=KI(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=OV(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,d=[h,h];d[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:d,tooltipOption:v[c]}},t}(qI);function OV(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var V1e={line:function(e,t,r){var n=JI([t,r[0]],[t,r[1]],NV(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:z8([t-n/2,r[0]],[n,i],NV(e))}}};function NV(e){return e.dim==="x"?0:1}var 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="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(wt),ds=Lt(),z1e=R;function G8(e,t,r){if(!St.node){var n=t.getZr();ds(n).records||(ds(n).records={}),G1e(n,t);var i=ds(n).records[e]||(ds(n).records[e]={});i.handler=r}}function G1e(e,t){if(ds(e).initialized)return;ds(e).initialized=!0,r("click",rt(FV,"click")),r("mousemove",rt(FV,"mousemove")),r("globalout",H1e);function r(n,i){e.on(n,function(a){var o=W1e(t);z1e(ds(e).records,function(s){s&&i(s,a,o.dispatchAction)}),$1e(o.pendings,t)})}}function $1e(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 H1e(e,t,r){e.handler("leave",null,r)}function FV(e,t,r,n){t.handler(e,r,n)}function W1e(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 FA(e,t){if(!St.node){var r=t.getZr(),n=(ds(r).records||{})[e];n&&(ds(r).records[e]=null)}}var U1e=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";G8("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){FA("axisPointer",n)},t.prototype.dispose=function(r,n){FA("axisPointer",n)},t.type="axisPointer",t}(Mr);function $8(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Nc(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,d=f==="x"||f==="radius"?1:0,v=a.mapDimension(h),g=[];g[d]=a.get(v,o),g[1-d]=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 VV=Lt();function Y1e(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Oe(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){D0(i)&&(i=$8({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=D0(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||D0(i),h={},d={},v={list:[],map:{}},g={showPointer:rt(Z1e,d),showTooltip:rt(q1e,v)};R(s.coordSysMap,function(y,S){var b=l||y.containPoint(i);R(s.coordSysAxesInfo[S],function(w,C){var x=w.axis,A=Q1e(u,w);if(!f&&b&&(!u||A)){var D=A&&A.value;D==null&&!l&&(D=x.pointToData(i)),D!=null&&BV(w,D,g,!1,h)}})});var m={};return R(c,function(y,S){var b=y.linkGroup;b&&!d[S]&&R(b.axesInfo,function(w,C){var x=d[C];if(w!==y&&x){var A=x.value;b.mapper&&(A=y.axis.scale.parse(b.mapper(A,zV(w),zV(y)))),m[y.key]=A}})}),R(m,function(y,S){BV(c[S],y,g,!0,h)}),j1e(d,c,h),K1e(v,i,e,o),J1e(c,o,r),h}}function BV(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=X1e(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&fe(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function X1e(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 d=l.getAxisTooltipData(c,e,r);h=d.dataIndices,f=d.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 v=e-f,g=Math.abs(v);g<=o&&((g=0&&s<0)&&(o=g,s=v,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 Z1e(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function q1e(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=Fp(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 j1e(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 K1e(e,t,r,n){if(D0(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 J1e(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=VV(n)[i]||{},o=VV(n)[i]={};R(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&R(f.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;o[d]=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 Q1e(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 zV(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 D0(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Tg(e){Jc.registerAxisPointerClass("CartesianAxisPointer",F1e),e.registerComponentModel(B1e),e.registerComponentView(U1e),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=upe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Y1e)}function eSe(e){gt(gU),gt(Tg)}var tSe=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 d=jI(a),v=nSe[h](s,l,f,c);v.style=d,r.graphicKey=v.type,r.pointer=v}var g=a.get(["label","margin"]),m=rSe(n,i,a,l,g);F8(r,i,a,o,m)},t}(qI);function rSe(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=Yi();Xc(h,h,s),Ro(h,h,[n.cx,n.cy]),u=Wa([o,-i],h);var d=t.getModel("axisLabel").get("rotate")||0,v=si.innerTextLayout(s,d*Math.PI/180,-1);c=v.textAlign,f=v.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 nSe={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:JI(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:kV(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:kV(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}},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.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}(wt),QI=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",jr).models[0]},t.type="polarAxis",t}(wt);Qr(QI,gg);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.type="angleAxis",t}(QI),oSe=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}(QI),eL=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}(Ja);eL.prototype.dataToRadius=Ja.prototype.dataToCoord;eL.prototype.radiusToData=Ja.prototype.coordToData;var sSe=Lt(),tL=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=ag(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var d=Math.max(0,Math.floor(h)),v=sSe(r.model),g=v.lastAutoInterval,m=v.lastTickCount;return g!=null&&m!=null&&Math.abs(g-d)<=1&&Math.abs(m-o)<=1&&g>d?d=g:(v.lastTickCount=o,v.lastAutoInterval=d),d},t}(Ja);tL.prototype.dataToAngle=Ja.prototype.dataToCoord;tL.prototype.angleToData=Ja.prototype.coordToData;var H8=["radius","angle"],lSe=function(){function e(t){this.dimensions=H8,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new eL,this._angleAxis=new tL,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=GV(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=GV(r);return i===this?this.pointToData(n):null},e}();function GV(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function uSe(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 cSe(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(A_(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),R(A_(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Ah(n.scale,n.model),Ah(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 fSe(e){return e.mainType==="angleAxis"}function $V(e,t){var r;if(e.type=t.get("type"),e.scale=sS(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),fSe(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 hSe={dimensions:H8,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new lSe(i+"");a.update=cSe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");$V(o,l),$V(s,u),uSe(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",jr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}},dSe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function wy(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 xy(e){var t=e.getRadiusAxis();return t.inverse?0:1}function HV(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 vSe=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=qe(c);var f=i.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(h),c});HV(u),HV(s),R(dSe,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&pSe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Jc),pSe={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=xy(r),f=c?0:1,h,d=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?h=new Zc[d]({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 lg({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[xy(r)],u=Se(n,function(c){return new cn({shape:wy(r,[l,l+s],c.coord)})});e.add(ma(u,{style:Ye(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[xy(r)],c=[],f=0;fy?"left":"right",w=Math.abs(m[1]-S)/g<.3?"middle":m[1]>S?"top":"bottom";if(s&&s[v]){var C=s[v];Ze(C)&&C.textStyle&&(d=new Xt(C.textStyle,l,l.ecModel))}var x=new kt({silent:si.isLabelSilent(t),style:yr(d,{x:m[0],y:m[1],fill:d.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:b,verticalAlign:w})});if(e.add(x),c){var A=si.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=f.rawLabel,Qe(x).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=M;C&&(n[c][F]||(n[c][F]={p:M,n:M}),N=n[c][F][O]);var V=void 0,U=void 0,G=void 0,Z=void 0;if(v.dim==="radius"){var Q=v.dataToCoord(E)-M,ie=l.dataToCoord(F);Math.abs(Q)=Z})}}})}function wSe(e){var t={};R(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=U8(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 d=W8(n);h[d]||f.autoWidthCount++,h[d]=h[d]||{width:0,maxWidth:0};var v=Ie(n.get("barWidth"),c),g=Ie(n.get("barMaxWidth"),c),m=n.get("barGap"),y=n.get("barCategoryGap");v&&!h[d].width&&(v=Math.min(f.remainedWidth,v),h[d].width=v,f.remainedWidth-=v),g&&(h[d].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=WV(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=WV(r);return i===this?this.pointToData(n):null},e}();function WV(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function ESe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new RSe(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",jr).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var kSe={create:ESe,dimensions:Y8},UV=["x","y"],OSe=["width","height"],NSe=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=nC(l,1-z_(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var h=jI(a),d=FSe[f](s,c,u);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=VA(i);B8(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=VA(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=KI(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=z_(o),u=nC(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=nC(s,1-l),h=(f[1]+f[0])/2,d=[h,h];return d[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(qI),FSe={line:function(e,t,r){var n=JI([t,r[0]],[t,r[1]],z_(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:z8([t-n/2,r[0]],[n,i],z_(e))}}};function z_(e){return e.isHorizontal()?0:1}function nC(e,t){var r=e.getRect();return[r[UV[t]],r[UV[t]]+r[OSe[t]]]}var VSe=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 BSe(e){gt(Tg),Jc.registerAxisPointerClass("SingleAxisPointer",NSe),e.registerComponentView(VSe),e.registerComponentView(ISe),e.registerComponentModel(M0),Mh(e,"single",M0,M0.defaultOption),e.registerCoordinateSystem("single",kSe)}var zSe=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=Qh(r);e.prototype.init.apply(this,arguments),YV(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),YV(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}(wt);function YV(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 sue(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Yl(e,t,{type:"box",ignoreSize:i})}var GSe=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 It({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++){v(f.formatedDate),h===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var d=f.date;d.setMonth(d.getMonth()+1),f=s.getDateInfo(d)}v(s.getNextNDay(n.end.time,1).formatedDate);function v(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 di({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?iue(r,n):We(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,d={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var g=o.get("formatter"),m={start:n.start.y,end:n.end.y,nameMap:v},y=this._formatterLabel(g,m),S=new kt({z2:30,style:yr(o,{text:y})});S.attr(this._yearTextPositionControl(S,d[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=YT(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,d=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=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/iC)-Math.floor(r[0].time/iC)+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 XV(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function HSe(e){e.registerComponentModel(zSe),e.registerComponentView(GSe),e.registerCoordinateSystem("calendar",$Se)}function WSe(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 ZV(e,t){var r;return R(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function USe(e,t,r){var n=fe({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(ot(i,n,!0),Yl(i,n,{ignoreSize:!0}),B4(r,i),Cy(r,i),Cy(r,i,"shape"),Cy(r,i,"style"),Cy(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var X8=["transition","enterFrom","leaveTo"],YSe=X8.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Cy(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?X8:YSe,i=0;i=0;c--){var f=i[c],h=rn(f.id,null),d=h!=null?o.get(h):null;if(d){var v=d.parent,y=da(v),S=v===a?{width:s,height:l}:{width:y.width,height:y.height},b={},w=J1(d,f,S,null,{hv:f.hv,boundingMode:f.bounding},b);if(!da(d).isNew&&w){for(var C=f.transition,x={},A=0;A=0)?x[D]=M:d[D]=M}Bt(d,x,r,0)}else d.attr(b)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){I0(i,da(i).option,n,r._lastGraphicModel)}),this._elMap=Ve()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Mr);function BA(e){var t=Ne(qV,e)?qV[e]:kM(e),r=new t({});return da(r).type=e,r}function jV(e,t,r,n){var i=BA(r);return t.add(i),n.set(e,i),da(i).id=e,da(i).isNew=!0,i}function I0(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){I0(a,t,r,n)}),vS(e,t,n),r.removeKey(da(e).id))}function KV(e,t,r,n){e.isGroup||R([["cursor",xa.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];Ne(t,a)?e[a]=tt(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),R(xt(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=We(a)?a:null}}),Ne(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function jSe(e){return e=fe({},e),R(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(V4),function(t){delete e[t]}),e}function KSe(e,t,r){var n=Qe(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Qe(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function JSe(e){e.registerComponentModel(ZSe),e.registerComponentView(qSe),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 JV=["x","y","radius","angle","single"],QSe=["cartesian2d","polar","singleAxis"];function ebe(e){var t=e.get("coordinateSystem");return pt(QSe,t)>=0}function Ml(e){return e+"Axis"}function tbe(e,t){var r=Ve(),n=[],i=Ve();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,d){var v=r.get(h);v&&v[d]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(r.get(f)||r.set(f,[]))[h]=!0})}return n}function Z8(e){var t=e.ecModel,r={infoList:[],infoMap:Ve()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(Ml(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 aC=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}(),Hp=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=QV(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=QV(r);ot(this.option,r,!0),ot(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=Ve(),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(JV,function(i){var a=this.getReferringComponents(Ml(i),Xoe);if(a.specified){n=!0;var o=new aC;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 aC;if(h.add(f.componentIndex),r.set(c,h),a=!1,c==="x"||c==="y"){var d=f.getReferringComponents("grid",jr).models[0];d&&R(u,function(v){f.componentIndex!==v.componentIndex&&d===v.getReferringComponents("grid",jr).models[0]&&h.add(v.componentIndex)})}}}a&&R(JV,function(u){if(a){var c=i.findComponents({mainType:Ml(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new aC;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(Ml(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(Ml(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(b&&!w&&!C)return!0;b&&(m=!0),w&&(v=!0),C&&(g=!0)}return m&&v&&g})}else Wf(c,function(d){if(a==="empty")l.setData(u=u.map(d,function(g){return s(g)?g:NaN}));else{var v={};v[d]=o,u.selectRange(v)}});Wf(c,function(d){u.setApproximateExtent(o,d)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Wf(["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=jt(n[0]+o,n,[0,100],!0):a!=null&&(o=jt(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=D$(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 abe(e,t,r){var n=[1/0,-1/0];Wf(r,function(o){Vhe(n,o.getData(),t)});var i=e.getAxisModel(),a=hW(i.axis.scale,i,n).calculate();return[a.min,a.max]}var obe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(Ml(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 ibe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=Ve();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 sbe(e){e.registerAction("dataZoom",function(t,r){var n=tbe(r,t);R(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var t5=!1;function nL(e){t5||(t5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,obe),sbe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function lbe(e){e.registerComponentModel(rbe),e.registerComponentView(nbe),nL(e)}var pa=function(){function e(){}return e}(),q8={};function Uf(e,t){q8[e]=t}function j8(e){return q8[e]}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.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;R(this.option.feature,function(n,i){var a=j8(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),ot(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}(wt);function cbe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=an(n,a,i);Dc(t.get("orient"),e,t.get("itemGap"),o.width,o.height),J1(e,n,a,i)}function K8(e,t){var r=Jh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new It({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 fbe=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(v,g){f.push(g)}),new Ms(this._featureNames||[],f).add(h).update(h).remove(rt(h,null)).execute(),this._featureNames=f;function h(v,g){var m=f[v],y=f[g],S=u[m],b=new Xt(S,r,r.ecModel),w;if(a&&a.newTitle!=null&&a.featureName===m&&(S.title=a.newTitle),m&&!y){if(hbe(m))w={onclick:b.option.onclick,featureName:m};else{var C=j8(m);if(!C)return;w=new C}c[m]=w}else if(w=c[y],!w)return;w.uid=Kh("toolbox-feature"),w.model=b,w.ecModel=n,w.api=i;var x=w instanceof pa;if(!m&&y){x&&w.dispose&&w.dispose(n,i);return}if(!b.get("show")||x&&w.unusable){x&&w.remove&&w.remove(n,i);return}d(b,w,m),b.setIconStatus=function(A,D){var M=this.option,I=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[A]=D,I[A]&&(D==="emphasis"?As:Ds)(I[A])},w instanceof pa&&w.render&&w.render(b,n,i,a)}function d(v,g,m){var y=v.getModel("iconStyle"),S=v.getModel(["emphasis","iconStyle"]),b=g instanceof pa&&g.getIcons?g.getIcons():v.get("icon"),w=v.get("title")||{},C,x;Ee(b)?(C={},C[m]=b):C=b,Ee(w)?(x={},x[m]=w):x=w;var A=v.iconPaths={};R(C,function(D,M){var I=hg(D,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=S.getItemStyle();var E=new kt({style:{text:x[M],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:OM({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},n)},ignore:!0});I.setTextContent(E),qh({el:I,componentModel:r,itemName:M,formatterParamsExtra:{title:x[M]}}),I.__title=x[M],I.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")}),I.setTextConfig({position:S.get("textPosition")||O}),E.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",M])!=="emphasis"&&i.leaveEmphasis(this),E.hide()}),(v.get(["iconStatus",M])==="emphasis"?As:Ds)(I),o.add(I),I.on("click",Oe(g.onclick,g,n,i,M)),A[M]=I})}cbe(o,r,i),o.add(K8(o.getBoundingRect(),r)),l||o.eachChild(function(v){var g=v.__title,m=v.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),S=v.getTextContent(),b=S&&S.ensureState("emphasis");if(b&&!We(b)&&g){var w=b.style||(b.style={}),C=ag(g,kt.makeFont(w)),x=v.x+o.x,A=v.y+o.y+s,D=!1;A+C.height>i.getHeight()&&(y.position="top",D=!0);var M=D?-5-C.height:s+10;x+C.width/2>i.getWidth()?(y.position=["100%",M],w.align="right"):x-C.width/2<0&&(y.position=[0,M],w.align="left")}})},t.prototype.updateView=function(r,n,i,a){R(this._features,function(o){o instanceof pa&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){R(this._features,function(i){i instanceof pa&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){R(this._features,function(i){i instanceof pa&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(Mr);function hbe(e){return e.indexOf("my")===0}var dbe=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=St.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(","),d=h[0].indexOf("base64")>-1,v=o?decodeURIComponent(h[1]):h[1];d&&(v=window.atob(v));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=v.length,y=new Uint8Array(m);m--;)y[m]=v.charCodeAt(m);var S=new Blob([y]);window.navigator.msSaveOrOpenBlob(S,g)}else{var b=document.createElement("iframe");document.body.appendChild(b);var w=b.contentWindow,C=w.document;C.open("image/svg+xml","replace"),C.write(v),C.close(),w.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(b)}}else{var x=i.get("lang"),A='',D=window.open();D.document.write(A),D.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}(pa),r5="__ec_magicType_stack__",vbe=[["line","bar"],["stack"]],pbe=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(n5[i]){var s={series:[]},l=function(f){var h=f.subType,d=f.id,v=n5[i](h,d,f,a);v&&(Ye(v,f.option),s.series.push(v));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",b=f.getReferringComponents(S,jr).models[0],w=b.componentIndex;s[S]=s[S]||[];for(var C=0;C<=w;C++)s[S][w]=s[S][w]||{};s[S][w].boundaryGap=i==="bar"}}};R(vbe,function(f){pt(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=ot({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}(pa),n5={line:function(e,t,r,n){if(e==="bar")return ot({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 ot({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")===r5;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),ot({id:t,stack:i?"":r5},n.get(["option","stack"])||{},!0)}};Vo({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var pS=new Array(60).join("-"),Ph=" ";function gbe(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 mbe(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(d){return d.name})),l=[i.model.getCategories()];R(r.series,function(d){var v=d.getRawData();l.push(d.getRawData().mapArray(v.mapDimension(o),function(g){return g}))});for(var u=[s.join(Ph)],c=0;c=0)return!0}var zA=new RegExp("["+Ph+"]+","g");function bbe(e){for(var t=e.split(/\n+/g),r=G_(t.shift()).split(zA),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 Dbe(e){var t=iL(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return J8(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 Mbe(e){Q8(e).snapshots=null}function Ibe(e){return iL(e).length}function iL(e){var t=Q8(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Lbe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){Mbe(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}(pa);Vo({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var Pbe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],aL=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=i5(r,t);R(Rbe,function(o,s){(!n||!n.include||pt(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=oC[n.brushType](0,a,i);n.__rangeOffset={offset:l5[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=oC[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=oC[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?l5[n.brushType](a.values,o.offset,Ebe(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:s8(i),isTargetByCursor:u8(i,t,n.coordSysModel),getLinearBrushOtherExtent:l8(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&pt(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=i5(r,t),a=0;ae[1]&&e.reverse(),e}function i5(e,t){return Hv(e,t,{includeMainTypes:Pbe})}var Rbe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=Ve(),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){(pt(r,f.getAxis("x").model)>=0||pt(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:o5.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:o5.geo})})}},a5=[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}],o5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Ac(e)),t}},oC={lineX:rt(s5,0),lineY:rt(s5,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=[GA([i[0],a[0]]),GA([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 s5(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=GA(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 l5={lineX:rt(u5,0),lineY:rt(u5,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 u5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function Ebe(e,t){var r=c5(e),n=c5(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 c5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var $A=R,kbe=$oe("toolbox-dataZoom_"),Obe=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 kI(i.getZr()),this._brushController.on("brush",Oe(this._onBrush,this)).mount()),Vbe(r,n,this,a,i),Fbe(r,n)},t.prototype.onclick=function(r,n,i){Nbe[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 aL(oL(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)}}),Abe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var h=c.getAxis(u),d=h.model,v=l(u,d,a),g=v.findRepresentativeAxisProxy(d).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=Qc(0,f.slice(),h.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),v&&(i[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var v=d.getAxisModel(u,c.componentIndex);v&&(h=d)}),h}},t.prototype._dispatchZoomAction=function(r){var n=[];$A(r,function(i,a){n.push(qe(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}(pa),Nbe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Dbe(this.ecModel))}};function oL(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 Fbe(e,t){e.setIconStatus("back",Ibe(t)>1?"emphasis":"normal")}function Vbe(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 aL(oL(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)}due("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=oL(n),o=Hv(e,a);$A(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),$A(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:kbe+u+f};h[c]=f,i.push(h)}return i});function Bbe(e){e.registerComponentModel(ube),e.registerComponentView(fbe),Uf("saveAsImage",dbe),Uf("magicType",pbe),Uf("dataView",Cbe),Uf("dataZoom",Obe),Uf("restore",Lbe),gt(lbe)}var zbe=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}(wt);function e6(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function t6(e){if(St.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)),d=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-f)/2)*100)/100;s+=";"+a+":-"+d+"px";var v=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'
'}function Xbe(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+=St.transformSupported?","+sL+n:",left"+n+",top"+n),Hbe+":"+i}function f5(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!St.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=St.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+sL+":"+o+";":[["top",0],["left",0],[r6,o]]}function Zbe(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 qbe(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=gH(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(Xbe(i,r)),a&&n.push("background-color:"+a),R(["width","color","radius"],function(d){var v="border-"+d,g=N4(v),m=e.get(g);m!=null&&n.push(v+":"+m+(d==="color"?"":"px"))}),n.push(Zbe(c)),f!=null&&n.push("padding:"+Jh(f).join("px ")+"px"),n.join(";")+";"}function h5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Sae(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 jbe=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,St.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):bh(a)?a:We(a)&&a(t.getDom()));h5(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();ua(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=$be(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=Wbe+qbe(t,!this._firstShow,this._longHide)+f5(a[0],a[1],!0)+("border-color:"+Bc(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"&&!e6(n)&&(s=Ybe(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||St.node||!i.getDom())){var o=p5(a,i);this._ticket="";var s=a.dataByCoordSys,l=nwe(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=Jbe;c.x=a.x,c.y=a.y,c.update(),Qe(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=$8(a,n),h=f.point[0],d=f.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,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(p5(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=jd([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=Qe(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;cc(i,function(c){if(Qe(c).dataIndex!=null)return l=c,!0;if(Qe(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=Oe(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=jd([n.tooltipOption],a),l=this._renderMode,u=[],c=pn("section",{blocks:[],noHeader:!0}),f=[],h=new Ww;R(r,function(S){R(S.dataByAxis,function(b){var w=i.getComponent(b.axisDim+"Axis",b.axisIndex),C=b.value;if(!(!w||C==null)){var x=V8(C,w.axis,i,b.seriesDataIndices,b.valueLabelOpt),A=pn("section",{header:x,noHeader:!Ba(x),sortBlocks:!0,blocks:[]});c.blocks.push(A),R(b.seriesDataIndices,function(D){var M=i.getSeriesByIndex(D.seriesIndex),I=D.dataIndexInside,P=M.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=b.axisDim,P.axisIndex=b.axisIndex,P.axisType=b.axisType,P.axisId=b.axisId,P.axisValue=lI(w.axis,{value:C}),P.axisValueLabel=x,P.marker=h.makeTooltipMarker("item",Bc(P.color),l);var E=tO(M.formatTooltip(I,!0,null)),F=E.frag;if(F){var O=jd([M],a).get("valueFormatter");A.blocks.push(O?fe({valueFormatter:O},F):F)}E.text&&f.push(E.text),u.push(P)}})}})}),c.blocks.reverse(),f.reverse();var d=n.position,v=s.get("order"),g=sO(c,h,l,v,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,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],d,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Qe(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),d=this._renderMode,v=r.positionDefault,g=jd([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,f),S=new Ww;y.marker=S.makeTooltipMarker("item",Bc(y.color),d);var b=tO(u.formatTooltip(c,!1,f)),w=g.get("order"),C=g.get("valueFormatter"),x=b.frag,A=x?sO(C?fe({valueFormatter:C},x):x,S,d,w,a.get("useUTC"),g.get("textStyle")):b.text,D="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,A,y,D,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=Qe(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=qe(l),l.content=xi(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var d=r.positionDefault,v=jd(f,this._tooltipModel,d?{position:d}:null),g=v.get("content"),m=Math.random()+"",y=new Ww;this._showOrMove(v,function(){var S=qe(v.get("formatterParams")||{});this._showTooltipContent(v,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 d=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),g=v.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;d=h,S&&(d=X1(y.axisValue,d,m)),d=F4(d,i,!0)}else if(We(h)){var b=Oe(function(w,C){w===this._ticket&&(f.setContent(C,c,r,g,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,d=h(i,a,b)}else d=h;f.setContent(d,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"),d=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),We(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),ge(n))i=Ie(n[0],u),a=Ie(n[1],c);else if(Ze(n)){var g=n;g.width=f[0],g.height=f[1];var m=an(g,{width:u,height:c});i=m.x,a=m.y,h=null,d=null}else if(Ee(n)&&l){var y=rwe(n,v,f,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=ewe(i,a,o,u,c,h?null:20,d?null:20);i=y[0],a=y[1]}if(h&&(i-=g5(h)?f[0]/2:h==="right"?f[0]:0),d&&(a-=g5(d)?f[1]/2:d==="bottom"?f[1]:0),e6(r)){var y=twe(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,d){var v=f[d]||{},g=h.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&g.length===m.length,o&&R(g,function(y,S){var b=m[S];o=o&&y.seriesIndex===b.seriesIndex&&y.dataIndex===b.dataIndex}),a&&R(h.seriesDataIndices,function(y){var S=y.seriesIndex,b=n[S],w=a[S];b&&w&&w.data!==b.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){St.node||!n.getDom()||(Lp(this,"_updatePosition"),this._tooltipContent.dispose(),FA("itemTooltip",n))},t.type="tooltip",t}(Mr);function jd(e,t,r){var n=t.ecModel,i;r?(i=new Xt(r,n,n),i=new Xt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),Ee(o)&&(o={formatter:o}),o&&(i=new Xt(o,i,n)))}return i}function p5(e,t){return e.dispatchAction||Oe(t.dispatchAction,t)}function ewe(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 twe(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 rwe(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 g5(e){return e==="center"||e==="middle"}function nwe(e,t,r){var n=wM(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=og(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=Qe(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function iwe(e){gt(Tg),e.registerComponentModel(zbe),e.registerComponentView(Qbe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ur),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ur)}var awe=["rect","polygon","keep","clear"];function owe(e,t){var r=nr(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),swe(s),t&&!s.length&&s.push.apply(s,awe)}}function swe(e){var t={};R(e,function(r){t[r]=1}),e.length=0,R(t,function(r,n){e.push(n)})}var m5=R;function y5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function HA(e,t,r){var n={};return m5(t,function(a){var o=n[a]=i();m5(e[a],function(s,l){if(hn.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new hn(u),l==="opacity"&&(u=qe(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new hn(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function i6(e,t,r){var n;R(r,function(i){t.hasOwnProperty(i)&&y5(t[i])&&(n=!0)}),n&&R(r,function(i){t.hasOwnProperty(i)&&y5(t[i])?e[i]=qe(t[i]):delete e[i]})}function lwe(e,t,r,n,i,a){var o={};R(e,function(f){var h=hn.prepareVisualTypes(t[f]);o[f]=h});var s;function l(f){return KM(r,s,f)}function u(f,h){AH(r,s,f,h)}r.each(c);function c(f,h){s=f;var d=r.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var v=n.call(i,f),g=t[v],m=o[v],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&&x5(t)}};function x5(e){return new st(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}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.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new kI(n.getZr())).on("brush",Oe(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){a6(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:qe(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:qe(i),$from:n})},t.type="brush",t}(Mr),mwe="#ddd",ywe=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&&i6(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:mwe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Se(r,function(n){return C5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=C5(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}(wt);function C5(e,t){return ot({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Xt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var _we=["rect","polygon","lineX","lineY","keep","clear"],Swe=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:_we.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}(pa);function bwe(e){e.registerComponentView(gwe),e.registerComponentModel(ywe),e.registerPreprocessor(owe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,fwe),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"},Ur),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Ur),Uf("brush",Swe)}var wwe=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}(wt),xwe=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=tt(r.get("textBaseline"),r.get("textVerticalAlign")),c=new kt({style:yr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=r.get("subtext"),d=new kt({style:yr(s,{text:h,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),g=r.get("sublink"),m=r.get("triggerEvent",!0);c.silent=!v&&!m,d.silent=!g&&!m,v&&c.on("click",function(){m_(v,"_"+r.get("target"))}),g&&d.on("click",function(){m_(g,"_"+r.get("subtarget"))}),Qe(c).eventData=Qe(d).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),h&&a.add(d);var y=a.getBoundingRect(),S=r.getBoxLayoutParams();S.width=y.width,S.height=y.height;var b=an(S,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),a.x=b.x,a.y=b.y,a.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),d.setStyle(w),y=a.getBoundingRect();var C=b.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var A=new It({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(A)}},t.type="title",t}(Mr);function Cwe(e){e.registerComponentModel(wwe),e.registerComponentView(xwe)}var T5=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=rn(Yh(u),""),h;Ze(u)?(h=qe(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 oi([{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}(wt),o6=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=tu(T5.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}(T5);Qr(o6,eS.prototype);var Twe=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),Awe=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}(Ja),lC=Math.PI,A5=Lt(),Dwe=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 pn("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=Iwe(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:lC/2},f=a==="vertical"?o.height:o.width,h=r.getModel("controlStyle"),d=h.get("show",!0),v=d?h.get("itemSize"):0,g=d?h.get("itemGap"):0,m=v+g,y=r.get(["label","rotate"])||0;y=y*lC/180;var S,b,w,C=h.get("position",!0),x=d&&h.get("showPlayBtn",!0),A=d&&h.get("showPrevBtn",!0),D=d&&h.get("showNextBtn",!0),M=0,I=f;C==="left"||C==="bottom"?(x&&(S=[0,0],M+=m),A&&(b=[M,0],M+=m),D&&(w=[I-v,0],I-=m)):(x&&(S=[I-v,0],I-=m),A&&(b=[0,0],M+=m),D&&(w=[I-v,0],I-=m));var P=[M,I];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:b,nextBtnPosition:w,axisExtent:P,controlSize:v,controlGap:g}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Yi(),l=o.x,u=o.y+o.height;Ro(s,s,[-l,-u]),Xc(s,s,-lC/2),Ro(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=S(o),f=S(i.getBoundingRect()),h=S(a.getBoundingRect()),d=[i.x,i.y],v=[a.x,a.y];v[0]=d[0]=c[0][0];var g=r.labelPosOpt;if(g==null||Ee(g)){var m=g==="+"?0:1;b(d,f,c,1,m),b(v,h,c,1,1-m)}else{var m=g>=0?0:1;b(d,f,c,1,m),v[1]=d[1]+g}i.setPosition(d),a.setPosition(v),i.rotation=a.rotation=r.rotation,y(i),y(a);function y(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function S(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function b(w,C,x,A,D){w[A]+=x[A][D]-C[A][D]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=Mwe(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 Awe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ke;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 cn({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:fe({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new cn({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ye({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"),d=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:Oe(o._changeTimeline,o,u.value)},m=D5(f,h,n,g);m.ensureState("emphasis").style=d.getItemStyle(),m.ensureState("progress").style=v.getItemStyle(),Tc(m);var y=Qe(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),d=h.getModel("label"),v=h.getModel(["emphasis","label"]),g=h.getModel(["progress","label"]),m=i.dataToCoord(c.tickValue),y=new kt({x:m,y:0,rotation:r.labelRotation-r.rotation,onclick:Oe(o._changeTimeline,o,f),silent:!1,style:yr(d,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=yr(v),y.ensureState("progress").style=yr(g),n.add(y),Tc(y),A5(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",Oe(this._changeTimeline,this,f?"-":"+")),h(r.prevBtnPosition,"prev",Oe(this._changeTimeline,this,f?"+":"-")),h(r.playPosition,c?"stop":"play",Oe(this._handlePlayClick,this,!c),!0);function h(d,v,g,m){if(d){var y=Xa(tt(a.get(["controlStyle",v+"BtnSize"]),o),o),S=[0,-y/2,y,y],b=Lwe(a,v+"Icon",S,{x:d[0],y:d[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});b.ensureState("emphasis").style=u,n.add(b),Tc(b)}}},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=Oe(u._handlePointerDrag,u),f.ondragend=Oe(u._handlePointerDragend,u),M5(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){M5(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=_a(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(h)),[o,f]}var uC={min:rt(Dy,"min"),max:rt(Dy,"max"),average:rt(Dy,"average"),median:rt(Dy,"median")};function Wp(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!Nwe(t)&&!ge(t.coord)&&ge(i)){var a=s6(t,r,n,e);if(t=qe(t),t.type&&uC[t.type]&&a.baseAxis&&a.valueAxis){var o=pt(i,a.baseAxis.dim),s=pt(i,a.valueAxis.dim),l=uC[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++)uC[u[c]]&&(u[c]=uL(r,r.mapDimension(i[c]),u[c]));return t}}function s6(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(Fwe(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 Fwe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Up(e,t){return e&&e.containData&&t.coord&&!UA(t)?e.containData(t.coord):!0}function Vwe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!UA(t)&&!UA(r)?e.containZone(t.coord,r.coord):!0}function l6(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ol(o,t[a])}:function(r,n,i,a){return Ol(r.value,t[a])}}function uL(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 cC=Lt(),cL=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=Ve()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){cC(s).keep=!1}),n.eachSeries(function(s){var l=Ps.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!cC(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){cC(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;R(r,function(a){var o=Ps.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?e4(l):IM(l))})}})},t.type="marker",t}(Mr);function L5(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 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.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ps.getMarkerModelFromSeries(a,"markPoint");o&&(L5(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 yg),f=zwe(o,r,n);n.setData(f),L5(n.getData(),r,a),f.each(function(h){var d=f.getItemModel(h),v=d.getShallow("symbol"),g=d.getShallow("symbolSize"),m=d.getShallow("symbolRotate"),y=d.getShallow("symbolOffset"),S=d.getShallow("symbolKeepAspect");if(We(v)||We(g)||We(m)||We(y)){var b=n.getRawValue(h),w=n.getDataParams(h);We(v)&&(v=v(b,w)),We(g)&&(g=g(b,w)),We(m)&&(m=m(b,w)),We(y)&&(y=y(b,w))}var C=d.getModel("itemStyle").getItemStyle(),x=vg(l,"color");C.fill||(C.fill=x),f.setItemVisual(h,{symbol:v,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:S,style:C})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(d){Qe(d).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(cL);function zwe(e,t,r){var n;e?n=Se(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return fe(fe({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new oi(n,r),a=Se(r.get("data"),rt(Wp,t));e&&(a=Qt(a,rt(Up,e)));var o=l6(!!e,n);return i.initData(a,null,o),i}function Gwe(e){e.registerComponentModel(Owe),e.registerComponentView(Bwe),e.registerPreprocessor(function(t){lL(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}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.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}(Ps),My=Lt(),Hwe=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=_n(n.yAxis,n.xAxis);else{var u=s6(n,i,t,e);s=u.valueAxis;var c=tW(i,u.valueDataDim);l=uL(i,c,o)}var f=s.dim==="x"?0:1,h=1-f,d=qe(n),v={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,v.coord[h]=1/0;var g=r.get("precision");g>=0&&Nt(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[f]=v.coord[f]=l,a=[d,v,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var m=[Wp(e,a[0]),Wp(e,a[1]),fe({},a[2])];return m[2].type=m[2].type||null,ot(m[2],m[0]),ot(m[2],m[1]),m};function $_(e){return!isNaN(e)&&!isFinite(e)}function P5(e,t,r,n){var i=1-e,a=n.dimensions[e];return $_(t[i])&&$_(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function Wwe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(P5(1,r,n,e)||P5(0,r,n,e)))return!0}return Up(e,t[0])&&Up(e,t[1])}function fC(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(Kc(a,"cartesian2d")){var d=a.getAxis("x"),v=a.getAxis("y"),c=a.dimensions;$_(e.get(c[0],t))?s[0]=d.toGlobalCoord(d.getExtent()[r?0:1]):$_(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var Uwe=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=Ps.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=My(o).from,u=My(o).to;l.each(function(c){fC(l,c,!0,a,i),fC(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 EI);this.group.add(c.group);var f=Ywe(o,r,n),h=f.from,d=f.to,v=f.line;My(n).from=h,My(n).to=d,n.setData(v);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(w){b(h,w,!0),b(d,w,!1)}),v.each(function(w){var C=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[h.getItemLayout(w),d.getItemLayout(w)]),C.stroke==null&&(C.stroke=h.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(w,"symbolOffset"),fromSymbolRotate:h.getItemVisual(w,"symbolRotate"),fromSymbolSize:h.getItemVisual(w,"symbolSize"),fromSymbol:h.getItemVisual(w,"symbol"),toSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(w,"symbolOffset"),toSymbolRotate:d.getItemVisual(w,"symbolRotate"),toSymbolSize:d.getItemVisual(w,"symbolSize"),toSymbol:d.getItemVisual(w,"symbol"),style:C})}),c.updateData(v),f.line.eachItemGraphicEl(function(w){Qe(w).dataModel=n,w.traverse(function(C){Qe(C).dataModel=n})});function b(w,C,x){var A=w.getItemModel(C);fC(w,C,x,r,a);var D=A.getModel("itemStyle").getItemStyle();D.fill==null&&(D.fill=vg(l,"color")),w.setItemVisual(C,{symbolKeepAspect:A.get("symbolKeepAspect"),symbolOffset:tt(A.get("symbolOffset",!0),S[x?0:1]),symbolRotate:tt(A.get("symbolRotate",!0),y[x?0:1]),symbolSize:tt(A.get("symbolSize"),m[x?0:1]),symbol:tt(A.get("symbol",!0),g[x?0:1]),style:D})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(cL);function Ywe(e,t,r){var n;e?n=Se(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return fe(fe({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new oi(n,r),a=new oi(n,r),o=new oi([],r),s=Se(r.get("data"),rt(Hwe,t,e,r));e&&(s=Qt(s,rt(Wwe,e)));var l=l6(!!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 Xwe(e){e.registerComponentModel($we),e.registerComponentView(Uwe),e.registerPreprocessor(function(t){lL(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var 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.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}(Ps),Iy=Lt(),qwe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Wp(e,i),s=Wp(e,a),l=o.coord,u=s.coord;l[0]=_n(l[0],-1/0),l[1]=_n(l[1],-1/0),u[0]=_n(u[0],1/0),u[1]=_n(u[1],1/0);var c=fM([{},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 H_(e){return!isNaN(e)&&!isFinite(e)}function R5(e,t,r,n){var i=1-e;return H_(t[i])&&H_(r[i])}function jwe(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 Kc(e,"cartesian2d")?r&&n&&(R5(1,r,n)||R5(0,r,n))?!0:Vwe(e,i,a):Up(e,i)||Up(e,a)}function E5(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),d=a.clampData(f),v=[];r[0]==="x0"?v[0]=h[0]>d[0]?f[0]:c[0]:v[0]=h[0]>d[0]?c[0]:f[0],r[1]==="y0"?v[1]=h[1]>d[1]?f[1]:c[1]:v[1]=h[1]>d[1]?c[1]:f[1],s=n.getMarkerPosition(v,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(Kc(a,"cartesian2d")){var S=a.getAxis("x"),b=a.getAxis("y"),g=e.get(r[0],t),m=e.get(r[1],t);H_(g)?s[0]=S.toGlobalCoord(S.getExtent()[r[0]==="x0"?0:1]):H_(m)&&(s[1]=b.toGlobalCoord(b.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var k5=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Kwe=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=Ps.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Se(k5,function(f){return E5(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 Ke});this.group.add(c.group),this.markKeep(c);var f=Jwe(o,r,n);n.setData(f),f.each(function(h){var d=Se(k5,function(D){return E5(f,h,D,r,a)}),v=o.getAxis("x").scale,g=o.getAxis("y").scale,m=v.getExtent(),y=g.getExtent(),S=[v.parse(f.get("x0",h)),v.parse(f.get("x1",h))],b=[g.parse(f.get("y0",h)),g.parse(f.get("y1",h))];_a(S),_a(b);var w=!(m[0]>S[1]||m[1]b[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}(wt),kf=rt,XA=R,Ly=Ke,u6=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 Ly),this.group.add(this._selectorGroup=new Ly),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"),d=an(c,f,h),v=this.layoutInner(r,o,d,a,l,u),g=an(Ye({width:v.width,height:v.height},c),f,h);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=K8(v,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=Ve(),f=n.get("selectedMode"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),XA(n.getData(),function(d,v){var g=d.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var m=new Ly;m.newline=!0,u.add(m);return}var y=i.getSeriesByName(g)[0];if(!c.get(g))if(y){var S=y.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),C=S.getVisual("style"),x=this._createItem(y,g,v,d,n,r,b,C,w,f,a);x.on("click",kf(O5,g,null,a,h)).on("mouseover",kf(ZA,y.name,null,a,h)).on("mouseout",kf(qA,y.name,null,a,h)),i.ssr&&x.eachChild(function(A){var D=Qe(A);D.seriesIndex=y.seriesIndex,D.dataIndex=v,D.ssrType="legend"}),c.set(g,!0)}else i.eachRawSeries(function(A){if(!c.get(g)&&A.legendVisualProvider){var D=A.legendVisualProvider;if(!D.containName(g))return;var M=D.indexOfName(g),I=D.getItemVisual(M,"style"),P=D.getItemVisual(M,"legendIcon"),E=Xi(I.fill);E&&E[3]===0&&(E[3]=.2,I=fe(fe({},I),{fill:Ss(E,"rgba")}));var F=this._createItem(A,g,v,d,n,r,{},I,P,f,a);F.on("click",kf(O5,null,g,a,h)).on("mouseover",kf(ZA,null,g,a,h)).on("mouseout",kf(qA,null,g,a,h)),i.ssr&&F.eachChild(function(O){var N=Qe(O);N.seriesIndex=A.seriesIndex,N.dataIndex=v,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();XA(r,function(u){var c=u.type,f=new kt({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"),d=n.getModel(["emphasis","selectorLabel"]);Rn(f,{normal:h,emphasis:d},{defaultText:u.title}),Tc(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,h){var d=r.visualDrawType,v=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(n),y=a.get("symbolRotate"),S=a.get("symbolKeepAspect"),b=a.get("icon");c=b||c||"roundRect";var w=txe(c,a,l,u,d,m,h),C=new Ly,x=a.getModel("textStyle");if(We(r.getLegendIcon)&&(!b||b==="inherit"))C.add(r.getLegendIcon({itemWidth:v,itemHeight:g,icon:c,iconRotate:y,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}));else{var A=b==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;C.add(rxe({itemWidth:v,itemHeight:g,icon:c,iconRotate:A,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}))}var D=s==="left"?v+5:-5,M=s,I=o.get("formatter"),P=n;Ee(I)&&I?P=I.replace("{name}",n??""):We(I)&&(P=I(n));var E=m?x.getTextColor():a.get("inactiveColor");C.add(new kt({style:yr(x,{text:P,x:D,y:g/2,fill:E,align:M,verticalAlign:"middle"},{inheritColor:E})}));var F=new It({shape:C.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&qh({el:F,componentModel:o,itemName:n,itemTooltipOption:O.option}),C.add(F),C.eachChild(function(N){N.silent=!0}),F.silent=!f,this.getContentGroup().add(C),Tc(C),C.__legendDataIndex=i,C},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Dc(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){Dc("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],v=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"?d[g]+=c[m]+v:f[g]+=h[m]+v,d[1-g]+=c[y]/2-h[y]/2,u.x=d[0],u.y=d[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[m]=c[m]+v+h[m],b[y]=Math.max(c[y],h[y]),b[S]=Math.min(0,h[S]+d[1-g]),b}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 txe(e,t,r,n,i,a,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),XA(m,function(S,b){m[b]==="inherit"&&(m[b]=y[b])})}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:Th(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"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function rxe(e){var t=e.icon||"roundRect",r=Jr(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 O5(e,t,r,n){qA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),ZA(e,t,r,n)}function c6(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],m=[-d.x,-d.y];n||(m[a]=c[u]);var y=[0,0],S=[-v.x,-v.y],b=tt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var w=r.get("pageButtonPosition",!0);w==="end"?S[a]+=i[o]-v[o]:y[a]+=v[o]+b}S[1-a]+=d[s]/2-v[s]/2,c.setPosition(m),f.setPosition(y),h.setPosition(S);var C={x:0,y:0};if(C[o]=g?i[o]:d[o],C[s]=Math.max(d[s],v[s]),C[l]=Math.min(0,v[l]+S[1-a]),f.__rectSize=i[o],g){var x={x:0,y:0};x[o]=Math.max(i[o]-v[o]-b,0),x[s]=C[s],f.setClipPath(new It({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(r);return A.pageIndex!=null&&Bt(c,{x:A.contentPosition[0],y:A.contentPosition[1]},g?r:null),this._updatePageInfoView(r,A),C},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,d=i.childOfName(c);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.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=hC[o],l=dC[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],h=c.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var g=w(f);v.contentPosition[o]=-g.s;for(var m=u+1,y=g,S=g,b=null;m<=h;++m)b=w(c[m]),(!b&&S.e>y.s+a||b&&!C(b,y.s))&&(S.i>y.i?y=S:y=b,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),S=b;for(var m=u-1,y=g,S=g,b=null;m>=-1;--m)b=w(c[m]),(!b||!C(S,b.s))&&y.i=A&&x.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}(u6);function sxe(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 lxe(e){gt(f6),e.registerComponentModel(axe),e.registerComponentView(oxe),sxe(e)}function uxe(e){gt(f6),gt(lxe)}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.type="dataZoom.inside",t.defaultOption=tu(Hp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Hp),fL=Lt();function fxe(e,t,r){fL(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function hxe(e,t){for(var r=fL(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 mxe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=fL(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=Ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=Z8(a);R(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,dxe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Ve());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){h6(i,a);return}var c=gxe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),rd(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var yxe=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(),fxe(i,r,{pan:Oe(vC.pan,this),zoom:Oe(vC.zoom,this),scrollMove:Oe(vC.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){hxe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(rL),vC={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=pC[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(Qc(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:V5(function(e,t,r,n,i,a){var o=pC[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:V5(function(e,t,r,n,i,a){var o=pC[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function V5(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(Qc(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var pC={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 d6(e){nL(e),e.registerComponentModel(cxe),e.registerComponentView(yxe),mxe(e)}var _xe=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=tu(Hp.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}(Hp),Qd=It,B5=7,Sxe=1,gC=30,bxe=7,ev="horizontal",z5="vertical",wxe=5,xxe=["line","bar","candlestick","scatter"],Cxe={easing:"cubicOut",duration:100,delay:0},Txe=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=Oe(this._onBrush,this),this._onBrushEnd=Oe(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),rd(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(){Lp(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 Ke;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?bxe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===ev?{right:s.width-o.x-o.width,top:s.height-gC-B5-a,width:o.width,height:gC}:{right:B5,top:o.y,width:gC,height:o.height},u=Qh(r.option);R(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=an(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===z5&&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===ev&&!o?{scaleY:l?1:-1,scaleX:1}:i===ev&&o?{scaleY:l?1:-1,scaleX:-1}:i===z5&&!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 Qd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Qd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Oe(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 d=[0,n[1]],v=[0,n[0]],g=[[n[0],0],[0,0]],m=[],y=v[1]/(o.count()-1),S=0,b=Math.round(o.count()/n[0]),w;o.each([l],function(M,I){if(b>0&&I%b){S+=y;return}var P=M==null||isNaN(M)||M==="",E=P?0:jt(M,f,d,!0);P&&!w&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&w&&(g.push([S,0]),m.push([S,0])),g.push([S,E]),m.push([S,E]),S+=y,w=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var C=this.dataZoomModel;function x(M){var I=C.getModel(M?"selectedDataBackground":"dataBackground"),P=new Ke,E=new fi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),F=new di({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(E),P.add(F),P}for(var A=0;A<3;A++){var D=x(A===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},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&&pt(xxe,u.get("type"))<0)){var c=a.getComponent(Ml(o),s).axis,f=Axe(o),h,d=u.coordinateSystem;f!=null&&d.getOtherAxis&&(h=d.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 Qd({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Qd({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:Sxe,fill:"rgba(0,0,0,0)"}})),R([0,1],function(b){var w=l.get("handleIcon");!S_[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var C=Jr(w,-1,0,2,2,null,!0);C.attr({cursor:G5(this._orient),draggable:!0,drift:Oe(this._onDragMove,this,b),ondragend:Oe(this._onDragEnd,this),onmouseover:Oe(this._showDataInfo,this,!0),onmouseout:Oe(this._showDataInfo,this,!1),z2:5});var x=C.getBoundingRect(),A=l.get("handleSize");this._handleHeight=Ie(A,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Tc(C);var D=l.get("handleColor");D!=null&&(C.style.fill=D),o.add(i[b]=C);var M=l.getModel("textStyle");r.add(a[b]=new kt({silent:!0,invisible:!0,style:yr(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var d=h;if(f){var v=Ie(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new It({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,y=n.moveHandleIcon=Jr(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+v/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(s[1]/2,Math.max(v,10));d=n.moveZone=new It({invisible:!0,shape:{y:s[1]-S,height:v+S}}),d.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(d)}d.attr({draggable:!0,cursor:G5(this._orient),drift:Oe(this._onDragMove,this,"all"),ondragstart:Oe(this._showDataInfo,this,!0),ondragend:Oe(this._onDragEnd,this),onmouseover:Oe(this._showDataInfo,this,!0),onmouseout:Oe(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[jt(r[0],[0,100],n,!0),jt(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];Qc(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?jt(s.minSpan,l,o,!0):null,s.maxSpan!=null?jt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=_a([jt(a[0],o,l,!0),jt(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=_a(i.slice()),o=this._size;R([0,1],function(d){var v=n.handles[d],g=this._handleHeight;v.attr({scaleX:g/2,scaleY:g/2,x:i[d]+(d?-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 nt(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=_a([jt(i.x,o,s,!0),jt(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&&(Cs(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 Qd({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?Cxe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=Z8(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}(rL);function Axe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function G5(e){return e==="vertical"?"ns-resize":"ew-resize"}function v6(e){e.registerComponentModel(_xe),e.registerComponentView(Txe),nL(e)}function Dxe(e){gt(d6),gt(v6)}var p6={get:function(e,t,r){var n=qe((Mxe[e]||{})[t]);return r&&ge(n)?n[n.length-1]:n}},Mxe={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]}},$5=hn.mapVisual,Ixe=hn.eachVisual,Lxe=ge,H5=R,Pxe=_a,Rxe=jt,W_=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&&i6(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=Oe(r,this),this.controllerVisuals=HA(this.option.controller,n,r),this.targetVisuals=HA(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=nr(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(We(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=Pxe([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={});ot(a,i),ot(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){Lxe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,h,d){var v=f[h],g=f[d];v&&!g&&(g=f[d]={},H5(v,function(m,y){if(hn.isValidType(y)){var S=p6.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,d=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";H5(this.stateList,function(y){var S=this.itemSize,b=f[y];b||(b=f[y]={color:s?v:[v]}),b.symbol==null&&(b.symbol=h&&qe(h)||(s?m:[m])),b.symbolSize==null&&(b.symbolSize=d&&qe(d)||(s?S[0]:[S[0],S[0]])),b.symbol=$5(b.symbol,function(x){return x==="none"?m:x});var w=b.symbolSize;if(w!=null){var C=-1/0;Ixe(w,function(x){x>C&&(C=x)}),b.symbolSize=$5(w,function(x){return Rxe(x,[0,C],[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}(wt),W5=[20,140],Exe=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]=W5[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=W5[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=_a((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=U5(this,"outOfRange",this.getExtent()),i=U5(this,"inRange",this.option.range.slice()),a=[];function o(d,v){a.push({value:d,color:r(d,v)})}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 Ke(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=fo(r[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=d/l[0],f.x=l[0]-d/2;var v=Wa(i.handleLabelPoints[c],Ac(f,this.group));s[c].setStyle({x:v[0],y:v[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},d=this.getControllerVisual(r,"color",h),v=this.getControllerVisual(r,"symbolSize"),g=fo(r,s,u,!0),m=l[0]-v/2,y={x:f.x,y:f.y};f.y=g,f.x=m;var S=Wa(c.indicatorLabelPoint,Ac(f,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),C=this._orient,x=C==="horizontal";b.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:x?w:"middle",align:x?"center":w});var A={x:m,y:g,style:{fill:d}},D={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(A,M),b.animateTo(D,M)}else f.attr(A),b.attr(D);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)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,d=[];(n||q5(i))&&(d=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var v=Uoe(h,d);this._dispatchHighDown("downplay",L0(v[0],i)),this._dispatchHighDown("highlight",L0(v[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(cc(r.target,function(l){var u=Qe(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 $xe(e,t,r,n){for(var i=t.targetVisuals[n],a=hn.prepareVisualTypes(i),o={color:vg(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(Bxe,zxe),R(Gxe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Hxe))}function _6(e){e.registerComponentModel(Exe),e.registerComponentView(Fxe),y6(e)}var Wxe=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=[],Uxe[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=qe(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Se(this._pieceList,function(l){return l=qe(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=hn.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]=p6.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=qe(r)},t.prototype.getValueState=function(r){var n=hn.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=hn.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 d=r(h,f);c[0]===-1/0?i[0]=d:c[1]===1/0?i[1]=d:n.push({value:c[0],color:d},{value:c[1],color:d})}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=tu(W_.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}(W_),Uxe={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 Q5(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var Yxe=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=_n(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,h,l),R(c.viewPieceList,function(d){var v=d.piece,g=new Ke;g.onclick=Oe(this._onItemClick,this,v),this._enableHoverLink(g,d.indexInModelPieceList);var m=n.getRepresentValue(v);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(m);g.add(new kt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:v.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),Dc(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:L0(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return m6(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 Ke,l=this.visualMapModel.textStyleModel;s.add(new kt({style:yr(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(Jr(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=qe(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}(g6);function S6(e){e.registerComponentModel(Wxe),e.registerComponentView(Yxe),y6(e)}function Xxe(e){gt(_6),gt(S6)}var Zxe={label:{enabled:!0},decal:{show:!1}},eB=Lt(),qxe={};function jxe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=qe(Zxe);ot(n.label,e.getLocaleModel().get("aria"),!1),ot(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=Ve();e.eachSeries(function(h){if(!h.isColorBySeries()){var d=f.get(h.type);d||(d={},f.set(h.type,d)),eB(h).scope=d}}),e.eachRawSeries(function(h){if(e.isSeriesFiltered(h))return;if(We(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var S=qT(h.ecModel,h.name,qxe,e.getSeriesCount()),b=d.getVisual("decal");d.setVisual("decal",w(b,S))}else{var v=h.getRawData(),g={},m=eB(h).scope;d.each(function(C){var x=d.getRawIndex(C);g[x]=C});var y=v.count();v.each(function(C){var x=g[C],A=v.getName(C)||C+"",D=qT(h.ecModel,A,m,y),M=d.getItemVisual(x,"decal");d.setItemVisual(x,"decal",w(M,D))})}function w(C,x){var A=C?fe(fe({},x),C):x;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=Ye(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=e.getSeriesCount(),d=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,g=Math.min(h,v),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 b=[],w=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(w,{seriesCount:h}),e.eachSeries(function(D,M){if(M1?f.get(["series","multiple",E]):f.get(["series","single",E]),I=o(I,{seriesId:D.seriesIndex,seriesName:D.get("name"),seriesType:l(D.subType)});var F=D.getData();if(F.count()>d){var O=f.get(["data","partialData"]);I+=o(O,{displayCnt:d})}else I+=f.get(["data","allData"]);for(var N=f.get(["data","separator","middle"]),V=f.get(["data","separator","end"]),U=[],G=0;G":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Qxe=function(){function e(t){var r=this._condVal=Ee(t)?new RegExp(t):fae(t)?t:null;if(r==null){var n="";Wt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return Ee(r)?this._condVal.test(t):Nt(r)?this._condVal.test(t+""):!1},e}(),eCe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),tCe=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){Jf(F,N)&&Jf(O,V)||i.push(F,O,N,V,N,V)}function f(F,O,N,V,U,G){var Z=Math.abs(O-F),Q=Math.tan(Z/4)*4/3,ie=OD:P2&&n.push(i),n}function KA(e,t,r,n,i,a,o,s,l,u){if(Jf(e,r)&&Jf(t,n)&&Jf(i,o)&&Jf(a,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-e,d=s-t,v=Math.sqrt(h*h+d*d);h/=v,d/=v;var g=r-e,m=n-t,y=i-o,S=a-s,b=g*g+m*m,w=y*y+S*S;if(b=0&&D=0){l.push(o,s);return}var M=[],I=[];Wl(e,r,i,o,.5,M),Wl(t,n,a,s,.5,I),KA(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],l,u),KA(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],l,u)}function pCe(e,t){var r=jA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=w6([l,u],c?0:1,t),h=(c?s:u)/f.length,d=0;di,o=w6([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 nt(g*l+e,g*u+t)}function yCe(e,t,r){var n=new nt;nt.sub(n,r,t),n.normalize();var i=new nt;nt.sub(i,e,t);var a=i.dot(n);return a}function Nf(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function _Ce(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),_Ce(t,u,c)}function U_(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);U_(e,a[0],i,n),U_(e,a[1],r-i,n)}return n}function SCe(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 Z_(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:ICe(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 T6(e){return xCe(e.path,e.count)}function JA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function LCe(e,t,r){var n=[];function i(C){for(var x=0;x=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 RCe={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;uB(e)&&(u=e,c=t),uB(t)&&(u=t,c=e);function f(y,S,b,w,C){var x=y.many,A=y.one;if(x.length===1&&!C){var D=S?x[0]:A,M=S?A:x[0];if(Y_(D))f({many:[D],one:M},!0,b,w,!0);else{var I=s?Ye({delay:s(b,w)},l):l;dL(D,M,I),a(D,M,D,M,I)}}else for(var P=Ye({dividePath:RCe[r],individualDelay:s&&function(U,G,Z,Q){return s(U+b,w)}},l),E=S?LCe(x,A,P):PCe(A,x,P),F=E.fromIndividuals,O=E.toIndividuals,N=F.length,V=0;Vt.length,d=u?cB(c,u):cB(h?t:e,[h?e:t]),v=0,g=0;gA6))for(var a=n.getIndices(),o=0;o0&&x.group.traverse(function(D){D instanceof _t&&!D.animators.length&&D.animateFrom({style:{opacity:0}},A)})})}function pB(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function gB(e){return ge(e)?e.sort().join(","):e}function hl(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function BCe(e,t){var r=Ve(),n=Ve(),i=Ve();return R(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=pB(a),c=gB(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=pB(a),u=gB(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:hl(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:hl(s),data:s}]});else if(ge(l)){var f=[];R(l,function(v){var g=n.get(v);g.data&&f.push({dataGroupId:g.dataGroupId,divide:hl(g.data),data:g.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:hl(s)}]})}else{var h=i.get(l);if(h){var d=r.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:hl(h.data)}],newSeries:[]},r.set(h.key,d)),d.newSeries.push({dataGroupId:o,data:s,divide:hl(s)})}}}}),r}function mB(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:hl(t.oldData[s]),groupIdDim:o.dimension})}),R(nr(e.to),function(o){var s=mB(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:hl(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&D6(i,a,n)}function GCe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){R(nr(n.seriesTransition),function(i){R(nr(i.to),function(a){for(var o=n.updatedSeries,s=0;st?Symbol.for(e):Symbol(e),$Ce=(e,t,r)=>HCe({l:e,k:t,s:r}),HCe=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),un=e=>typeof e=="number"&&isFinite(e),WCe=e=>vL(e)==="[object Date]",Rh=e=>vL(e)==="[object RegExp]",gS=e=>Vt(e)&&Object.keys(e).length===0,dn=Object.assign;let yB;const vc=()=>yB||(yB=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function _B(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const UCe=Object.prototype.hasOwnProperty;function j_(e,t){return UCe.call(e,t)}const Wr=Array.isArray,Pr=e=>typeof e=="function",Ue=e=>typeof e=="string",rr=e=>typeof e=="boolean",sr=e=>e!==null&&typeof e=="object",YCe=e=>sr(e)&&Pr(e.then)&&Pr(e.catch),M6=Object.prototype.toString,vL=e=>M6.call(e),Vt=e=>vL(e)==="[object Object]",XCe=e=>e==null?"":Wr(e)||Vt(e)&&e.toString===M6?JSON.stringify(e,null,2):String(e);function pL(e,t=""){return e.reduce((r,n,i)=>i===0?r+n:r+t+n,"")}function ZCe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Py=e=>!sr(e)||Wr(e);function P0(e,t){if(Py(e)||Py(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=>{sr(n[a])&&!sr(i[a])&&(i[a]=Array.isArray(n[a])?[]:{}),Py(i[a])||Py(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 qCe(e,t,r){return{line:e,column:t,offset:r}}function QA(e,t,r){return{start:e,end:t}}const gr={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},jCe=17;function mS(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 KCe(e){throw e}const ts=" ",JCe="\r",ei=` -`,QCe="\u2028",eTe="\u2029";function tTe(e){const t=e;let r=0,n=1,i=1,a=0;const o=A=>t[A]===JCe&&t[A+1]===ei,s=A=>t[A]===ei,l=A=>t[A]===eTe,u=A=>t[A]===QCe,c=A=>o(A)||s(A)||l(A)||u(A),f=()=>r,h=()=>n,d=()=>i,v=()=>a,g=A=>o(A)||l(A)||u(A)?ei: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 b(){return o(r+a)&&a++,a++,t[r+a]}function w(){r=0,n=1,i=1,a=0}function C(A=0){a=A}function x(){const A=r+a;for(;A!==r;)S();a=0}return{index:f,line:h,column:d,peekOffset:v,charAt:g,currentChar:m,currentPeek:y,next:S,peek:b,reset:w,resetPeek:C,skipToPeek:x}}const il=void 0,rTe=".",SB="'",nTe="tokenizer";function iTe(e,t={}){const r=t.location!==!1,n=tTe(e),i=()=>n.index(),a=()=>qCe(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($,Y,te,...le){const xe=u();if(Y.column+=te,Y.offset+=te,c){const Pe=r?QA(xe.startLoc,Y):null,K=mS($,Pe,{domain:nTe,args:le});c(K)}}function h($,Y,te){$.endLoc=a(),$.currentType=Y;const le={type:Y};return r&&(le.loc=QA($.startLoc,$.endLoc)),te!=null&&(le.value=te),le}const d=$=>h($,13);function v($,Y){return $.currentChar()===Y?($.next(),Y):(f(gr.EXPECTED_TOKEN,a(),0,Y),"")}function g($){let Y="";for(;$.currentPeek()===ts||$.currentPeek()===ei;)Y+=$.currentPeek(),$.peek();return Y}function m($){const Y=g($);return $.skipToPeek(),Y}function y($){if($===il)return!1;const Y=$.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y===95}function S($){if($===il)return!1;const Y=$.charCodeAt(0);return Y>=48&&Y<=57}function b($,Y){const{currentType:te}=Y;if(te!==2)return!1;g($);const le=y($.currentPeek());return $.resetPeek(),le}function w($,Y){const{currentType:te}=Y;if(te!==2)return!1;g($);const le=$.currentPeek()==="-"?$.peek():$.currentPeek(),xe=S(le);return $.resetPeek(),xe}function C($,Y){const{currentType:te}=Y;if(te!==2)return!1;g($);const le=$.currentPeek()===SB;return $.resetPeek(),le}function x($,Y){const{currentType:te}=Y;if(te!==7)return!1;g($);const le=$.currentPeek()===".";return $.resetPeek(),le}function A($,Y){const{currentType:te}=Y;if(te!==8)return!1;g($);const le=y($.currentPeek());return $.resetPeek(),le}function D($,Y){const{currentType:te}=Y;if(!(te===7||te===11))return!1;g($);const le=$.currentPeek()===":";return $.resetPeek(),le}function M($,Y){const{currentType:te}=Y;if(te!==9)return!1;const le=()=>{const Pe=$.currentPeek();return Pe==="{"?y($.peek()):Pe==="@"||Pe==="|"||Pe===":"||Pe==="."||Pe===ts||!Pe?!1:Pe===ei?($.peek(),le()):P($,!1)},xe=le();return $.resetPeek(),xe}function I($){g($);const Y=$.currentPeek()==="|";return $.resetPeek(),Y}function P($,Y=!0){const te=(xe=!1,Pe="")=>{const K=$.currentPeek();return K==="{"||K==="@"||!K?xe:K==="|"?!(Pe===ts||Pe===ei):K===ts?($.peek(),te(!0,ts)):K===ei?($.peek(),te(!0,ei)):!0},le=te();return Y&&$.resetPeek(),le}function E($,Y){const te=$.currentChar();return te===il?il:Y(te)?($.next(),te):null}function F($){const Y=$.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y>=48&&Y<=57||Y===95||Y===36}function O($){return E($,F)}function N($){const Y=$.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y>=48&&Y<=57||Y===95||Y===36||Y===45}function V($){return E($,N)}function U($){const Y=$.charCodeAt(0);return Y>=48&&Y<=57}function G($){return E($,U)}function Z($){const Y=$.charCodeAt(0);return Y>=48&&Y<=57||Y>=65&&Y<=70||Y>=97&&Y<=102}function Q($){return E($,Z)}function ie($){let Y="",te="";for(;Y=G($);)te+=Y;return te}function pe($){let Y="";for(;;){const te=$.currentChar();if(te==="{"||te==="}"||te==="@"||te==="|"||!te)break;if(te===ts||te===ei)if(P($))Y+=te,$.next();else{if(I($))break;Y+=te,$.next()}else Y+=te,$.next()}return Y}function De($){m($);let Y="",te="";for(;Y=V($);)te+=Y;return $.currentChar()===il&&f(gr.UNTERMINATED_CLOSING_BRACE,a(),0),te}function Le($){m($);let Y="";return $.currentChar()==="-"?($.next(),Y+=`-${ie($)}`):Y+=ie($),$.currentChar()===il&&f(gr.UNTERMINATED_CLOSING_BRACE,a(),0),Y}function ze($){return $!==SB&&$!==ei}function He($){m($),v($,"'");let Y="",te="";for(;Y=E($,ze);)Y==="\\"?te+=oe($):te+=Y;const le=$.currentChar();return le===ei||le===il?(f(gr.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),le===ei&&($.next(),v($,"'")),te):(v($,"'"),te)}function oe($){const Y=$.currentChar();switch(Y){case"\\":case"'":return $.next(),`\\${Y}`;case"u":return ue($,Y,4);case"U":return ue($,Y,6);default:return f(gr.UNKNOWN_ESCAPE_SEQUENCE,a(),0,Y),""}}function ue($,Y,te){v($,Y);let le="";for(let xe=0;xe{const le=$.currentChar();return le==="{"||le==="@"||le==="|"||le==="("||le===")"||!le||le===ts?te:(te+=le,$.next(),Y(te))};return Y("")}function H($){m($);const Y=v($,"|");return m($),Y}function W($,Y){let te=null;switch($.currentChar()){case"{":return Y.braceNest>=1&&f(gr.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),$.next(),te=h(Y,2,"{"),m($),Y.braceNest++,te;case"}":return Y.braceNest>0&&Y.currentType===2&&f(gr.EMPTY_PLACEHOLDER,a(),0),$.next(),te=h(Y,3,"}"),Y.braceNest--,Y.braceNest>0&&m($),Y.inLinked&&Y.braceNest===0&&(Y.inLinked=!1),te;case"@":return Y.braceNest>0&&f(gr.UNTERMINATED_CLOSING_BRACE,a(),0),te=ne($,Y)||d(Y),Y.braceNest=0,te;default:{let xe=!0,Pe=!0,K=!0;if(I($))return Y.braceNest>0&&f(gr.UNTERMINATED_CLOSING_BRACE,a(),0),te=h(Y,1,H($)),Y.braceNest=0,Y.inLinked=!1,te;if(Y.braceNest>0&&(Y.currentType===4||Y.currentType===5||Y.currentType===6))return f(gr.UNTERMINATED_CLOSING_BRACE,a(),0),Y.braceNest=0,_e($,Y);if(xe=b($,Y))return te=h(Y,4,De($)),m($),te;if(Pe=w($,Y))return te=h(Y,5,Le($)),m($),te;if(K=C($,Y))return te=h(Y,6,He($)),m($),te;if(!xe&&!Pe&&!K)return te=h(Y,12,me($)),f(gr.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,te.value),m($),te;break}}return te}function ne($,Y){const{currentType:te}=Y;let le=null;const xe=$.currentChar();switch((te===7||te===8||te===11||te===9)&&(xe===ei||xe===ts)&&f(gr.INVALID_LINKED_FORMAT,a(),0),xe){case"@":return $.next(),le=h(Y,7,"@"),Y.inLinked=!0,le;case".":return m($),$.next(),h(Y,8,".");case":":return m($),$.next(),h(Y,9,":");default:return I($)?(le=h(Y,1,H($)),Y.braceNest=0,Y.inLinked=!1,le):x($,Y)||D($,Y)?(m($),ne($,Y)):A($,Y)?(m($),h(Y,11,Ce($))):M($,Y)?(m($),xe==="{"?W($,Y)||le:h(Y,10,Re($))):(te===7&&f(gr.INVALID_LINKED_FORMAT,a(),0),Y.braceNest=0,Y.inLinked=!1,_e($,Y))}}function _e($,Y){let te={type:13};if(Y.braceNest>0)return W($,Y)||d(Y);if(Y.inLinked)return ne($,Y)||d(Y);switch($.currentChar()){case"{":return W($,Y)||d(Y);case"}":return f(gr.UNBALANCED_CLOSING_BRACE,a(),0),$.next(),h(Y,3,"}");case"@":return ne($,Y)||d(Y);default:{if(I($))return te=h(Y,1,H($)),Y.braceNest=0,Y.inLinked=!1,te;if(P($))return h(Y,0,pe($));break}}return te}function he(){const{currentType:$,offset:Y,startLoc:te,endLoc:le}=l;return l.lastType=$,l.lastOffset=Y,l.lastStartLoc=te,l.lastEndLoc=le,l.offset=i(),l.startLoc=a(),n.currentChar()===il?h(l,13):_e(n,l)}return{nextToken:he,currentOffset:i,currentPosition:a,context:u}}const aTe="parser",oTe=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function sTe(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,b,w,...C){const x=y.currentPosition();if(x.offset+=w,x.column+=w,r){const A=t?QA(b,x):null,D=mS(S,A,{domain:aTe,args:C});r(D)}}function i(y,S,b){const w={type:y};return t&&(w.start=S,w.end=S,w.loc={start:b,end:b}),w}function a(y,S,b,w){t&&(y.end=S,y.loc&&(y.loc.end=b))}function o(y,S){const b=y.context(),w=i(3,b.offset,b.startLoc);return w.value=S,a(w,y.currentOffset(),y.currentPosition()),w}function s(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(5,w,C);return x.index=parseInt(S,10),y.nextToken(),a(x,y.currentOffset(),y.currentPosition()),x}function l(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(4,w,C);return x.key=S,y.nextToken(),a(x,y.currentOffset(),y.currentPosition()),x}function u(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(9,w,C);return x.value=S.replace(oTe,sTe),y.nextToken(),a(x,y.currentOffset(),y.currentPosition()),x}function c(y){const S=y.nextToken(),b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(8,w,C);return S.type!==11?(n(y,gr.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),x.value="",a(x,w,C),{nextConsumeToken:S,node:x}):(S.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,uo(S)),x.value=S.value||"",a(x,y.currentOffset(),y.currentPosition()),{node:x})}function f(y,S){const b=y.context(),w=i(7,b.offset,b.startLoc);return w.value=S,a(w,y.currentOffset(),y.currentPosition()),w}function h(y){const S=y.context(),b=i(6,S.offset,S.startLoc);let w=y.nextToken();if(w.type===8){const C=c(y);b.modifier=C.node,w=C.nextConsumeToken||y.nextToken()}switch(w.type!==9&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(w)),w=y.nextToken(),w.type===2&&(w=y.nextToken()),w.type){case 10:w.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(w)),b.key=f(y,w.value||"");break;case 4:w.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(w)),b.key=l(y,w.value||"");break;case 5:w.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(w)),b.key=s(y,w.value||"");break;case 6:w.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(w)),b.key=u(y,w.value||"");break;default:{n(y,gr.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const C=y.context(),x=i(7,C.offset,C.startLoc);return x.value="",a(x,C.offset,C.startLoc),b.key=x,a(b,C.offset,C.startLoc),{nextConsumeToken:w,node:b}}}return a(b,y.currentOffset(),y.currentPosition()),{node:b}}function d(y){const S=y.context(),b=S.currentType===1?y.currentOffset():S.offset,w=S.currentType===1?S.endLoc:S.startLoc,C=i(2,b,w);C.items=[];let x=null;do{const M=x||y.nextToken();switch(x=null,M.type){case 0:M.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(M)),C.items.push(o(y,M.value||""));break;case 5:M.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(M)),C.items.push(s(y,M.value||""));break;case 4:M.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(M)),C.items.push(l(y,M.value||""));break;case 6:M.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(M)),C.items.push(u(y,M.value||""));break;case 7:{const I=h(y);C.items.push(I.node),x=I.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const A=S.currentType===1?S.lastOffset:y.currentOffset(),D=S.currentType===1?S.lastEndLoc:y.currentPosition();return a(C,A,D),C}function v(y,S,b,w){const C=y.context();let x=w.items.length===0;const A=i(1,S,b);A.cases=[],A.cases.push(w);do{const D=d(y);x||(x=D.items.length===0),A.cases.push(D)}while(C.currentType!==13);return x&&n(y,gr.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),a(A,y.currentOffset(),y.currentPosition()),A}function g(y){const S=y.context(),{offset:b,startLoc:w}=S,C=d(y);return S.currentType===13?C:v(y,b,w,C)}function m(y){const S=iTe(y,dn({},e)),b=S.context(),w=i(0,b.offset,b.startLoc);return t&&w.loc&&(w.loc.source=y),w.body=g(S),e.onCacheKey&&(w.cacheKey=e.onCacheKey(y)),b.currentType!==13&&n(S,gr.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,y[b.offset]||""),a(w,S.currentOffset(),S.currentPosition()),w}return{parse:m}}function uo(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 uTe(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:a=>(r.helpers.add(a),a)}}function bB(e,t){for(let r=0;rwB(r)),e}function wB(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 d(){c(s.indentLevel)}return{context:l,push:u,indent:f,deindent:h,newline:d,helper:m=>`_${m}`,needIndent:()=>s.needIndent}}function dTe(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),Eh(e,t.key),t.modifier?(e.push(", "),Eh(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function vTe(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=Ue(t.mode)?t.mode:"normal",n=Ue(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=hTe(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 { ${pL(s.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),Eh(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 yTe(e,t={}){const r=dn({},t),n=!!r.jit,i=!!r.minify,a=r.optimize==null?!0:r.optimize,s=lTe(r).parse(e);return n?(a&&fTe(s),i&&Yf(s),{ast:s,code:""}):(cTe(s,r),mTe(s,r))}/*! - * core-base v10.0.4 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function _Te(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(vc().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(vc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function bC(e){return r=>STe(r,e)}function STe(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,xB(e,o)],[]))}else return xB(e,r)}function xB(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,eD(e,a)],[]);return e.normalize(n)}}function eD(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(eD(e,n.k||n.key),i?eD(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 bTe=e=>e;let Ry=Object.create(null);const kh=e=>sr(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function wTe(e,t={}){let r=!1;const n=t.onError||KCe;return t.onError=i=>{r=!0,n(i)},{...yTe(e,t),detectError:r}}function xTe(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ue(e)){rr(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||bTe)(e),i=Ry[n];if(i)return i;const{ast:a,detectError:o}=wTe(e,{...t,location:!1,jit:!0}),s=bC(a);return o?s:Ry[n]=s}else{const r=e.cacheKey;if(r){const n=Ry[r];return n||(Ry[r]=bC(e))}else return bC(e)}}let Yp=null;function CTe(e){Yp=e}function TTe(e,t,r){Yp&&Yp.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const ATe=DTe("function:translate");function DTe(e){return t=>Yp&&Yp.emit(e,t)}const vs={INVALID_ARGUMENT:jCe,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},MTe=24;function ps(e){return mS(e,null,void 0)}function mL(e,t){return t.locale!=null?CB(t.locale):CB(e.locale)}let wC;function CB(e){if(Ue(e))return e;if(Pr(e)){if(e.resolvedOnce&&wC!=null)return wC;if(e.constructor.name==="Function"){const t=e();if(YCe(t))throw ps(vs.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return wC=t}else throw ps(vs.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ps(vs.NOT_SUPPORT_LOCALE_TYPE)}function ITe(e,t,r){return[...new Set([r,...Wr(t)?t:sr(t)?Object.keys(t):Ue(t)?[t]:[r]])]}function I6(e,t,r){const n=Ue(r)?r:Xp,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let a=i.__localeChainCache.get(n);if(!a){a=[];let o=[r];for(;Wr(o);)o=TB(a,o,t);const s=Wr(t)||!Vt(t)?t:t.default?t.default:null;o=Ue(s)?[s]:s,Wr(o)&&TB(a,o,!1),i.__localeChainCache.set(n,a)}return a}function TB(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=NTe(o),o===!1))return!1;h[1]()}};function d(){const v=e[r+1];if(n===5&&v==="'"||n===6&&v==='"')return r++,s="\\"+v,h[0](),!0}for(;n!==null;)if(r++,a=e[r],!(a==="\\"&&d())){if(l=OTe(a),f=nu[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 AB=new Map;function VTe(e,t){return sr(e)?e[t]:null}function BTe(e,t){if(!sr(e))return null;let r=AB.get(t);if(r||(r=FTe(t),r&&AB.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 GTe(){return{upper:(e,t)=>t==="text"&&Ue(e)?e.toUpperCase():t==="vnode"&&sr(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ue(e)?e.toLowerCase():t==="vnode"&&sr(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ue(e)?MB(e):t==="vnode"&&sr(e)&&"__v_isVNode"in e?MB(e.children):e}}let L6;function $Te(e){L6=e}let P6;function HTe(e){P6=e}let R6;function WTe(e){R6=e}let E6=null;const UTe=e=>{E6=e},YTe=()=>E6;let k6=null;const IB=e=>{k6=e},XTe=()=>k6;let LB=0;function ZTe(e={}){const t=Pr(e.onWarn)?e.onWarn:ZCe,r=Ue(e.version)?e.version:zTe,n=Ue(e.locale)||Pr(e.locale)?e.locale:Xp,i=Pr(n)?Xp:n,a=Wr(e.fallbackLocale)||Vt(e.fallbackLocale)||Ue(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Vt(e.messages)?e.messages:{[i]:{}},s=Vt(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=Vt(e.numberFormats)?e.numberFormats:{[i]:{}},u=dn({},e.modifiers||{},GTe()),c=e.pluralRules||{},f=Pr(e.missing)?e.missing:null,h=rr(e.missingWarn)||Rh(e.missingWarn)?e.missingWarn:!0,d=rr(e.fallbackWarn)||Rh(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,g=!!e.unresolving,m=Pr(e.postTranslation)?e.postTranslation:null,y=Vt(e.processor)?e.processor:null,S=rr(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,w=Pr(e.messageCompiler)?e.messageCompiler:L6,C=Pr(e.messageResolver)?e.messageResolver:P6||VTe,x=Pr(e.localeFallbacker)?e.localeFallbacker:R6||ITe,A=sr(e.fallbackContext)?e.fallbackContext:void 0,D=e,M=sr(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,I=sr(D.__numberFormatters)?D.__numberFormatters:new Map,P=sr(D.__meta)?D.__meta:{};LB++;const E={version:r,cid:LB,locale:n,fallbackLocale:a,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:h,fallbackWarn:d,fallbackFormat:v,unresolving:g,postTranslation:m,processor:y,warnHtmlMessage:S,escapeParameter:b,messageCompiler:w,messageResolver:C,localeFallbacker:x,fallbackContext:A,onWarn:t,__meta:P};return E.datetimeFormats=s,E.numberFormats=l,E.__datetimeFormatters=M,E.__numberFormatters=I,__INTLIFY_PROD_DEVTOOLS__&&TTe(E,r,P),E}function yL(e,t,r,n,i){const{missing:a,onWarn:o}=e;if(a!==null){const s=a(e,r,t,i);return Ue(s)?s:t}else return t}function tv(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function qTe(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function jTe(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let n=r+1;n{O6.includes(l)?o[l]=r[l]:a[l]=r[l]}),Ue(n)?a.locale=n:Vt(n)&&(o=n),Vt(i)&&(o=i),[a.key||"",s,a,o]}function RB(e,t,r){const n=e;for(const i in r){const a=`${t}__${i}`;n.__datetimeFormatters.has(a)&&n.__datetimeFormatters.delete(a)}}function EB(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e,[l,u,c,f]=rD(...t),h=rr(c.missingWarn)?c.missingWarn:e.missingWarn;rr(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,v=mL(e,c),g=o(e,i,v);if(!Ue(l)||l==="")return new Intl.NumberFormat(v,f).format(u);let m={},y,S=null;const b="number format";for(let x=0;x{N6.includes(l)?o[l]=r[l]:a[l]=r[l]}),Ue(n)?a.locale=n:Vt(n)&&(o=n),Vt(i)&&(o=i),[a.key||"",s,a,o]}function kB(e,t,r){const n=e;for(const i in r){const a=`${t}__${i}`;n.__numberFormatters.has(a)&&n.__numberFormatters.delete(a)}}const KTe=e=>e,JTe=e=>"",QTe="text",eAe=e=>e.length===0?"":pL(e),tAe=XCe;function OB(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function rAe(e){const t=un(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(un(e.named.count)||un(e.named.n))?un(e.named.count)?e.named.count:un(e.named.n)?e.named.n:t:t}function nAe(e,t){t.count||(t.count=e),t.n||(t.n=e)}function iAe(e={}){const t=e.locale,r=rAe(e),n=sr(e.pluralRules)&&Ue(t)&&Pr(e.pluralRules[t])?e.pluralRules[t]:OB,i=sr(e.pluralRules)&&Ue(t)&&Pr(e.pluralRules[t])?OB:void 0,a=y=>y[n(r,y.length,i)],o=e.list||[],s=y=>o[y],l=e.named||{};un(e.pluralIndex)&&nAe(r,l);const u=y=>l[y];function c(y,S){const b=Pr(e.messages)?e.messages(y,!!S):sr(e.messages)?e.messages[y]:!1;return b||(e.parent?e.parent.message(y):JTe)}const f=y=>e.modifiers?e.modifiers[y]:KTe,h=Vt(e.processor)&&Pr(e.processor.normalize)?e.processor.normalize:eAe,d=Vt(e.processor)&&Pr(e.processor.interpolate)?e.processor.interpolate:tAe,v=Vt(e.processor)&&Ue(e.processor.type)?e.processor.type:QTe,m={list:s,named:u,plural:a,linked:(y,...S)=>{const[b,w]=S;let C="text",x="";S.length===1?sr(b)?(x=b.modifier||x,C=b.type||C):Ue(b)&&(x=b||x):S.length===2&&(Ue(b)&&(x=b||x),Ue(w)&&(C=w||C));const A=c(y,!0)(m),D=C==="vnode"&&Wr(A)&&x?A[0]:A;return x?f(x)(D,C):D},message:c,type:v,interpolate:d,normalize:h,values:dn({},o,l)};return m}const NB=()=>"",ga=e=>Pr(e);function FB(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[l,u]=nD(...t),c=rr(u.missingWarn)?u.missingWarn:e.missingWarn,f=rr(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=rr(u.escapeParameter)?u.escapeParameter:e.escapeParameter,d=!!u.resolvedMessage,v=Ue(u.default)||rr(u.default)?rr(u.default)?a?l:()=>l:u.default:r?a?l:()=>l:null,g=r||v!=null&&(Ue(v)||Pr(v)),m=mL(e,u);h&&aAe(u);let[y,S,b]=d?[l,m,s[m]||{}]:F6(e,l,m,o,f,c),w=y,C=l;if(!d&&!(Ue(w)||kh(w)||ga(w))&&g&&(w=v,C=w),!d&&(!(Ue(w)||kh(w)||ga(w))||!Ue(S)))return i?yS:l;let x=!1;const A=()=>{x=!0},D=ga(w)?w:V6(e,l,S,w,C,A);if(x)return w;const M=lAe(e,S,b,u),I=iAe(M),P=oAe(e,D,I),E=n?n(P,l):P;if(__INTLIFY_PROD_DEVTOOLS__){const F={timestamp:Date.now(),key:Ue(l)?l:ga(w)?w.key:"",locale:S||(ga(w)?w.locale:""),format:Ue(w)?w:ga(w)?w.source:"",message:E};F.meta=dn({},e.__meta,YTe()||{}),ATe(F)}return E}function aAe(e){Wr(e.list)?e.list=e.list.map(t=>Ue(t)?_B(t):t):sr(e.named)&&Object.keys(e.named).forEach(t=>{Ue(e.named[t])&&(e.named[t]=_B(e.named[t]))})}function F6(e,t,r,n,i,a){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,n,r);let f={},h,d=null;const v="translate";for(let g=0;gn;return u.locale=r,u.key=t,u}const l=o(n,sAe(e,r,i,n,s,a));return l.locale=r,l.key=t,l.source=n,l}function oAe(e,t,r){return t(r)}function nD(...e){const[t,r,n]=e,i={};if(!Ue(t)&&!un(t)&&!ga(t)&&!kh(t))throw ps(vs.INVALID_ARGUMENT);const a=un(t)?String(t):(ga(t),t);return un(r)?i.plural=r:Ue(r)?i.default=r:Vt(r)&&!gS(r)?i.named=r:Wr(r)&&(i.list=r),un(n)?i.plural=n:Ue(n)?i.default=n:Vt(n)&&dn(i,n),[a,i]}function sAe(e,t,r,n,i,a){return{locale:t,key:r,warnHtmlMessage:i,onError:o=>{throw a&&a(o),o},onCacheKey:o=>$Ce(t,r,o)}}function lAe(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:(d,v)=>{let g=o(r,d);if(g==null&&(c||v)){const[,,m]=F6(c||e,d,t,s,l,u);g=o(m,d)}if(Ue(g)||kh(g)){let m=!1;const S=V6(e,d,t,g,d,()=>{m=!0});return m?NB:S}else return ga(g)?g:NB}};return e.processor&&(h.processor=e.processor),n.list&&(h.list=n.list),n.named&&(h.named=n.named),un(n.plural)&&(h.pluralIndex=n.plural),h}_Te();/*! - * vue-i18n v10.0.4 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const uAe="10.0.4";function cAe(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(vc().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(vc().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(vc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(vc().__INTLIFY_PROD_DEVTOOLS__=!1)}const hi={UNEXPECTED_RETURN_TYPE:MTe,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 Ii(e,...t){return mS(e,null,void 0)}const iD=ru("__translateVNode"),aD=ru("__datetimeParts"),oD=ru("__numberParts"),B6=ru("__setPluralRules"),z6=ru("__injectWithOption"),sD=ru("__dispose");function Zp(e){if(!sr(e))return e;for(const t in e)if(j_(e,t))if(!t.includes("."))sr(e[t])&&Zp(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]||{},P0(u,o[l])):P0(u,o)}else Ue(s)&&P0(JSON.parse(s),o)}),i==null&&a)for(const s in o)j_(o,s)&&Zp(o[s]);return o}function G6(e){return e.type}function $6(e,t,r){let n=sr(t.messages)?t.messages:{};"__i18nGlobal"in r&&(n=_L(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const i=Object.keys(n);i.length&&i.forEach(a=>{e.mergeLocaleMessage(a,n[a])});{if(sr(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(sr(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function VB(e){return Be(eg,null,e,0)}const BB="__INTLIFY_META__",zB=()=>[],fAe=()=>!1;let GB=0;function $B(e){return(t,r,n,i)=>e(r,n,Io()||void 0,i)}const hAe=()=>{const e=Io();let t=null;return e&&(t=G6(e)[BB])?{[BB]:t}:null};function SL(e={}){const{__root:t,__injectWithOption:r}=e,n=t===void 0,i=e.flatJson,a=q_?je:d1;let o=rr(e.inheritLocale)?e.inheritLocale:!0;const s=a(t&&o?t.locale.value:Ue(e.locale)?e.locale:Xp),l=a(t&&o?t.fallbackLocale.value:Ue(e.fallbackLocale)||Wr(e.fallbackLocale)||Vt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=a(_L(s.value,e)),c=a(Vt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=a(Vt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=t?t.missingWarn:rr(e.missingWarn)||Rh(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:rr(e.fallbackWarn)||Rh(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:rr(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,m=Pr(e.missing)?e.missing:null,y=Pr(e.missing)?$B(e.missing):null,S=Pr(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:rr(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const C=t?t.modifiers:Vt(e.modifiers)?e.modifiers:{};let x=e.pluralRules||t&&t.pluralRules,A;A=(()=>{n&&IB(null);const K={version:uAe,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:C,pluralRules:x,missing:y===null?void 0:y,missingWarn:h,fallbackWarn:d,fallbackFormat:g,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:b,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};K.datetimeFormats=c.value,K.numberFormats=f.value,K.__datetimeFormatters=Vt(A)?A.__datetimeFormatters:void 0,K.__numberFormatters=Vt(A)?A.__numberFormatters:void 0;const ce=ZTe(K);return n&&IB(ce),ce})(),tv(A,s.value,l.value);function M(){return[s.value,l.value,u.value,c.value,f.value]}const I=at({get:()=>s.value,set:K=>{s.value=K,A.locale=s.value}}),P=at({get:()=>l.value,set:K=>{l.value=K,A.fallbackLocale=l.value,tv(A,s.value,K)}}),E=at(()=>u.value),F=at(()=>c.value),O=at(()=>f.value);function N(){return Pr(S)?S:null}function V(K){S=K,A.postTranslation=K}function U(){return m}function G(K){K!==null&&(y=$B(K)),m=K,A.missing=y}const Z=(K,ce,Ge,Je,Pt,zt)=>{M();let Rr;try{__INTLIFY_PROD_DEVTOOLS__,n||(A.fallbackContext=t?XTe():void 0),Rr=K(A)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(A.fallbackContext=void 0)}if(Ge!=="translate exists"&&un(Rr)&&Rr===yS||Ge==="translate exists"&&!Rr){const[zr,En]=ce();return t&&v?Je(t):Pt(zr)}else{if(zt(Rr))return Rr;throw Ii(hi.UNEXPECTED_RETURN_TYPE)}};function Q(...K){return Z(ce=>Reflect.apply(FB,null,[ce,...K]),()=>nD(...K),"translate",ce=>Reflect.apply(ce.t,ce,[...K]),ce=>ce,ce=>Ue(ce))}function ie(...K){const[ce,Ge,Je]=K;if(Je&&!sr(Je))throw Ii(hi.INVALID_ARGUMENT);return Q(ce,Ge,dn({resolvedMessage:!0},Je||{}))}function pe(...K){return Z(ce=>Reflect.apply(PB,null,[ce,...K]),()=>tD(...K),"datetime format",ce=>Reflect.apply(ce.d,ce,[...K]),()=>DB,ce=>Ue(ce))}function De(...K){return Z(ce=>Reflect.apply(EB,null,[ce,...K]),()=>rD(...K),"number format",ce=>Reflect.apply(ce.n,ce,[...K]),()=>DB,ce=>Ue(ce))}function Le(K){return K.map(ce=>Ue(ce)||un(ce)||rr(ce)?VB(String(ce)):ce)}const He={normalize:Le,interpolate:K=>K,type:"vnode"};function oe(...K){return Z(ce=>{let Ge;const Je=ce;try{Je.processor=He,Ge=Reflect.apply(FB,null,[Je,...K])}finally{Je.processor=null}return Ge},()=>nD(...K),"translate",ce=>ce[iD](...K),ce=>[VB(ce)],ce=>Wr(ce))}function ue(...K){return Z(ce=>Reflect.apply(EB,null,[ce,...K]),()=>rD(...K),"number format",ce=>ce[oD](...K),zB,ce=>Ue(ce)||Wr(ce))}function ve(...K){return Z(ce=>Reflect.apply(PB,null,[ce,...K]),()=>tD(...K),"datetime format",ce=>ce[aD](...K),zB,ce=>Ue(ce)||Wr(ce))}function me(K){x=K,A.pluralRules=x}function Ce(K,ce){return Z(()=>{if(!K)return!1;const Ge=Ue(ce)?ce:s.value,Je=W(Ge),Pt=A.messageResolver(Je,K);return kh(Pt)||ga(Pt)||Ue(Pt)},()=>[K],"translate exists",Ge=>Reflect.apply(Ge.te,Ge,[K,ce]),fAe,Ge=>rr(Ge))}function Re(K){let ce=null;const Ge=I6(A,l.value,s.value);for(let Je=0;Je{o&&(s.value=K,A.locale=K,tv(A,s.value,l.value))}),vr(t.fallbackLocale,K=>{o&&(l.value=K,A.fallbackLocale=K,tv(A,s.value,l.value))}));const Pe={id:GB,locale:I,fallbackLocale:P,get inheritLocale(){return o},set inheritLocale(K){o=K,K&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,tv(A,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:E,get modifiers(){return C},get pluralRules(){return x||{}},get isGlobal(){return n},get missingWarn(){return h},set missingWarn(K){h=K,A.missingWarn=h},get fallbackWarn(){return d},set fallbackWarn(K){d=K,A.fallbackWarn=d},get fallbackRoot(){return v},set fallbackRoot(K){v=K},get fallbackFormat(){return g},set fallbackFormat(K){g=K,A.fallbackFormat=g},get warnHtmlMessage(){return b},set warnHtmlMessage(K){b=K,A.warnHtmlMessage=K},get escapeParameter(){return w},set escapeParameter(K){w=K,A.escapeParameter=K},t:Q,getLocaleMessage:W,setLocaleMessage:ne,mergeLocaleMessage:_e,getPostTranslationHandler:N,setPostTranslationHandler:V,getMissingHandler:U,setMissingHandler:G,[B6]:me};return Pe.datetimeFormats=F,Pe.numberFormats=O,Pe.rt=ie,Pe.te=Ce,Pe.tm=H,Pe.d=pe,Pe.n=De,Pe.getDateTimeFormat=he,Pe.setDateTimeFormat=$,Pe.mergeDateTimeFormat=Y,Pe.getNumberFormat=te,Pe.setNumberFormat=le,Pe.mergeNumberFormat=xe,Pe[z6]=r,Pe[iD]=oe,Pe[aD]=ve,Pe[oD]=ue,Pe}function dAe(e){const t=Ue(e.locale)?e.locale:Xp,r=Ue(e.fallbackLocale)||Wr(e.fallbackLocale)||Vt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=Pr(e.missing)?e.missing:void 0,i=rr(e.silentTranslationWarn)||Rh(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=rr(e.silentFallbackWarn)||Rh(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=rr(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Vt(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Pr(e.postTranslation)?e.postTranslation:void 0,f=Ue(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,d=rr(e.sync)?e.sync:!0;let v=e.messages;if(Vt(e.sharedMessages)){const C=e.sharedMessages;v=Object.keys(C).reduce((A,D)=>{const M=A[D]||(A[D]={});return dn(M,C[D]),A},v||{})}const{__i18n:g,__root:m,__injectWithOption:y}=e,S=e.datetimeFormats,b=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:r,messages:v,flatJson:w,datetimeFormats:S,numberFormats:b,missing:n,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:d,__i18n:g,__root:m,__injectWithOption:y}}function lD(e={}){const t=SL(dAe(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 rr(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=rr(i)?!i:i},get silentFallbackWarn(){return rr(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=rr(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(!Ue(a))throw Ii(hi.INVALID_ARGUMENT);const f=a;return Ue(o)?l.locale=o:un(o)?l.plural=o:Wr(o)?u=o:Vt(o)&&(c=o),Ue(s)?l.locale=s:Wr(s)?u=s:Vt(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 vAe(e,t,r){return{beforeCreate(){const n=Io();if(!n)throw Ii(hi.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=HB(e,a);else{a.__injectWithOption=!0,a.__extender=r.__vueI18nExtend,this.$i18n=lD(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=HB(e,i);else{this.$i18n=lD({__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&&$6(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=Io();if(!n)throw Ii(hi.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 HB(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[B6](t.pluralizationRules||e.pluralizationRules);const r=_L(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 bL={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function pAe({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,i)=>[...n,...i.type===lt?i.children:[i]],[]):t.reduce((r,n)=>{const i=e[n];return i&&(r[n]=i()),r},{})}function H6(){return lt}const gAe=Ut({name:"i18n-t",props:dn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>un(e)||!isNaN(e)}},bL),setup(e,t){const{slots:r,attrs:n}=t,i=e.i18n||$c({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=Ue(e.plural)?+e.plural:e.plural);const s=pAe(t,a),l=i[iD](e.keypath,s,o),u=dn({},n),c=Ue(e.tag)||sr(e.tag)?e.tag:H6();return yo(c,u,l)}}}),WB=gAe;function mAe(e){return Wr(e)&&!Ue(e[0])}function W6(e,t,r,n){const{slots:i,attrs:a}=t;return()=>{const o={part:!0};let s={};e.locale&&(o.locale=e.locale),Ue(e.format)?o.key=e.format:sr(e.format)&&(Ue(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((h,d)=>r.includes(d)?dn({},h,{[d]:e.format[d]}):h,{}));const l=n(e.value,o,s);let u=[o.key];Wr(l)?u=l.map((h,d)=>{const v=i[h.type],g=v?v({[h.type]:h.value,index:d,parts:l}):[h.value];return mAe(g)&&(g[0].key=`${h.type}-${d}`),g}):Ue(l)&&(u=[l]);const c=dn({},a),f=Ue(e.tag)||sr(e.tag)?e.tag:H6();return yo(f,c,u)}}const yAe=Ut({name:"i18n-n",props:dn({value:{type:Number,required:!0},format:{type:[String,Object]}},bL),setup(e,t){const r=e.i18n||$c({useScope:e.scope,__useComponent:!0});return W6(e,t,N6,(...n)=>r[oD](...n))}}),UB=yAe,_Ae=Ut({name:"i18n-d",props:dn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},bL),setup(e,t){const r=e.i18n||$c({useScope:e.scope,__useComponent:!0});return W6(e,t,O6,(...n)=>r[aD](...n))}}),YB=_Ae;function SAe(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 bAe(e){const t=o=>{const{instance:s,value:l}=o;if(!s||!s.$)throw Ii(hi.UNEXPECTED_ERROR);const u=SAe(e,s.$),c=XB(l);return[Reflect.apply(u.t,u,[...ZB(c)]),u]};return{created:(o,s)=>{const[l,u]=t(s);q_&&e.global===u&&(o.__i18nWatcher=vr(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{q_&&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=XB(s);o.textContent=Reflect.apply(l.t,l,[...ZB(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function XB(e){if(Ue(e))return{path:e};if(Vt(e)){if(!("path"in e))throw Ii(hi.REQUIRED_VALUE,"path");return e}else throw Ii(hi.INVALID_VALUE)}function ZB(e){const{path:t,locale:r,args:n,choice:i,plural:a}=e,o={},s=n||{};return Ue(r)&&(o.locale=r),un(i)&&(o.plural=i),un(a)&&(o.plural=a),[t,s,o]}function wAe(e,t,...r){const n=Vt(r[0])?r[0]:{};(rr(n.globalInstall)?n.globalInstall:!0)&&([WB.name,"I18nT"].forEach(a=>e.component(a,WB)),[UB.name,"I18nN"].forEach(a=>e.component(a,UB)),[YB.name,"I18nD"].forEach(a=>e.component(a,YB))),e.directive("t",bAe(t))}const xAe=ru("global-vue-i18n");function CAe(e={},t){const r=__VUE_I18N_LEGACY_API__&&rr(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=rr(e.globalInjection)?e.globalInjection:!0,i=new Map,[a,o]=TAe(e,r),s=ru("");function l(h){return i.get(h)||null}function u(h,d){i.set(h,d)}function c(h){i.delete(h)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},async install(h,...d){if(h.__VUE_I18N_SYMBOL__=s,h.provide(h.__VUE_I18N_SYMBOL__,f),Vt(d[0])){const m=d[0];f.__composerExtend=m.__composerExtend,f.__vueI18nExtend=m.__vueI18nExtend}let v=null;!r&&n&&(v=EAe(h,f.global)),__VUE_I18N_FULL_INSTALL__&&wAe(h,f,...d),__VUE_I18N_LEGACY_API__&&r&&h.mixin(vAe(o,o.__composer,f));const g=h.unmount;h.unmount=()=>{v&&v(),f.dispose(),g()}},get global(){return o},dispose(){a.stop()},__instances:i,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function $c(e={}){const t=Io();if(t==null)throw Ii(hi.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ii(hi.NOT_INSTALLED);const r=AAe(t),n=MAe(r),i=G6(t),a=DAe(e,i);if(a==="global")return $6(n,e,i),n;if(a==="parent"){let l=IAe(r,t,e.__useComponent);return l==null&&(l=n),l}const o=r;let s=o.__getInstance(t);if(s==null){const l=dn({},e);"__i18n"in i&&(l.__i18n=i.__i18n),n&&(l.__root=n),s=SL(l),o.__composerExtend&&(s[sD]=o.__composerExtend(s)),PAe(o,t,s),o.__setInstance(t,s)}return s}function TAe(e,t,r){const n=HJ(),i=__VUE_I18N_LEGACY_API__&&t?n.run(()=>lD(e)):n.run(()=>SL(e));if(i==null)throw Ii(hi.UNEXPECTED_ERROR);return[n,i]}function AAe(e){const t=$a(e.isCE?xAe:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ii(e.isCE?hi.NOT_INSTALLED_WITH_PROVIDE:hi.UNEXPECTED_ERROR);return t}function DAe(e,t){return gS(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function MAe(e){return e.mode==="composition"?e.global:e.global.__composer}function IAe(e,t,r=!1){let n=null;const i=t.root;let a=LAe(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[z6]&&(n=null))}if(n!=null||i===a)break;a=a.parent}return n}function LAe(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function PAe(e,t,r){Bh(()=>{},t),g1(()=>{const n=r;e.__deleteInstance(t);const i=n[sD];i&&(i(),delete n[sD])},t)}const RAe=["locale","fallbackLocale","availableLocales"],qB=["t","rt","d","n","tm","te"];function EAe(e,t){const r=Object.create(null);return RAe.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a)throw Ii(hi.UNEXPECTED_ERROR);const o=bt(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,qB.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a||!a.value)throw Ii(hi.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,a)}),()=>{delete e.config.globalProperties.$i18n,qB.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}cAe();$Te(xTe);HTe(BTe);WTe(I6);if(__INTLIFY_PROD_DEVTOOLS__){const e=vc();e.__INTLIFY__=!0,CTe(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const kAe=Ut({__name:"SpeedCharts",setup(e){const t=je(),r=je(),n=je(),i=$c().t,a=je();return Bh(()=>{const o=at(()=>{var d,v,g;const c=(d=getComputedStyle(t.value))==null?void 0:d.color,f=(v=getComputedStyle(r.value))==null?void 0:v.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=>`${Or(m,{maximumFractionDigits:1})}/s`,color:c},splitLine:{show:!1}},animation:!1,series:[{name:i("upload"),data:cv.value,symbol:"none",emphasis:{disabled:!0},type:"line",color:h,smooth:!0},{name:i("download"),data:uv.value,symbol:"none",emphasis:{disabled:!0},type:"line",color:f,smooth:!0}]}}),s=Ofe(a.value);s.setOption(o.value),vr(o,()=>{s.setOption(o.value)});const{width:l}=wte(a),u=Ec.debounce(()=>{s.resize()},100);vr(()=>l.value,()=>{u()})}),(o,s)=>(se(),be(lt,null,[ee("div",{ref_key:"chart",ref:a,class:"card h-28 w-full bg-base-100 p-0 shadow-lg"},null,512),ee("span",{class:"hidden text-base-content",ref_key:"text",ref:t},null,512),ee("span",{class:"hidden text-primary",ref_key:"primaryText",ref:r},null,512),ee("span",{class:"hidden text-info",ref_key:"secondaryText",ref:n},null,512)],64))}}),OAe={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 For Proxy Groups",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",language:"Language",automaticDisconnection:"Automatic Disconnection",twoColumnsForProxyGroupInMobile:"Two Columns For Proxy Group In Mobile",[Lo.EN_US]:"English",[Lo.ZH_CN]:"中文"},NAe={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:"按延迟升序",language:"语言",automaticDisconnection:"自动断开连接",twoColumnsForProxyGroupInMobile:"在移动端显示两列代理节点",[Lo.EN_US]:"English",[Lo.ZH_CN]:"中文"},wL=CAe({locale:fs.value,messages:{[Lo.EN_US]:OAe,[Lo.ZH_CN]:NAe}}),FAe=Ut({props:{conn:Object},name:"ConnectionCard",setup(e,{emit:t}){return()=>{const r=Be("span",{class:"flex-1"},null),n=Be("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,Be("span",{class:"hidden sm:inline"},[Zt(":"),e.conn.metadata.destinationPort])]),i=Be("div",{class:"badge flex bg-base-200 px-1 text-sm text-base-content"},[Be(Pne,{class:"h-4 w-3"},null),Be("div",{class:"hidden w-16 text-right sm:inline"},[Or(e.conn.download),Zt(" |")," "]),Be("div",{class:"w-20 text-right"},[Or(e.conn.downloadSpeed),Zt("/s")])]),a=Be("div",{class:"badge hidden bg-base-200 px-1 text-sm text-base-content 2xl:flex"},[Be(cE,{class:"h-4 w-3"},null),Be("div",{class:"w-16 text-right"},[Or(e.conn.upload),Zt(" | ")]),Be("div",{class:"w-20 text-right"},[Or(e.conn.uploadSpeed),Zt("/s")])]),o=Be("div",{class:"badge hidden bg-base-200 px-1 text-sm text-base-content lg:flex"},[Be(cE,{class:"h-4 w-3"},null),Be("div",{class:"w-16 text-right"},[Or(e.conn.upload),Zt(" | ")]),Be("div",{class:"w-20 text-right"},[Or(e.conn.uploadSpeed),Zt("/s")])]),s=Be("div",{class:"flex w-12 gap-1"},[Be("button",{class:"btn btn-circle btn-xs",onClick:()=>t("info",e.conn)},[Be(PG,{class:"h-4 w-4"},null)]),Be("button",{onClick:()=>T1(e.conn.id)},[Be(QD,{class:"h-4 w-4"},null)])]),l=Be("span",{class:"inline w-56 text-sm"},[[...e.conn.chains].reverse().join("->")]),u=Be("span",{class:"hidden text-sm tracking-tight xl:inline"},[e.conn.rule]),c=Be("span",{class:"hidden min-w-48 px-2 text-sm 2xl:inline"},[e.conn.metadata.processPath]),f=Be("span",{class:nn("inline whitespace-nowrap text-right text-sm tracking-tight",fs.value===Lo.ZH_CN?"w-20":"w-32")},[M1(e.conn.start)]),h=Be("span",{class:"hidden w-36 text-sm lg:inline"},[e.conn.metadata.type,Zt(" | "),e.conn.metadata.network]),d=Be("span",{class:"hidden w-36 text-sm md:inline"},[e.conn.metadata.type,Zt(" | "),e.conn.metadata.network]),v=e.conn.metadata.destinationIP||"remote-resolve",g=Be("span",{class:"hidden w-96 truncate text-sm tracking-tight xl:flex"},[Be("span",null,[e.conn.metadata.sourceIP,Zt(":"),e.conn.metadata.sourcePort]),Be("span",null,[Zt("->")]),Be("span",null,[v,Zt(":"),e.conn.metadata.destinationPort])]),m=Be("span",{class:"hidden w-52 truncate text-sm tracking-tight 3xl:flex"},[Be("span",null,[e.conn.metadata.sourceIP]),Be("span",null,[Zt("->")]),Be("span",null,[v])]);return UG.value&&n0.value?Be("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,d,i,a,f,s]):Be("div",{class:"card w-full gap-[1px] rounded-xl bg-base-100 px-2 py-[1px] shadow-lg"},[Be("div",{class:"flex flex-row items-center gap-1 px-1"},[n,r,c,g,i,o]),Be("div",{class:"flex flex-row items-center gap-1 px-1"},[l,u,r,h,f,s])])}}});/** - * table-core - * - * Copyright (c) TanStack - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Il(e,t){return typeof e=="function"?e(t):e}function qi(e,t){return r=>{t.setState(n=>({...n,[e]:Il(r,n[e])}))}}function Lc(e){return e instanceof Function}function VAe(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function U6(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 dt(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,d=(v,g)=>{for(v=String(v);v.length{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:n}}function BAe(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:dt(()=>[e,r,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),vt(e.options,"debugCells"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,r,t,e)},{}),a}function zAe(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 d=h;for(const g of l.split(".")){var v;d=(v=d)==null?void 0:v[g]}return d}:c=h=>h[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:dt(()=>[!0],()=>{var h;return[f,...(h=f.columns)==null?void 0:h.flatMap(d=>d.getFlatColumns())]},vt(e.options,"debugColumns")),getLeafColumns:dt(()=>[e._getOrderColumnsFn()],h=>{var d;if((d=f.columns)!=null&&d.length){let v=f.columns.flatMap(g=>g.getLeafColumns());return h(v)}return[f]},vt(e.options,"debugColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(f,e);return f}const Vn="debugHeaders";function jB(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 GAe={createTable:e=>{e.getHeaderGroups=dt(()=>[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 Ey(t,[...s,...u,...l],e)},vt(e.options,Vn)),e.getCenterHeaderGroups=dt(()=>[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))),Ey(t,r,e,"center")),vt(e.options,Vn)),e.getLeftHeaderGroups=dt(()=>[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 Ey(t,a,e,"left")},vt(e.options,Vn)),e.getRightHeaderGroups=dt(()=>[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 Ey(t,a,e,"right")},vt(e.options,Vn)),e.getFooterGroups=dt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),vt(e.options,Vn)),e.getLeftFooterGroups=dt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),vt(e.options,Vn)),e.getCenterFooterGroups=dt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),vt(e.options,Vn)),e.getRightFooterGroups=dt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),vt(e.options,Vn)),e.getFlatHeaders=dt(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),vt(e.options,Vn)),e.getLeftFlatHeaders=dt(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),vt(e.options,Vn)),e.getCenterFlatHeaders=dt(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),vt(e.options,Vn)),e.getRightFlatHeaders=dt(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),vt(e.options,Vn)),e.getCenterLeafHeaders=dt(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),vt(e.options,Vn)),e.getLeftLeafHeaders=dt(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),vt(e.options,Vn)),e.getRightLeafHeaders=dt(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),vt(e.options,Vn)),e.getLeafHeaders=dt(()=>[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()},vt(e.options,Vn))}};function Ey(e,t,r,n){var i,a;let o=0;const s=function(h,d){d===void 0&&(d=1),o=Math.max(o,d),h.filter(v=>v.getIsVisible()).forEach(v=>{var g;(g=v.columns)!=null&&g.length&&s(v.columns,d+1)},0)};s(e);let l=[];const u=(h,d)=>{const v={depth:d,id:[n,`${d}`].filter(Boolean).join("_"),headers:[]},g=[];h.forEach(m=>{const y=[...g].reverse()[0],S=m.column.depth===v.depth;let b,w=!1;if(S&&m.column.parent?b=m.column.parent:(b=m.column,w=!0),y&&(y==null?void 0:y.column)===b)y.subHeaders.push(m);else{const C=jB(r,b,{id:[n,d,b.id,m==null?void 0:m.id].filter(Boolean).join("_"),isPlaceholder:w,placeholderId:w?`${g.filter(x=>x.column===b).length}`:void 0,depth:d,index:g.length});C.subHeaders.push(m),g.push(C)}v.headers.push(m),m.headerGroup=v}),l.push(v),d>0&&u(g,d-1)},c=t.map((h,d)=>jB(r,h,{depth:o,index:d}));u(c,o-1),l.reverse();const f=h=>h.filter(v=>v.column.getIsVisible()).map(v=>{let g=0,m=0,y=[0];v.subHeaders&&v.subHeaders.length?(y=[],f(v.subHeaders).forEach(b=>{let{colSpan:w,rowSpan:C}=b;g+=w,y.push(C)})):g=1;const S=Math.min(...y);return m=m+S,v.colSpan=g,v.rowSpan=m,{colSpan:g,rowSpan:m}});return f((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const Y6=(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:()=>U6(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:dt(()=>[e.getAllLeafColumns()],l=>l.map(u=>BAe(e,s,u,u.id)),vt(e.options,"debugRows")),_getAllCellsByColumnId:dt(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),vt(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()}}},X6=(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))};X6.autoRemove=e=>Ua(e);const Z6=(e,t,r)=>{var n;return!!(!((n=e.getValue(t))==null||(n=n.toString())==null)&&n.includes(r))};Z6.autoRemove=e=>Ua(e);const q6=(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())};q6.autoRemove=e=>Ua(e);const j6=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};j6.autoRemove=e=>Ua(e)||!(e!=null&&e.length);const K6=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});K6.autoRemove=e=>Ua(e)||!(e!=null&&e.length);const J6=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});J6.autoRemove=e=>Ua(e)||!(e!=null&&e.length);const Q6=(e,t,r)=>e.getValue(t)===r;Q6.autoRemove=e=>Ua(e);const e7=(e,t,r)=>e.getValue(t)==r;e7.autoRemove=e=>Ua(e);const xL=(e,t,r)=>{let[n,i]=r;const a=e.getValue(t);return a>=n&&a<=i};xL.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]};xL.autoRemove=e=>Ua(e)||Ua(e[0])&&Ua(e[1]);const os={includesString:X6,includesStringSensitive:Z6,equalsString:q6,arrIncludes:j6,arrIncludesAll:K6,arrIncludesSome:J6,equals:Q6,weakEquals:e7,inNumberRange:xL};function Ua(e){return e==null||e===""}const HAe={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:qi("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"?os.includesString:typeof n=="number"?os.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?os.equals:Array.isArray(n)?os.arrIncludes:os.weakEquals},e.getFilterFn=()=>{var r,n;return Lc(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:os[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=Il(r,a?a.value:void 0);if(KB(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=Il(t,i))==null?void 0:a.filter(o=>{const s=r.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(KB(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 KB(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const WAe=(e,t,r)=>r.reduce((n,i)=>{const a=i.getValue(e);return n+(typeof a=="number"?a:0)},0),UAe=(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},YAe=(e,t,r)=>{let n;return r.forEach(i=>{const a=i.getValue(e);a!=null&&(n=a)&&(n=a)}),n},XAe=(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},qAe=(e,t)=>{if(!t.length)return;const r=t.map(a=>a.getValue(e));if(!VAe(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},jAe=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),KAe=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,JAe=(e,t)=>t.length,xC={sum:WAe,min:UAe,max:YAe,extent:XAe,mean:ZAe,median:qAe,unique:jAe,uniqueCount:KAe,count:JAe},QAe={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:qi("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 xC.sum;if(Object.prototype.toString.call(n)==="[object Date]")return xC.extent},e.getAggregationFn=()=>{var r,n;if(!e)throw new Error;return Lc(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:xC[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 eDe(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 tDe={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:qi("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=dt(r=>[ep(t,r)],r=>r.findIndex(n=>n.id===e.id),vt(t.options,"debugColumns")),e.getIsFirstColumn=r=>{var n;return((n=ep(t,r)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=r=>{var n;const i=ep(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=dt(()=>[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 eDe(a,r,n)},vt(e.options,"debugTable"))}},CC=()=>({left:[],right:[]}),rDe={getInitialState:e=>({columnPinning:CC(),...e}),getDefaultOptions:e=>({onColumnPinningChange:qi("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=dt(()=>[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))},vt(t.options,"debugRows")),e.getLeftVisibleCells=dt(()=>[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"})),vt(t.options,"debugRows")),e.getRightVisibleCells=dt(()=>[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"})),vt(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?CC():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:CC())},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=dt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),vt(e.options,"debugColumns")),e.getRightLeafColumns=dt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),vt(e.options,"debugColumns")),e.getCenterLeafColumns=dt(()=>[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))},vt(e.options,"debugColumns"))}},ky={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},TC=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),nDe={getDefaultColumnDef:()=>ky,getInitialState:e=>({columnSizing:{},columnSizingInfo:TC(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:qi("columnSizing",e),onColumnSizingInfoChange:qi("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:ky.minSize,(n=a??e.columnDef.size)!=null?n:ky.size),(i=e.columnDef.maxSize)!=null?i:ky.maxSize)},e.getStart=dt(r=>[r,ep(t,r),t.getState().columnSizing],(r,n)=>n.slice(0,e.getIndex(r)).reduce((i,a)=>i+a.getSize(),0),vt(t.options,"debugColumns")),e.getAfter=dt(r=>[r,ep(t,r),t.getState().columnSizing],(r,n)=>n.slice(e.getIndex(r)+1).reduce((i,a)=>i+a.getSize(),0),vt(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(),AC(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=AC(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(y,S)=>{typeof S=="number"&&(t.setColumnSizingInfo(b=>{var w,C;const x=t.options.columnResizeDirection==="rtl"?-1:1,A=(S-((w=b==null?void 0:b.startOffset)!=null?w:0))*x,D=Math.max(A/((C=b==null?void 0:b.startSize)!=null?C:0),-.999999);return b.columnSizingStart.forEach(M=>{let[I,P]=M;u[I]=Math.round(Math.max(P+P*D,0)*100)/100}),{...b,deltaOffset:A,deltaPercentage:D}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(b=>({...b,...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:[]}))},d=r||typeof document<"u"?document:null,v={moveHandler:y=>f(y.clientX),upHandler:y=>{d==null||d.removeEventListener("mousemove",v.moveHandler),d==null||d.removeEventListener("mouseup",v.upHandler),h(y.clientX)}},g={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),f(y.touches[0].clientX),!1),upHandler:y=>{var S;d==null||d.removeEventListener("touchmove",g.moveHandler),d==null||d.removeEventListener("touchend",g.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),h((S=y.touches[0])==null?void 0:S.clientX)}},m=iDe()?{passive:!1}:!1;AC(a)?(d==null||d.addEventListener("touchmove",g.moveHandler,m),d==null||d.addEventListener("touchend",g.upHandler,m)):(d==null||d.addEventListener("mousemove",v.moveHandler,m),d==null||d.addEventListener("mouseup",v.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?TC():(r=e.initialState.columnSizingInfo)!=null?r:TC())},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 Oy=null;function iDe(){if(typeof Oy=="boolean")return Oy;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 Oy=e,Oy}function AC(e){return e.type==="touchstart"}const aDe={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:qi("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=dt(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),vt(t.options,"debugRows")),e.getVisibleCells=dt(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],vt(t.options,"debugRows"))},createTable:e=>{const t=(r,n)=>dt(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),vt(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 ep(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const oDe={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()}}},sDe={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:qi("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=()=>os.includesString,e.getGlobalFilterFn=()=>{var t,r;const{globalFilterFn:n}=e.options;return Lc(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:os[n]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},lDe={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:qi("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()}}}},uD=0,cD=10,DC=()=>({pageIndex:uD,pageSize:cD}),uDe={getInitialState:e=>({...e,pagination:{...DC(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:qi("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=>Il(n,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=n=>{var i;e.setPagination(n?DC():(i=e.initialState.pagination)!=null?i:DC())},e.setPageIndex=n=>{e.setPagination(i=>{let a=Il(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?uD:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:uD)},e.resetPageSize=n=>{var i,a;e.setPageSize(n?cD:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:cD)},e.setPageSize=n=>{e.setPagination(i=>{const a=Math.max(1,Il(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=Il(n,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=dt(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((a,o)=>o)),i},vt(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}}},MC=()=>({top:[],bottom:[]}),cDe={getInitialState:e=>({rowPinning:MC(),...e}),getDefaultOptions:e=>({onRowPinningChange:qi("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 d,v;return{top:[...((d=l==null?void 0:l.top)!=null?d:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)],bottom:((v=l==null?void 0:l.bottom)!=null?v:[]).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?MC():(r=(n=e.initialState)==null?void 0:n.rowPinning)!=null?r:MC())},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=dt(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,r)=>e._getPinnedRows(t,r,"top"),vt(e.options,"debugRows")),e.getBottomRows=dt(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,r)=>e._getPinnedRows(t,r,"bottom"),vt(e.options,"debugRows")),e.getCenterRows=dt(()=>[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))},vt(e.options,"debugRows"))}},fDe={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:qi("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=>{fD(i,a.id,n,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=dt(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?IC(e,r):{rows:[],flatRows:[],rowsById:{}},vt(e.options,"debugTable")),e.getFilteredSelectedRowModel=dt(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?IC(e,r):{rows:[],flatRows:[],rowsById:{}},vt(e.options,"debugTable")),e.getGroupedSelectedRowModel=dt(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?IC(e,r):{rows:[],flatRows:[],rowsById:{}},vt(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 fD(s,e.id,r,(o=n==null?void 0:n.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:r}=t.getState();return CL(e,r)},e.getIsSomeSelected=()=>{const{rowSelection:r}=t.getState();return hD(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=t.getState();return hD(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)}}}},fD=(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=>fD(e,s.id,r,n,i))};function IC(e,t){const r=e.getState().rowSelection,n=[],i={},a=function(o,s){return o.map(l=>{var u;const c=CL(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 CL(e,t){var r;return(r=t[e.id])!=null?r:!1}function hD(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()&&(CL(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=hD(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const dD=/([0-9]+)/gm,hDe=(e,t,r)=>t7(jl(e.getValue(r)).toLowerCase(),jl(t.getValue(r)).toLowerCase()),dDe=(e,t,r)=>t7(jl(e.getValue(r)),jl(t.getValue(r))),vDe=(e,t,r)=>TL(jl(e.getValue(r)).toLowerCase(),jl(t.getValue(r)).toLowerCase()),pDe=(e,t,r)=>TL(jl(e.getValue(r)),jl(t.getValue(r))),gDe=(e,t,r)=>{const n=e.getValue(r),i=t.getValue(r);return n>i?1:nTL(e.getValue(r),t.getValue(r));function TL(e,t){return e===t?0:e>t?1:-1}function jl(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function t7(e,t){const r=e.split(dD).filter(Boolean),n=t.split(dD).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 rv={alphanumeric:hDe,alphanumericCaseSensitive:dDe,text:vDe,textCaseSensitive:pDe,datetime:gDe,basic:mDe},yDe={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:qi("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 rv.datetime;if(typeof a=="string"&&(n=!0,a.split(dD).length>1))return rv.alphanumeric}return n?rv.text:rv.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 Lc(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:rv[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(d=>d.id===e.id),l=o==null?void 0:o.findIndex(d=>d.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(d=>d.id===e.id?{...d,desc:f}:d):c==="remove"?u=o.filter(d=>d.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())}},_De=[GAe,aDe,tDe,rDe,$Ae,HAe,oDe,sDe,yDe,QAe,lDe,uDe,cDe,fDe,nDe];function SDe(e){var t,r;const n=[..._De,...(t=e._features)!=null?t:[]];let i={_features:n};const a=i._features.reduce((h,d)=>Object.assign(h,d.getDefaultOptions==null?void 0:d.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 d;l=(d=h.getInitialState==null?void 0:h.getInitialState(l))!=null?d: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(d=>setTimeout(()=>{throw d})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const d=Il(h,i.options);i.options=o(d)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,d,v)=>{var g;return(g=i.options.getRowId==null?void 0:i.options.getRowId(h,d,v))!=null?g:`${v?[v.id,d].join("."):d}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,d)=>{let v=(d?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!v&&(v=i.getCoreRowModel().rowsById[h],!v))throw new Error;return v},_getDefaultColumnDef:dt(()=>[i.options.defaultColumn],h=>{var d;return h=(d=h)!=null?d:{},{header:v=>{const g=v.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:v=>{var g,m;return(g=(m=v.renderValue())==null||m.toString==null?void 0:m.toString())!=null?g:null},...i._features.reduce((v,g)=>Object.assign(v,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...h}},vt(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:dt(()=>[i._getColumnDefs()],h=>{const d=function(v,g,m){return m===void 0&&(m=0),v.map(y=>{const S=zAe(i,y,m,g),b=y;return S.columns=b.columns?d(b.columns,S,m+1):[],S})};return d(h)},vt(e,"debugColumns")),getAllFlatColumns:dt(()=>[i.getAllColumns()],h=>h.flatMap(d=>d.getFlatColumns()),vt(e,"debugColumns")),_getAllFlatColumnsById:dt(()=>[i.getAllFlatColumns()],h=>h.reduce((d,v)=>(d[v.id]=v,d),{}),vt(e,"debugColumns")),getAllLeafColumns:dt(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,d)=>{let v=h.flatMap(g=>g.getLeafColumns());return d(v)},vt(e,"debugColumns")),getColumn:h=>i._getAllFlatColumnsById()[h]};Object.assign(i,f);for(let h=0;hdt(()=>[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 wDe(){return e=>dt(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,r,n)=>!r.rows.length||t!==!0&&!Object.keys(t??{}).length||!n?r:xDe(r),vt(e.options,"debugTable"))}function xDe(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 CDe(){return e=>dt(()=>[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(v=>(v.depth=u,i.push(v),a[v.id]=v,v.subRows&&(v.subRows=o(v.subRows,u+1,v.id)),v));const f=n[u],h=TDe(l,f);return Array.from(h.entries()).map((v,g)=>{let[m,y]=v,S=`${f}:${m}`;S=c?`${c}>${S}`:S;const b=o(y,u+1,S);b.forEach(x=>{x.parentId=S});const w=u?U6(y,x=>x.subRows):y,C=Y6(e,S,w[0].original,g,u,void 0,c);return Object.assign(C,{groupingColumnId:f,groupingValue:m,subRows:b,leafRows:w,getValue:x=>{if(n.includes(x)){if(C._valuesCache.hasOwnProperty(x))return C._valuesCache[x];if(y[0]){var A;C._valuesCache[x]=(A=y[0].getValue(x))!=null?A:void 0}return C._valuesCache[x]}if(C._groupingValuesCache.hasOwnProperty(x))return C._groupingValuesCache[x];const D=e.getColumn(x),M=D==null?void 0:D.getAggregationFn();if(M)return C._groupingValuesCache[x]=M(x,w,y),C._groupingValuesCache[x]}}),b.forEach(x=>{i.push(x),a[x.id]=x}),C})},s=o(r.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},vt(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function TDe(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 ADe(){return e=>dt(()=>[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 d=0;d{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}},vt(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/** - * vue-table - * - * Copyright (c) TanStack - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Ny(){return!0}const DDe=Symbol("merge-proxy"),MDe={get(e,t,r){return t===DDe?r:e.get(t)},has(e,t){return e.has(t)},set:Ny,deleteProperty:Ny,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Ny,deleteProperty:Ny}},ownKeys(e){return e.keys()}};function LC(e){return"value"in e?e.value:e}function xv(){for(var e=arguments.length,t=new Array(e),r=0;r=0;i--){const a=LC(t[i])[n];if(a!==void 0)return a}},has(n){for(let i=t.length-1;i>=0;i--)if(n in LC(t[i]))return!0;return!1},keys(){const n=[];for(let i=0;i()=>typeof e.render=="function"||typeof e.render=="object"?yo(e.render,e.props):e.render});function JB(e){return xv(e,{data:J(e.data)})}function IDe(e){const t=bt(e.data),r=xv({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(a,o){return t?{...a,...o}:xv(a,o)}},t?JB(e):e),n=SDe(r);if(t){const a=d1(e.data);vr(a,()=>{n.setState(o=>({...o,data:a.value}))},{immediate:!0})}const i=je(n.initialState);return GD(()=>{n.setOptions(a=>{var o;const s=new Proxy({},{get:(l,u)=>i.value[u]});return xv(a,t?JB(e):e,{state:xv(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 LDe={class:"table table-zebra table-xs overflow-hidden rounded-lg bg-base-100 shadow-lg"},PDe={class:"bg-base-100"},RDe=["colSpan","onClick"],EDe={class:"flex items-center gap-1"},kDe=["onClick"],ODe=["onClick"],NDe={key:0},FDe=Ut({__name:"ConnectionTable",emits:["info"],setup(e,{emit:t}){const r=t,{t:n}=$c(),i=[{header:()=>n("details"),enableSorting:!1,id:er.Details,cell:({row:u})=>yo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const c=u.original;r("info",c)}},[yo(PG,{class:"h-4 w-4"})])},{header:()=>n("close"),enableSorting:!1,id:er.Close,cell:({row:u})=>yo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const c=u.original;T1(c.id)}},[yo(QD,{class:"h-4 w-4"})])},{header:()=>n("type"),id:er.Type,accessorFn:u=>`${u.metadata.type} | ${u.metadata.network}`},{header:()=>n("process"),id:er.Process,accessorFn:u=>u.metadata.processPath||"-"},{header:()=>n("host"),id:er.Host,accessorFn:u=>`${u.metadata.host?u.metadata.host:u.metadata.destinationIP}:${u.metadata.destinationPort}`},{header:()=>n("rule"),id:er.Rule,accessorFn:u=>u.rulePayload?`${u.rule} -> ${u.rulePayload}`:u.rule},{header:()=>n("chains"),id:er.Chains,accessorFn:u=>u.chains.slice().reverse().join(" -> ")},{header:()=>n("connectTime"),enableGrouping:!1,id:er.ConnectTime,accessorFn:u=>M1(u.start),sortingFn:(u,c)=>Fl(u.original.start).valueOf()-Fl(c.original.start).valueOf()},{header:()=>n("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:er.DlSpeed,accessorFn:u=>`${Or(u.downloadSpeed)}/s`,sortingFn:(u,c)=>u.original.downloadSpeed-c.original.downloadSpeed},{header:()=>n("ulSpeed"),enableGrouping:!1,id:er.UlSpeed,accessorFn:u=>`${Or(u.uploadSpeed)}/s`,sortingFn:(u,c)=>u.original.uploadSpeed-c.original.uploadSpeed},{header:()=>n("dl"),enableGrouping:!1,id:er.Download,accessorFn:u=>Or(u.download),sortingFn:(u,c)=>u.original.download-c.original.download},{header:()=>n("ul"),enableGrouping:!1,id:er.Upload,accessorFn:u=>Or(u.upload),sortingFn:(u,c)=>u.original.upload-c.original.upload},{header:()=>n("sourceIP"),id:er.SourceIP,accessorFn:u=>u.metadata.sourceIP},{header:()=>n("sourcePort"),id:er.SourcePort,accessorFn:u=>u.metadata.sourcePort},{header:()=>n("destination"),id:er.Destination,accessorFn:u=>u.metadata.destinationIP||u.metadata.host}],a=je([]),o=je({}),s=Yr("config/table-sorting",[]),l=IDe({get data(){return K0.value},columns:i,state:{get columnOrder(){return ju.value},get columnVisibility(){return{...Object.fromEntries(Object.values(er).map(u=>[u,!1])),...Object.fromEntries(ju.value.map(u=>[u,!0]))}},get grouping(){return a.value},get expanded(){return o.value},get sorting(){return s.value}},onGroupingChange:u=>{Lc(u)?a.value=u(a.value):a.value=u},onExpandedChange:u=>{Lc(u)&&(o.value=u(o.value))},onSortingChange:u=>{Lc(u)?s.value=u(s.value):s.value=u},getSortedRowModel:ADe(),getGroupedRowModel:CDe(),getExpandedRowModel:wDe(),getCoreRowModel:bDe()});return(u,c)=>(se(),be("table",LDe,[ee("thead",PDe,[(se(!0),be(lt,null,dr(J(l).getHeaderGroups(),f=>(se(),be("tr",{key:f.id},[(se(!0),be(lt,null,dr(f.headers,h=>(se(),be("th",{key:h.id,colSpan:h.colSpan,class:Kt(h.column.getCanSort()?"cursor-pointer select-none":""),onClick:d=>{var v;return(v=h.column.getToggleSortingHandler())==null?void 0:v(d)}},[ee("div",EDe,[h.column.getCanGroup()?(se(),be("button",{key:0,class:"cursor-pointer",onClick:WD(()=>h.column.getToggleGroupingHandler()(),["stop"])},[h.column.getIsGrouped()?(se(),qt(J(fE),{key:0,class:"h-4 w-4"})):(se(),qt(J(hE),{key:1,class:"h-4 w-4"}))],8,kDe)):tr("",!0),h.isPlaceholder?tr("",!0):(se(),qt(J(Fy),{key:1,render:h.column.columnDef.header,props:h.getContext()},null,8,["render","props"])),h.column.getIsSorted()==="asc"?(se(),qt(J(AG),{key:2,class:"h-4 w-4"})):tr("",!0),h.column.getIsSorted()==="desc"?(se(),qt(J(CG),{key:3,class:"h-4 w-4"})):tr("",!0)])],10,RDe))),128))]))),128))]),ee("tbody",null,[(se(!0),be(lt,null,dr(J(l).getRowModel().rows,f=>(se(),be("tr",{key:f.id,class:"h-9 hover:!bg-primary hover:text-primary-content"},[(se(!0),be(lt,null,dr(f.getVisibleCells(),h=>(se(),be("td",{key:h.id,class:"text-sm"},[ee("div",{class:Kt(J(nn)("flex items-center gap-2 whitespace-nowrap",[J(er).Download,J(er).DlSpeed,J(er).Upload,J(er).UlSpeed].includes(h.column.id)&&"w-14"))},[h.column.getIsGrouped()?(se(),be(lt,{key:0},[f.getCanExpand()?(se(),be(lt,{key:0},[ee("button",{onClick:()=>f.getToggleExpandedHandler()(),class:"cursor-pointer"},[f.getIsExpanded()?(se(),qt(J(fE),{key:0,class:"h-4 w-4"})):(se(),qt(J(hE),{key:1,class:"h-4 w-4"}))],8,ODe),Be(J(Fy),{render:h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"]),h.column.getIsGrouped()?(se(),be("div",NDe,"("+ke(f.subRows.length)+")",1)):tr("",!0)],64)):tr("",!0)],64)):h.getIsAggregated()?(se(),qt(J(Fy),{key:1,render:h.column.columnDef.aggregatedCell??h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"])):h.getIsPlaceholder()?tr("",!0):(se(),qt(J(Fy),{key:2,render:h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"]))],2)]))),128))]))),128))])]))}});var K_={d:(e,t)=>{for(var r in t)K_.o(t,r)&&!K_.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},r7={};function vD(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r$De});const it=(QB={computed:()=>at,createTextVNode:()=>Zt,createVNode:()=>Be,defineComponent:()=>Ut,reactive:()=>Wc,ref:()=>je,watch:()=>vr,watchEffect:()=>GD},PC={},K_.d(PC,QB),PC),VDe=(0,it.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,it.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),BDe=(0,it.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,it.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,it.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,it.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(n){return n.stopPropagation()}},[(0,it.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,it.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return r("change",t)}},null)])}}),zDe=(0,it.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,it.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(r?"open":"close"),onClick:t},[(0,it.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,it.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 QB,PC;function pD(e){return pD=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},pD(e)}function i7(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Zu(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,d=i7(e);if(d==="array"){var v=e3(e.map(function(y,S,b){return Zu(y,"".concat(t,"[").concat(S,"]"),r+1,{index:S,showComma:S!==b.length-1,length:h,type:l})}));return[Zu("[",t,r,{showComma:!1,key:a,length:e.length,type:"arrayStart"})[0]].concat(v,Zu("]",t,r,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(d==="object"){var g=Object.keys(e),m=e3(g.map(function(y,S,b){return Zu(e[y],/^[a-zA-Z_]\w*$/.test(y)?"".concat(t,".").concat(y):"".concat(t,'["').concat(y,'"]'),r+1,{key:y,showComma:S!==b.length-1,length:h,type:l})}));return[Zu("{",t,r,{showComma:!1,key:a,index:o,length:g.length,type:"objectStart"})[0]].concat(m,Zu("}",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 e3(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=J_(e),r=[];t.length;){var n=t.shift();Array.isArray(n)?t.unshift.apply(t,J_(n)):r.push(n)}return r}function gD(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(pD(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var r=e.map(function(a){return gD(a,t)});return t.set(e,r),r}var n={};for(var i in e)n[i]=gD(e[i],t);return t.set(e,n),n}function t3(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 r3(e){for(var t=1;t=b||x.length>=w,M=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,x);return x.type!=="objectStart"&&x.type!=="arrayStart"||!D&&!M?C:Fi(Fi({},C),{},Q_({},x.path,1))},{})},s=(0,it.reactive)({translateY:0,visibleData:null,hiddenPaths:o(e.deep,e.collapsedNodeLength)}),l=(0,it.computed)(function(){for(var b=null,w=[],C=a.value.length,x=0;xb.length?b.length-C:A;D<0&&(D=0);var M=D+C;s.translateY=D*e.itemHeight,s.visibleData=b.filter(function(I,P){return P>=D&&P{var a;t.value=i,(a=r.value)==null||a.showModal()};return(i,a)=>(se(),be("div",WDe,[J(ac)?(se(),be(lt,{key:0},[J(K0).length?tr("",!0):(se(),be("div",UDe,ke(i.$t("noContent")),1)),ee("div",YDe,[(se(!0),be(lt,null,dr(J(K0),o=>(se(),qt(J(FAe),{key:o.id,conn:o,onInfo:n},null,8,["conn"]))),128))])],64)):(se(),qt(FDe,{key:1,onInfo:n})),ee("dialog",{ref_key:"modalRef",ref:r,class:"modal"},[ee("div",XDe,[Be(J(HDe),{data:t.value},null,8,["data"])]),a[0]||(a[0]=ee("form",{method:"dialog",class:"modal-backdrop"},[ee("button",null,"close")],-1))],512)]))}}),qDe={class:"flex h-full flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},jDe={key:0,class:"card w-full flex-row gap-1 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},KDe={class:"text-primary"},JDe=Ut({__name:"LogsPage",setup(e){const t={[ic.Error]:"text-error",[ic.Warning]:"text-warning",[ic.Info]:"text-info",[ic.Debug]:"text-accent"},r=at(()=>lv.value.filter(n=>uh.value?n.payload.includes(uh.value)||n.type.includes(uh.value):!0));return(n,i)=>(se(),be("div",qDe,[r.value.length?tr("",!0):(se(),be("div",jDe,ke(n.$t("noContent")),1)),(se(!0),be(lt,null,dr(r.value,a=>(se(),be("div",{key:a.seq,class:"card w-full flex-row gap-1 gap-2 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},[ee("span",null,ke(a.seq),1),ee("span",KDe,ke(J(Fl)(a.time).locale(J(fs)).format("HH:mm:ss")),1),ee("span",{class:Kt(t[a.type])},ke(a.type),3),ee("span",null,ke(a.payload),1)]))),128))]))}}),QDe={class:"badge flex w-8 items-center justify-center shadow-sm"},o7=Ut({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,r=at(()=>tM(t.name)),n=at(()=>r.value(se(),be("div",QDe,[r.value>0?(se(),be("div",{key:0,class:Kt(J(nn)("text-xs",n.value))},ke(r.value),3)):(se(),qt(J(DG),{key:1,class:"h-4 w-4"}))]))}}),eMe={class:"flex-1 whitespace-nowrap text-xs md:text-sm"},tMe={class:"flex items-center gap-2 text-xs"},rMe={class:"flex-1"},nMe={key:0},s7=Ut({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,r=at(()=>Sh.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 xie(t.name),n.value=!1}catch{n.value=!1}}};return(o,s)=>(se(),be("div",{class:Kt(J(nn)("flex cursor-pointer flex-wrap items-center justify-end gap-1 rounded-md bg-base-200 p-2 shadow-md",t.active&&"bg-primary text-primary-content"))},[ee("div",eMe,ke(r.value.name),1),ee("div",tMe,[ee("div",rMe,[ee("span",null,ke(i(r.value.type)),1),r.value.udp?(se(),be("span",nMe," | udp")):tr("",!0)]),Be(o7,{class:Kt(n.value?"animate-pulse":""),name:r.value.name,onClick:WD(a,["stop"])},null,8,["class","name"])])],2))}}),l7=Ut({__name:"ProxyNodeGrid",setup(e){const t=at(()=>_c.value===Gl.PROXIES?sh.value&&Fv.value.length>1:sh.value&&Sc.value.length>1);return(r,n)=>(se(),be("div",{class:Kt(J(nn)("grid gap-2",J(r0)?"grid-cols-2":"grid-cols-1",J(yc)?t.value?"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-2 2xl:grid-cols-3":"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-4 2xl:grid-cols-6":t.value?"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-2 3xl:grid-cols-3":"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 3xl:grid-cols-5"))},[zQ(r.$slots,"default")],2))}}),iMe={key:0,class:"flex flex-wrap gap-1 pt-2"},aMe={key:0,class:"h-2 w-2 rounded-full bg-white"},oMe={key:1,class:"flex items-center gap-2 py-2"},sMe={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},u7=Ut({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,r=at(()=>t.nodes.map(l=>({latency:tM(l),name:l}))),n=l=>l===zn.NOT_CONNECTED?"bg-gray-500":lr.value.filter(l=>l.latencyzn.NOT_CONNECTED).length),a=at(()=>r.value.filter(l=>l.latency>=zn.MEDIUM&&l.latencyr.value.filter(l=>l.latency>=zn.HIGH).length),s=at(()=>r.value.filter(l=>l.latency===zn.NOT_CONNECTED).length);return(l,u)=>l.nodes.length<20?(se(),be("div",iMe,[(se(!0),be(lt,null,dr(r.value,c=>(se(),be("div",{key:c.name,class:Kt(["flex h-4 w-4 items-center justify-center rounded-full shadow-lg",n(c.latency)])},[l.now===c.name?(se(),be("div",aMe)):tr("",!0)],2))),128))])):(se(),be("div",oMe,[ee("div",sMe,[ee("div",{class:Kt(n(J(zn).MEDIUM-1)),style:tc({width:`${i.value*100/l.nodes.length}%`})},null,6),ee("div",{class:Kt(n(J(zn).HIGH-1)),style:tc({width:`${a.value*100/l.nodes.length}%`})},null,6),ee("div",{class:Kt(n(J(zn).HIGH+1)),style:tc({width:`${o.value*100/l.nodes.length}%`})},null,6),ee("div",{class:Kt(n(J(zn).NOT_CONNECTED)),style:tc({width:`${s.value*100/l.nodes.length}%`})},null,6)])]))}}),lMe={class:"collapse collapse-arrow bg-base-100 shadow-lg"},uMe={class:"collapse-title"},cMe={class:"items-top flex gap-2"},fMe={class:"flex flex-col gap-2 sm:flex-row"},hMe={class:"flex items-center gap-1 text-lg font-medium sm:text-xl"},dMe=["src"],vMe={class:"flex items-center gap-2 text-xs sm:text-sm"},pMe={class:"mt-1 flex gap-2"},gMe={class:"text-sm"},mMe={class:"collapse-content flex flex-col gap-2"},yMe=Ut({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,r=at({get(){return Z0.value[t.name]},set(u){Z0.value[t.name]=u}}),n=je(r.value);vr(r,u=>{u?n.value=u:setTimeout(()=>{u===r.value&&(n.value=u)},1e3)});const i=at(()=>Sh.value[t.name]),a=at(()=>YG(i.value.all??[])),o=je(!1),s=async()=>{if(!o.value){o.value=!0;try{await Cie(t.name),o.value=!1}catch{o.value=!1}}},l=at(()=>_o.value.filter(c=>c.chains.includes(t.name)).reduce((c,f)=>c+f.downloadSpeed,0));return(u,c)=>(se(),be("div",lMe,[ee("div",uMe,[ee("div",cMe,[ee("div",fMe,[ee("div",hMe,[i.value.icon?(se(),be("img",{key:0,class:"w-5",src:i.value.icon},null,8,dMe)):tr("",!0),Zt(" "+ke(i.value.name),1)]),ee("div",vMe,"-> "+ke(i.value.now),1)]),c[1]||(c[1]=ee("div",{class:"flex-1"},null,-1)),ee("div",pMe,[ee("div",gMe,ke(J(Or)(l.value))+"/s",1),Be(o7,{class:Kt(J(nn)("z-10",o.value?"animate-pulse":"")),name:i.value.now,onClick:WD(s,["stop"])},null,8,["class","name"])])]),r.value?tr("",!0):(se(),qt(u7,{key:0,nodes:a.value,now:i.value.now},null,8,["nodes","now"]))]),Dr(ee("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=f=>r.value=f)},null,512),[[ss,r.value]]),ee("div",mMe,[n.value?(se(),qt(l7,{key:0},{default:fp(()=>[(se(!0),be(lt,null,dr(a.value,f=>(se(),qt(s7,{key:f,name:f,active:f===i.value.now,onClick:h=>J(wie)(i.value.name,f)},null,8,["name","active","onClick"]))),128))]),_:1})):tr("",!0)])]))}}),_Me={class:"collapse collapse-arrow bg-base-100 shadow-lg"},SMe={class:"collapse-title"},bMe={class:"flex items-center gap-2"},wMe={class:"text-lg font-medium sm:text-xl"},xMe={class:"flex gap-2"},CMe=["value"],TMe={class:"flex gap-4"},AMe={class:"text-sm text-slate-500"},DMe={class:"text-sm text-slate-500"},MMe={class:"text-sm text-slate-500"},IMe={class:"collapse-content flex flex-col gap-2"},LMe=Ut({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,r=at({get(){return Z0.value[t.name]},set(h){Z0.value[t.name]=h}}),n=je(r.value);vr(r,h=>{h?n.value=h:setTimeout(()=>{h===r.value&&(n.value=h)},1e3)});const i=h=>{const{Download:d=0,Upload:v=0,Total:g=0,Expire:m=0}=h,y=Or(g,{binary:!0}),S=Or(d+v,{binary:!0}),b=Ec.toFinite(((d+v)/g*100).toFixed(2));return{total:y,used:S,percentage:b,expirePrefix:()=>{const{t:x}=$c();return x("expire")},expireStr:()=>{const{t:x}=$c();return m===0?x("noExpire"):Fl(m*1e3).format("YYYY-MM-DD")}}},a=at(()=>Sc.value.find(h=>h.name===t.name)),o=at(()=>YG(a.value.proxies.map(h=>h.name))),s=at(()=>a.value.subscriptionInfo?i(a.value.subscriptionInfo):null),l=je(!1),u=je(!1),c=async()=>{if(!u.value){u.value=!0;try{await yne(t.name),await J0(),u.value=!1}catch{u.value=!1}}},f=async()=>{if(!l.value){l.value=!0;try{await bG(t.name),await J0(),l.value=!1}catch{l.value=!1}}};return(h,d)=>(se(),be("div",_Me,[ee("div",SMe,[ee("div",bMe,[ee("div",wMe,ke(a.value.name),1),d[1]||(d[1]=ee("div",{class:"flex-1"},null,-1)),ee("div",xMe,[ee("button",{class:Kt(J(nn)("btn btn-circle btn-xs z-30",u.value?"animate-pulse":"")),onClick:c},[Be(J(DG),{class:"h-4 w-4"})],2),ee("button",{class:Kt(J(nn)("btn btn-circle btn-xs z-30",l.value?"animate-spin":"")),onClick:f},[Be(J(TG),{class:"h-4 w-4"})],2)])]),s.value?(se(),be("progress",{key:0,class:"progress",value:s.value.percentage,max:"100"},null,8,CMe)):tr("",!0),ee("div",TMe,[s.value?(se(),be(lt,{key:0},[ee("div",AMe,ke(s.value.used)+" / "+ke(s.value.total)+" ( "+ke(s.value.percentage)+"% ) ",1),ee("div",DMe,ke(s.value.expirePrefix())+": "+ke(s.value.expireStr()),1)],64)):tr("",!0),ee("div",MMe,ke(h.$t("updated"))+" "+ke(J(M1)(a.value.updatedAt)),1)]),r.value?tr("",!0):(se(),qt(u7,{key:1,nodes:o.value},null,8,["nodes"]))]),Dr(ee("input",{type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=v=>r.value=v)},null,512),[[ss,r.value]]),ee("div",IMe,[n.value?(se(),qt(l7,{key:0},{default:fp(()=>[(se(!0),be(lt,null,dr(o.value,v=>(se(),qt(s7,{key:v,name:v},null,8,["name"]))),128))]),_:1})):tr("",!0)])]))}}),PMe={class:"h-full overflow-y-auto overflow-x-hidden p-2"},RMe={key:0,class:"grid grid-cols-2 gap-1"},EMe={key:1,class:"grid grid-cols-1 gap-1"},kMe=Ut({__name:"ProxiesPage",setup(e){const t=at(()=>_c.value===Gl.PROVIDER?LMe:yMe),r=at(()=>_c.value===Gl.PROVIDER?Sc.value.map(i=>i.name):Qy.value&&Fv.value.length?[...Fv.value,uT]:Fv.value),n=(i,a)=>i.filter((o,s)=>s%2===a);return(i,a)=>(se(),be("div",PMe,[J(UG)&&J(sh)&&r.value.length>1?(se(),be("div",RMe,[(se(),be(lt,null,dr([0,1],o=>ee("div",{key:o,class:"flex flex-1 flex-col gap-1"},[(se(!0),be(lt,null,dr(n(r.value,o),s=>(se(),qt(Vl(t.value),{key:s,name:s},null,8,["name"]))),128))])),64))])):(se(),be("div",EMe,[(se(!0),be(lt,null,dr(r.value,o=>(se(),qt(Vl(t.value),{key:o,name:o},null,8,["name"]))),128))]))]))}}),OMe={class:"card w-full flex-row gap-1 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},NMe={class:"min-w-32 text-primary"},FMe={class:"flex-1"},VMe=Ut({__name:"RuleCard",props:{rule:{}},setup(e){return(t,r)=>(se(),be("div",OMe,[ee("div",NMe,ke(t.rule.proxy),1),ee("div",FMe,ke(t.rule.payload),1)]))}}),BMe={class:"card w-full flex-row items-center gap-2 rounded-xl bg-base-100 p-1 px-2 text-sm shadow-lg"},zMe={class:"flex flex-1 flex-col sm:flex-row"},GMe={class:"w-48 flex-1 text-primary"},$Me={class:"flex gap-1"},HMe=Ut({__name:"RuleProvider",props:{ruleProvider:{}},setup(e){const t=je(!1),r=e,n=async()=>{t.value||(t.value=!0,await wG(r.ruleProvider.name),nM(),t.value=!1)};return(i,a)=>(se(),be("div",BMe,[ee("div",zMe,[ee("div",GMe,ke(i.ruleProvider.name)+" ("+ke(i.ruleProvider.ruleCount)+") ",1),ee("div",$Me,[ee("span",null,ke(i.ruleProvider.behavior),1),ee("span",null,ke(i.ruleProvider.vehicleType),1),ee("span",null,ke(i.$t("updated"))+" "+ke(J(M1)(i.ruleProvider.updatedAt)),1)])]),ee("button",{class:Kt(J(nn)("btn btn-circle btn-xs",t.value?"animate-spin":"")),onClick:n},[Be(J(TG),{class:"h-4 w-4"})],2)]))}}),WMe={class:"flex h-full flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},UMe=Ut({__name:"RulesPage",setup(e){return(t,r)=>(se(),be("div",WMe,[J(kv)===J(_h).PROVIDER?(se(!0),be(lt,{key:0},dr(J(Q0),n=>(se(),qt(HMe,{key:n.name,ruleProvider:n},null,8,["ruleProvider"]))),128)):(se(!0),be(lt,{key:1},dr(J(HG),n=>(se(),qt(VMe,{key:n.payload,rule:n},null,8,["rule"]))),128))]))}});var YMe=Object.defineProperty,e1=Object.getOwnPropertySymbols,c7=Object.prototype.hasOwnProperty,f7=Object.prototype.propertyIsEnumerable,i3=(e,t,r)=>t in e?YMe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qf=(e,t)=>{for(var r in t||(t={}))c7.call(t,r)&&i3(e,r,t[r]);if(e1)for(var r of e1(t))f7.call(t,r)&&i3(e,r,t[r]);return e},h7=(e,t)=>{var r={};for(var n in e)c7.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&e1)for(var n of e1(e))t.indexOf(n)<0&&f7.call(e,n)&&(r[n]=e[n]);return r};const d7="[vue-draggable-plus]: ";function XMe(e){console.warn(d7+e)}function ZMe(e){console.error(d7+e)}function a3(e,t,r){return r>=0&&rr?r.toUpperCase():"")}function jMe(e){return Object.keys(e).reduce((t,r)=>(typeof e[r]<"u"&&(t[qMe(r)]=e[r]),t),{})}function o3(e,t){return Array.isArray(e)&&e.splice(t,1),e}function s3(e,t,r){return Array.isArray(e)&&e.splice(t,0,r),e}function KMe(e){return typeof e>"u"}function JMe(e){return typeof e=="string"}function l3(e,t,r){const n=e.children[r];e.insertBefore(t,n)}function RC(e){e.parentNode&&e.parentNode.removeChild(e)}function QMe(e,t=document){var r;let n=null;return typeof(t==null?void 0:t.querySelector)=="function"?n=(r=t==null?void 0:t.querySelector)==null?void 0:r.call(t,e):n=document.querySelector(e),n||XMe(`Element not found: ${e}`),n}function eIe(e,t,r=null){return function(...n){return e.apply(r,n),t.apply(r,n)}}function tIe(e,t){const r=Qf({},e);return Object.keys(t).forEach(n=>{r[n]?r[n]=eIe(e[n],t[n]):r[n]=t[n]}),r}function rIe(e){return e instanceof HTMLElement}function u3(e,t){Object.keys(e).forEach(r=>{t(r,e[r])})}function nIe(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}const iIe=Object.assign;/**! - * Sortable 1.15.2 - * @author RubaXa - * @author owenm - * @license MIT - */function c3(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 No(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function sIe(e,t){if(e==null)return{};var r=oIe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var lIe="1.15.2";function xs(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Fs=xs(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ag=xs(/Edge/i),f3=xs(/firefox/i),tp=xs(/safari/i)&&!xs(/chrome/i)&&!xs(/android/i),v7=xs(/iP(ad|od|hone)/i),p7=xs(/chrome/i)&&xs(/android/i),g7={capture:!1,passive:!1};function ar(e,t,r){e.addEventListener(t,r,!Fs&&g7)}function Jt(e,t,r){e.removeEventListener(t,r,!Fs&&g7)}function t1(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function uIe(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Va(e,t,r,n){if(e){r=r||document;do{if(t!=null&&(t[0]===">"?e.parentNode===r&&t1(e,t):t1(e,t))||n&&e===r)return e;if(e===r)break}while(e=uIe(e))}return null}var h3=/\s+/g;function Vi(e,t,r){if(e&&t)if(e.classList)e.classList[r?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(h3," ").replace(" "+t+" "," ");e.className=(n+(r?" "+t:"")).replace(h3," ")}}function mt(e,t,r){var n=e&&e.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),t===void 0?r:r[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=r+(typeof r=="string"?"":"px")}}function gh(e,t){var r="";if(typeof e=="string")r=e;else do{var n=mt(e,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function m7(e,t,r){if(e){var n=e.getElementsByTagName(t),i=0,a=n.length;if(r)for(;i=a,!o)return n;if(n===Do())break;n=Ll(n,!1)}return!1}function Oh(e,t,r,n){for(var i=0,a=0,o=e.children;a2&&arguments[2]!==void 0?arguments[2]:{},n=r.evt,i=sIe(r,mIe);Dg.pluginEvent.bind(yt)(e,t,No({dragEl:Fe,parentEl:$r,ghostEl:Tt,rootEl:kr,nextEl:qu,lastDownEl:E0,cloneEl:Vr,cloneHidden:ml,dragStarted:Cv,putSortable:Dn,activeSortable:yt.active,originalEvent:n,oldIndex:eh,oldDraggableIndex:np,newIndex:zi,newDraggableIndex:dl,hideGhostForTarget:T7,unhideGhostForTarget:A7,cloneNowHidden:function(){ml=!0},cloneNowShown:function(){ml=!1},dispatchSortableEvent:function(a){Qn({sortable:t,name:a,originalEvent:n})}},i))};function Qn(e){gIe(No({putSortable:Dn,cloneEl:Vr,targetEl:Fe,rootEl:kr,oldIndex:eh,oldDraggableIndex:np,newIndex:zi,newDraggableIndex:dl},e))}var Fe,$r,Tt,kr,qu,E0,Vr,ml,eh,zi,np,dl,Vy,Dn,Xf=!1,r1=!1,n1=[],Bu,Ea,OC,NC,p3,g3,Cv,Bf,ip,ap=!1,By=!1,k0,Bn,FC=[],mD=!1,i1=[],_S=typeof document<"u",zy=v7,m3=Ag||Fs?"cssFloat":"float",yIe=_S&&!p7&&!v7&&"draggable"in document.createElement("div"),w7=function(){if(_S){if(Fs)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),x7=function(e,t){var r=mt(e),n=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=Oh(e,0,t),a=Oh(e,1,t),o=i&&mt(i),s=a&&mt(a),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+tn(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+tn(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&o.float&&o.float!=="none"){var c=o.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return i&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||l>=n&&r[m3]==="none"||a&&r[m3]==="none"&&l+u>n)?"vertical":"horizontal"},_Ie=function(e,t,r){var n=r?e.left:e.top,i=r?e.right:e.bottom,a=r?e.width:e.height,o=r?t.left:t.top,s=r?t.right:t.bottom,l=r?t.width:t.height;return n===o||i===s||n+a/2===o+l/2},SIe=function(e,t){var r;return n1.some(function(n){var i=n[$i].options.emptyInsertThreshold;if(!(!i||AL(n))){var a=tn(n),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return r=n}}),r},C7=function(e){function t(i,a){return function(o,s,l,u){var c=o.options.group.name&&s.options.group.name&&o.options.group.name===s.options.group.name;if(i==null&&(a||c))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return t(i(o,s,l,u),a)(o,s,l,u);var f=(a?o:s).options.group.name;return i===!0||typeof i=="string"&&i===f||i.join&&i.indexOf(f)>-1}}var r={},n=e.group;(!n||R0(n)!="object")&&(n={name:n}),r.name=n.name,r.checkPull=t(n.pull,!0),r.checkPut=t(n.put),r.revertClone=n.revertClone,e.group=r},T7=function(){!w7&&Tt&&mt(Tt,"display","none")},A7=function(){!w7&&Tt&&mt(Tt,"display","")};_S&&!p7&&document.addEventListener("click",function(e){if(r1)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),r1=!1,!1},!0);var zu=function(e){if(Fe){e=e.touches?e.touches[0]:e;var t=SIe(e.clientX,e.clientY);if(t){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[$i]._onDragOver(r)}}},bIe=function(e){Fe&&Fe.parentNode[$i]._isOutsideThisEl(e.target)};function yt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Rs({},t),e[$i]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return x7(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,o){a.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:yt.supportPointer!==!1&&"PointerEvent"in window&&!tp,emptyInsertThreshold:5};Dg.initializePlugins(this,e,r);for(var n in r)!(n in t)&&(t[n]=r[n]);C7(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:yIe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ar(e,"pointerdown",this._onTapStart):(ar(e,"mousedown",this._onTapStart),ar(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ar(e,"dragover",this),ar(e,"dragenter",this)),n1.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Rs(this,dIe())}yt.prototype={constructor:yt,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Bf=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,Fe):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,r=this.el,n=this.options,i=n.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(o||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=n.filter;if(IIe(r),!Fe&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&tp&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Va(s,n.draggable,r,!1),!(s&&s.animated)&&E0!==s)){if(eh=fa(s),np=fa(s,n.draggable),typeof u=="function"){if(u.call(this,e,s,this)){Qn({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:r,fromEl:r}),bi("filter",t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=Va(l,c.trim(),r,!1),c)return Qn({sortable:t,rootEl:c,name:"filter",targetEl:s,fromEl:r,toEl:r}),bi("filter",t,{evt:e}),!0}),u)){i&&e.cancelable&&e.preventDefault();return}n.handle&&!Va(l,n.handle,r,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,r){var n=this,i=n.el,a=n.options,o=i.ownerDocument,s;if(r&&!Fe&&r.parentNode===i){var l=tn(r);if(kr=i,Fe=r,$r=Fe.parentNode,qu=Fe.nextSibling,E0=r,Vy=a.group,yt.dragged=Fe,Bu={target:Fe,clientX:(t||e).clientX,clientY:(t||e).clientY},p3=Bu.clientX-l.left,g3=Bu.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Fe.style["will-change"]="all",s=function(){if(bi("delayEnded",n,{evt:e}),yt.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!f3&&n.nativeDraggable&&(Fe.draggable=!0),n._triggerDragStart(e,t),Qn({sortable:n,name:"choose",originalEvent:e}),Vi(Fe,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){m7(Fe,u.trim(),VC)}),ar(o,"dragover",zu),ar(o,"mousemove",zu),ar(o,"touchmove",zu),ar(o,"mouseup",n._onDrop),ar(o,"touchend",n._onDrop),ar(o,"touchcancel",n._onDrop),f3&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Fe.draggable=!0),bi("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Ag||Fs))){if(yt.eventCanceled){this._onDrop();return}ar(o,"mouseup",n._disableDelayedDrag),ar(o,"touchend",n._disableDelayedDrag),ar(o,"touchcancel",n._disableDelayedDrag),ar(o,"mousemove",n._delayedDragTouchMoveHandler),ar(o,"touchmove",n._delayedDragTouchMoveHandler),a.supportPointer&&ar(o,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Fe&&VC(Fe),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Jt(e,"mouseup",this._disableDelayedDrag),Jt(e,"touchend",this._disableDelayedDrag),Jt(e,"touchcancel",this._disableDelayedDrag),Jt(e,"mousemove",this._delayedDragTouchMoveHandler),Jt(e,"touchmove",this._delayedDragTouchMoveHandler),Jt(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?ar(document,"pointermove",this._onTouchMove):t?ar(document,"touchmove",this._onTouchMove):ar(document,"mousemove",this._onTouchMove):(ar(Fe,"dragend",this),ar(kr,"dragstart",this._onDragStart));try{document.selection?O0(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Xf=!1,kr&&Fe){bi("dragStarted",this,{evt:t}),this.nativeDraggable&&ar(document,"dragover",bIe);var r=this.options;!e&&Vi(Fe,r.dragClass,!1),Vi(Fe,r.ghostClass,!0),yt.active=this,e&&this._appendGhost(),Qn({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ea){this._lastX=Ea.clientX,this._lastY=Ea.clientY,T7();for(var e=document.elementFromPoint(Ea.clientX,Ea.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ea.clientX,Ea.clientY),e!==t);)t=e;if(Fe.parentNode[$i]._isOutsideThisEl(e),t)do{if(t[$i]){var r=void 0;if(r=t[$i]._onDragOver({clientX:Ea.clientX,clientY:Ea.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);A7()}},_onTouchMove:function(e){if(Bu){var t=this.options,r=t.fallbackTolerance,n=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=Tt&&gh(Tt,!0),o=Tt&&a&&a.a,s=Tt&&a&&a.d,l=zy&&Bn&&v3(Bn),u=(i.clientX-Bu.clientX+n.x)/(o||1)+(l?l[0]-FC[0]:0)/(o||1),c=(i.clientY-Bu.clientY+n.y)/(s||1)+(l?l[1]-FC[1]:0)/(s||1);if(!yt.active&&!Xf){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(Qn({rootEl:$r,name:"add",toEl:$r,fromEl:kr,originalEvent:e}),Qn({sortable:this,name:"remove",toEl:$r,originalEvent:e}),Qn({rootEl:$r,name:"sort",toEl:$r,fromEl:kr,originalEvent:e}),Qn({sortable:this,name:"sort",toEl:$r,originalEvent:e})),Dn&&Dn.save()):zi!==eh&&zi>=0&&(Qn({sortable:this,name:"update",toEl:$r,originalEvent:e}),Qn({sortable:this,name:"sort",toEl:$r,originalEvent:e})),yt.active&&((zi==null||zi===-1)&&(zi=eh,dl=np),Qn({sortable:this,name:"end",toEl:$r,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){bi("nulling",this),kr=Fe=$r=Tt=qu=Vr=E0=ml=Bu=Ea=Cv=zi=dl=eh=np=Bf=ip=Dn=Vy=yt.dragged=yt.ghost=yt.clone=yt.active=null,i1.forEach(function(e){e.checked=!0}),i1.length=OC=NC=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Fe&&(this._onDragOver(e),wIe(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,r=this.el.children,n=0,i=r.length,a=this.options;ni.right+a||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>i.bottom+a||e.clientX>n.right&&e.clientY>n.top}function AIe(e,t,r,n,i,a,o,s){var l=n?e.clientY:e.clientX,u=n?r.height:r.width,c=n?r.top:r.left,f=n?r.bottom:r.right,h=!1;if(!o){if(s&&k0c+u*a/2:lf-k0)return-ip}else if(l>c+u*(1-i)/2&&lf-u*a/2)?l>c+u/2?1:-1:0}function DIe(e){return fa(Fe){if(N&&(i==null?void 0:i.length)!==E.childNodes.length)return P.insertBefore(N,V.nextSibling),!0;const G=E.childNodes[U];N=E==null?void 0:E.replaceChild(V,G)})}}catch(N){F=N}finally{i=null}Uc(()=>{if(_3(),F)throw F})}const y={onUpdate:g,onStart:h,onAdd:d,onRemove:v,onEnd:m};function S(D){const M=J(a);return D||(D=JMe(M)?QMe(M,n==null?void 0:n.$el):M),D&&!rIe(D)&&(D=D.$el),D||ZMe("Root element not found"),D}function b(){var D;const M=(D=J(s))!=null?D:{},I=h7(M,["immediate","clone"]);return u3(I,(P,E)=>{nIe(P)&&(I[P]=(F,...O)=>{const N=kIe();return iIe(F,N),E(F,...O)})}),tIe(o===null?{}:y,I)}const w=D=>{D=S(D),l&&C.destroy(),l=new yt(D,b())};vr(()=>s,()=>{l&&u3(b(),(D,M)=>{l==null||l.option(D,M)})},{deep:!0});const C={option:(D,M)=>l==null?void 0:l.option(D,M),destroy:()=>{l==null||l.destroy(),l=null},save:()=>l==null?void 0:l.save(),toArray:()=>l==null?void 0:l.toArray(),closest:(...D)=>l==null?void 0:l.closest(...D)},x=()=>C==null?void 0:C.option("disabled",!0),A=()=>C==null?void 0:C.option("disabled",!1);return EIe(()=>{u&&w()}),RIe(C.destroy),Qf({start:w,pause:x,resume:A},C)}const bD=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],NIe=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...bD.map(e=>`on${e.replace(/^\S/,t=>t.toUpperCase())}`)],b3=Ut({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:NIe,emits:["update:modelValue",...bD],setup(e,{slots:t,emit:r,expose:n,attrs:i}){const a=bD.reduce((c,f)=>{const h=`on${f.replace(/^\S/,d=>d.toUpperCase())}`;return c[h]=(...d)=>r(f,...d),c},{}),o=at(()=>{const c=pQ(e),f=h7(c,["modelValue"]),h=Object.entries(f).reduce((d,[v,g])=>{const m=J(g);return m!==void 0&&(d[v]=m),d},{});return Qf(Qf({},a),jMe(Qf(Qf({},i),h)))}),s=at({get:()=>e.modelValue,set:c=>r("update:modelValue",c)}),l=je(),u=Wc(OIe(e.target||l,s,o));return n(u),()=>{var c;return yo(e.tag||"div",{ref:l},(c=t==null?void 0:t.default)==null?void 0:c.call(t,u))}}}),FIe={class:"flex w-72 rounded bg-base-200 lg:w-full lg:flex-col"},VIe=Ut({__name:"TableSettings",setup(e){const t=je(Object.values(er).filter(r=>!ju.value.includes(r)));return(r,n)=>(se(),be("div",FIe,[Be(J(b3),{class:"flex flex-1 flex-col gap-2 bg-base-300 p-2 lg:flex-row",modelValue:J(ju),"onUpdate:modelValue":n[0]||(n[0]=i=>bt(ju)?ju.value=i:null),animation:150,group:"list",ghostClass:"ghost"},{default:fp(()=>[(se(!0),be(lt,null,dr(J(ju),i=>(se(),be("div",{key:i,class:"flex cursor-move items-center rounded bg-neutral px-2 text-neutral-content shadow-lg"},ke(r.$t(i)),1))),128))]),_:1},8,["modelValue"]),Be(J(b3),{class:"flex flex-1 flex-col gap-2 p-2 lg:flex-row",modelValue:t.value,"onUpdate:modelValue":n[1]||(n[1]=i=>t.value=i),animation:150,group:"list",ghostClass:"ghost"},{default:fp(()=>[(se(!0),be(lt,null,dr(t.value,i=>(se(),be("div",{key:i,class:"flex cursor-move items-center rounded bg-neutral px-2 text-neutral-content shadow-lg"},ke(r.$t(i)),1))),128))]),_:1},8,["modelValue"])]))}}),BIe={class:"flex flex-col gap-1 overflow-y-auto p-2"},zIe={class:"card card-compact bg-base-100 shadow-lg"},GIe={class:"card-title px-4 pt-4 text-primary"},$Ie={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},HIe={class:"card-body gap-4"},WIe={class:"flex items-center gap-2"},UIe=["value"],YIe={class:"flex items-center gap-2"},XIe=["value","label"],ZIe={class:"flex items-center gap-2"},qIe={class:"card card-compact bg-base-100 shadow-lg"},jIe={class:"card-title px-4 pt-4"},KIe={class:"card-body"},JIe={class:"flex items-center gap-2"},QIe={class:"flex items-center gap-2"},eLe={class:"flex items-center gap-2"},tLe={class:"flex items-center gap-2"},rLe={class:"flex max-w-96 items-center gap-2"},nLe={class:"flex max-w-96 items-center gap-2"},iLe={class:"card card-compact bg-base-100 shadow-lg"},aLe={class:"card-title px-4 pt-4"},oLe={class:"card-body"},sLe={class:"flex items-center gap-2"},lLe={key:0,class:"flex items-center gap-2"},uLe={key:1,class:"flex flex-col gap-2"},cLe=Ut({__name:"SettingsPage",setup(e){const t=je(!1),r=async()=>{t.value||(t.value=!0,await Cne(),t.value=!1)},n=je(!1),i=async()=>{n.value||(n.value=!0,await xne(),n.value=!1)},a=["default","light","dark","cupcake","bumblebee","emerald","corporate","synthwave","retro","cyberpunk","valentine","halloween","garden","forest","aqua","lofi","pastel","fantasy","wireframe","black","luxury","dracula","cmyk","autumn","business","acid","lemonade","night","coffee","winter","dim","nord","sunset"];return(o,s)=>(se(),be("div",BIe,[ee("div",zIe,[ee("div",GIe,[ee("a",$Ie,"zashboard v"+ke(J(hne)),1)]),ee("div",HIe,[ee("div",WIe,[Zt(ke(o.$t("theme"))+": ",1),Dr(ee("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":s[0]||(s[0]=l=>bt(Jy)?Jy.value=l:null)},[(se(),be(lt,null,dr(a,l=>ee("option",{key:l,value:l},ke(l),9,UIe)),64))],512),[[ms,J(Jy)]])]),ee("div",YIe,[Zt(ke(o.$t("language"))+": ",1),Dr(ee("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":s[1]||(s[1]=l=>bt(fs)?fs.value=l:null),onChange:s[2]||(s[2]=()=>J(wL).global.locale=J(fs))},[(se(!0),be(lt,null,dr(Object.values(J(Lo)),l=>(se(),be("option",{key:l,value:l,label:o.$t(l)},null,8,XIe))),128))],544),[[ms,J(fs)]])]),Be(XG),ee("div",ZIe,[J(fne)?tr("",!0):(se(),be("button",{key:0,class:Kt(J(nn)("btn btn-primary btn-sm",t.value?"animate-pulse":"")),onClick:r},ke(o.$t("upgradeUI")),3)),ee("button",{class:Kt(J(nn)("btn btn-sm",n.value?"animate-pulse":"")),onClick:i},ke(o.$t("reloadConfigs")),3),ee("button",{class:"btn btn-sm",onClick:s[3]||(s[3]=(...l)=>J(sE)&&J(sE)(...l))},ke(o.$t("flushFakeIP")),1)])])]),ee("div",qIe,[ee("div",jIe,ke(o.$t("proxies")),1),ee("div",KIe,[ee("div",JIe,[Zt(ke(o.$t("automaticDisconnection"))+": ",1),Dr(ee("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[4]||(s[4]=l=>bt(t0)?t0.value=l:null)},null,512),[[ss,J(t0)]])]),ee("div",QIe,[Zt(ke(o.$t("showGlobalProxy"))+": ",1),Dr(ee("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[5]||(s[5]=l=>bt(Qy)?Qy.value=l:null)},null,512),[[ss,J(Qy)]])]),ee("div",eLe,[Zt(ke(o.$t("twoColumns"))+": ",1),Dr(ee("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[6]||(s[6]=l=>bt(sh)?sh.value=l:null)},null,512),[[ss,J(sh)]])]),ee("div",tLe,[Zt(ke(o.$t("twoColumnsForProxyGroupInMobile"))+": ",1),Dr(ee("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[7]||(s[7]=l=>bt(r0)?r0.value=l:null)},null,512),[[ss,J(r0)]])]),ee("div",rLe,[Zt(ke(o.$t("speedtestUrl"))+": ",1),Dr(ee("input",{type:"text",class:"input input-sm input-bordered flex-1","onUpdate:modelValue":s[8]||(s[8]=l=>bt(Rv)?Rv.value=l:null)},null,512),[[Rl,J(Rv)]])]),ee("div",nLe,[Zt(ke(o.$t("speedtestTimeout"))+": ",1),Dr(ee("input",{type:"text",class:"input input-sm input-bordered flex-1","onUpdate:modelValue":s[9]||(s[9]=l=>bt(Ev)?Ev.value=l:null)},null,512),[[Rl,J(Ev)]])])])]),ee("div",iLe,[ee("div",aLe,ke(o.$t("connections")),1),ee("div",oLe,[ee("div",sLe,[Zt(ke(o.$t("connectionStyle"))+": "+ke(o.$t("table"))+" ",1),Dr(ee("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[10]||(s[10]=l=>bt(ac)?ac.value=l:null)},null,512),[[ss,J(ac)]]),Zt(" "+ke(o.$t("card")),1)]),J(ac)?(se(),be("div",lLe,[Zt(ke(o.$t("compactCard"))+": ",1),Dr(ee("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[11]||(s[11]=l=>bt(n0)?n0.value=l:null)},null,512),[[ss,J(n0)]])])):(se(),be("div",uLe,[ee("div",null,ke(o.$t("customTableColumns"))+":",1),Be(VIe)]))])])]))}});/*! - * vue-router v4.5.0 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */const Zf=typeof document<"u";function L7(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function fLe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&L7(e.default)}const fr=Object.assign;function $C(e,t){const r={};for(const n in t){const i=t[n];r[n]=qa(i)?i.map(e):e(i)}return r}const op=()=>{},qa=Array.isArray,P7=/#/g,hLe=/&/g,dLe=/\//g,vLe=/=/g,pLe=/\?/g,R7=/\+/g,gLe=/%5B/g,mLe=/%5D/g,E7=/%5E/g,yLe=/%60/g,k7=/%7B/g,_Le=/%7C/g,O7=/%7D/g,SLe=/%20/g;function IL(e){return encodeURI(""+e).replace(_Le,"|").replace(gLe,"[").replace(mLe,"]")}function bLe(e){return IL(e).replace(k7,"{").replace(O7,"}").replace(E7,"^")}function wD(e){return IL(e).replace(R7,"%2B").replace(SLe,"+").replace(P7,"%23").replace(hLe,"%26").replace(yLe,"`").replace(k7,"{").replace(O7,"}").replace(E7,"^")}function wLe(e){return wD(e).replace(vLe,"%3D")}function xLe(e){return IL(e).replace(P7,"%23").replace(pLe,"%3F")}function CLe(e){return e==null?"":xLe(e).replace(dLe,"%2F")}function qp(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const TLe=/\/$/,ALe=e=>e.replace(TLe,"");function HC(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=LLe(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:qp(o)}}function DLe(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function w3(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function MLe(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Nh(t.matched[n],r.matched[i])&&N7(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Nh(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function N7(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!ILe(e[r],t[r]))return!1;return!0}function ILe(e,t){return qa(e)?x3(e,t):qa(t)?x3(t,e):e===t}function x3(e,t){return qa(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function LLe(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 al={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var jp;(function(e){e.pop="pop",e.push="push"})(jp||(jp={}));var sp;(function(e){e.back="back",e.forward="forward",e.unknown=""})(sp||(sp={}));function PLe(e){if(!e)if(Zf){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ALe(e)}const RLe=/^[^#]+#/;function ELe(e,t){return e.replace(RLe,"#")+t}function kLe(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 SS=()=>({left:window.scrollX,top:window.scrollY});function OLe(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=kLe(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 C3(e,t){return(history.state?history.state.position-t:-1)+e}const xD=new Map;function NLe(e,t){xD.set(e,t)}function FLe(e){const t=xD.get(e);return xD.delete(e),t}let VLe=()=>location.protocol+"//"+location.host;function F7(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),w3(l,"")}return w3(r,e)+n+i}function BLe(e,t,r,n){let i=[],a=[],o=null;const s=({state:h})=>{const d=F7(e,location),v=r.value,g=t.value;let m=0;if(h){if(r.value=d,t.value=h,o&&o===v){o=null;return}m=g?h.position-g.position:0}else n(d);i.forEach(y=>{y(r.value,v,{delta:m,type:jp.pop,direction:m?m>0?sp.forward:sp.back:sp.unknown})})};function l(){o=r.value}function u(h){i.push(h);const d=()=>{const v=i.indexOf(h);v>-1&&i.splice(v,1)};return a.push(d),d}function c(){const{history:h}=window;h.state&&h.replaceState(fr({},h.state,{scroll:SS()}),"")}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 T3(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?SS():null}}function zLe(e){const{history:t,location:r}=window,n={value:F7(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:VLe()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),i.value=u}catch(d){console.error(d),r[c?"replace":"assign"](h)}}function o(l,u){const c=fr({},t.state,T3(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=fr({},i.value,t.state,{forward:l,scroll:SS()});a(c.current,c,!0);const f=fr({},T3(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 GLe(e){e=PLe(e);const t=zLe(e),r=BLe(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=fr({location:"",base:e,go:n,createHref:ELe.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 $Le(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),GLe(e)}function HLe(e){return typeof e=="string"||e&&typeof e=="object"}function V7(e){return typeof e=="string"||typeof e=="symbol"}const B7=Symbol("");var A3;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(A3||(A3={}));function Fh(e,t){return fr(new Error,{type:e,[B7]:!0},t)}function rs(e,t){return e instanceof Error&&B7 in e&&(t==null||!!(e.type&t))}const D3="[^/]+?",WLe={sensitive:!1,strict:!1,start:!0,end:!0},ULe=/[.+*?^${}()[\]/\\]/g;function YLe(e,t){const r=fr({},WLe,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 z7(e,t){let r=0;const n=e.score,i=t.score;for(;r0&&t[t.length-1]<0}const ZLe={type:0,value:""},qLe=/[a-zA-Z0-9_]/;function jLe(e){if(!e)return[[]];if(e==="/")return[[ZLe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${r})/"${u}": ${d}`)}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(b)}:op}function o(f){if(V7(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=tPe(f,r);r.splice(h,0,f),f.record.name&&!P3(f)&&n.set(f.record.name,f)}function u(f,h){let d,v={},g,m;if("name"in f&&f.name){if(d=n.get(f.name),!d)throw Fh(1,{location:f});m=d.record.name,v=fr(I3(h.params,d.keys.filter(b=>!b.optional).concat(d.parent?d.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&I3(f.params,d.keys.map(b=>b.name))),g=d.stringify(v)}else if(f.path!=null)g=f.path,d=r.find(b=>b.re.test(g)),d&&(v=d.parse(g),m=d.record.name);else{if(d=h.name?n.get(h.name):r.find(b=>b.re.test(h.path)),!d)throw Fh(1,{location:f,currentLocation:h});m=d.record.name,v=fr({},h.params,f.params),g=d.stringify(v)}const y=[];let S=d;for(;S;)y.unshift(S.record),S=S.parent;return{name:m,path:g,params:v,matched:y,meta:ePe(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 I3(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function L3(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:QLe(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 QLe(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 P3(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ePe(e){return e.reduce((t,r)=>fr(t,r.meta),{})}function R3(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function tPe(e,t){let r=0,n=t.length;for(;r!==n;){const a=r+n>>1;z7(e,t[a])<0?n=a:r=a+1}const i=rPe(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function rPe(e){let t=e;for(;t=t.parent;)if(G7(t)&&z7(e,t)===0)return t}function G7({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function nPe(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&wD(a)):[n&&wD(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function iPe(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=qa(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const aPe=Symbol(""),k3=Symbol(""),LL=Symbol(""),PL=Symbol(""),CD=Symbol("");function nv(){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 vl(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(Fh(4,{from:r,to:t})):h instanceof Error?l(h):HLe(h)?l(Fh(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 WC(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(L7(l)){const c=(l.__vccOpts||l)[t];c&&a.push(vl(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=fLe(c)?c.default:c;o.mods[s]=c,o.components[s]=f;const d=(f.__vccOpts||f)[t];return d&&vl(d,r,n,o,s,i)()}))}}return a}function O3(e){const t=$a(LL),r=$a(PL),n=at(()=>{const l=J(e.to);return t.resolve(l)}),i=at(()=>{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(Nh.bind(null,c));if(h>-1)return h;const d=N3(l[u-2]);return u>1&&N3(c)===d&&f[f.length-1].path!==d?f.findIndex(Nh.bind(null,l[u-2])):h}),a=at(()=>i.value>-1&&cPe(r.params,n.value.params)),o=at(()=>i.value>-1&&i.value===r.matched.length-1&&N7(r.params,n.value.params));function s(l={}){if(uPe(l)){const u=t[J(e.replace)?"replace":"push"](J(e.to)).catch(op);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:at(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function oPe(e){return e.length===1?e[0]:e}const sPe=Ut({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:O3,setup(e,{slots:t}){const r=Wc(O3(e)),{options:n}=$a(LL),i=at(()=>({[F3(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[F3(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&oPe(t.default(r));return e.custom?a:yo("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),lPe=sPe;function uPe(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 cPe(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(!qa(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function N3(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const F3=(e,t,r)=>e??t??r,fPe=Ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=$a(CD),i=at(()=>e.route||n.value),a=$a(k3,0),o=at(()=>{let u=J(a);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=at(()=>i.value.matched[o.value]);Yy(k3,at(()=>o.value+1)),Yy(aPe,s),Yy(CD,i);const l=je();return vr(()=>[l.value,s.value,e.name],([u,c,f],[h,d,v])=>{c&&(c.instances[f]=u,d&&d!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!Nh(c,d)||!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 V3(r.default,{Component:h,route:u});const d=f.props[c],v=d?d===!0?u.params:typeof d=="function"?d(u):d:null,m=yo(h,fr({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return V3(r.default,{Component:m,route:u})||m}}});function V3(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const $7=fPe;function hPe(e){const t=JLe(e.routes,e),r=e.parseQuery||nPe,n=e.stringifyQuery||E3,i=e.history,a=nv(),o=nv(),s=nv(),l=d1(al);let u=al;Zf&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=$C.bind(null,oe=>""+oe),f=$C.bind(null,CLe),h=$C.bind(null,qp);function d(oe,ue){let ve,me;return V7(oe)?(ve=t.getRecordMatcher(oe),me=ue):me=oe,t.addRoute(me,ve)}function v(oe){const ue=t.getRecordMatcher(oe);ue&&t.removeRoute(ue)}function g(){return t.getRoutes().map(oe=>oe.record)}function m(oe){return!!t.getRecordMatcher(oe)}function y(oe,ue){if(ue=fr({},ue||l.value),typeof oe=="string"){const W=HC(r,oe,ue.path),ne=t.resolve({path:W.path},ue),_e=i.createHref(W.fullPath);return fr(W,ne,{params:h(ne.params),hash:qp(W.hash),redirectedFrom:void 0,href:_e})}let ve;if(oe.path!=null)ve=fr({},oe,{path:HC(r,oe.path,ue.path).path});else{const W=fr({},oe.params);for(const ne in W)W[ne]==null&&delete W[ne];ve=fr({},oe,{params:f(W)}),ue.params=f(ue.params)}const me=t.resolve(ve,ue),Ce=oe.hash||"";me.params=c(h(me.params));const Re=DLe(n,fr({},oe,{hash:bLe(Ce),path:me.path})),H=i.createHref(Re);return fr({fullPath:Re,hash:Ce,query:n===E3?iPe(oe.query):oe.query||{}},me,{redirectedFrom:void 0,href:H})}function S(oe){return typeof oe=="string"?HC(r,oe,l.value.path):fr({},oe)}function b(oe,ue){if(u!==oe)return Fh(8,{from:ue,to:oe})}function w(oe){return A(oe)}function C(oe){return w(fr(S(oe),{replace:!0}))}function x(oe){const ue=oe.matched[oe.matched.length-1];if(ue&&ue.redirect){const{redirect:ve}=ue;let me=typeof ve=="function"?ve(oe):ve;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=S(me):{path:me},me.params={}),fr({query:oe.query,hash:oe.hash,params:me.path!=null?{}:oe.params},me)}}function A(oe,ue){const ve=u=y(oe),me=l.value,Ce=oe.state,Re=oe.force,H=oe.replace===!0,W=x(ve);if(W)return A(fr(S(W),{state:typeof W=="object"?fr({},Ce,W.state):Ce,force:Re,replace:H}),ue||ve);const ne=ve;ne.redirectedFrom=ue;let _e;return!Re&&MLe(n,me,ve)&&(_e=Fh(16,{to:ne,from:me}),ie(me,me,!0,!1)),(_e?Promise.resolve(_e):I(ne,me)).catch(he=>rs(he)?rs(he,2)?he:Q(he):G(he,ne,me)).then(he=>{if(he){if(rs(he,2))return A(fr({replace:H},S(he.to),{state:typeof he.to=="object"?fr({},Ce,he.to.state):Ce,force:Re}),ue||ne)}else he=E(ne,me,!0,H,Ce);return P(ne,me,he),he})}function D(oe,ue){const ve=b(oe,ue);return ve?Promise.reject(ve):Promise.resolve()}function M(oe){const ue=Le.values().next().value;return ue&&typeof ue.runWithContext=="function"?ue.runWithContext(oe):oe()}function I(oe,ue){let ve;const[me,Ce,Re]=dPe(oe,ue);ve=WC(me.reverse(),"beforeRouteLeave",oe,ue);for(const W of me)W.leaveGuards.forEach(ne=>{ve.push(vl(ne,oe,ue))});const H=D.bind(null,oe,ue);return ve.push(H),He(ve).then(()=>{ve=[];for(const W of a.list())ve.push(vl(W,oe,ue));return ve.push(H),He(ve)}).then(()=>{ve=WC(Ce,"beforeRouteUpdate",oe,ue);for(const W of Ce)W.updateGuards.forEach(ne=>{ve.push(vl(ne,oe,ue))});return ve.push(H),He(ve)}).then(()=>{ve=[];for(const W of Re)if(W.beforeEnter)if(qa(W.beforeEnter))for(const ne of W.beforeEnter)ve.push(vl(ne,oe,ue));else ve.push(vl(W.beforeEnter,oe,ue));return ve.push(H),He(ve)}).then(()=>(oe.matched.forEach(W=>W.enterCallbacks={}),ve=WC(Re,"beforeRouteEnter",oe,ue,M),ve.push(H),He(ve))).then(()=>{ve=[];for(const W of o.list())ve.push(vl(W,oe,ue));return ve.push(H),He(ve)}).catch(W=>rs(W,8)?W:Promise.reject(W))}function P(oe,ue,ve){s.list().forEach(me=>M(()=>me(oe,ue,ve)))}function E(oe,ue,ve,me,Ce){const Re=b(oe,ue);if(Re)return Re;const H=ue===al,W=Zf?history.state:{};ve&&(me||H?i.replace(oe.fullPath,fr({scroll:H&&W&&W.scroll},Ce)):i.push(oe.fullPath,Ce)),l.value=oe,ie(oe,ue,ve,H),Q()}let F;function O(){F||(F=i.listen((oe,ue,ve)=>{if(!ze.listening)return;const me=y(oe),Ce=x(me);if(Ce){A(fr(Ce,{replace:!0,force:!0}),me).catch(op);return}u=me;const Re=l.value;Zf&&NLe(C3(Re.fullPath,ve.delta),SS()),I(me,Re).catch(H=>rs(H,12)?H:rs(H,2)?(A(fr(S(H.to),{force:!0}),me).then(W=>{rs(W,20)&&!ve.delta&&ve.type===jp.pop&&i.go(-1,!1)}).catch(op),Promise.reject()):(ve.delta&&i.go(-ve.delta,!1),G(H,me,Re))).then(H=>{H=H||E(me,Re,!1),H&&(ve.delta&&!rs(H,8)?i.go(-ve.delta,!1):ve.type===jp.pop&&rs(H,20)&&i.go(-1,!1)),P(me,Re,H)}).catch(op)}))}let N=nv(),V=nv(),U;function G(oe,ue,ve){Q(oe);const me=V.list();return me.length?me.forEach(Ce=>Ce(oe,ue,ve)):console.error(oe),Promise.reject(oe)}function Z(){return U&&l.value!==al?Promise.resolve():new Promise((oe,ue)=>{N.add([oe,ue])})}function Q(oe){return U||(U=!oe,O(),N.list().forEach(([ue,ve])=>oe?ve(oe):ue()),N.reset()),oe}function ie(oe,ue,ve,me){const{scrollBehavior:Ce}=e;if(!Zf||!Ce)return Promise.resolve();const Re=!ve&&FLe(C3(oe.fullPath,0))||(me||!ve)&&history.state&&history.state.scroll||null;return Uc().then(()=>Ce(oe,ue,Re)).then(H=>H&&OLe(H)).catch(H=>G(H,oe,ue))}const pe=oe=>i.go(oe);let De;const Le=new Set,ze={currentRoute:l,listening:!0,addRoute:d,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:g,resolve:y,options:e,push:w,replace:C,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:V.add,isReady:Z,install(oe){const ue=this;oe.component("RouterLink",lPe),oe.component("RouterView",$7),oe.config.globalProperties.$router=ue,Object.defineProperty(oe.config.globalProperties,"$route",{enumerable:!0,get:()=>J(l)}),Zf&&!De&&l.value===al&&(De=!0,w(i.location).catch(Ce=>{}));const ve={};for(const Ce in al)Object.defineProperty(ve,Ce,{get:()=>l.value[Ce],enumerable:!0});oe.provide(LL,ue),oe.provide(PL,cz(ve)),oe.provide(CD,l);const me=oe.unmount;Le.add(oe),oe.unmount=function(){Le.delete(oe),Le.size<1&&(u=al,F&&F(),F=null,l.value=al,De=!1,U=!1),me()}}};function He(oe){return oe.reduce((ue,ve)=>ue.then(()=>M(ve)),Promise.resolve())}return ze}function dPe(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oNh(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Nh(u,l))||i.push(l))}return[r,n,i]}function H7(e){return $a(PL)}const Mg=hPe({history:$Le("./"),routes:[{path:"/proxies",name:br.proxies,component:kMe},{path:"/connections",name:br.connections,component:ZDe},{path:"/logs",name:br.logs,component:JDe},{path:"/rules",name:br.rules,component:UMe},{path:"/settings",name:br.settings,component:cLe},{path:"/:catchAll(.*)",redirect:br.proxies}]}),B3=xte("zashboard"),W7=e=>{typeof e=="string"&&_l.value?B3.value=`zashboard | ${wL.global.t(e)}`:B3.value="zashboard"};Mg.afterEach(e=>{W7(e.name)});vr(fs,()=>{W7(Mg.currentRoute.value.name)});const vPe={class:"flex flex-col gap-4 text-xs"},pPe={class:"flex flex-col items-center justify-center"},gPe={class:"flex flex-col items-center justify-center"},mPe={class:"flex flex-col items-center justify-center"},yPe={class:"flex flex-col items-center justify-center"},_Pe={class:"flex flex-col items-center justify-center"},SPe=Ut({__name:"VerticalInfos",setup(e){return(t,r)=>(se(),be("div",vPe,[ee("div",pPe,[Be(J(JD),{class:"h-4 w-4"}),Zt(" "+ke(J(_o).length),1)]),ee("div",gPe,[Be(J(CG),{class:"h-4 w-4"}),Zt(" "+ke(J(Or)(J(q0)))+" ",1),ee("span",null,ke(J(Or)(J(aM)))+"/s ",1)]),ee("div",mPe,[Be(J(AG),{class:"h-4 w-4"}),Zt(" "+ke(J(Or)(J(j0)))+" ",1),ee("span",null,ke(J(Or)(J(oM)))+"/s ",1)]),ee("div",yPe,[Be(J(One),{class:"h-4 w-4"}),Zt(" "+ke(J(Or)(J(iM),{binary:!0})),1)]),ee("div",_Pe,[ee("button",{class:"btn btn-circle btn-sm",onClick:r[0]||(r[0]=n=>yc.value=!1)},[Be(J(Ene),{class:"h-5 w-5"})])])]))}}),bPe={class:"drawer-side z-30"},wPe={class:"menu flex-1 pb-0"},xPe=["onClick"],CPe={class:"card bg-base-100 shadow-lg"},TPe=Ut({__name:"SideBar",setup(e){const t={[br.connections]:zG,[br.logs]:GG,[br.proxies]:$G,[br.rules]:WG},r={[br.proxies]:LG,[br.connections]:JD,[br.rules]:kG,[br.logs]:IG,[br.settings]:MG},n=at(()=>i.name?t[i.name]:null),i=H7(),a=Object.values(br);return(o,s)=>(se(),be("div",bPe,[s[0]||(s[0]=ee("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),ee("div",{class:Kt(J(nn)("flex h-full flex-col gap-2 overflow-x-hidden bg-base-200 p-2 text-base-content !transition-all duration-500",J(yc)?"w-18 px-0":"w-[21rem]"))},[ee("ul",wPe,[(se(!0),be(lt,null,dr(J(a),l=>(se(),be("li",{key:l},[ee("a",{class:Kt(l===J(i).name?"active":"inactive"),onClick:()=>J(Mg).push({name:l})},[(se(),qt(Vl(r[l]),{class:"h-5 w-5"})),J(yc)?tr("",!0):(se(),be(lt,{key:0},[Zt(ke(o.$t(l)),1)],64))],10,xPe)]))),128))]),J(yc)?(se(),qt(SPe,{key:0})):(se(),be(lt,{key:1},[ee("div",CPe,[n.value?(se(),qt(Vl(n.value),{key:0})):tr("",!0),Be(Zie)]),Be(kAe)],64))],2)]))}}),APe={class:"w-128 drawer md:drawer-open"},DPe={class:"drawer-content fixed bottom-0 flex h-full w-full flex-col overflow-hidden bg-base-200/50 md:relative md:w-auto"},MPe={class:"fixed bottom-0 flex h-12 w-full items-center justify-center gap-1 bg-base-200 p-1 md:hidden"},IPe={class:"menu menu-horizontal"},LPe=["href"],PPe={for:"sidebar"},RPe={class:"btn btn-circle drawer-button btn-sm bg-neutral text-neutral-content shadow-lg"},EPe=Ut({__name:"HomePage",setup(e){const t={[br.proxies]:LG,[br.connections]:JD,[br.rules]:kG,[br.logs]:IG,[br.settings]:MG},r={[br.connections]:zG,[br.logs]:GG,[br.proxies]:$G,[br.rules]:WG},n=H7(),i=Object.values(br),a=at(()=>r[n.name]);return vr(cs,()=>{kv.value=_h.RULES,_c.value=Gl.PROXIES,xG(),J0(),nM(),Lne(),lT(),$ie()},{immediate:!0}),(o,s)=>(se(),be("div",APe,[s[0]||(s[0]=ee("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),Be(TPe),ee("div",DPe,[a.value&&J(yc)?(se(),qt(Vl(a.value),{key:0,horizontal:!0})):tr("",!0),Be(J($7),{class:"mb-12 md:mb-0"}),ee("div",MPe,[ee("ul",IPe,[(se(!0),be(lt,null,dr(J(i),l=>(se(),be("li",{key:l},[ee("a",{class:Kt(l===J(n).name?"active":"inactive"),href:`#${l}`},[(se(),qt(Vl(t[l]),{class:"h-5 w-5"}))],10,LPe)]))),128))]),ee("label",PPe,[ee("div",RPe,[Be(J(kne),{class:"h-4 w-4"})])])])])]))}}),kPe={class:"flex h-full w-full items-center justify-center"},OPe={class:"rounded-lg bg-base-100 p-6 shadow-lg"},NPe={class:"mb-4 text-2xl font-semibold"},FPe={class:"form-control mb-4"},VPe={class:"label"},BPe={class:"label-text"},zPe={class:"form-control mb-4"},GPe={class:"label"},$Pe={class:"label-text"},HPe={class:"form-control mb-4"},WPe={class:"label"},UPe={class:"label-text"},YPe={class:"form-control"},XPe={class:"label"},ZPe={class:"label-text"},qPe=["onClick"],jPe=Ut({__name:"SetupPage",setup(e){var i,a;const t=Wc({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:d,message:v}=await h.json();if(!d){s||alert(v);return}kte(o),Mg.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)=>(se(),be("div",kPe,[ee("div",OPe,[ee("h1",NPe,ke(o.$t("setup")),1),ee("div",FPe,[ee("label",VPe,[ee("span",BPe,ke(o.$t("protocol")),1)]),Dr(ee("select",{class:"select select-bordered w-full","onUpdate:modelValue":s[0]||(s[0]=l=>t.protocol=l)},s[5]||(s[5]=[ee("option",{value:"http"},"HTTP",-1),ee("option",{value:"https"},"HTTPS",-1)]),512),[[ms,t.protocol]])]),ee("div",zPe,[ee("label",GPe,[ee("span",$Pe,ke(o.$t("host")),1)]),Dr(ee("input",{type:"text",class:"input input-bordered w-full","onUpdate:modelValue":s[1]||(s[1]=l=>t.host=l)},null,512),[[Rl,t.host]])]),ee("div",HPe,[ee("label",WPe,[ee("span",UPe,ke(o.$t("port")),1)]),Dr(ee("input",{type:"text",class:"input input-bordered w-full","onUpdate:modelValue":s[2]||(s[2]=l=>t.port=l)},null,512),[[Rl,t.port]])]),ee("div",YPe,[ee("label",XPe,[ee("span",ZPe,ke(o.$t("password")),1)]),Dr(ee("input",{type:"password",class:"input input-bordered w-full","onUpdate:modelValue":s[3]||(s[3]=l=>t.password=l)},null,512),[[Rl,t.password]])]),ee("button",{class:"btn btn-primary mt-4 w-full",onClick:s[4]||(s[4]=l=>r(t))},ke(o.$t("submit")),1),(se(!0),be(lt,null,dr(J(gp),l=>(se(),be("button",{class:"btn btn-xs mt-2 w-full",key:l.uuid,onClick:u=>cs.value=l.uuid},ke(l.protocol)+"://"+ke(l.host)+":"+ke(l.port),9,qPe))),128))])]))}}),KPe=["data-theme"],JPe=Ut({__name:"App",setup(e){return(t,r)=>(se(),be("div",{class:"flex h-dvh w-screen overflow-x-hidden bg-base-100 font-twemoji","data-theme":J(Jy)},[J(_l)?(se(),qt(EPe,{key:1})):(se(),qt(jPe,{key:0}))],8,KPe))}}),RL=Qee(JPe);Fl.extend(LJ);RL.use(Mg);RL.use(wL);RL.mount("#app"); diff --git a/assets/index-Cicg2cHj.js b/assets/index-Cicg2cHj.js new file mode 100644 index 00000000..ded1a6fb --- /dev/null +++ b/assets/index-Cicg2cHj.js @@ -0,0 +1,157 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var ym=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function TD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $y={exports:{}},CJ=$y.exports,lR;function G3(){return lR||(lR=1,function(e,t){(function(r,n){e.exports=n()})(CJ,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",v="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var N=["th","st","nd","rd"],V=O%100;return"["+O+(N[(V-20)%10]||N[V]||N[0])+"]"}},b=function(O,N,V){var U=String(O);return!U||U.length>=N?O:""+Array(N+1-U.length).join(V)+O},w={s:b,z:function(O){var N=-O.utcOffset(),V=Math.abs(N),U=Math.floor(V/60),G=V%60;return(N<=0?"+":"-")+b(U,2,"0")+":"+b(G,2,"0")},m:function O(N,V){if(N.date()1)return O(ee[0])}else{var ie=N.name;x[ie]=N,G=ie}return!U&&G&&(C=G),G||!U&&C},I=function(O,N){if(D(O))return O.clone();var V=typeof N=="object"?N:{};return V.date=O,V.args=arguments,new E(V)},P=w;P.l=M,P.i=D,P.w=function(O,N){return I(O,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var E=function(){function O(V){this.$L=M(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[A]=!0}var N=O.prototype;return N.parse=function(V){this.$d=function(U){var G=U.date,Z=U.utc;if(G===null)return new Date(NaN);if(P.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var ee=G.match(m);if(ee){var ie=ee[2]-1||0,pe=(ee[7]||"0").substring(0,3);return Z?new Date(Date.UTC(ee[1],ie,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,pe)):new Date(ee[1],ie,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,pe)}}return new Date(G)}(V),this.init()},N.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},N.$utils=function(){return P},N.isValid=function(){return this.$d.toString()!==g},N.isSame=function(V,U){var G=I(V);return this.startOf(U)<=G&&G<=this.endOf(U)},N.isAfter=function(V,U){return I(V)0,x<=C.r||!C.r){x<=1&&w>0&&(C=S[w-1]);var A=y[C.l];d&&(x=d(""+x)),g=typeof A=="string"?A.replace("%d",x):A(x,c,C.l,m);break}}if(c)return g;var D=m?y.future:y.past;return typeof D=="function"?D(g):D.replace("%s",g)},a.to=function(u,c){return s(u,c,this,!0)},a.from=function(u,c){return s(u,c,this)};var l=function(u){return u.$u?i.utc():i()};a.toNow=function(u){return this.to(l(this),u)},a.fromNow=function(u){return this.from(l(this),u)}}})}(Wy)),Wy.exports}var LJ=IJ();const PJ=TD(LJ);/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function AD(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const wr={},th=[],Co=()=>{},RJ=()=>!1,o1=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),DD=e=>e.startsWith("onUpdate:"),Sn=Object.assign,MD=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},EJ=Object.prototype.hasOwnProperty,hr=(e,t)=>EJ.call(e,t),ct=Array.isArray,rh=e=>Kp(e)==="[object Map]",Vh=e=>Kp(e)==="[object Set]",fR=e=>Kp(e)==="[object Date]",At=e=>typeof e=="function",Jr=e=>typeof e=="string",Ya=e=>typeof e=="symbol",Cr=e=>e!==null&&typeof e=="object",$3=e=>(Cr(e)||At(e))&&At(e.then)&&At(e.catch),H3=Object.prototype.toString,Kp=e=>H3.call(e),kJ=e=>Kp(e).slice(8,-1),W3=e=>Kp(e)==="[object Object]",ID=e=>Jr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dv=AD(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),s1=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},OJ=/-(\w)/g,wa=s1(e=>e.replace(OJ,(t,r)=>r?r.toUpperCase():"")),NJ=/\B([A-Z])/g,Hc=s1(e=>e.replace(NJ,"-$1").toLowerCase()),l1=s1(e=>e.charAt(0).toUpperCase()+e.slice(1)),Eb=s1(e=>e?`on${l1(e)}`:""),Pl=(e,t)=>!Object.is(e,t),Uy=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},F0=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hR;const u1=()=>hR||(hR=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tc(e){if(ct(e)){const t={};for(let r=0;r{if(r){const n=r.split(VJ);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Xt(e){let t="";if(Jr(e))t=e;else if(ct(e))for(let r=0;rJp(r,t))}const X3=e=>!!(e&&e.__v_isRef===!0),Re=e=>Jr(e)?e:e==null?"":ct(e)||Cr(e)&&(e.toString===H3||!At(e.toString))?X3(e)?Re(e.value):JSON.stringify(e,Z3,2):String(e),Z3=(e,t)=>X3(t)?Z3(e,t.value):rh(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],a)=>(r[kb(n,a)+" =>"]=i,r),{})}:Vh(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>kb(r))}:Ya(t)?kb(t):Cr(t)&&!ct(t)&&!W3(t)?String(t):t,kb=(e,t="")=>{var r;return Ya(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 ri;class q3{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ri,!t&&ri&&(this.index=(ri.scopes||(ri.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(Iv){let t=Iv;for(Iv=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Mv;){let t=Mv;for(Mv=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 ez(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function tz(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),ED(n),YJ(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function UC(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(rz(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function rz(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===lp))return;e.globalVersion=lp;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!UC(e)){e.flags&=-3;return}const r=Ar,n=Ga;Ar=e,Ga=!0;try{ez(e);const i=e.fn(e._value);(t.version===0||Pl(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Ar=r,Ga=n,tz(e),e.flags&=-3}}function ED(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)ED(a,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function YJ(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Ga=!0;const nz=[];function Kl(){nz.push(Ga),Ga=!1}function Jl(){const e=nz.pop();Ga=e===void 0?!0:e}function dR(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Ar;Ar=void 0;try{t()}finally{Ar=r}}}let lp=0;class XJ{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 c1{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(!Ar||!Ga||Ar===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Ar)r=this.activeLink=new XJ(Ar,this),Ar.deps?(r.prevDep=Ar.depsTail,Ar.depsTail.nextDep=r,Ar.depsTail=r):Ar.deps=Ar.depsTail=r,iz(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=Ar.depsTail,r.nextDep=void 0,Ar.depsTail.nextDep=r,Ar.depsTail=r,Ar.deps===r&&(Ar.deps=n)}return r}trigger(t){this.version++,lp++,this.notify(t)}notify(t){PD();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{RD()}}}function iz(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)iz(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const V0=new WeakMap,pc=Symbol(""),YC=Symbol(""),up=Symbol("");function $n(e,t,r){if(Ga&&Ar){let n=V0.get(e);n||V0.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new c1),i.map=n,i.key=r),i.track()}}function ls(e,t,r,n,i,a){const o=V0.get(e);if(!o){lp++;return}const s=l=>{l&&l.trigger()};if(PD(),t==="clear")o.forEach(s);else{const l=ct(e),u=l&&ID(r);if(l&&r==="length"){const c=Number(n);o.forEach((f,h)=>{(h==="length"||h===up||!Ya(h)&&h>=c)&&s(f)})}else switch((r!==void 0||o.has(void 0))&&s(o.get(r)),u&&s(o.get(up)),t){case"add":l?u&&s(o.get("length")):(s(o.get(pc)),rh(e)&&s(o.get(YC)));break;case"delete":l||(s(o.get(pc)),rh(e)&&s(o.get(YC)));break;case"set":rh(e)&&s(o.get(pc));break}}RD()}function ZJ(e,t){const r=V0.get(e);return r&&r.get(t)}function gf(e){const t=or(e);return t===e?t:($n(t,"iterate",up),Sa(e)?t:t.map(Hn))}function f1(e){return $n(e=or(e),"iterate",up),e}const qJ={__proto__:null,[Symbol.iterator](){return Nb(this,Symbol.iterator,Hn)},concat(...e){return gf(this).concat(...e.map(t=>ct(t)?gf(t):t))},entries(){return Nb(this,"entries",e=>(e[1]=Hn(e[1]),e))},every(e,t){return jo(this,"every",e,t,void 0,arguments)},filter(e,t){return jo(this,"filter",e,t,r=>r.map(Hn),arguments)},find(e,t){return jo(this,"find",e,t,Hn,arguments)},findIndex(e,t){return jo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jo(this,"findLast",e,t,Hn,arguments)},findLastIndex(e,t){return jo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jo(this,"forEach",e,t,void 0,arguments)},includes(...e){return Fb(this,"includes",e)},indexOf(...e){return Fb(this,"indexOf",e)},join(e){return gf(this).join(e)},lastIndexOf(...e){return Fb(this,"lastIndexOf",e)},map(e,t){return jo(this,"map",e,t,void 0,arguments)},pop(){return bd(this,"pop")},push(...e){return bd(this,"push",e)},reduce(e,...t){return vR(this,"reduce",e,t)},reduceRight(e,...t){return vR(this,"reduceRight",e,t)},shift(){return bd(this,"shift")},some(e,t){return jo(this,"some",e,t,void 0,arguments)},splice(...e){return bd(this,"splice",e)},toReversed(){return gf(this).toReversed()},toSorted(e){return gf(this).toSorted(e)},toSpliced(...e){return gf(this).toSpliced(...e)},unshift(...e){return bd(this,"unshift",e)},values(){return Nb(this,"values",Hn)}};function Nb(e,t,r){const n=f1(e),i=n[t]();return n!==e&&!Sa(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const jJ=Array.prototype;function jo(e,t,r,n,i,a){const o=f1(e),s=o!==e&&!Sa(e),l=o[t];if(l!==jJ[t]){const f=l.apply(e,a);return s?Hn(f):f}let u=r;o!==e&&(s?u=function(f,h){return r.call(this,Hn(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 vR(e,t,r,n){const i=f1(e);let a=r;return i!==e&&(Sa(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,Hn(s),l,e)}),i[t](a,...n)}function Fb(e,t,r){const n=or(e);$n(n,"iterate",up);const i=n[t](...r);return(i===-1||i===!1)&&ND(r[0])?(r[0]=or(r[0]),n[t](...r)):i}function bd(e,t,r=[]){Kl(),PD();const n=or(e)[t].apply(e,r);return RD(),Jl(),n}const KJ=AD("__proto__,__v_isRef,__isVue"),az=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ya));function JJ(e){Ya(e)||(e=String(e));const t=or(this);return $n(t,"has",e),t.hasOwnProperty(e)}class oz{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?lQ:cz:a?uz:lz).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=ct(t);if(!i){let l;if(o&&(l=qJ[r]))return l;if(r==="hasOwnProperty")return JJ}const s=Reflect.get(t,r,bt(t)?t:n);return(Ya(r)?az.has(r):KJ(r))||(i||$n(t,"get",r),a)?s:bt(s)?o&&ID(r)?s:s.value:Cr(s)?i?h1(s):Wc(s):s}}class sz extends oz{constructor(t=!1){super(!1,t)}set(t,r,n,i){let a=t[r];if(!this._isShallow){const l=Pc(a);if(!Sa(n)&&!Pc(n)&&(a=or(a),n=or(n)),!ct(t)&&bt(a)&&!bt(n))return l?!1:(a.value=n,!0)}const o=ct(t)&&ID(r)?Number(r)e,_m=e=>Reflect.getPrototypeOf(e);function nQ(e,t,r){return function(...n){const i=this.__v_raw,a=or(i),o=rh(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),c=r?XC:t?ZC:Hn;return!t&&$n(a,"iterate",l?YC:pc),{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 Sm(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function iQ(e,t){const r={get(i){const a=this.__v_raw,o=or(a),s=or(i);e||(Pl(i,s)&&$n(o,"get",i),$n(o,"get",s));const{has:l}=_m(o),u=t?XC:e?ZC:Hn;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&&$n(or(i),"iterate",pc),Reflect.get(i,"size",i)},has(i){const a=this.__v_raw,o=or(a),s=or(i);return e||(Pl(i,s)&&$n(o,"has",i),$n(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=or(s),u=t?XC:e?ZC:Hn;return!e&&$n(l,"iterate",pc),s.forEach((c,f)=>i.call(a,u(c),u(f),o))}};return Sn(r,e?{add:Sm("add"),set:Sm("set"),delete:Sm("delete"),clear:Sm("clear")}:{add(i){!t&&!Sa(i)&&!Pc(i)&&(i=or(i));const a=or(this);return _m(a).has.call(a,i)||(a.add(i),ls(a,"add",i,i)),this},set(i,a){!t&&!Sa(a)&&!Pc(a)&&(a=or(a));const o=or(this),{has:s,get:l}=_m(o);let u=s.call(o,i);u||(i=or(i),u=s.call(o,i));const c=l.call(o,i);return o.set(i,a),u?Pl(a,c)&&ls(o,"set",i,a):ls(o,"add",i,a),this},delete(i){const a=or(this),{has:o,get:s}=_m(a);let l=o.call(a,i);l||(i=or(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&ls(a,"delete",i,void 0),u},clear(){const i=or(this),a=i.size!==0,o=i.clear();return a&&ls(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=nQ(i,e,t)}),r}function kD(e,t){const r=iQ(e,t);return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(hr(r,i)&&i in n?r:n,i,a)}const aQ={get:kD(!1,!1)},oQ={get:kD(!1,!0)},sQ={get:kD(!0,!1)};const lz=new WeakMap,uz=new WeakMap,cz=new WeakMap,lQ=new WeakMap;function uQ(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function cQ(e){return e.__v_skip||!Object.isExtensible(e)?0:uQ(kJ(e))}function Wc(e){return Pc(e)?e:OD(e,!1,eQ,aQ,lz)}function fz(e){return OD(e,!1,rQ,oQ,uz)}function h1(e){return OD(e,!0,tQ,sQ,cz)}function OD(e,t,r,n,i){if(!Cr(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=cQ(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function nh(e){return Pc(e)?nh(e.__v_raw):!!(e&&e.__v_isReactive)}function Pc(e){return!!(e&&e.__v_isReadonly)}function Sa(e){return!!(e&&e.__v_isShallow)}function ND(e){return e?!!e.__v_raw:!1}function or(e){const t=e&&e.__v_raw;return t?or(t):e}function fQ(e){return!hr(e,"__v_skip")&&Object.isExtensible(e)&&U3(e,"__v_skip",!0),e}const Hn=e=>Cr(e)?Wc(e):e,ZC=e=>Cr(e)?h1(e):e;function bt(e){return e?e.__v_isRef===!0:!1}function Ze(e){return hz(e,!1)}function d1(e){return hz(e,!0)}function hz(e,t){return bt(e)?e:new hQ(e,t)}class hQ{constructor(t,r){this.dep=new c1,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:or(t),this._value=r?t:Hn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Sa(t)||Pc(t);t=n?t:or(t),Pl(t,r)&&(this._rawValue=t,this._value=n?t:Hn(t),this.dep.trigger())}}function J(e){return bt(e)?e.value:e}const dQ={get:(e,t,r)=>t==="__v_raw"?e:J(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return bt(i)&&!bt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function dz(e){return nh(e)?e:new Proxy(e,dQ)}class vQ{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new c1,{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 pQ(e){return new vQ(e)}function gQ(e){const t=ct(e)?new Array(e.length):{};for(const r in e)t[r]=vz(e,r);return t}class mQ{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 ZJ(or(this._object),this._key)}}class yQ{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 _Q(e,t,r){return bt(e)?e:At(e)?new yQ(e):Cr(e)&&arguments.length>1?vz(e,t,r):Ze(e)}function vz(e,t,r){const n=e[t];return bt(n)?n:new mQ(e,t,r)}class SQ{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new c1(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=lp-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ar!==this)return Q3(this,!0),!0}get value(){const t=this.dep.track();return rz(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function bQ(e,t,r=!1){let n,i;return At(e)?n=e:(n=e.get,i=e.set),new SQ(n,i,r)}const bm={},B0=new WeakMap;let Gu;function wQ(e,t=!1,r=Gu){if(r){let n=B0.get(r);n||B0.set(r,n=[]),n.push(e)}}function xQ(e,t,r=wr){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=w=>i?w:Sa(w)||i===!1||i===0?us(w,1):us(w);let c,f,h,d,v=!1,g=!1;if(bt(e)?(f=()=>e.value,v=Sa(e)):nh(e)?(f=()=>u(e),v=!0):ct(e)?(g=!0,v=e.some(w=>nh(w)||Sa(w)),f=()=>e.map(w=>{if(bt(w))return w.value;if(nh(w))return u(w);if(At(w))return l?l(w,2):w()})):At(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){Kl();try{h()}finally{Jl()}}const w=Gu;Gu=c;try{return l?l(e,3,[d]):e(d)}finally{Gu=w}}:f=Co,t&&i){const w=f,C=i===!0?1/0:i;f=()=>us(w(),C)}const m=j3(),y=()=>{c.stop(),m&&m.active&&MD(m.effects,c)};if(a&&t){const w=t;t=(...C)=>{w(...C),y()}}let S=g?new Array(e.length).fill(bm):bm;const b=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const C=c.run();if(i||v||(g?C.some((x,A)=>Pl(x,S[A])):Pl(C,S))){h&&h();const x=Gu;Gu=c;try{const A=[C,S===bm?void 0:g&&S[0]===bm?[]:S,d];l?l(t,3,A):t(...A),S=C}finally{Gu=x}}}else c.run()};return s&&s(b),c=new K3(f),c.scheduler=o?()=>o(b,!1):b,d=w=>wQ(w,!1,c),h=c.onStop=()=>{const w=B0.get(c);if(w){if(l)l(w,4);else for(const C of w)C();B0.delete(c)}},t?n?b(!0):S=c.run():o?o(b.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function us(e,t=1/0,r){if(t<=0||!Cr(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,bt(e))us(e.value,t,r);else if(ct(e))for(let n=0;n{us(n,t,r)});else if(W3(e)){for(const n in e)us(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&us(e[n],t,r)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Qp(e,t,r,n){try{return n?e(...n):e()}catch(i){v1(i,t,r)}}function Mo(e,t,r,n){if(At(e)){const i=Qp(e,t,r,n);return i&&$3(i)&&i.catch(a=>{v1(a,t,r)}),i}if(ct(e)){const i=[];for(let a=0;a>>1,i=ai[n],a=cp(i);a=cp(r)?ai.push(e):ai.splice(TQ(t),0,e),e.flags|=1,gz()}}function gz(){z0||(z0=pz.then(yz))}function AQ(e){ct(e)?ih.push(...e):ll&&e.id===-1?ll.splice(zf+1,0,e):e.flags&1||(ih.push(e),e.flags|=1),gz()}function pR(e,t,r=ho+1){for(;rcp(r)-cp(n));if(ih.length=0,ll){ll.push(...t);return}for(ll=t,zf=0;zfe.id==null?e.flags&2?-1:1/0:e.id;function yz(e){try{for(ho=0;ho{n._d&&CR(-1);const a=G0(t);let o;try{o=e(...i)}finally{G0(a),n._d&&CR(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Dr(e,t){if(yn===null)return e;const r=y1(yn),n=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport;function VD(e,t){e.shapeFlag&6&&e.component?(e.transition=t,VD(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 Ut(e,t){return At(e)?Sn({name:e.name},t,{setup:e}):e}function Sz(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $0(e,t,r,n,i=!1){if(ct(e)){e.forEach((v,g)=>$0(v,t&&(ct(t)?t[g]:t),r,n,i));return}if(ah(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&$0(e,t,r,n.component.subTree);return}const a=n.shapeFlag&4?y1(n.component):n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===wr?s.refs={}:s.refs,f=s.setupState,h=or(f),d=f===wr?()=>!1:v=>hr(h,v);if(u!=null&&u!==l&&(Jr(u)?(c[u]=null,d(u)&&(f[u]=null)):bt(u)&&(u.value=null)),At(l))Qp(l,s,12,[o,c]);else{const v=Jr(l),g=bt(l);if(v||g){const m=()=>{if(e.f){const y=v?d(l)?f[l]:c[l]:l.value;i?ct(y)&&MD(y,a):ct(y)?y.includes(a)||y.push(a):v?(c[l]=[a],d(l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else v?(c[l]=o,d(l)&&(f[l]=o)):g&&(l.value=o,e.k&&(c[e.k]=o))};o?(m.id=-1,Bi(m,r)):m()}}}u1().requestIdleCallback;u1().cancelIdleCallback;const ah=e=>!!e.type.__asyncLoader,bz=e=>e.type.__isKeepAlive;function IQ(e,t){wz(e,"a",t)}function LQ(e,t){wz(e,"da",t)}function wz(e,t,r=In){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(p1(t,n,r),r){let i=r.parent;for(;i&&i.parent;)bz(i.parent.vnode)&&PQ(n,t,r,i),i=i.parent}}function PQ(e,t,r,n){const i=p1(t,e,n,!0);g1(()=>{MD(n[t],i)},r)}function p1(e,t,r=In,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Kl();const s=tg(r),l=Mo(t,r,e,o);return s(),Jl(),l});return n?i.unshift(a):i.push(a),a}}const Es=e=>(t,r=In)=>{(!vp||e==="sp")&&p1(e,(...n)=>t(...n),r)},RQ=Es("bm"),Bh=Es("m"),EQ=Es("bu"),kQ=Es("u"),xz=Es("bum"),g1=Es("um"),OQ=Es("sp"),NQ=Es("rtg"),FQ=Es("rtc");function VQ(e,t=In){p1("ec",e,t)}const BQ="components",Cz=Symbol.for("v-ndc");function Vl(e){return Jr(e)?zQ(BQ,e,!1)||e:e||Cz}function zQ(e,t,r=!0,n=!1){const i=yn||In;if(i){const a=i.type;{const s=Dee(a,!1);if(s&&(s===t||s===wa(t)||s===l1(wa(t))))return a}const o=gR(i[e]||a[e],t)||gR(i.appContext[e],t);return!o&&n?a:o}}function gR(e,t){return e&&(e[t]||e[wa(t)]||e[l1(wa(t))])}function dr(e,t,r,n){let i;const a=r,o=ct(e);if(o||Jr(e)){const s=o&&nh(e);let l=!1;s&&(l=!Sa(e),e=f1(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;ldp(t)?!(t.type===Bl||t.type===lt&&!Tz(t.children)):!0)?e:null}const qC=e=>e?Wz(e)?y1(e):qC(e.parent):null,Lv=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=>qC(e.parent),$root:e=>qC(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>BD(e),$forceUpdate:e=>e.f||(e.f=()=>{FD(e.update)}),$nextTick:e=>e.n||(e.n=Uc.bind(e.proxy)),$watch:e=>lee.bind(e)}),Vb=(e,t)=>e!==wr&&!e.__isScriptSetup&&hr(e,t),$Q={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 d=o[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(Vb(n,t))return o[t]=1,n[t];if(i!==wr&&hr(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&hr(u,t))return o[t]=3,a[t];if(r!==wr&&hr(r,t))return o[t]=4,r[t];jC&&(o[t]=0)}}const c=Lv[t];let f,h;if(c)return t==="$attrs"&&$n(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==wr&&hr(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,hr(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return Vb(i,t)?(i[t]=r,!0):n!==wr&&hr(n,t)?(n[t]=r,!0):hr(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!==wr&&hr(e,o)||Vb(t,o)||(s=a[0])&&hr(s,o)||hr(n,o)||hr(Lv,o)||hr(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:hr(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function mR(e){return ct(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let jC=!0;function HQ(e){const t=BD(e),r=e.proxy,n=e.ctx;jC=!1,t.beforeCreate&&yR(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:d,updated:v,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:S,destroyed:b,unmounted:w,render:C,renderTracked:x,renderTriggered:A,errorCaptured:D,serverPrefetch:M,expose:I,inheritAttrs:P,components:E,directives:F,filters:O}=t;if(u&&WQ(u,n,null),o)for(const U in o){const G=o[U];At(G)&&(n[U]=G.bind(r))}if(i){const U=i.call(r,r);Cr(U)&&(e.data=Wc(U))}if(jC=!0,a)for(const U in a){const G=a[U],Z=At(G)?G.bind(r,r):At(G.get)?G.get.bind(r,r):Co,ee=!At(G)&&At(G.set)?G.set.bind(r):Co,ie=at({get:Z,set:ee});Object.defineProperty(n,U,{enumerable:!0,configurable:!0,get:()=>ie.value,set:pe=>ie.value=pe})}if(s)for(const U in s)Az(s[U],n,r,U);if(l){const U=At(l)?l.call(r):l;Reflect.ownKeys(U).forEach(G=>{Yy(G,U[G])})}c&&yR(c,e,"c");function V(U,G){ct(G)?G.forEach(Z=>U(Z.bind(r))):G&&U(G.bind(r))}if(V(RQ,f),V(Bh,h),V(EQ,d),V(kQ,v),V(IQ,g),V(LQ,m),V(VQ,D),V(FQ,x),V(NQ,A),V(xz,S),V(g1,w),V(OQ,M),ct(I))if(I.length){const U=e.exposed||(e.exposed={});I.forEach(G=>{Object.defineProperty(U,G,{get:()=>r[G],set:Z=>r[G]=Z})})}else e.exposed||(e.exposed={});C&&e.render===Co&&(e.render=C),P!=null&&(e.inheritAttrs=P),E&&(e.components=E),F&&(e.directives=F),M&&Sz(e)}function WQ(e,t,r=Co){ct(e)&&(e=KC(e));for(const n in e){const i=e[n];let a;Cr(i)?"default"in i?a=$a(i.from||n,i.default,!0):a=$a(i.from||n):a=$a(i),bt(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function yR(e,t,r){Mo(ct(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Az(e,t,r,n){let i=n.includes(".")?Bz(r,n):()=>r[n];if(Jr(e)){const a=t[e];At(a)&&vr(i,a)}else if(At(e))vr(i,e.bind(r));else if(Cr(e))if(ct(e))e.forEach(a=>Az(a,t,r,n));else{const a=At(e.handler)?e.handler.bind(r):t[e.handler];At(a)&&vr(i,a,e)}}function BD(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=>H0(l,u,o,!0)),H0(l,t,o)),Cr(t)&&a.set(t,l),l}function H0(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&H0(e,a,r,!0),i&&i.forEach(o=>H0(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=UQ[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const UQ={data:_R,props:SR,emits:SR,methods:iv,computed:iv,beforeCreate:Kn,created:Kn,beforeMount:Kn,mounted:Kn,beforeUpdate:Kn,updated:Kn,beforeDestroy:Kn,beforeUnmount:Kn,destroyed:Kn,unmounted:Kn,activated:Kn,deactivated:Kn,errorCaptured:Kn,serverPrefetch:Kn,components:iv,directives:iv,watch:XQ,provide:_R,inject:YQ};function _R(e,t){return t?e?function(){return Sn(At(e)?e.call(this,this):e,At(t)?t.call(this,this):t)}:t:e}function YQ(e,t){return iv(KC(e),KC(t))}function KC(e){if(ct(e)){const t={};for(let r=0;r1)return r&&At(t)?t.call(n&&n.proxy):t}}const Mz={},Iz=()=>Object.create(Mz),Lz=e=>Object.getPrototypeOf(e)===Mz;function jQ(e,t,r,n=!1){const i={},a=Iz();e.propsDefaults=Object.create(null),Pz(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:fz(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function KQ(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=or(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,d]=Rz(f,t,!0);Sn(o,h),d&&s.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return Cr(e)&&n.set(e,th),th;if(ct(a))for(let c=0;ce[0]==="_"||e==="$stable",zD=e=>ct(e)?e.map(po):[po(e)],QQ=(e,t,r)=>{if(t._n)return t;const n=fp((...i)=>zD(t(...i)),r);return n._c=!1,n},kz=(e,t,r)=>{const n=e._ctx;for(const i in e){if(Ez(i))continue;const a=e[i];if(At(a))t[i]=QQ(i,a,n);else if(a!=null){const o=zD(a);t[i]=()=>o}}},Oz=(e,t)=>{const r=zD(t);e.slots.default=()=>r},Nz=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},eee=(e,t,r)=>{const n=e.slots=Iz();if(e.vnode.shapeFlag&32){const i=t._;i?(Nz(n,t,r),r&&U3(n,"_",i,!0)):kz(t,n)}else t&&Oz(e,t)},tee=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=wr;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:Nz(i,t,r):(a=!t.$stable,kz(t,i)),o=t}else t&&(Oz(e,t),o={default:1});if(a)for(const s in i)!Ez(s)&&o[s]==null&&delete i[s]},Bi=pee;function ree(e){return nee(e)}function nee(e,t){const r=u1();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:d=Co,insertStaticContent:v}=e,g=(H,W,ne,_e=null,he=null,$=null,Y=void 0,te=null,le=!!W.dynamicChildren)=>{if(H===W)return;H&&!wd(H,W)&&(_e=oe(H),pe(H,he,$,!0),H=null),W.patchFlag===-2&&(le=!1,W.dynamicChildren=null);const{type:xe,ref:Pe,shapeFlag:K}=W;switch(xe){case eg:m(H,W,ne,_e);break;case Bl:y(H,W,ne,_e);break;case Gb:H==null&&S(W,ne,_e,Y);break;case lt:E(H,W,ne,_e,he,$,Y,te,le);break;default:K&1?C(H,W,ne,_e,he,$,Y,te,le):K&6?F(H,W,ne,_e,he,$,Y,te,le):(K&64||K&128)&&xe.process(H,W,ne,_e,he,$,Y,te,le,me)}Pe!=null&&he&&$0(Pe,H&&H.ref,$,W||H,!W)},m=(H,W,ne,_e)=>{if(H==null)n(W.el=s(W.children),ne,_e);else{const he=W.el=H.el;W.children!==H.children&&u(he,W.children)}},y=(H,W,ne,_e)=>{H==null?n(W.el=l(W.children||""),ne,_e):W.el=H.el},S=(H,W,ne,_e)=>{[H.el,H.anchor]=v(H.children,W,ne,_e,H.el,H.anchor)},b=({el:H,anchor:W},ne,_e)=>{let he;for(;H&&H!==W;)he=h(H),n(H,ne,_e),H=he;n(W,ne,_e)},w=({el:H,anchor:W})=>{let ne;for(;H&&H!==W;)ne=h(H),i(H),H=ne;i(W)},C=(H,W,ne,_e,he,$,Y,te,le)=>{W.type==="svg"?Y="svg":W.type==="math"&&(Y="mathml"),H==null?x(W,ne,_e,he,$,Y,te,le):M(H,W,he,$,Y,te,le)},x=(H,W,ne,_e,he,$,Y,te)=>{let le,xe;const{props:Pe,shapeFlag:K,transition:ce,dirs:Ge}=H;if(le=H.el=o(H.type,$,Pe&&Pe.is,Pe),K&8?c(le,H.children):K&16&&D(H.children,le,null,_e,he,Bb(H,$),Y,te),Ge&&du(H,null,_e,"created"),A(le,H,H.scopeId,Y,_e),Pe){for(const Pt in Pe)Pt!=="value"&&!Dv(Pt)&&a(le,Pt,null,Pe[Pt],$,_e);"value"in Pe&&a(le,"value",null,Pe.value,$),(xe=Pe.onVnodeBeforeMount)&&ro(xe,_e,H)}Ge&&du(H,null,_e,"beforeMount");const Je=iee(he,ce);Je&&ce.beforeEnter(le),n(le,W,ne),((xe=Pe&&Pe.onVnodeMounted)||Je||Ge)&&Bi(()=>{xe&&ro(xe,_e,H),Je&&ce.enter(le),Ge&&du(H,null,_e,"mounted")},he)},A=(H,W,ne,_e,he)=>{if(ne&&d(H,ne),_e)for(let $=0;$<_e.length;$++)d(H,_e[$]);if(he){let $=he.subTree;if(W===$||Gz($.type)&&($.ssContent===W||$.ssFallback===W)){const Y=he.vnode;A(H,Y,Y.scopeId,Y.slotScopeIds,he.parent)}}},D=(H,W,ne,_e,he,$,Y,te,le=0)=>{for(let xe=le;xe{const te=W.el=H.el;let{patchFlag:le,dynamicChildren:xe,dirs:Pe}=W;le|=H.patchFlag&16;const K=H.props||wr,ce=W.props||wr;let Ge;if(ne&&vu(ne,!1),(Ge=ce.onVnodeBeforeUpdate)&&ro(Ge,ne,W,H),Pe&&du(W,H,ne,"beforeUpdate"),ne&&vu(ne,!0),(K.innerHTML&&ce.innerHTML==null||K.textContent&&ce.textContent==null)&&c(te,""),xe?I(H.dynamicChildren,xe,te,ne,_e,Bb(W,he),$):Y||G(H,W,te,null,ne,_e,Bb(W,he),$,!1),le>0){if(le&16)P(te,K,ce,ne,he);else if(le&2&&K.class!==ce.class&&a(te,"class",null,ce.class,he),le&4&&a(te,"style",K.style,ce.style,he),le&8){const Je=W.dynamicProps;for(let Pt=0;Pt{Ge&&ro(Ge,ne,W,H),Pe&&du(W,H,ne,"updated")},_e)},I=(H,W,ne,_e,he,$,Y)=>{for(let te=0;te{if(W!==ne){if(W!==wr)for(const $ in W)!Dv($)&&!($ in ne)&&a(H,$,W[$],null,he,_e);for(const $ in ne){if(Dv($))continue;const Y=ne[$],te=W[$];Y!==te&&$!=="value"&&a(H,$,te,Y,he,_e)}"value"in ne&&a(H,"value",W.value,ne.value,he)}},E=(H,W,ne,_e,he,$,Y,te,le)=>{const xe=W.el=H?H.el:s(""),Pe=W.anchor=H?H.anchor:s("");let{patchFlag:K,dynamicChildren:ce,slotScopeIds:Ge}=W;Ge&&(te=te?te.concat(Ge):Ge),H==null?(n(xe,ne,_e),n(Pe,ne,_e),D(W.children||[],ne,Pe,he,$,Y,te,le)):K>0&&K&64&&ce&&H.dynamicChildren?(I(H.dynamicChildren,ce,ne,he,$,Y,te),(W.key!=null||he&&W===he.subTree)&&Fz(H,W,!0)):G(H,W,ne,Pe,he,$,Y,te,le)},F=(H,W,ne,_e,he,$,Y,te,le)=>{W.slotScopeIds=te,H==null?W.shapeFlag&512?he.ctx.activate(W,ne,_e,Y,le):O(W,ne,_e,he,$,Y,le):N(H,W,le)},O=(H,W,ne,_e,he,$,Y)=>{const te=H.component=wee(H,_e,he);if(bz(H)&&(te.ctx.renderer=me),xee(te,!1,Y),te.asyncDep){if(he&&he.registerDep(te,V,Y),!H.el){const le=te.subTree=Be(Bl);y(null,le,W,ne)}}else V(te,H,W,ne,he,$,Y)},N=(H,W,ne)=>{const _e=W.component=H.component;if(dee(H,W,ne))if(_e.asyncDep&&!_e.asyncResolved){U(_e,W,ne);return}else _e.next=W,_e.update();else W.el=H.el,_e.vnode=W},V=(H,W,ne,_e,he,$,Y)=>{const te=()=>{if(H.isMounted){let{next:K,bu:ce,u:Ge,parent:Je,vnode:Pt}=H;{const wn=Vz(H);if(wn){K&&(K.el=Pt.el,U(H,K,Y)),wn.asyncDep.then(()=>{H.isUnmounted||te()});return}}let zt=K,Rr;vu(H,!1),K?(K.el=Pt.el,U(H,K,Y)):K=Pt,ce&&Uy(ce),(Rr=K.props&&K.props.onVnodeBeforeUpdate)&&ro(Rr,Je,K,Pt),vu(H,!0);const zr=zb(H),En=H.subTree;H.subTree=zr,g(En,zr,f(En.el),oe(En),H,he,$),K.el=zr.el,zt===null&&vee(H,zr.el),Ge&&Bi(Ge,he),(Rr=K.props&&K.props.onVnodeUpdated)&&Bi(()=>ro(Rr,Je,K,Pt),he)}else{let K;const{el:ce,props:Ge}=W,{bm:Je,m:Pt,parent:zt,root:Rr,type:zr}=H,En=ah(W);if(vu(H,!1),Je&&Uy(Je),!En&&(K=Ge&&Ge.onVnodeBeforeMount)&&ro(K,zt,W),vu(H,!0),ce&&Ee){const wn=()=>{H.subTree=zb(H),Ee(ce,H.subTree,H,he,null)};En&&zr.__asyncHydrate?zr.__asyncHydrate(ce,H,wn):wn()}else{Rr.ce&&Rr.ce._injectChildStyle(zr);const wn=H.subTree=zb(H);g(null,wn,ne,_e,H,he,$),W.el=wn.el}if(Pt&&Bi(Pt,he),!En&&(K=Ge&&Ge.onVnodeMounted)){const wn=W;Bi(()=>ro(K,zt,wn),he)}(W.shapeFlag&256||zt&&ah(zt.vnode)&&zt.vnode.shapeFlag&256)&&H.a&&Bi(H.a,he),H.isMounted=!0,W=ne=_e=null}};H.scope.on();const le=H.effect=new K3(te);H.scope.off();const xe=H.update=le.run.bind(le),Pe=H.job=le.runIfDirty.bind(le);Pe.i=H,Pe.id=H.uid,le.scheduler=()=>FD(Pe),vu(H,!0),xe()},U=(H,W,ne)=>{W.component=H;const _e=H.vnode.props;H.vnode=W,H.next=null,KQ(H,W.props,_e,ne),tee(H,W.children,ne),Kl(),pR(H),Jl()},G=(H,W,ne,_e,he,$,Y,te,le=!1)=>{const xe=H&&H.children,Pe=H?H.shapeFlag:0,K=W.children,{patchFlag:ce,shapeFlag:Ge}=W;if(ce>0){if(ce&128){ee(xe,K,ne,_e,he,$,Y,te,le);return}else if(ce&256){Z(xe,K,ne,_e,he,$,Y,te,le);return}}Ge&8?(Pe&16&&He(xe,he,$),K!==xe&&c(ne,K)):Pe&16?Ge&16?ee(xe,K,ne,_e,he,$,Y,te,le):He(xe,he,$,!0):(Pe&8&&c(ne,""),Ge&16&&D(K,ne,_e,he,$,Y,te,le))},Z=(H,W,ne,_e,he,$,Y,te,le)=>{H=H||th,W=W||th;const xe=H.length,Pe=W.length,K=Math.min(xe,Pe);let ce;for(ce=0;cePe?He(H,he,$,!0,!1,K):D(W,ne,_e,he,$,Y,te,le,K)},ee=(H,W,ne,_e,he,$,Y,te,le)=>{let xe=0;const Pe=W.length;let K=H.length-1,ce=Pe-1;for(;xe<=K&&xe<=ce;){const Ge=H[xe],Je=W[xe]=le?ul(W[xe]):po(W[xe]);if(wd(Ge,Je))g(Ge,Je,ne,null,he,$,Y,te,le);else break;xe++}for(;xe<=K&&xe<=ce;){const Ge=H[K],Je=W[ce]=le?ul(W[ce]):po(W[ce]);if(wd(Ge,Je))g(Ge,Je,ne,null,he,$,Y,te,le);else break;K--,ce--}if(xe>K){if(xe<=ce){const Ge=ce+1,Je=Gece)for(;xe<=K;)pe(H[xe],he,$,!0),xe++;else{const Ge=xe,Je=xe,Pt=new Map;for(xe=Je;xe<=ce;xe++){const xn=W[xe]=le?ul(W[xe]):po(W[xe]);xn.key!=null&&Pt.set(xn.key,xe)}let zt,Rr=0;const zr=ce-Je+1;let En=!1,wn=0;const zo=new Array(zr);for(xe=0;xe=zr){pe(xn,he,$,!0);continue}let vi;if(xn.key!=null)vi=Pt.get(xn.key);else for(zt=Je;zt<=ce;zt++)if(zo[zt-Je]===0&&wd(xn,W[zt])){vi=zt;break}vi===void 0?pe(xn,he,$,!0):(zo[vi-Je]=xe+1,vi>=wn?wn=vi:En=!0,g(xn,W[vi],ne,null,he,$,Y,te,le),Rr++)}const ef=En?aee(zo):th;for(zt=ef.length-1,xe=zr-1;xe>=0;xe--){const xn=Je+xe,vi=W[xn],Ig=xn+1{const{el:$,type:Y,transition:te,children:le,shapeFlag:xe}=H;if(xe&6){ie(H.component.subTree,W,ne,_e);return}if(xe&128){H.suspense.move(W,ne,_e);return}if(xe&64){Y.move(H,W,ne,me);return}if(Y===lt){n($,W,ne);for(let K=0;Kte.enter($),he);else{const{leave:K,delayLeave:ce,afterLeave:Ge}=te,Je=()=>n($,W,ne),Pt=()=>{K($,()=>{Je(),Ge&&Ge()})};ce?ce($,Je,Pt):Pt()}else n($,W,ne)},pe=(H,W,ne,_e=!1,he=!1)=>{const{type:$,props:Y,ref:te,children:le,dynamicChildren:xe,shapeFlag:Pe,patchFlag:K,dirs:ce,cacheIndex:Ge}=H;if(K===-2&&(he=!1),te!=null&&$0(te,null,ne,H,!0),Ge!=null&&(W.renderCache[Ge]=void 0),Pe&256){W.ctx.deactivate(H);return}const Je=Pe&1&&ce,Pt=!ah(H);let zt;if(Pt&&(zt=Y&&Y.onVnodeBeforeUnmount)&&ro(zt,W,H),Pe&6)ze(H.component,ne,_e);else{if(Pe&128){H.suspense.unmount(ne,_e);return}Je&&du(H,null,W,"beforeUnmount"),Pe&64?H.type.remove(H,W,ne,me,_e):xe&&!xe.hasOnce&&($!==lt||K>0&&K&64)?He(xe,W,ne,!1,!0):($===lt&&K&384||!he&&Pe&16)&&He(le,W,ne),_e&&De(H)}(Pt&&(zt=Y&&Y.onVnodeUnmounted)||Je)&&Bi(()=>{zt&&ro(zt,W,H),Je&&du(H,null,W,"unmounted")},ne)},De=H=>{const{type:W,el:ne,anchor:_e,transition:he}=H;if(W===lt){Le(ne,_e);return}if(W===Gb){w(H);return}const $=()=>{i(ne),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(H.shapeFlag&1&&he&&!he.persisted){const{leave:Y,delayLeave:te}=he,le=()=>Y(ne,$);te?te(H.el,$,le):le()}else $()},Le=(H,W)=>{let ne;for(;H!==W;)ne=h(H),i(H),H=ne;i(W)},ze=(H,W,ne)=>{const{bum:_e,scope:he,job:$,subTree:Y,um:te,m:le,a:xe}=H;wR(le),wR(xe),_e&&Uy(_e),he.stop(),$&&($.flags|=8,pe(Y,H,W,ne)),te&&Bi(te,W),Bi(()=>{H.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},He=(H,W,ne,_e=!1,he=!1,$=0)=>{for(let Y=$;Y{if(H.shapeFlag&6)return oe(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const W=h(H.anchor||H.el),ne=W&&W[DQ];return ne?h(ne):W};let ue=!1;const ve=(H,W,ne)=>{H==null?W._vnode&&pe(W._vnode,null,null,!0):g(W._vnode||null,H,W,null,null,null,ne),W._vnode=H,ue||(ue=!0,pR(),mz(),ue=!1)},me={p:g,um:pe,m:ie,r:De,mt:O,mc:D,pc:G,pbc:I,n:oe,o:e};let Ce,Ee;return{render:ve,hydrate:Ce,createApp:qQ(ve,Ce)}}function Bb({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 vu({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function iee(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fz(e,t,r=!1){const n=e.children,i=t.children;if(ct(n)&&ct(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 Vz(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vz(t)}function wR(e){if(e)for(let t=0;t$a(oee);function GD(e,t){return $D(e,null,t)}function vr(e,t,r){return $D(e,t,r)}function $D(e,t,r=wr){const{immediate:n,deep:i,flush:a,once:o}=r,s=Sn({},r),l=t&&n||!t&&a!=="post";let u;if(vp){if(a==="sync"){const d=see();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Co,d.resume=Co,d.pause=Co,d}}const c=In;s.call=(d,v,g)=>Mo(d,c,v,g);let f=!1;a==="post"?s.scheduler=d=>{Bi(d,c&&c.suspense)}:a!=="sync"&&(f=!0,s.scheduler=(d,v)=>{v?d():FD(d)}),s.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const h=xQ(e,t,s);return vp&&(u?u.push(h):l&&h()),h}function lee(e,t,r){const n=this.proxy,i=Jr(e)?e.includes(".")?Bz(n,e):()=>n[e]:e.bind(n,n);let a;At(t)?a=t:(a=t.handler,r=t);const o=tg(this),s=$D(i,a.bind(n),r);return o(),s}function Bz(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[`${wa(t)}Modifiers`]||e[`${Hc(t)}Modifiers`];function cee(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||wr;let i=r;const a=t.startsWith("update:"),o=a&&uee(n,t.slice(7));o&&(o.trim&&(i=r.map(c=>Jr(c)?c.trim():c)),o.number&&(i=r.map(F0)));let s,l=n[s=Eb(t)]||n[s=Eb(wa(t))];!l&&a&&(l=n[s=Eb(Hc(t))]),l&&Mo(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,Mo(u,e,6,i)}}function zz(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(!At(e)){const l=u=>{const c=zz(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?(Cr(e)&&n.set(e,null),null):(ct(a)?a.forEach(l=>o[l]=null):Sn(o,a),Cr(e)&&n.set(e,o),o)}function m1(e,t){return!e||!o1(t)?!1:(t=t.slice(2).replace(/Once$/,""),hr(e,t[0].toLowerCase()+t.slice(1))||hr(e,Hc(t))||hr(e,t))}function zb(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:d,ctx:v,inheritAttrs:g}=e,m=G0(e);let y,S;try{if(r.shapeFlag&4){const w=i||n,C=w;y=po(u.call(C,w,c,f,d,h,v)),S=s}else{const w=t;y=po(w.length>1?w(f,{attrs:s,slots:o,emit:l}):w(f,null)),S=t.props?s:fee(s)}}catch(w){Pv.length=0,v1(w,e,1),y=Be(Bl)}let b=y;if(S&&g!==!1){const w=Object.keys(S),{shapeFlag:C}=b;w.length&&C&7&&(a&&w.some(DD)&&(S=hee(S,a)),b=mh(b,S,!1,!0))}return r.dirs&&(b=mh(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(r.dirs):r.dirs),r.transition&&VD(b,r.transition),y=b,G0(m),y}const fee=e=>{let t;for(const r in e)(r==="class"||r==="style"||o1(r))&&((t||(t={}))[r]=e[r]);return t},hee=(e,t)=>{const r={};for(const n in e)(!DD(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function dee(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?xR(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function pee(e,t){t&&t.pendingBranch?ct(e)?t.effects.push(...e):t.effects.push(e):AQ(e)}const lt=Symbol.for("v-fgt"),eg=Symbol.for("v-txt"),Bl=Symbol.for("v-cmt"),Gb=Symbol.for("v-stc"),Pv=[];let Hi=null;function se(e=!1){Pv.push(Hi=e?null:[])}function gee(){Pv.pop(),Hi=Pv[Pv.length-1]||null}let hp=1;function CR(e,t=!1){hp+=e,e<0&&Hi&&t&&(Hi.hasOnce=!0)}function $z(e){return e.dynamicChildren=hp>0?Hi||th:null,gee(),hp>0&&Hi&&Hi.push(e),e}function Se(e,t,r,n,i,a){return $z(Q(e,t,r,n,i,a,!0))}function jt(e,t,r,n,i){return $z(Be(e,t,r,n,i,!0))}function dp(e){return e?e.__v_isVNode===!0:!1}function wd(e,t){return e.type===t.type&&e.key===t.key}const Hz=({key:e})=>e??null,Xy=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Jr(e)||bt(e)||At(e)?{i:yn,r:e,k:t,f:!!r}:e:null);function Q(e,t=null,r=null,n=0,i=null,a=e===lt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Hz(t),ref:t&&Xy(t),scopeId:_z,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:yn};return s?(HD(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Jr(r)?8:16),hp>0&&!o&&Hi&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Hi.push(l),l}const Be=mee;function mee(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===Cz)&&(e=Bl),dp(e)){const s=mh(e,t,!0);return r&&HD(s,r),hp>0&&!a&&Hi&&(s.shapeFlag&6?Hi[Hi.indexOf(e)]=s:Hi.push(s)),s.patchFlag=-2,s}if(Mee(e)&&(e=e.__vccOpts),t){t=yee(t);let{class:s,style:l}=t;s&&!Jr(s)&&(t.class=Xt(s)),Cr(l)&&(ND(l)&&!ct(l)&&(l=Sn({},l)),t.style=tc(l))}const o=Jr(e)?1:Gz(e)?128:MQ(e)?64:Cr(e)?4:At(e)?2:0;return Q(e,t,r,n,i,o,a,!0)}function yee(e){return e?ND(e)||Lz(e)?Sn({},e):e:null}function mh(e,t,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?_ee(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Hz(u),ref:t&&t.ref?r&&a?ct(a)?a.concat(Xy(t)):[a,Xy(t)]:Xy(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!==lt?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&&mh(e.ssContent),ssFallback:e.ssFallback&&mh(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&VD(c,l.clone(c)),c}function qt(e=" ",t=0){return Be(eg,null,e,t)}function Jt(e="",t=!1){return t?(se(),jt(Bl,null,e)):Be(Bl,null,e)}function po(e){return e==null||typeof e=="boolean"?Be(Bl):ct(e)?Be(lt,null,e.slice()):dp(e)?ul(e):Be(eg,null,String(e))}function ul(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mh(e)}function HD(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ct(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),HD(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!Lz(t)?t._ctx=yn:i===3&&yn&&(yn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else At(t)?(t={default:t,_ctx:yn},r=32):(t=String(t),n&64?(r=16,t=[qt(t)]):r=8);e.children=t,e.shapeFlag|=r}function _ee(...e){const t={};for(let r=0;rIn||yn;let W0,QC;{const e=u1(),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)}};W0=t("__VUE_INSTANCE_SETTERS__",r=>In=r),QC=t("__VUE_SSR_SETTERS__",r=>vp=r)}const tg=e=>{const t=In;return W0(e),e.scope.on(),()=>{e.scope.off(),W0(t)}},TR=()=>{In&&In.scope.off(),W0(null)};function Wz(e){return e.vnode.shapeFlag&4}let vp=!1;function xee(e,t=!1,r=!1){t&&QC(t);const{props:n,children:i}=e.vnode,a=Wz(e);jQ(e,n,a,t),eee(e,i,r);const o=a?Cee(e,t):void 0;return t&&QC(!1),o}function Cee(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,$Q);const{setup:n}=r;if(n){Kl();const i=e.setupContext=n.length>1?Aee(e):null,a=tg(e),o=Qp(n,e,0,[e.props,i]),s=$3(o);if(Jl(),a(),(s||e.sp)&&!ah(e)&&Sz(e),s){if(o.then(TR,TR),t)return o.then(l=>{AR(e,l,t)}).catch(l=>{v1(l,e,0)});e.asyncDep=o}else AR(e,o,t)}else Uz(e,t)}function AR(e,t,r){At(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Cr(t)&&(e.setupState=dz(t)),Uz(e,r)}let DR;function Uz(e,t,r){const n=e.type;if(!e.render){if(!t&&DR&&!n.render){const i=n.template||BD(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=DR(i,u)}}e.render=n.render||Co}{const i=tg(e);Kl();try{HQ(e)}finally{Jl(),i()}}}const Tee={get(e,t){return $n(e,"get",""),e[t]}};function Aee(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Tee),slots:e.slots,emit:e.emit,expose:t}}function y1(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(dz(fQ(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Lv)return Lv[r](e)},has(t,r){return r in t||r in Lv}})):e.proxy}function Dee(e,t=!0){return At(e)?e.displayName||e.name:e.name||t&&e.__name}function Mee(e){return At(e)&&"__vccOpts"in e}const at=(e,t)=>bQ(e,t,vp);function yo(e,t,r){const n=arguments.length;return n===2?Cr(t)&&!ct(t)?dp(t)?Be(e,null,[t]):Be(e,t):Be(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&dp(r)&&(r=[r]),Be(e,t,r))}const Iee="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let eT;const MR=typeof window<"u"&&window.trustedTypes;if(MR)try{eT=MR.createPolicy("vue",{createHTML:e=>e})}catch{}const Yz=eT?e=>eT.createHTML(e):e=>e,Lee="http://www.w3.org/2000/svg",Pee="http://www.w3.org/1998/Math/MathML",ns=typeof document<"u"?document:null,IR=ns&&ns.createElement("template"),Ree={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"?ns.createElementNS(Lee,e):t==="mathml"?ns.createElementNS(Pee,e):r?ns.createElement(e,{is:r}):ns.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>ns.createTextNode(e),createComment:e=>ns.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ns.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{IR.innerHTML=Yz(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const s=IR.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]}},Eee=Symbol("_vtc");function kee(e,t,r){const n=e[Eee];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const LR=Symbol("_vod"),Oee=Symbol("_vsh"),Nee=Symbol(""),Fee=/(^|;)\s*display\s*:/;function Vee(e,t,r){const n=e.style,i=Jr(r);let a=!1;if(r&&!i){if(t)if(Jr(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&Zy(n,s,"")}else for(const o in t)r[o]==null&&Zy(n,o,"");for(const o in r)o==="display"&&(a=!0),Zy(n,o,r[o])}else if(i){if(t!==r){const o=n[Nee];o&&(r+=";"+o),n.cssText=r,a=Fee.test(r)}}else t&&e.removeAttribute("style");LR in e&&(e[LR]=a?n.display:"",e[Oee]&&(n.display="none"))}const PR=/\s*!important$/;function Zy(e,t,r){if(ct(r))r.forEach(n=>Zy(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Bee(e,t);PR.test(r)?e.setProperty(Hc(n),r.replace(PR,""),"important"):e[n]=r}}const RR=["Webkit","Moz","ms"],$b={};function Bee(e,t){const r=$b[t];if(r)return r;let n=wa(t);if(n!=="filter"&&n in e)return $b[t]=n;n=l1(n);for(let i=0;iHb||(Hee.then(()=>Hb=0),Hb=Date.now());function Uee(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Mo(Yee(n,r.value),t,5,[n])};return r.value=e,r.attached=Wee(),r}function Yee(e,t){if(ct(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 VR=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xee=(e,t,r,n,i,a)=>{const o=i==="svg";t==="class"?kee(e,n,o):t==="style"?Vee(e,r,n):o1(t)?DD(t)||Gee(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zee(e,t,n,o))?(OR(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&kR(e,t,n,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Jr(n))?OR(e,wa(t),n,a,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),kR(e,t,n,o))};function Zee(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&VR(t)&&At(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 VR(t)&&Jr(r)?!1:t in e}const yh=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ct(t)?r=>Uy(t,r):t};function qee(e){e.target.composing=!0}function BR(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gs=Symbol("_assign"),Rl={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[gs]=yh(i);const a=n||i.props&&i.props.type==="number";pl(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r&&(s=s.trim()),a&&(s=F0(s)),e[gs](s)}),r&&pl(e,"change",()=>{e.value=e.value.trim()}),t||(pl(e,"compositionstart",qee),pl(e,"compositionend",BR),pl(e,"change",BR))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:a}},o){if(e[gs]=yh(o),e.composing)return;const s=(a||e.type==="number")&&!/^0\d/.test(e.value)?F0(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))}},ss={deep:!0,created(e,t,r){e[gs]=yh(r),pl(e,"change",()=>{const n=e._modelValue,i=pp(e),a=e.checked,o=e[gs];if(ct(n)){const s=LD(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(Vh(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(Xz(e,a))})},mounted:zR,beforeUpdate(e,t,r){e[gs]=yh(r),zR(e,t,r)}};function zR(e,{value:t,oldValue:r},n){e._modelValue=t;let i;if(ct(t))i=LD(t,n.props.value)>-1;else if(Vh(t))i=t.has(n.props.value);else{if(t===r)return;i=Jp(t,Xz(e,!0))}e.checked!==i&&(e.checked=i)}const ms={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=Vh(t);pl(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?F0(pp(o)):pp(o));e[gs](e.multiple?i?new Set(a):a:a[0]),e._assigning=!0,Uc(()=>{e._assigning=!1})}),e[gs]=yh(n)},mounted(e,{value:t}){GR(e,t)},beforeUpdate(e,t,r){e[gs]=yh(r)},updated(e,{value:t}){e._assigning||GR(e,t)}};function GR(e,t){const r=e.multiple,n=ct(t);if(!(r&&!n&&!Vh(t))){for(let i=0,a=e.options.length;iString(u)===String(s)):o.selected=LD(t,s)>-1}else o.selected=t.has(s);else if(Jp(pp(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function pp(e){return"_value"in e?e._value:e.value}function Xz(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const jee=["ctrl","shift","alt","meta"],Kee={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)=>jee.some(r=>e[`${r}Key`]&&!t.includes(r))},WD=(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=Qee().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=rte(n);if(!i)return;const a=t._component;!At(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,tte(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function tte(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function rte(e){return Jr(e)?document.querySelector(e):e}function Rc(e){return j3()?(UJ(e),!0):!1}function Ql(e){return typeof e=="function"?e():J(e)}const gc=typeof window<"u"&&typeof document<"u",nte=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,ite=e=>e!=null,ate=Object.prototype.toString,ote=e=>ate.call(e)==="[object Object]",Zz=()=>{};function ste(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 qz=e=>e();function lte(e=qz){const t=Ze(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:h1(t),pause:r,resume:n,eventFilter:i}}function jz(e){return Io()}function Kz(...e){if(e.length!==1)return _Q(...e);const t=e[0];return typeof t=="function"?h1(pQ(()=>({get:t,set:Zz}))):Ze(t)}function ute(e,t,r={}){const{eventFilter:n=qz,...i}=r;return vr(e,ste(n,t),i)}function cte(e,t,r={}){const{eventFilter:n,...i}=r,{eventFilter:a,pause:o,resume:s,isActive:l}=lte(n);return{stop:ute(e,t,{...i,eventFilter:a}),pause:o,resume:s,isActive:l}}function fte(e,t){jz()&&xz(e,t)}function UD(e,t=!0,r){jz()?Bh(e,r):t?e():Uc(e)}function hte(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:i=!1}=r;let a=null;const o=Ze(!1);function s(){a&&(clearInterval(a),a=null)}function l(){o.value=!1,s()}function u(){const c=Ql(t);c<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,c)))}if(n&&gc&&u(),bt(t)||typeof t=="function"){const c=vr(t,()=>{o.value&&gc&&u()});Rc(c)}return Rc(l),{isActive:o,pause:l,resume:u}}const zl=gc?window:void 0,dte=gc?window.document:void 0;function yl(e){var t;const r=Ql(e);return(t=r==null?void 0:r.$el)!=null?t:r}function U0(...e){let t,r,n,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,i]=e,t=zl):[t,r,n,i]=e,!t)return Zz;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,f,h,d)=>(c.addEventListener(f,h,d),()=>c.removeEventListener(f,h,d)),l=vr(()=>[yl(t),Ql(i)],([c,f])=>{if(o(),!c)return;const h=ote(f)?{...f}:f;a.push(...r.flatMap(d=>n.map(v=>s(c,d,v,h))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Rc(u),u}function vte(){const e=Ze(!1),t=Io();return t&&Bh(()=>{e.value=!0},t),e}function YD(e){const t=vte();return at(()=>(t.value,!!e()))}function pte(e,t,r={}){const{window:n=zl,...i}=r;let a;const o=YD(()=>n&&"MutationObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},l=at(()=>{const h=Ql(e),d=(Array.isArray(h)?h:[h]).map(yl).filter(ite);return new Set(d)}),u=vr(()=>l.value,h=>{s(),o.value&&h.size&&(a=new MutationObserver(t),h.forEach(d=>a.observe(d,i)))},{immediate:!0,flush:"post"}),c=()=>a==null?void 0:a.takeRecords(),f=()=>{u(),s()};return Rc(f),{isSupported:o,stop:f,takeRecords:c}}function gte(e,t={}){const{window:r=zl}=t,n=YD(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let i;const a=Ze(!1),o=u=>{a.value=u.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},l=GD(()=>{n.value&&(s(),i=r.matchMedia(Ql(e)),"addEventListener"in i?i.addEventListener("change",o):i.addListener(o),a.value=i.matches)});return Rc(()=>{l(),s(),i=void 0}),a}const wm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xm="__vueuse_ssr_handlers__",mte=yte();function yte(){return xm in wm||(wm[xm]=wm[xm]||{}),wm[xm]}function _te(e,t){return mte[e]||t}function Ste(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 bte={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()}},HR="vueuse-storage";function Yr(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=zl,eventFilter:h,onError:d=I=>{console.error(I)},initOnMounted:v}=n,g=(c?d1:Ze)(typeof t=="function"?t():t);if(!r)try{r=_te("getDefaultStorage",()=>{var I;return(I=zl)==null?void 0:I.localStorage})()}catch(I){d(I)}if(!r)return g;const m=Ql(t),y=Ste(m),S=(i=n.serializer)!=null?i:bte[y],{pause:b,resume:w}=cte(g,()=>x(g.value),{flush:a,deep:o,eventFilter:h});f&&s&&UD(()=>{r instanceof Storage?U0(f,"storage",D):U0(f,HR,M),v&&D()}),v||D();function C(I,P){if(f){const E={key:e,oldValue:I,newValue:P,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",E):new CustomEvent(HR,{detail:E}))}}function x(I){try{const P=r.getItem(e);if(I==null)C(P,null),r.removeItem(e);else{const E=S.write(I);P!==E&&(r.setItem(e,E),C(P,E))}}catch(P){d(P)}}function A(I){const P=I?I.newValue:r.getItem(e);if(P==null)return l&&m!=null&&r.setItem(e,S.write(m)),m;if(!I&&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 D(I){if(!(I&&I.storageArea!==r)){if(I&&I.key==null){g.value=m;return}if(!(I&&I.key!==e)){b();try{(I==null?void 0:I.newValue)!==S.write(g.value)&&(g.value=A(I))}catch(P){d(P)}finally{I?Uc(w):w()}}}}function M(I){D(I.detail)}return g}function wte(e,t,r={}){const{window:n=zl,...i}=r;let a;const o=YD(()=>n&&"ResizeObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},l=at(()=>{const f=Ql(e);return Array.isArray(f)?f.map(h=>yl(h)):[yl(f)]}),u=vr(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 Rc(c),{isSupported:o,stop:c}}function xte(e,t={width:0,height:0},r={}){const{window:n=zl,box:i="content-box"}=r,a=at(()=>{var f,h;return(h=(f=yl(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),o=Ze(t.width),s=Ze(t.height),{stop:l}=wte(e,([f])=>{const h=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(n&&a.value){const d=yl(e);if(d){const v=d.getBoundingClientRect();o.value=v.width,s.value=v.height}}else if(h){const d=Array.isArray(h)?h:[h];o.value=d.reduce((v,{inlineSize:g})=>v+g,0),s.value=d.reduce((v,{blockSize:g})=>v+g,0)}else o.value=f.contentRect.width,s.value=f.contentRect.height},r);UD(()=>{const f=yl(e);f&&(o.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=vr(()=>yl(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 Cte(e=null,t={}){var r,n,i;const{document:a=dte,restoreOnUnmount:o=f=>f}=t,s=(r=a==null?void 0:a.title)!=null?r:"",l=Kz((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):Ql(h).replace(/%s/g,f)}return vr(l,(f,h)=>{f!==h&&a&&(a.title=c(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&a&&!u&&pte((i=a.head)==null?void 0:i.querySelector("title"),()=>{a&&a.title!==l.value&&(l.value=c(a.title))},{childList:!0}),fte(()=>{if(o){const f=o(s,l.value||"");f!=null&&a&&(a.title=f)}}),l}const WR="ping";function Wb(e){return e===!0?{}:e}function Tte(e,t={}){const{onConnected:r,onDisconnected:n,onError:i,onMessage:a,immediate:o=!0,autoClose:s=!0,protocols:l=[]}=t,u=Ze(null),c=Ze("CLOSED"),f=Ze(),h=Kz(e);let d,v,g=!1,m=0,y=[],S;const b=()=>{if(y.length&&f.value&&c.value==="OPEN"){for(const M of y)f.value.send(M);y=[]}},w=()=>{clearTimeout(S),S=void 0},C=(M=1e3,I)=>{!gc||!f.value||(g=!0,w(),d==null||d(),f.value.close(M,I),f.value=void 0)},x=(M,I=!0)=>!f.value||c.value!=="OPEN"?(I&&y.push(M),!1):(b(),f.value.send(M),!0),A=()=>{if(g||typeof h.value>"u")return;const M=new WebSocket(h.value,l);f.value=M,c.value="CONNECTING",M.onopen=()=>{c.value="OPEN",m=0,r==null||r(M),v==null||v(),b()},M.onclose=I=>{if(c.value="CLOSED",n==null||n(M,I),!g&&t.autoReconnect&&(f.value==null||M===f.value)){const{retries:P=-1,delay:E=1e3,onFailed:F}=Wb(t.autoReconnect);typeof P=="number"&&(P<0||m{i==null||i(M,I)},M.onmessage=I=>{if(t.heartbeat){w();const{message:P=WR,responseMessage:E=P}=Wb(t.heartbeat);if(I.data===E)return}u.value=I.data,a==null||a(M,I)}};if(t.heartbeat){const{message:M=WR,interval:I=1e3,pongTimeout:P=1e3}=Wb(t.heartbeat),{pause:E,resume:F}=hte(()=>{x(M,!1),S==null&&(S=setTimeout(()=>{C(),g=!1},P))},I,{immediate:!1});d=E,v=F}s&&(gc&&U0("beforeunload",()=>C()),Rc(C));const D=()=>{!gc&&!nte||(C(),g=!1,m=0,A())};return o&&D(),vr(h,D),{data:u,status:c,close:C,send:x,open:D,ws:f}}function Ate(e={}){const{window:t=zl,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:a=!0,type:o="inner"}=e,s=Ze(r),l=Ze(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(),UD(u),U0("resize",u,{passive:!0}),i){const c=gte("(orientation: portrait)");vr(c,()=>u())}return{width:s,height:l}}var av={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 Dte=av.exports,UR;function Mte(){return UR||(UR=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,d=4,v=1,g=2,m=1,y=2,S=4,b=8,w=16,C=32,x=64,A=128,D=256,M=512,I=30,P="...",E=800,F=16,O=1,N=2,V=3,U=1/0,G=9007199254740991,Z=17976931348623157e292,ee=NaN,ie=4294967295,pe=ie-1,De=ie>>>1,Le=[["ary",A],["bind",m],["bindKey",y],["curry",b],["curryRight",w],["flip",M],["partial",C],["partialRight",x],["rearg",D]],ze="[object Arguments]",He="[object Array]",oe="[object AsyncFunction]",ue="[object Boolean]",ve="[object Date]",me="[object DOMException]",Ce="[object Error]",Ee="[object Function]",H="[object GeneratorFunction]",W="[object Map]",ne="[object Number]",_e="[object Null]",he="[object Object]",$="[object Promise]",Y="[object Proxy]",te="[object RegExp]",le="[object Set]",xe="[object String]",Pe="[object Symbol]",K="[object Undefined]",ce="[object WeakMap]",Ge="[object WeakSet]",Je="[object ArrayBuffer]",Pt="[object DataView]",zt="[object Float32Array]",Rr="[object Float64Array]",zr="[object Int8Array]",En="[object Int16Array]",wn="[object Int32Array]",zo="[object Uint8Array]",ef="[object Uint8ClampedArray]",xn="[object Uint16Array]",vi="[object Uint32Array]",Ig=/\b__p \+= '';/g,Y7=/\b(__p \+=) '' \+/g,X7=/(__e\(.*?\)|\b__t\)) \+\n'';/g,EL=/&(?:amp|lt|gt|quot|#39);/g,kL=/[&<>"']/g,Z7=RegExp(EL.source),q7=RegExp(kL.source),j7=/<%-([\s\S]+?)%>/g,K7=/<%([\s\S]+?)%>/g,OL=/<%=([\s\S]+?)%>/g,J7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q7=/^\w*$/,e9=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bS=/[\\^$.*+?()[\]{}|]/g,t9=RegExp(bS.source),wS=/^\s+/,r9=/\s/,n9=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,i9=/\{\n\/\* \[wrapped with (.+)\] \*/,a9=/,? & /,o9=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,s9=/[()=,{}\[\]\/\s]/,l9=/\\(\\)?/g,u9=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,NL=/\w*$/,c9=/^[-+]0x[0-9a-f]+$/i,f9=/^0b[01]+$/i,h9=/^\[object .+?Constructor\]$/,d9=/^0o[0-7]+$/i,v9=/^(?:0|[1-9]\d*)$/,p9=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Lg=/($^)/,g9=/['\n\r\u2028\u2029\\]/g,Pg="\\ud800-\\udfff",m9="\\u0300-\\u036f",y9="\\ufe20-\\ufe2f",_9="\\u20d0-\\u20ff",FL=m9+y9+_9,VL="\\u2700-\\u27bf",BL="a-z\\xdf-\\xf6\\xf8-\\xff",S9="\\xac\\xb1\\xd7\\xf7",b9="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",w9="\\u2000-\\u206f",x9=" \\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",zL="A-Z\\xc0-\\xd6\\xd8-\\xde",GL="\\ufe0e\\ufe0f",$L=S9+b9+w9+x9,xS="['’]",C9="["+Pg+"]",HL="["+$L+"]",Rg="["+FL+"]",WL="\\d+",T9="["+VL+"]",UL="["+BL+"]",YL="[^"+Pg+$L+WL+VL+BL+zL+"]",CS="\\ud83c[\\udffb-\\udfff]",A9="(?:"+Rg+"|"+CS+")",XL="[^"+Pg+"]",TS="(?:\\ud83c[\\udde6-\\uddff]){2}",AS="[\\ud800-\\udbff][\\udc00-\\udfff]",tf="["+zL+"]",ZL="\\u200d",qL="(?:"+UL+"|"+YL+")",D9="(?:"+tf+"|"+YL+")",jL="(?:"+xS+"(?:d|ll|m|re|s|t|ve))?",KL="(?:"+xS+"(?:D|LL|M|RE|S|T|VE))?",JL=A9+"?",QL="["+GL+"]?",M9="(?:"+ZL+"(?:"+[XL,TS,AS].join("|")+")"+QL+JL+")*",I9="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",L9="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",eP=QL+JL+M9,P9="(?:"+[T9,TS,AS].join("|")+")"+eP,R9="(?:"+[XL+Rg+"?",Rg,TS,AS,C9].join("|")+")",E9=RegExp(xS,"g"),k9=RegExp(Rg,"g"),DS=RegExp(CS+"(?="+CS+")|"+R9+eP,"g"),O9=RegExp([tf+"?"+UL+"+"+jL+"(?="+[HL,tf,"$"].join("|")+")",D9+"+"+KL+"(?="+[HL,tf+qL,"$"].join("|")+")",tf+"?"+qL+"+"+jL,tf+"+"+KL,L9,I9,WL,P9].join("|"),"g"),N9=RegExp("["+ZL+Pg+FL+GL+"]"),F9=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,V9=["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"],B9=-1,Ir={};Ir[zt]=Ir[Rr]=Ir[zr]=Ir[En]=Ir[wn]=Ir[zo]=Ir[ef]=Ir[xn]=Ir[vi]=!0,Ir[ze]=Ir[He]=Ir[Je]=Ir[ue]=Ir[Pt]=Ir[ve]=Ir[Ce]=Ir[Ee]=Ir[W]=Ir[ne]=Ir[he]=Ir[te]=Ir[le]=Ir[xe]=Ir[ce]=!1;var Tr={};Tr[ze]=Tr[He]=Tr[Je]=Tr[Pt]=Tr[ue]=Tr[ve]=Tr[zt]=Tr[Rr]=Tr[zr]=Tr[En]=Tr[wn]=Tr[W]=Tr[ne]=Tr[he]=Tr[te]=Tr[le]=Tr[xe]=Tr[Pe]=Tr[zo]=Tr[ef]=Tr[xn]=Tr[vi]=!0,Tr[Ce]=Tr[Ee]=Tr[ce]=!1;var z9={À:"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"},G9={"&":"&","<":"<",">":">",'"':""","'":"'"},$9={"&":"&","<":"<",">":">",""":'"',"'":"'"},H9={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},W9=parseFloat,U9=parseInt,tP=typeof ym=="object"&&ym&&ym.Object===Object&&ym,Y9=typeof self=="object"&&self&&self.Object===Object&&self,Cn=tP||Y9||Function("return this")(),MS=t&&!t.nodeType&&t,iu=MS&&!0&&e&&!e.nodeType&&e,rP=iu&&iu.exports===MS,IS=rP&&tP.process,ji=function(){try{var re=iu&&iu.require&&iu.require("util").types;return re||IS&&IS.binding&&IS.binding("util")}catch{}}(),nP=ji&&ji.isArrayBuffer,iP=ji&&ji.isDate,aP=ji&&ji.isMap,oP=ji&&ji.isRegExp,sP=ji&&ji.isSet,lP=ji&&ji.isTypedArray;function Li(re,we,de){switch(de.length){case 0:return re.call(we);case 1:return re.call(we,de[0]);case 2:return re.call(we,de[0],de[1]);case 3:return re.call(we,de[0],de[1],de[2])}return re.apply(we,de)}function X9(re,we,de,Xe){for(var Ct=-1,ir=re==null?0:re.length;++Ct-1}function LS(re,we,de){for(var Xe=-1,Ct=re==null?0:re.length;++Xe-1;);return de}function gP(re,we){for(var de=re.length;de--&&rf(we,re[de],0)>-1;);return de}function rY(re,we){for(var de=re.length,Xe=0;de--;)re[de]===we&&++Xe;return Xe}var nY=kS(z9),iY=kS(G9);function aY(re){return"\\"+H9[re]}function oY(re,we){return re==null?r:re[we]}function nf(re){return N9.test(re)}function sY(re){return F9.test(re)}function lY(re){for(var we,de=[];!(we=re.next()).done;)de.push(we.value);return de}function VS(re){var we=-1,de=Array(re.size);return re.forEach(function(Xe,Ct){de[++we]=[Ct,Xe]}),de}function mP(re,we){return function(de){return re(we(de))}}function zs(re,we){for(var de=-1,Xe=re.length,Ct=0,ir=[];++de-1}function qY(p,_){var T=this.__data__,L=jg(T,p);return L<0?(++this.size,T.push([p,_])):T[L][1]=_,this}Go.prototype.clear=UY,Go.prototype.delete=YY,Go.prototype.get=XY,Go.prototype.has=ZY,Go.prototype.set=qY;function $o(p){var _=-1,T=p==null?0:p.length;for(this.clear();++_=_?p:_)),p}function ea(p,_,T,L,k,z){var X,q=_&f,ae=_&h,Te=_&d;if(T&&(X=k?T(p,L,k,z):T(p)),X!==r)return X;if(!Fr(p))return p;var Ae=Dt(p);if(Ae){if(X=QX(p),!q)return pi(p,X)}else{var Me=On(p),$e=Me==Ee||Me==H;if(Ys(p))return QP(p,q);if(Me==he||Me==ze||$e&&!k){if(X=ae||$e?{}:y2(p),!q)return ae?$X(p,fX(X,p)):GX(p,IP(X,p))}else{if(!Tr[Me])return k?p:{};X=eZ(p,Me,q)}}z||(z=new Ma);var et=z.get(p);if(et)return et;z.set(p,X),X2(p)?p.forEach(function(ht){X.add(ea(ht,_,T,ht,p,z))}):U2(p)&&p.forEach(function(ht,$t){X.set($t,ea(ht,_,T,$t,p,z))});var ft=Te?ae?cb:ub:ae?mi:gn,Ot=Ae?r:ft(p);return Ki(Ot||p,function(ht,$t){Ot&&($t=ht,ht=p[$t]),hd(X,$t,ea(ht,_,T,$t,p,z))}),X}function hX(p){var _=gn(p);return function(T){return LP(T,p,_)}}function LP(p,_,T){var L=T.length;if(p==null)return!L;for(p=Sr(p);L--;){var k=T[L],z=_[k],X=p[k];if(X===r&&!(k in p)||!z(X))return!1}return!0}function PP(p,_,T){if(typeof p!="function")throw new Ji(o);return _d(function(){p.apply(r,T)},_)}function dd(p,_,T,L){var k=-1,z=Eg,X=!0,q=p.length,ae=[],Te=_.length;if(!q)return ae;T&&(_=Er(_,Pi(T))),L?(z=LS,X=!1):_.length>=i&&(z=od,X=!1,_=new su(_));e:for(;++kk?0:k+T),L=L===r||L>k?k:Rt(L),L<0&&(L+=k),L=T>L?0:q2(L);T0&&T(q)?_>1?Tn(q,_-1,T,L,k):Bs(k,q):L||(k[k.length]=q)}return k}var US=a2(),kP=a2(!0);function Qa(p,_){return p&&US(p,_,gn)}function YS(p,_){return p&&kP(p,_,gn)}function Jg(p,_){return Vs(_,function(T){return Xo(p[T])})}function uu(p,_){_=Ws(_,p);for(var T=0,L=_.length;p!=null&&T_}function pX(p,_){return p!=null&&pr.call(p,_)}function gX(p,_){return p!=null&&_ in Sr(p)}function mX(p,_,T){return p>=kn(_,T)&&p=120&&Ae.length>=120)?new su(X&&Ae):r}Ae=p[0];var Me=-1,$e=q[0];e:for(;++Me-1;)q!==p&&Hg.call(q,ae,1),Hg.call(p,ae,1);return p}function UP(p,_){for(var T=p?_.length:0,L=T-1;T--;){var k=_[T];if(T==L||k!==z){var z=k;Yo(k)?Hg.call(p,k,1):rb(p,k)}}return p}function QS(p,_){return p+Yg(TP()*(_-p+1))}function LX(p,_,T,L){for(var k=-1,z=sn(Ug((_-p)/(T||1)),0),X=de(z);z--;)X[L?z:++k]=p,p+=T;return X}function eb(p,_){var T="";if(!p||_<1||_>G)return T;do _%2&&(T+=p),_=Yg(_/2),_&&(p+=p);while(_);return T}function Ft(p,_){return mb(b2(p,_,yi),p+"")}function PX(p){return MP(pf(p))}function RX(p,_){var T=pf(p);return um(T,lu(_,0,T.length))}function gd(p,_,T,L){if(!Fr(p))return p;_=Ws(_,p);for(var k=-1,z=_.length,X=z-1,q=p;q!=null&&++kk?0:k+_),T=T>k?k:T,T<0&&(T+=k),k=_>T?0:T-_>>>0,_>>>=0;for(var z=de(k);++L>>1,X=p[z];X!==null&&!Ei(X)&&(T?X<=_:X<_)?L=z+1:k=z}return k}return tb(p,_,yi,T)}function tb(p,_,T,L){var k=0,z=p==null?0:p.length;if(z===0)return 0;_=T(_);for(var X=_!==_,q=_===null,ae=Ei(_),Te=_===r;k=i){var Te=_?null:YX(p);if(Te)return Og(Te);X=!1,k=od,ae=new su}else ae=_?[]:q;e:for(;++L=L?p:ta(p,_,T)}var JP=xY||function(p){return Cn.clearTimeout(p)};function QP(p,_){if(_)return p.slice();var T=p.length,L=SP?SP(T):new p.constructor(T);return p.copy(L),L}function ob(p){var _=new p.constructor(p.byteLength);return new Gg(_).set(new Gg(p)),_}function FX(p,_){var T=_?ob(p.buffer):p.buffer;return new p.constructor(T,p.byteOffset,p.byteLength)}function VX(p){var _=new p.constructor(p.source,NL.exec(p));return _.lastIndex=p.lastIndex,_}function BX(p){return fd?Sr(fd.call(p)):{}}function e2(p,_){var T=_?ob(p.buffer):p.buffer;return new p.constructor(T,p.byteOffset,p.length)}function t2(p,_){if(p!==_){var T=p!==r,L=p===null,k=p===p,z=Ei(p),X=_!==r,q=_===null,ae=_===_,Te=Ei(_);if(!q&&!Te&&!z&&p>_||z&&X&&ae&&!q&&!Te||L&&X&&ae||!T&&ae||!k)return 1;if(!L&&!z&&!Te&&p<_||Te&&T&&k&&!L&&!z||q&&T&&k||!X&&k||!ae)return-1}return 0}function zX(p,_,T){for(var L=-1,k=p.criteria,z=_.criteria,X=k.length,q=T.length;++L=q)return ae;var Te=T[L];return ae*(Te=="desc"?-1:1)}}return p.index-_.index}function r2(p,_,T,L){for(var k=-1,z=p.length,X=T.length,q=-1,ae=_.length,Te=sn(z-X,0),Ae=de(ae+Te),Me=!L;++q1?T[k-1]:r,X=k>2?T[2]:r;for(z=p.length>3&&typeof z=="function"?(k--,z):r,X&&Zn(T[0],T[1],X)&&(z=k<3?r:z,k=1),_=Sr(_);++L-1?k[z?_[X]:X]:r}}function l2(p){return Uo(function(_){var T=_.length,L=T,k=Qi.prototype.thru;for(p&&_.reverse();L--;){var z=_[L];if(typeof z!="function")throw new Ji(o);if(k&&!X&&sm(z)=="wrapper")var X=new Qi([],!0)}for(L=X?L:T;++L1&&Yt.reverse(),Ae&&ae<$t&&(Yt.length=ae),this&&this!==Cn&&this instanceof ht&&(qo=Ot||md(qo)),qo.apply(La,Yt)}return ht}function u2(p,_){return function(T,L){return yX(T,p,_(L),{})}}function im(p,_){return function(T,L){var k;if(T===r&&L===r)return _;if(T!==r&&(k=T),L!==r){if(k===r)return L;typeof T=="string"||typeof L=="string"?(T=Ri(T),L=Ri(L)):(T=ZP(T),L=ZP(L)),k=p(T,L)}return k}}function sb(p){return Uo(function(_){return _=Er(_,Pi(ut())),Ft(function(T){var L=this;return p(_,function(k){return Li(k,L,T)})})})}function am(p,_){_=_===r?" ":Ri(_);var T=_.length;if(T<2)return T?eb(_,p):_;var L=eb(_,Ug(p/af(_)));return nf(_)?Us(Da(L),0,p).join(""):L.slice(0,p)}function UX(p,_,T,L){var k=_&m,z=md(p);function X(){for(var q=-1,ae=arguments.length,Te=-1,Ae=L.length,Me=de(Ae+ae),$e=this&&this!==Cn&&this instanceof X?z:p;++Teq))return!1;var Te=z.get(p),Ae=z.get(_);if(Te&&Ae)return Te==_&&Ae==p;var Me=-1,$e=!0,et=T&g?new su:r;for(z.set(p,_),z.set(_,p);++Me1?"& ":"")+_[L],_=_.join(T>2?", ":" "),p.replace(n9,`{ +/* [wrapped with `+_+`] */ +`)}function rZ(p){return Dt(p)||hu(p)||!!(xP&&p&&p[xP])}function Yo(p,_){var T=typeof p;return _=_??G,!!_&&(T=="number"||T!="symbol"&&v9.test(p))&&p>-1&&p%1==0&&p<_}function Zn(p,_,T){if(!Fr(T))return!1;var L=typeof _;return(L=="number"?gi(T)&&Yo(_,T.length):L=="string"&&_ in T)?Ia(T[_],p):!1}function vb(p,_){if(Dt(p))return!1;var T=typeof p;return T=="number"||T=="symbol"||T=="boolean"||p==null||Ei(p)?!0:Q7.test(p)||!J7.test(p)||_!=null&&p in Sr(_)}function nZ(p){var _=typeof p;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?p!=="__proto__":p===null}function pb(p){var _=sm(p),T=B[_];if(typeof T!="function"||!(_ in Ht.prototype))return!1;if(p===T)return!0;var L=fb(T);return!!L&&p===L[0]}function iZ(p){return!!_P&&_P in p}var aZ=Fg?Xo:Rb;function yd(p){var _=p&&p.constructor,T=typeof _=="function"&&_.prototype||sf;return p===T}function _2(p){return p===p&&!Fr(p)}function S2(p,_){return function(T){return T==null?!1:T[p]===_&&(_!==r||p in Sr(T))}}function oZ(p){var _=dm(p,function(L){return T.size===u&&T.clear(),L}),T=_.cache;return _}function sZ(p,_){var T=p[1],L=_[1],k=T|L,z=k<(m|y|A),X=L==A&&T==b||L==A&&T==D&&p[7].length<=_[8]||L==(A|D)&&_[7].length<=_[8]&&T==b;if(!(z||X))return p;L&m&&(p[2]=_[2],k|=T&m?0:S);var q=_[3];if(q){var ae=p[3];p[3]=ae?r2(ae,q,_[4]):q,p[4]=ae?zs(p[3],c):_[4]}return q=_[5],q&&(ae=p[5],p[5]=ae?n2(ae,q,_[6]):q,p[6]=ae?zs(p[5],c):_[6]),q=_[7],q&&(p[7]=q),L&A&&(p[8]=p[8]==null?_[8]:kn(p[8],_[8])),p[9]==null&&(p[9]=_[9]),p[0]=_[0],p[1]=k,p}function lZ(p){var _=[];if(p!=null)for(var T in Sr(p))_.push(T);return _}function uZ(p){return Bg.call(p)}function b2(p,_,T){return _=sn(_===r?p.length-1:_,0),function(){for(var L=arguments,k=-1,z=sn(L.length-_,0),X=de(z);++k0){if(++_>=E)return arguments[0]}else _=0;return p.apply(r,arguments)}}function um(p,_){var T=-1,L=p.length,k=L-1;for(_=_===r?L:_;++T<_;){var z=QS(T,k),X=p[z];p[z]=p[T],p[T]=X}return p.length=_,p}var A2=oZ(function(p){var _=[];return p.charCodeAt(0)===46&&_.push(""),p.replace(e9,function(T,L,k,z){_.push(k?z.replace(l9,"$1"):L||T)}),_});function to(p){if(typeof p=="string"||Ei(p))return p;var _=p+"";return _=="0"&&1/p==-U?"-0":_}function fu(p){if(p!=null){try{return Vg.call(p)}catch{}try{return p+""}catch{}}return""}function fZ(p,_){return Ki(Le,function(T){var L="_."+T[0];_&T[1]&&!Eg(p,L)&&p.push(L)}),p.sort()}function D2(p){if(p instanceof Ht)return p.clone();var _=new Qi(p.__wrapped__,p.__chain__);return _.__actions__=pi(p.__actions__),_.__index__=p.__index__,_.__values__=p.__values__,_}function hZ(p,_,T){(T?Zn(p,_,T):_===r)?_=1:_=sn(Rt(_),0);var L=p==null?0:p.length;if(!L||_<1)return[];for(var k=0,z=0,X=de(Ug(L/_));k1?p[_-1]:r;return T=typeof T=="function"?(p.pop(),T):r,E2(p,T)});function k2(p){var _=B(p);return _.__chain__=!0,_}function dq(p,_){return _(p),p}function cm(p,_){return _(p)}var vq=Uo(function(p){var _=p.length,T=_?p[0]:0,L=this.__wrapped__,k=function(z){return WS(z,p)};return _>1||this.__actions__.length||!(L instanceof Ht)||!Yo(T)?this.thru(k):(L=L.slice(T,+T+(_?1:0)),L.__actions__.push({func:cm,args:[k],thisArg:r}),new Qi(L,this.__chain__).thru(function(z){return _&&!z.length&&z.push(r),z}))});function pq(){return k2(this)}function gq(){return new Qi(this.value(),this.__chain__)}function mq(){this.__values__===r&&(this.__values__=Z2(this.value()));var p=this.__index__>=this.__values__.length,_=p?r:this.__values__[this.__index__++];return{done:p,value:_}}function yq(){return this}function _q(p){for(var _,T=this;T instanceof qg;){var L=D2(T);L.__index__=0,L.__values__=r,_?k.__wrapped__=L:_=L;var k=L;T=T.__wrapped__}return k.__wrapped__=p,_}function Sq(){var p=this.__wrapped__;if(p instanceof Ht){var _=p;return this.__actions__.length&&(_=new Ht(this)),_=_.reverse(),_.__actions__.push({func:cm,args:[yb],thisArg:r}),new Qi(_,this.__chain__)}return this.thru(yb)}function bq(){return jP(this.__wrapped__,this.__actions__)}var wq=rm(function(p,_,T){pr.call(p,T)?++p[T]:Ho(p,T,1)});function xq(p,_,T){var L=Dt(p)?uP:dX;return T&&Zn(p,_,T)&&(_=r),L(p,ut(_,3))}function Cq(p,_){var T=Dt(p)?Vs:EP;return T(p,ut(_,3))}var Tq=s2(M2),Aq=s2(I2);function Dq(p,_){return Tn(fm(p,_),1)}function Mq(p,_){return Tn(fm(p,_),U)}function Iq(p,_,T){return T=T===r?1:Rt(T),Tn(fm(p,_),T)}function O2(p,_){var T=Dt(p)?Ki:$s;return T(p,ut(_,3))}function N2(p,_){var T=Dt(p)?Z9:RP;return T(p,ut(_,3))}var Lq=rm(function(p,_,T){pr.call(p,T)?p[T].push(_):Ho(p,T,[_])});function Pq(p,_,T,L){p=gi(p)?p:pf(p),T=T&&!L?Rt(T):0;var k=p.length;return T<0&&(T=sn(k+T,0)),gm(p)?T<=k&&p.indexOf(_,T)>-1:!!k&&rf(p,_,T)>-1}var Rq=Ft(function(p,_,T){var L=-1,k=typeof _=="function",z=gi(p)?de(p.length):[];return $s(p,function(X){z[++L]=k?Li(_,X,T):vd(X,_,T)}),z}),Eq=rm(function(p,_,T){Ho(p,T,_)});function fm(p,_){var T=Dt(p)?Er:BP;return T(p,ut(_,3))}function kq(p,_,T,L){return p==null?[]:(Dt(_)||(_=_==null?[]:[_]),T=L?r:T,Dt(T)||(T=T==null?[]:[T]),HP(p,_,T))}var Oq=rm(function(p,_,T){p[T?0:1].push(_)},function(){return[[],[]]});function Nq(p,_,T){var L=Dt(p)?PS:dP,k=arguments.length<3;return L(p,ut(_,4),T,k,$s)}function Fq(p,_,T){var L=Dt(p)?q9:dP,k=arguments.length<3;return L(p,ut(_,4),T,k,RP)}function Vq(p,_){var T=Dt(p)?Vs:EP;return T(p,vm(ut(_,3)))}function Bq(p){var _=Dt(p)?MP:PX;return _(p)}function zq(p,_,T){(T?Zn(p,_,T):_===r)?_=1:_=Rt(_);var L=Dt(p)?lX:RX;return L(p,_)}function Gq(p){var _=Dt(p)?uX:kX;return _(p)}function $q(p){if(p==null)return 0;if(gi(p))return gm(p)?af(p):p.length;var _=On(p);return _==W||_==le?p.size:jS(p).length}function Hq(p,_,T){var L=Dt(p)?RS:OX;return T&&Zn(p,_,T)&&(_=r),L(p,ut(_,3))}var Wq=Ft(function(p,_){if(p==null)return[];var T=_.length;return T>1&&Zn(p,_[0],_[1])?_=[]:T>2&&Zn(_[0],_[1],_[2])&&(_=[_[0]]),HP(p,Tn(_,1),[])}),hm=CY||function(){return Cn.Date.now()};function Uq(p,_){if(typeof _!="function")throw new Ji(o);return p=Rt(p),function(){if(--p<1)return _.apply(this,arguments)}}function F2(p,_,T){return _=T?r:_,_=p&&_==null?p.length:_,Wo(p,A,r,r,r,r,_)}function V2(p,_){var T;if(typeof _!="function")throw new Ji(o);return p=Rt(p),function(){return--p>0&&(T=_.apply(this,arguments)),p<=1&&(_=r),T}}var Sb=Ft(function(p,_,T){var L=m;if(T.length){var k=zs(T,df(Sb));L|=C}return Wo(p,L,_,T,k)}),B2=Ft(function(p,_,T){var L=m|y;if(T.length){var k=zs(T,df(B2));L|=C}return Wo(_,L,p,T,k)});function z2(p,_,T){_=T?r:_;var L=Wo(p,b,r,r,r,r,r,_);return L.placeholder=z2.placeholder,L}function G2(p,_,T){_=T?r:_;var L=Wo(p,w,r,r,r,r,r,_);return L.placeholder=G2.placeholder,L}function $2(p,_,T){var L,k,z,X,q,ae,Te=0,Ae=!1,Me=!1,$e=!0;if(typeof p!="function")throw new Ji(o);_=na(_)||0,Fr(T)&&(Ae=!!T.leading,Me="maxWait"in T,z=Me?sn(na(T.maxWait)||0,_):z,$e="trailing"in T?!!T.trailing:$e);function et(Zr){var La=L,qo=k;return L=k=r,Te=Zr,X=p.apply(qo,La),X}function ft(Zr){return Te=Zr,q=_d($t,_),Ae?et(Zr):X}function Ot(Zr){var La=Zr-ae,qo=Zr-Te,sR=_-La;return Me?kn(sR,z-qo):sR}function ht(Zr){var La=Zr-ae,qo=Zr-Te;return ae===r||La>=_||La<0||Me&&qo>=z}function $t(){var Zr=hm();if(ht(Zr))return Yt(Zr);q=_d($t,Ot(Zr))}function Yt(Zr){return q=r,$e&&L?et(Zr):(L=k=r,X)}function ki(){q!==r&&JP(q),Te=0,L=ae=k=q=r}function qn(){return q===r?X:Yt(hm())}function Oi(){var Zr=hm(),La=ht(Zr);if(L=arguments,k=this,ae=Zr,La){if(q===r)return ft(ae);if(Me)return JP(q),q=_d($t,_),et(ae)}return q===r&&(q=_d($t,_)),X}return Oi.cancel=ki,Oi.flush=qn,Oi}var Yq=Ft(function(p,_){return PP(p,1,_)}),Xq=Ft(function(p,_,T){return PP(p,na(_)||0,T)});function Zq(p){return Wo(p,M)}function dm(p,_){if(typeof p!="function"||_!=null&&typeof _!="function")throw new Ji(o);var T=function(){var L=arguments,k=_?_.apply(this,L):L[0],z=T.cache;if(z.has(k))return z.get(k);var X=p.apply(this,L);return T.cache=z.set(k,X)||z,X};return T.cache=new(dm.Cache||$o),T}dm.Cache=$o;function vm(p){if(typeof p!="function")throw new Ji(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 qq(p){return V2(2,p)}var jq=NX(function(p,_){_=_.length==1&&Dt(_[0])?Er(_[0],Pi(ut())):Er(Tn(_,1),Pi(ut()));var T=_.length;return Ft(function(L){for(var k=-1,z=kn(L.length,T);++k=_}),hu=NP(function(){return arguments}())?NP:function(p){return Gr(p)&&pr.call(p,"callee")&&!wP.call(p,"callee")},Dt=de.isArray,fj=nP?Pi(nP):_X;function gi(p){return p!=null&&pm(p.length)&&!Xo(p)}function Xr(p){return Gr(p)&&gi(p)}function hj(p){return p===!0||p===!1||Gr(p)&&Xn(p)==ue}var Ys=AY||Rb,dj=iP?Pi(iP):SX;function vj(p){return Gr(p)&&p.nodeType===1&&!Sd(p)}function pj(p){if(p==null)return!0;if(gi(p)&&(Dt(p)||typeof p=="string"||typeof p.splice=="function"||Ys(p)||vf(p)||hu(p)))return!p.length;var _=On(p);if(_==W||_==le)return!p.size;if(yd(p))return!jS(p).length;for(var T in p)if(pr.call(p,T))return!1;return!0}function gj(p,_){return pd(p,_)}function mj(p,_,T){T=typeof T=="function"?T:r;var L=T?T(p,_):r;return L===r?pd(p,_,r,T):!!L}function wb(p){if(!Gr(p))return!1;var _=Xn(p);return _==Ce||_==me||typeof p.message=="string"&&typeof p.name=="string"&&!Sd(p)}function yj(p){return typeof p=="number"&&CP(p)}function Xo(p){if(!Fr(p))return!1;var _=Xn(p);return _==Ee||_==H||_==oe||_==Y}function W2(p){return typeof p=="number"&&p==Rt(p)}function pm(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=G}function Fr(p){var _=typeof p;return p!=null&&(_=="object"||_=="function")}function Gr(p){return p!=null&&typeof p=="object"}var U2=aP?Pi(aP):wX;function _j(p,_){return p===_||qS(p,_,hb(_))}function Sj(p,_,T){return T=typeof T=="function"?T:r,qS(p,_,hb(_),T)}function bj(p){return Y2(p)&&p!=+p}function wj(p){if(aZ(p))throw new Ct(a);return FP(p)}function xj(p){return p===null}function Cj(p){return p==null}function Y2(p){return typeof p=="number"||Gr(p)&&Xn(p)==ne}function Sd(p){if(!Gr(p)||Xn(p)!=he)return!1;var _=$g(p);if(_===null)return!0;var T=pr.call(_,"constructor")&&_.constructor;return typeof T=="function"&&T instanceof T&&Vg.call(T)==SY}var xb=oP?Pi(oP):xX;function Tj(p){return W2(p)&&p>=-G&&p<=G}var X2=sP?Pi(sP):CX;function gm(p){return typeof p=="string"||!Dt(p)&&Gr(p)&&Xn(p)==xe}function Ei(p){return typeof p=="symbol"||Gr(p)&&Xn(p)==Pe}var vf=lP?Pi(lP):TX;function Aj(p){return p===r}function Dj(p){return Gr(p)&&On(p)==ce}function Mj(p){return Gr(p)&&Xn(p)==Ge}var Ij=om(KS),Lj=om(function(p,_){return p<=_});function Z2(p){if(!p)return[];if(gi(p))return gm(p)?Da(p):pi(p);if(sd&&p[sd])return lY(p[sd]());var _=On(p),T=_==W?VS:_==le?Og:pf;return T(p)}function Zo(p){if(!p)return p===0?p:0;if(p=na(p),p===U||p===-U){var _=p<0?-1:1;return _*Z}return p===p?p:0}function Rt(p){var _=Zo(p),T=_%1;return _===_?T?_-T:_:0}function q2(p){return p?lu(Rt(p),0,ie):0}function na(p){if(typeof p=="number")return p;if(Ei(p))return ee;if(Fr(p)){var _=typeof p.valueOf=="function"?p.valueOf():p;p=Fr(_)?_+"":_}if(typeof p!="string")return p===0?p:+p;p=vP(p);var T=f9.test(p);return T||d9.test(p)?U9(p.slice(2),T?2:8):c9.test(p)?ee:+p}function j2(p){return eo(p,mi(p))}function Pj(p){return p?lu(Rt(p),-G,G):p===0?p:0}function ur(p){return p==null?"":Ri(p)}var Rj=ff(function(p,_){if(yd(_)||gi(_)){eo(_,gn(_),p);return}for(var T in _)pr.call(_,T)&&hd(p,T,_[T])}),K2=ff(function(p,_){eo(_,mi(_),p)}),mm=ff(function(p,_,T,L){eo(_,mi(_),p,L)}),Ej=ff(function(p,_,T,L){eo(_,gn(_),p,L)}),kj=Uo(WS);function Oj(p,_){var T=cf(p);return _==null?T:IP(T,_)}var Nj=Ft(function(p,_){p=Sr(p);var T=-1,L=_.length,k=L>2?_[2]:r;for(k&&Zn(_[0],_[1],k)&&(L=1);++T1),z}),eo(p,cb(p),T),L&&(T=ea(T,f|h|d,XX));for(var k=_.length;k--;)rb(T,_[k]);return T});function eK(p,_){return Q2(p,vm(ut(_)))}var tK=Uo(function(p,_){return p==null?{}:MX(p,_)});function Q2(p,_){if(p==null)return{};var T=Er(cb(p),function(L){return[L]});return _=ut(_),WP(p,T,function(L,k){return _(L,k[0])})}function rK(p,_,T){_=Ws(_,p);var L=-1,k=_.length;for(k||(k=1,p=r);++L_){var L=p;p=_,_=L}if(T||p%1||_%1){var k=TP();return kn(p+k*(_-p+W9("1e-"+((k+"").length-1))),_)}return QS(p,_)}var dK=hf(function(p,_,T){return _=_.toLowerCase(),p+(T?rR(_):_)});function rR(p){return Ab(ur(p).toLowerCase())}function nR(p){return p=ur(p),p&&p.replace(p9,nY).replace(k9,"")}function vK(p,_,T){p=ur(p),_=Ri(_);var L=p.length;T=T===r?L:lu(Rt(T),0,L);var k=T;return T-=_.length,T>=0&&p.slice(T,k)==_}function pK(p){return p=ur(p),p&&q7.test(p)?p.replace(kL,iY):p}function gK(p){return p=ur(p),p&&t9.test(p)?p.replace(bS,"\\$&"):p}var mK=hf(function(p,_,T){return p+(T?"-":"")+_.toLowerCase()}),yK=hf(function(p,_,T){return p+(T?" ":"")+_.toLowerCase()}),_K=o2("toLowerCase");function SK(p,_,T){p=ur(p),_=Rt(_);var L=_?af(p):0;if(!_||L>=_)return p;var k=(_-L)/2;return am(Yg(k),T)+p+am(Ug(k),T)}function bK(p,_,T){p=ur(p),_=Rt(_);var L=_?af(p):0;return _&&L<_?p+am(_-L,T):p}function wK(p,_,T){p=ur(p),_=Rt(_);var L=_?af(p):0;return _&&L<_?am(_-L,T)+p:p}function xK(p,_,T){return T||_==null?_=0:_&&(_=+_),LY(ur(p).replace(wS,""),_||0)}function CK(p,_,T){return(T?Zn(p,_,T):_===r)?_=1:_=Rt(_),eb(ur(p),_)}function TK(){var p=arguments,_=ur(p[0]);return p.length<3?_:_.replace(p[1],p[2])}var AK=hf(function(p,_,T){return p+(T?"_":"")+_.toLowerCase()});function DK(p,_,T){return T&&typeof T!="number"&&Zn(p,_,T)&&(_=T=r),T=T===r?ie:T>>>0,T?(p=ur(p),p&&(typeof _=="string"||_!=null&&!xb(_))&&(_=Ri(_),!_&&nf(p))?Us(Da(p),0,T):p.split(_,T)):[]}var MK=hf(function(p,_,T){return p+(T?" ":"")+Ab(_)});function IK(p,_,T){return p=ur(p),T=T==null?0:lu(Rt(T),0,p.length),_=Ri(_),p.slice(T,T+_.length)==_}function LK(p,_,T){var L=B.templateSettings;T&&Zn(p,_,T)&&(_=r),p=ur(p),_=mm({},_,L,d2);var k=mm({},_.imports,L.imports,d2),z=gn(k),X=FS(k,z),q,ae,Te=0,Ae=_.interpolate||Lg,Me="__p += '",$e=BS((_.escape||Lg).source+"|"+Ae.source+"|"+(Ae===OL?u9:Lg).source+"|"+(_.evaluate||Lg).source+"|$","g"),et="//# sourceURL="+(pr.call(_,"sourceURL")?(_.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++B9+"]")+` +`;p.replace($e,function(ht,$t,Yt,ki,qn,Oi){return Yt||(Yt=ki),Me+=p.slice(Te,Oi).replace(g9,aY),$t&&(q=!0,Me+=`' + +__e(`+$t+`) + +'`),qn&&(ae=!0,Me+=`'; +`+qn+`; +__p += '`),Yt&&(Me+=`' + +((__t = (`+Yt+`)) == null ? '' : __t) + +'`),Te=Oi+ht.length,ht}),Me+=`'; +`;var ft=pr.call(_,"variable")&&_.variable;if(!ft)Me=`with (obj) { +`+Me+` +} +`;else if(s9.test(ft))throw new Ct(s);Me=(ae?Me.replace(Ig,""):Me).replace(Y7,"$1").replace(X7,"$1;"),Me="function("+(ft||"obj")+`) { +`+(ft?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(q?", __e = _.escape":"")+(ae?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Me+`return __p +}`;var Ot=aR(function(){return ir(z,et+"return "+Me).apply(r,X)});if(Ot.source=Me,wb(Ot))throw Ot;return Ot}function PK(p){return ur(p).toLowerCase()}function RK(p){return ur(p).toUpperCase()}function EK(p,_,T){if(p=ur(p),p&&(T||_===r))return vP(p);if(!p||!(_=Ri(_)))return p;var L=Da(p),k=Da(_),z=pP(L,k),X=gP(L,k)+1;return Us(L,z,X).join("")}function kK(p,_,T){if(p=ur(p),p&&(T||_===r))return p.slice(0,yP(p)+1);if(!p||!(_=Ri(_)))return p;var L=Da(p),k=gP(L,Da(_))+1;return Us(L,0,k).join("")}function OK(p,_,T){if(p=ur(p),p&&(T||_===r))return p.replace(wS,"");if(!p||!(_=Ri(_)))return p;var L=Da(p),k=pP(L,Da(_));return Us(L,k).join("")}function NK(p,_){var T=I,L=P;if(Fr(_)){var k="separator"in _?_.separator:k;T="length"in _?Rt(_.length):T,L="omission"in _?Ri(_.omission):L}p=ur(p);var z=p.length;if(nf(p)){var X=Da(p);z=X.length}if(T>=z)return p;var q=T-af(L);if(q<1)return L;var ae=X?Us(X,0,q).join(""):p.slice(0,q);if(k===r)return ae+L;if(X&&(q+=ae.length-q),xb(k)){if(p.slice(q).search(k)){var Te,Ae=ae;for(k.global||(k=BS(k.source,ur(NL.exec(k))+"g")),k.lastIndex=0;Te=k.exec(Ae);)var Me=Te.index;ae=ae.slice(0,Me===r?q:Me)}}else if(p.indexOf(Ri(k),q)!=q){var $e=ae.lastIndexOf(k);$e>-1&&(ae=ae.slice(0,$e))}return ae+L}function FK(p){return p=ur(p),p&&Z7.test(p)?p.replace(EL,hY):p}var VK=hf(function(p,_,T){return p+(T?" ":"")+_.toUpperCase()}),Ab=o2("toUpperCase");function iR(p,_,T){return p=ur(p),_=T?r:_,_===r?sY(p)?pY(p):J9(p):p.match(_)||[]}var aR=Ft(function(p,_){try{return Li(p,r,_)}catch(T){return wb(T)?T:new Ct(T)}}),BK=Uo(function(p,_){return Ki(_,function(T){T=to(T),Ho(p,T,Sb(p[T],p))}),p});function zK(p){var _=p==null?0:p.length,T=ut();return p=_?Er(p,function(L){if(typeof L[1]!="function")throw new Ji(o);return[T(L[0]),L[1]]}):[],Ft(function(L){for(var k=-1;++k<_;){var z=p[k];if(Li(z[0],this,L))return Li(z[1],this,L)}})}function GK(p){return hX(ea(p,f))}function Db(p){return function(){return p}}function $K(p,_){return p==null||p!==p?_:p}var HK=l2(),WK=l2(!0);function yi(p){return p}function Mb(p){return VP(typeof p=="function"?p:ea(p,f))}function UK(p){return zP(ea(p,f))}function YK(p,_){return GP(p,ea(_,f))}var XK=Ft(function(p,_){return function(T){return vd(T,p,_)}}),ZK=Ft(function(p,_){return function(T){return vd(p,T,_)}});function Ib(p,_,T){var L=gn(_),k=Jg(_,L);T==null&&!(Fr(_)&&(k.length||!L.length))&&(T=_,_=p,p=this,k=Jg(_,gn(_)));var z=!(Fr(T)&&"chain"in T)||!!T.chain,X=Xo(p);return Ki(k,function(q){var ae=_[q];p[q]=ae,X&&(p.prototype[q]=function(){var Te=this.__chain__;if(z||Te){var Ae=p(this.__wrapped__),Me=Ae.__actions__=pi(this.__actions__);return Me.push({func:ae,args:arguments,thisArg:p}),Ae.__chain__=Te,Ae}return ae.apply(p,Bs([this.value()],arguments))})}),p}function qK(){return Cn._===this&&(Cn._=bY),this}function Lb(){}function jK(p){return p=Rt(p),Ft(function(_){return $P(_,p)})}var KK=sb(Er),JK=sb(uP),QK=sb(RS);function oR(p){return vb(p)?ES(to(p)):IX(p)}function eJ(p){return function(_){return p==null?r:uu(p,_)}}var tJ=c2(),rJ=c2(!0);function Pb(){return[]}function Rb(){return!1}function nJ(){return{}}function iJ(){return""}function aJ(){return!0}function oJ(p,_){if(p=Rt(p),p<1||p>G)return[];var T=ie,L=kn(p,ie);_=ut(_),p-=ie;for(var k=NS(L,_);++T0||_<0)?new Ht(T):(p<0?T=T.takeRight(-p):p&&(T=T.drop(p)),_!==r&&(_=Rt(_),T=_<0?T.dropRight(-_):T.take(_-p)),T)},Ht.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},Ht.prototype.toArray=function(){return this.take(ie)},Qa(Ht.prototype,function(p,_){var T=/^(?:filter|find|map|reject)|While$/.test(_),L=/^(?:head|last)$/.test(_),k=B[L?"take"+(_=="last"?"Right":""):_],z=L||/^find/.test(_);k&&(B.prototype[_]=function(){var X=this.__wrapped__,q=L?[1]:arguments,ae=X instanceof Ht,Te=q[0],Ae=ae||Dt(X),Me=function($t){var Yt=k.apply(B,Bs([$t],q));return L&&$e?Yt[0]:Yt};Ae&&T&&typeof Te=="function"&&Te.length!=1&&(ae=Ae=!1);var $e=this.__chain__,et=!!this.__actions__.length,ft=z&&!$e,Ot=ae&&!et;if(!z&&Ae){X=Ot?X:new Ht(this);var ht=p.apply(X,q);return ht.__actions__.push({func:cm,args:[Me],thisArg:r}),new Qi(ht,$e)}return ft&&Ot?p.apply(this,q):(ht=this.thru(Me),ft?L?ht.value()[0]:ht.value():ht)})}),Ki(["pop","push","shift","sort","splice","unshift"],function(p){var _=Ng[p],T=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",L=/^(?:pop|shift)$/.test(p);B.prototype[p]=function(){var k=arguments;if(L&&!this.__chain__){var z=this.value();return _.apply(Dt(z)?z:[],k)}return this[T](function(X){return _.apply(Dt(X)?X:[],k)})}}),Qa(Ht.prototype,function(p,_){var T=B[_];if(T){var L=T.name+"";pr.call(uf,L)||(uf[L]=[]),uf[L].push({name:_,func:T})}}),uf[nm(r,y).name]=[{name:"wrapper",func:r}],Ht.prototype.clone=FY,Ht.prototype.reverse=VY,Ht.prototype.value=BY,B.prototype.at=vq,B.prototype.chain=pq,B.prototype.commit=gq,B.prototype.next=mq,B.prototype.plant=_q,B.prototype.reverse=Sq,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=bq,B.prototype.first=B.prototype.head,sd&&(B.prototype[sd]=yq),B},of=gY();iu?((iu.exports=of)._=of,MS._=of):Cn._=of}).call(Dte)}(av,av.exports)),av.exports}var Ec=Mte();const Ite=TD(Ec),An=[];for(let e=0;e<256;++e)An.push((e+256).toString(16).slice(1));function Lte(e,t=0){return(An[e[t+0]]+An[e[t+1]]+An[e[t+2]]+An[e[t+3]]+"-"+An[e[t+4]]+An[e[t+5]]+"-"+An[e[t+6]]+An[e[t+7]]+"-"+An[e[t+8]]+An[e[t+9]]+"-"+An[e[t+10]]+An[e[t+11]]+An[e[t+12]]+An[e[t+13]]+An[e[t+14]]+An[e[t+15]]).toLowerCase()}let Ub;const Pte=new Uint8Array(16);function Rte(){if(!Ub){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ub=crypto.getRandomValues.bind(crypto)}return Ub(Pte)}const Ete=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),YR={randomUUID:Ete};function kte(e,t,r){if(YR.randomUUID&&!t&&!e)return YR.randomUUID();e=e||{};const n=e.random||(e.rng||Rte)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Lte(n)}const gp=Yr("setup/api-list",[]),cs=Yr("setup/active-uuid",""),_l=at(()=>gp.value.find(e=>e.uuid===cs.value)),Ote=e=>{const t=gp.value.find(n=>Ec.isEqual(Ec.omit(n,"uuid"),e));if(t){cs.value=t.uuid;return}const r=kte();gp.value.push({...e,uuid:r}),cs.value=r};function Jz(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nte}=Object.prototype,{getPrototypeOf:XD}=Object,_1=(e=>t=>{const r=Nte.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ja=e=>(e=e.toLowerCase(),t=>_1(t)===e),S1=e=>t=>typeof t===e,{isArray:zh}=Array,mp=S1("undefined");function Fte(e){return e!==null&&!mp(e)&&e.constructor!==null&&!mp(e.constructor)&&Ui(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qz=ja("ArrayBuffer");function Vte(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qz(e.buffer),t}const Bte=S1("string"),Ui=S1("function"),eG=S1("number"),b1=e=>e!==null&&typeof e=="object",zte=e=>e===!0||e===!1,qy=e=>{if(_1(e)!=="object")return!1;const t=XD(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Gte=ja("Date"),$te=ja("File"),Hte=ja("Blob"),Wte=ja("FileList"),Ute=e=>b1(e)&&Ui(e.pipe),Yte=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ui(e.append)&&((t=_1(e))==="formdata"||t==="object"&&Ui(e.toString)&&e.toString()==="[object FormData]"))},Xte=ja("URLSearchParams"),[Zte,qte,jte,Kte]=["ReadableStream","Request","Response","Headers"].map(ja),Jte=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rg(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),zh(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const rc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rG=e=>!mp(e)&&e!==rc;function tT(){const{caseless:e}=rG(this)&&this||{},t={},r=(n,i)=>{const a=e&&tG(t,i)||i;qy(t[a])&&qy(n)?t[a]=tT(t[a],n):qy(n)?t[a]=tT({},n):zh(n)?t[a]=n.slice():t[a]=n};for(let n=0,i=arguments.length;n(rg(t,(i,a)=>{r&&Ui(i)?e[a]=Jz(i,r):e[a]=i},{allOwnKeys:n}),e),ere=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tre=(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)},rre=(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&&XD(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},nre=(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},ire=e=>{if(!e)return null;if(zh(e))return e;let t=e.length;if(!eG(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},are=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&XD(Uint8Array)),ore=(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])}},sre=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},lre=ja("HTMLFormElement"),ure=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),XR=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),cre=ja("RegExp"),nG=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};rg(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},fre=e=>{nG(e,(t,r)=>{if(Ui(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ui(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+"'")})}})},hre=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return zh(e)?n(e):n(String(e).split(t)),r},dre=()=>{},vre=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Yb="abcdefghijklmnopqrstuvwxyz",ZR="0123456789",iG={DIGIT:ZR,ALPHA:Yb,ALPHA_DIGIT:Yb+Yb.toUpperCase()+ZR},pre=(e=16,t=iG.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function gre(e){return!!(e&&Ui(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const mre=e=>{const t=new Array(10),r=(n,i)=>{if(b1(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const a=zh(n)?[]:{};return rg(n,(o,s)=>{const l=r(o,i+1);!mp(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},yre=ja("AsyncFunction"),_re=e=>e&&(b1(e)||Ui(e))&&Ui(e.then)&&Ui(e.catch),aG=((e,t)=>e?setImmediate:t?((r,n)=>(rc.addEventListener("message",({source:i,data:a})=>{i===rc&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),rc.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ui(rc.postMessage)),Sre=typeof queueMicrotask<"u"?queueMicrotask.bind(rc):typeof process<"u"&&process.nextTick||aG,ye={isArray:zh,isArrayBuffer:Qz,isBuffer:Fte,isFormData:Yte,isArrayBufferView:Vte,isString:Bte,isNumber:eG,isBoolean:zte,isObject:b1,isPlainObject:qy,isReadableStream:Zte,isRequest:qte,isResponse:jte,isHeaders:Kte,isUndefined:mp,isDate:Gte,isFile:$te,isBlob:Hte,isRegExp:cre,isFunction:Ui,isStream:Ute,isURLSearchParams:Xte,isTypedArray:are,isFileList:Wte,forEach:rg,merge:tT,extend:Qte,trim:Jte,stripBOM:ere,inherits:tre,toFlatObject:rre,kindOf:_1,kindOfTest:ja,endsWith:nre,toArray:ire,forEachEntry:ore,matchAll:sre,isHTMLForm:lre,hasOwnProperty:XR,hasOwnProp:XR,reduceDescriptors:nG,freezeMethods:fre,toObjectSet:hre,toCamelCase:ure,noop:dre,toFiniteNumber:vre,findKey:tG,global:rc,isContextDefined:rG,ALPHABET:iG,generateString:pre,isSpecCompliantForm:gre,toJSONObject:mre,isAsyncFn:yre,isThenable:_re,setImmediate:aG,asap:Sre};function Mt(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(Mt,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 oG=Mt.prototype,sG={};["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=>{sG[e]={value:e}});Object.defineProperties(Mt,sG);Object.defineProperty(oG,"isAxiosError",{value:!0});Mt.from=(e,t,r,n,i,a)=>{const o=Object.create(oG);return ye.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Mt.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const bre=null;function rT(e){return ye.isPlainObject(e)||ye.isArray(e)}function lG(e){return ye.endsWith(e,"[]")?e.slice(0,-2):e}function qR(e,t,r){return e?e.concat(t).map(function(i,a){return i=lG(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function wre(e){return ye.isArray(e)&&!e.some(rT)}const xre=ye.toFlatObject(ye,{},null,function(t){return/^is[A-Z]/.test(t)});function w1(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(v){if(v===null)return"";if(ye.isDate(v))return v.toISOString();if(!l&&ye.isBlob(v))throw new Mt("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(v)||ye.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,g,m){let y=v;if(v&&!m&&typeof v=="object"){if(ye.endsWith(g,"{}"))g=n?g:g.slice(0,-2),v=JSON.stringify(v);else if(ye.isArray(v)&&wre(v)||(ye.isFileList(v)||ye.endsWith(g,"[]"))&&(y=ye.toArray(v)))return g=lG(g),y.forEach(function(b,w){!(ye.isUndefined(b)||b===null)&&t.append(o===!0?qR([g],w,a):o===null?g:g+"[]",u(b))}),!1}return rT(v)?!0:(t.append(qR(m,g,a),u(v)),!1)}const f=[],h=Object.assign(xre,{defaultVisitor:c,convertValue:u,isVisitable:rT});function d(v,g){if(!ye.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(v),ye.forEach(v,function(y,S){(!(ye.isUndefined(y)||y===null)&&i.call(t,y,ye.isString(S)?S.trim():S,g,h))===!0&&d(y,g?g.concat(S):[S])}),f.pop()}}if(!ye.isObject(e))throw new TypeError("data must be an object");return d(e),t}function jR(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ZD(e,t){this._pairs=[],e&&w1(e,this,t)}const uG=ZD.prototype;uG.append=function(t,r){this._pairs.push([t,r])};uG.toString=function(t){const r=t?function(n){return t.call(this,n,jR)}:jR;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Cre(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cG(e,t,r){if(!t)return e;const n=r&&r.encode||Cre;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 ZD(t,r).toString(n),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class KR{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 fG={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tre=typeof URLSearchParams<"u"?URLSearchParams:ZD,Are=typeof FormData<"u"?FormData:null,Dre=typeof Blob<"u"?Blob:null,Mre={isBrowser:!0,classes:{URLSearchParams:Tre,FormData:Are,Blob:Dre},protocols:["http","https","file","blob","url","data"]},qD=typeof window<"u"&&typeof document<"u",nT=typeof navigator=="object"&&navigator||void 0,Ire=qD&&(!nT||["ReactNative","NativeScript","NS"].indexOf(nT.product)<0),Lre=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Pre=qD&&window.location.href||"http://localhost",Rre=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qD,hasStandardBrowserEnv:Ire,hasStandardBrowserWebWorkerEnv:Lre,navigator:nT,origin:Pre},Symbol.toStringTag,{value:"Module"})),Wn={...Rre,...Mre};function Ere(e,t){return w1(e,new Wn.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return Wn.isNode&&ye.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function kre(e){return ye.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ore(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]=Ore(i[o])),!s)}if(ye.isFormData(e)&&ye.isFunction(e.entries)){const r={};return ye.forEachEntry(e,(n,i)=>{t(kre(n),i,r,0)}),r}return null}function Nre(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 ng={transitional:fG,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(hG(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 Ere(t,this.formSerializer).toString();if((s=ye.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return w1(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),Nre(t)):t}],transformResponse:[function(t){const r=this.transitional||ng.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"?Mt.from(s,Mt.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:Wn.classes.FormData,Blob:Wn.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=>{ng.headers[e]={}});const Fre=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"]),Vre=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]&&Fre[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},JR=Symbol("internals");function xd(e){return e&&String(e).trim().toLowerCase()}function jy(e){return e===!1||e==null?e:ye.isArray(e)?e.map(jy):String(e)}function Bre(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 zre=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xb(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 Gre(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function $re(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 Di{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const c=xd(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]=jy(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())&&!zre(t))o(Vre(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=xd(t),t){const n=ye.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Bre(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=xd(t),t){const n=ye.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Xb(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=xd(o),o){const s=ye.findKey(n,o);s&&(!r||Xb(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||Xb(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]=jy(i),delete r[a];return}const s=t?Gre(a):String(a).trim();s!==a&&delete r[a],r[s]=jy(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[JR]=this[JR]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=xd(o);n[s]||($re(i,o),n[s]=!0)}return ye.isArray(t)?t.forEach(a):a(t),this}}Di.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ye.reduceDescriptors(Di.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});ye.freezeMethods(Di);function Zb(e,t){const r=this||ng,n=t||r,i=Di.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 dG(e){return!!(e&&e.__CANCEL__)}function Gh(e,t,r){Mt.call(this,e??"canceled",Mt.ERR_CANCELED,t,r),this.name="CanceledError"}ye.inherits(Gh,Mt,{__CANCEL__:!0});function vG(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Mt("Request failed with status code "+r.status,[Mt.ERR_BAD_REQUEST,Mt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Hre(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Wre(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 Y0=(e,t,r=3)=>{let n=0;const i=Wre(50,250);return Ure(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)},QR=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eE=e=>(...t)=>ye.asap(()=>e(...t)),Yre=Wn.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Wn.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Wn.origin),Wn.navigator&&/(msie|trident)/i.test(Wn.navigator.userAgent)):()=>!0,Xre=Wn.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 Zre(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function qre(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pG(e,t){return e&&!Zre(t)?qre(e,t):t}const tE=e=>e instanceof Di?{...e}:e;function kc(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(tE(u),tE(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 gG=e=>{const t=kc({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=Di.from(o),t.url=cG(pG(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(Wn.hasStandardBrowserEnv||Wn.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(Wn.hasStandardBrowserEnv&&(n&&ye.isFunction(n)&&(n=n(t)),n||n!==!1&&Yre(t.url))){const u=i&&a&&Xre.read(a);u&&o.set(i,u)}return t},jre=typeof XMLHttpRequest<"u",Kre=jre&&function(e){return new Promise(function(r,n){const i=gG(e);let a=i.data;const o=Di.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,h,d,v;function g(){d&&d(),v&&v(),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 b=Di.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:e,request:m};vG(function(A){r(A),g()},function(A){n(A),g()},C),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 Mt("Request aborted",Mt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Mt("Network Error",Mt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let w=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||fG;i.timeoutErrorMessage&&(w=i.timeoutErrorMessage),n(new Mt(w,C.clarifyTimeoutError?Mt.ETIMEDOUT:Mt.ECONNABORTED,e,m)),m=null},a===void 0&&o.setContentType(null),"setRequestHeader"in m&&ye.forEach(o.toJSON(),function(w,C){m.setRequestHeader(C,w)}),ye.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),s&&s!=="json"&&(m.responseType=i.responseType),u&&([h,v]=Y0(u,!0),m.addEventListener("progress",h)),l&&m.upload&&([f,d]=Y0(l),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",d)),(i.cancelToken||i.signal)&&(c=b=>{m&&(n(!b||b.type?new Gh(null,e,m):b),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const S=Hre(i.url);if(S&&Wn.protocols.indexOf(S)===-1){n(new Mt("Unsupported protocol "+S+":",Mt.ERR_BAD_REQUEST,e));return}m.send(a||null)})},Jre=(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 Mt?c:new Gh(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,a(new Mt(`timeout ${t} of ms exceeded`,Mt.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}},Qre=function*(e,t){let r=e.byteLength;if(r{const i=ene(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})},x1=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",mG=x1&&typeof ReadableStream=="function",rne=x1&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),yG=(e,...t)=>{try{return!!e(...t)}catch{return!1}},nne=mG&&yG(()=>{let e=!1;const t=new Request(Wn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),nE=64*1024,iT=mG&&yG(()=>ye.isReadableStream(new Response("").body)),X0={stream:iT&&(e=>e.body)};x1&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!X0[t]&&(X0[t]=ye.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Mt(`Response type '${t}' is not supported`,Mt.ERR_NOT_SUPPORT,n)})})})(new Response);const ine=async e=>{if(e==null)return 0;if(ye.isBlob(e))return e.size;if(ye.isSpecCompliantForm(e))return(await new Request(Wn.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 rne(e)).byteLength},ane=async(e,t)=>{const r=ye.toFiniteNumber(e.getContentLength());return r??ine(t)},one=x1&&(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}=gG(e);u=u?(u+"").toLowerCase():"text";let d=Jre([i,a&&a.toAbortSignal()],o),v;const g=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let m;try{if(l&&nne&&r!=="get"&&r!=="head"&&(m=await ane(c,n))!==0){let C=new Request(t,{method:"POST",body:n,duplex:"half"}),x;if(ye.isFormData(n)&&(x=C.headers.get("content-type"))&&c.setContentType(x),C.body){const[A,D]=QR(m,Y0(eE(l)));n=rE(C.body,nE,A,D)}}ye.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...h,signal:d,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:y?f:void 0});let S=await fetch(v);const b=iT&&(u==="stream"||u==="response");if(iT&&(s||b&&g)){const C={};["status","statusText","headers"].forEach(M=>{C[M]=S[M]});const x=ye.toFiniteNumber(S.headers.get("content-length")),[A,D]=s&&QR(x,Y0(eE(s),!0))||[];S=new Response(rE(S.body,nE,A,()=>{D&&D(),g&&g()}),C)}u=u||"text";let w=await X0[ye.findKey(X0,u)||"text"](S,e);return!b&&g&&g(),await new Promise((C,x)=>{vG(C,x,{data:w,headers:Di.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:v})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Mt("Network Error",Mt.ERR_NETWORK,e,v),{cause:y.cause||y}):Mt.from(y,y&&y.code,e,v)}}),aT={http:bre,xhr:Kre,fetch:one};ye.forEach(aT,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const iE=e=>`- ${e}`,sne=e=>ye.isFunction(e)||e===null||e===!1,_G={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(iE).join(` +`):" "+iE(a[0]):"as no adapter specified";throw new Mt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:aT};function qb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gh(null,e)}function aE(e){return qb(e),e.headers=Di.from(e.headers),e.data=Zb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_G.getAdapter(e.adapter||ng.adapter)(e).then(function(n){return qb(e),n.data=Zb.call(e,e.transformResponse,n),n.headers=Di.from(n.headers),n},function(n){return dG(n)||(qb(e),n&&n.response&&(n.response.data=Zb.call(e,e.transformResponse,n.response),n.response.headers=Di.from(n.response.headers))),Promise.reject(n)})}const SG="1.7.8",C1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{C1[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const oE={};C1.transitional=function(t,r,n){function i(a,o){return"[Axios v"+SG+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new Mt(i(o," has been removed"+(r?" in "+r:"")),Mt.ERR_DEPRECATED);return r&&!oE[o]&&(oE[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}};C1.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function lne(e,t,r){if(typeof e!="object")throw new Mt("options must be an object",Mt.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 Mt("option "+a+" must be "+l,Mt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Mt("Unknown option "+a,Mt.ERR_BAD_OPTION)}}const Ky={assertOptions:lne,validators:C1},no=Ky.validators;class mc{constructor(t){this.defaults=t,this.interceptors={request:new KR,response:new KR}}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=kc(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&Ky.assertOptions(n,{silentJSONParsing:no.transitional(no.boolean),forcedJSONParsing:no.transitional(no.boolean),clarifyTimeoutError:no.transitional(no.boolean)},!1),i!=null&&(ye.isFunction(i)?r.paramsSerializer={serialize:i}:Ky.assertOptions(i,{encode:no.function,serialize:no.function},!0)),Ky.assertOptions(r,{baseUrl:no.spelling("baseURL"),withXsrfToken:no.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"],v=>{delete a[v]}),r.headers=Di.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 v=[aE.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),h=v.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 Gh(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 jD(function(i){t=i}),cancel:t}}}function une(e){return function(r){return e.apply(null,r)}}function cne(e){return ye.isObject(e)&&e.isAxiosError===!0}const oT={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(oT).forEach(([e,t])=>{oT[t]=e});function bG(e){const t=new mc(e),r=Jz(mc.prototype.request,t);return ye.extend(r,mc.prototype,t,{allOwnKeys:!0}),ye.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return bG(kc(e,i))},r}const Gt=bG(ng);Gt.Axios=mc;Gt.CanceledError=Gh;Gt.CancelToken=jD;Gt.isCancel=dG;Gt.VERSION=SG;Gt.toFormData=w1;Gt.AxiosError=Mt;Gt.Cancel=Gt.CanceledError;Gt.all=function(t){return Promise.all(t)};Gt.spread=une;Gt.isAxiosError=cne;Gt.mergeConfig=kc;Gt.AxiosHeaders=Di;Gt.formToJSON=e=>hG(ye.isHTMLForm(e)?new FormData(e):e);Gt.getAdapter=_G.getAdapter;Gt.HttpStatusCode=oT;Gt.default=Gt;Gt.interceptors.request.use(e=>{var t,r,n,i;return e.baseURL=((t=_l.value)==null?void 0:t.protocol)+"://"+((r=_l.value)==null?void 0:r.host)+":"+((n=_l.value)==null?void 0:n.port),e.headers.Authorization="Bearer "+((i=_l.value)==null?void 0:i.password),e});const KD=Ze(),fne=()=>Gt.get("/version"),sE=at(()=>{var e;return(e=KD.value)==null?void 0:e.includes("sing-box")}),hne=Ze("1.7.2");vr(_l,async e=>{if(e){const{data:t}=await fne();KD.value=t.version}},{immediate:!0});const dne=()=>Gt.get("/proxies"),vne=(e,t)=>Gt.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),pne=(e,t,r)=>Gt.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),gne=(e,t,r)=>Gt.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),mne=()=>Gt.get("/providers/proxies"),wG=e=>Gt.put(`/providers/proxies/${encodeURIComponent(e)}`),yne=e=>Gt.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),_ne=()=>Gt.get("/rules"),Sne=()=>Gt.get("/providers/rules"),xG=e=>Gt.put(`/providers/rules/${encodeURIComponent(e)}`),T1=e=>Gt.delete(`/connections/${e}`),bne=()=>Gt.get("/configs"),wne=e=>Gt.patch("/configs",e),lE=()=>Gt.post("/cache/fakeip/flush"),xne=()=>Gt.put("/configs?reload=true",{path:"",payload:""}),Cne=()=>Gt.post("/upgrade/ui"),Tne=()=>Gt.post("/upgrade"),A1=(e,t)=>{const r=_l.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)}),Tte(n,{autoClose:!1,autoReconnect:!0})},Ane=()=>A1("connections"),Dne=(e={})=>A1("logs",e),Mne=()=>A1("memory"),Ine=()=>A1("traffic");var zn=(e=>(e[e.MEDIUM=300]="MEDIUM",e[e.HIGH=800]="HIGH",e[e.NOT_CONNECTED=0]="NOT_CONNECTED",e))(zn||{}),Lo=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e))(Lo||{}),tr=(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))(tr||{}),gl=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(gl||{}),_h=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(_h||{}),Gl=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(Gl||{}),wi=(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))(wi||{}),nc=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(nc||{}),ic=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(ic||{}),br=(e=>(e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e))(br||{});const Jy=Yr("config/theme","default"),fs=Yr("config/language",Lo.EN_US),yc=Yr("config/is-sidebar-collapsed",window.screen.width>720),Qy=Yr("config/show-global-proxy",!0),Z0=Yr("config/collapse-group-map",{}),sh=Yr("config/two-columns",!0),Rv=Yr("config/speedtest-url","http://www.gstatic.com/generate_204"),Ev=Yr("config/speedtest-timeout",5e3),e0=Yr("config/proxy-sort-type",gl.DEFAULT),_c=Ze(Gl.PROXIES),t0=Yr("config/automatic-disconnection",!0),r0=Yr("config/two-columns-for-proxy-group-in-mobile",!1),ac=Yr("config/use-connecticon-card",!1),ju=Yr("config/connection-table-columns",[tr.Close,tr.Host,tr.Type,tr.Rule,tr.Chains,tr.Download,tr.Upload,tr.DlSpeed,tr.UlSpeed,tr.ConnectTime]),n0=Yr("config/compact-connection-card",!0);Yr("config/host-label-map",{});const kv=Ze(_h.RULES),ov=Ze(),CG=async()=>{ov.value=(await bne()).data},Lne=async e=>{await wne(e),CG()},_o=Ze([]),i0=Ze([]),q0=Ze(0),j0=Ze(0);let Cm;const Pne=()=>{Cm==null||Cm(),_o.value=[],i0.value=[],q0.value=0,j0.value=0;const e=Ane(),t=vr(e.data,r=>{var i;if(!r)return;const n=JSON.parse(r);q0.value=n.downloadTotal,j0.value=n.uploadTotal,!s0.value&&(i0.value=[...i0.value,...Ec.differenceWith(_o.value,n.connections,(a,o)=>a.id===o.id)],_o.value=((i=n.connections)==null?void 0:i.map(a=>{const o=_o.value.find(s=>s.id===a.id);return o?{...a,downloadSpeed:a.download-o.download,uploadSpeed:a.upload-o.upload}:{...a,downloadSpeed:0,uploadSpeed:0}}))??[])});Cm=()=>{t(),e.close()}},Ov=Yr("config/quick-filter-regex","dns|direct"),a0=Yr("config/quick-filter-enabled",!1),sv=Ze(nc.ACTIVE),uE={[wi.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[wi.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[wi.CHAINS]:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),[wi.DOWNLOAD]:(e,t)=>t.download-e.download,[wi.DOWNLOAD_SPEED]:(e,t)=>t.downloadSpeed-e.downloadSpeed,[wi.UPLOAD]:(e,t)=>t.upload-e.upload,[wi.UPLOAD_SPEED]:(e,t)=>t.uploadSpeed-e.uploadSpeed,[wi.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[wi.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[wi.CONNECT_TIME]:(e,t)=>Fl(t.start).valueOf()-Fl(e.start).valueOf()},o0=Yr("config/connection-sort-type",wi.HOST),Nv=Ze(""),s0=Ze(!1),K0=at(()=>(sv.value===nc.ACTIVE?_o.value:i0.value).filter(e=>{if(a0.value&&Ov.value){const t=new RegExp(Ov.value);if(t.test(e.chains.join(""))||t.test(e.metadata.host)||t.test(e.metadata.destinationIP))return!1}return cl.value&&e.metadata.sourceIP!==cl.value?!1:Nv.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(Nv.value)):!0}).sort((e,t)=>{const r=ac.value?uE[o0.value](e,t):uE[wi.HOST](e,t);return r===0?e.id.localeCompare(t.id):r})),cl=Ze(""),cE=at(()=>Ite.uniq(_o.value.map(e=>e.metadata.sourceIP)).sort());function TG(e,t){return se(),Se("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"},[Q("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 Rne(e,t){return se(),Se("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"},[Q("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function Ene(e,t){return se(),Se("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"},[Q("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 AG(e,t){return se(),Se("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"},[Q("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 kne(e,t){return se(),Se("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"},[Q("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 DG(e,t){return se(),Se("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"},[Q("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 fE(e,t){return se(),Se("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"},[Q("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function JD(e,t){return se(),Se("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"},[Q("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 One(e,t){return se(),Se("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"},[Q("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function MG(e,t){return se(),Se("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"},[Q("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 IG(e,t){return se(),Se("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"},[Q("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"}),Q("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Nne(e,t){return se(),Se("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"},[Q("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 LG(e,t){return se(),Se("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"},[Q("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 PG(e,t){return se(),Se("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"},[Q("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 RG(e,t){return se(),Se("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"},[Q("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 hE(e,t){return se(),Se("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"},[Q("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 dE(e,t){return se(),Se("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"},[Q("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 EG(e,t){return se(),Se("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"},[Q("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function kG(e,t){return se(),Se("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"},[Q("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 Fne(e,t){return se(),Se("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"},[Q("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function OG(e,t){return se(),Se("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"},[Q("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 QD(e,t){return se(),Se("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"},[Q("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const eM="-",Vne=e=>{const t=zne(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(eM);return s[0]===""&&s.length!==1&&s.shift(),NG(s,t)||Bne(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},NG=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?NG(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(eM);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},vE=/^\[(.+)\]$/,Bne=e=>{if(vE.test(e)){const t=vE.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},zne=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return $ne(Object.entries(e.classGroups),r).forEach(([a,o])=>{sT(o,n,a,t)}),n},sT=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:pE(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(Gne(i)){sT(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{sT(o,pE(t,a),r,n)})})},pE=(e,t)=>{let r=e;return t.split(eM).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Gne=e=>e.isThemeGetter,$ne=(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,Hne=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)}}},FG="!",Wne=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:d,baseClassName:v,maybePostfixModifierPosition:g}};return r?s=>r({className:s,parseClassName:o}):o},Une=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},Yne=e=>({cache:Hne(e.cacheSize),parseClassName:Wne(e),...Vne(e)}),Xne=/\s+/,Zne=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(Xne);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:d}=r(u);let v=!!d,g=n(v?h.substring(0,d):h);if(!g){if(!v){s=u+(s.length>0?" "+s:s);continue}if(g=n(h),!g){s=u+(s.length>0?" "+s:s);continue}v=!1}const m=Une(c).join(":"),y=f?m+FG:m,S=y+g;if(a.includes(S))continue;a.push(S);const b=i(g,v);for(let w=0;w0?" "+s:s)}return s};function qne(){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=Yne(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=Zne(l,r);return i(l,c),c}return function(){return a(qne.apply(null,arguments))}}const Lr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},BG=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kne=/^\d+\/\d+$/,Jne=new Set(["px","full","screen"]),Qne=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eie=/\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$/,tie=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,rie=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nie=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ko=e=>lh(e)||Jne.has(e)||Kne.test(e),Xs=e=>$h(e,"length",fie),lh=e=>!!e&&!Number.isNaN(Number(e)),jb=e=>$h(e,"number",lh),Cd=e=>!!e&&Number.isInteger(Number(e)),iie=e=>e.endsWith("%")&&lh(e.slice(0,-1)),Et=e=>BG.test(e),Zs=e=>Qne.test(e),aie=new Set(["length","size","percentage"]),oie=e=>$h(e,aie,zG),sie=e=>$h(e,"position",zG),lie=new Set(["image","url"]),uie=e=>$h(e,lie,die),cie=e=>$h(e,"",hie),Td=()=>!0,$h=(e,t,r)=>{const n=BG.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},fie=e=>eie.test(e)&&!tie.test(e),zG=()=>!1,hie=e=>rie.test(e),die=e=>nie.test(e),vie=()=>{const e=Lr("colors"),t=Lr("spacing"),r=Lr("blur"),n=Lr("brightness"),i=Lr("borderColor"),a=Lr("borderRadius"),o=Lr("borderSpacing"),s=Lr("borderWidth"),l=Lr("contrast"),u=Lr("grayscale"),c=Lr("hueRotate"),f=Lr("invert"),h=Lr("gap"),d=Lr("gradientColorStops"),v=Lr("gradientColorStopPositions"),g=Lr("inset"),m=Lr("margin"),y=Lr("opacity"),S=Lr("padding"),b=Lr("saturate"),w=Lr("scale"),C=Lr("sepia"),x=Lr("skew"),A=Lr("space"),D=Lr("translate"),M=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",Et,t],E=()=>[Et,t],F=()=>["",Ko,Xs],O=()=>["auto",lh,Et],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],U=()=>["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",Et],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>[lh,Et];return{cacheSize:500,separator:":",theme:{colors:[Td],spacing:[Ko,Xs],blur:["none","",Zs,Et],brightness:ie(),borderColor:[e],borderRadius:["none","","full",Zs,Et],borderSpacing:E(),borderWidth:F(),contrast:ie(),grayscale:Z(),hueRotate:ie(),invert:Z(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[iie,Xs],inset:P(),margin:P(),opacity:ie(),padding:E(),saturate:ie(),scale:ie(),sepia:Z(),skew:ie(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",Et]}],container:["container"],columns:[{columns:[Zs]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"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(),Et]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],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",Cd,Et]}],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",Et]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Cd,Et]}],"grid-cols":[{"grid-cols":[Td]}],"col-start-end":[{col:["auto",{span:["full",Cd,Et]},Et]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Td]}],"row-start-end":[{row:["auto",{span:[Cd,Et]},Et]}],"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",Et]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Et]}],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",Et,t]}],"min-w":[{"min-w":[Et,t,"min","max","fit"]}],"max-w":[{"max-w":[Et,t,"none","full","min","max","fit","prose",{screen:[Zs]},Zs]}],h:[{h:[Et,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Et,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Et,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Et,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Zs,Xs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jb]}],"font-family":[{font:[Td]}],"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",Et]}],"line-clamp":[{"line-clamp":["none",lh,jb]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ko,Et]}],"list-image":[{"list-image":["none",Et]}],"list-style-type":[{list:["none","disc","decimal",Et]}],"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",Ko,Xs]}],"underline-offset":[{"underline-offset":["auto",Ko,Et]}],"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",Et]}],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",Et]}],"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(),sie]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",oie]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},uie]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],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":[Ko,Et]}],"outline-w":[{outline:[Ko,Xs]}],"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":[Ko,Xs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Zs,cie]}],"shadow-color":[{shadow:[Td]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Zs,Et]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[C]}],"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":[b]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"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",Et]}],duration:[{duration:ie()}],ease:[{ease:["linear","in","out","in-out",Et]}],delay:[{delay:ie()}],animate:[{animate:["none","spin","ping","pulse","bounce",Et]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Cd,Et]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Et]}],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",Et]}],"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",Et]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ko,Xs,jb]}],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"]}}},Kr=jne(vie),pie={class:"tabs-boxed tabs tabs-sm"},gie={key:0,class:"flex items-center gap-2"},mie=["value"],yie={class:"flex items-center gap-2"},_ie=["value","label"],Sie={class:"join flex-1"},bie=["value","label"],GG=Ut({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{K0.value.forEach(r=>{T1(r.id)})};return(r,n)=>(se(),Se("div",{class:Xt(J(Kr)("flex flex-col gap-2 p-2 text-sm",r.horizontal&&"flex-row flex-wrap pb-0"))},[Q("div",pie,[Q("a",{role:"tab",class:Xt(J(Kr)("tab",J(sv)===J(nc).ACTIVE&&"tab-active")),onClick:n[0]||(n[0]=()=>sv.value=J(nc).ACTIVE)},Re(r.$t("activeConnections")),3),Q("a",{role:"tab",class:Xt(J(Kr)("tab",J(sv)===J(nc).CLOSED&&"tab-active")),onClick:n[1]||(n[1]=()=>sv.value=J(nc).CLOSED)},Re(r.$t("closedConnections")),3)]),J(ac)?(se(),Se("div",gie,[qt(Re(r.$t("sortBy"))+": ",1),Dr(Q("select",{class:"select select-bordered select-sm w-52","onUpdate:modelValue":n[2]||(n[2]=i=>bt(o0)?o0.value=i:null)},[(se(!0),Se(lt,null,dr(Object.values(J(wi)),i=>(se(),Se("option",{key:i,value:i},Re(r.$t(i)||i),9,mie))),128))],512),[[ms,J(o0)]])])):Jt("",!0),Q("div",yie,[qt(Re(r.$t("quickFilter"))+": ",1),Dr(Q("input",{type:"text",class:"input input-sm join-item input-bordered w-40","onUpdate:modelValue":n[3]||(n[3]=i=>bt(Ov)?Ov.value=i:null)},null,512),[[Rl,J(Ov)]]),Dr(Q("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":n[4]||(n[4]=i=>bt(a0)?a0.value=i:null)},null,512),[[ss,J(a0)]])]),r.horizontal?Jt("",!0):Dr((se(),Se("select",{key:1,class:"select select-bordered select-sm","onUpdate:modelValue":n[5]||(n[5]=i=>bt(cl)?cl.value=i:null)},[n[9]||(n[9]=Q("option",{value:"",label:"all"},null,-1)),(se(!0),Se(lt,null,dr(J(cE),i=>(se(),Se("option",{key:i,value:i,label:i},null,8,_ie))),128))],512)),[[ms,J(cl)]]),Q("div",Sie,[r.horizontal?Dr((se(),Se("select",{key:0,class:"join-item select select-bordered select-sm min-w-24","onUpdate:modelValue":n[6]||(n[6]=i=>bt(cl)?cl.value=i:null)},[n[10]||(n[10]=Q("option",{value:"",label:"all"},null,-1)),(se(!0),Se(lt,null,dr(J(cE),i=>(se(),Se("option",{key:i,value:i,label:i},null,8,bie))),128))],512)),[[ms,J(cl)]]):Jt("",!0),Dr(Q("input",{type:"text",class:"input input-sm join-item input-bordered w-24 flex-1","onUpdate:modelValue":n[7]||(n[7]=i=>bt(Nv)?Nv.value=i:null)},null,512),[[Rl,J(Nv)]]),Q("button",{class:"btn-bordered btn join-item btn-sm",onClick:n[8]||(n[8]=i=>s0.value=!J(s0))},[(se(),jt(Vl(J(s0)?J(kG):J(EG)),{class:"h-4 w-4"}))]),Q("button",{class:"btn-bordered btn join-item btn-sm",onClick:t},[Be(J(QD),{class:"h-4 w-4"})])])],2))}}),lv=Ze([]),uh=Ze(""),l0=Ze(!1),u0=Yr("config/log-level",ic.Info);let Tm;const lT=()=>{Tm==null||Tm(),lv.value=[];let e=1;const t=Dne({level:u0.value}),r=vr(t.data,n=>{if(!n)return;const i=JSON.parse(n);if(l0.value){e++;return}lv.value.unshift({...i,time:new Date().valueOf(),seq:e++}),lv.value=lv.value.slice(0,1e3)});Tm=()=>{r(),t.close()}},wie=["value"],$G=Ut({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,r)=>(se(),Se("div",{class:Xt(J(Kr)("join w-full p-2",t.horizontal&&"max-w-96 pb-0"))},[Dr(Q("select",{class:"join-item select select-bordered select-sm","onUpdate:modelValue":r[0]||(r[0]=n=>bt(u0)?u0.value=n:null),onChange:r[1]||(r[1]=(...n)=>J(lT)&&J(lT)(...n))},[(se(!0),Se(lt,null,dr(Object.values(J(ic)),n=>(se(),Se("option",{key:n,value:n},Re(n),9,wie))),128))],544),[[ms,J(u0)]]),Dr(Q("input",{type:"text",class:"input input-sm join-item input-bordered w-0 flex-1","onUpdate:modelValue":r[2]||(r[2]=n=>bt(uh)?uh.value=n:null)},null,512),[[Rl,J(uh)]]),Q("button",{class:"btn-bordered btn join-item btn-sm",onClick:r[3]||(r[3]=n=>l0.value=!J(l0))},[(se(),jt(Vl(J(l0)?J(kG):J(EG)),{class:"h-4 w-4"}))])],2))}}),uT="GLOBAL",Fv=Ze([]),Sh=Ze({}),D1=Ze({}),Sc=Ze([]),tM=e=>D1.value[rM(e)],J0=async()=>{const{data:e}=await dne(),{data:t}=await mne(),r=e.proxies[uT].all??[];Sh.value=e.proxies,Fv.value=Object.values(e.proxies).filter(n=>{var i;return((i=n.all)==null?void 0:i.length)&&n.name!==uT&&!(n!=null&&n.hide)}).sort((n,i)=>r.indexOf(n.name)-r.indexOf(i.name)).map(n=>n.name),D1.value=Object.fromEntries(Object.entries(e.proxies).map(([n,i])=>[n,Aie(i)])),Sc.value=Object.values(t.providers).filter(n=>n.name!=="default"&&n.vehicleType!=="Compatible")},xie=async(e,t)=>{await vne(e,t),Sh.value[e].now=t,t0.value&&_o.value.filter(r=>r.chains.includes(e)).forEach(r=>T1(r.id))},Cie=async e=>{const{data:t}=await pne(e,Rv.value,Ev.value);D1.value[rM(e)]=t.delay},Tie=async e=>{const{data:t}=await gne(e,Rv.value,Ev.value);Object.entries(t).forEach(([r,n])=>{D1.value[rM(r)]=n})},Aie=e=>{var t;return((t=Ec.last(e.history))==null?void 0:t.delay)??0},rM=e=>{let t=Sh.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const r=Sh.value[t.now];if(!r)return t.name;t=r}return t.name},Die={key:0,role:"tablist",class:"tabs-boxed tabs tabs-sm"},Mie=["onClick"],Iie={key:1,class:"flex flex-col gap-2"},Lie={key:1,class:"w-full sm:hidden"},Pie=["label","value"],Rie=["value"],Eie=["label","value"],HG=Ut({__name:"ProxiesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Ze(!1),r=async()=>{if(!t.value){t.value=!0;try{await Promise.all(Sc.value.map(a=>wG(a.name))),await J0(),t.value=!1}catch{t.value=!1}}},n=at(()=>{var a,o;return((a=ov.value)==null?void 0:a["mode-list"])||((o=ov.value)==null?void 0:o.modes)||["direct","rule","global"]}),i=a=>{const o=a.target.value;Lne({mode:o})};return(a,o)=>J(ov)?(se(),Se("div",{key:0,class:Xt(J(Kr)("flex flex-col gap-2 p-2",a.horizontal&&"flex-row flex-wrap pb-0"))},[J(Sc).length?(se(),Se(lt,{key:0},[J(Sc).length?(se(),Se("div",Die,[(se(!0),Se(lt,null,dr(J(Gl),s=>(se(),Se("a",{role:"tab",class:Xt(["tab",{"tab-active":J(_c)===s}]),key:s,onClick:l=>_c.value=s},Re(a.$t(s)),11,Mie))),128))])):Jt("",!0),J(_c)===J(Gl).PROVIDER?(se(),Se("div",Iie,[Q("button",{class:Xt(J(Kr)("btn btn-sm",t.value?"animate-pulse":"")),onClick:r},Re(a.$t("upgradeAllProviders")),3)])):Jt("",!0)],64)):Jt("",!0),a.horizontal?(se(),Se("div",Lie)):Jt("",!0),Dr(Q("select",{class:"select select-bordered select-sm","onUpdate:modelValue":o[0]||(o[0]=s=>bt(e0)?e0.value=s:null)},[(se(!0),Se(lt,null,dr(Object.values(J(gl)),s=>(se(),Se("option",{key:s,label:a.$t(s),value:s},null,8,Pie))),128))],512),[[ms,J(e0)]]),Q("select",{class:"select select-bordered select-sm",value:J(ov).mode,onChange:i},[(se(!0),Se(lt,null,dr(n.value,s=>(se(),Se("option",{key:s,label:s,value:s},null,8,Eie))),128))],40,Rie)],2)):Jt("",!0)}}),WG=Ze(),Q0=Ze([]),nM=async()=>{const{data:e}=await _ne(),{data:t}=await Sne();WG.value=e.rules,Q0.value=Object.values(t.providers)},kie={role:"tablist",class:"tabs-boxed tabs tabs-sm"},Oie=["onClick"],Nie={key:0,class:"flex flex-col gap-2"},UG=Ut({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Ze(!1),r=async()=>{if(!t.value){t.value=!0;try{await Promise.all(Q0.value.map(n=>xG(n.name))),await nM(),t.value=!1}catch{t.value=!1}}};return(n,i)=>J(Q0).length?(se(),Se("div",{key:0,class:Xt(J(Kr)("flex flex-col gap-2 p-2",n.horizontal&&"flex-row pb-0"))},[Q("div",kie,[(se(!0),Se(lt,null,dr(J(_h),a=>(se(),Se("a",{role:"tab",class:Xt(["tab",{"tab-active":J(kv)===a}]),key:a,onClick:o=>kv.value=a},Re(n.$t(a)),11,Oie))),128))]),J(kv)===J(_h).PROVIDER?(se(),Se("div",Nie,[Q("button",{class:Xt(J(Kr)("btn btn-sm",t.value?"animate-pulse":"")),onClick:r},Re(n.$t("upgradeAllProviders")),3)])):Jt("",!0)],2)):Jt("",!0)}}),Fie=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],Vie=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Bie=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],zie=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],gE=(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 Gie(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?zie:Bie:t.binary?Vie:Fie,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=gE(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=gE(Number(e),t.locale,o),u=r[s];return a+l+n+u}const Or=(e,t)=>Gie(e,{binary:!1,...t}),$ie=Ate(),YG=at(()=>$ie.width.value>1280),M1=e=>Fl(e).locale(fs.value).fromNow(),Am=e=>{const t=tM(e);return t===0?1/0:t},XG=e=>{switch(e=[...e],e0.value){case gl.DEFAULT:return e;case gl.NAME_ASC:return e.sort((t,r)=>t.localeCompare(r));case gl.NAME_DESC:return e.sort((t,r)=>r.localeCompare(t));case gl.LATENCY_ASC:return e.sort((t,r)=>Am(t)-Am(r));case gl.LATENCY_DESC:return e.sort((t,r)=>Am(r)-Am(t))}},iM=Ze(0),aM=Ze(0),oM=Ze(0),uv=Ze(new Array(60).fill(0)),cv=Ze(new Array(60).fill(0));let Dm;const Hie=()=>{Dm==null||Dm(),uv.value=new Array(60).fill(0),cv.value=new Array(60).fill(0);const e=Mne(),t=vr(e.data,i=>{if(!i)return;const a=JSON.parse(i);iM.value=a.inuse}),r=Ine(),n=vr(r.data,i=>{if(!i)return;const a=JSON.parse(i);aM.value=a.down,oM.value=a.up,uv.value.push(a.down),cv.value.push(a.up),uv.value=uv.value.slice(-60),cv.value=cv.value.slice(-60)});Dm=()=>{e.close(),t(),r.close(),n()}},Wie={class:"flex gap-2"},Uie=["value"],ZG=Ut({__name:"BackendSwitch",setup(e){const t=at(()=>gp.value.map(n=>({label:`${n.protocol}://${n.host}:${n.port}`,value:n.uuid}))),r=()=>{cs.value=null};return(n,i)=>(se(),Se("div",Wie,[Dr(Q("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":i[0]||(i[0]=a=>bt(cs)?cs.value=a:null)},[(se(!0),Se(lt,null,dr(t.value,a=>(se(),Se("option",{key:a.value,value:a.value},Re(a.label),9,Uie))),128))],512),[[ms,J(cs)]]),Q("button",{class:"btn btn-circle btn-xs",onClick:r},[Be(J(Fne),{class:"h-4 w-4"})])]))}}),Yie={class:"flex justify-between"},Xie={class:"flex flex-col gap-2 p-2 text-xs"},Zie={class:"flex flex-1 items-end justify-end p-2"},qie=Ut({__name:"CommonCtrl",setup(e){return(t,r)=>(se(),Se("div",Yie,[Q("div",Xie,[Q("div",null,Re(t.$t("connections"))+": "+Re(J(_o).length),1),Q("div",null,Re(t.$t("download"))+": "+Re(J(Or)(J(q0)))+" ("+Re(J(Or)(J(aM)))+"/s) ",1),Q("div",null,Re(t.$t("upload"))+": "+Re(J(Or)(J(j0)))+" ("+Re(J(Or)(J(oM)))+"/s) ",1),Q("div",null,Re(t.$t("memoryUsage"))+": "+Re(J(Or)(J(iM),{binary:!0})),1),Q("div",null,Re(t.$t("version"))+": "+Re(J(KD)),1),Be(ZG)]),Q("div",Zie,[Q("button",{class:"btn btn-circle btn-ghost btn-xs",onClick:r[0]||(r[0]=n=>yc.value=!0)},[Be(J(Ene),{class:"h-5 w-5"})])])]))}});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var cT=function(e,t){return cT=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])},cT(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");cT(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var jie=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Kie=function(){function e(){this.browser=new jie,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}(),St=new Kie;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(St.wxa=!0,St.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?St.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(St.node=!0,St.svgSupported=!0):Jie(navigator.userAgent,St);function Jie(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 sM=12,qG="sans-serif",$l=sM+"px "+qG,Qie=20,eae=100,tae="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function rae(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 xae(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,d=c.top;o.push(h,d),l=l&&a&&h===a[f]&&d===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?SE(s,o):SE(o,s))}function r$(e){return e.nodeName.toUpperCase()==="CANVAS"}var Cae=/([&<>"'])/g,Tae={"&":"&","<":"<",">":">",'"':""","'":"'"};function xi(e){return e==null?"":(e+"").replace(Cae,function(t,r){return Tae[r]})}var Aae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jb=[],Dae=St.browser.firefox&&+St.browser.version.split(".")[0]<39;function mT(e,t,r,n){return r=r||{},n?wE(e,t,r):Dae&&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):wE(e,t,r),r}function wE(e,t,r){if(St.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(r$(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(gT(Jb,e,n,i)){r.zrX=Jb[0],r.zrY=Jb[1];return}}r.zrX=r.zrY=0}function vM(e){return e||window.event}function ua(e,t,r){if(t=vM(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&&mT(e,o,t,r)}else{mT(e,t,t,r);var a=Mae(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Aae.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Mae(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 yT(e,t,r,n){e.addEventListener(t,r,n)}function Iae(e,t,r,n){e.removeEventListener(t,r,n)}var Cs=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function xE(e){return e.which===2||e.which===3}var Lae=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=CE(n)/CE(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Pae(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Yi(){return[1,0,0,1,0,0]}function R1(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function pM(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 _s(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 Ro(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 Xc(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 gM(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 Uh(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 Rae(e){var t=Yi();return pM(t,e),t}var nt=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}(),Im=Math.min,Lm=Math.max,pu=new nt,gu=new nt,mu=new nt,yu=new nt,Ad=new nt,Dd=new nt,st=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=Im(t.x,this.x),n=Im(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lm(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lm(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=Yi();return Ro(a,a,[-r.x,-r.y]),gM(a,a,[n,i]),Ro(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=!(av&&(v=b,gv&&(v=w,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}pu.x=mu.x=r.x,pu.y=yu.y=r.y,gu.x=yu.x=r.x+r.width,gu.y=mu.y=r.y+r.height,pu.transform(n),yu.transform(n),gu.transform(n),mu.transform(n),t.x=Im(pu.x,gu.x,mu.x,yu.x),t.y=Im(pu.y,gu.y,mu.y,yu.y);var l=Lm(pu.x,gu.x,mu.x,yu.x),u=Lm(pu.y,gu.y,mu.y,yu.y);t.width=l-t.x,t.height=u-t.y},e}(),n$="silent";function Eae(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:kae}}function kae(){Cs(this.event)}var Oae=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}(Ca),Md=function(){function e(t,r){this.x=t,this.y=r}return e}(),Nae=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ew=new st(0,0,0,0),i$=function(e){j(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Md(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Oae,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new _ae(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(R(Nae,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=a$(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 Md(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 Md(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=Eae(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 Md(r,n);if(TE(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new st(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)&&(ew.copy(h.getBoundingRect()),h.transform&&ew.applyTransform(h.transform),ew.intersect(c)&&s.push(h))}if(s.length)for(var d=4,v=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Fae(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?n$:!0}return!1}function TE(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=Fae(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==n$)){t.target=o;break}}}function a$(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var o$=32,Id=7;function Vae(e){for(var t=0;e>=o$;)t|=e&1,e>>=1;return e+t}function AE(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 Bae(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 tw(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 rw(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 zae(e,t){var r=Id,n,i,a=0,o=[];n=[],i=[];function s(d,v){n[a]=d,i[a]=v,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]i[d+1])break;c(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]=Id||A>=Id);if(D)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),v===1){for(y=0;y=0;y--)e[x+y]=e[C+y];e[w]=o[b];return}for(var A=r;;){var D=0,M=0,I=!1;do if(t(o[b],e[S])<0){if(e[w--]=e[S--],D++,M=0,--v===0){I=!0;break}}else if(e[w--]=o[b--],M++,D=0,--m===1){I=!0;break}while((D|M)=0;y--)e[x+y]=e[C+y];if(v===0){I=!0;break}}if(e[w--]=o[b--],--m===1){I=!0;break}if(M=m-tw(e[S],o,0,m,m-1,t),M!==0){for(w-=M,b-=M,m-=M,x=w+1,C=b+1,y=0;y=Id||M>=Id);if(I)break;A<0&&(A=0),A+=2}if(r=A,r<1&&(r=1),m===1){for(w-=v,S-=v,x=w+1,C=S+1,y=v-1;y>=0;y--)e[x+y]=e[C+y];e[w]=o[b]}else{if(m===0)throw new Error;for(C=w-(m-1),y=0;ys&&(l=s),DE(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 Gi=1,fv=2,Gf=4,ME=!1;function nw(){ME||(ME=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function IE(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Gae=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=IE}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(nw(),c.z=0),isNaN(c.z2)&&(nw(),c.z2=0),isNaN(c.zlevel)&&(nw(),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 d=t.getTextContent();d&&this._updateAndAddDisplayable(d,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}(),r_;r_=St.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}},Pm=Math.pow,El=Math.sqrt,n_=1e-8,s$=1e-4,LE=El(3),Rm=1/3,go=Yc(),va=Yc(),ch=Yc();function xl(e){return e>-n_&&en_||e<-n_}function ln(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 PE(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function i_(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,d=0;if(xl(c)&&xl(f))if(xl(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[d++]=v)}else{var g=f*f-4*c*h;if(xl(g)){var m=f/c,v=-s/o+m,y=-m/2;v>=0&&v<=1&&(a[d++]=v),y>=0&&y<=1&&(a[d++]=y)}else if(g>0){var S=El(g),b=c*s+1.5*o*(-f+S),w=c*s+1.5*o*(-f-S);b<0?b=-Pm(-b,Rm):b=Pm(b,Rm),w<0?w=-Pm(-w,Rm):w=Pm(w,Rm);var v=(-s-(b+w))/(3*o);v>=0&&v<=1&&(a[d++]=v)}else{var C=(2*c*s-3*o*f)/(2*El(c*c*c)),x=Math.acos(C)/3,A=El(c),D=Math.cos(x),v=(-s-2*A*D)/(3*o),y=(-s+A*(D+LE*Math.sin(x)))/(3*o),M=(-s+A*(D-LE*Math.sin(x)))/(3*o);v>=0&&v<=1&&(a[d++]=v),y>=0&&y<=1&&(a[d++]=y),M>=0&&M<=1&&(a[d++]=M)}}return d}function u$(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(xl(o)){if(l$(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(xl(c))i[0]=-a/(2*o);else if(c>0){var f=El(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 Wl(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 c$(e,t,r,n,i,a,o,s,l,u,c){var f,h=.005,d=1/0,v,g,m,y;go[0]=l,go[1]=u;for(var S=0;S<1;S+=.05)va[0]=ln(e,r,i,o,S),va[1]=ln(t,n,a,s,S),m=bc(go,va),m=0&&m=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(xl(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=El(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 f$(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function _p(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 h$(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;go[0]=o,go[1]=s;for(var h=0;h<1;h+=.05){va[0]=mn(e,r,i,h),va[1]=mn(t,n,a,h);var d=bc(go,va);d=0&&d=1?1:i_(0,n,a,1,l,s)&&ln(0,i,o,1,s[0])}}}var Yae=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||Ur,this.ondestroy=t.ondestroy||Ur,this.onrestart=t.onrestart||Ur,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=We(t)?t:Bv[t]||mM(t)},e}(),d$=function(){function e(t){this.value=t}return e}(),Xae=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new d$(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}(),ig=function(){function e(t){this._list=new Xae,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 d$(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}(),RE={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 Ha(e){return e=Math.round(e),e<0?0:e>255?255:e}function Zae(e){return e=Math.round(e),e<0?0:e>360?360:e}function Sp(e){return e<0?0:e>1?1:e}function iw(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ha(parseFloat(t)/100*255):Ha(parseInt(t,10))}function wc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Sp(parseFloat(t)/100):Sp(parseFloat(t))}function aw(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 Cl(e,t,r){return e+(t-e)*r}function la(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function ST(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var v$=new ig(20),Em=null;function yf(e,t){Em&&ST(Em,t),Em=v$.put(e,Em||t.slice())}function Xi(e,t){if(e){t=t||[];var r=v$.get(e);if(r)return ST(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in RE)return ST(t,RE[n]),yf(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)){la(t,0,0,0,1);return}return la(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),yf(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){la(t,0,0,0,1);return}return la(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),yf(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?la(t,+u[0],+u[1],+u[2],1):la(t,0,0,0,1);c=wc(u.pop());case"rgb":if(u.length>=3)return la(t,iw(u[0]),iw(u[1]),iw(u[2]),u.length===3?c:wc(u[3])),yf(e,t),t;la(t,0,0,0,1);return;case"hsla":if(u.length!==4){la(t,0,0,0,1);return}return u[3]=wc(u[3]),bT(u,t),yf(e,t),t;case"hsl":if(u.length!==3){la(t,0,0,0,1);return}return bT(u,t),yf(e,t),t;default:return}}la(t,0,0,0,1)}}function bT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=wc(e[1]),i=wc(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],la(t,Ha(aw(o,a,r+1/3)*255),Ha(aw(o,a,r)*255),Ha(aw(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function qae(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 d=[l*360,u,s];return e[3]!=null&&d.push(e[3]),d}}function wT(e,t){var r=Xi(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 Ss(r,r.length===4?"rgba":"rgb")}}function ow(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]=Ha(Cl(o[0],s[0],l)),r[1]=Ha(Cl(o[1],s[1],l)),r[2]=Ha(Cl(o[2],s[2],l)),r[3]=Sp(Cl(o[3],s[3],l)),r}}function jae(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=Xi(t[i]),s=Xi(t[a]),l=n-i,u=Ss([Ha(Cl(o[0],s[0],l)),Ha(Cl(o[1],s[1],l)),Ha(Cl(o[2],s[2],l)),Sp(Cl(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=Xi(e);if(e)return i=qae(i),t!=null&&(i[0]=Zae(t)),r!=null&&(i[1]=wc(r)),n!=null&&(i[2]=wc(n)),Ss(bT(i),"rgba")}function a_(e,t){var r=Xi(e);if(r&&t!=null)return r[3]=Sp(t),Ss(r,"rgba")}function Ss(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 o_(e,t){var r=Xi(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var EE=new ig(100);function xT(e){if(ke(e)){var t=EE.get(e);return t||(t=wT(e,-.1),EE.put(e,t)),t}else if(L1(e)){var r=fe({},e);return r.colorStops=be(e.colorStops,function(n){return{offset:n.offset,color:wT(n.color,-.1)}}),r}return e}var s_=Math.round;function bp(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Xi(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var kE=1e-4;function Tl(e){return e-kE}function km(e){return s_(e*1e3)/1e3}function CT(e){return s_(e*1e4)/1e4}function Kae(e){return"matrix("+km(e[0])+","+km(e[1])+","+km(e[2])+","+km(e[3])+","+CT(e[4])+","+CT(e[5])+")"}var Jae={left:"start",right:"end",center:"middle",middle:"middle"};function Qae(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function eoe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function toe(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 p$(e){return e&&!!e.image}function roe(e){return e&&!!e.svgElement}function yM(e){return p$(e)||roe(e)}function g$(e){return e.type==="linear"}function m$(e){return e.type==="radial"}function y$(e){return e&&(e.type==="linear"||e.type==="radial")}function E1(e){return"url(#"+e+")"}function _$(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 S$(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*c0,i=tt(e.scaleX,1),a=tt(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("+s_(o*c0)+"deg, "+s_(s*c0)+"deg)"),l.join(" ")}var noe=function(){return St.hasGlobalWindow&&We(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}}(),TT=Array.prototype.slice;function is(e,t,r){return(t-e)*r+e}function sw(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=NE,l=r;if(Un(r)){var u=soe(r);s=u,(u===1&&!Nt(r[0])||u===2&&!Nt(r[0][0]))&&(o=!0)}else if(Nt(r)&&!yp(r))s=Nm;else if(ke(r))if(!isNaN(+r))s=Nm;else{var c=Xi(r);c&&(l=c,s=hv)}else if(L1(r)){var f=fe({},l);f.colorStops=be(r.colorStops,function(d){return{offset:d.offset,color:Xi(d.color)}}),g$(r)?s=AT:m$(r)&&(s=DT),l=f}a===0?this.valType=s:(s!==this.valType||s===NE)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=We(n)?n:Bv[n]||mM(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=Fm(i),u=FE(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)}v=o[c+1],d=o[c]}if(d&&v){this._lastFr=c,this._lastFrP=r;var m=v.percent-d.percent,y=m===0?1:h((r-d.percent)/m,1);v.easingFunc&&(y=v.easingFunc(y));var S=n?this._additiveValue:u?Ld:t[l];if((Fm(a)||u)&&!S&&(S=this._additiveValue=[]),this.discrete)t[l]=y<1?d.rawValue:v.rawValue;else if(Fm(a))a===p0?sw(S,d[i],v[i],y):ioe(S,d[i],v[i],y);else if(FE(a)){var b=d[i],w=v[i],C=a===AT;t[l]={type:C?"linear":"radial",x:is(b.x,w.x,y),y:is(b.y,w.y,y),colorStops:be(b.colorStops,function(A,D){var M=w.colorStops[D];return{offset:is(A.offset,M.offset,y),color:v0(sw([],A.color,M.color,y))}}),global:w.global},C?(t[l].x2=is(b.x2,w.x2,y),t[l].y2=is(b.y2,w.y2,y)):t[l].r=is(b.r,w.r,y)}else if(u)sw(S,d[i],v[i],y),n||(t[l]=v0(S));else{var x=is(d[i],v[i],y);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Nm?t[n]=t[n]+i:r===hv?(Xi(t[n],Ld),Om(Ld,Ld,i,1),t[n]=v0(Ld)):r===p0?Om(t[n],t[n],i,1):r===b$&&OE(t[n],t[n],i,1)},e}(),_M=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){cM("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,xt(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 qf(){return new Date().getTime()}var uoe=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=qf()-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&&(r_(n),!r._paused&&r.update())}r_(n)},t.prototype.start=function(){this._running||(this._time=qf(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=qf(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=qf()-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 _M(r,n.loop);return this.addAnimator(i),i},t}(Ca),coe=300,lw=St.domSupported,uw=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=be(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),VE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},BE=!1;function MT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function foe(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 cw(e){e&&(e.zrByTouch=!0)}function hoe(e,t){return ua(e.dom,new doe(e,t),!0)}function w$(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 doe=function(){function e(t,r){this.stopPropagation=Ur,this.stopImmediatePropagation=Ur,this.preventDefault=Ur,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Oa={mousedown:function(e){e=ua(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ua(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=ua(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ua(this.dom,e);var t=e.toElement||e.relatedTarget;w$(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){BE=!0,e=ua(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){BE||(e=ua(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ua(this.dom,e),cw(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Oa.mousemove.call(this,e),Oa.mousedown.call(this,e)},touchmove:function(e){e=ua(this.dom,e),cw(e),this.handler.processGesture(e,"change"),Oa.mousemove.call(this,e)},touchend:function(e){e=ua(this.dom,e),cw(e),this.handler.processGesture(e,"end"),Oa.mouseup.call(this,e),+new Date-+this.__lastTouchMoment$E||e<-$E}var Su=[],_f=[],hw=Yi(),dw=Math.abs,hs=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 _u(this.rotation)||_u(this.x)||_u(this.y)||_u(this.scaleX-1)||_u(this.scaleY-1)||_u(this.skewX)||_u(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(GE(n),this.invTransform=null);return}n=n||Yi(),r?this.getLocalTransform(n):GE(n),t&&(r?_s(n,t,n):pM(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Su);var n=Su[0]<0?-1:1,i=Su[1]<0?-1:1,a=((Su[0]-n)*r+n)/Su[0]||0,o=((Su[1]-i)*r+i)/Su[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Yi(),Uh(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||Yi(),_s(_f,t.invTransform,r),r=_f);var n=this.originX,i=this.originY;(n||i)&&(hw[4]=n,hw[5]=i,_s(_f,r,hw),_f[4]-=n,_f[5]-=i,r=_f),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&&Ln(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Ln(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&dw(t[0]-1)>1e-10&&dw(t[3]-1)>1e-10?Math.sqrt(dw(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){C$(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,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,g=i+l;r[4]=-v*a-h*g*o,r[5]=-g*o-d*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=h*o,u&&Xc(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}(),Eo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function C$(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function u_(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+=Xa(n[0],r.width),u+=Xa(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 vw="__zr_normal__",pw=Eo.concat(["ignore"]),yoe=Po(Eo,function(e,t){return e[t]=!0,e},{ignore:!1}),Sf={},_oe=new st(0,0,0,0),O1=function(){function e(t){this.id=JG(),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=_oe;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Sf,n,c):u_(Sf,n,c),a.x=Sf.x,a.y=Sf.y,o=Sf.align,s=Sf.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var h=void 0,d=void 0;f==="center"?(h=c.width*.5,d=c.height*.5):(h=Xa(f[0],c.width),d=Xa(f[1],c.height)),u=!0,a.originX=-a.x+h+(i?0:c.x),a.originY=-a.y+d+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[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,b=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),b=!0)):(y=n.outsideFill,S=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(y),b=!0)),y=y||"#000",(y!==m.fill||S!==m.stroke||b!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=S,m.autoStroke=b,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=Gi,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()?RT:PT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Xi(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,Ss(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||{},fe(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(qe(t))for(var n=t,i=xt(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(vw,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===vw,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(pt(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){cM("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&=~Gi),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,v);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&=~Gi)}},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=pt(i,t),o=pt(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(v,g){r.during(g)});for(var h=0;h0||i.force&&!o.length){var D=void 0,M=void 0,I=void 0;if(s){M={},h&&(D={});for(var w=0;w=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=pt(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=pt(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 ke(e)?Loe(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Br(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),D$),e=(+e).toFixed(t),r?e:+e}function _a(e){return e.sort(function(t,r){return t-r}),e}function So(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 Poe(e)}function Poe(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 M$(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 Roe(e,t){var r=Po(e,function(d,v){return d+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=be(e,function(d){return(isNaN(d)?0:d)/r*n*100}),a=n*100,o=be(i,function(d){return Math.floor(d)}),s=Po(o,function(d,v){return d+v},0),l=be(i,function(d,v){return d-o[v]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return be(o,function(d){return d/n})}function Eoe(e,t){var r=Math.max(So(e),So(t)),n=e+t;return r>D$?n:Br(n,r)}var XE=9007199254740991;function I$(e){var t=Math.PI*2;return(e%t+t)%t}function wp(e){return e>-YE&&e=10&&t++,t}function L$(e,t){var r=SM(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 yw(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 ZE(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&&pt(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var ase=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ose=Fc(ase),sse=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return ose(this,t,r)},e}(),OT=new ig(50);function lse(e){if(typeof e=="string"){var t=OT.get(e);return t&&t.image}else return e}function CM(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=OT.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!F1(t)&&a.pending.push(o)):(t=Hl.loadImage(e,JE,JE),t.__zrImageSrc=e,OT.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function JE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Zi(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 H$(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Zi(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?cse(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Zi(e,n)}return e===""&&(e=t.placeholder),e}function cse(e,t,r,n){for(var i=0,a=0,o=e.length;ad&&u){var v=Math.floor(d/s);f=f.slice(0,v)}if(e&&a&&c!=null)for(var g=$$(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;ms&&Sw(r,e.substring(s,u),t,o),Sw(r,l[2],t,o,l[1]),s=_w.lastIndex}si){C>0?(S.tokens=S.tokens.slice(0,C),m(S,w,b),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)==="%")x.percentWidth=E,c.push(x),x.contentWidth=Zi(x.text,I);else{if(F){var O=A.backgroundColor,N=O&&O.image;N&&(N=lse(N),F1(N)&&(x.width=Math.max(x.width,N.width*P/N.height)))}var V=v&&n!=null?n-w:null;V!=null&&V0&&v+n.accumWidth>n.width&&(c=t.split(` +`),u=!0),n.accumWidth=v}else{var g=W$(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+d,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 gse=Po(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function mse(e){return pse(e)?!!gse[e]:!0}function W$(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+d>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}c+=d,v?(l+=h,u+=d):(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 NT="__zr_style_"+Math.round(Math.random()*10),xc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},V1={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};xc[NT]=!0;var ek=["z","z2","invisible"],yse=["invisible"],xa=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=xt(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Vm[0]=Cw(i)*r+e,Vm[1]=xw(i)*n+t,Bm[0]=Cw(a)*r+e,Bm[1]=xw(a)*n+t,u(s,Vm,Bm),c(l,Vm,Bm),i=i%wu,i<0&&(i=i+wu),a=a%wu,a<0&&(a=a+wu),i>a&&!o?a+=wu:ii&&(zm[0]=Cw(d)*r+e,zm[1]=xw(d)*n+t,u(s,zm,s),c(l,zm,l))}var cr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},xu=[],Cu=[],io=[],qs=[],ao=[],oo=[],Tw=Math.min,Aw=Math.max,Tu=Math.cos,Au=Math.sin,Jo=Math.abs,FT=Math.PI,ol=FT*2,Dw=typeof Float32Array<"u",Pd=[];function Mw(e){var t=Math.round(e/FT*1e8)/1e8;return t%2*FT}function TM(e,t){var r=Mw(e[0]);r<0&&(r+=ol);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=ol?i=r+ol:t&&r-i>=ol?i=r-ol:!t&&r>i?i=r+(ol-Mw(r-i)):t&&r0&&(this._ux=Jo(n/l_/t)||0,this._uy=Jo(n/l_/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(cr.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=Jo(t-this._xi),i=Jo(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(cr.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(cr.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(cr.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(),Pd[0]=i,Pd[1]=a,TM(Pd,o),i=Pd[0],a=Pd[1];var s=a-i;return this.addData(cr.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Tu(a)*n+t,this._yi=Au(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(cr.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(cr.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)&&Dw&&(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(){io[0]=io[1]=ao[0]=ao[1]=Number.MAX_VALUE,qs[0]=qs[1]=oo[0]=oo[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Jo(b)>i||h===r-1)&&(g=Math.sqrt(S*S+b*b),a=m,o=y);break}case cr.C:{var w=t[h++],C=t[h++],m=t[h++],y=t[h++],x=t[h++],A=t[h++];g=$ae(a,o,w,C,m,y,x,A,10),a=x,o=A;break}case cr.Q:{var w=t[h++],C=t[h++],m=t[h++],y=t[h++];g=Wae(a,o,w,C,m,y,10),a=m,o=y;break}case cr.A:var D=t[h++],M=t[h++],I=t[h++],P=t[h++],E=t[h++],F=t[h++],O=F+E;h+=1,v&&(s=Tu(E)*I+D,l=Au(E)*P+M),g=Aw(I,P)*Tw(ol,Math.abs(F)),a=Tu(O)*I+D,o=Au(O)*P+M;break;case cr.R:{s=a=t[h++],l=o=t[h++];var N=t[h++],V=t[h++];g=N*2+V*2;break}case cr.Z:{var S=s-a,b=l-o;g=Math.sqrt(S*S+b*b),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,d=r<1,v,g,m=0,y=0,S,b=0,w,C;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,S=r*g,!S)))e:for(var x=0;x0&&(t.lineTo(w,C),b=0),A){case cr.M:s=u=n[x++],l=c=n[x++],t.moveTo(u,c);break;case cr.L:{f=n[x++],h=n[x++];var M=Jo(f-u),I=Jo(h-c);if(M>i||I>a){if(d){var P=v[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,b=0}else{var F=M*M+I*I;F>b&&(w=f,C=h,b=F)}break}case cr.C:{var O=n[x++],N=n[x++],V=n[x++],U=n[x++],G=n[x++],Z=n[x++];if(d){var P=v[y++];if(m+P>S){var E=(S-m)/P;Wl(u,O,V,G,E,xu),Wl(c,N,U,Z,E,Cu),t.bezierCurveTo(xu[1],Cu[1],xu[2],Cu[2],xu[3],Cu[3]);break e}m+=P}t.bezierCurveTo(O,N,V,U,G,Z),u=G,c=Z;break}case cr.Q:{var O=n[x++],N=n[x++],V=n[x++],U=n[x++];if(d){var P=v[y++];if(m+P>S){var E=(S-m)/P;_p(u,O,V,E,xu),_p(c,N,U,E,Cu),t.quadraticCurveTo(xu[1],Cu[1],xu[2],Cu[2]);break e}m+=P}t.quadraticCurveTo(O,N,V,U),u=V,c=U;break}case cr.A:var ee=n[x++],ie=n[x++],pe=n[x++],De=n[x++],Le=n[x++],ze=n[x++],He=n[x++],oe=!n[x++],ue=pe>De?pe:De,ve=Jo(pe-De)>.001,me=Le+ze,Ce=!1;if(d){var P=v[y++];m+P>S&&(me=Le+ze*(S-m)/P,Ce=!0),m+=P}if(ve&&t.ellipse?t.ellipse(ee,ie,pe,De,He,Le,me,oe):t.arc(ee,ie,ue,Le,me,oe),Ce)break e;D&&(s=Tu(Le)*pe+ee,l=Au(Le)*De+ie),u=Tu(me)*pe+ee,c=Au(me)*De+ie;break;case cr.R:s=u=n[x],l=c=n[x+1],f=n[x++],h=n[x++];var Ee=n[x++],H=n[x++];if(d){var P=v[y++];if(m+P>S){var W=S-m;t.moveTo(f,h),t.lineTo(f+Tw(W,Ee),h),W-=Ee,W>0&&t.lineTo(f+Ee,h+Tw(W,H)),W-=H,W>0&&t.lineTo(f+Aw(Ee-W,0),h+H),W-=Ee,W>0&&t.lineTo(f,h+Aw(H-W,0));break e}m+=P}t.rect(f,h,Ee,H);break;case cr.Z:if(d){var P=v[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=cr,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function fl(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+=Rd);var h=Math.atan2(l,s);return h<0&&(h+=Rd),h>=n&&h<=i||h+Rd>=n&&h+Rd<=i}function as(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var js=Oo.CMD,Du=Math.PI*2,Tse=1e-4;function Ase(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Dse(),d=ln(t,n,a,s,ha[0]),h>1&&(v=ln(t,n,a,s,ha[1]))),h===2?mt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=mn(t,n,a,u),h=0;hr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);ni[0]=-l,ni[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Du-1e-4){n=0,i=Du;var c=a?1:-1;return o>=ni[0]+e&&o<=ni[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=Du,i+=Du);for(var h=0,d=0;d<2;d++){var v=ni[d];if(v+e>o){var g=Math.atan2(s,v),c=a?1:-1;g<0&&(g=Du+g),(g>=n&&g<=i||g+Du>=n&&g+Du<=i)&&(g>Math.PI/2&&g1&&(r||(s+=as(l,u,c,f,n,i))),m&&(l=a[v],u=a[v+1],c=l,f=u),g){case js.M:c=a[v++],f=a[v++],l=c,u=f;break;case js.L:if(r){if(fl(l,u,a[v],a[v+1],t,n,i))return!0}else s+=as(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case js.C:if(r){if(xse(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Mse(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case js.Q:if(r){if(U$(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Ise(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case js.A:var y=a[v++],S=a[v++],b=a[v++],w=a[v++],C=a[v++],x=a[v++];v+=1;var A=!!(1-a[v++]);h=Math.cos(C)*b+y,d=Math.sin(C)*w+S,m?(c=h,f=d):s+=as(l,u,h,d,n,i);var D=(n-y)*w/b+y;if(r){if(Cse(y,S,w,C,C+x,A,t,D,i))return!0}else s+=Lse(y,S,w,C,C+x,A,D,i);l=Math.cos(C+x)*b+y,u=Math.sin(C+x)*w+S;break;case js.R:c=l=a[v++],f=u=a[v++];var M=a[v++],I=a[v++];if(h=c+M,d=f+I,r){if(fl(c,f,h,f,t,n,i)||fl(h,f,h,d,t,n,i)||fl(h,d,c,d,t,n,i)||fl(c,d,c,f,t,n,i))return!0}else s+=as(h,f,h,d,n,i),s+=as(c,d,c,f,n,i);break;case js.Z:if(r){if(fl(l,u,c,f,t,n,i))return!0}else s+=as(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!Ase(u,f)&&(s+=as(l,u,c,f,n,i)||0),s!==0}function Pse(e,t,r){return Y$(e,0,!1,t,r)}function Rse(e,t,r,n){return Y$(e,t,!0,r,n)}var c_=Ye({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},xc),Ese={style:Ye({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},V1.style)},Iw=Eo.concat(["invisible","culling","z","z2","zlevel","parent"]),_t=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?PT:n>.2?moe:RT}else if(r)return RT}return PT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(ke(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=o_(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&Gf)&&(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)),Rse(s,l/u,r,n)))return!0}if(this.hasFill())return Pse(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Gf,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:fe(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Gf)},t.prototype.createStyle=function(r){return P1(c_,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=fe({},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=fe({},i.shape),fe(u,n.shape)):(u=fe({},a?this.shape:i.shape),fe(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=fe({},this.shape);for(var c={},f=xt(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 P1(kse,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=ag(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}(xa);wh.prototype.type="tspan";var Ose=Ye({x:0,y:0},xc),Nse={style:Ye({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},V1.style)};function Fse(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var bn=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return P1(Ose,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Fse(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 Nse},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new st(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(xa);bn.prototype.type="image";function Vse(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 jf=Math.round;function X$(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&&(jf(n*2)===jf(i*2)&&(e.x1=e.x2=sc(n,s,!0)),jf(a*2)===jf(o*2)&&(e.y1=e.y2=sc(a,s,!0))),e}}function Z$(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=sc(n,s,!0),e.y=sc(i,s,!0),e.width=Math.max(sc(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(sc(i+o,s,!1)-e.y,o===0?0:1)),e}}function sc(e,t,r){if(!t)return e;var n=jf(e*2);return(n+jf(t))%2===0?n/2:(n+(r?1:-1))/2}var Bse=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),zse={},It=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Bse},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Z$(zse,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?Vse(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(_t);It.prototype.type="rect";var ak={fill:"#000"},ok=2,Gse={style:Ye({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},V1.style)},kt=function(e){j(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ak,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=x[F],O.align==="right");)this._placeToken(O,r,D,y,E,"right",b),M-=O.width,E-=O.width,F--;for(P+=(a-(P-m)-(S-E)-M)/2;I<=F;)O=x[I],this._placeToken(O,r,D,y,P+O.width/2,"center",b),P+=O.width,I++;y+=D}},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 d=!!u.backgroundColor,v=r.textPadding;v&&(o=hk(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild(wh),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,S=!1,b=0,w=fk("fill"in u?u.fill:"fill"in n?n.fill:(S=!0,y.fill)),C=ck("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!y.autoStroke||S)?(b=ok,y.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=f,x&&(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||$l,m.opacity=To(u.opacity,n.opacity,1),lk(m,u),C&&(m.lineWidth=To(u.lineWidth,n.lineWidth,b),m.lineDash=tt(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=C),w&&(m.fill=w);var A=r.contentWidth,D=r.contentHeight;g.setBoundingRect(new st(dv(m.x,A,m.textAlign),$f(m.y,D,m.textBaseline),A,D))},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,d=r.borderRadius,v=this,g,m;if(h||r.lineHeight||u&&c){g=this._getOrCreateChild(It),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=d,g.dirtyShape()}if(h){var S=g.style;S.fill=l||null,S.fillOpacity=tt(r.fillOpacity,1)}else if(f){m=this._getOrCreateChild(bn),m.onload=function(){v.dirtyStyle()};var b=m.style;b.image=l.image,b.x=i,b.y=a,b.width=o,b.height=s}if(u&&c){var S=g.style;S.lineWidth=u,S.stroke=c,S.strokeOpacity=tt(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 w=(g||m).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=To(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return j$(r)&&(n=[r.fontStyle,r.fontWeight,q$(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ba(n)||r.textFont||r.font},t}(xa),$se={left:!0,right:1,center:1},Hse={top:1,bottom:1,middle:1},sk=["fontStyle","fontWeight","fontSize","fontFamily"];function q$(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?sM+"px":e+"px"}function lk(e,t){for(var r=0;r=0,a=!1;if(e instanceof _t){var o=K$(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(bf(s)||bf(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=fe({},n),u=fe({},u),u.fill=s):!bf(u.fill)&&bf(s)?(a=!0,n=fe({},n),u=fe({},u),u.fill=xT(s)):!bf(u.stroke)&&bf(l)&&(a||(n=fe({},n),u=fe({},u)),u.stroke=xT(l)),n.style=u}}if(n&&n.z2==null){a||(n=fe({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Xh)}return n}function jse(e,t,r){if(r&&r.z2==null){r=fe({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Use)}return r}function Kse(e,t,r){var n=pt(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Zse(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=fe({},r),o=fe({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Pw(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return qse(this,e,t,r);if(e==="blur")return Kse(this,e,r);if(e==="select")return jse(this,e,r)}return r}function Vc(e){e.stateProxy=Pw;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Pw),r&&(r.stateProxy=Pw)}function mk(e,t){!i4(e,t)&&!e.__highByOuter&&ks(e,J$)}function yk(e,t){!i4(e,t)&&!e.__highByOuter&&ks(e,Q$)}function As(e,t){e.__highByOuter|=1<<(t||0),ks(e,J$)}function Ds(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ks(e,Q$)}function t4(e){ks(e,MM)}function IM(e){ks(e,e4)}function r4(e){ks(e,Yse)}function n4(e){ks(e,Xse)}function i4(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function a4(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=AM(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){e4(u)}),s&&r.push(a)),o.isBlured=!1}),R(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function BT(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 Tc(e,t,r){lc(e,!0),ks(e,Vc),GT(e,t,r)}function nle(e){lc(e,!1)}function Nr(e,t,r,n){n?nle(e):Tc(e,t,r)}function GT(e,t,r){var n=Qe(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Sk=["emphasis","blur","select"],ile={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Pn(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Rw(v),s*=Rw(v));var g=(i===a?-1:1)*Rw((o*o*(s*s)-o*o*(d*d)-s*s*(h*h))/(o*o*(d*d)+s*s*(h*h)))||0,m=g*o*d/s,y=g*-s*h/o,S=(e+r)/2+$m(f)*m-Gm(f)*y,b=(t+n)/2+Gm(f)*m+$m(f)*y,w=Ck([1,0],[(h-m)/o,(d-y)/s]),C=[(h-m)/o,(d-y)/s],x=[(-1*h-m)/o,(-1*d-y)/s],A=Ck(C,x);if(HT(C,x)<=-1&&(A=Ed),HT(C,x)>=1&&(A=0),A<0){var D=Math.round(A/Ed*1e6)/1e6;A=Ed*2+D%2*Ed}c.addData(u,S,b,o,s,w,A,f,a)}var cle=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,fle=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function hle(e){var t=new Oo;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Oo.CMD,l=e.match(cle);if(!l)return t;for(var u=0;uO*O+N*N&&(D=I,M=P),{cx:D,cy:M,x0:-c,y0:-f,x1:D*(i/C-1),y1:M*(i/C-1)}}function _le(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 Sle(e,t){var r,n=vv(t.r,0),i=vv(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,d=Ak(u-l),v=d>Ew&&d%Ew;if(v>ka&&(d=v),!(n>ka))e.moveTo(c,f);else if(d>Ew-ka)e.moveTo(c+n*xf(l),f+n*Mu(l)),e.arc(c,f,n,l,u,!h),i>ka&&(e.moveTo(c+i*xf(u),f+i*Mu(u)),e.arc(c,f,i,u,l,h));else{var g=void 0,m=void 0,y=void 0,S=void 0,b=void 0,w=void 0,C=void 0,x=void 0,A=void 0,D=void 0,M=void 0,I=void 0,P=void 0,E=void 0,F=void 0,O=void 0,N=n*xf(l),V=n*Mu(l),U=i*xf(u),G=i*Mu(u),Z=d>ka;if(Z){var ee=t.cornerRadius;ee&&(r=_le(ee),g=r[0],m=r[1],y=r[2],S=r[3]);var ie=Ak(n-i)/2;if(b=so(ie,y),w=so(ie,S),C=so(ie,g),x=so(ie,m),M=A=vv(b,w),I=D=vv(C,x),(A>ka||D>ka)&&(P=n*xf(u),E=n*Mu(u),F=i*xf(l),O=i*Mu(l),dka){var ve=so(y,M),me=so(S,M),Ce=Hm(F,O,N,V,n,ve,h),Ee=Hm(P,E,U,G,n,me,h);e.moveTo(c+Ce.cx+Ce.x0,f+Ce.cy+Ce.y0),M0&&e.arc(c+Ce.cx,f+Ce.cy,ve,Nn(Ce.y0,Ce.x0),Nn(Ce.y1,Ce.x1),!h),e.arc(c,f,n,Nn(Ce.cy+Ce.y1,Ce.cx+Ce.x1),Nn(Ee.cy+Ee.y1,Ee.cx+Ee.x1),!h),me>0&&e.arc(c+Ee.cx,f+Ee.cy,me,Nn(Ee.y1,Ee.x1),Nn(Ee.y0,Ee.x0),!h))}else e.moveTo(c+N,f+V),e.arc(c,f,n,l,u,!h);if(!(i>ka)||!Z)e.lineTo(c+U,f+G);else if(I>ka){var ve=so(g,I),me=so(m,I),Ce=Hm(U,G,P,E,i,-me,h),Ee=Hm(N,V,F,O,i,-ve,h);e.lineTo(c+Ce.cx+Ce.x0,f+Ce.cy+Ce.y0),I0&&e.arc(c+Ce.cx,f+Ce.cy,me,Nn(Ce.y0,Ce.x0),Nn(Ce.y1,Ce.x1),!h),e.arc(c,f,i,Nn(Ce.cy+Ce.y1,Ce.cx+Ce.x1),Nn(Ee.cy+Ee.y1,Ee.cx+Ee.x1),h),ve>0&&e.arc(c+Ee.cx,f+Ee.cy,ve,Nn(Ee.y1,Ee.x1),Nn(Ee.y0,Ee.x0),!h))}else e.lineTo(c+U,f+G),e.arc(c,f,i,u,l,h)}e.closePath()}}}var ble=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}(),ci=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ble},t.prototype.buildPath=function(r,n){Sle(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(_t);ci.prototype.type="sector";var wle=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),lg=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new wle},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}(_t);lg.prototype.type="ring";function xle(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,d=e.length;h=2){if(n){var a=xle(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;sLu[1]){if(s=!1,a)return s;var c=Math.abs(Lu[0]-Iu[1]),f=Math.abs(Iu[0]-Lu[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,h=c.delay,d=c.easing,v={duration:f,delay:h||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Bt(e,t,r,n,i,a){EM("update",e,t,r,n,i,a)}function xr(e,t,r,n,i,a){EM("enter",e,t,r,n,i,a)}function fh(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 Ik(e){return!e.isGroup}function Fle(e){return e.shape!=null}function fg(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){Ik(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Fle(o)&&(s.shape=fe({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Ik(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Bt(o,l,r,Qe(o).dataIndex)}}})}function _4(e,t){return be(e,function(r){var n=r[0];n=d_(n,t.x),n=v_(n,t.x+t.width);var i=r[1];return i=d_(i,t.y),i=v_(i,t.y+t.height),[n,i]})}function Vle(e,t){var r=d_(e.x,t.x),n=v_(e.x+e.width,t.x+t.width),i=d_(e.y,t.y),a=v_(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 hg(e,t,r){var n=fe({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),Ye(i,r),new bn(n)):W1(e.replace("path://",""),n,r,"center")}function pv(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var m=kw(d,v,c,f)/h;return!(m<0||m>1)}function kw(e,t,r,n){return e*n-r*t}function Ble(e){return e<=1e-6&&e>=-1e-6}function qh(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=ke(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(xt(l),function(c){Ne(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Qe(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ye({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Lk(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function eu(e,t){if(e)if(ge(e))for(var r=0;r=0&&s.push(l)}),s}}function tu(e,t){return ot(ot({},e,!0),t,!0)}const Kle={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:". "}}}},Jle={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 g_="ZH",NM="EN",hh=NM,b0={},FM={},A4=St.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||hh).toUpperCase();return e.indexOf(g_)>-1?g_:hh}():hh;function D4(e,t){e=e.toUpperCase(),FM[e]=new Zt(t),b0[e]=t}function Qle(e){if(ke(e)){var t=b0[e.toUpperCase()]||{};return e===g_||e===NM?je(t):ot(je(t),je(b0[hh]),!1)}else return ot(je(e),je(b0[hh]),!1)}function YT(e){return FM[e]}function eue(){return FM[hh]}D4(NM,Kle);D4(g_,Jle);var VM=1e3,BM=VM*60,Xv=BM*60,ya=Xv*24,Ok=ya*365,gv={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}"},Ym="{yyyy}-{MM}-{dd}",Nk={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ym,hour:Ym+" "+gv.hour,minute:Ym+" "+gv.minute,second:Ym+" "+gv.second,millisecond:gv.none},Fw=["year","month","day","hour","minute","second","millisecond"],M4=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ks(e,t){return e+="","0000".substr(0,t-e.length)+e}function dh(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 tue(e){return e===dh(e)}function rue(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function X1(e,t,r,n){var i=ko(e),a=i[zM(r)](),o=i[vh(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Z1(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Dp(r)](),f=(c-1)%12+1,h=i[q1(r)](),d=i[j1(r)](),v=i[K1(r)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=n instanceof Zt?n:YT(n||A4)||eue(),S=y.getModel("time"),b=S.get("month"),w=S.get("monthAbbr"),C=S.get("dayOfWeek"),x=S.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ks(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,Ks(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ks(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,C[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ks(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ks(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ks(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ks(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Ks(v,3)).replace(/{S}/g,v+"")}function nue(e,t,r,n,i){var a=null;if(ke(r))a=r;else if(We(r))a=r(e.value,t,{level:e.level});else{var o=fe({},gv);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 X1(new Date(e.value),a,i,n)}function I4(e,t){var r=ko(e),n=r[vh(t)]()+1,i=r[Z1(t)](),a=r[Dp(t)](),o=r[q1(t)](),s=r[j1(t)](),l=r[K1(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&a===0,d=h&&i===1,v=d&&n===1;return v?"year":d?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Fk(e,t,r){var n=Nt(e)?ko(e):e;switch(t=t||I4(e,r),t){case"year":return n[zM(r)]();case"half-year":return n[vh(r)]()>=6?1:0;case"quarter":return Math.floor((n[vh(r)]()+1)/4);case"month":return n[vh(r)]();case"day":return n[Z1(r)]();case"half-day":return n[Dp(r)]()/24;case"hour":return n[Dp(r)]();case"minute":return n[q1(r)]();case"second":return n[j1(r)]();case"millisecond":return n[K1(r)]()}}function zM(e){return e?"getUTCFullYear":"getFullYear"}function vh(e){return e?"getUTCMonth":"getMonth"}function Z1(e){return e?"getUTCDate":"getDate"}function Dp(e){return e?"getUTCHours":"getHours"}function q1(e){return e?"getUTCMinutes":"getMinutes"}function j1(e){return e?"getUTCSeconds":"getSeconds"}function K1(e){return e?"getUTCMilliseconds":"getMilliseconds"}function iue(e){return e?"setUTCFullYear":"setFullYear"}function L4(e){return e?"setUTCMonth":"setMonth"}function P4(e){return e?"setUTCDate":"setDate"}function R4(e){return e?"setUTCHours":"setHours"}function E4(e){return e?"setUTCMinutes":"setMinutes"}function k4(e){return e?"setUTCSeconds":"setSeconds"}function O4(e){return e?"setUTCMilliseconds":"setMilliseconds"}function N4(e){if(!P$(e))return ke(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function F4(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 Jh=dM;function XT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Ba(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?ko(e):e;if(isNaN(+l)){if(s)return"-"}else return X1(l,n,r)}if(t==="ordinal")return fT(e)?i(e):Nt(e)&&a(e)?e+"":"-";var u=Ts(e);return a(u)?N4(u):fT(e)?i(e):typeof e=="boolean"?e+"":"-"}var Vk=["a","b","c","d","e","f","g"],Vw=function(e,t){return"{"+e+(t??"")+"}"};function V4(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 Bc(e,t){return t=t||"transparent",ke(e)?e:qe(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function m_(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var w0=R,B4=["left","right","top","bottom","width","height"],uc=[["width","left","right"],["height","top","bottom"]];function GM(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(),d,v;if(e==="horizontal"){var g=c.width+(h?-h.x+c.x:0);d=a+g,d>n||l.newline?(a=0,d=g,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(h?-h.y+c.y:0);v=o+m,v>i||l.newline?(a+=s+r,o=0,v=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=d+r:o=v+r)})}var Dc=GM;rt(GM,"vertical");rt(GM,"horizontal");function sue(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=Jh(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function an(e,t,r){r=Jh(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],d=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(c)&&(c=i-l-f-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),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 v=new st(a+r[3],o+r[0],u,c);return v.margin=r,v}function J1(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 st(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=an(Ye({width:u.width,height:u.height},t),r,n),h=o?f.x-u.x:0,d=s?f.y-u.y:0;return l==="raw"?(a.x=h,a.y=d):(a.x+=h,a.y+=d),a===e&&e.markRedraw(),!0}function lue(e,t){return e[uc[t][0]]!=null||e[uc[t][1]]!=null&&e[uc[t][2]]!=null}function Mp(e){var t=e.layoutMode||e.constructor.layoutMode;return qe(t)?t:t?{type:t}:null}function Yl(e,t,r){var n=r&&r.ignoreSize;!ge(n)&&(n=[n,n]);var i=o(uc[0],0),a=o(uc[1],1);u(uc[0],e,i),u(uc[1],e,a);function o(c,f){var h={},d=0,v={},g=0,m=2;if(w0(c,function(b){v[b]=e[b]}),w0(c,function(b){s(t,b)&&(h[b]=v[b]=t[b]),l(h,b)&&d++,l(v,b)&&g++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(g===m||!d)return v;if(d>=m)return h;for(var y=0;y=0;l--)s=ot(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return og(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}(Zt);G$(wt,Zt);N1(wt);qle(wt);jle(wt,cue);function cue(e){var t=[];return R(wt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=be(t,function(r){return bo(r).main}),e!=="dataset"&&pt(t,"dataset")<=0&&t.unshift("dataset"),t}var G4="";typeof navigator<"u"&&(G4=navigator.platform||"");var Cf="rgba(0, 0, 0, 0.2)";const fue={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Cf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Cf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Cf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Cf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Cf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Cf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:G4.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 $4=Ve(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ta="original",Yn="arrayRows",Aa="objectRows",Fo="keyedColumns",kl="typedArray",H4="unknown",Ao="column",ed="row",Mn={Must:1,Might:2,Not:3},W4=Lt();function hue(e){W4(e).datasetMap=Ve()}function U4(e,t,r){var n={},i=HM(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=W4(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),R(e,function(g,m){var y=qe(g)?g:e[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,f=v(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=v(g);if(c==null){var b=h.valueWayDim;d(n[y],b,S),d(o,b,S),h.valueWayDim+=S}else if(c===m)d(n[y],0,S),d(a,0,S);else{var b=h.categoryWayDim;d(n[y],b,S),d(o,b,S),h.categoryWayDim+=S}});function d(g,m,y){for(var S=0;St)return e[n];return e[r-1]}function Z4(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:mue(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 yue(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Xm,kd,zk,Gk="\0_ec_inner",_ue=1,UM=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 Zt(a),this._locale=new Zt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=Wk(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Wk(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"?zk(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=Ve(),u=n&&n.replaceMergeMainTypeMap;hue(this),R(r,function(f,h){f!=null&&(wt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?je(f):ot(i[h],f,!0))}),u&&u.each(function(f,h){wt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),wt.topologicalTravel(s,wt.getAllClassMainTypes(),c,this);function c(f){var h=pue(this,f,nr(r[f])),d=a.get(f),v=d?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=N$(d,h,v);Woe(g,f,wt),i[f]=null,a.set(f,null),o.set(f,0);var m=[],y=[],S=0,b;R(g,function(w,C){var x=w.existing,A=w.newOption;if(!A)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var D=f==="series",M=wt.getClass(f,w.keyInfo.subType,!D);if(!M)return;if(f==="tooltip"){if(b)return;b=!0}if(x&&x.constructor===M)x.name=w.keyInfo.name,x.mergeOption(A,this),x.optionUpdated(A,!1);else{var I=fe({componentIndex:C},w.keyInfo);x=new M(A,this,this,I),fe(x,I),w.brandNew&&(x.__requireNewView=!0),x.init(A,this,this),x.optionUpdated(null,!0)}}x?(m.push(x.option),y.push(x),S++):(m.push(void 0),y.push(void 0))},this),i[f]=m,a.set(f,y),o.set(f,S),f==="series"&&Xm(this)}this._seriesIndices||Xm(this)},t.prototype.getOption=function(){var r=je(this.option);return R(r,function(n,i){if(wt.hasClass(i)){for(var a=nr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!xp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Gk],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 Mue(e,t){return e.join(",")===t.join(",")}var Pa=R,Ip=qe,Uk=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function zw(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Uk.length;r=0;m--){var y=e[m];if(s||(v=y.data.rawIndexOf(y.stackedByDimension,d)),v>=0){var S=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&S>0||l==="negative"&&S<0||l==="samesign"&&h>=0&&S>0||l==="samesign"&&h<=0&&S<0){h=Eoe(h,S),g=S;break}}}return n[0]=h,n[1]=g,n})})}var Q1=function(){function e(t){this.data=t.data||(t.sourceFormat===Fo?{}:[]),this.sourceFormat=t.sourceFormat||H4,this.seriesLayoutBy=t.seriesLayoutBy||Ao,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=b)}d[0]=v,d[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};Jk=(t={},t[Yn+"_"+Ao]={pure:!0,appendData:a},t[Yn+"_"+ed]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Aa]={pure:!0,appendData:a},t[Fo]={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[Ta]={appendData:a},t[kl]={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 Ch(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function rO(e){var t,r;return qe(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Zv(e){return new Uue(e)}var Uue=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 d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||d1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},Xue=function(){function e(t,r){if(!Nt(r)){var n="";Wt(n)}this._opFn=aH[t],this._rvalFloat=Ts(r)}return e.prototype.evaluate=function(t){return Nt(t)?this._opFn(t,this._rvalFloat):this._opFn(Ts(t),this._rvalFloat)},e}(),oH=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=Nt(t)?t:Ts(t),i=Nt(r)?r:Ts(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=ke(t),l=ke(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),Zue=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Ts(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=Ts(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function que(e,t){return e==="eq"||e==="ne"?new Zue(e==="eq",t):Ne(aH,e)?new Xue(e,t):null}var jue=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ol(t,r)},e}();function Kue(e,t){var r=new jue,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Ao&&Wt(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 b="";Ne(l,y)&&Wt(b),l[y]=S}});else for(var c=0;c65535?ace:oce}function Tf(){return[1/0,-1/0]}function sce(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function aO(e,t,r,n,i){var a=uH[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=be(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=v,l=d,u=0),d===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++}v=!0}else if(a===2){for(var m=d[i[0]],b=d[i[1]],w=t[i[1]][0],C=t[i[1]][1],y=0;y=f&&S<=h||isNaN(S))&&(x>=w&&x<=C||isNaN(x))&&(l[u++]=g),g++}v=!0}}if(!v)if(a===1)for(var y=0;y=f&&S<=h||isNaN(S))&&(l[u++]=A)}else for(var y=0;yt[I][1])&&(D=!1)}D&&(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,d=new(Nd(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var v=1;vc&&(c=f,h=w)}P>0&&Pc-v&&(l=c-v,s.length=l);for(var g=0;gf[1]&&(f[1]=y),h[d++]=S}return a._count=d,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 Ol(r[a],this._dimensions[a])}Hw={arrayRows:t,objectRows:function(r,n,i,a){return Ol(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ol(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),cH=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(Zm(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=Mi(s)?kl:Ta,a=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=tt(f.seriesLayoutBy,h.seriesLayoutBy)||null,v=tt(f.sourceHeader,h.sourceHeader),g=tt(f.dimensions,h.dimensions),m=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||g;i=m?[jT(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:g},l)]:[]}else{var y=t;if(n){var S=this._applyTransform(r);i=S.sourceList,a=S.upstreamSignList}else{var b=y.get("source",!0);i=[jT(b,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&&sO(a)}var o,s=[],l=[];return R(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&sO(f),s.push(c),l.push(u._getVersionSign())}),n?o=nce(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Vue(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=vH(i);a>=t&&(t=a+ +(n&&(!a||JT(i)&&!i.noHeader)))}),t}return 0}function cce(e,t,r,n){var i=t.noHeader,a=hce(vH(t)),o=[],s=t.blocks||[];li(!s||ge(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ne(u,l)){var c=new oH(u[l],null);s.sort(function(v,g){return c.evaluate(v.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(v,g){var m=t.valueFormatter,y=dH(v)(m?fe(fe({},e),{valueFormatter:m}):e,v,g>0?a.html:0,n);y!=null&&o.push(y)});var f=e.renderMode==="richText"?o.join(a.richText):QT(o.join(""),i?r:a.html);if(i)return f;var h=XT(t.header,"ordinal",e.useUTC),d=hH(n,e.renderMode).nameStyle;return e.renderMode==="richText"?pH(e,h,d)+a.richText+f:QT('
'+xi(h)+"
"+f,r)}function fce(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(w){return w=ge(w)?w:[w],be(w,function(C,x){return XT(C,ge(d)?d[x]:d,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":XT(l,"ordinal",u),d=t.valueType,v=o?[]:c(t.value,t.dataIndex),g=!s||!a,m=!s&&a,y=hH(n,i),S=y.nameStyle,b=y.valueStyle;return i==="richText"?(s?"":f)+(a?"":pH(e,h,S))+(o?"":pce(e,v,g,m,b)):QT((s?"":f)+(a?"":dce(h,!s,S))+(o?"":vce(v,g,m,b)),r)}}function lO(e,t,r,n,i,a){if(e){var o=dH(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function hce(e){return{html:lce[e],richText:uce[e]}}function QT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function dce(e,t,r){var n=t?"margin-left:2px":"";return''+xi(e)+""}function vce(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ge(e)?e:[e],''+be(e,function(o){return xi(o)}).join("  ")+""}function pH(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function pce(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 gH(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Bc(n)}function mH(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Ww=function(){function e(){this.richTextStyles={},this._nextStyleNameId=R$()}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=oue({color:r,type:t,renderMode:n,markerId:i});return ke(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};ge(r)?R(r,function(a){return fe(n,a)}):fe(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function yH(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=gH(t,r),c,f,h,d;if(o>1||l&&!o){var v=gce(s,t,r,a,u);c=v.inlineValues,f=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);d=c=Ch(i,r,a[0]),f=g.type}else d=c=l?s[0]:s;var m=bM(t),y=m&&t.name||"",S=i.getName(r),b=n?y:S;return pn("section",{header:y,noHeader:n||!m,sortParam:d,blocks:[pn("nameValue",{markerType:"item",markerColor:u,name:b,noName:!Ba(b),value:c,valueType:f,dataIndex:r})].concat(h||[])})}function gce(e,t,r,n,i){var a=t.getData(),o=Po(e,function(f,h,d){var v=a.getDimensionInfo(d);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(f){c(Ch(a,r,f),f)}):R(e,c);function c(f,h){var d=a.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(o?u.push(pn("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:f,valueType:d.type})):(s.push(f),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Js=Lt();function qm(e,t){return e.getName(t)||e.getId(t)}var x0="__universalTransitionEnabled",_r=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:yce,reset:_ce}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Js(this).sourceManager=new cH(this);a.prepareSource();var o=this.getInitialData(r,i);cO(o,this),this.dataTask.context.data=o,Js(this).dataBeforeProcessed=o,uO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Mp(this),a=i?Qh(r):{},o=this.subType;wt.hasClass(o)&&(o+="Series"),ot(r,n.getTheme().get(this.subType)),ot(r,this.getDefaultOption()),Oc(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Yl(r,a,i)},t.prototype.mergeOption=function(r,n){r=ot(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Mp(this);i&&Yl(this.option,r,i);var a=Js(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);cO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Js(this).dataBeforeProcessed=o,uO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Mi(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=WM.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[qm(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[x0])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"){qe(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return wt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(wt);en(_r,eS);en(_r,WM);G$(_r,wt);function uO(e){var t=e.name;bM(e)||(e.name=mce(e)||t)}function mce(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 yce(e){return e.model.getRawData().count()}function _ce(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Sce}function Sce(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function cO(e,t){R(t_(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,rt(bce,t))})}function bce(e,t){var r=eA(e);return r&&r.setOutputEnd((t||this).count()),t}function eA(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 Ke,this.uid=Kh("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}();xM(Mr);N1(Mr);function td(){var e=Lt();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 _H=Lt(),wce=td(),lr=function(){function e(){this.group=new Ke,this.uid=Kh("viewChart"),this.renderTask=Zv({plan:xce,reset:Cce}),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&&hO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&hO(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){eu(this.group,t)},e.markUpdateMethod=function(t,r){_H(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function fO(e,t,r){e&&Tp(e)&&(t==="emphasis"?As:Ds)(e,r)}function hO(e,t,r){var n=Nc(e,t),i=t&&t.highlightKey!=null?ole(t.highlightKey):null;n!=null?R(nr(n),function(a){fO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){fO(a,r,i)})}xM(lr);N1(lr);function xce(e){return wce(e.model)}function Cce(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&_H(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),Tce[l]}var Tce={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)}}},y_="\0__throttleOriginMethod",dO="\0__throttleRate",vO="\0__throttleType";function jM(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 d=[],v=0;v=0?f():o=setTimeout(f,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(d){c=d},h}function rd(e,t,r,n){var i=e[t];if(i){var a=i[y_]||i,o=i[vO],s=i[dO];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=jM(a,r,n==="debounce"),i[y_]=a,i[vO]=n,i[dO]=r}return i}}function Lp(e,t){var r=e[t];r&&r[y_]&&(r.clear&&r.clear(),e[t]=r[y_])}var pO=Lt(),gO={itemStyle:Fc(T4,!0),lineStyle:Fc(C4,!0)},Ace={lineStyle:"stroke",itemStyle:"fill"};function SH(e,t){var r=e.visualStyleMapper||gO[t];return r||(console.warn("Unknown style type '"+t+"'."),gO.itemStyle)}function bH(e,t){var r=e.visualDrawType||Ace[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Dce={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=SH(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=bH(e,n),u=o[l],c=We(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"||We(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||We(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(d,v){var g=e.getDataParams(v),m=fe({},o);m[l]=c(g),d.setItemVisual(v,"style",m)}}}},Fd=new Zt,Mce={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=SH(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Fd.option=l[n];var u=i(Fd),c=o.ensureUniqueItemVisual(s,"style");fe(c,u),Fd.option.decal&&(o.setItemVisual(s,"decal",Fd.option.decal),Fd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Ice={performRawSeries:!0,overallReset:function(e){var t=Ve();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)),pO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=pO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=bH(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"),d=n.getName(u)||u+"",v=n.count();h[l]=r.getColorFromPalette(d,o,v)}})}})}},jm=Math.PI;function Lce(e,t){t=t||{},Ye(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 Ke,n=new It({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new kt({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 It({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 H1({shape:{startAngle:-jm/2,endAngle:-jm/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:jm*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:jm*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 wH=function(){function e(t,r,n,i){this._stageTaskMap=Ve(),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=Ve();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="";li(!(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 d,v=h.agentStubMap;v.each(function(m){s(i,m)&&(m.dirty(),d=!0)}),d&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,i.block);v.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=Ve(),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,d=s.set(h,o&&o.get(h)||Zv({plan:Oce,reset:Nce,count:Vce}));d.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,d)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Zv({reset:Pce});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Ve(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,d="";li(!t.createOnAllSeries,d),u?n.eachRawSeriesByType(u,v):c?c(n,i).each(v):(f=!1,R(n.getSeries(),v));function v(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(h=!0,Zv({reset:Rce,onDirty:kce})));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 We(t)&&(t={overallReset:t,seriesType:Bce(t)}),t.uid=Kh("stageHandler"),r&&(t.visualType=r),t},e}();function Pce(e){e.overallReset(e.ecModel,e.api,e.payload)}function Rce(e){return e.overallProgress&&Ece}function Ece(){this.agent.dirty(),this.getDownstream().dirty()}function kce(){this.agent&&this.agent.dirty()}function Oce(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Nce(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=nr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?be(t,function(r,n){return xH(n)}):Fce}var Fce=xH(0);function xH(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&d===u.length-h.length){var v=u.slice(0,d);v!=="data"&&(r.mainType=v,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,d,v){return f[d]==null||h[v||d]===f[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),tA=["symbol","symbolSize","symbolRotate","symbolOffset"],SO=tA.concat(["symbolKeepAspect"]),$ce={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&&fc(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function rA(e,t,r){for(var n=t.type==="radial"?nfe(e,t,r):rfe(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Nt(e)?[e]:ge(e)?e:null}function JM(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&afe(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=be(r,function(a){return a/i}),n/=i)}return[r,n]}var ofe=new Oo(!0);function b_(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function bO(e){return typeof e=="string"&&e!=="none"}function w_(e){var t=e.fill;return t!=null&&t!=="none"}function wO(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 xO(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 nA(e,t,r){var n=CM(t.image,t.__image,r);if(F1(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)*c0),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function sfe(e,t,r,n){var i,a=b_(r),o=w_(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||ofe,f=t.__dirty;if(!n){var h=r.fill,d=r.stroke,v=o&&!!h.colorStops,g=a&&!!d.colorStops,m=o&&!!h.image,y=a&&!!d.image,S=void 0,b=void 0,w=void 0,C=void 0,x=void 0;(v||g)&&(x=t.getBoundingRect()),v&&(S=f?rA(e,h,x):t.__canvasFillGradient,t.__canvasFillGradient=S),g&&(b=f?rA(e,d,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(w=f||!t.__canvasFillPattern?nA(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=w),y&&(C=f||!t.__canvasStrokePattern?nA(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=S:m&&(w?e.fillStyle=w:o=!1),g?e.strokeStyle=b:y&&(C?e.strokeStyle=C:a=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var D,M;e.setLineDash&&r.lineDash&&(i=JM(t),D=i[0],M=i[1]);var I=!0;(u||f&Gf)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),I=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),I&&c.rebuildPath(e,l?s:1),D&&(e.setLineDash(D),e.lineDashOffset=M),n||(r.strokeFirst?(a&&xO(e,r),o&&wO(e,r)):(o&&wO(e,r),a&&xO(e,r))),D&&e.setLineDash([])}function lfe(e,t,r){var n=t.__image=CM(r.image,t.__image,t,t.onload);if(!(!n||!F1(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 ufe(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||$l,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=JM(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(b_(r)&&e.strokeText(i,r.x,r.y),w_(r)&&e.fillText(i,r.x,r.y)):(w_(r)&&e.fillText(i,r.x,r.y),b_(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var CO=["shadowBlur","shadowOffsetX","shadowOffsetY"],TO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function IH(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Ai(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?xc.opacity:o}(n||t.blend!==r.blend)&&(a||(Ai(e,i),a=!0),e.globalCompositeOperation=t.blend||xc.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[Fn]){if(this._disposed){this.id;return}var a,o,s;if(qe(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Fn]=!0,!this._model||n){var l=new Cue(this._api),u=this._theme,c=this._model=new UM;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},aA);var f={seriesTransition:s,optionChanged:!0};if(i)this[Si]={silent:a,updateParams:f},this[Fn]=!1,this.getZr().wakeUp();else{try{Df(this),Qs.update.call(this,null,f)}catch(h){throw this[Si]=null,this[Fn]=!1,h}this._ssr||this._zr.flush(),this[Si]=null,this[Fn]=!1,Vd.call(this,a),Bd.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||St.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(St.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(zO[i]){var l=s,u=s,c=-s,f=-s,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();R(jv,function(b,w){if(b.group===i){var C=n?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(je(r)),x=b.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:C,left:x.left,top:x.top})}}),l*=d,u*=d,c*=d,f*=d;var v=c-l,g=f-u,m=Hl.createCanvas(),y=UE(m,{renderer:n?"svg":"canvas"});if(y.resize({width:v,height:g}),n){var S="";return R(h,function(b){var w=b.left-l,C=b.top-u;S+=''+b.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 It({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),R(h,function(b){var w=new bn({style:{x:b.left*d-l,y:b.top*d-u,image:b.dom}});y.add(w)}),y.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return qw(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return qw(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?KM(s,l,n):vg(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(kfe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&cc(s,function(v){var g=Qe(v);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=fe({},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),d=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:d},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)}),Wce(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&&V$(this.getDom(),tI,"");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[Fn]){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[Si]&&(a==null&&(a=this[Si].silent),i=!0,this[Si]=null),this[Fn]=!0;try{i&&Df(this),Qs.update.call(this,{type:"resize",animation:fe({duration:0},r&&r.animation)})}catch(o){throw this[Fn]=!1,o}this[Fn]=!1,Vd.call(this,a),Bd.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(qe(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!oA[r]){var i=oA[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=fe({},r);return n.type=qv[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(qe(n)||(n={silent:!!n}),!!x_[r.type]&&this._model){if(this[Fn]){this._pendingActions.push(r);return}var i=n.silent;Kw.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&St.browser.weChat&&this._throttledZrFlush(),Vd.call(this,i),Bd.call(this,i)}},t.prototype.updateLabelLayout=function(){Na.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(){Df=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),Zw(f,!0),Zw(f,!1),h.plan()},Zw=function(f,h){for(var d=f._model,v=f._scheduler,g=h?f._componentsViews:f._chartsViews,m=h?f._componentsMap:f._chartsMap,y=f._zr,S=f._api,b=0;bh.get("hoverLayerThreshold")&&!St.node&&!St.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 d=f.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function s(f,h){if(!f.preventAutoZ){var d=f.get("z")||0,v=f.get("zlevel")||0;h.eachRendered(function(g){return l(g,d,v,-1/0),!0})}}function l(f,h,d,v){var g=f.getTextContent(),m=f.getTextGuideLine(),y=f.isGroup;if(y)for(var S=f.childrenRef(),b=0;b0?{duration:g,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(fh(y))return;if(y instanceof _t&&sle(y),y.__dirty){var S=y.prevStates;S&&y.useStates(S)}if(v){y.stateTransition=m;var b=y.getTextContent(),w=y.getTextGuideLine();b&&(b.stateTransition=m),w&&(w.stateTransition=m)}y.__dirty&&i(y)}})}VO=function(f){return new(function(h){j(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);v=v.parent}},d.prototype.enterEmphasis=function(v,g){As(v,g),ia(f)},d.prototype.leaveEmphasis=function(v,g){Ds(v,g),ia(f)},d.prototype.enterBlur=function(v){t4(v),ia(f)},d.prototype.leaveBlur=function(v){IM(v),ia(f)},d.prototype.enterSelect=function(v){r4(v),ia(f)},d.prototype.leaveSelect=function(v){n4(v),ia(f)},d.prototype.getModel=function(){return f.getModel()},d.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},d}(q4))(f)},WH=function(f){function h(d,v){for(var g=0;g=0)){GO.push(r);var a=wH.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function jH(e,t){oA[e]=t}function $fe(e,t,r){var n=_fe("registerMap");n&&n(e,t,r)}var Hfe=rce;jc(QM,Dce);jc(rS,Mce);jc(rS,Ice);jc(QM,$ce);jc(rS,Hce);jc(VH,mfe);ZH(K4);qH(wfe,Nue);jH("default",Lce);Vo({type:Cc,event:Cc,update:Cc},Ur);Vo({type:y0,event:y0,update:y0},Ur);Vo({type:Wv,event:Wv,update:Wv},Ur);Vo({type:_0,event:_0,update:_0},Ur);Vo({type:Uv,event:Uv,update:Uv},Ur);XH("light",zce);XH("dark",AH);var $O=[],Wfe={registerPreprocessor:ZH,registerProcessor:qH,registerPostInit:Vfe,registerPostUpdate:Bfe,registerUpdateLifecycle:rI,registerAction:Vo,registerCoordinateSystem:zfe,registerLayout:Gfe,registerVisual:jc,registerTransform:Hfe,registerLoading:jH,registerMap:$fe,registerImpl:yfe,PRIORITY:Pfe,ComponentModel:wt,ComponentView:Mr,SeriesModel:_r,ChartView:lr,registerComponentModel:function(e){wt.registerClass(e)},registerComponentView:function(e){Mr.registerClass(e)},registerSeriesModel:function(e){_r.registerClass(e)},registerChartView:function(e){lr.registerClass(e)},registerSubTypeDefaulter:function(e,t){wt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Doe(e,t)}};function gt(e){if(ge(e)){R(e,function(t){gt(t)});return}pt($O,e)>=0||($O.push(e),We(e)&&(e={install:e}),e.install(Wfe))}function zd(e){return e==null?0:e.length||1}function HO(e){return e}var Ms=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||HO,this._newKeyGetter=i||HO,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 d=0;d1)for(var s=0;s30}var Gd=qe,el=be,jfe=typeof Int32Array>"u"?Array:Int32Array,Kfe="e\0\0",WO=-1,Jfe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Qfe=["_approximateExtent"],UO,ty,$d,Hd,ex,ry,tx,oi=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;JH(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===Ta;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():Gd(a)&&(a=fe({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Gd(r)?fe(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Gd(t)?fe(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?fe(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;VT(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:el(this.dimensions,this._getDimInfo,this),this.hostModel)),ex(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];We(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(hM(arguments)))})},e.internalField=function(){UO=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 jfe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();function pg(e,t){YM(e)||(e=XM(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Ve(),a=[],o=the(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&tW(o),l=n===e.dimensionsDefine,u=l?eW(e):QH(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=Ve(c),h=new lH(o),d=0;d0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function the(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return R(t,function(a){var o;qe(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function rhe(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 nhe=function(){function e(t){this.coordSysDims=[],this.axisMap=Ve(),this.categoryAxisMap=Ve(),this.coordSysName=t}return e}();function ihe(e){var t=e.get("coordinateSystem"),r=new nhe(t),n=ahe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var ahe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",jr).models[0],a=e.getReferringComponents("yAxis",jr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Mf(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Mf(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",jr).models[0];t.coordSysDims=["single"],r.set("single",i),Mf(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",jr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Mf(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Mf(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),Mf(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Mf(e){return e.get("type")==="category"}function ohe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;she(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,b){ke(S)&&(a[b]=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 d=c.coordDim,v=c.type,g=0;R(a,function(S){S.coordDim===d&&g++});var m={name:f,coordDim:d,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,v),y.storeDimIndex=s.ensureCalculationDimension(f,v)),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 she(e){return!JH(e.schema)}function Xl(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function rW(e,t){return Xl(e,t)?e.getCalculationInfo("stackResultDimension"):t}function lhe(e,t){var r=e.get("coordinateSystem"),n=dg.get(r),i;return t&&t.coordSysDims&&(i=be(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=T_(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function uhe(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 Ns(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=XM(e)):(i=n.getSource(),a=i.sourceFormat===Ta);var o=ihe(t),s=lhe(t,o),l=r.useEncodeDefaulter,u=We(l)?l:l?rt(U4,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=pg(i,c),h=uhe(f.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(f),v=ohe(t,{schema:f,store:d}),g=new oi(f,t);g.setCalculationInfo(v);var m=h!=null&&che(i)?function(y,S,b,w){return w===h?b:this.defaultDimValueGetter(y,S,b,w)}:null;return g.hasItemOption=!1,g.initData(a?i:d,null,m),g}function che(e){if(e.sourceFormat===Ta){var t=fhe(e.data||[]);return!ge(Yh(t))}}function fhe(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}();N1(Bo);var hhe=0,sA=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++hhe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&be(n,dhe);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(!ke(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=Ve(this.categories))},e}();function dhe(e){return qe(e)&&e.value!=null?e.value:e+""}function lA(e){return e.type==="interval"||e.type==="log"}function vhe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=L$(a/t);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=nW(o),l=i.niceTickExtent=[Br(Math.ceil(e[0]/o)*o,s),Br(Math.floor(e[1]/o)*o,s)];return phe(l,e),i}function rx(e){var t=Math.pow(10,SM(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Br(r*t)}function nW(e){return So(e)+2}function YO(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function phe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),YO(e,0,t),YO(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function nS(e,t){return e>=t[0]&&e<=t[1]}function iS(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function aS(e,t){return e*(t[1]-t[0])+t[0]}var oS=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 sA({})),ge(i)&&(i=new sA({categories:be(i,function(a){return qe(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:ke(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),nS(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),iS(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(aS(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}(Bo);Bo.registerClass(oS);var ku=Br,Is=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 nS(r,this._extent)},t.prototype.normalize=function(r){return iS(r,this._extent)},t.prototype.scale=function(r){return aS(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=nW(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:ku(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]&&d0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function oW(e){var t=yhe(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 d=n.getData();s=Math.abs(o[1]-o[0])/d.count()}var v=Ie(n.get("barWidth"),s),g=Ie(n.get("barMaxWidth"),s),m=Ie(n.get("barMinWidth")||(fW(n)?.5:1),s),y=n.get("barGap"),S=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:S,axisKey:aI(a),stackId:iI(n)})}),sW(r)}function sW(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 d=n.barGap;d!=null&&(s.gap=d);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});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=xt(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,d=(f-u)/(h+(h-1)*c);d=Math.max(d,0),R(a,function(y){var S=y.maxWidth,b=y.minWidth;if(y.width){var w=y.width;S&&(w=Math.min(w,S)),b&&(w=Math.max(w,b)),y.width=w,f-=w+c*w,h--}else{var w=d;S&&Sw&&(w=b),w!==d&&(y.width=w,f-=w+c*w,h--)}}),d=(f-u)/(h+(h-1)*c),d=Math.max(d,0);var v=0,g;R(a,function(y,S){y.width||(y.width=d),g=y,v+=y.width*(1+c)}),g&&(v-=g.width*c);var m=-v/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 _he(e,t,r){if(e&&t){var n=e[aI(t)];return n!=null&&r!=null?n[iI(r)]:n}}function lW(e,t){var r=aW(e,t),n=oW(r);R(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=iI(i),u=n[aI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function uW(e){return{seriesType:e,plan:td(),reset:function(t){if(cW(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=Xl(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),d=She(i,a),v=fW(t),g=t.get("barMinHeight")||0,m=c&&r.getDimensionIndex(c),y=r.getLayout("size"),S=r.getLayout("offset");return{progress:function(b,w){for(var C=b.count,x=v&&wo(C*3),A=v&&l&&wo(C*3),D=v&&wo(C),M=n.master.getRect(),I=h?M.width:M.height,P,E=w.getStore(),F=0;(P=b.next())!=null;){var O=E.get(f?m:o,P),N=E.get(s,P),V=d,U=void 0;f&&(U=+O-E.get(o,P));var G=void 0,Z=void 0,ee=void 0,ie=void 0;if(h){var pe=n.dataToPoint([O,N]);if(f){var De=n.dataToPoint([U,N]);V=De[0]}G=V,Z=pe[1]+S,ee=pe[0]-V,ie=y,Math.abs(ee)0?r:1:r))}var bhe=function(e,t,r,n){for(;r>>1;e[i][1]i&&(this._approxInterval=i);var s=ny.length,l=Math.min(bhe(ny,this._approxInterval,0,s),s-1);this._interval=ny[l][1],this._minLevelUnit=ny[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Nt(r)?r:+ko(r)},t.prototype.contain=function(r){return nS(this.parse(r),this._extent)},t.prototype.normalize=function(r){return iS(this.parse(r),this._extent)},t.prototype.scale=function(r){return aS(r,this._extent)},t.type="time",t}(Is),ny=[["second",VM],["minute",BM],["hour",Xv],["quarter-day",Xv*6],["half-day",Xv*12],["day",ya*1.2],["half-week",ya*3.5],["week",ya*7],["month",ya*31],["quarter",ya*95],["half-year",Ok/2],["year",Ok]];function whe(e,t,r,n){var i=ko(t),a=ko(r),o=function(v){return Fk(i,v,n)===Fk(a,v,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")},d=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 d()}}function xhe(e,t){return e/=ya,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Che(e){var t=30*ya;return e/=t,e>6?6:e>3?3:e>2?2:1}function The(e){return e/=Xv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function XO(e,t){return e/=t?BM:VM,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Ahe(e){return L$(e)}function Dhe(e,t,r){var n=new Date(e);switch(dh(t)){case"year":case"month":n[L4(r)](0);case"day":n[P4(r)](1);case"hour":n[R4(r)](0);case"minute":n[E4(r)](0);case"second":n[k4(r)](0),n[O4(r)](0)}return n.getTime()}function Mhe(e,t,r,n){var i=1e4,a=M4,o=0;function s(I,P,E,F,O,N,V){for(var U=new Date(P),G=P,Z=U[F]();G1&&N===0&&E.unshift({value:E[0].value-G})}}for(var N=0;N=n[0]&&S<=n[1]&&f++)}var b=(n[1]-n[0])/t;if(f>b*1.5&&h>b/1.5||(u.push(m),f>b||e===a[d]))break}c=[]}}}for(var w=er(be(u,function(I){return er(I,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],x=w.length-1,d=0;d0;)a*=10;var s=[Br(Phe(n[0]/a)*a),Br(Lhe(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=Ra(r)/Ra(this.base),nS(r,this._extent)},t.prototype.normalize=function(r){return r=Ra(r)/Ra(this.base),iS(r,this._extent)},t.prototype.scale=function(r){return r=aS(r,this._extent),iy(this.base,r)},t.type="log",t}(Bo),hW=sI.prototype;hW.getMinorTicks=Kv.getMinorTicks;hW.getLabel=Kv.getLabel;function ay(e,t){return Ihe(e,So(t))}Bo.registerClass(sI);var Rhe=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,d=this._determinedMax;return h!=null&&(s=h,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[khe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Ehe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Ehe={min:"_determinedMin",max:"_determinedMax"},khe={min:"_dataMin",max:"_dataMax"};function dW(e,t,r){var n=e.rawExtentInfo;return n||(n=new Rhe(e,t,r),e.rawExtentInfo=n,n)}function oy(e,t){return t==null?null:yp(t)?NaN:e.parse(t)}function vW(e,t){var r=e.type,n=dW(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=aW("bar",o),l=!1;if(R(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=oW(s),c=Ohe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function Ohe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=_he(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;R(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;R(o,function(d){l=Math.max(d.offset+d.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 Ah(e,t){var r=t,n=vW(e,r),i=n.extent,a=r.get("splitNumber");e instanceof sI&&(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 sS(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new oS({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new oI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Bo.getClass(t)||Is)}}function Nhe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function id(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):ke(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):We(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(lI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function lI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Fhe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof oS?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=id(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var gg=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),zhe=1e-8;function qO(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return $he(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"?jO(s.exterior,i,a,r):R(s.points,function(l){jO(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 st(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 Uhe(e,t){return e=Whe(e),be(er(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 KO(o[0],o.slice(1)));break;case"MultiPolygon":R(i.coordinates,function(l){l[0]&&a.push(new KO(l[0],l.slice(1)))});break;case"LineString":a.push(new JO([i.coordinates]));break;case"MultiLineString":a.push(new JO(i.coordinates))}var s=new mW(n[t||"name"],a,n.cp);return s.properties=n,s})}var Ep=Lt();function _W(e,t){var r=be(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 Yhe(e){var t=e.getLabelModel().get("customValues");if(t){var r=id(e);return{labels:_W(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?Zhe(e):jhe(e)}function Xhe(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:_W(e,r)}:e.type==="category"?qhe(e,t):{ticks:be(e.scale.getTicks(),function(n){return n.value})}}function Zhe(e){var t=e.getLabelModel(),r=SW(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function SW(e,t){var r=bW(e,"labels"),n=uI(t),i=wW(r,n);if(i)return i;var a,o;return We(n)?a=TW(e,n):(o=n==="auto"?Khe(e):n,a=CW(e,o)),xW(r,n,{labels:a,labelCategoryInterval:o})}function qhe(e,t){var r=bW(e,"ticks"),n=uI(t),i=wW(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),We(n))a=TW(e,n,!0);else if(n==="auto"){var s=SW(e,e.getLabelModel());o=s.labelCategoryInterval,a=be(s.labels,function(l){return l.tickValue})}else o=n,a=CW(e,o,!0);return xW(r,n,{ticks:a,tickCategoryInterval:o})}function jhe(e){var t=e.scale.getTicks(),r=id(e);return{labels:be(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function bW(e,t){return Ep(e)[t]||(Ep(e)[t]=[])}function wW(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,d=0;l<=a[1];l+=s){var v=0,g=0,m=ag(r({value:l}),t.font,"center","top");v=m.width*1.3,g=m.height*1.3,h=Math.max(h,v,7),d=Math.max(d,g,7)}var y=h/c,S=d/f;isNaN(y)&&(y=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(y,S))),w=Ep(e.model),C=e.getExtent(),x=w.lastAutoInterval,A=w.lastTickCount;return x!=null&&A!=null&&Math.abs(x-b)<=1&&Math.abs(A-o)<=1&&x>b&&w.axisExtent0===C[0]&&w.axisExtent1===C[1]?b=x:(w.lastTickCount=o,w.lastAutoInterval=b,w.axisExtent0=C[0],w.axisExtent1=C[1]),b}function Qhe(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 CW(e,t,r){var n=id(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=pW(e),h=o.get("showMinLabel")||f,d=o.get("showMaxLabel")||f;h&&u!==a[0]&&g(a[0]);for(var v=u;v<=a[1];v+=l)g(v);d&&v-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 TW(e,t,r){var n=e.scale,i=id(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 QO=[0,1],Ja=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 M$(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(),eN(n,i.count())),Kt(t,QO,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),eN(n,i.count()));var a=Kt(t,n,QO,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=Xhe(this,r),i=n.ticks,a=be(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return ede(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=be(n,function(a){return be(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return Yhe(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 Jhe(this)},e}();function eN(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function ede(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(d){d.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(d,v){return d=Br(d),v=Br(v),f?d>v:di&&(i+=Wd);var d=Math.atan2(s,o);if(d<0&&(d+=Wd),d>=n&&d<=i||d+Wd>=n&&d+Wd<=i)return l[0]=c,l[1]=f,u-r;var v=r*Math.cos(n)+e,g=r*Math.sin(n)+t,m=r*Math.cos(i)+e,y=r*Math.sin(i)+t,S=(v-o)*(v-o)+(g-s)*(g-s),b=(m-o)*(m-o)+(y-s)*(y-s);return S0){t=t/180*Math.PI,za.fromArray(e[0]),mr.fromArray(e[1]),Hr.fromArray(e[2]),nt.sub(xo,za,mr),nt.sub(mo,Hr,mr);var r=xo.len(),n=mo.len();if(!(r<.001||n<.001)){xo.scale(1/r),mo.scale(1/n);var i=xo.dot(mo),a=Math.cos(t);if(a1&&nt.copy(ii,Hr),ii.toArray(e[1])}}}}function ode(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,za.fromArray(e[0]),mr.fromArray(e[1]),Hr.fromArray(e[2]),nt.sub(xo,mr,za),nt.sub(mo,Hr,mr);var n=xo.len(),i=mo.len();if(!(n<.001||i<.001)){xo.scale(1/n),mo.scale(1/i);var a=xo.dot(t),o=Math.cos(r);if(a=l)nt.copy(ii,Hr);else{ii.scaleAndAdd(mo,s/Math.tan(Math.PI/2-c));var f=Hr.x!==mr.x?(ii.x-mr.x)/(Hr.x-mr.x):(ii.y-mr.y)/(Hr.y-mr.y);if(isNaN(f))return;f<0?nt.copy(ii,mr):f>1&&nt.copy(ii,Hr)}ii.toArray(e[1])}}}}function ax(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 sde(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=Sl(n[0],n[1]),a=Sl(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=h0([],n[1],n[0],o/i),l=h0([],n[1],n[2],o/a),u=h0([],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&&C(-c/o,0,o);var g=e[0],m=e[o-1],y,S;b(),y<0&&x(-y,.8),S<0&&x(S,.8),b(),w(y,S,1),w(S,y,-1),b(),y<0&&A(-y),S<0&&A(S);function b(){y=g.rect[t]-n,S=i-m.rect[t]-m.rect[r]}function w(D,M,I){if(D<0){var P=Math.min(M,-D);if(P>0){C(P*I,0,o);var E=P+D;E<0&&x(-E*I,1)}else x(-D*I,1)}}function C(D,M,I){D!==0&&(u=!0);for(var P=M;P0)for(var E=0;E0;E--){var V=I[E-1]*N;C(-V,E,o)}}}function A(D){var M=D<0?-1:1;D=Math.abs(D);for(var I=Math.ceil(D/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),D-=I,D<=0)return}return u}function lde(e,t,r,n){return IW(e,"x","width",t,r,n)}function LW(e,t,r,n){return IW(e,"y","height",t,r,n)}function PW(e){var t=[];e.sort(function(g,m){return m.priority-g.priority});var r=new st(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),pt(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Bt(n,u,r,l)}else if(n.attr(u),!jh(n).valueAnimation){var f=tt(n.style.opacity,1);n.style.opacity=0,xr(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var d=a.oldLayoutSelect={};sy(d,u,ly),sy(d,n.states.select,ly)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};sy(v,u,ly),sy(v,n.states.emphasis,ly)}x4(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=fde(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Bt(i,{shape:g},r)):(i.setShape(g),i.style.strokePercent=0,xr(i,{style:{strokePercent:1}},r)),a.oldLayout=g}},e}(),sx=Lt();function dde(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=sx(r).labelManager;i||(i=sx(r).labelManager=new hde),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=sx(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var lx=Math.sin,ux=Math.cos,RW=Math.PI,Nu=Math.PI*2,vde=180/RW,EW=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=Tl(f-Nu)||(c?u>=Nu:-u>=Nu),d=u>0?u%Nu:u%Nu+Nu,v=!1;h?v=!0:Tl(f)?v=!1:v=d>=RW==!!c;var g=t+n*ux(o),m=r+i*lx(o);this._start&&this._add("M",g,m);var y=Math.round(a*vde);if(h){var S=1/this._p,b=(c?1:-1)*(Nu-S);this._add("A",n,i,y,1,+c,t+n*ux(o+b),r+i*lx(o+b)),S>.01&&this._add("A",n,i,y,0,+c,g,m)}else{var w=t+n*ux(s),C=r+i*lx(s);this._add("A",n,i,y,+v,+c,w,C)}},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 xde(e){return""}function dI(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 wde(o,s)+(o!=="style"?xi(l):l||"")+(a?""+r+be(a,function(u){return n(u)}).join(r)+r:"")+xde(o)}return n(e)}function Cde(e,t,r){r=r||{};var n=r.newline?` +`:"",i=" {"+n,a=n+"}",o=be(xt(e),function(l){return l+i+be(xt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=be(xt(t),function(l){return"@keyframes "+l+i+be(xt(t[l]),function(u){return u+i+be(xt(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 fA(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function iN(e,t,r,n){return fn("svg","root",{width:e,height:t,xmlns:kW,"xmlns:xlink":OW,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var Tde=0;function FW(){return Tde++}var aN={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"},$u="transform-origin";function Ade(e,t,r){var n=fe({},e.shape);fe(n,t),e.buildPath(r,n);var i=new EW;return i.reset(_$(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function Dde(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[$u]=r+"px "+n+"px")}var Mde={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function VW(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Ide(e,t,r){var n=e.shape.paths,i={},a,o;if(R(n,function(l){var u=fA(r.zrId);u.animation=!0,lS(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=xt(c),d=h.length;if(d){o=h[d-1];var v=c[o];for(var g in v){var m=v[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=VW(i,r);return a.replace(o,s)}}function oN(e){return ke(e)?aN[e]?"cubic-bezier("+aN[e]+")":mM(e)?e:"":""}function lS(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof RM){var s=Ide(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var oe=VW(A,r);return oe+" "+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-"+FW();r.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function Lde(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};sN(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=xT(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),sN(n,t,r)}}function sN(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+FW(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var kp=Math.round;function BW(e){return e&&ke(e.src)}function zW(e){return e&&We(e.toDataURL)}function vI(e,t,r,n){_de(function(i,a){var o=i==="fill"||i==="stroke";o&&y$(a)?$W(t,e,i,n):o&&yM(a)?HW(r,e,i,n):o&&a==="none"?e[i]="transparent":e[i]=a},t,r,!1),Fde(r,e,n)}function pI(e,t){var r=Moe(t);r&&(r.each(function(n,i){n!=null&&(e[(nN+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[nN+"silent"]="true"))}function lN(e){return Tl(e[0]-1)&&Tl(e[1])&&Tl(e[2])&&Tl(e[3]-1)}function Pde(e){return Tl(e[4])&&Tl(e[5])}function gI(e,t,r){if(t&&!(Pde(t)&&lN(t))){var n=1e4;e.transform=lN(t)?"translate("+kp(t[4]*n)/n+" "+kp(t[5]*n)/n+")":Kae(t)}}function uN(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.";li(h,m),li(d,m)}else if(h==null||d==null){var y=function(I,P){if(I){var E=I.elm,F=h||P.width,O=d||P.height;I.tag==="pattern"&&(u?(O=1,F/=a.width):c&&(F=1,O/=a.height)),I.attrs.width=F,I.attrs.height=O,E&&(E.setAttribute("width",F),E.setAttribute("height",O))}},S=CM(v,null,e,function(I){l||y(x,I),y(f,I)});S&&S.width&&S.height&&(h=h||S.width,d=d||S.height)}f=fn("image","img",{href:v,width:h,height:d}),o.width=h,o.height=d}else i.svgElement&&(f=je(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var b,w;l?b=w=1:u?(w=1,b=o.width/a.width):c?(b=1,w=o.height/a.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),w!=null&&!isNaN(w)&&(o.height=w);var C=S$(i);C&&(o.patternTransform=C);var x=fn("pattern","",o,[f]),A=dI(x),D=n.patternCache,M=D[A];M||(M=n.zrId+"-p"+n.patternIdx++,D[A]=M,o.id=M,x=n.defs[M]=fn("pattern",M,o,[f])),t[r]=E1(M)}}function Vde(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]=fn("clipPath",a,o,[GW(e,r)])}t["clip-path"]=E1(a)}function hN(e){return document.createTextNode(e)}function Ju(e,t,r){e.insertBefore(t,r)}function dN(e,t){e.removeChild(t)}function vN(e,t){e.appendChild(t)}function WW(e){return e.parentNode}function UW(e){return e.nextSibling}function cx(e,t){e.textContent=t}var pN=58,Bde=120,zde=fn("","");function hA(e){return e===void 0}function vo(e){return e!==void 0}function Gde(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 yv(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Op(e){var t,r=e.children,n=e.tag;if(vo(n)){var i=e.elm=NW(n);if(mI(zde,e),ge(r))for(t=0;ta?(v=r[l+1]==null?null:r[l+1].elm,YW(e,v,r,i,l)):I_(e,t,n,a))}function Hf(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(mI(e,t),hA(t.text)?vo(n)&&vo(i)?n!==i&&$de(r,n,i):vo(i)?(vo(e.text)&&cx(r,""),YW(r,null,i,0,i.length-1)):vo(n)?I_(r,n,0,n.length-1):vo(e.text)&&cx(r,""):e.text!==t.text&&(vo(n)&&I_(r,n,0,n.length-1),cx(r,t.text)))}function Hde(e,t){if(yv(e,t))Hf(e,t);else{var r=e.elm,n=WW(r);Op(t),n!==null&&(Ju(n,t.elm,UW(r)),I_(n,[e],0,0))}return t}var Wde=0,Ude=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=gN(),this.configLayer=gN(),this.storage=r,this._opts=n=fe({},n),this.root=t,this._id="zr"+Wde++,this._oldVNode=iN(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=NW("svg");mI(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",Hde(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return fN(t,fA(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=fA(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis;var o=[],s=this._bgVNode=Yde(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=fn("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=be(xt(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(fn("defs","defs",{},u)),t.animation){var c=Cde(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=fn("style","stl",{},[],c);o.push(f)}}return iN(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},dI(this.renderToVNode({animation:tt(t.cssAnimation,!0),emphasis:tt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:tt(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=v-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)D=m.__endIndex;else for(var I=d.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?uy:0),this._needsManuallyCompositing),c.__builtin__||cM("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&Gi&&!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]?ot(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}(_r);function Dh(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Ch(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 mg=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=Qr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=eve,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(){As(this.childAt(0))},t.prototype.downplay=function(){Ds(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 d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Bt(h,d,s,n),Za(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,xr(h,d,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,d,v,g,m,y;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,h=a.focus,d=a.blurScope,g=a.labelStatesModels,m=a.hoverScale,y=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var S=a&&a.itemModel?a.itemModel:r.getItemModel(n),b=S.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=S.getModel(["select","itemStyle"]).getItemStyle(),c=S.getModel(["blur","itemStyle"]).getItemStyle(),h=b.get("focus"),d=b.get("blurScope"),v=b.get("disabled"),g=vn(S),m=b.getShallow("scale"),y=S.getShallow("cursor")}var w=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var C=qc(r.getItemVisual(n,"symbolOffset"),i);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var x=r.getItemVisual(n,"style"),A=x.fill;if(s instanceof bn){var D=s.style;s.useStyle(fe({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},x))}else s.__isEmptyBrush?s.useStyle(fe({},x)):s.useStyle(x),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=r.getItemVisual(n,"liftZ"),I=this._z2;M!=null?I==null&&(this._z2=s.z2,s.z2+=M):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Rn(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:A,defaultOpacity:x.opacity});function E(N){return P?r.getName(N):Dh(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),Nr(this,h,d,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Qe(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ul(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ul(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return nd(r.getItemVisual(n,"symbolSize"))},t}(Ke);function eve(e,t){this.parent.drift(e,t)}function hx(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 _N(e){return e!=null&&!qe(e)&&(e={isIgnore:e}),e||{}}function SN(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:vn(t),cursorStyle:t.get("cursor")}}var yg=function(){function e(t){this.group=new Ke,this._SymbolCtor=t||mg}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=_N(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=SN(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(hx(t,h,f,r)){var d=new o(t,f,l,u);d.setPosition(h),t.setItemGraphicEl(f,d),n.add(d)}}).update(function(f,h){var d=a.getItemGraphicEl(h),v=c(f);if(!hx(t,v,f,r)){n.remove(d);return}var g=t.getItemVisual(f,"symbol")||"circle",m=d&&d.getSymbolType&&d.getSymbolType();if(!d||m&&m!==g)n.remove(d),d=new o(t,f,l,u),d.setPosition(v);else{d.updateData(t,f,l,u);var y={x:v[0],y:v[1]};s?d.attr(y):Bt(d,y,i)}n.add(d),t.setItemGraphicEl(f,d)}).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=SN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=_N(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 qW(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 rve(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 nve(e,t,r,n,i,a,o,s){for(var l=rve(e,t),u=[],c=[],f=[],h=[],d=[],v=[],g=[],m=ZW(i,t,o),y=e.getLayout("points")||[],S=t.getLayout("points")||[],b=0;b=i||g<0)break;if(Mc(y,S)){if(l){g+=a;continue}break}if(g===r)e[a>0?"moveTo":"lineTo"](y,S),f=y,h=S;else{var b=y-u,w=S-c;if(b*b+w*w<.5){g+=a;continue}if(o>0){for(var C=g+a,x=t[C*2],A=t[C*2+1];x===y&&A===S&&m=n||Mc(x,A))d=y,v=S;else{I=x-u,P=A-c;var O=y-u,N=x-y,V=S-c,U=A-S,G=void 0,Z=void 0;if(s==="x"){G=Math.abs(O),Z=Math.abs(N);var ee=I>0?1:-1;d=y-ee*G*o,v=S,E=y+ee*Z*o,F=S}else if(s==="y"){G=Math.abs(V),Z=Math.abs(U);var ie=P>0?1:-1;d=y,v=S-ie*G*o,E=y,F=S+ie*Z*o}else G=Math.sqrt(O*O+V*V),Z=Math.sqrt(N*N+U*U),M=Z/(Z+G),d=y-I*o*(1-M),v=S-P*o*(1-M),E=y+I*o*M,F=S+P*o*M,E=tl(E,rl(x,y)),F=tl(F,rl(A,S)),E=rl(E,tl(x,y)),F=rl(F,tl(A,S)),I=E-y,P=F-S,d=y-I*G/Z,v=S-P*G/Z,d=tl(d,rl(u,y)),v=tl(v,rl(c,S)),d=rl(d,tl(u,y)),v=rl(v,tl(c,S)),I=y-d,P=S-v,E=y+I*Z/G,F=S+P*Z/G}e.bezierCurveTo(f,h,d,v,y,S),f=E,h=F}else e.lineTo(y,S)}u=y,c=S,g+=a}return m}var jW=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),ive=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 jW},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Mc(i[o*2-2],i[o*2-1]);o--);for(;a=0){var w=u?(v-l)*b+l:(d-s)*b+s;return u?[r,w]:[w,r]}s=d,l=v;break;case o.C:d=a[f++],v=a[f++],g=a[f++],m=a[f++],y=a[f++],S=a[f++];var C=u?i_(s,d,g,y,r,c):i_(l,v,m,S,r,c);if(C>0)for(var x=0;x=0){var w=u?ln(l,v,m,S,A):ln(s,d,g,y,A);return u?[r,w]:[w,r]}}s=y,l=S;break}}},t}(_t),ave=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(jW),KW=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 ave},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&&Mc(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 lve(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=be(a.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=sve(u,i==="x"?r.getWidth():r.getHeight()),d=h.length;if(!d&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,g=h[0].coord-v,m=h[d-1].coord+v,y=m-g;if(y<.001)return"transparent";R(h,function(b){b.offset=(b.coord-g)/y}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||"transparent"});var S=new cg(0,0,0,0,h,!0);return S[i]=g,S[i+"2"]=m,S}}}function uve(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&cve(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 cve(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 fve(e,t){return isNaN(e)||isNaN(t)}function hve(e){for(var t=e.length/2;t>0&&fve(e[t*2-2],e[t*2-1]);t--);return t-1}function TN(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 eU(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var ee=g.getState("emphasis").style;ee.lineWidth=+g.style.lineWidth+1}Qe(g).seriesIndex=r.seriesIndex,Nr(g,U,G,Z);var ie=CN(r.get("smooth")),pe=r.get("smoothMonotone");if(g.setShape({smooth:ie,smoothMonotone:pe,connectNulls:D}),m){var De=l.getCalculationInfo("stackedOnSeries"),Le=0;m.useStyle(Ye(c.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),De&&(Le=CN(De.get("smooth"))),m.setShape({smooth:ie,stackedOnSmooth:Le,smoothMonotone:pe,connectNulls:D}),Pn(m,r,"areaStyle"),Qe(m).seriesIndex=r.seriesIndex,Nr(m,U,G,Z)}var ze=function(He){a._changePolyState(He)};l.eachItemGraphicEl(function(He){He&&(He.onHoverStateChange=ze)}),this._polyline.onHoverStateChange=ze,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=P,this._valueOrigin=w,r.get("triggerLineEvent")&&(this.packEventData(r,g),m&&this.packEventData(r,m))},t.prototype.packEventData=function(r,n){Qe(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=Nc(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,d=r.get("z")||0;u=new mg(o,s),u.x=c,u.y=f,u.setZ(h,d);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=h,v.z=d,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else lr.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Nc(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 lr.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;f_(this._polyline,r),n&&f_(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new ive({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 KW({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");We(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=We(f)?f(null):f;r.eachItemGraphicEl(function(d,v){var g=d;if(g){var m=[d.x,d.y],y=void 0,S=void 0,b=void 0;if(i)if(o){var w=i,C=n.pointToCoord(m);a?(y=w.startAngle,S=w.endAngle,b=-C[1]/180*Math.PI):(y=w.r0,S=w.r,b=C[0])}else{var x=i;a?(y=x.x,S=x.x+x.width,b=d.x):(y=x.y+x.height,S=x.y,b=d.y)}var A=S===y?0:(b-y)/(S-y);l&&(A=1-A);var D=We(f)?f(v):c*A+h,M=g.getSymbolPath(),I=M.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:D}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(eU(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 kt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=hve(l);c>=0&&(Rn(s,vn(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,h,d){return d!=null?XW(o,d):Dh(o,f)},enableTextSetter:!0},vve(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,d=h.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),S=m.inverse,b=n.shape,w=S?y?b.x:b.y+b.height:y?b.x+b.width:b.y,C=(y?g:0)*(S?-1:1),x=(y?0:-g)*(S?-1:1),A=y?"x":"y",D=dve(f,w,A),M=D.range,I=M[1]-M[0],P=void 0;if(I>=1){if(I>1&&!d){var E=TN(f,M[0]);u.attr({x:E[0]+C,y:E[1]+x}),o&&(P=h.getRawValue(M[0]))}else{var E=c.getPointOn(w,A);E&&u.attr({x:E[0]+C,y:E[1]+x});var F=h.getRawValue(M[0]),O=h.getRawValue(M[1]);o&&(P=B$(i,v,F,O,D.t))}a.lastFrameIndex=M[0]}else{var N=r===1||a.lastFrameIndex>0?M[0]:0,E=TN(f,N);o&&(P=h.getRawValue(N)),u.attr({x:E[0]+C,y:E[1]+x})}if(o){var V=jh(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=nve(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),d=h.current,v=h.stackedOnCurrent,g=h.next,m=h.stackedOnNext;if(o&&(d=nl(h.current,i,o,l),v=nl(h.stackedOnCurrent,i,o,l),g=nl(h.next,i,o,l),m=nl(h.stackedOnNext,i,o,l)),xN(d,g)>3e3||c&&xN(v,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=d;var y={shape:{points:g}};h.current!==d&&(y.shape.__points=h.next),u.stopAnimation(),Bt(u,y,f),c&&(c.setShape({points:d,stackedOnPoints:v}),c.stopAnimation(),Bt(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var S=[],b=h.status,w=0;wt&&(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]}},mve=function(e){return Math.round(e.length/2)};function tU(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),d=Math.round(s/h);if(isFinite(d)&&d>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var v=void 0;ke(a)?v=gve[a]:We(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/d,v,mve))}}}}}function yve(e){e.registerChartView(pve),e.registerSeriesModel(Qde),e.registerLayout(Sg("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,tU("line"))}var Np=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 Ns(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,d){if(h.type==="category"&&n!=null){var v=h.getTicksCoords(),g=h.getTickModel().get("alignWithLabel"),m=o[d],y=n[d]==="x1"||n[d]==="y1";if(y&&!g&&(m+=1),v.length<2)return;if(v.length===2){s[d]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var S=void 0,b=void 0,w=1,C=0;Cm){b=(x+S)/2;break}C===1&&(w=A-v[0].tickValue)}b==null&&(S?S&&(b=v[v.length-1].coord):b=v[0].coord),s[d]=h.toGlobalCoord(b)}});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}(_r);_r.registerClass(Np);var _ve=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 Ns(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=tu(Np.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}(Np),Sve=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}(),L_=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 Sve},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,d=Math.PI*2,v=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){Ap(a,r,Qe(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}(lr),AN={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=vx(t.x,e.x),s=px(t.x+t.width,i),l=vx(t.y,e.y),u=px(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=px(t.r,e.r),a=vx(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}},DN={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new It({shape:fe({},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?L_:ci,c=new u({shape:n,z2:1});c.name="item";var f=rU(i);if(c.calculateTextPosition=bve(f,{isRoundCap:u===L_}),a){var h=c.shape,d=i?"r":"endAngle",v={};h[d]=i?n.r0:n.startAngle,v[d]=n[d],(s?Bt:xr)(c,{shape:v},a)}return c}};function Tve(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 MN(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?Bt:xr)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?Bt:xr)(r,{shape:u},c,i)}function IN(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 Mve(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function rU(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 PN(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=dc(n.getModel("itemStyle"),c,!0);fe(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 d=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",v=vn(n);Rn(e,v,{labelFetcher:a,labelDataIndex:r,defaultText:Dh(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=e.getTextContent();if(s&&g){var m=n.get(["label","position"]);e.textConfig.inside=m==="middle"?!0:null,wve(e,m==="outside"?d:m,rU(o),n.get(["label","rotate"]))}w4(g,v,a.getRawValue(r),function(S){return XW(t,S)});var y=n.getModel(["emphasis"]);Nr(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),Pn(e,n),Mve(i)&&(e.style.fill="none",e.style.stroke="none",R(e.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function Ive(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 Lve=function(){function e(){}return e}(),RN=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 Lve},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 Pve(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 nU(e,t,r){if(Kc(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 Rve(e,t,r){var n=e.type==="polar"?ci:It;return new n({shape:nU(t,r,e),silent:!0,z2:0})}function Eve(e){e.registerChartView(Cve),e.registerSeriesModel(_ve),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,rt(lW,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,uW("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,tU("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 ON=Math.PI*2,dy=Math.PI/180;function iU(e,t){return an(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function aU(e,t){var r=iU(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 d=h.dataToPoint(n);c=d[0]||0,f=d[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 kve(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=iU(n,r),s=aU(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*dy,d=n.get("endAngle"),v=n.get("padAngle")*dy;d=d==="auto"?h-ON:-d*dy;var g=n.get("minAngle")*dy,m=g+v,y=0;i.each(a,function(U){!isNaN(U)&&y++});var S=i.getSum(a),b=Math.PI/(S||y)*2,w=n.get("clockwise"),C=n.get("roseType"),x=n.get("stillShowZeroSum"),A=i.getDataExtent(a);A[0]=0;var D=w?1:-1,M=[h,d],I=D*v/2;TM(M,!w),h=M[0],d=M[1];var P=oU(n);P.startAngle=h,P.endAngle=d,P.clockwise=w;var E=Math.abs(d-h),F=E,O=0,N=h;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(U,G){var Z;if(isNaN(U)){i.setItemLayout(G,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:f,r:C?NaN:c});return}C!=="area"?Z=S===0&&x?b:U*b:Z=E/y,ZZ?(ie=N+D*Z/2,pe=ie):(ie=N+I,pe=ee-I),i.setItemLayout(G,{angle:Z,startAngle:ie,endAngle:pe,clockwise:w,cx:l,cy:u,r0:f,r:C?Kt(U,A,[f,c]):c}),N=ee}),Fr?y:m,C=Math.abs(b.label.y-r);if(C>=w.maxY){var x=b.label.x-t-b.len2*i,A=n+b.len,D=Math.abs(x)e.unconstrainedWidth?null:d:null;n.setStyle("width",v)}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 gx(e){return e.position==="center"}function Fve(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*Ove,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function d(x){x.ignore=!0}function v(x){if(!x.ignore)return!0;for(var A in x.states)if(x.states[A].ignore===!1)return!0;return!1}t.each(function(x){var A=t.getItemGraphicEl(x),D=A.shape,M=A.getTextContent(),I=A.getTextGuideLine(),P=t.getItemModel(x),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),U=E.get("bleedMargin"),G=P.getModel("labelLine"),Z=G.get("length");Z=Ie(Z,u);var ee=G.get("length2");if(ee=Ie(ee,u),Math.abs(D.endAngle-D.startAngle)0?"right":"left":pe>0?"left":"right"}var ne=Math.PI,_e=0,he=E.get("rotate");if(Nt(he))_e=he*(ne/180);else if(F==="center")_e=0;else if(he==="radial"||he===!0){var $=pe<0?-ie+ne:-ie;_e=$}else if(he==="tangential"&&F!=="outside"&&F!=="outer"){var Y=Math.atan2(pe,De);Y<0&&(Y=ne*2+Y);var te=De>0;te&&(Y=ne+Y),_e=Y-ne}if(a=!!_e,M.x=Le,M.y=ze,M.rotation=_e,M.setStyle({verticalAlign:"middle"}),ue){M.setStyle({align:oe});var Pe=M.states.select;Pe&&(Pe.x+=M.x,Pe.y+=M.y)}else{var le=M.getBoundingRect().clone();le.applyTransform(M.getComputedTransform());var xe=(M.style.margin||0)+2.1;le.y-=xe/2,le.height+=xe,r.push({label:M,labelLine:I,position:F,len:Z,len2:ee,minTurnAngle:G.get("minTurnAngle"),maxSurfaceAngle:G.get("maxSurfaceAngle"),surfaceNormal:new nt(pe,De),linePoints:He,textAlign:oe,labelDistance:O,labelAlignTo:N,edgeDistance:V,bleedMargin:U,rect:le,unconstrainedWidth:le.width,labelStyleWidth:M.style.width})}A.setTextConfig({inside:ue})}}),!a&&e.get("avoidLabelOverlap")&&Nve(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}(lr);function ad(e,t,r){t=ge(t)&&{coordDimensions:t}||fe({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=pg(n,t).dimensions,a=new oi(i,e);return a.initData(n,r),a}var wg=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}(),zve=Lt(),Gve=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 wg(Oe(this.getData,this),Oe(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ad(this,{coordDimensions:["value"],encodeDefaulter:rt($M,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=zve(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Roe(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){Oc(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}(_r);function $ve(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!(Nt(o)&&!isNaN(o)&&o<0)})}}}function Hve(e){e.registerChartView(Bve),e.registerSeriesModel(Gve),MH("pie",e.registerAction),e.registerLayout(rt(kve,"pie")),e.registerProcessor(bg("pie")),e.registerProcessor($ve("pie"))}var Wve=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 Ns(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}(_r),lU=4,Uve=function(){function e(){}return e}(),Yve=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 Uve},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}(),Zve=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=Sg("").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 Xve:new yg,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}(lr),qve=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}(wt),vA=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",jr).models[0]},t.type="cartesian2dAxis",t}(wt);en(vA,gg);var uU={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)"]}}},jve=ot({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},uU),yI=ot({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}}},uU),Kve=ot({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},yI),Jve=Ye({logBase:10},yI);const cU={category:jve,value:yI,time:Kve,log:Jve};var Qve={value:1,category:1,time:1,log:1};function Mh(e,t,r,n){R(Qve,function(i,a){var o=ot(ot({},cU[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=Mp(this),d=h?Qh(c):{},v=f.getTheme();ot(c,v.get(a+"Axis")),ot(c,this.getDefaultOption()),c.type=FN(c),h&&Yl(c,d,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=sA.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",FN)}function FN(e){return e.type||(e.data?"category":"value")}var epe=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 be(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),er(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}(),pA=["x","y"];function VN(e){return e.type==="interval"||e.type==="time"}var tpe=function(e){j(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=pA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!VN(r)||!VN(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,d=o[1]-a[0]*f,v=this._transform=[c,0,0,f,h,d];this._invTransform=Uh([],v)}}},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 st(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 Ln(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 Ln(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 st(a,o,s,l)},t}(epe),rpe=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}(Ja);function gA(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},d=t.get("offset")||0,v=u==="x"?[f[2]-d,f[3]+d]:[f[0]-d,f[1]+d];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));v[h.onZero]=Math.max(Math.min(g,v[1]),v[0])}a.position=[u==="y"?v[h[l]]:f[0],u==="x"?v[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?v[h[s]]-v[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),_n(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 BN(e){return e.get("coordinateSystem")==="cartesian2d"}function zN(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,jr).models[0];t[n]=a}),t}var mx=Math.log;function fU(e,t,r){var n=Is.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=vW(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var h=mx(e.base);u=[mx(u[0])/h,mx(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var d=n.getExtent.call(e);c&&(u[0]=d[0]),f&&(u[1]=d[1]);var v=n.getInterval.call(e),g=u[0],m=u[1];if(c&&f)v=(m-g)/o;else if(c)for(m=u[0]+v*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)v=rx(v),g=u[1]-v*o;else{var y=e.getTicks().length-1;y>o&&(v=rx(v));var S=v*o;m=Math.ceil(u[1]/v)*v,g=Br(m-S),g<0&&u[0]>=0?(g=0,m=Br(S)):m>0&&u[1]<=0&&(m=0,g=-Br(S))}var b=(i[0].value-a[0].value)/s,w=(i[o].value-a[o].value)/s;n.setExtent.call(e,g+v*b,m+v*w),n.setInterval.call(e,v),(b||w)&&n.setNiceExtent.call(e,g+v,m-v)}var npe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pA,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=xt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],d=o[h],v=d.model,g=d.scale;lA(g)&&v.get("alignTicks")&&v.get("interval")==null?c.push(d):(Ah(g,v),lA(g)&&(s=d))}c.length&&(s||(s=c.pop(),Ah(s.scale,s.model)),R(c,function(m){fU(m.scale,m.model,s.scale)}))}}i(n.x),i(n.y);var a={};R(n.x,function(o){GN(n,"y",o,a)}),R(n.y,function(o){GN(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=an(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=Fhe(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]),ipe(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]}qe(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):wp(i-Al)?(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}(),HN={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&&(Ln(s,s,o),Ln(l,l,o));var c=fe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new cn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});xh(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var d=t.get(["axisLine","symbolSize"]);ke(h)&&(h=[h,h]),(ke(d)||Nt(d))&&(d=[d,d]);var v=qc(t.get(["axisLine","symbolOffset"])||0,d),g=d[0],m=d[1];R([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,S){if(h[S]!=="none"&&h[S]!=null){var b=Qr(h[S],-g/2,-m/2,g,m,c.stroke,!0),w=y.r+y.offset,C=u?l:s;b.attr({rotation:y.rotate,x:C[0]+w*Math.cos(e.rotation),y:C[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),r.add(b)}})}}},axisTickLabel:function(e,t,r,n){var i=spe(r,n,t,e),a=upe(r,n,t,e);if(ope(t,a,i),lpe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=MW(be(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));PW(o)}},axisName:function(e,t,r,n){var i=_n(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,UN(a)?e.labelOffset+o*l:0],h,d=t.get("nameRotate");d!=null&&(d=d*Al/180);var v;UN(a)?h=si.innerTextLayout(e.rotation,d??e.rotation,o):(h=ape(e.rotation,a,d||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(h.rotation)),!isFinite(v)&&(v=null)));var g=s.getFont(),m=t.get("nameTruncate",!0)||{},y=m.ellipsis,S=_n(e.nameTruncateMaxWidth,m.maxWidth,v),b=new kt({x:f[0],y:f[1],rotation:h.rotation,silent:si.isLabelSilent(t),style:yr(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(qh({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var w=si.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Qe(b).eventData=w}n.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function ape(e,t,r,n){var i=I$(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return wp(i-Al/2)?(o=l?"bottom":"top",a="center"):wp(i-Al*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iAl/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function ope(e,t,r){if(!pW(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?(aa(a),aa(u)):WN(a,o)&&(n?(aa(o),aa(c)):(aa(a),aa(u))),i===!1?(aa(s),aa(f)):WN(l,s)&&(i?(aa(l),aa(h)):(aa(s),aa(f)))}}function aa(e){e&&(e.ignore=!0)}function WN(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=R1([]);return Xc(i,i,-e.rotation),r.applyTransform(_s([],i,e.getLocalTransform())),n.applyTransform(_s([],i,t.getLocalTransform())),r.intersect(n)}}function UN(e){return e==="middle"||e==="center"}function hU(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function ppe(e){var t=_I(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=mA(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&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var g=l;v.color!=null&&(g=Ye({color:v.color},l));var m=ot(je(v),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:h},!1);if(ke(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else We(c)&&(m.name=c(m.name,m));var S=new Zt(m,null,this.ecModel);return en(S,gg.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},this);this._indicatorModels=d},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:ot({lineStyle:{color:"#bbb"}},Ud.axisLine),axisLabel:vy(Ud.axisLabel,!1),axisTick:vy(Ud.axisTick,!1),splitLine:vy(Ud.splitLine,!0),splitArea:vy(Ud.splitArea,!0),indicator:[]},t}(wt),Mpe=["axisLine","axisTickLabel","axisName"],Ipe=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=be(i,function(o){var s=o.model.get("showName")?o.name:"",l=new si(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(Mpe,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"),d=u.get("color"),v=ge(h)?h:[h],g=ge(d)?d:[d],m=[],y=[];function S(N,V,U){var G=U%V.length;return N[G]=N[G]||[],G}if(a==="circle")for(var b=i[0].getTicksCoords(),w=n.cx,C=n.cy,x=0;x3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;Sx(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);Sx(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!KN(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;Sx(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ca);function Sx(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(Cs(n.event),yU(e,t,r,n,i))}function yU(e,t,r,n,i){i.isAvailableBehavior=Oe(T0,null,r,n),e.trigger(t,i)}function T0(e,t,r){var n=r[e];return!e||n&&(!ke(n)||t.event[n+"Key"])}function bI(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function wI(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 Npe={axisPointer:1,tooltip:1,brush:1};function uS(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!Npe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function _U(e){if(ke(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 bx,P_={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"},JN=xt(P_),R_={"alignment-baseline":"textBaseline","stop-color":"stopColor"},QN=xt(R_),Fpe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=_U(t);this._defsUsePending=[];var i=new Ke;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),Ni(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;zpe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=cS(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=bU(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var d=i;i=new Ke,i.add(d),d.scaleX=d.scaleY=f.scale,d.x=f.x,d.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new It({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=bx[s];if(c&&Ne(bx,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 d=eF[s];if(d&&Ne(eF,s)){var v=d.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=v)}}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 wh({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});oa(r,n),Ni(t,n,this._defsUsePending,!1,!1),Vpe(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(){bx={g:function(t,r){var n=new Ke;return oa(r,n),Ni(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new It;return oa(r,n),Ni(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 Os;return oa(r,n),Ni(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 cn;return oa(r,n),Ni(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 $1;return oa(r,n),Ni(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=nF(n));var a=new fi({shape:{points:i||[]},silent:!0});return oa(r,a),Ni(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=nF(n));var a=new di({shape:{points:i||[]},silent:!0});return oa(r,a),Ni(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new bn;return oa(r,n),Ni(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 Ke;return oa(r,s),Ni(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 Ke;return oa(r,s),Ni(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=c4(n);return oa(r,i),Ni(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),eF={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 cg(t,r,n,i);return tF(e,a),rF(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 v4(t,r,n);return tF(e,i),rF(e,i),i}};function tF(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function rF(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={};SU(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function oa(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ye(t.__inheritedStyle,e.__inheritedStyle))}function nF(e){for(var t=cS(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=cS(o);switch(i=i||Yi(),s){case"translate":Ro(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":gM(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Xc(i,i,-parseFloat(l[0])*xx,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*xx);_s(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*xx);_s(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 aF=/([^\s:;]+)\s*:\s*([^:;]+)/g;function SU(e,t,r){var n=e.getAttribute("style");if(n){aF.lastIndex=0;for(var i;(i=aF.exec(n))!=null;){var a=i[1],o=Ne(P_,a)?P_[a]:null;o&&(t[o]=i[2]);var s=Ne(R_,a)?R_[a]:null;s&&(r[s]=i[2])}}}function Wpe(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=Ve(),n=Ve(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(d,v){return v&&(d=v(d)),d&&[d[0]*a.scaleX+a.x,d[1]*a.scaleY+a.y]}function f(d){for(var v=[],g=!u&&l&&l.project,m=0;m=0)&&(h=i);var d=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Rn(t,vn(n),{labelFetcher:h,labelDataIndex:f,defaultText:r},d);var v=t.getTextContent();if(v&&(wU(v).ignore=v.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 cF(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Qe(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function fF(e,t,r,n,i){e.data||qh({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function hF(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Nr(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&ale(t,i,r),o}function dF(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}(_r);function cge(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?(w.width=b,w.height=b/m):(w.height=b,w.width=b*m),w.y=S[1]-w.height/2,w.x=S[0]-w.width/2;else{var C=e.getBoxLayoutParams();C.aspect=m,w=an(C,{width:v,height:g})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function vge(e,t){R(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var pge=function(){function e(){this.dimensions=CU}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 SA(l+s,l,fe({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=mF,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=be(o,function(c){return c.get("nameMap")}),u=new SA(s,s,fe({nameMap:fM(l)},i(o[0])));u.zoomLimit=_n.apply(null,be(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=mF,u.resize(o[0],r),R(o,function(c){c.coordinateSystem=u,vge(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=Ve(),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 bge(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){Cge(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=Tge(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function wge(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function _F(e){return arguments.length?e:Mge}function _v(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function xge(e,t){return an(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Cge(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 Tge(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=Cx(s),a=Tx(a),s&&a;){i=Cx(i),o=Tx(o),i.hierNode.ancestor=e;var h=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);h>0&&(Dge(Age(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&&!Cx(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!Tx(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function Cx(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Tx(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Age(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function Dge(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 Mge(e,t){return e.parentNode===t.parentNode?1:2}var Ige=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Lge=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 Ige},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),d=[];d[c]=o[c],d[f]=o[f]+(l[f]-o[f])*h,r.moveTo(o[0],o[1]),r.lineTo(d[0],d[1]),r.moveTo(s[0],s[1]),d[c]=s[c],r.lineTo(d[0],d[1]),d[c]=l[c],r.lineTo(d[0],d[1]),r.lineTo(l[0],l[1]);for(var v=1;vS.x,C||(w=w-Math.PI));var A=C?"left":"right",D=s.getModel("label"),M=D.get("rotate"),I=M*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:D.get("position")||A,rotation:M==null?-w:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),F=E==="relative"?t_(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;F&&(Qe(r).focus=F),Rge(i,o,c,r,v,d,g,n),r.__edge&&(r.onHoverStateChange=function(O){if(O!=="blur"){var N=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);N&&N.hoverState===sg||f_(r.__edge,O)}})}function Rge(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"]),d=e.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),g=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(g||(g=n.__edge=new ug({shape:bA(c,f,h,i,i)})),Bt(g,{shape:bA(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(ke(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 LU(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function DI(e,t){var r=LU(e);return pt(r,t)>=0}function fS(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 Gge=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 Zt(i,this,this.ecModel),o=AI.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(h,d){var v=o.getNodeByDataIndex(d);return v&&v.children.length&&v.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 pn("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=fS(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}(_r);function $ge(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 Hge(e,t){e.eachSeriesByType("tree",function(r){Wge(r,t)})}function Wge(e,t){var r=xge(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=_F(function(b,w){return(b.parentNode===w.parentNode?1:2)/b.depth})):(i=r.width,a=r.height,o=_F());var s=e.getData().tree.root,l=s.children[0];if(l){Sge(s),$ge(l,bge,o),s.hierNode.modifier=-l.hierNode.prelim,Xd(l,wge);var u=l,c=l,f=l;Xd(l,function(b){var w=b.getLayout().x;wc.getLayout().x&&(c=b),b.depth>f.depth&&(f=b)});var h=u===c?1:o(u,c)/2,d=h-u.getLayout().x,v=0,g=0,m=0,y=0;if(n==="radial")v=i/(c.getLayout().x+h+d),g=a/(f.depth-1||1),Xd(l,function(b){m=(b.getLayout().x+d)*v,y=(b.depth-1)*g;var w=_v(m,y);b.setLayout({x:w.x,y:w.y,rawX:m,rawY:y},!0)});else{var S=e.getOrient();S==="RL"||S==="LR"?(g=a/(c.getLayout().x+h+d),v=i/(f.depth-1||1),Xd(l,function(b){y=(b.getLayout().x+d)*g,m=S==="LR"?(b.depth-1)*v:i-(b.depth-1)*v,b.setLayout({x:m,y},!0)})):(S==="TB"||S==="BT")&&(v=i/(c.getLayout().x+h+d),g=a/(f.depth-1||1),Xd(l,function(b){m=(b.getLayout().x+d)*v,y=S==="TB"?(b.depth-1)*g:a-(b.depth-1)*g,b.setLayout({x:m,y},!0)}))}}}function Uge(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");fe(s,o)})})}function Yge(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=CI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function Xge(e){e.registerChartView(Pge),e.registerSeriesModel(Gge),e.registerLayout(Hge),e.registerVisual(Uge),Yge(e)}var CF=["treemapZoomToNode","treemapRender","treemapMove"];function Zge(e){for(var t=0;t1;)a=a.parentNode;var o=qT(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var qge=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};RU(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new Zt({itemStyle:o},this,n);a=r.levels=jge(a,n);var l=be(a||[],function(f){return new Zt(f,s,n)},this),u=AI.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(h,d){var v=u.getNodeByDataIndex(d),g=v?l[v.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 pn("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=fS(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},fe(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=Ve(),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(){PU(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}(_r);function RU(e){var t=0;R(e.children,function(n){RU(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 jge(e,t){var r=nr(t.get("color")),n=nr(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;R(e,function(s){var l=new Zt(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 Kge=8,TF=8,Ax=5,Jge=function(){function e(t){this.group=new Ke,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),J1(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=nn(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+Kge*2,r.emptyItemWidth);r.totalWidth+=s+TF,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=sue(r.pos,r.box),h=r.totalWidth,d=r.renderList,v=i.getModel("itemStyle").getItemStyle(),g=d.length-1;g>=0;g--){var m=d[g],y=m.node,S=m.width,b=m.text;h>f.width&&(h-=S-u,S=u,b=null);var w=new fi({shape:{points:Qge(l,0,S,c,g===d.length-1,g===0)},style:Ye(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new kt({style:yr(a,{text:b})}),textConfig:{position:"inside"},z2:Xh*1e4,onclick:rt(s,y)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=yr(o,{text:b}),w.ensureState("emphasis").style=v,Nr(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),eme(w,t,y),l+=S+TF}},e.prototype.remove=function(){this.group.removeAll()},e}();function Qge(e,t,r,n,i,a){var o=[[i?e:e-Ax,t],[e+r,t],[e+r,t+n],[i?e:e-Ax,t+n]];return!a&&o.splice(2,0,[e+r+Ax,t+n/2]),!i&&o.push([e,t+n/2]),o}function eme(e,t,r){Qe(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&&fS(r,t)}}var tme=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;iDF||Math.abs(r.dy)>DF)){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 st(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,d=u.max||1/0;f=Math.max(Math.min(d,f),h)}var v=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;n-=g.x,i-=g.y;var m=Yi();Ro(m,m,[-n,-i]),gM(m,m,[v,v]),Ro(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&&m_(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 Jge(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(DI(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Zd(),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}(lr);function Zd(){return{nodeGroup:[],background:[],content:[]}}function sme(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 d=c.width,v=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),S=s&&s.getRawIndex(),b=o.viewChildren,w=c.upperHeight,C=b&&b.length,x=h.getModel("itemStyle"),A=h.getModel(["emphasis","itemStyle"]),D=h.getModel(["blur","itemStyle"]),M=h.getModel(["select","itemStyle"]),I=x.get("borderRadius")||0,P=Le("nodeGroup",wA);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),E_(P).nodeWidth=d,E_(P).nodeHeight=v,c.isAboveViewRoot)return P;var E=Le("background",AF,u,ime);E&&Z(P,E,C&&c.upperLabelHeight);var F=h.getModel("emphasis"),O=F.get("focus"),N=F.get("blurScope"),V=F.get("disabled"),U=O==="ancestor"?o.getAncestorsIndices():O==="descendant"?o.getDescendantIndices():O;if(C)Tp(P)&&lc(P,!1),E&&(lc(E,!V),f.setItemGraphicEl(o.dataIndex,E),GT(E,U,N));else{var G=Le("content",AF,u,ame);G&&ee(P,G),E.disableMorphing=!0,E&&Tp(E)&&lc(E,!1),lc(P,!V),f.setItemGraphicEl(o.dataIndex,P),GT(P,U,N)}return P;function Z(oe,ue,ve){var me=Qe(ue);if(me.dataIndex=o.dataIndex,me.seriesIndex=e.seriesIndex,ue.setShape({x:0,y:0,width:d,height:v,r:I}),m)ie(ue);else{ue.invisible=!1;var Ce=o.getVisual("style"),Ee=Ce.stroke,H=LF(x);H.fill=Ee;var W=Wu(A);W.fill=A.get("borderColor");var ne=Wu(D);ne.fill=D.get("borderColor");var _e=Wu(M);if(_e.fill=M.get("borderColor"),ve){var he=d-2*g;pe(ue,Ee,Ce.opacity,{x:g,y:0,width:he,height:w})}else ue.removeTextContent();ue.setStyle(H),ue.ensureState("emphasis").style=W,ue.ensureState("blur").style=ne,ue.ensureState("select").style=_e,Vc(ue)}oe.add(ue)}function ee(oe,ue){var ve=Qe(ue);ve.dataIndex=o.dataIndex,ve.seriesIndex=e.seriesIndex;var me=Math.max(d-2*g,0),Ce=Math.max(v-2*g,0);if(ue.culling=!0,ue.setShape({x:g,y:g,width:me,height:Ce,r:I}),m)ie(ue);else{ue.invisible=!1;var Ee=o.getVisual("style"),H=Ee.fill,W=LF(x);W.fill=H,W.decal=Ee.decal;var ne=Wu(A),_e=Wu(D),he=Wu(M);pe(ue,H,Ee.opacity,null),ue.setStyle(W),ue.ensureState("emphasis").style=ne,ue.ensureState("blur").style=_e,ue.ensureState("select").style=he,Vc(ue)}oe.add(ue)}function ie(oe){!oe.invisible&&a.push(oe)}function pe(oe,ue,ve,me){var Ce=h.getModel(me?IF:MF),Ee=nn(h.get("name"),null),H=Ce.getShallow("show");Rn(oe,vn(h,me?IF:MF),{defaultText:H?Ee:null,inheritColor:ue,defaultOpacity:ve,labelFetcher:e,labelDataIndex:o.dataIndex});var W=oe.getTextContent();if(W){var ne=W.style,_e=dM(ne.padding||0);me&&(oe.setTextConfig({layoutRect:me}),W.disableLabelLayout=!0),W.beforeUpdate=function(){var $=Math.max((me?me.width:oe.shape.width)-_e[1]-_e[3],0),Y=Math.max((me?me.height:oe.shape.height)-_e[0]-_e[2],0);(ne.width!==$||ne.height!==Y)&&W.setStyle({width:$,height:Y})},ne.truncateMinChar=2,ne.lineOverflow="truncate",De(ne,me,c);var he=W.getState("emphasis");De(he?he.style:null,me,c)}}function De(oe,ue,ve){var me=oe?oe.text:null;if(!ue&&ve.isLeafRoot&&me!=null){var Ce=e.get("drillDownIcon",!0);oe.text=Ce?Ce+" "+me:me}}function Le(oe,ue,ve,me){var Ce=S!=null&&r[oe][S],Ee=i[oe];return Ce?(r[oe][S]=null,ze(Ee,Ce)):m||(Ce=new ue,Ce instanceof xa&&(Ce.z2=lme(ve,me)),He(Ee,Ce)),t[oe][y]=Ce}function ze(oe,ue){var ve=oe[y]={};ue instanceof wA?(ve.oldX=ue.x,ve.oldY=ue.y):ve.oldShape=fe({},ue.shape)}function He(oe,ue){var ve=oe[y]={},me=o.parentNode,Ce=ue instanceof Ke;if(me&&(!n||n.direction==="drillDown")){var Ee=0,H=0,W=i.background[me.getRawIndex()];!n&&W&&W.oldShape&&(Ee=W.oldShape.width,H=W.oldShape.height),Ce?(ve.oldX=0,ve.oldY=H):ve.oldShape={x:Ee,y:H,width:0,height:0}}ve.fadein=!Ce}}function lme(e,t){return e*nme+t}var Bp=R,ume=qe,k_=-1,hn=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=je(t);this.type=n,this.mappingMethod=r,this._normalizeData=hme[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(Dx(i),cme(i)):r==="category"?i.categories?fme(i):Dx(i,!0):(li(r!=="linear"||i.dataExtent),Dx(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return Oe(this._normalizeData,this)},e.listVisualTypes=function(){return xt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){qe(t)?R(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=ge(t)?[]:qe(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&&Bp(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(ume(t)){var r=[];Bp(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 Dx(e,t){var r=e.visual,n=[];qe(r)?Bp(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]),EU(e,n)}function gy(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:xA([0,1])}}function PF(e){var t=this.option.visual;return t[Math.round(Kt(e,[0,1],[0,t.length-1],!0))]||{}}function qd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function Sv(e){var t=this.option.visual;return t[this.option.loop&&e!==k_?e%t.length:e]}function Uu(){return this.option.visual[0]}function xA(e){return{linear:function(t){return Kt(t,e,this.option.visual,!0)},category:Sv,piecewise:function(t,r){var n=CA.call(this,r);return n==null&&(n=Kt(t,e,this.option.visual,!0)),n},fixed:Uu}}function CA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=hn.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function EU(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=be(t,function(r){var n=Xi(r);return n||[0,0,0,1]})),t}var hme={linear:function(e){return Kt(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=hn.findPieceIndex(e,t,!0);if(r!=null)return Kt(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??k_},fixed:Ur};function my(e,t,r){return e?t<=r:t=r.length||g===r[g.depth]){var y=yme(i,l,g,m,v,n);OU(g,y,r,n)}})}}}function pme(e,t,r){var n=fe({},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 RF(e){var t=Mx(e,"color");if(t){var r=Mx(e,"colorAlpha"),n=Mx(e,"colorSaturation");return n&&(t=zv(t,null,null,n)),r&&(t=a_(t,r)),t}}function gme(e,t){return t!=null?zv(t,null,null,e):null}function Mx(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function mme(e,t,r,n,i,a){if(!(!a||!a.length)){var o=Ix(t,"color")||i.color!=null&&i.color!=="none"&&(Ix(t,"colorAlpha")||Ix(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 hn(f);return kU(h).drColorMappingBy=c,h}}}function Ix(e,t){var r=e.get(t);return ge(r)&&r.length?{name:t,range:r}:null}function yme(e,t,r,n,i,a){var o=fe({},t);if(i){var s=i.type,l=s==="color"&&kU(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 zp=Math.max,O_=Math.min,EF=_n,MI=R,NU=["itemStyle","borderWidth"],_me=["itemStyle","gapWidth"],Sme=["upperLabel","show"],bme=["upperLabel","height"];const wme={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=an(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=Ie(EF(s.width,l[0]),i),c=Ie(EF(s.height,l[1]),a),f=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],d=Vp(n,h,e),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,g=e.getViewRoot(),m=LU(g);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?Mme(e,d,g,u,c):v?[v.width,v.height]:[u,c],S=o.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var b={squareRatio:o.squareRatio,sort:S,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var w={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(w),FU(g,b,!1,0),w=g.getLayout(),MI(m,function(x,A){var D=(m[A+1]||g).getValue();x.setLayout(fe({dataExtent:[D,D],borderWidth:0,upperHeight:0},w))})}var C=e.getData().tree.root;C.setLayout(Ime(s,v,d),!0),e.setLayoutInfo(s),VU(C,new st(-s.x,-s.y,i,a),m,g,0)}};function FU(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(NU),u=s.get(_me)/2,c=BU(s),f=Math.max(l,c),h=l-u,d=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=zp(i-2*h,0),a=zp(a-h-d,0);var v=i*a,g=xme(e,s,v,t,r,n);if(g.length){var m={x:h,y:d,width:i,height:a},y=O_(i,a),S=1/0,b=[];b.area=0;for(var w=0,C=g.length;w=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function Dme(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?zp(u*n/l,l/(u*i)):1/0}function kF(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;fXE&&(u=XE),a=s}un&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var A=w[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var D=-Math.atan2(w[1],w[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],v=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]+M,v=w[0]<0?"right":"left",a.originX=-y*A,a.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=x[0],a.y=x[1]+M,v="center",a.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*A+f[0],a.y=f[1]+M,v=w[0]>=0?"right":"left",a.originX=y*A,a.originY=-M;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||g,align:a.__align||v})}},t}(Ke),EI=function(){function e(t){this.group=new Ke,this._LineCtor=t||RI}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=zF(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=zF(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!Xme(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function zF(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:vn(t)}}function GF(e){return isNaN(e[0])||isNaN(e[1])}function kx(e){return e&&!GF(e[0])&&!GF(e[1])}var Ox=[],Nx=[],Fx=[],Pf=mn,Vx=bc,$F=Math.abs;function HF(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){Ox[0]=Pf(n[0],i[0],a[0],c),Ox[1]=Pf(n[1],i[1],a[1],c);var f=$F(Vx(Ox,t)-l);f=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function Bx(e,t){var r=[],n=_p,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=[ys(u[0]),ys(u[1])],u[2]&&u.__original.push(ys(u[2])));var h=u.__original;if(u[2]!=null){if(ti(i[0],h[0]),ti(i[1],h[2]),ti(i[2],h[1]),c&&c!=="none"){var d=wv(s.node1),v=HF(i,h[0],d*t);n(i[0][0],i[1][0],i[2][0],v,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],v,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var d=wv(s.node2),v=HF(i,h[1],d*t);n(i[0][0],i[1][0],i[2][0],v,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],v,r),i[1][1]=r[1],i[2][1]=r[2]}ti(u[0],i[0]),ti(u[1],i[2]),ti(u[2],i[1])}else{if(ti(a[0],h[0]),ti(a[1],h[1]),oc(o,a[1],a[0]),Wh(o,o),c&&c!=="none"){var d=wv(s.node1);hT(a[0],a[0],o,d*t)}if(f&&f!=="none"){var d=wv(s.node2);hT(a[1],a[1],o,-d*t)}ti(u[0],a[0]),ti(u[1],a[1])}})}function WF(e){return e.type==="view"}var Zme=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 yg,a=new EI,o=this.group;this._controller=new xg(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(WF(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Bt(u,c,r)}Bx(r.getGraph(),bv(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 d=r.forceLayout,v=r.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,v);var g=r.get("layout");f.graph.eachNode(function(b){var w=b.dataIndex,C=b.getGraphicEl(),x=b.getModel();if(C){C.off("drag").off("dragend");var A=x.get("draggable");A&&C.on("drag",function(M){switch(g){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,v),d.setFixed(w),f.setItemLayout(w,[C.x,C.y]);break;case"circular":f.setItemLayout(w,[C.x,C.y]),b.setLayout({fixed:!0},!0),PI(r,"symbolSize",b,[M.offsetX,M.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(w,[C.x,C.y]),LI(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){d&&d.setUnfixed(w)}),C.setDraggable(A,!!x.get("cursor"));var D=x.get(["emphasis","focus"]);D==="adjacency"&&(Qe(C).focus=b.getAdjacentDataIndices())}}),f.graph.eachEdge(function(b){var w=b.getGraphicEl(),C=b.getModel().get(["emphasis","focus"]);w&&C==="adjacency"&&(Qe(w).focus={edge:[b.dataIndex],node:[b.node1.dataIndex,b.node2.dataIndex]})});var m=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),y=f.getLayout("cx"),S=f.getLayout("cy");f.graph.eachNode(function(b){HU(b,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)&&!uS(u,i,r)}),!WF(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){bI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){wI(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(),Bx(r.getGraph(),bv(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=bv(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){Bx(r.getGraph(),bv(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}(lr);function Rf(e){return"_EC_"+e}var qme=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[Rf(t)]){var i=new Yu(t,r);return i.hostGraph=this,this.nodes.push(i),n[Rf(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[Rf(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(Nt(t)&&(t=this.nodes[t]),Nt(r)&&(r=this.nodes[r]),t instanceof Yu||(t=i[Rf(t)]),r instanceof Yu||(r=i[Rf(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new UU(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 Yu&&(t=t.id),r instanceof Yu&&(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 Yu||(r=this._nodesMap[Rf(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)}}}en(Yu,YU("hostGraph","data"));en(UU,YU("hostGraph","edgeData"));function XU(e,t,r,n,i){for(var a=new qme(n),o=0;o "+h)),u++)}var d=r.get("coordinateSystem"),v;if(d==="cartesian2d"||d==="polar")v=Ns(e,r);else{var g=dg.get(d),m=g?g.dimensions||[]:[];pt(m,"value")<0&&m.concat(["value"]);var y=pg(e,{coordDimensions:m,encodeDefine:r.getEncode()}).dimensions;v=new oi(y,r),v.initData(e)}var S=new oi(["value"],r);return S.initData(l,s),i&&i(v,S),MU({mainData:v,struct:a,structAttr:"graph",datas:{node:v,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var jme=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 wg(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),Oc(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){Nme(this);var s=XU(a,i,this,!0,l);return R(s.edges,function(u){Fme(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var g=o._categoriesModels,m=v.getShallow("category"),y=g[m];return y&&(y.parentModel=v.parentModel,v.parentModel=y),v});var f=Zt.prototype.getModel;function h(v,g){var m=f.call(this,v,g);return m.resolveParentPath=d,m}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=d,v.getModel=h,v});function d(v){if(v&&(v[0]==="label"||v[1]==="label")){var g=v.slice();return v[0]==="label"?g[0]="edgeLabel":v[1]==="label"&&(g[1]="edgeLabel"),g}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(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),pn("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=yH({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=be(this.option.categories||[],function(i){return i.value!=null?i:fe({value:0},i)}),n=new oi(["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}(_r),Kme={type:"graphRoam",event:"graphRoam",update:"none"};function Jme(e){e.registerChartView(Zme),e.registerSeriesModel(jme),e.registerProcessor(Pme),e.registerVisual(Rme),e.registerVisual(Eme),e.registerLayout(Vme),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,zme),e.registerLayout($me),e.registerCoordinateSystem("graphView",{dimensions:Cg.dimensions,create:Wme}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Ur),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Ur),e.registerAction(Kme,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=CI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var Qme=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),eye=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 Qme},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}(_t);function tye(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 _y(e,t){var r=e==null?"":e+"";return t&&(ke(t)?r=t.replace("{value}",r):We(t)&&(r=t(e))),r}var rye=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=tye(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"),d=h?L_:ci,v=f.get("show"),g=f.getModel("lineStyle"),m=g.get("width"),y=[u,c];TM(y,!l),u=y[0],c=y[1];for(var S=c-u,b=u,w=[],C=0;v&&C=M&&(I===0?0:a[I-1][0])Math.PI/2&&(Le+=Math.PI)):De==="tangential"?Le=-D-Math.PI/2:Nt(De)&&(Le=De*Math.PI/180),Le===0?f.add(new kt({style:yr(b,{text:Z,x:ie,y:pe,verticalAlign:N<-.8?"top":N>.8?"bottom":"middle",align:O<-.4?"left":O>.4?"right":"center"},{inheritColor:ee}),silent:!0})):f.add(new kt({style:yr(b,{text:Z,x:ie,y:pe,verticalAlign:"middle",align:"center"},{inheritColor:ee}),silent:!0,originX:ie,originY:pe,rotation:Le}))}if(S.get("show")&&V!==w){var U=S.get("distance");U=U?U+c:c;for(var ze=0;ze<=C;ze++){O=Math.cos(D),N=Math.sin(D);var He=new cn({shape:{x1:O*(v-U)+h,y1:N*(v-U)+d,x2:O*(v-A-U)+h,y2:N*(v-A-U)+d},silent:!0,style:E});E.stroke==="auto"&&He.setStyle({stroke:a((V+ze/C)/w)}),f.add(He),D+=I}D-=I}else D+=M}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,h=this._data,d=this._progressEls,v=[],g=r.get(["pointer","show"]),m=r.getModel("progress"),y=m.get("show"),S=r.getData(),b=S.mapDimension("value"),w=+r.get("min"),C=+r.get("max"),x=[w,C],A=[s,l];function D(I,P){var E=S.getItemModel(I),F=E.getModel("pointer"),O=Ie(F.get("width"),o.r),N=Ie(F.get("length"),o.r),V=r.get(["pointer","icon"]),U=F.get("offsetCenter"),G=Ie(U[0],o.r),Z=Ie(U[1],o.r),ee=F.get("keepAspect"),ie;return V?ie=Qr(V,G-O/2,Z-N,O,N,null,ee):ie=new eye({shape:{angle:-Math.PI/2,width:O,r:N,x:G,y:Z}}),ie.rotation=-(P+Math.PI/2),ie.x=o.cx,ie.y=o.cy,ie}function M(I,P){var E=m.get("roundCap"),F=E?L_:ci,O=m.get("overlap"),N=O?m.get("width"):c/S.count(),V=O?o.r-N:o.r-(I+1)*N,U=O?o.r:o.r-I*N,G=new F({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:V,r:U}});return O&&(G.z2=C-S.get(b,I)%C),G}(y||g)&&(S.diff(h).add(function(I){var P=S.get(b,I);if(g){var E=D(I,s);xr(E,{rotation:-((isNaN(+P)?A[0]:Kt(P,x,A,!0))+Math.PI/2)},r),f.add(E),S.setItemGraphicEl(I,E)}if(y){var F=M(I,s),O=m.get("clip");xr(F,{shape:{endAngle:Kt(P,x,A,O)}},r),f.add(F),VT(r.seriesIndex,S.dataType,I,F),v[I]=F}}).update(function(I,P){var E=S.get(b,I);if(g){var F=h.getItemGraphicEl(P),O=F?F.rotation:s,N=D(I,O);N.rotation=O,Bt(N,{rotation:-((isNaN(+E)?A[0]:Kt(E,x,A,!0))+Math.PI/2)},r),f.add(N),S.setItemGraphicEl(I,N)}if(y){var V=d[P],U=V?V.shape.endAngle:s,G=M(I,U),Z=m.get("clip");Bt(G,{shape:{endAngle:Kt(E,x,A,Z)}},r),f.add(G),VT(r.seriesIndex,S.dataType,I,G),v[I]=G}}).execute(),S.each(function(I){var P=S.getItemModel(I),E=P.getModel("emphasis"),F=E.get("focus"),O=E.get("blurScope"),N=E.get("disabled");if(g){var V=S.getItemGraphicEl(I),U=S.getItemVisual(I,"style"),G=U.fill;if(V instanceof bn){var Z=V.style;V.useStyle(fe({image:Z.image,x:Z.x,y:Z.y,width:Z.width,height:Z.height},U))}else V.useStyle(U),V.type!=="pointer"&&V.setColor(G);V.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),V.style.fill==="auto"&&V.setStyle("fill",a(Kt(S.get(b,I),x,[0,1],!0))),V.z2EmphasisLift=0,Pn(V,P),Nr(V,F,O,N)}if(y){var ee=v[I];ee.useStyle(S.getItemVisual(I,"style")),ee.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),ee.z2EmphasisLift=0,Pn(ee,P),Nr(ee,F,O,N)}}),this._progressEls=v)},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=Qr(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 Ke,d=[],v=[],g=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){d[y]=new kt({silent:!0}),v[y]=new kt({silent:!0})}).update(function(y,S){d[y]=s._titleEls[S],v[y]=s._detailEls[S]}).execute(),l.each(function(y){var S=l.getItemModel(y),b=l.get(u,y),w=new Ke,C=a(Kt(b,[c,f],[0,1],!0)),x=S.getModel("title");if(x.get("show")){var A=x.get("offsetCenter"),D=o.cx+Ie(A[0],o.r),M=o.cy+Ie(A[1],o.r),I=d[y];I.attr({z2:m?0:2,style:yr(x,{x:D,y:M,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),w.add(I)}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),U=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=v[y],G=P.get("formatter");I.attr({z2:m?0:2,style:yr(P,{x:F,y:O,text:_y(b,G),width:isNaN(N)?null:N,height:isNaN(V)?null:V,align:"center",verticalAlign:"middle"},{inheritColor:U})}),w4(I,{normal:P},b,function(ee){return _y(ee,G)}),g&&x4(I,y,l,r,{getFormattedLabel:function(ee,ie,pe,De,Le,ze){return _y(ze?ze.interpolatedValue:b,G)}}),w.add(I)}h.add(w)}),this.group.add(h),this._titleEls=d,this._detailEls=v},t.type="gauge",t}(lr),nye=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 ad(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}(_r);function iye(e){e.registerChartView(rye),e.registerSeriesModel(nye)}var aye=["itemStyle","opacity"],oye=function(e){j(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new di,s=new kt;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(aye);c=c??1,i||Za(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,xr(a,{style:{opacity:c}},o,n)):Bt(a,{style:{opacity:c},shape:{points:l.points}},o,n),Pn(a,s),this._updateLabel(r,n),Nr(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;Rn(o,vn(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 d=c.linePoints;a.setShape({points:d}),i.textGuideLineConfig={anchor:d?new nt(d[0][0],d[0][1]):null},Bt(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),cI(i,fI(l),{stroke:h})},t}(fi),sye=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 oye(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);Ap(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}(lr),lye=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 wg(Oe(this.getData,this),Oe(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return ad(this,{coordDimensions:["value"],encodeDefaulter:rt($M,this)})},t.prototype._defaultLabelLine=function(r){Oc(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}(_r);function uye(e,t){return an(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function cye(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();oAye)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||!Gx(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 Gx(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var Iye=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&&ot(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=er(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}(wt),Lye=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}(Ja);function Qc(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=Ef(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Ef(s,[0,o]),i=a=Ef(s,[i,a]),n=0}t[0]=Ef(t[0],r),t[1]=Ef(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]=Ef(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 Ef(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Hx=R,qU=Math.min,jU=Math.max,XF=Math.floor,Pye=Math.ceil,ZF=Br,Rye=Math.PI,Eye=function(){function e(t,r,n){this.type="parallel",this._axesMap=Ve(),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;Hx(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Lye(o,sS(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();Hx(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Ah(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=an(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=Sy(t.get("axisExpandWidth"),l),f=Sy(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,d=t.get("axisExpandWindow"),v;if(d)v=Sy(d[1]-d[0],l),d[1]=d[0]+v;else{v=Sy(c*(f-1),l);var g=t.get("axisExpandCenter")||XF(u/2);d=[c*g-v/2],d[1]=d[0]+v}var m=(s-v)/(u-f);m<3&&(m=0);var y=[XF(ZF(d[0]/c,1))+1,Pye(ZF(d[1]/c,1))-1],S=m/c*d[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:d,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])}),Hx(n,function(o,s){var l=(i.axisExpandable?Oye:kye)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Rye/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],h=c[a],d=Yi();Xc(d,d,h),Ro(d,d,f),this._axesLayout[o]={position:f,rotation:h,transform:d,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?Qc(l,i,o,"all"):u="none";else{var d=i[1]-i[0],v=o[1]*s/d;i=[jU(0,v-d/2)],i[1]=qU(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:u}},e}();function Sy(e,t){return qU(jU(e,t[0]),t[1])}function kye(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function Oye(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--)_a(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;azye}function r8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function n8(e,t,r,n){var i=new Ke;return i.add(new It({name:"main",style:VI(r),silent:!0,draggable:!0,cursor:"move",drift:rt(KF,e,t,i,["n","s","w","e"]),ondragend:rt(Gc,t,{isEnd:!0})})),R(n,function(a){i.add(new It({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:rt(KF,e,t,i,a),ondragend:rt(Gc,t,{isEnd:!0})}))}),i}function i8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Ih(i,Gye),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,d=f-a+i/2,v=c-o,g=f-s,m=v+i,y=g+i;es(e,t,"main",o,s,v,g),n.transformable&&(es(e,t,"w",l,u,a,y),es(e,t,"e",h,u,a,y),es(e,t,"n",l,u,m,a),es(e,t,"s",l,d,m,a),es(e,t,"nw",l,u,a,a),es(e,t,"ne",h,u,a,a),es(e,t,"sw",l,d,a,a),es(e,t,"se",h,d,a,a))}function LA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(VI(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?PA(e,a[0]):Xye(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?Hye[s]+"-resize":null})})}function es(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(qye(BI(e,t,[[n,i],[n+a,i+o]])))}function VI(e){return Ye({strokeNoScale:!0},e.brushStyle)}function a8(e,t,r,n){var i=[$p(e,r),$p(t,n)],a=[Ih(e,r),Ih(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function Yye(e){return Ac(e.group)}function PA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=U1(r[t],Yye(e));return n[i]}function Xye(e,t){var r=[PA(e,t[0]),PA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function KF(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=o8(t,i,a);R(n,function(u){var c=$ye[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(a8(s[0][0],s[1][0],s[0][1],s[1][1])),OI(t,r),Gc(t,{isEnd:!1})}function Zye(e,t,r,n){var i=t.__brushOption.range,a=o8(e,r,n);R(i,function(o){o[0]+=a[0],o[1]+=a[1]}),OI(e,t),Gc(e,{isEnd:!1})}function o8(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 BI(e,t,r){var n=t8(e,t);return n&&n!==zc?n.clipPath(r,e._transform):je(r)}function qye(e){var t=$p(e[0][0],e[1][0]),r=$p(e[0][1],e[1][1]),n=Ih(e[0][0],e[1][0]),i=Ih(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function jye(e,t,r){if(!(!e._brushType||Jye(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=FI(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var dS={lineX:eV(0),lineY:eV(1),rect:{createCover:function(e,t){function r(n){return n}return n8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=r8(e);return a8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){i8(e,t,r,n)},updateCommon:LA,contain:EA},polygon:{createCover:function(e,t){var r=new Ke;return r.add(new di({name:"main",style:VI(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new fi({name:"main",draggable:!0,drift:rt(Zye,e,t),ondragend:rt(Gc,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:BI(e,t,r)})},updateCommon:LA,contain:EA}};function eV(e){return{createCover:function(t,r){return n8({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=r8(t),n=$p(r[0][e],r[1][e]),i=Ih(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=t8(t,r);if(o!==zc&&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(),i8(t,r,l,i)},updateCommon:LA,contain:EA}}function l8(e){return e=zI(e),function(t){return _4(t,e)}}function u8(e,t){return e=zI(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 c8(e,t,r){var n=zI(e);return function(i,a){return n.contain(a[0],a[1])&&!uS(i,t,r)}}function zI(e){return st.create(e)}var Qye=["axisLine","axisTickLabel","axisName"],e0e=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 kI(n.getZr())).on("brush",Oe(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!t0e(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ke,this.group.add(this._axisGroup),!!r.get("show")){var s=n0e(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,h=l.getAxisLayout(f),d=fe({strokeContainThreshold:c},h),v=new si(r,d);R(Qye,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(d,u,r,s,c,i),fg(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=st.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:l8(f),isTargetByCursor:c8(f,s,a),getLinearBrushOtherExtent:u8(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(r0e(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=be(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 t0e(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function r0e(e){var t=e.axis;return be(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function n0e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var i0e={type:"axisAreaSelect",event:"axisAreaSelected"};function a0e(e){e.registerAction(i0e,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 o0e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function f8(e){e.registerComponentView(Dye),e.registerComponentModel(Iye),e.registerCoordinateSystem("parallel",Fye),e.registerPreprocessor(xye),e.registerComponentModel(MA),e.registerComponentView(e0e),Mh(e,"parallel",MA,o0e),a0e(e)}function s0e(e){gt(f8),e.registerChartView(pye),e.registerSeriesModel(yye),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,wye)}var l0e=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}(),u0e=function(e){j(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new l0e},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(){As(this)},t.prototype.downplay=function(){Ds(this)},t}(_t),c0e=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"),d=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var g=new u0e,m=Qe(g);m.dataIndex=v.dataIndex,m.seriesIndex=r.seriesIndex,m.dataType="edge";var y=v.getModel(),S=y.getModel("lineStyle"),b=S.get("curveness"),w=v.node1.getLayout(),C=v.node1.getModel(),x=C.get("localX"),A=C.get("localY"),D=v.node2.getLayout(),M=v.node2.getModel(),I=M.get("localX"),P=M.get("localY"),E=v.getLayout(),F,O,N,V,U,G,Z,ee;g.shape.extent=Math.max(1,E.dy),g.shape.orient=d,d==="vertical"?(F=(x!=null?x*u:w.x)+E.sy,O=(A!=null?A*c:w.y)+w.dy,N=(I!=null?I*u:D.x)+E.ty,V=P!=null?P*c:D.y,U=F,G=O*(1-b)+V*b,Z=N,ee=O*b+V*(1-b)):(F=(x!=null?x*u:w.x)+w.dx,O=(A!=null?A*c:w.y)+E.sy,N=I!=null?I*u:D.x,V=(P!=null?P*c:D.y)+E.ty,U=F*(1-b)+N*b,G=O,Z=F*b+N*(1-b),ee=V),g.setShape({x1:F,y1:O,x2:N,y2:V,cpx1:U,cpy1:G,cpx2:Z,cpy2:ee}),g.useStyle(S.getItemStyle()),tV(g.style,d,v);var ie=""+y.get("value"),pe=vn(y,"edgeLabel");Rn(g,pe,{labelFetcher:{getFormattedLabel:function(ze,He,oe,ue,ve,me){return r.getFormattedLabel(ze,He,"edge",ue,To(ve,pe.normal&&pe.normal.get("formatter"),ie),me)}},labelDataIndex:v.dataIndex,defaultText:ie}),g.setTextConfig({position:"inside"});var De=y.getModel("emphasis");Pn(g,y,"lineStyle",function(ze){var He=ze.getItemStyle();return tV(He,d,v),He}),s.add(g),h.setItemGraphicEl(v.dataIndex,g);var Le=De.get("focus");Nr(g,Le==="adjacency"?v.getAdjacentDataIndices():Le==="trajectory"?v.getTrajectoryDataIndices():Le,De.get("blurScope"),De.get("disabled"))}),o.eachNode(function(v){var g=v.getLayout(),m=v.getModel(),y=m.get("localX"),S=m.get("localY"),b=m.getModel("emphasis"),w=m.get(["itemStyle","borderRadius"])||0,C=new It({shape:{x:y!=null?y*u:g.x,y:S!=null?S*c:g.y,width:g.dx,height:g.dy,r:w},style:m.getModel("itemStyle").getItemStyle(),z2:10});Rn(C,vn(m),{labelFetcher:{getFormattedLabel:function(A,D){return r.getFormattedLabel(A,D,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),C.disableLabelAnimation=!0,C.setStyle("fill",v.getVisual("color")),C.setStyle("decal",v.getVisual("style").decal),Pn(C,m),s.add(C),f.setItemGraphicEl(v.dataIndex,C),Qe(C).dataType="node";var x=b.get("focus");Nr(C,x==="adjacency"?v.getAdjacentDataIndices():x==="trajectory"?v.getTrajectoryDataIndices():x,b.get("blurScope"),b.get("disabled"))}),f.eachItemGraphicEl(function(v,g){var m=f.getItemModel(g);m.get("draggable")&&(v.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})},v.ondragend=function(){a._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(f0e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(lr);function tV(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");ke(n)&&ke(i)&&(e.fill=new cg(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function f0e(e,t,r){var n=new It({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return xr(n,{shape:{width:e.width+20}},t,r),n}var 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.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 Zt(o[l],this,n));if(a&&i){var u=XU(a,i,this,!0,c);return u.data}function c(f,h){f.wrapMethod("getItemModel",function(d,v){var g=d.parentModel,m=g.getData().getItemLayout(v);if(m){var y=m.depth,S=g.levelModels[y];S&&(d.parentModel=S)}return d}),h.wrapMethod("getItemModel",function(d,v){var g=d.parentModel,m=g.getGraph().getEdgeByIndex(v),y=m.node1.getLayout();if(y){var S=y.depth,b=g.levelModels[S];b&&(d.parentModel=b)}return d})}},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(d){return isNaN(d)||d==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return pn("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 pn("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}(_r);function d0e(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=v0e(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;g0e(u);var f=er(u,function(g){return g.getLayout().value===0}),h=f.length!==0?0:r.get("layoutIterations"),d=r.get("orient"),v=r.get("nodeAlign");p0e(u,c,n,i,o,s,h,d,v)})}function v0e(e,t){return an(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function p0e(e,t,r,n,i,a,o,s,l){m0e(e,t,r,i,a,s,l),b0e(e,t,a,i,n,o,s),L0e(e,s)}function g0e(e){R(e,function(t){var r=Nl(t.outEdges,N_),n=Nl(t.inEdges,N_),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function m0e(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,h=0;h=0;y&&m.depth>d&&(d=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?d:f-1;o&&o!=="left"&&y0e(e,o,a,A);var D=a==="vertical"?(i-r)/A:(n-r)/A;S0e(e,D,a)}function h8(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function y0e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,C0e(s,l,o),Wx(s,i,r,n,o),I0e(s,l,o),Wx(s,i,r,n,o)}function w0e(e,t){var r=[],n=t==="vertical"?"y":"x",i=kT(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 x0e(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 v=i==="vertical"?n:r;if(u=c-t-v,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var d=f-2;d>=0;--d)l=o[d],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 C0e(e,t,r){R(e.slice().reverse(),function(n){R(n,function(i){if(i.outEdges.length){var a=Nl(i.outEdges,T0e,r)/Nl(i.outEdges,N_);if(isNaN(a)){var o=i.outEdges.length;a=o?Nl(i.outEdges,A0e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Zl(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Zl(i,r))*t;i.setLayout({y:l},!0)}}})})}function T0e(e,t){return Zl(e.node2,t)*e.getValue()}function A0e(e,t){return Zl(e.node2,t)}function D0e(e,t){return Zl(e.node1,t)*e.getValue()}function M0e(e,t){return Zl(e.node1,t)}function Zl(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function N_(e){return e.getValue()}function Nl(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),R(n,function(s){var l=new hn({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 R0e(e){e.registerChartView(c0e),e.registerSeriesModel(h0e),e.registerLayout(d0e),e.registerVisual(P0e),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 d8=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],d=[i,a],v=d[c].get("type"),g=d[1-c].get("type"),m=t.data;if(m&&l){var y=[];R(m,function(w,C){var x;ge(w)?(x=w.slice(),w.unshift(C)):ge(w.value)?(x=fe({},w),x.value=x.value.slice(),w.value.unshift(C)):x=w,y.push(x)}),t.data=y}var S=this.defaultValueDimensions,b=[{name:f,type:T_(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:T_(g),dimsDef:S.slice()}];return ad(this,{coordDimensions:b,dimensionsCount:S.length+1,encodeDefaulter:rt(U4,b,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),v8=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}(_r);en(v8,d8,!0);var E0e=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=rV(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?(Za(f),p8(h,f,a,u)):f=rV(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}(lr),k0e=function(){function e(){}return e}(),O0e=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 k0e},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 w=[y,b];n.push(w)}}}return{boxData:r,outliers:n}}var $0e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Yn){var n="";Wt(n)}var i=G0e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function H0e(e){e.registerSeriesModel(v8),e.registerChartView(E0e),e.registerLayout(F0e),e.registerTransform($0e)}var W0e=["color","borderColor"],U0e=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){eu(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&&nV(u,f))return;var h=Ux(f,c,!0);xr(h,{shape:{points:f.ends}},r,c),Yx(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 d=n.getItemLayout(c);if(s&&nV(u,d)){a.remove(h);return}h?(Bt(h,{shape:{points:d.ends}},r,c),Za(h)):h=Ux(d),Yx(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(),iV(r,this.group);var n=r.get("clip",!0)?_g(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=Ux(s);Yx(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){iV(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}(lr),Y0e=function(){function e(){}return e}(),X0e=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 Y0e},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}(_t);function Ux(e,t,r){var n=e.ends;return new X0e({shape:{points:r?Z0e(n,e):n},z2:100})}function nV(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(W0e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var g8=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}(_r);en(g8,d8,!0);function j0e(e){!e||!ge(e.series)||R(e.series,function(t){qe(t)&&t.type==="k"&&(t.type="candlestick")})}var K0e=["itemStyle","borderColor"],J0e=["itemStyle","borderColor0"],Q0e=["itemStyle","borderColorDoji"],e_e=["itemStyle","color"],t_e=["itemStyle","color0"],r_e={seriesType:"candlestick",plan:td(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?e_e:t_e)}function n(a,o){return o.get(a===0?Q0e:a>0?K0e:J0e)}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");fe(f,c)}}}}}},n_e={seriesType:"candlestick",plan:td(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=i_e(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=be(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?v:d};function d(g,m){for(var y,S=m.getStore();(y=g.next())!=null;){var b=S.get(s,y),w=S.get(u,y),C=S.get(c,y),x=S.get(f,y),A=S.get(h,y),D=Math.min(w,C),M=Math.max(w,C),I=U(D,b),P=U(M,b),E=U(x,b),F=U(A,b),O=[];G(O,P,0),G(O,I,1),O.push(ee(F),ee(P),ee(E),ee(I));var N=m.getItemModel(y),V=!!N.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:aV(S,y,w,C,c,V),initBaseline:w>C?P[a]:I[a],ends:O,brushRect:Z(x,A,b)})}function U(ie,pe){var De=[];return De[i]=pe,De[a]=ie,isNaN(pe)||isNaN(ie)?[NaN,NaN]:t.dataToPoint(De)}function G(ie,pe,De){var Le=pe.slice(),ze=pe.slice();Le[i]=S0(Le[i]+n/2,1,!1),ze[i]=S0(ze[i]-n/2,1,!0),De?ie.push(Le,ze):ie.push(ze,Le)}function Z(ie,pe,De){var Le=U(ie,De),ze=U(pe,De);return Le[i]-=n/2,ze[i]-=n/2,{x:Le[0],y:Le[1],width:n,height:ze[1]-Le[1]}}function ee(ie){return ie[i]=S0(ie[i],1),ie}}function v(g,m){for(var y=wo(g.count*4),S=0,b,w=[],C=[],x,A=m.getStore(),D=!!e.get(["itemStyle","borderColorDoji"]);(x=g.next())!=null;){var M=A.get(s,x),I=A.get(u,x),P=A.get(c,x),E=A.get(f,x),F=A.get(h,x);if(isNaN(M)||isNaN(E)||isNaN(F)){y[S++]=NaN,S+=3;continue}y[S++]=aV(A,x,I,P,c,D),w[i]=M,w[a]=E,b=t.dataToPoint(w,null,C),y[S++]=b?b[0]:NaN,y[S++]=b?b[1]:NaN,w[a]=F,b=t.dataToPoint(w,null,C),y[S++]=b?b[1]:NaN}m.setLayout("largePoints",y)}}};function aV(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 i_e(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(tt(e.get("barMaxWidth"),i),i),o=Ie(tt(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?Ie(s,i):Math.max(Math.min(i/2,a),o)}function a_e(e){e.registerChartView(U0e),e.registerSeriesModel(g8),e.registerPreprocessor(j0e),e.registerVisual(r_e),e.registerLayout(n_e)}function oV(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 o_e=function(e){j(t,e);function t(r,n){var i=e.call(this)||this,a=new mg(r,n),o=new Ke;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;We(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 Sl(r.__p1,r.__cp1)+Sl(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=mn,c=_T;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 d=r.__t<1?h[0]-f[0]:f[0]-h[0],v=r.__t<1?h[1]-f[1]:f[1]-h[1];r.rotation=-Math.atan2(v,d)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(m8),f_e=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),h_e=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 f_e},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 d=(u+f)/2-(c-h)*a,v=(c+h)/2-(f-u)*a;r.quadraticCurveTo(d,v,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++],d=1;d0){var m=(f+v)/2-(h-g)*o,y=(h+g)/2-(v-f)*o;if(U$(f,h,m,y,v,g,s,r,n))return l}else if(fl(f,h,v,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}(),_8={seriesType:"lines",plan:td(),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)&&_g(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=_8.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 d_e:new EI(o?a?c_e:y8:a?m8:RI),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}(lr),p_e=typeof Uint32Array>"u"?Array:Uint32Array,g_e=typeof Float64Array>"u"?Array:Float64Array;function sV(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=be(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),fM([i,r[0],r[1]])}))}var m_e=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||[],sV(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(sV(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=t_(this._flatCoords,n.flatCoords),this._flatCoordsOffset=t_(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}(_r);function by(e){return e instanceof Array||(e=[e,e]),e}var y_e={seriesType:"lines",reset:function(e){var t=by(e.get("symbol")),r=by(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=by(s.getShallow("symbol",!0)),u=by(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 __e(e){e.registerChartView(v_e),e.registerSeriesModel(m_e),e.registerLayout(_8),e.registerVisual(y_e)}var S_e=256,b_e=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Hl.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"),d=t.length;f.width=r,f.height=n;for(var v=0;v0){var E=o(b)?l:u;b>0&&(b=b*I+D),C[x++]=E[P],C[x++]=E[P+1],C[x++]=E[P+2],C[x++]=E[P+3]*b*256}else x+=4}return h.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Hl.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 w_e(e,t,r){var n=e[1]-e[0];t=be(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 lV(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var C_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.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()):lV(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&&(lV(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){eu(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Kc(s,"cartesian2d"),u,c,f,h;if(l){var d=s.getAxis("x"),v=s.getAxis("y");u=d.getBandWidth()+.5,c=v.getBandWidth()+.5,f=d.scale.getExtent(),h=v.scale.getExtent()}for(var g=this.group,m=r.getData(),y=r.getModel(["emphasis","itemStyle"]).getItemStyle(),S=r.getModel(["blur","itemStyle"]).getItemStyle(),b=r.getModel(["select","itemStyle"]).getItemStyle(),w=r.get(["itemStyle","borderRadius"]),C=vn(r),x=r.getModel("emphasis"),A=x.get("focus"),D=x.get("blurScope"),M=x.get("disabled"),I=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 It({shape:{x:V[0]-u/2,y:V[1]-c/2,width:u,height:c},style:F})}else{if(isNaN(m.get(I[1],P)))continue;E=new It({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:F})}if(m.hasItemOption){var U=m.getItemModel(P),G=U.getModel("emphasis");y=G.getModel("itemStyle").getItemStyle(),S=U.getModel(["blur","itemStyle"]).getItemStyle(),b=U.getModel(["select","itemStyle"]).getItemStyle(),w=U.get(["itemStyle","borderRadius"]),A=G.get("focus"),D=G.get("blurScope"),M=G.get("disabled"),C=vn(U)}E.shape.r=w;var Z=r.getRawValue(P),ee="-";Z&&Z[2]!=null&&(ee=Z[2]+""),Rn(E,C,{labelFetcher:r,labelDataIndex:P,defaultOpacity:F.opacity,defaultText:ee}),E.ensureState("emphasis").style=y,E.ensureState("blur").style=S,E.ensureState("select").style=b,Nr(E,A,D,M),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 b_e;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),d=Math.max(c.y,0),v=Math.min(c.width+c.x,a.getWidth()),g=Math.min(c.height+c.y,a.getHeight()),m=v-h,y=g-d,S=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],b=l.mapArray(S,function(A,D,M){var I=r.dataToPoint([A,D]);return I[0]-=h,I[1]-=d,I.push(M),I}),w=i.getExtent(),C=i.type==="visualMap.continuous"?x_e(w,i.option.range):w_e(w,i.getPieceList(),i.option.selected);u.update(b,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var x=new bn({style:{width:m,height:y,x:h,y:d,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(lr),T_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.getInitialData=function(r,n){return Ns(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=dg.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}(_r);function A_e(e){e.registerChartView(C_e),e.registerSeriesModel(T_e)}var D_e=["itemStyle","borderWidth"],uV=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],qx=new Os,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.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:uV[+c],categoryDim:uV[1-+c]};o.diff(s).add(function(v){if(o.hasValue(v)){var g=fV(o,v),m=cV(o,v,g,h),y=hV(o,h,m);o.setItemGraphicEl(v,y),a.add(y),vV(y,h,m)}}).update(function(v,g){var m=s.getItemGraphicEl(g);if(!o.hasValue(v)){a.remove(m);return}var y=fV(o,v),S=cV(o,v,y,h),b=T8(o,S);m&&b!==m.__pictorialShapeStr&&(a.remove(m),o.setItemGraphicEl(v,null),m=null),m?O_e(m,h,S):m=hV(o,h,S,!0),o.setItemGraphicEl(v,m),m.__pictorialSymbolMeta=S,a.add(m),vV(m,h,S)}).remove(function(v){var g=s.getItemGraphicEl(v);g&&dV(s,v,g.__pictorialSymbolMeta.animationModel,g)}).execute();var d=r.get("clip",!0)?_g(r.coordinateSystem,!1,r):null;return d?a.setClipPath(d):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){dV(a,Qe(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(lr);function cV(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};I_e(r,a,i,n,h),L_e(e,t,i,a,o,h.boundingLength,h.pxSign,c,n,h),P_e(r,h.symbolScale,u,n,h);var d=h.symbolSize,v=qc(r.get("symbolOffset"),d);return R_e(r,d,i,a,o,v,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function I_e(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=[jx(s,o[0])-l,jx(s,o[1])-l];f[1]0?1:-1}function jx(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function L_e(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(r[f.wh]),d=e.getItemVisual(t,"symbolSize"),v;ge(d)?v=d.slice():d==null?v=["100%","100%"]:v=[d,d],v[f.index]=Ie(v[f.index],h),v[c.index]=Ie(v[c.index],n?h:Math.abs(a)),u.symbolSize=v;var g=u.symbolScale=[v[0]/s,v[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function P_e(e,t,r,n,i){var a=e.get(D_e)||0;a&&(qx.attr({scaleX:t[0],scaleY:t[1],rotation:r}),qx.updateTransform(),a/=qx.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function R_e(e,t,r,n,i,a,o,s,l,u,c,f){var h=c.categoryDim,d=c.valueDim,v=f.pxSign,g=Math.max(t[d.index]+s,0),m=g;if(n){var y=Math.abs(l),S=_n(e.get("symbolMargin"),"15%")+"",b=!1;S.lastIndexOf("!")===S.length-1&&(b=!0,S=S.slice(0,S.length-1));var w=Ie(S,t[d.index]),C=Math.max(g+w*2,0),x=b?0:w*2,A=P$(n),D=A?n:pV((y+x)/C),M=y-D*g;w=M/2/(b?D:Math.max(D-1,1)),C=g+w*2,x=b?0:w*2,!A&&n!=="fixed"&&(D=u?pV((Math.abs(u)+x)/C):0),m=D*C-x,f.repeatTimes=D,f.symbolMargin=w}var I=v*(m/2),P=f.pathPosition=[];P[h.index]=r[h.wh]/2,P[d.index]=o==="start"?I:o==="end"?l-I:l/2,a&&(P[0]+=a[0],P[1]+=a[1]);var E=f.bundlePosition=[];E[h.index]=r[h.xy],E[d.index]=r[d.xy];var F=f.barRectShape=fe({},r);F[d.wh]=v*Math.max(Math.abs(r[d.wh]),Math.abs(P[d.index]+I)),F[h.wh]=r[h.wh];var O=f.clipShape={};O[h.xy]=-r[h.xy],O[h.wh]=c.ecSize[h.wh],O[d.xy]=0,O[d.wh]=r[d.wh]}function S8(e){var t=e.symbolPatternSize,r=Qr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function b8(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(GI(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 w8(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?ph(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=S8(r),i.add(a),ph(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 x8(e,t,r){var n=fe({},t.barRectShape),i=e.__pictorialBarRect;i?ph(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new It({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function C8(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=fe({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)Bt(i,{shape:a},s,l);else{a[o.wh]=0,i=new It({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],Zc[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function fV(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=E_e,r.isAnimationEnabled=k_e,r}function E_e(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function k_e(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function hV(e,t,r,n){var i=new Ke,a=new Ke;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?b8(i,t,r):w8(i,t,r),x8(i,r,n),C8(i,t,r,n),i.__pictorialShapeStr=T8(e,r),i.__pictorialSymbolMeta=r,i}function O_e(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;Bt(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?b8(e,t,r,!0):w8(e,t,r,!0),x8(e,r,!0),C8(e,t,r,!0)}function dV(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];GI(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),R(a,function(o){Ul(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function T8(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function GI(e,t,r){R(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function ph(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&Zc[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function vV(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");GI(e,function(g){if(g instanceof bn){var m=g.style;g.useStyle(fe({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 d=t.valueDim.posDesc[+(r.boundingLength>0)],v=e.__pictorialBarRect;v.ignoreClip=!0,Rn(v,vn(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Dh(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:d}),Nr(e,c,f,a.get("disabled"))}function pV(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var N_e=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=tu(Np.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}(Np);function F_e(e){e.registerChartView(M_e),e.registerSeriesModel(N_e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,rt(lW,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,uW("pictorialBar"))}var V_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 d=new Ms(this._layersSeries||[],l,h,h),v=[];d.add(Oe(g,this,"add")).update(Oe(g,this,"update")).remove(Oe(g,this,"remove")).execute();function g(m,y,S){var b=o._layers;if(m==="remove"){s.remove(b[y]);return}for(var w=[],C=[],x,A=l[y].indices,D=0;Da&&(a=s),n.push(s)}for(var u=0;ua&&(a=f)}return{y0:i,max:a}}function H_e(e){e.registerChartView(V_e),e.registerSeriesModel(z_e),e.registerLayout(G_e),e.registerProcessor(bg("themeRiver"))}var W_e=2,U_e=4,mV=function(e){j(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=W_e,o.textConfig={inside:!0},Qe(o).seriesIndex=n.seriesIndex;var s=new kt({z2:U_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;Qe(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=fe({},c);f.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var d=n.getVisual("decal");d&&(h.decal=Th(d,o));var v=dc(l.getModel("itemStyle"),f,!0);fe(f,v),R(ui,function(S){var b=s.ensureState(S),w=l.getModel([S,"itemStyle"]);b.style=w.getItemStyle();var C=dc(w,f);C&&(b.shape=C)}),r?(s.setShape(f),s.shape.r=c.r0,xr(s,{shape:{r:c.r}},i,n.dataIndex)):(Bt(s,{shape:f},i),Za(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;Nr(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(),d=this.node.dataIndex,v=a.get("minAngle")/180*Math.PI,g=a.get("show")&&!(v!=null&&Math.abs(s)O&&!wp(V-O)&&V0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,r,n,i):(o.virtualPiece=new mV(S,r,n,i),c.add(o.virtualPiece)),b.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(b.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";m_(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:kA,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}(lr),q_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};A8(i);var a=this._levelModels=be(r.levels||[],function(l){return new Zt(l,this,n)},this),o=AI.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=fS(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(){PU(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}(_r);function A8(e){var t=0;R(e.children,function(n){A8(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 _V=Math.PI/180;function j_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),d=-n.get("startAngle")*_V,v=n.get("minAngle")*_V,g=n.getData().tree.root,m=n.getViewRoot(),y=m.depth,S=n.get("sort");S!=null&&D8(m,S);var b=0;R(m.children,function(V){!isNaN(V.getValue())&&b++});var w=m.getValue(),C=Math.PI/(w||b)*2,x=m.depth>0,A=m.height-(x?-1:1),D=(h-f)/(A||1),M=n.get("clockwise"),I=n.get("stillShowZeroSum"),P=M?1:-1,E=function(V,U){if(V){var G=U;if(V!==g){var Z=V.getValue(),ee=w===0&&I?C:Z*C;ee1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&ke(s)&&(s=wT(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");fe(u,l)})})}function Q_e(e){e.registerChartView(Z_e),e.registerSeriesModel(q_e),e.registerLayout(rt(j_e,"sunburst")),e.registerProcessor(rt(bg,"sunburst")),e.registerVisual(J_e),X_e(e)}var SV={color:"fill",borderColor:"stroke"},e1e={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},bs=Lt(),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.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Ns(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=bs(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}(_r);function r1e(e,t){return t=t||[0,0],be(["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 n1e(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:Oe(r1e,e)}}}function i1e(e,t){return t=t||[0,0],be([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 a1e(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:Oe(i1e,e)}}}function o1e(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 s1e(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:Oe(o1e,e)}}}function l1e(e,t){return t=t||[0,0],be(["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 u1e(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:Oe(l1e,e)}}}function c1e(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 M8(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Ne(e,"text")))}function I8(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},Ne(n,"text")&&(o.text=n.text),Ne(n,"rich")&&(o.rich=n.rich),Ne(n,"textFill")&&(o.fill=n.textFill),Ne(n,"textStroke")&&(o.stroke=n.textStroke),Ne(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Ne(n,"fontSize")&&(o.fontSize=n.fontSize),Ne(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Ne(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Ne(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),Ne(n,"textPosition")&&(i.position=n.textPosition),Ne(n,"textOffset")&&(i.offset=n.textOffset),Ne(n,"textRotation")&&(i.rotation=n.textRotation),Ne(n,"textDistance")&&(i.distance=n.textDistance)}return bV(o,e),R(o.rich,function(l){bV(l,l)}),{textConfig:i,textContent:a}}function bV(e,t){t&&(t.font=t.textFont||t.font,Ne(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Ne(t,"textAlign")&&(e.align=t.textAlign),Ne(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Ne(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Ne(t,"textWidth")&&(e.width=t.textWidth),Ne(t,"textHeight")&&(e.height=t.textHeight),Ne(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Ne(t,"textPadding")&&(e.padding=t.textPadding),Ne(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Ne(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Ne(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Ne(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Ne(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Ne(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Ne(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function wV(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";xV(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){xV(s,s)}),n}function xV(e,t){t&&(Ne(t,"fill")&&(e.textFill=t.fill),Ne(t,"stroke")&&(e.textStroke=t.fill),Ne(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Ne(t,"font")&&(e.font=t.font),Ne(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Ne(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Ne(t,"fontSize")&&(e.fontSize=t.fontSize),Ne(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Ne(t,"align")&&(e.textAlign=t.align),Ne(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Ne(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Ne(t,"width")&&(e.textWidth=t.width),Ne(t,"height")&&(e.textHeight=t.height),Ne(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Ne(t,"padding")&&(e.textPadding=t.padding),Ne(t,"borderColor")&&(e.textBorderColor=t.borderColor),Ne(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Ne(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Ne(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Ne(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Ne(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Ne(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Ne(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Ne(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Ne(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Ne(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var L8={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},CV=xt(L8);Po(Eo,function(e,t){return e[t]=1,e},{});Eo.join(", ");var F_=["","style","shape","extra"],Lh=Lt();function $I(e,t,r,n,i){var a=e+"Animation",o=Zh(e,n,i)||{},s=Lh(t).userDuring;return o.duration>0&&(o.during=s?Oe(p1e,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),fe(o,r[a]),o}function A0(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Lh(e),u=t.style;l.userDuring=t.during;var c={},f={};if(m1e(e,t,f),AV("shape",t,f),AV("extra",t,f),!a&&s&&(g1e(e,t,c),TV("shape",e,t,c),TV("extra",e,t,c),y1e(e,t,u,c)),f.style=u,f1e(e,f,o),d1e(e,t),s)if(a){var h={};R(F_,function(v){var g=v?t[v]:t;g&&g.enterFrom&&(v&&(h[v]=h[v]||{}),fe(v?h[v]:h,g.enterFrom))});var d=$I("enter",e,t,r,i);d.duration>0&&e.animateFrom(h,d)}else h1e(e,t,i||0,r,c);P8(e,t),u?e.dirty():e.markRedraw()}function P8(e,t){for(var r=Lh(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function d1e(e,t){Ne(t,"silent")&&(e.silent=t.silent),Ne(t,"ignore")&&(e.ignore=t.ignore),e instanceof xa&&Ne(t,"invisible")&&(e.invisible=t.invisible),e instanceof _t&&Ne(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var co={},v1e={setTransform:function(e,t){return co.el[e]=t,this},getTransform:function(e){return co.el[e]},setShape:function(e,t){var r=co.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=co.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=co.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=co.el.style;if(t)return t[e]},setExtra:function(e,t){var r=co.el.extra||(co.el.extra={});return r[e]=t,this},getExtra:function(e){var t=co.el.extra;if(t)return t[e]}};function p1e(){var e=this,t=e.el;if(t){var r=Lh(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}co.el=t,n(v1e)}}function TV(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]={}),Ic(l))fe(o,a);else for(var u=nr(l),c=0;c=0){!o&&(o=n[e]={});for(var d=xt(a),c=0;c=0)){var h=e.getAnimationStyleProps(),d=h?h.style:null;if(d){!a&&(a=n.style={});for(var v=xt(r),u=0;u=0?t.getStore().get(U,N):void 0}var G=t.get(V.name,N),Z=V&&V.ordinalMeta;return Z?Z.categories[G]:G}function x(O,N){N==null&&(N=u);var V=t.getItemVisual(N,"style"),U=V&&V.fill,G=V&&V.opacity,Z=S(N,Dl).getItemStyle();U!=null&&(Z.fill=U),G!=null&&(Z.opacity=G);var ee={inheritColor:ke(U)?U:"#000"},ie=b(N,Dl),pe=yr(ie,null,ee,!1,!0);pe.text=ie.getShallow("show")?tt(e.getFormattedLabel(N,Dl),Dh(t,N)):null;var De=p_(ie,ee,!1);return M(O,Z),Z=wV(Z,pe,De),O&&D(Z,O),Z.legacy=!0,Z}function A(O,N){N==null&&(N=u);var V=S(N,ws).getItemStyle(),U=b(N,ws),G=yr(U,null,null,!0,!0);G.text=U.getShallow("show")?To(e.getFormattedLabel(N,ws),e.getFormattedLabel(N,Dl),Dh(t,N)):null;var Z=p_(U,null,!0);return M(O,V),V=wV(V,G,Z),O&&D(V,O),V.legacy=!0,V}function D(O,N){for(var V in N)Ne(N,V)&&(O[V]=N[V])}function M(O,N){O&&(O.textFill&&(N.textFill=O.textFill),O.textPosition&&(N.textPosition=O.textPosition))}function I(O,N){if(N==null&&(N=u),Ne(SV,O)){var V=t.getItemVisual(N,"style");return V?V[SV[O]]:null}if(Ne(e1e,O))return t.getItemVisual(N,O)}function P(O){if(a.type==="cartesian2d"){var N=a.getBaseAxis();return mhe(Ye({axis:N},O))}}function E(){return r.getCurrentSeriesIndices()}function F(O){return OM(O,r)}}function M1e(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 eC(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=XI(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Nr(s,n.focus,n.blurScope,n.emphasisDisabled),s}function XI(e,t,r,n,i,a){var o=-1,s=t;t&&O8(t,n,i)&&(o=pt(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=UI(n),s&&C1e(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),sa.normal.cfg=sa.normal.conOpt=sa.emphasis.cfg=sa.emphasis.conOpt=sa.blur.cfg=sa.blur.conOpt=sa.select.cfg=sa.select.conOpt=null,sa.isLegacy=!1,L1e(u,r,n,i,l,sa),I1e(u,r,n,i,l),YI(e,u,r,n,sa,i,l),Ne(n,"info")&&(bs(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function O8(e,t,r){var n=bs(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&O1e(a)&&N8(a)!==n.customPathData||i==="image"&&Ne(o,"image")&&o.image!==n.customImagePath}function I1e(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&&O8(o,a,n)&&(o=null),o||(o=UI(a),e.setClipPath(o)),YI(null,o,t,a,null,n,i)}}function L1e(e,t,r,n,i,a){if(!e.isGroup){MV(r,null,a),MV(r,ws,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=UI(o),e.setTextContent(c)),YI(null,c,t,o,null,n,i);for(var f=o&&o.style,h=0;h=c;d--){var v=t.childAt(d);R1e(t,v,i)}}}function R1e(e,t,r){t&&vS(t,bs(e).option,r)}function E1e(e){new Ms(e.oldChildren,e.newChildren,IV,IV,e).add(LV).update(LV).remove(k1e).execute()}function IV(e,t){var r=e&&e.name;return r??w1e+t}function LV(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;XI(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function k1e(e){var t=this.context,r=t.oldChildren[e];r&&vS(r,bs(r).option,t.seriesModel)}function N8(e){return e&&(e.pathData||e.d)}function O1e(e){return e&&(Ne(e,"pathData")||Ne(e,"d"))}function N1e(e){e.registerChartView(T1e),e.registerSeriesModel(t1e)}var Qu=Lt(),PV=je,tC=Oe,qI=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 Ke,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=rt(RV,r,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}kV(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=_I(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=Qu(t).pointerEl=new Zc[a.type](PV(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Qu(t).labelEl=new kt(PV(r.label));t.add(a),EV(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Qu(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=Qu(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),EV(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=hg(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Cs(u.event)},onmousedown:tC(this._onHandleDragMove,this,0,0),drift:tC(this._onHandleDragMove,this),ondragend:tC(this._onHandleDragEnd,this)}),n.add(i)),kV(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,rd(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){RV(this._axisPointerModel,!r&&this._moveAnimation,this._handle,rC(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(rC(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(rC(i)),Qu(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),Lp(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 RV(e,t,r,n){F8(Qu(r).lastProp,n)||(Qu(r).lastProp=n,t?Bt(r,n,e):(r.stopAnimation(),r.attr(n)))}function F8(e,t){if(qe(e)&&qe(t)){var r=!0;return R(t,function(n,i){r=r&&F8(e[i],n)}),!!r}else return e===t}function EV(e,t){e[t.get(["label","show"])?"show":"hide"]()}function rC(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function kV(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 jI(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 V8(e,t,r,n,i){var a=r.get("value"),o=B8(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Jh(s.get("padding")||0),u=s.getFont(),c=ag(o,u),f=i.position,h=c.width+l[1]+l[3],d=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=h),v==="center"&&(f[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(f[1]-=d),g==="middle"&&(f[1]-=d/2),F1e(f,h,d,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:yr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function F1e(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 B8(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:lI(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)}),ke(o)?a=o.replace("{value}",a):We(o)&&(a=o(s))}return a}function KI(e,t,r){var n=Yi();return Xc(n,n,r.rotation),Ro(n,n,r.position),Wa([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function z8(e,t,r,n,i,a){var o=si.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),V8(t,n,i,a,{position:KI(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function JI(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function G8(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function OV(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var V1e=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=NV(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=jI(a),d=B1e[u](s,f,c);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=gA(l.model,i);z8(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=gA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=KI(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=NV(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,d=[h,h];d[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:d,tooltipOption:v[c]}},t}(qI);function NV(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var B1e={line:function(e,t,r){var n=JI([t,r[0]],[t,r[1]],FV(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:G8([t-n/2,r[0]],[n,i],FV(e))}}};function FV(e){return e.dim==="x"?0:1}var z1e=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}(wt),ds=Lt(),G1e=R;function $8(e,t,r){if(!St.node){var n=t.getZr();ds(n).records||(ds(n).records={}),$1e(n,t);var i=ds(n).records[e]||(ds(n).records[e]={});i.handler=r}}function $1e(e,t){if(ds(e).initialized)return;ds(e).initialized=!0,r("click",rt(VV,"click")),r("mousemove",rt(VV,"mousemove")),r("globalout",W1e);function r(n,i){e.on(n,function(a){var o=U1e(t);G1e(ds(e).records,function(s){s&&i(s,a,o.dispatchAction)}),H1e(o.pendings,t)})}}function H1e(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 W1e(e,t,r){e.handler("leave",null,r)}function VV(e,t,r,n){t.handler(e,r,n)}function U1e(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 FA(e,t){if(!St.node){var r=t.getZr(),n=(ds(r).records||{})[e];n&&(ds(r).records[e]=null)}}var Y1e=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";$8("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){FA("axisPointer",n)},t.prototype.dispose=function(r,n){FA("axisPointer",n)},t.type="axisPointer",t}(Mr);function H8(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Nc(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,d=f==="x"||f==="radius"?1:0,v=a.mapDimension(h),g=[];g[d]=a.get(v,o),g[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(be(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 BV=Lt();function X1e(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Oe(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){D0(i)&&(i=H8({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=D0(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||D0(i),h={},d={},v={list:[],map:{}},g={showPointer:rt(q1e,d),showTooltip:rt(j1e,v)};R(s.coordSysMap,function(y,S){var b=l||y.containPoint(i);R(s.coordSysAxesInfo[S],function(w,C){var x=w.axis,A=eSe(u,w);if(!f&&b&&(!u||A)){var D=A&&A.value;D==null&&!l&&(D=x.pointToData(i)),D!=null&&zV(w,D,g,!1,h)}})});var m={};return R(c,function(y,S){var b=y.linkGroup;b&&!d[S]&&R(b.axesInfo,function(w,C){var x=d[C];if(w!==y&&x){var A=x.value;b.mapper&&(A=y.axis.scale.parse(b.mapper(A,GV(w),GV(y)))),m[y.key]=A}})}),R(m,function(y,S){zV(c[S],y,g,!0,h)}),K1e(d,c,h),J1e(v,i,e,o),Q1e(c,o,r),h}}function zV(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=Z1e(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&fe(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function Z1e(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 d=l.getAxisTooltipData(c,e,r);h=d.dataIndices,f=d.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 v=e-f,g=Math.abs(v);g<=o&&((g=0&&s<0)&&(o=g,s=v,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 q1e(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function j1e(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=Fp(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 K1e(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 J1e(e,t,r,n){if(D0(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 Q1e(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=BV(n)[i]||{},o=BV(n)[i]={};R(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&R(f.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;o[d]=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 eSe(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 GV(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 D0(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Tg(e){Jc.registerAxisPointerClass("CartesianAxisPointer",V1e),e.registerComponentModel(z1e),e.registerComponentView(Y1e),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=cpe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},X1e)}function tSe(e){gt(mU),gt(Tg)}var rSe=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 d=jI(a),v=iSe[h](s,l,f,c);v.style=d,r.graphicKey=v.type,r.pointer=v}var g=a.get(["label","margin"]),m=nSe(n,i,a,l,g);V8(r,i,a,o,m)},t}(qI);function nSe(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=Yi();Xc(h,h,s),Ro(h,h,[n.cx,n.cy]),u=Wa([o,-i],h);var d=t.getModel("axisLabel").get("rotate")||0,v=si.innerTextLayout(s,d*Math.PI/180,-1);c=v.textAlign,f=v.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 iSe={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:JI(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:OV(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:OV(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}},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.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}(wt),QI=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",jr).models[0]},t.type="polarAxis",t}(wt);en(QI,gg);var oSe=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}(QI),sSe=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}(QI),eL=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}(Ja);eL.prototype.dataToRadius=Ja.prototype.dataToCoord;eL.prototype.radiusToData=Ja.prototype.coordToData;var lSe=Lt(),tL=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=ag(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var d=Math.max(0,Math.floor(h)),v=lSe(r.model),g=v.lastAutoInterval,m=v.lastTickCount;return g!=null&&m!=null&&Math.abs(g-d)<=1&&Math.abs(m-o)<=1&&g>d?d=g:(v.lastTickCount=o,v.lastAutoInterval=d),d},t}(Ja);tL.prototype.dataToAngle=Ja.prototype.dataToCoord;tL.prototype.angleToData=Ja.prototype.coordToData;var W8=["radius","angle"],uSe=function(){function e(t){this.dimensions=W8,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new eL,this._angleAxis=new tL,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=$V(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=$V(r);return i===this?this.pointToData(n):null},e}();function $V(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function cSe(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 fSe(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(A_(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),R(A_(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Ah(n.scale,n.model),Ah(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 hSe(e){return e.mainType==="angleAxis"}function HV(e,t){var r;if(e.type=t.get("type"),e.scale=sS(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),hSe(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 dSe={dimensions:W8,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new uSe(i+"");a.update=fSe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");HV(o,l),HV(s,u),cSe(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",jr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}},vSe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function wy(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 xy(e){var t=e.getRadiusAxis();return t.inverse?0:1}function WV(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 pSe=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=be(i.getViewLabels(),function(c){c=je(c);var f=i.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(h),c});WV(u),WV(s),R(vSe,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&gSe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Jc),gSe={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=xy(r),f=c?0:1,h,d=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?h=new Zc[d]({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 lg({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[xy(r)],u=be(n,function(c){return new cn({shape:wy(r,[l,l+s],c.coord)})});e.add(ma(u,{style:Ye(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[xy(r)],c=[],f=0;fy?"left":"right",w=Math.abs(m[1]-S)/g<.3?"middle":m[1]>S?"top":"bottom";if(s&&s[v]){var C=s[v];qe(C)&&C.textStyle&&(d=new Zt(C.textStyle,l,l.ecModel))}var x=new kt({silent:si.isLabelSilent(t),style:yr(d,{x:m[0],y:m[1],fill:d.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:b,verticalAlign:w})});if(e.add(x),c){var A=si.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=f.rawLabel,Qe(x).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=M;C&&(n[c][F]||(n[c][F]={p:M,n:M}),N=n[c][F][O]);var V=void 0,U=void 0,G=void 0,Z=void 0;if(v.dim==="radius"){var ee=v.dataToCoord(E)-M,ie=l.dataToCoord(F);Math.abs(ee)=Z})}}})}function xSe(e){var t={};R(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Y8(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 d=U8(n);h[d]||f.autoWidthCount++,h[d]=h[d]||{width:0,maxWidth:0};var v=Ie(n.get("barWidth"),c),g=Ie(n.get("barMaxWidth"),c),m=n.get("barGap"),y=n.get("barCategoryGap");v&&!h[d].width&&(v=Math.min(f.remainedWidth,v),h[d].width=v,f.remainedWidth-=v),g&&(h[d].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=UV(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=UV(r);return i===this?this.pointToData(n):null},e}();function UV(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function kSe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new ESe(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",jr).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var OSe={create:kSe,dimensions:X8},YV=["x","y"],NSe=["width","height"],FSe=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=nC(l,1-z_(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var h=jI(a),d=VSe[f](s,c,u);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=VA(i);z8(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=VA(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=KI(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=z_(o),u=nC(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=nC(s,1-l),h=(f[1]+f[0])/2,d=[h,h];return d[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(qI),VSe={line:function(e,t,r){var n=JI([t,r[0]],[t,r[1]],z_(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:G8([t-n/2,r[0]],[n,i],z_(e))}}};function z_(e){return e.isHorizontal()?0:1}function nC(e,t){var r=e.getRect();return[r[YV[t]],r[YV[t]]+r[NSe[t]]]}var BSe=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 zSe(e){gt(Tg),Jc.registerAxisPointerClass("SingleAxisPointer",FSe),e.registerComponentView(BSe),e.registerComponentView(LSe),e.registerComponentModel(M0),Mh(e,"single",M0,M0.defaultOption),e.registerCoordinateSystem("single",OSe)}var GSe=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=Qh(r);e.prototype.init.apply(this,arguments),XV(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),XV(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}(wt);function XV(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=be([0,1],function(a){return lue(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Yl(e,t,{type:"box",ignoreSize:i})}var $Se=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 It({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++){v(f.formatedDate),h===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var d=f.date;d.setMonth(d.getMonth()+1),f=s.getDateInfo(d)}v(s.getNextNDay(n.end.time,1).formatedDate);function v(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 di({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 ke(r)&&r?aue(r,n):We(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,d={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var g=o.get("formatter"),m={start:n.start.y,end:n.end.y,nameMap:v},y=this._formatterLabel(g,m),S=new kt({z2:30,style:yr(o,{text:y})});S.attr(this._yearTextPositionControl(S,d[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||ke(s))&&(s&&(n=YT(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,d=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=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/iC)-Math.floor(r[0].time/iC)+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 ZV(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function WSe(e){e.registerComponentModel(GSe),e.registerComponentView($Se),e.registerCoordinateSystem("calendar",HSe)}function USe(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 qV(e,t){var r;return R(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function YSe(e,t,r){var n=fe({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(ot(i,n,!0),Yl(i,n,{ignoreSize:!0}),z4(r,i),Cy(r,i),Cy(r,i,"shape"),Cy(r,i,"style"),Cy(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var Z8=["transition","enterFrom","leaveTo"],XSe=Z8.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Cy(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?Z8:XSe,i=0;i=0;c--){var f=i[c],h=nn(f.id,null),d=h!=null?o.get(h):null;if(d){var v=d.parent,y=da(v),S=v===a?{width:s,height:l}:{width:y.width,height:y.height},b={},w=J1(d,f,S,null,{hv:f.hv,boundingMode:f.bounding},b);if(!da(d).isNew&&w){for(var C=f.transition,x={},A=0;A=0)?x[D]=M:d[D]=M}Bt(d,x,r,0)}else d.attr(b)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){I0(i,da(i).option,n,r._lastGraphicModel)}),this._elMap=Ve()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Mr);function BA(e){var t=Ne(jV,e)?jV[e]:kM(e),r=new t({});return da(r).type=e,r}function KV(e,t,r,n){var i=BA(r);return t.add(i),n.set(e,i),da(i).id=e,da(i).isNew=!0,i}function I0(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){I0(a,t,r,n)}),vS(e,t,n),r.removeKey(da(e).id))}function JV(e,t,r,n){e.isGroup||R([["cursor",xa.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];Ne(t,a)?e[a]=tt(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),R(xt(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=We(a)?a:null}}),Ne(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function KSe(e){return e=fe({},e),R(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(B4),function(t){delete e[t]}),e}function JSe(e,t,r){var n=Qe(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Qe(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function QSe(e){e.registerComponentModel(qSe),e.registerComponentView(jSe),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 QV=["x","y","radius","angle","single"],ebe=["cartesian2d","polar","singleAxis"];function tbe(e){var t=e.get("coordinateSystem");return pt(ebe,t)>=0}function Ml(e){return e+"Axis"}function rbe(e,t){var r=Ve(),n=[],i=Ve();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,d){var v=r.get(h);v&&v[d]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(r.get(f)||r.set(f,[]))[h]=!0})}return n}function q8(e){var t=e.ecModel,r={infoList:[],infoMap:Ve()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(Ml(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 aC=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}(),Hp=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=e5(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=e5(r);ot(this.option,r,!0),ot(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=Ve(),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(QV,function(i){var a=this.getReferringComponents(Ml(i),Zoe);if(a.specified){n=!0;var o=new aC;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 aC;if(h.add(f.componentIndex),r.set(c,h),a=!1,c==="x"||c==="y"){var d=f.getReferringComponents("grid",jr).models[0];d&&R(u,function(v){f.componentIndex!==v.componentIndex&&d===v.getReferringComponents("grid",jr).models[0]&&h.add(v.componentIndex)})}}}a&&R(QV,function(u){if(a){var c=i.findComponents({mainType:Ml(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new aC;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(Ml(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(Ml(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(b&&!w&&!C)return!0;b&&(m=!0),w&&(v=!0),C&&(g=!0)}return m&&v&&g})}else Wf(c,function(d){if(a==="empty")l.setData(u=u.map(d,function(g){return s(g)?g:NaN}));else{var v={};v[d]=o,u.selectRange(v)}});Wf(c,function(d){u.setApproximateExtent(o,d)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Wf(["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=Kt(n[0]+o,n,[0,100],!0):a!=null&&(o=Kt(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=M$(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 obe(e,t,r){var n=[1/0,-1/0];Wf(r,function(o){Bhe(n,o.getData(),t)});var i=e.getAxisModel(),a=dW(i.axis.scale,i,n).calculate();return[a.min,a.max]}var sbe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(Ml(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 abe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=Ve();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 lbe(e){e.registerAction("dataZoom",function(t,r){var n=rbe(r,t);R(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var r5=!1;function nL(e){r5||(r5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,sbe),lbe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function ube(e){e.registerComponentModel(nbe),e.registerComponentView(ibe),nL(e)}var pa=function(){function e(){}return e}(),j8={};function Uf(e,t){j8[e]=t}function K8(e){return j8[e]}var cbe=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=K8(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),ot(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}(wt);function fbe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=an(n,a,i);Dc(t.get("orient"),e,t.get("itemGap"),o.width,o.height),J1(e,n,a,i)}function J8(e,t){var r=Jh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new It({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 hbe=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(v,g){f.push(g)}),new Ms(this._featureNames||[],f).add(h).update(h).remove(rt(h,null)).execute(),this._featureNames=f;function h(v,g){var m=f[v],y=f[g],S=u[m],b=new Zt(S,r,r.ecModel),w;if(a&&a.newTitle!=null&&a.featureName===m&&(S.title=a.newTitle),m&&!y){if(dbe(m))w={onclick:b.option.onclick,featureName:m};else{var C=K8(m);if(!C)return;w=new C}c[m]=w}else if(w=c[y],!w)return;w.uid=Kh("toolbox-feature"),w.model=b,w.ecModel=n,w.api=i;var x=w instanceof pa;if(!m&&y){x&&w.dispose&&w.dispose(n,i);return}if(!b.get("show")||x&&w.unusable){x&&w.remove&&w.remove(n,i);return}d(b,w,m),b.setIconStatus=function(A,D){var M=this.option,I=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[A]=D,I[A]&&(D==="emphasis"?As:Ds)(I[A])},w instanceof pa&&w.render&&w.render(b,n,i,a)}function d(v,g,m){var y=v.getModel("iconStyle"),S=v.getModel(["emphasis","iconStyle"]),b=g instanceof pa&&g.getIcons?g.getIcons():v.get("icon"),w=v.get("title")||{},C,x;ke(b)?(C={},C[m]=b):C=b,ke(w)?(x={},x[m]=w):x=w;var A=v.iconPaths={};R(C,function(D,M){var I=hg(D,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=S.getItemStyle();var E=new kt({style:{text:x[M],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:OM({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},n)},ignore:!0});I.setTextContent(E),qh({el:I,componentModel:r,itemName:M,formatterParamsExtra:{title:x[M]}}),I.__title=x[M],I.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")}),I.setTextConfig({position:S.get("textPosition")||O}),E.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",M])!=="emphasis"&&i.leaveEmphasis(this),E.hide()}),(v.get(["iconStatus",M])==="emphasis"?As:Ds)(I),o.add(I),I.on("click",Oe(g.onclick,g,n,i,M)),A[M]=I})}fbe(o,r,i),o.add(J8(o.getBoundingRect(),r)),l||o.eachChild(function(v){var g=v.__title,m=v.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),S=v.getTextContent(),b=S&&S.ensureState("emphasis");if(b&&!We(b)&&g){var w=b.style||(b.style={}),C=ag(g,kt.makeFont(w)),x=v.x+o.x,A=v.y+o.y+s,D=!1;A+C.height>i.getHeight()&&(y.position="top",D=!0);var M=D?-5-C.height:s+10;x+C.width/2>i.getWidth()?(y.position=["100%",M],w.align="right"):x-C.width/2<0&&(y.position=[0,M],w.align="left")}})},t.prototype.updateView=function(r,n,i,a){R(this._features,function(o){o instanceof pa&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){R(this._features,function(i){i instanceof pa&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){R(this._features,function(i){i instanceof pa&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(Mr);function dbe(e){return e.indexOf("my")===0}var vbe=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=St.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(","),d=h[0].indexOf("base64")>-1,v=o?decodeURIComponent(h[1]):h[1];d&&(v=window.atob(v));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=v.length,y=new Uint8Array(m);m--;)y[m]=v.charCodeAt(m);var S=new Blob([y]);window.navigator.msSaveOrOpenBlob(S,g)}else{var b=document.createElement("iframe");document.body.appendChild(b);var w=b.contentWindow,C=w.document;C.open("image/svg+xml","replace"),C.write(v),C.close(),w.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(b)}}else{var x=i.get("lang"),A='',D=window.open();D.document.write(A),D.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}(pa),n5="__ec_magicType_stack__",pbe=[["line","bar"],["stack"]],gbe=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(i5[i]){var s={series:[]},l=function(f){var h=f.subType,d=f.id,v=i5[i](h,d,f,a);v&&(Ye(v,f.option),s.series.push(v));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",b=f.getReferringComponents(S,jr).models[0],w=b.componentIndex;s[S]=s[S]||[];for(var C=0;C<=w;C++)s[S][w]=s[S][w]||{};s[S][w].boundaryGap=i==="bar"}}};R(pbe,function(f){pt(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=ot({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}(pa),i5={line:function(e,t,r,n){if(e==="bar")return ot({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 ot({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")===n5;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),ot({id:t,stack:i?"":n5},n.get(["option","stack"])||{},!0)}};Vo({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var pS=new Array(60).join("-"),Ph=" ";function mbe(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 ybe(e){var t=[];return R(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(be(r.series,function(d){return d.name})),l=[i.model.getCategories()];R(r.series,function(d){var v=d.getRawData();l.push(d.getRawData().mapArray(v.mapDimension(o),function(g){return g}))});for(var u=[s.join(Ph)],c=0;c=0)return!0}var zA=new RegExp("["+Ph+"]+","g");function wbe(e){for(var t=e.split(/\n+/g),r=G_(t.shift()).split(zA),n=[],i=be(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 Mbe(e){var t=iL(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return Q8(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 Ibe(e){e6(e).snapshots=null}function Lbe(e){return iL(e).length}function iL(e){var t=e6(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Pbe=function(e){j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){Ibe(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}(pa);Vo({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var Rbe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],aL=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=a5(r,t);R(Ebe,function(o,s){(!n||!n.include||pt(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=oC[n.brushType](0,a,i);n.__rangeOffset={offset:u5[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=oC[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=oC[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?u5[n.brushType](a.values,o.offset,kbe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return be(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:l8(i),isTargetByCursor:c8(i,t,n.coordSysModel),getLinearBrushOtherExtent:u8(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&pt(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=a5(r,t),a=0;ae[1]&&e.reverse(),e}function a5(e,t){return Hv(e,t,{includeMainTypes:Rbe})}var Ebe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=Ve(),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){(pt(r,f.getAxis("x").model)>=0||pt(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:s5.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:s5.geo})})}},o5=[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}],s5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Ac(e)),t}},oC={lineX:rt(l5,0),lineY:rt(l5,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=[GA([i[0],a[0]]),GA([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=be(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 l5(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=GA(be([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 u5={lineX:rt(c5,0),lineY:rt(c5,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 be(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function c5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function kbe(e,t){var r=f5(e),n=f5(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 f5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var $A=R,Obe=Hoe("toolbox-dataZoom_"),Nbe=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 kI(i.getZr()),this._brushController.on("brush",Oe(this._onBrush,this)).mount()),Bbe(r,n,this,a,i),Vbe(r,n)},t.prototype.onclick=function(r,n,i){Fbe[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 aL(oL(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)}}),Dbe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var h=c.getAxis(u),d=h.model,v=l(u,d,a),g=v.findRepresentativeAxisProxy(d).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=Qc(0,f.slice(),h.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),v&&(i[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var v=d.getAxisModel(u,c.componentIndex);v&&(h=d)}),h}},t.prototype._dispatchZoomAction=function(r){var n=[];$A(r,function(i,a){n.push(je(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}(pa),Fbe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Mbe(this.ecModel))}};function oL(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 Vbe(e,t){e.setIconStatus("back",Lbe(t)>1?"emphasis":"normal")}function Bbe(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 aL(oL(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)}vue("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=oL(n),o=Hv(e,a);$A(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),$A(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:Obe+u+f};h[c]=f,i.push(h)}return i});function zbe(e){e.registerComponentModel(cbe),e.registerComponentView(hbe),Uf("saveAsImage",vbe),Uf("magicType",gbe),Uf("dataView",Tbe),Uf("dataZoom",Nbe),Uf("restore",Pbe),gt(ube)}var Gbe=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}(wt);function t6(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function r6(e){if(St.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)),d=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-f)/2)*100)/100;s+=";"+a+":-"+d+"px";var v=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'
'}function Zbe(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+=St.transformSupported?","+sL+n:",left"+n+",top"+n),Wbe+":"+i}function h5(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!St.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=St.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+sL+":"+o+";":[["top",0],["left",0],[n6,o]]}function qbe(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 jbe(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=mH(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(Zbe(i,r)),a&&n.push("background-color:"+a),R(["width","color","radius"],function(d){var v="border-"+d,g=F4(v),m=e.get(g);m!=null&&n.push(v+":"+m+(d==="color"?"":"px"))}),n.push(qbe(c)),f!=null&&n.push("padding:"+Jh(f).join("px ")+"px"),n.join(";")+";"}function d5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&bae(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 Kbe=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,St.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&&(ke(a)?document.querySelector(a):bh(a)?a:We(a)&&a(t.getDom()));d5(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();ua(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=Hbe(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=Ube+jbe(t,!this._firstShow,this._longHide)+h5(a[0],a[1],!0)+("border-color:"+Bc(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(ke(a)&&n.get("trigger")==="item"&&!t6(n)&&(s=Xbe(n,i,a)),ke(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||St.node||!i.getDom())){var o=g5(a,i);this._ticket="";var s=a.dataByCoordSys,l=iwe(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=Qbe;c.x=a.x,c.y=a.y,c.update(),Qe(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=H8(a,n),h=f.point[0],d=f.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,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(g5(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=jd([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=Qe(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;cc(i,function(c){if(Qe(c).dataIndex!=null)return l=c,!0;if(Qe(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=Oe(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=jd([n.tooltipOption],a),l=this._renderMode,u=[],c=pn("section",{blocks:[],noHeader:!0}),f=[],h=new Ww;R(r,function(S){R(S.dataByAxis,function(b){var w=i.getComponent(b.axisDim+"Axis",b.axisIndex),C=b.value;if(!(!w||C==null)){var x=B8(C,w.axis,i,b.seriesDataIndices,b.valueLabelOpt),A=pn("section",{header:x,noHeader:!Ba(x),sortBlocks:!0,blocks:[]});c.blocks.push(A),R(b.seriesDataIndices,function(D){var M=i.getSeriesByIndex(D.seriesIndex),I=D.dataIndexInside,P=M.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=b.axisDim,P.axisIndex=b.axisIndex,P.axisType=b.axisType,P.axisId=b.axisId,P.axisValue=lI(w.axis,{value:C}),P.axisValueLabel=x,P.marker=h.makeTooltipMarker("item",Bc(P.color),l);var E=rO(M.formatTooltip(I,!0,null)),F=E.frag;if(F){var O=jd([M],a).get("valueFormatter");A.blocks.push(O?fe({valueFormatter:O},F):F)}E.text&&f.push(E.text),u.push(P)}})}})}),c.blocks.reverse(),f.reverse();var d=n.position,v=s.get("order"),g=lO(c,h,l,v,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,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],d,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Qe(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),d=this._renderMode,v=r.positionDefault,g=jd([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,f),S=new Ww;y.marker=S.makeTooltipMarker("item",Bc(y.color),d);var b=rO(u.formatTooltip(c,!1,f)),w=g.get("order"),C=g.get("valueFormatter"),x=b.frag,A=x?lO(C?fe({valueFormatter:C},x):x,S,d,w,a.get("useUTC"),g.get("textStyle")):b.text,D="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,A,y,D,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=Qe(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(ke(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=je(l),l.content=xi(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var d=r.positionDefault,v=jd(f,this._tooltipModel,d?{position:d}:null),g=v.get("content"),m=Math.random()+"",y=new Ww;this._showOrMove(v,function(){var S=je(v.get("formatterParams")||{});this._showTooltipContent(v,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 d=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),g=v.color;if(h)if(ke(h)){var m=r.ecModel.get("useUTC"),y=ge(i)?i[0]:i,S=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=h,S&&(d=X1(y.axisValue,d,m)),d=V4(d,i,!0)}else if(We(h)){var b=Oe(function(w,C){w===this._ticket&&(f.setContent(C,c,r,g,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,d=h(i,a,b)}else d=h;f.setContent(d,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"),d=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),We(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),ge(n))i=Ie(n[0],u),a=Ie(n[1],c);else if(qe(n)){var g=n;g.width=f[0],g.height=f[1];var m=an(g,{width:u,height:c});i=m.x,a=m.y,h=null,d=null}else if(ke(n)&&l){var y=nwe(n,v,f,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=twe(i,a,o,u,c,h?null:20,d?null:20);i=y[0],a=y[1]}if(h&&(i-=m5(h)?f[0]/2:h==="right"?f[0]:0),d&&(a-=m5(d)?f[1]/2:d==="bottom"?f[1]:0),t6(r)){var y=rwe(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,d){var v=f[d]||{},g=h.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&g.length===m.length,o&&R(g,function(y,S){var b=m[S];o=o&&y.seriesIndex===b.seriesIndex&&y.dataIndex===b.dataIndex}),a&&R(h.seriesDataIndices,function(y){var S=y.seriesIndex,b=n[S],w=a[S];b&&w&&w.data!==b.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){St.node||!n.getDom()||(Lp(this,"_updatePosition"),this._tooltipContent.dispose(),FA("itemTooltip",n))},t.type="tooltip",t}(Mr);function jd(e,t,r){var n=t.ecModel,i;r?(i=new Zt(r,n,n),i=new Zt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Zt&&(o=o.get("tooltip",!0)),ke(o)&&(o={formatter:o}),o&&(i=new Zt(o,i,n)))}return i}function g5(e,t){return e.dispatchAction||Oe(t.dispatchAction,t)}function twe(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 rwe(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 nwe(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 m5(e){return e==="center"||e==="middle"}function iwe(e,t,r){var n=wM(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=og(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=Qe(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function awe(e){gt(Tg),e.registerComponentModel(Gbe),e.registerComponentView(ewe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ur),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ur)}var owe=["rect","polygon","keep","clear"];function swe(e,t){var r=nr(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),lwe(s),t&&!s.length&&s.push.apply(s,owe)}}function lwe(e){var t={};R(e,function(r){t[r]=1}),e.length=0,R(t,function(r,n){e.push(n)})}var y5=R;function _5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function HA(e,t,r){var n={};return y5(t,function(a){var o=n[a]=i();y5(e[a],function(s,l){if(hn.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new hn(u),l==="opacity"&&(u=je(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new hn(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function a6(e,t,r){var n;R(r,function(i){t.hasOwnProperty(i)&&_5(t[i])&&(n=!0)}),n&&R(r,function(i){t.hasOwnProperty(i)&&_5(t[i])?e[i]=je(t[i]):delete e[i]})}function uwe(e,t,r,n,i,a){var o={};R(e,function(f){var h=hn.prepareVisualTypes(t[f]);o[f]=h});var s;function l(f){return KM(r,s,f)}function u(f,h){DH(r,s,f,h)}r.each(c);function c(f,h){s=f;var d=r.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var v=n.call(i,f),g=t[v],m=o[v],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 st(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var mwe=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 kI(n.getZr())).on("brush",Oe(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){o6(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:je(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:je(i),$from:n})},t.type="brush",t}(Mr),ywe="#ddd",_we=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&&a6(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:ywe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=be(r,function(n){return T5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=T5(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}(wt);function T5(e,t){return ot({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Zt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var Swe=["rect","polygon","lineX","lineY","keep","clear"],bwe=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:Swe.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}(pa);function wwe(e){e.registerComponentView(mwe),e.registerComponentModel(_we),e.registerPreprocessor(swe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,hwe),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"},Ur),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Ur),Uf("brush",bwe)}var xwe=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}(wt),Cwe=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=tt(r.get("textBaseline"),r.get("textVerticalAlign")),c=new kt({style:yr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=r.get("subtext"),d=new kt({style:yr(s,{text:h,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),g=r.get("sublink"),m=r.get("triggerEvent",!0);c.silent=!v&&!m,d.silent=!g&&!m,v&&c.on("click",function(){m_(v,"_"+r.get("target"))}),g&&d.on("click",function(){m_(g,"_"+r.get("subtarget"))}),Qe(c).eventData=Qe(d).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),h&&a.add(d);var y=a.getBoundingRect(),S=r.getBoxLayoutParams();S.width=y.width,S.height=y.height;var b=an(S,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),a.x=b.x,a.y=b.y,a.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),d.setStyle(w),y=a.getBoundingRect();var C=b.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var A=new It({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(A)}},t.type="title",t}(Mr);function Twe(e){e.registerComponentModel(xwe),e.registerComponentView(Cwe)}var A5=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=nn(Yh(u),""),h;qe(u)?(h=je(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 oi([{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}(wt),s6=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=tu(A5.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}(A5);en(s6,eS.prototype);var Awe=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),Dwe=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}(Ja),lC=Math.PI,D5=Lt(),Mwe=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 pn("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=Lwe(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:lC/2},f=a==="vertical"?o.height:o.width,h=r.getModel("controlStyle"),d=h.get("show",!0),v=d?h.get("itemSize"):0,g=d?h.get("itemGap"):0,m=v+g,y=r.get(["label","rotate"])||0;y=y*lC/180;var S,b,w,C=h.get("position",!0),x=d&&h.get("showPlayBtn",!0),A=d&&h.get("showPrevBtn",!0),D=d&&h.get("showNextBtn",!0),M=0,I=f;C==="left"||C==="bottom"?(x&&(S=[0,0],M+=m),A&&(b=[M,0],M+=m),D&&(w=[I-v,0],I-=m)):(x&&(S=[I-v,0],I-=m),A&&(b=[0,0],M+=m),D&&(w=[I-v,0],I-=m));var P=[M,I];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:b,nextBtnPosition:w,axisExtent:P,controlSize:v,controlGap:g}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Yi(),l=o.x,u=o.y+o.height;Ro(s,s,[-l,-u]),Xc(s,s,-lC/2),Ro(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=S(o),f=S(i.getBoundingRect()),h=S(a.getBoundingRect()),d=[i.x,i.y],v=[a.x,a.y];v[0]=d[0]=c[0][0];var g=r.labelPosOpt;if(g==null||ke(g)){var m=g==="+"?0:1;b(d,f,c,1,m),b(v,h,c,1,1-m)}else{var m=g>=0?0:1;b(d,f,c,1,m),v[1]=d[1]+g}i.setPosition(d),a.setPosition(v),i.rotation=a.rotation=r.rotation,y(i),y(a);function y(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function S(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function b(w,C,x,A,D){w[A]+=x[A][D]-C[A][D]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=Iwe(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 Dwe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ke;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 cn({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:fe({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new cn({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ye({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"),d=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:Oe(o._changeTimeline,o,u.value)},m=M5(f,h,n,g);m.ensureState("emphasis").style=d.getItemStyle(),m.ensureState("progress").style=v.getItemStyle(),Tc(m);var y=Qe(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),d=h.getModel("label"),v=h.getModel(["emphasis","label"]),g=h.getModel(["progress","label"]),m=i.dataToCoord(c.tickValue),y=new kt({x:m,y:0,rotation:r.labelRotation-r.rotation,onclick:Oe(o._changeTimeline,o,f),silent:!1,style:yr(d,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=yr(v),y.ensureState("progress").style=yr(g),n.add(y),Tc(y),D5(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",Oe(this._changeTimeline,this,f?"-":"+")),h(r.prevBtnPosition,"prev",Oe(this._changeTimeline,this,f?"+":"-")),h(r.playPosition,c?"stop":"play",Oe(this._handlePlayClick,this,!c),!0);function h(d,v,g,m){if(d){var y=Xa(tt(a.get(["controlStyle",v+"BtnSize"]),o),o),S=[0,-y/2,y,y],b=Pwe(a,v+"Icon",S,{x:d[0],y:d[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});b.ensureState("emphasis").style=u,n.add(b),Tc(b)}}},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=Oe(u._handlePointerDrag,u),f.ondragend=Oe(u._handlePointerDragend,u),I5(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){I5(f,u._progressLine,s,i,a)}};this._currentPointer=M5(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=_a(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(h)),[o,f]}var uC={min:rt(Dy,"min"),max:rt(Dy,"max"),average:rt(Dy,"average"),median:rt(Dy,"median")};function Wp(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!Fwe(t)&&!ge(t.coord)&&ge(i)){var a=l6(t,r,n,e);if(t=je(t),t.type&&uC[t.type]&&a.baseAxis&&a.valueAxis){var o=pt(i,a.baseAxis.dim),s=pt(i,a.valueAxis.dim),l=uC[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++)uC[u[c]]&&(u[c]=uL(r,r.mapDimension(i[c]),u[c]));return t}}function l6(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(Vwe(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 Vwe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Up(e,t){return e&&e.containData&&t.coord&&!UA(t)?e.containData(t.coord):!0}function Bwe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!UA(t)&&!UA(r)?e.containZone(t.coord,r.coord):!0}function u6(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ol(o,t[a])}:function(r,n,i,a){return Ol(r.value,t[a])}}function uL(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 cC=Lt(),cL=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=Ve()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){cC(s).keep=!1}),n.eachSeries(function(s){var l=Ps.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!cC(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){cC(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;R(r,function(a){var o=Ps.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?t4(l):IM(l))})}})},t.type="marker",t}(Mr);function P5(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 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.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ps.getMarkerModelFromSeries(a,"markPoint");o&&(P5(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 yg),f=Gwe(o,r,n);n.setData(f),P5(n.getData(),r,a),f.each(function(h){var d=f.getItemModel(h),v=d.getShallow("symbol"),g=d.getShallow("symbolSize"),m=d.getShallow("symbolRotate"),y=d.getShallow("symbolOffset"),S=d.getShallow("symbolKeepAspect");if(We(v)||We(g)||We(m)||We(y)){var b=n.getRawValue(h),w=n.getDataParams(h);We(v)&&(v=v(b,w)),We(g)&&(g=g(b,w)),We(m)&&(m=m(b,w)),We(y)&&(y=y(b,w))}var C=d.getModel("itemStyle").getItemStyle(),x=vg(l,"color");C.fill||(C.fill=x),f.setItemVisual(h,{symbol:v,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:S,style:C})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(d){Qe(d).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(cL);function Gwe(e,t,r){var n;e?n=be(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return fe(fe({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new oi(n,r),a=be(r.get("data"),rt(Wp,t));e&&(a=er(a,rt(Up,e)));var o=u6(!!e,n);return i.initData(a,null,o),i}function $we(e){e.registerComponentModel(Nwe),e.registerComponentView(zwe),e.registerPreprocessor(function(t){lL(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var 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.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}(Ps),My=Lt(),Wwe=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=_n(n.yAxis,n.xAxis);else{var u=l6(n,i,t,e);s=u.valueAxis;var c=rW(i,u.valueDataDim);l=uL(i,c,o)}var f=s.dim==="x"?0:1,h=1-f,d=je(n),v={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,v.coord[h]=1/0;var g=r.get("precision");g>=0&&Nt(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[f]=v.coord[f]=l,a=[d,v,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var m=[Wp(e,a[0]),Wp(e,a[1]),fe({},a[2])];return m[2].type=m[2].type||null,ot(m[2],m[0]),ot(m[2],m[1]),m};function $_(e){return!isNaN(e)&&!isFinite(e)}function R5(e,t,r,n){var i=1-e,a=n.dimensions[e];return $_(t[i])&&$_(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function Uwe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(R5(1,r,n,e)||R5(0,r,n,e)))return!0}return Up(e,t[0])&&Up(e,t[1])}function fC(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(Kc(a,"cartesian2d")){var d=a.getAxis("x"),v=a.getAxis("y"),c=a.dimensions;$_(e.get(c[0],t))?s[0]=d.toGlobalCoord(d.getExtent()[r?0:1]):$_(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var Ywe=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=Ps.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=My(o).from,u=My(o).to;l.each(function(c){fC(l,c,!0,a,i),fC(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 EI);this.group.add(c.group);var f=Xwe(o,r,n),h=f.from,d=f.to,v=f.line;My(n).from=h,My(n).to=d,n.setData(v);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(w){b(h,w,!0),b(d,w,!1)}),v.each(function(w){var C=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[h.getItemLayout(w),d.getItemLayout(w)]),C.stroke==null&&(C.stroke=h.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(w,"symbolOffset"),fromSymbolRotate:h.getItemVisual(w,"symbolRotate"),fromSymbolSize:h.getItemVisual(w,"symbolSize"),fromSymbol:h.getItemVisual(w,"symbol"),toSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(w,"symbolOffset"),toSymbolRotate:d.getItemVisual(w,"symbolRotate"),toSymbolSize:d.getItemVisual(w,"symbolSize"),toSymbol:d.getItemVisual(w,"symbol"),style:C})}),c.updateData(v),f.line.eachItemGraphicEl(function(w){Qe(w).dataModel=n,w.traverse(function(C){Qe(C).dataModel=n})});function b(w,C,x){var A=w.getItemModel(C);fC(w,C,x,r,a);var D=A.getModel("itemStyle").getItemStyle();D.fill==null&&(D.fill=vg(l,"color")),w.setItemVisual(C,{symbolKeepAspect:A.get("symbolKeepAspect"),symbolOffset:tt(A.get("symbolOffset",!0),S[x?0:1]),symbolRotate:tt(A.get("symbolRotate",!0),y[x?0:1]),symbolSize:tt(A.get("symbolSize"),m[x?0:1]),symbol:tt(A.get("symbol",!0),g[x?0:1]),style:D})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(cL);function Xwe(e,t,r){var n;e?n=be(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return fe(fe({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new oi(n,r),a=new oi(n,r),o=new oi([],r),s=be(r.get("data"),rt(Wwe,t,e,r));e&&(s=er(s,rt(Uwe,e)));var l=u6(!!e,n);return i.initData(be(s,function(u){return u[0]}),null,l),a.initData(be(s,function(u){return u[1]}),null,l),o.initData(be(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function Zwe(e){e.registerComponentModel(Hwe),e.registerComponentView(Ywe),e.registerPreprocessor(function(t){lL(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var qwe=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}(Ps),Iy=Lt(),jwe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Wp(e,i),s=Wp(e,a),l=o.coord,u=s.coord;l[0]=_n(l[0],-1/0),l[1]=_n(l[1],-1/0),u[0]=_n(u[0],1/0),u[1]=_n(u[1],1/0);var c=fM([{},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 H_(e){return!isNaN(e)&&!isFinite(e)}function E5(e,t,r,n){var i=1-e;return H_(t[i])&&H_(r[i])}function Kwe(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 Kc(e,"cartesian2d")?r&&n&&(E5(1,r,n)||E5(0,r,n))?!0:Bwe(e,i,a):Up(e,i)||Up(e,a)}function k5(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),d=a.clampData(f),v=[];r[0]==="x0"?v[0]=h[0]>d[0]?f[0]:c[0]:v[0]=h[0]>d[0]?c[0]:f[0],r[1]==="y0"?v[1]=h[1]>d[1]?f[1]:c[1]:v[1]=h[1]>d[1]?c[1]:f[1],s=n.getMarkerPosition(v,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(Kc(a,"cartesian2d")){var S=a.getAxis("x"),b=a.getAxis("y"),g=e.get(r[0],t),m=e.get(r[1],t);H_(g)?s[0]=S.toGlobalCoord(S.getExtent()[r[0]==="x0"?0:1]):H_(m)&&(s[1]=b.toGlobalCoord(b.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var O5=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Jwe=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=Ps.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=be(O5,function(f){return k5(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 Ke});this.group.add(c.group),this.markKeep(c);var f=Qwe(o,r,n);n.setData(f),f.each(function(h){var d=be(O5,function(D){return k5(f,h,D,r,a)}),v=o.getAxis("x").scale,g=o.getAxis("y").scale,m=v.getExtent(),y=g.getExtent(),S=[v.parse(f.get("x0",h)),v.parse(f.get("x1",h))],b=[g.parse(f.get("y0",h)),g.parse(f.get("y1",h))];_a(S),_a(b);var w=!(m[0]>S[1]||m[1]b[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}(wt),kf=rt,XA=R,Ly=Ke,c6=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 Ly),this.group.add(this._selectorGroup=new Ly),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"),d=an(c,f,h),v=this.layoutInner(r,o,d,a,l,u),g=an(Ye({width:v.width,height:v.height},c),f,h);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=J8(v,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=Ve(),f=n.get("selectedMode"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),XA(n.getData(),function(d,v){var g=d.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var m=new Ly;m.newline=!0,u.add(m);return}var y=i.getSeriesByName(g)[0];if(!c.get(g))if(y){var S=y.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),C=S.getVisual("style"),x=this._createItem(y,g,v,d,n,r,b,C,w,f,a);x.on("click",kf(N5,g,null,a,h)).on("mouseover",kf(ZA,y.name,null,a,h)).on("mouseout",kf(qA,y.name,null,a,h)),i.ssr&&x.eachChild(function(A){var D=Qe(A);D.seriesIndex=y.seriesIndex,D.dataIndex=v,D.ssrType="legend"}),c.set(g,!0)}else i.eachRawSeries(function(A){if(!c.get(g)&&A.legendVisualProvider){var D=A.legendVisualProvider;if(!D.containName(g))return;var M=D.indexOfName(g),I=D.getItemVisual(M,"style"),P=D.getItemVisual(M,"legendIcon"),E=Xi(I.fill);E&&E[3]===0&&(E[3]=.2,I=fe(fe({},I),{fill:Ss(E,"rgba")}));var F=this._createItem(A,g,v,d,n,r,{},I,P,f,a);F.on("click",kf(N5,null,g,a,h)).on("mouseover",kf(ZA,null,g,a,h)).on("mouseout",kf(qA,null,g,a,h)),i.ssr&&F.eachChild(function(O){var N=Qe(O);N.seriesIndex=A.seriesIndex,N.dataIndex=v,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();XA(r,function(u){var c=u.type,f=new kt({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"),d=n.getModel(["emphasis","selectorLabel"]);Rn(f,{normal:h,emphasis:d},{defaultText:u.title}),Tc(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,h){var d=r.visualDrawType,v=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(n),y=a.get("symbolRotate"),S=a.get("symbolKeepAspect"),b=a.get("icon");c=b||c||"roundRect";var w=rxe(c,a,l,u,d,m,h),C=new Ly,x=a.getModel("textStyle");if(We(r.getLegendIcon)&&(!b||b==="inherit"))C.add(r.getLegendIcon({itemWidth:v,itemHeight:g,icon:c,iconRotate:y,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}));else{var A=b==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;C.add(nxe({itemWidth:v,itemHeight:g,icon:c,iconRotate:A,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}))}var D=s==="left"?v+5:-5,M=s,I=o.get("formatter"),P=n;ke(I)&&I?P=I.replace("{name}",n??""):We(I)&&(P=I(n));var E=m?x.getTextColor():a.get("inactiveColor");C.add(new kt({style:yr(x,{text:P,x:D,y:g/2,fill:E,align:M,verticalAlign:"middle"},{inheritColor:E})}));var F=new It({shape:C.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&qh({el:F,componentModel:o,itemName:n,itemTooltipOption:O.option}),C.add(F),C.eachChild(function(N){N.silent=!0}),F.silent=!f,this.getContentGroup().add(C),Tc(C),C.__legendDataIndex=i,C},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Dc(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){Dc("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],v=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"?d[g]+=c[m]+v:f[g]+=h[m]+v,d[1-g]+=c[y]/2-h[y]/2,u.x=d[0],u.y=d[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[m]=c[m]+v+h[m],b[y]=Math.max(c[y],h[y]),b[S]=Math.min(0,h[S]+d[1-g]),b}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 rxe(e,t,r,n,i,a,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),XA(m,function(S,b){m[b]==="inherit"&&(m[b]=y[b])})}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:Th(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"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function nxe(e){var t=e.icon||"roundRect",r=Qr(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 N5(e,t,r,n){qA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),ZA(e,t,r,n)}function f6(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],m=[-d.x,-d.y];n||(m[a]=c[u]);var y=[0,0],S=[-v.x,-v.y],b=tt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var w=r.get("pageButtonPosition",!0);w==="end"?S[a]+=i[o]-v[o]:y[a]+=v[o]+b}S[1-a]+=d[s]/2-v[s]/2,c.setPosition(m),f.setPosition(y),h.setPosition(S);var C={x:0,y:0};if(C[o]=g?i[o]:d[o],C[s]=Math.max(d[s],v[s]),C[l]=Math.min(0,v[l]+S[1-a]),f.__rectSize=i[o],g){var x={x:0,y:0};x[o]=Math.max(i[o]-v[o]-b,0),x[s]=C[s],f.setClipPath(new It({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(r);return A.pageIndex!=null&&Bt(c,{x:A.contentPosition[0],y:A.contentPosition[1]},g?r:null),this._updatePageInfoView(r,A),C},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,d=i.childOfName(c);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.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",ke(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=hC[o],l=dC[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],h=c.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var g=w(f);v.contentPosition[o]=-g.s;for(var m=u+1,y=g,S=g,b=null;m<=h;++m)b=w(c[m]),(!b&&S.e>y.s+a||b&&!C(b,y.s))&&(S.i>y.i?y=S:y=b,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),S=b;for(var m=u-1,y=g,S=g,b=null;m>=-1;--m)b=w(c[m]),(!b||!C(S,b.s))&&y.i=A&&x.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}(c6);function lxe(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 uxe(e){gt(h6),e.registerComponentModel(oxe),e.registerComponentView(sxe),lxe(e)}function cxe(e){gt(h6),gt(uxe)}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.type="dataZoom.inside",t.defaultOption=tu(Hp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Hp),fL=Lt();function hxe(e,t,r){fL(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function dxe(e,t){for(var r=fL(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 yxe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=fL(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=Ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=q8(a);R(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,vxe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Ve());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){d6(i,a);return}var c=mxe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),rd(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var _xe=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(),hxe(i,r,{pan:Oe(vC.pan,this),zoom:Oe(vC.zoom,this),scrollMove:Oe(vC.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}(rL),vC={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=pC[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(Qc(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:B5(function(e,t,r,n,i,a){var o=pC[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:B5(function(e,t,r,n,i,a){var o=pC[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function B5(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(Qc(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var pC={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 v6(e){nL(e),e.registerComponentModel(fxe),e.registerComponentView(_xe),yxe(e)}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.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=tu(Hp.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}(Hp),Qd=It,z5=7,bxe=1,gC=30,wxe=7,ev="horizontal",G5="vertical",xxe=5,Cxe=["line","bar","candlestick","scatter"],Txe={easing:"cubicOut",duration:100,delay:0},Axe=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=Oe(this._onBrush,this),this._onBrushEnd=Oe(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),rd(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(){Lp(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 Ke;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?wxe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===ev?{right:s.width-o.x-o.width,top:s.height-gC-z5-a,width:o.width,height:gC}:{right:z5,top:o.y,width:gC,height:o.height},u=Qh(r.option);R(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=an(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===G5&&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===ev&&!o?{scaleY:l?1:-1,scaleX:1}:i===ev&&o?{scaleY:l?1:-1,scaleX:-1}:i===G5&&!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 Qd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Qd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Oe(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 d=[0,n[1]],v=[0,n[0]],g=[[n[0],0],[0,0]],m=[],y=v[1]/(o.count()-1),S=0,b=Math.round(o.count()/n[0]),w;o.each([l],function(M,I){if(b>0&&I%b){S+=y;return}var P=M==null||isNaN(M)||M==="",E=P?0:Kt(M,f,d,!0);P&&!w&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&w&&(g.push([S,0]),m.push([S,0])),g.push([S,E]),m.push([S,E]),S+=y,w=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var C=this.dataZoomModel;function x(M){var I=C.getModel(M?"selectedDataBackground":"dataBackground"),P=new Ke,E=new fi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),F=new di({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(E),P.add(F),P}for(var A=0;A<3;A++){var D=x(A===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},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&&pt(Cxe,u.get("type"))<0)){var c=a.getComponent(Ml(o),s).axis,f=Dxe(o),h,d=u.coordinateSystem;f!=null&&d.getOtherAxis&&(h=d.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 Qd({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Qd({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:bxe,fill:"rgba(0,0,0,0)"}})),R([0,1],function(b){var w=l.get("handleIcon");!S_[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var C=Qr(w,-1,0,2,2,null,!0);C.attr({cursor:$5(this._orient),draggable:!0,drift:Oe(this._onDragMove,this,b),ondragend:Oe(this._onDragEnd,this),onmouseover:Oe(this._showDataInfo,this,!0),onmouseout:Oe(this._showDataInfo,this,!1),z2:5});var x=C.getBoundingRect(),A=l.get("handleSize");this._handleHeight=Ie(A,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Tc(C);var D=l.get("handleColor");D!=null&&(C.style.fill=D),o.add(i[b]=C);var M=l.getModel("textStyle");r.add(a[b]=new kt({silent:!0,invisible:!0,style:yr(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var d=h;if(f){var v=Ie(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new It({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,y=n.moveHandleIcon=Qr(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+v/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(s[1]/2,Math.max(v,10));d=n.moveZone=new It({invisible:!0,shape:{y:s[1]-S,height:v+S}}),d.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(d)}d.attr({draggable:!0,cursor:$5(this._orient),drift:Oe(this._onDragMove,this,"all"),ondragstart:Oe(this._showDataInfo,this,!0),ondragend:Oe(this._onDragEnd,this),onmouseover:Oe(this._showDataInfo,this,!0),onmouseout:Oe(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Kt(r[0],[0,100],n,!0),Kt(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];Qc(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?Kt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Kt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=_a([Kt(a[0],o,l,!0),Kt(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=_a(i.slice()),o=this._size;R([0,1],function(d){var v=n.handles[d],g=this._handleHeight;v.attr({scaleX:g/2,scaleY:g/2,x:i[d]+(d?-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 nt(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=_a([Kt(i.x,o,s,!0),Kt(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&&(Cs(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 Qd({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?Txe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=q8(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}(rL);function Dxe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function $5(e){return e==="vertical"?"ns-resize":"ew-resize"}function p6(e){e.registerComponentModel(Sxe),e.registerComponentView(Axe),nL(e)}function Mxe(e){gt(v6),gt(p6)}var g6={get:function(e,t,r){var n=je((Ixe[e]||{})[t]);return r&&ge(n)?n[n.length-1]:n}},Ixe={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]}},H5=hn.mapVisual,Lxe=hn.eachVisual,Pxe=ge,W5=R,Rxe=_a,Exe=Kt,W_=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&&a6(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=Oe(r,this),this.controllerVisuals=HA(this.option.controller,n,r),this.targetVisuals=HA(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=nr(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(ke(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(We(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=Rxe([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={});ot(a,i),ot(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){Pxe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,h,d){var v=f[h],g=f[d];v&&!g&&(g=f[d]={},W5(v,function(m,y){if(hn.isValidType(y)){var S=g6.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,d=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";W5(this.stateList,function(y){var S=this.itemSize,b=f[y];b||(b=f[y]={color:s?v:[v]}),b.symbol==null&&(b.symbol=h&&je(h)||(s?m:[m])),b.symbolSize==null&&(b.symbolSize=d&&je(d)||(s?S[0]:[S[0],S[0]])),b.symbol=H5(b.symbol,function(x){return x==="none"?m:x});var w=b.symbolSize;if(w!=null){var C=-1/0;Lxe(w,function(x){x>C&&(C=x)}),b.symbolSize=H5(w,function(x){return Exe(x,[0,C],[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}(wt),U5=[20,140],kxe=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]=U5[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=U5[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=_a((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=Y5(this,"outOfRange",this.getExtent()),i=Y5(this,"inRange",this.option.range.slice()),a=[];function o(d,v){a.push({value:d,color:r(d,v)})}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 Ke(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();Oxe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var h=fo(r[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=d/l[0],f.x=l[0]-d/2;var v=Wa(i.handleLabelPoints[c],Ac(f,this.group));s[c].setStyle({x:v[0],y:v[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},d=this.getControllerVisual(r,"color",h),v=this.getControllerVisual(r,"symbolSize"),g=fo(r,s,u,!0),m=l[0]-v/2,y={x:f.x,y:f.y};f.y=g,f.x=m;var S=Wa(c.indicatorLabelPoint,Ac(f,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),C=this._orient,x=C==="horizontal";b.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:x?w:"middle",align:x?"center":w});var A={x:m,y:g,style:{fill:d}},D={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(A,M),b.animateTo(D,M)}else f.attr(A),b.attr(D);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)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,d=[];(n||j5(i))&&(d=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var v=Yoe(h,d);this._dispatchHighDown("downplay",L0(v[0],i)),this._dispatchHighDown("highlight",L0(v[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(cc(r.target,function(l){var u=Qe(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 Hxe(e,t,r,n){for(var i=t.targetVisuals[n],a=hn.prepareVisualTypes(i),o={color:vg(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(zxe,Gxe),R($xe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Wxe))}function S6(e){e.registerComponentModel(kxe),e.registerComponentView(Vxe),_6(e)}var Uxe=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=[],Yxe[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=je(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=be(this._pieceList,function(l){return l=je(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=hn.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]=g6.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=je(r)},t.prototype.getValueState=function(r){var n=hn.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=hn.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 d=r(h,f);c[0]===-1/0?i[0]=d:c[1]===1/0?i[1]=d:n.push({value:c[0],color:d},{value:c[1],color:d})}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=tu(W_.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}(W_),Yxe={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 eB(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var Xxe=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=_n(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,h,l),R(c.viewPieceList,function(d){var v=d.piece,g=new Ke;g.onclick=Oe(this._onItemClick,this,v),this._enableHoverLink(g,d.indexInModelPieceList);var m=n.getRepresentValue(v);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(m);g.add(new kt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:v.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),Dc(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:L0(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return y6(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 Ke,l=this.visualMapModel.textStyleModel;s.add(new kt({style:yr(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=be(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(Qr(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=je(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}(m6);function b6(e){e.registerComponentModel(Uxe),e.registerComponentView(Xxe),_6(e)}function Zxe(e){gt(S6),gt(b6)}var qxe={label:{enabled:!0},decal:{show:!1}},tB=Lt(),jxe={};function Kxe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=je(qxe);ot(n.label,e.getLocaleModel().get("aria"),!1),ot(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=Ve();e.eachSeries(function(h){if(!h.isColorBySeries()){var d=f.get(h.type);d||(d={},f.set(h.type,d)),tB(h).scope=d}}),e.eachRawSeries(function(h){if(e.isSeriesFiltered(h))return;if(We(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var S=qT(h.ecModel,h.name,jxe,e.getSeriesCount()),b=d.getVisual("decal");d.setVisual("decal",w(b,S))}else{var v=h.getRawData(),g={},m=tB(h).scope;d.each(function(C){var x=d.getRawIndex(C);g[x]=C});var y=v.count();v.each(function(C){var x=g[C],A=v.getName(C)||C+"",D=qT(h.ecModel,A,m,y),M=d.getItemVisual(x,"decal");d.setItemVisual(x,"decal",w(M,D))})}function w(C,x){var A=C?fe(fe({},x),C):x;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=Ye(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=e.getSeriesCount(),d=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,g=Math.min(h,v),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 b=[],w=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(w,{seriesCount:h}),e.eachSeries(function(D,M){if(M1?f.get(["series","multiple",E]):f.get(["series","single",E]),I=o(I,{seriesId:D.seriesIndex,seriesName:D.get("name"),seriesType:l(D.subType)});var F=D.getData();if(F.count()>d){var O=f.get(["data","partialData"]);I+=o(O,{displayCnt:d})}else I+=f.get(["data","allData"]);for(var N=f.get(["data","separator","middle"]),V=f.get(["data","separator","end"]),U=[],G=0;G":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},eCe=function(){function e(t){var r=this._condVal=ke(t)?new RegExp(t):hae(t)?t:null;if(r==null){var n="";Wt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return ke(r)?this._condVal.test(t):Nt(r)?this._condVal.test(t+""):!1},e}(),tCe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),rCe=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){Jf(F,N)&&Jf(O,V)||i.push(F,O,N,V,N,V)}function f(F,O,N,V,U,G){var Z=Math.abs(O-F),ee=Math.tan(Z/4)*4/3,ie=OD:P2&&n.push(i),n}function KA(e,t,r,n,i,a,o,s,l,u){if(Jf(e,r)&&Jf(t,n)&&Jf(i,o)&&Jf(a,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-e,d=s-t,v=Math.sqrt(h*h+d*d);h/=v,d/=v;var g=r-e,m=n-t,y=i-o,S=a-s,b=g*g+m*m,w=y*y+S*S;if(b=0&&D=0){l.push(o,s);return}var M=[],I=[];Wl(e,r,i,o,.5,M),Wl(t,n,a,s,.5,I),KA(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],l,u),KA(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],l,u)}function gCe(e,t){var r=jA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=x6([l,u],c?0:1,t),h=(c?s:u)/f.length,d=0;di,o=x6([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 nt(g*l+e,g*u+t)}function _Ce(e,t,r){var n=new nt;nt.sub(n,r,t),n.normalize();var i=new nt;nt.sub(i,e,t);var a=i.dot(n);return a}function Nf(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function SCe(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),SCe(t,u,c)}function U_(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);U_(e,a[0],i,n),U_(e,a[1],r-i,n)}return n}function bCe(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 Z_(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=be(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=be(a,function(s,l){return{cp:s,z:LCe(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 A6(e){return CCe(e.path,e.count)}function JA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function PCe(e,t,r){var n=[];function i(C){for(var x=0;x=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 ECe={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;cB(e)&&(u=e,c=t),cB(t)&&(u=t,c=e);function f(y,S,b,w,C){var x=y.many,A=y.one;if(x.length===1&&!C){var D=S?x[0]:A,M=S?A:x[0];if(Y_(D))f({many:[D],one:M},!0,b,w,!0);else{var I=s?Ye({delay:s(b,w)},l):l;dL(D,M,I),a(D,M,D,M,I)}}else for(var P=Ye({dividePath:ECe[r],individualDelay:s&&function(U,G,Z,ee){return s(U+b,w)}},l),E=S?PCe(x,A,P):RCe(A,x,P),F=E.fromIndividuals,O=E.toIndividuals,N=F.length,V=0;Vt.length,d=u?fB(c,u):fB(h?t:e,[h?e:t]),v=0,g=0;gD6))for(var a=n.getIndices(),o=0;o0&&x.group.traverse(function(D){D instanceof _t&&!D.animators.length&&D.animateFrom({style:{opacity:0}},A)})})}function gB(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function mB(e){return ge(e)?e.sort().join(","):e}function hl(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function zCe(e,t){var r=Ve(),n=Ve(),i=Ve();return R(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=gB(a),c=mB(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=gB(a),u=mB(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:hl(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:hl(s),data:s}]});else if(ge(l)){var f=[];R(l,function(v){var g=n.get(v);g.data&&f.push({dataGroupId:g.dataGroupId,divide:hl(g.data),data:g.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:hl(s)}]})}else{var h=i.get(l);if(h){var d=r.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:hl(h.data)}],newSeries:[]},r.set(h.key,d)),d.newSeries.push({dataGroupId:o,data:s,divide:hl(s)})}}}}),r}function yB(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:hl(t.oldData[s]),groupIdDim:o.dimension})}),R(nr(e.to),function(o){var s=yB(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:hl(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&M6(i,a,n)}function $Ce(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){R(nr(n.seriesTransition),function(i){R(nr(i.to),function(a){for(var o=n.updatedSeries,s=0;st?Symbol.for(e):Symbol(e),HCe=(e,t,r)=>WCe({l:e,k:t,s:r}),WCe=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),un=e=>typeof e=="number"&&isFinite(e),UCe=e=>vL(e)==="[object Date]",Rh=e=>vL(e)==="[object RegExp]",gS=e=>Vt(e)&&Object.keys(e).length===0,dn=Object.assign;let _B;const vc=()=>_B||(_B=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function SB(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const YCe=Object.prototype.hasOwnProperty;function j_(e,t){return YCe.call(e,t)}const Wr=Array.isArray,Pr=e=>typeof e=="function",Ue=e=>typeof e=="string",rr=e=>typeof e=="boolean",sr=e=>e!==null&&typeof e=="object",XCe=e=>sr(e)&&Pr(e.then)&&Pr(e.catch),I6=Object.prototype.toString,vL=e=>I6.call(e),Vt=e=>vL(e)==="[object Object]",ZCe=e=>e==null?"":Wr(e)||Vt(e)&&e.toString===I6?JSON.stringify(e,null,2):String(e);function pL(e,t=""){return e.reduce((r,n,i)=>i===0?r+n:r+t+n,"")}function qCe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Py=e=>!sr(e)||Wr(e);function P0(e,t){if(Py(e)||Py(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=>{sr(n[a])&&!sr(i[a])&&(i[a]=Array.isArray(n[a])?[]:{}),Py(i[a])||Py(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 jCe(e,t,r){return{line:e,column:t,offset:r}}function QA(e,t,r){return{start:e,end:t}}const gr={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},KCe=17;function mS(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 JCe(e){throw e}const ts=" ",QCe="\r",ei=` +`,eTe="\u2028",tTe="\u2029";function rTe(e){const t=e;let r=0,n=1,i=1,a=0;const o=A=>t[A]===QCe&&t[A+1]===ei,s=A=>t[A]===ei,l=A=>t[A]===tTe,u=A=>t[A]===eTe,c=A=>o(A)||s(A)||l(A)||u(A),f=()=>r,h=()=>n,d=()=>i,v=()=>a,g=A=>o(A)||l(A)||u(A)?ei: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 b(){return o(r+a)&&a++,a++,t[r+a]}function w(){r=0,n=1,i=1,a=0}function C(A=0){a=A}function x(){const A=r+a;for(;A!==r;)S();a=0}return{index:f,line:h,column:d,peekOffset:v,charAt:g,currentChar:m,currentPeek:y,next:S,peek:b,reset:w,resetPeek:C,skipToPeek:x}}const il=void 0,nTe=".",bB="'",iTe="tokenizer";function aTe(e,t={}){const r=t.location!==!1,n=rTe(e),i=()=>n.index(),a=()=>jCe(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($,Y,te,...le){const xe=u();if(Y.column+=te,Y.offset+=te,c){const Pe=r?QA(xe.startLoc,Y):null,K=mS($,Pe,{domain:iTe,args:le});c(K)}}function h($,Y,te){$.endLoc=a(),$.currentType=Y;const le={type:Y};return r&&(le.loc=QA($.startLoc,$.endLoc)),te!=null&&(le.value=te),le}const d=$=>h($,13);function v($,Y){return $.currentChar()===Y?($.next(),Y):(f(gr.EXPECTED_TOKEN,a(),0,Y),"")}function g($){let Y="";for(;$.currentPeek()===ts||$.currentPeek()===ei;)Y+=$.currentPeek(),$.peek();return Y}function m($){const Y=g($);return $.skipToPeek(),Y}function y($){if($===il)return!1;const Y=$.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y===95}function S($){if($===il)return!1;const Y=$.charCodeAt(0);return Y>=48&&Y<=57}function b($,Y){const{currentType:te}=Y;if(te!==2)return!1;g($);const le=y($.currentPeek());return $.resetPeek(),le}function w($,Y){const{currentType:te}=Y;if(te!==2)return!1;g($);const le=$.currentPeek()==="-"?$.peek():$.currentPeek(),xe=S(le);return $.resetPeek(),xe}function C($,Y){const{currentType:te}=Y;if(te!==2)return!1;g($);const le=$.currentPeek()===bB;return $.resetPeek(),le}function x($,Y){const{currentType:te}=Y;if(te!==7)return!1;g($);const le=$.currentPeek()===".";return $.resetPeek(),le}function A($,Y){const{currentType:te}=Y;if(te!==8)return!1;g($);const le=y($.currentPeek());return $.resetPeek(),le}function D($,Y){const{currentType:te}=Y;if(!(te===7||te===11))return!1;g($);const le=$.currentPeek()===":";return $.resetPeek(),le}function M($,Y){const{currentType:te}=Y;if(te!==9)return!1;const le=()=>{const Pe=$.currentPeek();return Pe==="{"?y($.peek()):Pe==="@"||Pe==="|"||Pe===":"||Pe==="."||Pe===ts||!Pe?!1:Pe===ei?($.peek(),le()):P($,!1)},xe=le();return $.resetPeek(),xe}function I($){g($);const Y=$.currentPeek()==="|";return $.resetPeek(),Y}function P($,Y=!0){const te=(xe=!1,Pe="")=>{const K=$.currentPeek();return K==="{"||K==="@"||!K?xe:K==="|"?!(Pe===ts||Pe===ei):K===ts?($.peek(),te(!0,ts)):K===ei?($.peek(),te(!0,ei)):!0},le=te();return Y&&$.resetPeek(),le}function E($,Y){const te=$.currentChar();return te===il?il:Y(te)?($.next(),te):null}function F($){const Y=$.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y>=48&&Y<=57||Y===95||Y===36}function O($){return E($,F)}function N($){const Y=$.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y>=48&&Y<=57||Y===95||Y===36||Y===45}function V($){return E($,N)}function U($){const Y=$.charCodeAt(0);return Y>=48&&Y<=57}function G($){return E($,U)}function Z($){const Y=$.charCodeAt(0);return Y>=48&&Y<=57||Y>=65&&Y<=70||Y>=97&&Y<=102}function ee($){return E($,Z)}function ie($){let Y="",te="";for(;Y=G($);)te+=Y;return te}function pe($){let Y="";for(;;){const te=$.currentChar();if(te==="{"||te==="}"||te==="@"||te==="|"||!te)break;if(te===ts||te===ei)if(P($))Y+=te,$.next();else{if(I($))break;Y+=te,$.next()}else Y+=te,$.next()}return Y}function De($){m($);let Y="",te="";for(;Y=V($);)te+=Y;return $.currentChar()===il&&f(gr.UNTERMINATED_CLOSING_BRACE,a(),0),te}function Le($){m($);let Y="";return $.currentChar()==="-"?($.next(),Y+=`-${ie($)}`):Y+=ie($),$.currentChar()===il&&f(gr.UNTERMINATED_CLOSING_BRACE,a(),0),Y}function ze($){return $!==bB&&$!==ei}function He($){m($),v($,"'");let Y="",te="";for(;Y=E($,ze);)Y==="\\"?te+=oe($):te+=Y;const le=$.currentChar();return le===ei||le===il?(f(gr.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),le===ei&&($.next(),v($,"'")),te):(v($,"'"),te)}function oe($){const Y=$.currentChar();switch(Y){case"\\":case"'":return $.next(),`\\${Y}`;case"u":return ue($,Y,4);case"U":return ue($,Y,6);default:return f(gr.UNKNOWN_ESCAPE_SEQUENCE,a(),0,Y),""}}function ue($,Y,te){v($,Y);let le="";for(let xe=0;xe{const le=$.currentChar();return le==="{"||le==="@"||le==="|"||le==="("||le===")"||!le||le===ts?te:(te+=le,$.next(),Y(te))};return Y("")}function H($){m($);const Y=v($,"|");return m($),Y}function W($,Y){let te=null;switch($.currentChar()){case"{":return Y.braceNest>=1&&f(gr.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),$.next(),te=h(Y,2,"{"),m($),Y.braceNest++,te;case"}":return Y.braceNest>0&&Y.currentType===2&&f(gr.EMPTY_PLACEHOLDER,a(),0),$.next(),te=h(Y,3,"}"),Y.braceNest--,Y.braceNest>0&&m($),Y.inLinked&&Y.braceNest===0&&(Y.inLinked=!1),te;case"@":return Y.braceNest>0&&f(gr.UNTERMINATED_CLOSING_BRACE,a(),0),te=ne($,Y)||d(Y),Y.braceNest=0,te;default:{let xe=!0,Pe=!0,K=!0;if(I($))return Y.braceNest>0&&f(gr.UNTERMINATED_CLOSING_BRACE,a(),0),te=h(Y,1,H($)),Y.braceNest=0,Y.inLinked=!1,te;if(Y.braceNest>0&&(Y.currentType===4||Y.currentType===5||Y.currentType===6))return f(gr.UNTERMINATED_CLOSING_BRACE,a(),0),Y.braceNest=0,_e($,Y);if(xe=b($,Y))return te=h(Y,4,De($)),m($),te;if(Pe=w($,Y))return te=h(Y,5,Le($)),m($),te;if(K=C($,Y))return te=h(Y,6,He($)),m($),te;if(!xe&&!Pe&&!K)return te=h(Y,12,me($)),f(gr.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,te.value),m($),te;break}}return te}function ne($,Y){const{currentType:te}=Y;let le=null;const xe=$.currentChar();switch((te===7||te===8||te===11||te===9)&&(xe===ei||xe===ts)&&f(gr.INVALID_LINKED_FORMAT,a(),0),xe){case"@":return $.next(),le=h(Y,7,"@"),Y.inLinked=!0,le;case".":return m($),$.next(),h(Y,8,".");case":":return m($),$.next(),h(Y,9,":");default:return I($)?(le=h(Y,1,H($)),Y.braceNest=0,Y.inLinked=!1,le):x($,Y)||D($,Y)?(m($),ne($,Y)):A($,Y)?(m($),h(Y,11,Ce($))):M($,Y)?(m($),xe==="{"?W($,Y)||le:h(Y,10,Ee($))):(te===7&&f(gr.INVALID_LINKED_FORMAT,a(),0),Y.braceNest=0,Y.inLinked=!1,_e($,Y))}}function _e($,Y){let te={type:13};if(Y.braceNest>0)return W($,Y)||d(Y);if(Y.inLinked)return ne($,Y)||d(Y);switch($.currentChar()){case"{":return W($,Y)||d(Y);case"}":return f(gr.UNBALANCED_CLOSING_BRACE,a(),0),$.next(),h(Y,3,"}");case"@":return ne($,Y)||d(Y);default:{if(I($))return te=h(Y,1,H($)),Y.braceNest=0,Y.inLinked=!1,te;if(P($))return h(Y,0,pe($));break}}return te}function he(){const{currentType:$,offset:Y,startLoc:te,endLoc:le}=l;return l.lastType=$,l.lastOffset=Y,l.lastStartLoc=te,l.lastEndLoc=le,l.offset=i(),l.startLoc=a(),n.currentChar()===il?h(l,13):_e(n,l)}return{nextToken:he,currentOffset:i,currentPosition:a,context:u}}const oTe="parser",sTe=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function lTe(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 uTe(e={}){const t=e.location!==!1,{onError:r}=e;function n(y,S,b,w,...C){const x=y.currentPosition();if(x.offset+=w,x.column+=w,r){const A=t?QA(b,x):null,D=mS(S,A,{domain:oTe,args:C});r(D)}}function i(y,S,b){const w={type:y};return t&&(w.start=S,w.end=S,w.loc={start:b,end:b}),w}function a(y,S,b,w){t&&(y.end=S,y.loc&&(y.loc.end=b))}function o(y,S){const b=y.context(),w=i(3,b.offset,b.startLoc);return w.value=S,a(w,y.currentOffset(),y.currentPosition()),w}function s(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(5,w,C);return x.index=parseInt(S,10),y.nextToken(),a(x,y.currentOffset(),y.currentPosition()),x}function l(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(4,w,C);return x.key=S,y.nextToken(),a(x,y.currentOffset(),y.currentPosition()),x}function u(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(9,w,C);return x.value=S.replace(sTe,lTe),y.nextToken(),a(x,y.currentOffset(),y.currentPosition()),x}function c(y){const S=y.nextToken(),b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(8,w,C);return S.type!==11?(n(y,gr.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),x.value="",a(x,w,C),{nextConsumeToken:S,node:x}):(S.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,uo(S)),x.value=S.value||"",a(x,y.currentOffset(),y.currentPosition()),{node:x})}function f(y,S){const b=y.context(),w=i(7,b.offset,b.startLoc);return w.value=S,a(w,y.currentOffset(),y.currentPosition()),w}function h(y){const S=y.context(),b=i(6,S.offset,S.startLoc);let w=y.nextToken();if(w.type===8){const C=c(y);b.modifier=C.node,w=C.nextConsumeToken||y.nextToken()}switch(w.type!==9&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(w)),w=y.nextToken(),w.type===2&&(w=y.nextToken()),w.type){case 10:w.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(w)),b.key=f(y,w.value||"");break;case 4:w.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(w)),b.key=l(y,w.value||"");break;case 5:w.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(w)),b.key=s(y,w.value||"");break;case 6:w.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(w)),b.key=u(y,w.value||"");break;default:{n(y,gr.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const C=y.context(),x=i(7,C.offset,C.startLoc);return x.value="",a(x,C.offset,C.startLoc),b.key=x,a(b,C.offset,C.startLoc),{nextConsumeToken:w,node:b}}}return a(b,y.currentOffset(),y.currentPosition()),{node:b}}function d(y){const S=y.context(),b=S.currentType===1?y.currentOffset():S.offset,w=S.currentType===1?S.endLoc:S.startLoc,C=i(2,b,w);C.items=[];let x=null;do{const M=x||y.nextToken();switch(x=null,M.type){case 0:M.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(M)),C.items.push(o(y,M.value||""));break;case 5:M.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(M)),C.items.push(s(y,M.value||""));break;case 4:M.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(M)),C.items.push(l(y,M.value||""));break;case 6:M.value==null&&n(y,gr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,uo(M)),C.items.push(u(y,M.value||""));break;case 7:{const I=h(y);C.items.push(I.node),x=I.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const A=S.currentType===1?S.lastOffset:y.currentOffset(),D=S.currentType===1?S.lastEndLoc:y.currentPosition();return a(C,A,D),C}function v(y,S,b,w){const C=y.context();let x=w.items.length===0;const A=i(1,S,b);A.cases=[],A.cases.push(w);do{const D=d(y);x||(x=D.items.length===0),A.cases.push(D)}while(C.currentType!==13);return x&&n(y,gr.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),a(A,y.currentOffset(),y.currentPosition()),A}function g(y){const S=y.context(),{offset:b,startLoc:w}=S,C=d(y);return S.currentType===13?C:v(y,b,w,C)}function m(y){const S=aTe(y,dn({},e)),b=S.context(),w=i(0,b.offset,b.startLoc);return t&&w.loc&&(w.loc.source=y),w.body=g(S),e.onCacheKey&&(w.cacheKey=e.onCacheKey(y)),b.currentType!==13&&n(S,gr.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,y[b.offset]||""),a(w,S.currentOffset(),S.currentPosition()),w}return{parse:m}}function uo(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 cTe(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:a=>(r.helpers.add(a),a)}}function wB(e,t){for(let r=0;rxB(r)),e}function xB(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 d(){c(s.indentLevel)}return{context:l,push:u,indent:f,deindent:h,newline:d,helper:m=>`_${m}`,needIndent:()=>s.needIndent}}function vTe(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),Eh(e,t.key),t.modifier?(e.push(", "),Eh(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function pTe(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=Ue(t.mode)?t.mode:"normal",n=Ue(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=dTe(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 { ${pL(s.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),Eh(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 _Te(e,t={}){const r=dn({},t),n=!!r.jit,i=!!r.minify,a=r.optimize==null?!0:r.optimize,s=uTe(r).parse(e);return n?(a&&hTe(s),i&&Yf(s),{ast:s,code:""}):(fTe(s,r),yTe(s,r))}/*! + * core-base v10.0.4 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function STe(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(vc().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(vc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function bC(e){return r=>bTe(r,e)}function bTe(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,CB(e,o)],[]))}else return CB(e,r)}function CB(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,eD(e,a)],[]);return e.normalize(n)}}function eD(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(eD(e,n.k||n.key),i?eD(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 wTe=e=>e;let Ry=Object.create(null);const kh=e=>sr(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function xTe(e,t={}){let r=!1;const n=t.onError||JCe;return t.onError=i=>{r=!0,n(i)},{..._Te(e,t),detectError:r}}function CTe(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ue(e)){rr(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||wTe)(e),i=Ry[n];if(i)return i;const{ast:a,detectError:o}=xTe(e,{...t,location:!1,jit:!0}),s=bC(a);return o?s:Ry[n]=s}else{const r=e.cacheKey;if(r){const n=Ry[r];return n||(Ry[r]=bC(e))}else return bC(e)}}let Yp=null;function TTe(e){Yp=e}function ATe(e,t,r){Yp&&Yp.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const DTe=MTe("function:translate");function MTe(e){return t=>Yp&&Yp.emit(e,t)}const vs={INVALID_ARGUMENT:KCe,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},ITe=24;function ps(e){return mS(e,null,void 0)}function mL(e,t){return t.locale!=null?TB(t.locale):TB(e.locale)}let wC;function TB(e){if(Ue(e))return e;if(Pr(e)){if(e.resolvedOnce&&wC!=null)return wC;if(e.constructor.name==="Function"){const t=e();if(XCe(t))throw ps(vs.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return wC=t}else throw ps(vs.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ps(vs.NOT_SUPPORT_LOCALE_TYPE)}function LTe(e,t,r){return[...new Set([r,...Wr(t)?t:sr(t)?Object.keys(t):Ue(t)?[t]:[r]])]}function L6(e,t,r){const n=Ue(r)?r:Xp,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let a=i.__localeChainCache.get(n);if(!a){a=[];let o=[r];for(;Wr(o);)o=AB(a,o,t);const s=Wr(t)||!Vt(t)?t:t.default?t.default:null;o=Ue(s)?[s]:s,Wr(o)&&AB(a,o,!1),i.__localeChainCache.set(n,a)}return a}function AB(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=FTe(o),o===!1))return!1;h[1]()}};function d(){const v=e[r+1];if(n===5&&v==="'"||n===6&&v==='"')return r++,s="\\"+v,h[0](),!0}for(;n!==null;)if(r++,a=e[r],!(a==="\\"&&d())){if(l=NTe(a),f=nu[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 DB=new Map;function BTe(e,t){return sr(e)?e[t]:null}function zTe(e,t){if(!sr(e))return null;let r=DB.get(t);if(r||(r=VTe(t),r&&DB.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 $Te(){return{upper:(e,t)=>t==="text"&&Ue(e)?e.toUpperCase():t==="vnode"&&sr(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ue(e)?e.toLowerCase():t==="vnode"&&sr(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ue(e)?IB(e):t==="vnode"&&sr(e)&&"__v_isVNode"in e?IB(e.children):e}}let P6;function HTe(e){P6=e}let R6;function WTe(e){R6=e}let E6;function UTe(e){E6=e}let k6=null;const YTe=e=>{k6=e},XTe=()=>k6;let O6=null;const LB=e=>{O6=e},ZTe=()=>O6;let PB=0;function qTe(e={}){const t=Pr(e.onWarn)?e.onWarn:qCe,r=Ue(e.version)?e.version:GTe,n=Ue(e.locale)||Pr(e.locale)?e.locale:Xp,i=Pr(n)?Xp:n,a=Wr(e.fallbackLocale)||Vt(e.fallbackLocale)||Ue(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Vt(e.messages)?e.messages:{[i]:{}},s=Vt(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=Vt(e.numberFormats)?e.numberFormats:{[i]:{}},u=dn({},e.modifiers||{},$Te()),c=e.pluralRules||{},f=Pr(e.missing)?e.missing:null,h=rr(e.missingWarn)||Rh(e.missingWarn)?e.missingWarn:!0,d=rr(e.fallbackWarn)||Rh(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,g=!!e.unresolving,m=Pr(e.postTranslation)?e.postTranslation:null,y=Vt(e.processor)?e.processor:null,S=rr(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,w=Pr(e.messageCompiler)?e.messageCompiler:P6,C=Pr(e.messageResolver)?e.messageResolver:R6||BTe,x=Pr(e.localeFallbacker)?e.localeFallbacker:E6||LTe,A=sr(e.fallbackContext)?e.fallbackContext:void 0,D=e,M=sr(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,I=sr(D.__numberFormatters)?D.__numberFormatters:new Map,P=sr(D.__meta)?D.__meta:{};PB++;const E={version:r,cid:PB,locale:n,fallbackLocale:a,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:h,fallbackWarn:d,fallbackFormat:v,unresolving:g,postTranslation:m,processor:y,warnHtmlMessage:S,escapeParameter:b,messageCompiler:w,messageResolver:C,localeFallbacker:x,fallbackContext:A,onWarn:t,__meta:P};return E.datetimeFormats=s,E.numberFormats=l,E.__datetimeFormatters=M,E.__numberFormatters=I,__INTLIFY_PROD_DEVTOOLS__&&ATe(E,r,P),E}function yL(e,t,r,n,i){const{missing:a,onWarn:o}=e;if(a!==null){const s=a(e,r,t,i);return Ue(s)?s:t}else return t}function tv(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function jTe(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function KTe(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let n=r+1;n{N6.includes(l)?o[l]=r[l]:a[l]=r[l]}),Ue(n)?a.locale=n:Vt(n)&&(o=n),Vt(i)&&(o=i),[a.key||"",s,a,o]}function EB(e,t,r){const n=e;for(const i in r){const a=`${t}__${i}`;n.__datetimeFormatters.has(a)&&n.__datetimeFormatters.delete(a)}}function kB(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e,[l,u,c,f]=rD(...t),h=rr(c.missingWarn)?c.missingWarn:e.missingWarn;rr(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,v=mL(e,c),g=o(e,i,v);if(!Ue(l)||l==="")return new Intl.NumberFormat(v,f).format(u);let m={},y,S=null;const b="number format";for(let x=0;x{F6.includes(l)?o[l]=r[l]:a[l]=r[l]}),Ue(n)?a.locale=n:Vt(n)&&(o=n),Vt(i)&&(o=i),[a.key||"",s,a,o]}function OB(e,t,r){const n=e;for(const i in r){const a=`${t}__${i}`;n.__numberFormatters.has(a)&&n.__numberFormatters.delete(a)}}const JTe=e=>e,QTe=e=>"",eAe="text",tAe=e=>e.length===0?"":pL(e),rAe=ZCe;function NB(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function nAe(e){const t=un(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(un(e.named.count)||un(e.named.n))?un(e.named.count)?e.named.count:un(e.named.n)?e.named.n:t:t}function iAe(e,t){t.count||(t.count=e),t.n||(t.n=e)}function aAe(e={}){const t=e.locale,r=nAe(e),n=sr(e.pluralRules)&&Ue(t)&&Pr(e.pluralRules[t])?e.pluralRules[t]:NB,i=sr(e.pluralRules)&&Ue(t)&&Pr(e.pluralRules[t])?NB:void 0,a=y=>y[n(r,y.length,i)],o=e.list||[],s=y=>o[y],l=e.named||{};un(e.pluralIndex)&&iAe(r,l);const u=y=>l[y];function c(y,S){const b=Pr(e.messages)?e.messages(y,!!S):sr(e.messages)?e.messages[y]:!1;return b||(e.parent?e.parent.message(y):QTe)}const f=y=>e.modifiers?e.modifiers[y]:JTe,h=Vt(e.processor)&&Pr(e.processor.normalize)?e.processor.normalize:tAe,d=Vt(e.processor)&&Pr(e.processor.interpolate)?e.processor.interpolate:rAe,v=Vt(e.processor)&&Ue(e.processor.type)?e.processor.type:eAe,m={list:s,named:u,plural:a,linked:(y,...S)=>{const[b,w]=S;let C="text",x="";S.length===1?sr(b)?(x=b.modifier||x,C=b.type||C):Ue(b)&&(x=b||x):S.length===2&&(Ue(b)&&(x=b||x),Ue(w)&&(C=w||C));const A=c(y,!0)(m),D=C==="vnode"&&Wr(A)&&x?A[0]:A;return x?f(x)(D,C):D},message:c,type:v,interpolate:d,normalize:h,values:dn({},o,l)};return m}const FB=()=>"",ga=e=>Pr(e);function VB(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[l,u]=nD(...t),c=rr(u.missingWarn)?u.missingWarn:e.missingWarn,f=rr(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=rr(u.escapeParameter)?u.escapeParameter:e.escapeParameter,d=!!u.resolvedMessage,v=Ue(u.default)||rr(u.default)?rr(u.default)?a?l:()=>l:u.default:r?a?l:()=>l:null,g=r||v!=null&&(Ue(v)||Pr(v)),m=mL(e,u);h&&oAe(u);let[y,S,b]=d?[l,m,s[m]||{}]:V6(e,l,m,o,f,c),w=y,C=l;if(!d&&!(Ue(w)||kh(w)||ga(w))&&g&&(w=v,C=w),!d&&(!(Ue(w)||kh(w)||ga(w))||!Ue(S)))return i?yS:l;let x=!1;const A=()=>{x=!0},D=ga(w)?w:B6(e,l,S,w,C,A);if(x)return w;const M=uAe(e,S,b,u),I=aAe(M),P=sAe(e,D,I),E=n?n(P,l):P;if(__INTLIFY_PROD_DEVTOOLS__){const F={timestamp:Date.now(),key:Ue(l)?l:ga(w)?w.key:"",locale:S||(ga(w)?w.locale:""),format:Ue(w)?w:ga(w)?w.source:"",message:E};F.meta=dn({},e.__meta,XTe()||{}),DTe(F)}return E}function oAe(e){Wr(e.list)?e.list=e.list.map(t=>Ue(t)?SB(t):t):sr(e.named)&&Object.keys(e.named).forEach(t=>{Ue(e.named[t])&&(e.named[t]=SB(e.named[t]))})}function V6(e,t,r,n,i,a){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,n,r);let f={},h,d=null;const v="translate";for(let g=0;gn;return u.locale=r,u.key=t,u}const l=o(n,lAe(e,r,i,n,s,a));return l.locale=r,l.key=t,l.source=n,l}function sAe(e,t,r){return t(r)}function nD(...e){const[t,r,n]=e,i={};if(!Ue(t)&&!un(t)&&!ga(t)&&!kh(t))throw ps(vs.INVALID_ARGUMENT);const a=un(t)?String(t):(ga(t),t);return un(r)?i.plural=r:Ue(r)?i.default=r:Vt(r)&&!gS(r)?i.named=r:Wr(r)&&(i.list=r),un(n)?i.plural=n:Ue(n)?i.default=n:Vt(n)&&dn(i,n),[a,i]}function lAe(e,t,r,n,i,a){return{locale:t,key:r,warnHtmlMessage:i,onError:o=>{throw a&&a(o),o},onCacheKey:o=>HCe(t,r,o)}}function uAe(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:(d,v)=>{let g=o(r,d);if(g==null&&(c||v)){const[,,m]=V6(c||e,d,t,s,l,u);g=o(m,d)}if(Ue(g)||kh(g)){let m=!1;const S=B6(e,d,t,g,d,()=>{m=!0});return m?FB:S}else return ga(g)?g:FB}};return e.processor&&(h.processor=e.processor),n.list&&(h.list=n.list),n.named&&(h.named=n.named),un(n.plural)&&(h.pluralIndex=n.plural),h}STe();/*! + * vue-i18n v10.0.4 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const cAe="10.0.4";function fAe(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(vc().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(vc().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(vc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(vc().__INTLIFY_PROD_DEVTOOLS__=!1)}const hi={UNEXPECTED_RETURN_TYPE:ITe,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 Ii(e,...t){return mS(e,null,void 0)}const iD=ru("__translateVNode"),aD=ru("__datetimeParts"),oD=ru("__numberParts"),z6=ru("__setPluralRules"),G6=ru("__injectWithOption"),sD=ru("__dispose");function Zp(e){if(!sr(e))return e;for(const t in e)if(j_(e,t))if(!t.includes("."))sr(e[t])&&Zp(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]||{},P0(u,o[l])):P0(u,o)}else Ue(s)&&P0(JSON.parse(s),o)}),i==null&&a)for(const s in o)j_(o,s)&&Zp(o[s]);return o}function $6(e){return e.type}function H6(e,t,r){let n=sr(t.messages)?t.messages:{};"__i18nGlobal"in r&&(n=_L(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const i=Object.keys(n);i.length&&i.forEach(a=>{e.mergeLocaleMessage(a,n[a])});{if(sr(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(sr(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function BB(e){return Be(eg,null,e,0)}const zB="__INTLIFY_META__",GB=()=>[],hAe=()=>!1;let $B=0;function HB(e){return(t,r,n,i)=>e(r,n,Io()||void 0,i)}const dAe=()=>{const e=Io();let t=null;return e&&(t=$6(e)[zB])?{[zB]:t}:null};function SL(e={}){const{__root:t,__injectWithOption:r}=e,n=t===void 0,i=e.flatJson,a=q_?Ze:d1;let o=rr(e.inheritLocale)?e.inheritLocale:!0;const s=a(t&&o?t.locale.value:Ue(e.locale)?e.locale:Xp),l=a(t&&o?t.fallbackLocale.value:Ue(e.fallbackLocale)||Wr(e.fallbackLocale)||Vt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=a(_L(s.value,e)),c=a(Vt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=a(Vt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=t?t.missingWarn:rr(e.missingWarn)||Rh(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:rr(e.fallbackWarn)||Rh(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:rr(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,m=Pr(e.missing)?e.missing:null,y=Pr(e.missing)?HB(e.missing):null,S=Pr(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:rr(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const C=t?t.modifiers:Vt(e.modifiers)?e.modifiers:{};let x=e.pluralRules||t&&t.pluralRules,A;A=(()=>{n&&LB(null);const K={version:cAe,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:C,pluralRules:x,missing:y===null?void 0:y,missingWarn:h,fallbackWarn:d,fallbackFormat:g,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:b,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};K.datetimeFormats=c.value,K.numberFormats=f.value,K.__datetimeFormatters=Vt(A)?A.__datetimeFormatters:void 0,K.__numberFormatters=Vt(A)?A.__numberFormatters:void 0;const ce=qTe(K);return n&&LB(ce),ce})(),tv(A,s.value,l.value);function M(){return[s.value,l.value,u.value,c.value,f.value]}const I=at({get:()=>s.value,set:K=>{s.value=K,A.locale=s.value}}),P=at({get:()=>l.value,set:K=>{l.value=K,A.fallbackLocale=l.value,tv(A,s.value,K)}}),E=at(()=>u.value),F=at(()=>c.value),O=at(()=>f.value);function N(){return Pr(S)?S:null}function V(K){S=K,A.postTranslation=K}function U(){return m}function G(K){K!==null&&(y=HB(K)),m=K,A.missing=y}const Z=(K,ce,Ge,Je,Pt,zt)=>{M();let Rr;try{__INTLIFY_PROD_DEVTOOLS__,n||(A.fallbackContext=t?ZTe():void 0),Rr=K(A)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(A.fallbackContext=void 0)}if(Ge!=="translate exists"&&un(Rr)&&Rr===yS||Ge==="translate exists"&&!Rr){const[zr,En]=ce();return t&&v?Je(t):Pt(zr)}else{if(zt(Rr))return Rr;throw Ii(hi.UNEXPECTED_RETURN_TYPE)}};function ee(...K){return Z(ce=>Reflect.apply(VB,null,[ce,...K]),()=>nD(...K),"translate",ce=>Reflect.apply(ce.t,ce,[...K]),ce=>ce,ce=>Ue(ce))}function ie(...K){const[ce,Ge,Je]=K;if(Je&&!sr(Je))throw Ii(hi.INVALID_ARGUMENT);return ee(ce,Ge,dn({resolvedMessage:!0},Je||{}))}function pe(...K){return Z(ce=>Reflect.apply(RB,null,[ce,...K]),()=>tD(...K),"datetime format",ce=>Reflect.apply(ce.d,ce,[...K]),()=>MB,ce=>Ue(ce))}function De(...K){return Z(ce=>Reflect.apply(kB,null,[ce,...K]),()=>rD(...K),"number format",ce=>Reflect.apply(ce.n,ce,[...K]),()=>MB,ce=>Ue(ce))}function Le(K){return K.map(ce=>Ue(ce)||un(ce)||rr(ce)?BB(String(ce)):ce)}const He={normalize:Le,interpolate:K=>K,type:"vnode"};function oe(...K){return Z(ce=>{let Ge;const Je=ce;try{Je.processor=He,Ge=Reflect.apply(VB,null,[Je,...K])}finally{Je.processor=null}return Ge},()=>nD(...K),"translate",ce=>ce[iD](...K),ce=>[BB(ce)],ce=>Wr(ce))}function ue(...K){return Z(ce=>Reflect.apply(kB,null,[ce,...K]),()=>rD(...K),"number format",ce=>ce[oD](...K),GB,ce=>Ue(ce)||Wr(ce))}function ve(...K){return Z(ce=>Reflect.apply(RB,null,[ce,...K]),()=>tD(...K),"datetime format",ce=>ce[aD](...K),GB,ce=>Ue(ce)||Wr(ce))}function me(K){x=K,A.pluralRules=x}function Ce(K,ce){return Z(()=>{if(!K)return!1;const Ge=Ue(ce)?ce:s.value,Je=W(Ge),Pt=A.messageResolver(Je,K);return kh(Pt)||ga(Pt)||Ue(Pt)},()=>[K],"translate exists",Ge=>Reflect.apply(Ge.te,Ge,[K,ce]),hAe,Ge=>rr(Ge))}function Ee(K){let ce=null;const Ge=L6(A,l.value,s.value);for(let Je=0;Je{o&&(s.value=K,A.locale=K,tv(A,s.value,l.value))}),vr(t.fallbackLocale,K=>{o&&(l.value=K,A.fallbackLocale=K,tv(A,s.value,l.value))}));const Pe={id:$B,locale:I,fallbackLocale:P,get inheritLocale(){return o},set inheritLocale(K){o=K,K&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,tv(A,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:E,get modifiers(){return C},get pluralRules(){return x||{}},get isGlobal(){return n},get missingWarn(){return h},set missingWarn(K){h=K,A.missingWarn=h},get fallbackWarn(){return d},set fallbackWarn(K){d=K,A.fallbackWarn=d},get fallbackRoot(){return v},set fallbackRoot(K){v=K},get fallbackFormat(){return g},set fallbackFormat(K){g=K,A.fallbackFormat=g},get warnHtmlMessage(){return b},set warnHtmlMessage(K){b=K,A.warnHtmlMessage=K},get escapeParameter(){return w},set escapeParameter(K){w=K,A.escapeParameter=K},t:ee,getLocaleMessage:W,setLocaleMessage:ne,mergeLocaleMessage:_e,getPostTranslationHandler:N,setPostTranslationHandler:V,getMissingHandler:U,setMissingHandler:G,[z6]:me};return Pe.datetimeFormats=F,Pe.numberFormats=O,Pe.rt=ie,Pe.te=Ce,Pe.tm=H,Pe.d=pe,Pe.n=De,Pe.getDateTimeFormat=he,Pe.setDateTimeFormat=$,Pe.mergeDateTimeFormat=Y,Pe.getNumberFormat=te,Pe.setNumberFormat=le,Pe.mergeNumberFormat=xe,Pe[G6]=r,Pe[iD]=oe,Pe[aD]=ve,Pe[oD]=ue,Pe}function vAe(e){const t=Ue(e.locale)?e.locale:Xp,r=Ue(e.fallbackLocale)||Wr(e.fallbackLocale)||Vt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=Pr(e.missing)?e.missing:void 0,i=rr(e.silentTranslationWarn)||Rh(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=rr(e.silentFallbackWarn)||Rh(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=rr(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Vt(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Pr(e.postTranslation)?e.postTranslation:void 0,f=Ue(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,d=rr(e.sync)?e.sync:!0;let v=e.messages;if(Vt(e.sharedMessages)){const C=e.sharedMessages;v=Object.keys(C).reduce((A,D)=>{const M=A[D]||(A[D]={});return dn(M,C[D]),A},v||{})}const{__i18n:g,__root:m,__injectWithOption:y}=e,S=e.datetimeFormats,b=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:r,messages:v,flatJson:w,datetimeFormats:S,numberFormats:b,missing:n,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:d,__i18n:g,__root:m,__injectWithOption:y}}function lD(e={}){const t=SL(vAe(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 rr(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=rr(i)?!i:i},get silentFallbackWarn(){return rr(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=rr(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(!Ue(a))throw Ii(hi.INVALID_ARGUMENT);const f=a;return Ue(o)?l.locale=o:un(o)?l.plural=o:Wr(o)?u=o:Vt(o)&&(c=o),Ue(s)?l.locale=s:Wr(s)?u=s:Vt(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 pAe(e,t,r){return{beforeCreate(){const n=Io();if(!n)throw Ii(hi.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=WB(e,a);else{a.__injectWithOption=!0,a.__extender=r.__vueI18nExtend,this.$i18n=lD(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=WB(e,i);else{this.$i18n=lD({__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&&H6(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=Io();if(!n)throw Ii(hi.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 WB(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[z6](t.pluralizationRules||e.pluralizationRules);const r=_L(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 bL={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function gAe({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,i)=>[...n,...i.type===lt?i.children:[i]],[]):t.reduce((r,n)=>{const i=e[n];return i&&(r[n]=i()),r},{})}function W6(){return lt}const mAe=Ut({name:"i18n-t",props:dn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>un(e)||!isNaN(e)}},bL),setup(e,t){const{slots:r,attrs:n}=t,i=e.i18n||$c({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=Ue(e.plural)?+e.plural:e.plural);const s=gAe(t,a),l=i[iD](e.keypath,s,o),u=dn({},n),c=Ue(e.tag)||sr(e.tag)?e.tag:W6();return yo(c,u,l)}}}),UB=mAe;function yAe(e){return Wr(e)&&!Ue(e[0])}function U6(e,t,r,n){const{slots:i,attrs:a}=t;return()=>{const o={part:!0};let s={};e.locale&&(o.locale=e.locale),Ue(e.format)?o.key=e.format:sr(e.format)&&(Ue(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((h,d)=>r.includes(d)?dn({},h,{[d]:e.format[d]}):h,{}));const l=n(e.value,o,s);let u=[o.key];Wr(l)?u=l.map((h,d)=>{const v=i[h.type],g=v?v({[h.type]:h.value,index:d,parts:l}):[h.value];return yAe(g)&&(g[0].key=`${h.type}-${d}`),g}):Ue(l)&&(u=[l]);const c=dn({},a),f=Ue(e.tag)||sr(e.tag)?e.tag:W6();return yo(f,c,u)}}const _Ae=Ut({name:"i18n-n",props:dn({value:{type:Number,required:!0},format:{type:[String,Object]}},bL),setup(e,t){const r=e.i18n||$c({useScope:e.scope,__useComponent:!0});return U6(e,t,F6,(...n)=>r[oD](...n))}}),YB=_Ae,SAe=Ut({name:"i18n-d",props:dn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},bL),setup(e,t){const r=e.i18n||$c({useScope:e.scope,__useComponent:!0});return U6(e,t,N6,(...n)=>r[aD](...n))}}),XB=SAe;function bAe(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 wAe(e){const t=o=>{const{instance:s,value:l}=o;if(!s||!s.$)throw Ii(hi.UNEXPECTED_ERROR);const u=bAe(e,s.$),c=ZB(l);return[Reflect.apply(u.t,u,[...qB(c)]),u]};return{created:(o,s)=>{const[l,u]=t(s);q_&&e.global===u&&(o.__i18nWatcher=vr(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{q_&&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=ZB(s);o.textContent=Reflect.apply(l.t,l,[...qB(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function ZB(e){if(Ue(e))return{path:e};if(Vt(e)){if(!("path"in e))throw Ii(hi.REQUIRED_VALUE,"path");return e}else throw Ii(hi.INVALID_VALUE)}function qB(e){const{path:t,locale:r,args:n,choice:i,plural:a}=e,o={},s=n||{};return Ue(r)&&(o.locale=r),un(i)&&(o.plural=i),un(a)&&(o.plural=a),[t,s,o]}function xAe(e,t,...r){const n=Vt(r[0])?r[0]:{};(rr(n.globalInstall)?n.globalInstall:!0)&&([UB.name,"I18nT"].forEach(a=>e.component(a,UB)),[YB.name,"I18nN"].forEach(a=>e.component(a,YB)),[XB.name,"I18nD"].forEach(a=>e.component(a,XB))),e.directive("t",wAe(t))}const CAe=ru("global-vue-i18n");function TAe(e={},t){const r=__VUE_I18N_LEGACY_API__&&rr(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=rr(e.globalInjection)?e.globalInjection:!0,i=new Map,[a,o]=AAe(e,r),s=ru("");function l(h){return i.get(h)||null}function u(h,d){i.set(h,d)}function c(h){i.delete(h)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},async install(h,...d){if(h.__VUE_I18N_SYMBOL__=s,h.provide(h.__VUE_I18N_SYMBOL__,f),Vt(d[0])){const m=d[0];f.__composerExtend=m.__composerExtend,f.__vueI18nExtend=m.__vueI18nExtend}let v=null;!r&&n&&(v=kAe(h,f.global)),__VUE_I18N_FULL_INSTALL__&&xAe(h,f,...d),__VUE_I18N_LEGACY_API__&&r&&h.mixin(pAe(o,o.__composer,f));const g=h.unmount;h.unmount=()=>{v&&v(),f.dispose(),g()}},get global(){return o},dispose(){a.stop()},__instances:i,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function $c(e={}){const t=Io();if(t==null)throw Ii(hi.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ii(hi.NOT_INSTALLED);const r=DAe(t),n=IAe(r),i=$6(t),a=MAe(e,i);if(a==="global")return H6(n,e,i),n;if(a==="parent"){let l=LAe(r,t,e.__useComponent);return l==null&&(l=n),l}const o=r;let s=o.__getInstance(t);if(s==null){const l=dn({},e);"__i18n"in i&&(l.__i18n=i.__i18n),n&&(l.__root=n),s=SL(l),o.__composerExtend&&(s[sD]=o.__composerExtend(s)),RAe(o,t,s),o.__setInstance(t,s)}return s}function AAe(e,t,r){const n=WJ(),i=__VUE_I18N_LEGACY_API__&&t?n.run(()=>lD(e)):n.run(()=>SL(e));if(i==null)throw Ii(hi.UNEXPECTED_ERROR);return[n,i]}function DAe(e){const t=$a(e.isCE?CAe:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ii(e.isCE?hi.NOT_INSTALLED_WITH_PROVIDE:hi.UNEXPECTED_ERROR);return t}function MAe(e,t){return gS(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function IAe(e){return e.mode==="composition"?e.global:e.global.__composer}function LAe(e,t,r=!1){let n=null;const i=t.root;let a=PAe(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[G6]&&(n=null))}if(n!=null||i===a)break;a=a.parent}return n}function PAe(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function RAe(e,t,r){Bh(()=>{},t),g1(()=>{const n=r;e.__deleteInstance(t);const i=n[sD];i&&(i(),delete n[sD])},t)}const EAe=["locale","fallbackLocale","availableLocales"],jB=["t","rt","d","n","tm","te"];function kAe(e,t){const r=Object.create(null);return EAe.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a)throw Ii(hi.UNEXPECTED_ERROR);const o=bt(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,jB.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a||!a.value)throw Ii(hi.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,a)}),()=>{delete e.config.globalProperties.$i18n,jB.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}fAe();HTe(CTe);WTe(zTe);UTe(L6);if(__INTLIFY_PROD_DEVTOOLS__){const e=vc();e.__INTLIFY__=!0,TTe(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const OAe=Ut({__name:"SpeedCharts",setup(e){const t=Ze(),r=Ze(),n=Ze(),i=$c().t,a=Ze();return Bh(()=>{const o=at(()=>{var d,v,g;const c=(d=getComputedStyle(t.value))==null?void 0:d.color,f=(v=getComputedStyle(r.value))==null?void 0:v.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=>`${Or(m,{maximumFractionDigits:1})}/s`,color:c},splitLine:{show:!1}},animation:!1,series:[{name:i("upload"),data:cv.value,symbol:"none",emphasis:{disabled:!0},type:"line",color:h,smooth:!0},{name:i("download"),data:uv.value,symbol:"none",emphasis:{disabled:!0},type:"line",color:f,smooth:!0}]}}),s=Nfe(a.value);s.setOption(o.value),vr(o,()=>{s.setOption(o.value)});const{width:l}=xte(a),u=Ec.debounce(()=>{s.resize()},100);vr(()=>l.value,()=>{u()})}),(o,s)=>(se(),Se(lt,null,[Q("div",{ref_key:"chart",ref:a,class:"card h-28 w-full bg-base-100 p-0 shadow-lg"},null,512),Q("span",{class:"hidden text-base-content",ref_key:"text",ref:t},null,512),Q("span",{class:"hidden text-primary",ref_key:"primaryText",ref:r},null,512),Q("span",{class:"hidden text-info",ref_key:"secondaryText",ref:n},null,512)],64))}}),NAe={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 For Proxy Groups",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",language:"Language",automaticDisconnection:"Automatic Disconnection",twoColumnsForProxyGroupInMobile:"Two Columns For Proxy Group In Mobile",backend:"Backend",upgradeCore:"Upgrade Core",[Lo.EN_US]:"English",[Lo.ZH_CN]:"中文"},FAe={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:"按延迟升序",language:"语言",automaticDisconnection:"自动断开连接",twoColumnsForProxyGroupInMobile:"在移动端显示两列代理节点",backend:"后端",upgradeCore:"更新核心",[Lo.EN_US]:"English",[Lo.ZH_CN]:"中文"},wL=TAe({locale:fs.value,messages:{[Lo.EN_US]:NAe,[Lo.ZH_CN]:FAe}}),VAe=Ut({props:{conn:Object},name:"ConnectionCard",setup(e,{emit:t}){return()=>{const r=Be("span",{class:"flex-1"},null),n=Be("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,Be("span",{class:"hidden sm:inline"},[qt(":"),e.conn.metadata.destinationPort])]),i=Be("div",{class:"badge flex bg-base-200 px-1 text-sm text-base-content"},[Be(Rne,{class:"h-4 w-3"},null),Be("div",{class:"hidden w-16 text-right sm:inline"},[Or(e.conn.download),qt(" |")," "]),Be("div",{class:"w-20 text-right"},[Or(e.conn.downloadSpeed),qt("/s")])]),a=Be("div",{class:"badge hidden bg-base-200 px-1 text-sm text-base-content 2xl:flex"},[Be(fE,{class:"h-4 w-3"},null),Be("div",{class:"w-16 text-right"},[Or(e.conn.upload),qt(" | ")]),Be("div",{class:"w-20 text-right"},[Or(e.conn.uploadSpeed),qt("/s")])]),o=Be("div",{class:"badge hidden bg-base-200 px-1 text-sm text-base-content lg:flex"},[Be(fE,{class:"h-4 w-3"},null),Be("div",{class:"w-16 text-right"},[Or(e.conn.upload),qt(" | ")]),Be("div",{class:"w-20 text-right"},[Or(e.conn.uploadSpeed),qt("/s")])]),s=Be("div",{class:"flex w-12 gap-1"},[Be("button",{class:"btn btn-circle btn-xs",onClick:()=>t("info",e.conn)},[Be(RG,{class:"h-4 w-4"},null)]),Be("button",{onClick:()=>T1(e.conn.id)},[Be(QD,{class:"h-4 w-4"},null)])]),l=Be("span",{class:"inline w-56 text-sm"},[[...e.conn.chains].reverse().join("->")]),u=Be("span",{class:"hidden text-sm tracking-tight xl:inline"},[e.conn.rule]),c=Be("span",{class:"hidden min-w-48 px-2 text-sm 2xl:inline"},[e.conn.metadata.processPath]),f=Be("span",{class:Kr("inline whitespace-nowrap text-right text-sm tracking-tight",fs.value===Lo.ZH_CN?"w-20":"w-32")},[M1(e.conn.start)]),h=Be("span",{class:"hidden w-36 text-sm lg:inline"},[e.conn.metadata.type,qt(" | "),e.conn.metadata.network]),d=Be("span",{class:"hidden w-36 text-sm md:inline"},[e.conn.metadata.type,qt(" | "),e.conn.metadata.network]),v=e.conn.metadata.destinationIP||"remote-resolve",g=Be("span",{class:"hidden w-96 truncate text-sm tracking-tight xl:flex"},[Be("span",null,[e.conn.metadata.sourceIP,qt(":"),e.conn.metadata.sourcePort]),Be("span",null,[qt("->")]),Be("span",null,[v,qt(":"),e.conn.metadata.destinationPort])]),m=Be("span",{class:"hidden w-52 truncate text-sm tracking-tight 3xl:flex"},[Be("span",null,[e.conn.metadata.sourceIP]),Be("span",null,[qt("->")]),Be("span",null,[v])]);return YG.value&&n0.value?Be("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,d,i,a,f,s]):Be("div",{class:"card w-full gap-[1px] rounded-xl bg-base-100 px-2 py-[1px] shadow-lg"},[Be("div",{class:"flex flex-row items-center gap-1 px-1"},[n,r,c,g,i,o]),Be("div",{class:"flex flex-row items-center gap-1 px-1"},[l,u,r,h,f,s])])}}});/** + * table-core + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Il(e,t){return typeof e=="function"?e(t):e}function qi(e,t){return r=>{t.setState(n=>({...n,[e]:Il(r,n[e])}))}}function Lc(e){return e instanceof Function}function BAe(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Y6(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 dt(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,d=(v,g)=>{for(v=String(v);v.length{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:n}}function zAe(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:dt(()=>[e,r,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),vt(e.options,"debugCells"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,r,t,e)},{}),a}function GAe(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 d=h;for(const g of l.split(".")){var v;d=(v=d)==null?void 0:v[g]}return d}:c=h=>h[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:dt(()=>[!0],()=>{var h;return[f,...(h=f.columns)==null?void 0:h.flatMap(d=>d.getFlatColumns())]},vt(e.options,"debugColumns")),getLeafColumns:dt(()=>[e._getOrderColumnsFn()],h=>{var d;if((d=f.columns)!=null&&d.length){let v=f.columns.flatMap(g=>g.getLeafColumns());return h(v)}return[f]},vt(e.options,"debugColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(f,e);return f}const Vn="debugHeaders";function KB(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 $Ae={createTable:e=>{e.getHeaderGroups=dt(()=>[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 Ey(t,[...s,...u,...l],e)},vt(e.options,Vn)),e.getCenterHeaderGroups=dt(()=>[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))),Ey(t,r,e,"center")),vt(e.options,Vn)),e.getLeftHeaderGroups=dt(()=>[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 Ey(t,a,e,"left")},vt(e.options,Vn)),e.getRightHeaderGroups=dt(()=>[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 Ey(t,a,e,"right")},vt(e.options,Vn)),e.getFooterGroups=dt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),vt(e.options,Vn)),e.getLeftFooterGroups=dt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),vt(e.options,Vn)),e.getCenterFooterGroups=dt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),vt(e.options,Vn)),e.getRightFooterGroups=dt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),vt(e.options,Vn)),e.getFlatHeaders=dt(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),vt(e.options,Vn)),e.getLeftFlatHeaders=dt(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),vt(e.options,Vn)),e.getCenterFlatHeaders=dt(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),vt(e.options,Vn)),e.getRightFlatHeaders=dt(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),vt(e.options,Vn)),e.getCenterLeafHeaders=dt(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),vt(e.options,Vn)),e.getLeftLeafHeaders=dt(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),vt(e.options,Vn)),e.getRightLeafHeaders=dt(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),vt(e.options,Vn)),e.getLeafHeaders=dt(()=>[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()},vt(e.options,Vn))}};function Ey(e,t,r,n){var i,a;let o=0;const s=function(h,d){d===void 0&&(d=1),o=Math.max(o,d),h.filter(v=>v.getIsVisible()).forEach(v=>{var g;(g=v.columns)!=null&&g.length&&s(v.columns,d+1)},0)};s(e);let l=[];const u=(h,d)=>{const v={depth:d,id:[n,`${d}`].filter(Boolean).join("_"),headers:[]},g=[];h.forEach(m=>{const y=[...g].reverse()[0],S=m.column.depth===v.depth;let b,w=!1;if(S&&m.column.parent?b=m.column.parent:(b=m.column,w=!0),y&&(y==null?void 0:y.column)===b)y.subHeaders.push(m);else{const C=KB(r,b,{id:[n,d,b.id,m==null?void 0:m.id].filter(Boolean).join("_"),isPlaceholder:w,placeholderId:w?`${g.filter(x=>x.column===b).length}`:void 0,depth:d,index:g.length});C.subHeaders.push(m),g.push(C)}v.headers.push(m),m.headerGroup=v}),l.push(v),d>0&&u(g,d-1)},c=t.map((h,d)=>KB(r,h,{depth:o,index:d}));u(c,o-1),l.reverse();const f=h=>h.filter(v=>v.column.getIsVisible()).map(v=>{let g=0,m=0,y=[0];v.subHeaders&&v.subHeaders.length?(y=[],f(v.subHeaders).forEach(b=>{let{colSpan:w,rowSpan:C}=b;g+=w,y.push(C)})):g=1;const S=Math.min(...y);return m=m+S,v.colSpan=g,v.rowSpan=m,{colSpan:g,rowSpan:m}});return f((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const X6=(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:()=>Y6(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:dt(()=>[e.getAllLeafColumns()],l=>l.map(u=>zAe(e,s,u,u.id)),vt(e.options,"debugRows")),_getAllCellsByColumnId:dt(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),vt(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()}}},Z6=(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))};Z6.autoRemove=e=>Ua(e);const q6=(e,t,r)=>{var n;return!!(!((n=e.getValue(t))==null||(n=n.toString())==null)&&n.includes(r))};q6.autoRemove=e=>Ua(e);const j6=(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())};j6.autoRemove=e=>Ua(e);const K6=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};K6.autoRemove=e=>Ua(e)||!(e!=null&&e.length);const J6=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});J6.autoRemove=e=>Ua(e)||!(e!=null&&e.length);const Q6=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});Q6.autoRemove=e=>Ua(e)||!(e!=null&&e.length);const e7=(e,t,r)=>e.getValue(t)===r;e7.autoRemove=e=>Ua(e);const t7=(e,t,r)=>e.getValue(t)==r;t7.autoRemove=e=>Ua(e);const xL=(e,t,r)=>{let[n,i]=r;const a=e.getValue(t);return a>=n&&a<=i};xL.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]};xL.autoRemove=e=>Ua(e)||Ua(e[0])&&Ua(e[1]);const os={includesString:Z6,includesStringSensitive:q6,equalsString:j6,arrIncludes:K6,arrIncludesAll:J6,arrIncludesSome:Q6,equals:e7,weakEquals:t7,inNumberRange:xL};function Ua(e){return e==null||e===""}const WAe={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:qi("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"?os.includesString:typeof n=="number"?os.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?os.equals:Array.isArray(n)?os.arrIncludes:os.weakEquals},e.getFilterFn=()=>{var r,n;return Lc(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:os[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=Il(r,a?a.value:void 0);if(JB(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=Il(t,i))==null?void 0:a.filter(o=>{const s=r.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(JB(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 JB(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const UAe=(e,t,r)=>r.reduce((n,i)=>{const a=i.getValue(e);return n+(typeof a=="number"?a:0)},0),YAe=(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},XAe=(e,t,r)=>{let n;return r.forEach(i=>{const a=i.getValue(e);a!=null&&(n=a)&&(n=a)}),n},ZAe=(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},jAe=(e,t)=>{if(!t.length)return;const r=t.map(a=>a.getValue(e));if(!BAe(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},KAe=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),JAe=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,QAe=(e,t)=>t.length,xC={sum:UAe,min:YAe,max:XAe,extent:ZAe,mean:qAe,median:jAe,unique:KAe,uniqueCount:JAe,count:QAe},eDe={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:qi("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 xC.sum;if(Object.prototype.toString.call(n)==="[object Date]")return xC.extent},e.getAggregationFn=()=>{var r,n;if(!e)throw new Error;return Lc(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:xC[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 tDe(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 rDe={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:qi("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=dt(r=>[ep(t,r)],r=>r.findIndex(n=>n.id===e.id),vt(t.options,"debugColumns")),e.getIsFirstColumn=r=>{var n;return((n=ep(t,r)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=r=>{var n;const i=ep(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=dt(()=>[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 tDe(a,r,n)},vt(e.options,"debugTable"))}},CC=()=>({left:[],right:[]}),nDe={getInitialState:e=>({columnPinning:CC(),...e}),getDefaultOptions:e=>({onColumnPinningChange:qi("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=dt(()=>[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))},vt(t.options,"debugRows")),e.getLeftVisibleCells=dt(()=>[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"})),vt(t.options,"debugRows")),e.getRightVisibleCells=dt(()=>[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"})),vt(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?CC():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:CC())},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=dt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),vt(e.options,"debugColumns")),e.getRightLeafColumns=dt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),vt(e.options,"debugColumns")),e.getCenterLeafColumns=dt(()=>[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))},vt(e.options,"debugColumns"))}},ky={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},TC=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),iDe={getDefaultColumnDef:()=>ky,getInitialState:e=>({columnSizing:{},columnSizingInfo:TC(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:qi("columnSizing",e),onColumnSizingInfoChange:qi("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:ky.minSize,(n=a??e.columnDef.size)!=null?n:ky.size),(i=e.columnDef.maxSize)!=null?i:ky.maxSize)},e.getStart=dt(r=>[r,ep(t,r),t.getState().columnSizing],(r,n)=>n.slice(0,e.getIndex(r)).reduce((i,a)=>i+a.getSize(),0),vt(t.options,"debugColumns")),e.getAfter=dt(r=>[r,ep(t,r),t.getState().columnSizing],(r,n)=>n.slice(e.getIndex(r)+1).reduce((i,a)=>i+a.getSize(),0),vt(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(),AC(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=AC(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(y,S)=>{typeof S=="number"&&(t.setColumnSizingInfo(b=>{var w,C;const x=t.options.columnResizeDirection==="rtl"?-1:1,A=(S-((w=b==null?void 0:b.startOffset)!=null?w:0))*x,D=Math.max(A/((C=b==null?void 0:b.startSize)!=null?C:0),-.999999);return b.columnSizingStart.forEach(M=>{let[I,P]=M;u[I]=Math.round(Math.max(P+P*D,0)*100)/100}),{...b,deltaOffset:A,deltaPercentage:D}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(b=>({...b,...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:[]}))},d=r||typeof document<"u"?document:null,v={moveHandler:y=>f(y.clientX),upHandler:y=>{d==null||d.removeEventListener("mousemove",v.moveHandler),d==null||d.removeEventListener("mouseup",v.upHandler),h(y.clientX)}},g={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),f(y.touches[0].clientX),!1),upHandler:y=>{var S;d==null||d.removeEventListener("touchmove",g.moveHandler),d==null||d.removeEventListener("touchend",g.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),h((S=y.touches[0])==null?void 0:S.clientX)}},m=aDe()?{passive:!1}:!1;AC(a)?(d==null||d.addEventListener("touchmove",g.moveHandler,m),d==null||d.addEventListener("touchend",g.upHandler,m)):(d==null||d.addEventListener("mousemove",v.moveHandler,m),d==null||d.addEventListener("mouseup",v.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?TC():(r=e.initialState.columnSizingInfo)!=null?r:TC())},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 Oy=null;function aDe(){if(typeof Oy=="boolean")return Oy;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 Oy=e,Oy}function AC(e){return e.type==="touchstart"}const oDe={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:qi("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=dt(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),vt(t.options,"debugRows")),e.getVisibleCells=dt(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],vt(t.options,"debugRows"))},createTable:e=>{const t=(r,n)=>dt(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),vt(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 ep(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const sDe={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()}}},lDe={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:qi("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=()=>os.includesString,e.getGlobalFilterFn=()=>{var t,r;const{globalFilterFn:n}=e.options;return Lc(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:os[n]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},uDe={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:qi("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()}}}},uD=0,cD=10,DC=()=>({pageIndex:uD,pageSize:cD}),cDe={getInitialState:e=>({...e,pagination:{...DC(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:qi("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=>Il(n,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=n=>{var i;e.setPagination(n?DC():(i=e.initialState.pagination)!=null?i:DC())},e.setPageIndex=n=>{e.setPagination(i=>{let a=Il(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?uD:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:uD)},e.resetPageSize=n=>{var i,a;e.setPageSize(n?cD:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:cD)},e.setPageSize=n=>{e.setPagination(i=>{const a=Math.max(1,Il(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=Il(n,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=dt(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((a,o)=>o)),i},vt(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}}},MC=()=>({top:[],bottom:[]}),fDe={getInitialState:e=>({rowPinning:MC(),...e}),getDefaultOptions:e=>({onRowPinningChange:qi("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 d,v;return{top:[...((d=l==null?void 0:l.top)!=null?d:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)],bottom:((v=l==null?void 0:l.bottom)!=null?v:[]).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?MC():(r=(n=e.initialState)==null?void 0:n.rowPinning)!=null?r:MC())},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=dt(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,r)=>e._getPinnedRows(t,r,"top"),vt(e.options,"debugRows")),e.getBottomRows=dt(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,r)=>e._getPinnedRows(t,r,"bottom"),vt(e.options,"debugRows")),e.getCenterRows=dt(()=>[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))},vt(e.options,"debugRows"))}},hDe={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:qi("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=>{fD(i,a.id,n,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=dt(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?IC(e,r):{rows:[],flatRows:[],rowsById:{}},vt(e.options,"debugTable")),e.getFilteredSelectedRowModel=dt(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?IC(e,r):{rows:[],flatRows:[],rowsById:{}},vt(e.options,"debugTable")),e.getGroupedSelectedRowModel=dt(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?IC(e,r):{rows:[],flatRows:[],rowsById:{}},vt(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 fD(s,e.id,r,(o=n==null?void 0:n.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:r}=t.getState();return CL(e,r)},e.getIsSomeSelected=()=>{const{rowSelection:r}=t.getState();return hD(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=t.getState();return hD(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)}}}},fD=(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=>fD(e,s.id,r,n,i))};function IC(e,t){const r=e.getState().rowSelection,n=[],i={},a=function(o,s){return o.map(l=>{var u;const c=CL(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 CL(e,t){var r;return(r=t[e.id])!=null?r:!1}function hD(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()&&(CL(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=hD(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const dD=/([0-9]+)/gm,dDe=(e,t,r)=>r7(jl(e.getValue(r)).toLowerCase(),jl(t.getValue(r)).toLowerCase()),vDe=(e,t,r)=>r7(jl(e.getValue(r)),jl(t.getValue(r))),pDe=(e,t,r)=>TL(jl(e.getValue(r)).toLowerCase(),jl(t.getValue(r)).toLowerCase()),gDe=(e,t,r)=>TL(jl(e.getValue(r)),jl(t.getValue(r))),mDe=(e,t,r)=>{const n=e.getValue(r),i=t.getValue(r);return n>i?1:nTL(e.getValue(r),t.getValue(r));function TL(e,t){return e===t?0:e>t?1:-1}function jl(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function r7(e,t){const r=e.split(dD).filter(Boolean),n=t.split(dD).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 rv={alphanumeric:dDe,alphanumericCaseSensitive:vDe,text:pDe,textCaseSensitive:gDe,datetime:mDe,basic:yDe},_De={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:qi("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 rv.datetime;if(typeof a=="string"&&(n=!0,a.split(dD).length>1))return rv.alphanumeric}return n?rv.text:rv.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 Lc(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:rv[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(d=>d.id===e.id),l=o==null?void 0:o.findIndex(d=>d.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(d=>d.id===e.id?{...d,desc:f}:d):c==="remove"?u=o.filter(d=>d.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())}},SDe=[$Ae,oDe,rDe,nDe,HAe,WAe,sDe,lDe,_De,eDe,uDe,cDe,fDe,hDe,iDe];function bDe(e){var t,r;const n=[...SDe,...(t=e._features)!=null?t:[]];let i={_features:n};const a=i._features.reduce((h,d)=>Object.assign(h,d.getDefaultOptions==null?void 0:d.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 d;l=(d=h.getInitialState==null?void 0:h.getInitialState(l))!=null?d: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(d=>setTimeout(()=>{throw d})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const d=Il(h,i.options);i.options=o(d)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,d,v)=>{var g;return(g=i.options.getRowId==null?void 0:i.options.getRowId(h,d,v))!=null?g:`${v?[v.id,d].join("."):d}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,d)=>{let v=(d?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!v&&(v=i.getCoreRowModel().rowsById[h],!v))throw new Error;return v},_getDefaultColumnDef:dt(()=>[i.options.defaultColumn],h=>{var d;return h=(d=h)!=null?d:{},{header:v=>{const g=v.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:v=>{var g,m;return(g=(m=v.renderValue())==null||m.toString==null?void 0:m.toString())!=null?g:null},...i._features.reduce((v,g)=>Object.assign(v,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...h}},vt(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:dt(()=>[i._getColumnDefs()],h=>{const d=function(v,g,m){return m===void 0&&(m=0),v.map(y=>{const S=GAe(i,y,m,g),b=y;return S.columns=b.columns?d(b.columns,S,m+1):[],S})};return d(h)},vt(e,"debugColumns")),getAllFlatColumns:dt(()=>[i.getAllColumns()],h=>h.flatMap(d=>d.getFlatColumns()),vt(e,"debugColumns")),_getAllFlatColumnsById:dt(()=>[i.getAllFlatColumns()],h=>h.reduce((d,v)=>(d[v.id]=v,d),{}),vt(e,"debugColumns")),getAllLeafColumns:dt(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,d)=>{let v=h.flatMap(g=>g.getLeafColumns());return d(v)},vt(e,"debugColumns")),getColumn:h=>i._getAllFlatColumnsById()[h]};Object.assign(i,f);for(let h=0;hdt(()=>[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 xDe(){return e=>dt(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,r,n)=>!r.rows.length||t!==!0&&!Object.keys(t??{}).length||!n?r:CDe(r),vt(e.options,"debugTable"))}function CDe(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 TDe(){return e=>dt(()=>[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(v=>(v.depth=u,i.push(v),a[v.id]=v,v.subRows&&(v.subRows=o(v.subRows,u+1,v.id)),v));const f=n[u],h=ADe(l,f);return Array.from(h.entries()).map((v,g)=>{let[m,y]=v,S=`${f}:${m}`;S=c?`${c}>${S}`:S;const b=o(y,u+1,S);b.forEach(x=>{x.parentId=S});const w=u?Y6(y,x=>x.subRows):y,C=X6(e,S,w[0].original,g,u,void 0,c);return Object.assign(C,{groupingColumnId:f,groupingValue:m,subRows:b,leafRows:w,getValue:x=>{if(n.includes(x)){if(C._valuesCache.hasOwnProperty(x))return C._valuesCache[x];if(y[0]){var A;C._valuesCache[x]=(A=y[0].getValue(x))!=null?A:void 0}return C._valuesCache[x]}if(C._groupingValuesCache.hasOwnProperty(x))return C._groupingValuesCache[x];const D=e.getColumn(x),M=D==null?void 0:D.getAggregationFn();if(M)return C._groupingValuesCache[x]=M(x,w,y),C._groupingValuesCache[x]}}),b.forEach(x=>{i.push(x),a[x.id]=x}),C})},s=o(r.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},vt(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function ADe(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 DDe(){return e=>dt(()=>[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 d=0;d{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}},vt(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/** + * vue-table + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ny(){return!0}const MDe=Symbol("merge-proxy"),IDe={get(e,t,r){return t===MDe?r:e.get(t)},has(e,t){return e.has(t)},set:Ny,deleteProperty:Ny,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Ny,deleteProperty:Ny}},ownKeys(e){return e.keys()}};function LC(e){return"value"in e?e.value:e}function xv(){for(var e=arguments.length,t=new Array(e),r=0;r=0;i--){const a=LC(t[i])[n];if(a!==void 0)return a}},has(n){for(let i=t.length-1;i>=0;i--)if(n in LC(t[i]))return!0;return!1},keys(){const n=[];for(let i=0;i()=>typeof e.render=="function"||typeof e.render=="object"?yo(e.render,e.props):e.render});function QB(e){return xv(e,{data:J(e.data)})}function LDe(e){const t=bt(e.data),r=xv({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(a,o){return t?{...a,...o}:xv(a,o)}},t?QB(e):e),n=bDe(r);if(t){const a=d1(e.data);vr(a,()=>{n.setState(o=>({...o,data:a.value}))},{immediate:!0})}const i=Ze(n.initialState);return GD(()=>{n.setOptions(a=>{var o;const s=new Proxy({},{get:(l,u)=>i.value[u]});return xv(a,t?QB(e):e,{state:xv(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 PDe={class:"table table-zebra table-xs overflow-hidden rounded-lg bg-base-100 shadow-lg"},RDe={class:"bg-base-100"},EDe=["colSpan","onClick"],kDe={class:"flex items-center gap-1"},ODe=["onClick"],NDe=["onClick"],FDe={key:0},VDe=Ut({__name:"ConnectionTable",emits:["info"],setup(e,{emit:t}){const r=t,{t:n}=$c(),i=[{header:()=>n("details"),enableSorting:!1,id:tr.Details,cell:({row:u})=>yo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const c=u.original;r("info",c)}},[yo(RG,{class:"h-4 w-4"})])},{header:()=>n("close"),enableSorting:!1,id:tr.Close,cell:({row:u})=>yo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const c=u.original;T1(c.id)}},[yo(QD,{class:"h-4 w-4"})])},{header:()=>n("type"),id:tr.Type,accessorFn:u=>`${u.metadata.type} | ${u.metadata.network}`},{header:()=>n("process"),id:tr.Process,accessorFn:u=>u.metadata.processPath||"-"},{header:()=>n("host"),id:tr.Host,accessorFn:u=>`${u.metadata.host?u.metadata.host:u.metadata.destinationIP}:${u.metadata.destinationPort}`},{header:()=>n("rule"),id:tr.Rule,accessorFn:u=>u.rulePayload?`${u.rule} -> ${u.rulePayload}`:u.rule},{header:()=>n("chains"),id:tr.Chains,accessorFn:u=>u.chains.slice().reverse().join(" -> ")},{header:()=>n("connectTime"),enableGrouping:!1,id:tr.ConnectTime,accessorFn:u=>M1(u.start),sortingFn:(u,c)=>Fl(u.original.start).valueOf()-Fl(c.original.start).valueOf()},{header:()=>n("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:tr.DlSpeed,accessorFn:u=>`${Or(u.downloadSpeed)}/s`,sortingFn:(u,c)=>u.original.downloadSpeed-c.original.downloadSpeed},{header:()=>n("ulSpeed"),enableGrouping:!1,id:tr.UlSpeed,accessorFn:u=>`${Or(u.uploadSpeed)}/s`,sortingFn:(u,c)=>u.original.uploadSpeed-c.original.uploadSpeed},{header:()=>n("dl"),enableGrouping:!1,id:tr.Download,accessorFn:u=>Or(u.download),sortingFn:(u,c)=>u.original.download-c.original.download},{header:()=>n("ul"),enableGrouping:!1,id:tr.Upload,accessorFn:u=>Or(u.upload),sortingFn:(u,c)=>u.original.upload-c.original.upload},{header:()=>n("sourceIP"),id:tr.SourceIP,accessorFn:u=>u.metadata.sourceIP},{header:()=>n("sourcePort"),id:tr.SourcePort,accessorFn:u=>u.metadata.sourcePort},{header:()=>n("destination"),id:tr.Destination,accessorFn:u=>u.metadata.destinationIP||u.metadata.host}],a=Ze([]),o=Ze({}),s=Yr("config/table-sorting",[]),l=LDe({get data(){return K0.value},columns:i,state:{get columnOrder(){return ju.value},get columnVisibility(){return{...Object.fromEntries(Object.values(tr).map(u=>[u,!1])),...Object.fromEntries(ju.value.map(u=>[u,!0]))}},get grouping(){return a.value},get expanded(){return o.value},get sorting(){return s.value}},onGroupingChange:u=>{Lc(u)?a.value=u(a.value):a.value=u},onExpandedChange:u=>{Lc(u)&&(o.value=u(o.value))},onSortingChange:u=>{Lc(u)?s.value=u(s.value):s.value=u},getSortedRowModel:DDe(),getGroupedRowModel:TDe(),getExpandedRowModel:xDe(),getCoreRowModel:wDe()});return(u,c)=>(se(),Se("table",PDe,[Q("thead",RDe,[(se(!0),Se(lt,null,dr(J(l).getHeaderGroups(),f=>(se(),Se("tr",{key:f.id},[(se(!0),Se(lt,null,dr(f.headers,h=>(se(),Se("th",{key:h.id,colSpan:h.colSpan,class:Xt(h.column.getCanSort()?"cursor-pointer select-none":""),onClick:d=>{var v;return(v=h.column.getToggleSortingHandler())==null?void 0:v(d)}},[Q("div",kDe,[h.column.getCanGroup()?(se(),Se("button",{key:0,class:"cursor-pointer",onClick:WD(()=>h.column.getToggleGroupingHandler()(),["stop"])},[h.column.getIsGrouped()?(se(),jt(J(hE),{key:0,class:"h-4 w-4"})):(se(),jt(J(dE),{key:1,class:"h-4 w-4"}))],8,ODe)):Jt("",!0),h.isPlaceholder?Jt("",!0):(se(),jt(J(Fy),{key:1,render:h.column.columnDef.header,props:h.getContext()},null,8,["render","props"])),h.column.getIsSorted()==="asc"?(se(),jt(J(DG),{key:2,class:"h-4 w-4"})):Jt("",!0),h.column.getIsSorted()==="desc"?(se(),jt(J(TG),{key:3,class:"h-4 w-4"})):Jt("",!0)])],10,EDe))),128))]))),128))]),Q("tbody",null,[(se(!0),Se(lt,null,dr(J(l).getRowModel().rows,f=>(se(),Se("tr",{key:f.id,class:"h-9 hover:!bg-primary hover:text-primary-content"},[(se(!0),Se(lt,null,dr(f.getVisibleCells(),h=>(se(),Se("td",{key:h.id,class:"text-sm"},[Q("div",{class:Xt(J(Kr)("flex items-center gap-2 whitespace-nowrap",[J(tr).Download,J(tr).DlSpeed,J(tr).Upload,J(tr).UlSpeed].includes(h.column.id)&&"w-14"))},[h.column.getIsGrouped()?(se(),Se(lt,{key:0},[f.getCanExpand()?(se(),Se(lt,{key:0},[Q("button",{onClick:()=>f.getToggleExpandedHandler()(),class:"cursor-pointer"},[f.getIsExpanded()?(se(),jt(J(hE),{key:0,class:"h-4 w-4"})):(se(),jt(J(dE),{key:1,class:"h-4 w-4"}))],8,NDe),Be(J(Fy),{render:h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"]),h.column.getIsGrouped()?(se(),Se("div",FDe,"("+Re(f.subRows.length)+")",1)):Jt("",!0)],64)):Jt("",!0)],64)):h.getIsAggregated()?(se(),jt(J(Fy),{key:1,render:h.column.columnDef.aggregatedCell??h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"])):h.getIsPlaceholder()?Jt("",!0):(se(),jt(J(Fy),{key:2,render:h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"]))],2)]))),128))]))),128))])]))}});var K_={d:(e,t)=>{for(var r in t)K_.o(t,r)&&!K_.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},n7={};function vD(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rHDe});const it=(e3={computed:()=>at,createTextVNode:()=>qt,createVNode:()=>Be,defineComponent:()=>Ut,reactive:()=>Wc,ref:()=>Ze,watch:()=>vr,watchEffect:()=>GD},PC={},K_.d(PC,e3),PC),BDe=(0,it.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,it.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),zDe=(0,it.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,it.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,it.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,it.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(n){return n.stopPropagation()}},[(0,it.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,it.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return r("change",t)}},null)])}}),GDe=(0,it.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,it.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(r?"open":"close"),onClick:t},[(0,it.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,it.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 e3,PC;function pD(e){return pD=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},pD(e)}function a7(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Zu(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,d=a7(e);if(d==="array"){var v=t3(e.map(function(y,S,b){return Zu(y,"".concat(t,"[").concat(S,"]"),r+1,{index:S,showComma:S!==b.length-1,length:h,type:l})}));return[Zu("[",t,r,{showComma:!1,key:a,length:e.length,type:"arrayStart"})[0]].concat(v,Zu("]",t,r,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(d==="object"){var g=Object.keys(e),m=t3(g.map(function(y,S,b){return Zu(e[y],/^[a-zA-Z_]\w*$/.test(y)?"".concat(t,".").concat(y):"".concat(t,'["').concat(y,'"]'),r+1,{key:y,showComma:S!==b.length-1,length:h,type:l})}));return[Zu("{",t,r,{showComma:!1,key:a,index:o,length:g.length,type:"objectStart"})[0]].concat(m,Zu("}",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 t3(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=J_(e),r=[];t.length;){var n=t.shift();Array.isArray(n)?t.unshift.apply(t,J_(n)):r.push(n)}return r}function gD(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(pD(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var r=e.map(function(a){return gD(a,t)});return t.set(e,r),r}var n={};for(var i in e)n[i]=gD(e[i],t);return t.set(e,n),n}function r3(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 n3(e){for(var t=1;t=b||x.length>=w,M=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,x);return x.type!=="objectStart"&&x.type!=="arrayStart"||!D&&!M?C:Fi(Fi({},C),{},Q_({},x.path,1))},{})},s=(0,it.reactive)({translateY:0,visibleData:null,hiddenPaths:o(e.deep,e.collapsedNodeLength)}),l=(0,it.computed)(function(){for(var b=null,w=[],C=a.value.length,x=0;xb.length?b.length-C:A;D<0&&(D=0);var M=D+C;s.translateY=D*e.itemHeight,s.visibleData=b.filter(function(I,P){return P>=D&&P{var a;t.value=i,(a=r.value)==null||a.showModal()};return(i,a)=>(se(),Se("div",UDe,[J(ac)?(se(),Se(lt,{key:0},[J(K0).length?Jt("",!0):(se(),Se("div",YDe,Re(i.$t("noContent")),1)),Q("div",XDe,[(se(!0),Se(lt,null,dr(J(K0),o=>(se(),jt(J(VAe),{key:o.id,conn:o,onInfo:n},null,8,["conn"]))),128))])],64)):(se(),jt(VDe,{key:1,onInfo:n})),Q("dialog",{ref_key:"modalRef",ref:r,class:"modal"},[Q("div",ZDe,[Be(J(WDe),{data:t.value},null,8,["data"])]),a[0]||(a[0]=Q("form",{method:"dialog",class:"modal-backdrop"},[Q("button",null,"close")],-1))],512)]))}}),jDe={class:"flex h-full flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},KDe={key:0,class:"card w-full flex-row gap-1 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},JDe={class:"text-primary"},QDe=Ut({__name:"LogsPage",setup(e){const t={[ic.Error]:"text-error",[ic.Warning]:"text-warning",[ic.Info]:"text-info",[ic.Debug]:"text-accent"},r=at(()=>lv.value.filter(n=>uh.value?n.payload.includes(uh.value)||n.type.includes(uh.value):!0));return(n,i)=>(se(),Se("div",jDe,[r.value.length?Jt("",!0):(se(),Se("div",KDe,Re(n.$t("noContent")),1)),(se(!0),Se(lt,null,dr(r.value,a=>(se(),Se("div",{key:a.seq,class:"card w-full flex-row gap-1 gap-2 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},[Q("span",null,Re(a.seq),1),Q("span",JDe,Re(J(Fl)(a.time).locale(J(fs)).format("HH:mm:ss")),1),Q("span",{class:Xt(t[a.type])},Re(a.type),3),Q("span",null,Re(a.payload),1)]))),128))]))}}),eMe={class:"badge flex w-8 items-center justify-center shadow-sm"},s7=Ut({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,r=at(()=>tM(t.name)),n=at(()=>r.value(se(),Se("div",eMe,[r.value>0?(se(),Se("div",{key:0,class:Xt(J(Kr)("text-xs",n.value))},Re(r.value),3)):(se(),jt(J(MG),{key:1,class:"h-4 w-4"}))]))}}),tMe={class:"flex-1 whitespace-nowrap text-xs md:text-sm"},rMe={class:"flex items-center gap-2 text-xs"},nMe={class:"flex-1"},iMe={key:0},l7=Ut({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,r=at(()=>Sh.value[t.name]),n=Ze(!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 Cie(t.name),n.value=!1}catch{n.value=!1}}};return(o,s)=>(se(),Se("div",{class:Xt(J(Kr)("flex cursor-pointer flex-wrap items-center justify-end gap-1 rounded-md bg-base-200 p-2 shadow-md",t.active&&"bg-primary text-primary-content"))},[Q("div",tMe,Re(r.value.name),1),Q("div",rMe,[Q("div",nMe,[Q("span",null,Re(i(r.value.type)),1),r.value.udp?(se(),Se("span",iMe," | udp")):Jt("",!0)]),Be(s7,{class:Xt(n.value?"animate-pulse":""),name:r.value.name,onClick:WD(a,["stop"])},null,8,["class","name"])])],2))}}),u7=Ut({__name:"ProxyNodeGrid",setup(e){const t=at(()=>_c.value===Gl.PROXIES?sh.value&&Fv.value.length>1:sh.value&&Sc.value.length>1);return(r,n)=>(se(),Se("div",{class:Xt(J(Kr)("grid gap-2",J(r0)?"grid-cols-2":"grid-cols-1",J(yc)?t.value?"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-2 2xl:grid-cols-3":"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-4 2xl:grid-cols-6":t.value?"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-2 3xl:grid-cols-3":"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 3xl:grid-cols-5"))},[GQ(r.$slots,"default")],2))}}),aMe={key:0,class:"flex flex-wrap gap-1 pt-2"},oMe={key:0,class:"h-2 w-2 rounded-full bg-white"},sMe={key:1,class:"flex items-center gap-2 py-2"},lMe={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},c7=Ut({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,r=at(()=>t.nodes.map(l=>({latency:tM(l),name:l}))),n=l=>l===zn.NOT_CONNECTED?"bg-gray-500":lr.value.filter(l=>l.latencyzn.NOT_CONNECTED).length),a=at(()=>r.value.filter(l=>l.latency>=zn.MEDIUM&&l.latencyr.value.filter(l=>l.latency>=zn.HIGH).length),s=at(()=>r.value.filter(l=>l.latency===zn.NOT_CONNECTED).length);return(l,u)=>l.nodes.length<20?(se(),Se("div",aMe,[(se(!0),Se(lt,null,dr(r.value,c=>(se(),Se("div",{key:c.name,class:Xt(["flex h-4 w-4 items-center justify-center rounded-full shadow-lg",n(c.latency)])},[l.now===c.name?(se(),Se("div",oMe)):Jt("",!0)],2))),128))])):(se(),Se("div",sMe,[Q("div",lMe,[Q("div",{class:Xt(n(J(zn).MEDIUM-1)),style:tc({width:`${i.value*100/l.nodes.length}%`})},null,6),Q("div",{class:Xt(n(J(zn).HIGH-1)),style:tc({width:`${a.value*100/l.nodes.length}%`})},null,6),Q("div",{class:Xt(n(J(zn).HIGH+1)),style:tc({width:`${o.value*100/l.nodes.length}%`})},null,6),Q("div",{class:Xt(n(J(zn).NOT_CONNECTED)),style:tc({width:`${s.value*100/l.nodes.length}%`})},null,6)])]))}}),uMe={class:"collapse collapse-arrow bg-base-100 shadow-lg"},cMe={class:"collapse-title"},fMe={class:"items-top flex gap-2"},hMe={class:"flex flex-col gap-1 sm:flex-row"},dMe={class:"flex items-center gap-1 text-lg font-medium sm:text-xl"},vMe=["src"],pMe={class:"text-xs"},gMe={key:0,class:"flex items-center gap-2 text-xs sm:text-sm"},mMe={class:"mt-1 flex gap-2"},yMe={class:"text-sm"},_Me={class:"collapse-content flex flex-col gap-2"},SMe=Ut({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,r=at({get(){return Z0.value[t.name]},set(u){Z0.value[t.name]=u}}),n=Ze(r.value);vr(r,u=>{u?n.value=u:setTimeout(()=>{u===r.value&&(n.value=u)},1e3)});const i=at(()=>Sh.value[t.name]),a=at(()=>XG(i.value.all??[])),o=Ze(!1),s=async()=>{if(!o.value){o.value=!0;try{await Tie(t.name),o.value=!1}catch{o.value=!1}}},l=at(()=>_o.value.filter(c=>c.chains.includes(t.name)).reduce((c,f)=>c+f.downloadSpeed,0));return(u,c)=>(se(),Se("div",uMe,[Q("div",cMe,[Q("div",fMe,[Q("div",hMe,[Q("div",dMe,[i.value.icon?(se(),Se("img",{key:0,class:"w-5",src:i.value.icon},null,8,vMe)):Jt("",!0),qt(" "+Re(i.value.name)+" ",1),Q("span",pMe,":: "+Re(i.value.type),1)]),i.value.now?(se(),Se("div",gMe," -> "+Re(i.value.now),1)):Jt("",!0)]),c[1]||(c[1]=Q("div",{class:"flex-1"},null,-1)),Q("div",mMe,[Q("div",yMe,Re(J(Or)(l.value))+"/s",1),Be(s7,{class:Xt(J(Kr)("z-10",o.value?"animate-pulse":"")),name:i.value.now,onClick:WD(s,["stop"])},null,8,["class","name"])])]),r.value?Jt("",!0):(se(),jt(c7,{key:0,nodes:a.value,now:i.value.now},null,8,["nodes","now"]))]),Dr(Q("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=f=>r.value=f)},null,512),[[ss,r.value]]),Q("div",_Me,[n.value?(se(),jt(u7,{key:0},{default:fp(()=>[(se(!0),Se(lt,null,dr(a.value,f=>(se(),jt(l7,{key:f,name:f,active:f===i.value.now,onClick:h=>J(xie)(i.value.name,f)},null,8,["name","active","onClick"]))),128))]),_:1})):Jt("",!0)])]))}}),bMe={class:"collapse collapse-arrow bg-base-100 shadow-lg"},wMe={class:"collapse-title"},xMe={class:"flex items-center gap-2"},CMe={class:"text-lg font-medium sm:text-xl"},TMe={class:"flex gap-2"},AMe=["value"],DMe={class:"flex gap-4"},MMe={class:"text-sm text-slate-500"},IMe={class:"text-sm text-slate-500"},LMe={class:"text-sm text-slate-500"},PMe={class:"collapse-content flex flex-col gap-2"},RMe=Ut({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,r=at({get(){return Z0.value[t.name]},set(h){Z0.value[t.name]=h}}),n=Ze(r.value);vr(r,h=>{h?n.value=h:setTimeout(()=>{h===r.value&&(n.value=h)},1e3)});const i=h=>{const{Download:d=0,Upload:v=0,Total:g=0,Expire:m=0}=h,y=Or(g,{binary:!0}),S=Or(d+v,{binary:!0}),b=Ec.toFinite(((d+v)/g*100).toFixed(2));return{total:y,used:S,percentage:b,expirePrefix:()=>{const{t:x}=$c();return x("expire")},expireStr:()=>{const{t:x}=$c();return m===0?x("noExpire"):Fl(m*1e3).format("YYYY-MM-DD")}}},a=at(()=>Sc.value.find(h=>h.name===t.name)),o=at(()=>XG(a.value.proxies.map(h=>h.name))),s=at(()=>a.value.subscriptionInfo?i(a.value.subscriptionInfo):null),l=Ze(!1),u=Ze(!1),c=async()=>{if(!u.value){u.value=!0;try{await yne(t.name),await J0(),u.value=!1}catch{u.value=!1}}},f=async()=>{if(!l.value){l.value=!0;try{await wG(t.name),await J0(),l.value=!1}catch{l.value=!1}}};return(h,d)=>(se(),Se("div",bMe,[Q("div",wMe,[Q("div",xMe,[Q("div",CMe,Re(a.value.name),1),d[1]||(d[1]=Q("div",{class:"flex-1"},null,-1)),Q("div",TMe,[Q("button",{class:Xt(J(Kr)("btn btn-circle btn-xs z-30",u.value?"animate-pulse":"")),onClick:c},[Be(J(MG),{class:"h-4 w-4"})],2),Q("button",{class:Xt(J(Kr)("btn btn-circle btn-xs z-30",l.value?"animate-spin":"")),onClick:f},[Be(J(AG),{class:"h-4 w-4"})],2)])]),s.value?(se(),Se("progress",{key:0,class:"progress",value:s.value.percentage,max:"100"},null,8,AMe)):Jt("",!0),Q("div",DMe,[s.value?(se(),Se(lt,{key:0},[Q("div",MMe,Re(s.value.used)+" / "+Re(s.value.total)+" ( "+Re(s.value.percentage)+"% ) ",1),Q("div",IMe,Re(s.value.expirePrefix())+": "+Re(s.value.expireStr()),1)],64)):Jt("",!0),Q("div",LMe,Re(h.$t("updated"))+" "+Re(J(M1)(a.value.updatedAt)),1)]),r.value?Jt("",!0):(se(),jt(c7,{key:1,nodes:o.value},null,8,["nodes"]))]),Dr(Q("input",{type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=v=>r.value=v)},null,512),[[ss,r.value]]),Q("div",PMe,[n.value?(se(),jt(u7,{key:0},{default:fp(()=>[(se(!0),Se(lt,null,dr(o.value,v=>(se(),jt(l7,{key:v,name:v},null,8,["name"]))),128))]),_:1})):Jt("",!0)])]))}}),EMe={class:"h-full overflow-y-auto overflow-x-hidden p-2"},kMe={key:0,class:"grid grid-cols-2 gap-1"},OMe={key:1,class:"grid grid-cols-1 gap-1"},NMe=Ut({__name:"ProxiesPage",setup(e){const t=at(()=>_c.value===Gl.PROVIDER?RMe:SMe),r=at(()=>_c.value===Gl.PROVIDER?Sc.value.map(i=>i.name):Qy.value&&Fv.value.length?[...Fv.value,uT]:Fv.value),n=(i,a)=>i.filter((o,s)=>s%2===a);return(i,a)=>(se(),Se("div",EMe,[J(YG)&&J(sh)&&r.value.length>1?(se(),Se("div",kMe,[(se(),Se(lt,null,dr([0,1],o=>Q("div",{key:o,class:"flex flex-1 flex-col gap-1"},[(se(!0),Se(lt,null,dr(n(r.value,o),s=>(se(),jt(Vl(t.value),{key:s,name:s},null,8,["name"]))),128))])),64))])):(se(),Se("div",OMe,[(se(!0),Se(lt,null,dr(r.value,o=>(se(),jt(Vl(t.value),{key:o,name:o},null,8,["name"]))),128))]))]))}}),FMe={class:"card w-full flex-row gap-1 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},VMe={class:"min-w-32 text-primary"},BMe={class:"flex-1"},zMe=Ut({__name:"RuleCard",props:{rule:{}},setup(e){return(t,r)=>(se(),Se("div",FMe,[Q("div",VMe,Re(t.rule.proxy),1),Q("div",BMe,Re(t.rule.payload),1)]))}}),GMe={class:"card w-full flex-row items-center gap-2 rounded-xl bg-base-100 p-1 px-2 text-sm shadow-lg"},$Me={class:"flex flex-1 flex-col sm:flex-row"},HMe={class:"w-48 flex-1 text-primary"},WMe={class:"flex gap-1"},UMe=Ut({__name:"RuleProvider",props:{ruleProvider:{}},setup(e){const t=Ze(!1),r=e,n=async()=>{t.value||(t.value=!0,await xG(r.ruleProvider.name),nM(),t.value=!1)};return(i,a)=>(se(),Se("div",GMe,[Q("div",$Me,[Q("div",HMe,Re(i.ruleProvider.name)+" ("+Re(i.ruleProvider.ruleCount)+") ",1),Q("div",WMe,[Q("span",null,Re(i.ruleProvider.behavior),1),Q("span",null,Re(i.ruleProvider.vehicleType),1),Q("span",null,Re(i.$t("updated"))+" "+Re(J(M1)(i.ruleProvider.updatedAt)),1)])]),Q("button",{class:Xt(J(Kr)("btn btn-circle btn-xs",t.value?"animate-spin":"")),onClick:n},[Be(J(AG),{class:"h-4 w-4"})],2)]))}}),YMe={class:"flex h-full flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},XMe=Ut({__name:"RulesPage",setup(e){return(t,r)=>(se(),Se("div",YMe,[J(kv)===J(_h).PROVIDER?(se(!0),Se(lt,{key:0},dr(J(Q0),n=>(se(),jt(UMe,{key:n.name,ruleProvider:n},null,8,["ruleProvider"]))),128)):(se(!0),Se(lt,{key:1},dr(J(WG),n=>(se(),jt(zMe,{key:n.payload,rule:n},null,8,["rule"]))),128))]))}});var ZMe=Object.defineProperty,e1=Object.getOwnPropertySymbols,f7=Object.prototype.hasOwnProperty,h7=Object.prototype.propertyIsEnumerable,a3=(e,t,r)=>t in e?ZMe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qf=(e,t)=>{for(var r in t||(t={}))f7.call(t,r)&&a3(e,r,t[r]);if(e1)for(var r of e1(t))h7.call(t,r)&&a3(e,r,t[r]);return e},d7=(e,t)=>{var r={};for(var n in e)f7.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&e1)for(var n of e1(e))t.indexOf(n)<0&&h7.call(e,n)&&(r[n]=e[n]);return r};const v7="[vue-draggable-plus]: ";function qMe(e){console.warn(v7+e)}function jMe(e){console.error(v7+e)}function o3(e,t,r){return r>=0&&rr?r.toUpperCase():"")}function JMe(e){return Object.keys(e).reduce((t,r)=>(typeof e[r]<"u"&&(t[KMe(r)]=e[r]),t),{})}function s3(e,t){return Array.isArray(e)&&e.splice(t,1),e}function l3(e,t,r){return Array.isArray(e)&&e.splice(t,0,r),e}function QMe(e){return typeof e>"u"}function eIe(e){return typeof e=="string"}function u3(e,t,r){const n=e.children[r];e.insertBefore(t,n)}function RC(e){e.parentNode&&e.parentNode.removeChild(e)}function tIe(e,t=document){var r;let n=null;return typeof(t==null?void 0:t.querySelector)=="function"?n=(r=t==null?void 0:t.querySelector)==null?void 0:r.call(t,e):n=document.querySelector(e),n||qMe(`Element not found: ${e}`),n}function rIe(e,t,r=null){return function(...n){return e.apply(r,n),t.apply(r,n)}}function nIe(e,t){const r=Qf({},e);return Object.keys(t).forEach(n=>{r[n]?r[n]=rIe(e[n],t[n]):r[n]=t[n]}),r}function iIe(e){return e instanceof HTMLElement}function c3(e,t){Object.keys(e).forEach(r=>{t(r,e[r])})}function aIe(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}const oIe=Object.assign;/**! + * Sortable 1.15.2 + * @author RubaXa + * @author owenm + * @license MIT + */function f3(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 No(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function uIe(e,t){if(e==null)return{};var r=lIe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var cIe="1.15.2";function xs(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Fs=xs(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ag=xs(/Edge/i),h3=xs(/firefox/i),tp=xs(/safari/i)&&!xs(/chrome/i)&&!xs(/android/i),p7=xs(/iP(ad|od|hone)/i),g7=xs(/chrome/i)&&xs(/android/i),m7={capture:!1,passive:!1};function ar(e,t,r){e.addEventListener(t,r,!Fs&&m7)}function Qt(e,t,r){e.removeEventListener(t,r,!Fs&&m7)}function t1(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function fIe(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Va(e,t,r,n){if(e){r=r||document;do{if(t!=null&&(t[0]===">"?e.parentNode===r&&t1(e,t):t1(e,t))||n&&e===r)return e;if(e===r)break}while(e=fIe(e))}return null}var d3=/\s+/g;function Vi(e,t,r){if(e&&t)if(e.classList)e.classList[r?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(d3," ").replace(" "+t+" "," ");e.className=(n+(r?" "+t:"")).replace(d3," ")}}function mt(e,t,r){var n=e&&e.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),t===void 0?r:r[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=r+(typeof r=="string"?"":"px")}}function gh(e,t){var r="";if(typeof e=="string")r=e;else do{var n=mt(e,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function y7(e,t,r){if(e){var n=e.getElementsByTagName(t),i=0,a=n.length;if(r)for(;i=a,!o)return n;if(n===Do())break;n=Ll(n,!1)}return!1}function Oh(e,t,r,n){for(var i=0,a=0,o=e.children;a2&&arguments[2]!==void 0?arguments[2]:{},n=r.evt,i=uIe(r,_Ie);Dg.pluginEvent.bind(yt)(e,t,No({dragEl:Fe,parentEl:$r,ghostEl:Tt,rootEl:kr,nextEl:qu,lastDownEl:E0,cloneEl:Vr,cloneHidden:ml,dragStarted:Cv,putSortable:Dn,activeSortable:yt.active,originalEvent:n,oldIndex:eh,oldDraggableIndex:np,newIndex:zi,newDraggableIndex:dl,hideGhostForTarget:A7,unhideGhostForTarget:D7,cloneNowHidden:function(){ml=!0},cloneNowShown:function(){ml=!1},dispatchSortableEvent:function(a){Qn({sortable:t,name:a,originalEvent:n})}},i))};function Qn(e){yIe(No({putSortable:Dn,cloneEl:Vr,targetEl:Fe,rootEl:kr,oldIndex:eh,oldDraggableIndex:np,newIndex:zi,newDraggableIndex:dl},e))}var Fe,$r,Tt,kr,qu,E0,Vr,ml,eh,zi,np,dl,Vy,Dn,Xf=!1,r1=!1,n1=[],Bu,Ea,OC,NC,g3,m3,Cv,Bf,ip,ap=!1,By=!1,k0,Bn,FC=[],mD=!1,i1=[],_S=typeof document<"u",zy=p7,y3=Ag||Fs?"cssFloat":"float",SIe=_S&&!g7&&!p7&&"draggable"in document.createElement("div"),x7=function(){if(_S){if(Fs)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),C7=function(e,t){var r=mt(e),n=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=Oh(e,0,t),a=Oh(e,1,t),o=i&&mt(i),s=a&&mt(a),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+rn(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+rn(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&o.float&&o.float!=="none"){var c=o.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return i&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||l>=n&&r[y3]==="none"||a&&r[y3]==="none"&&l+u>n)?"vertical":"horizontal"},bIe=function(e,t,r){var n=r?e.left:e.top,i=r?e.right:e.bottom,a=r?e.width:e.height,o=r?t.left:t.top,s=r?t.right:t.bottom,l=r?t.width:t.height;return n===o||i===s||n+a/2===o+l/2},wIe=function(e,t){var r;return n1.some(function(n){var i=n[$i].options.emptyInsertThreshold;if(!(!i||AL(n))){var a=rn(n),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return r=n}}),r},T7=function(e){function t(i,a){return function(o,s,l,u){var c=o.options.group.name&&s.options.group.name&&o.options.group.name===s.options.group.name;if(i==null&&(a||c))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return t(i(o,s,l,u),a)(o,s,l,u);var f=(a?o:s).options.group.name;return i===!0||typeof i=="string"&&i===f||i.join&&i.indexOf(f)>-1}}var r={},n=e.group;(!n||R0(n)!="object")&&(n={name:n}),r.name=n.name,r.checkPull=t(n.pull,!0),r.checkPut=t(n.put),r.revertClone=n.revertClone,e.group=r},A7=function(){!x7&&Tt&&mt(Tt,"display","none")},D7=function(){!x7&&Tt&&mt(Tt,"display","")};_S&&!g7&&document.addEventListener("click",function(e){if(r1)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),r1=!1,!1},!0);var zu=function(e){if(Fe){e=e.touches?e.touches[0]:e;var t=wIe(e.clientX,e.clientY);if(t){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[$i]._onDragOver(r)}}},xIe=function(e){Fe&&Fe.parentNode[$i]._isOutsideThisEl(e.target)};function yt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Rs({},t),e[$i]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return C7(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,o){a.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:yt.supportPointer!==!1&&"PointerEvent"in window&&!tp,emptyInsertThreshold:5};Dg.initializePlugins(this,e,r);for(var n in r)!(n in t)&&(t[n]=r[n]);T7(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:SIe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ar(e,"pointerdown",this._onTapStart):(ar(e,"mousedown",this._onTapStart),ar(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ar(e,"dragover",this),ar(e,"dragenter",this)),n1.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Rs(this,pIe())}yt.prototype={constructor:yt,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Bf=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,Fe):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,r=this.el,n=this.options,i=n.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(o||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=n.filter;if(PIe(r),!Fe&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&tp&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Va(s,n.draggable,r,!1),!(s&&s.animated)&&E0!==s)){if(eh=fa(s),np=fa(s,n.draggable),typeof u=="function"){if(u.call(this,e,s,this)){Qn({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:r,fromEl:r}),bi("filter",t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=Va(l,c.trim(),r,!1),c)return Qn({sortable:t,rootEl:c,name:"filter",targetEl:s,fromEl:r,toEl:r}),bi("filter",t,{evt:e}),!0}),u)){i&&e.cancelable&&e.preventDefault();return}n.handle&&!Va(l,n.handle,r,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,r){var n=this,i=n.el,a=n.options,o=i.ownerDocument,s;if(r&&!Fe&&r.parentNode===i){var l=rn(r);if(kr=i,Fe=r,$r=Fe.parentNode,qu=Fe.nextSibling,E0=r,Vy=a.group,yt.dragged=Fe,Bu={target:Fe,clientX:(t||e).clientX,clientY:(t||e).clientY},g3=Bu.clientX-l.left,m3=Bu.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Fe.style["will-change"]="all",s=function(){if(bi("delayEnded",n,{evt:e}),yt.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!h3&&n.nativeDraggable&&(Fe.draggable=!0),n._triggerDragStart(e,t),Qn({sortable:n,name:"choose",originalEvent:e}),Vi(Fe,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){y7(Fe,u.trim(),VC)}),ar(o,"dragover",zu),ar(o,"mousemove",zu),ar(o,"touchmove",zu),ar(o,"mouseup",n._onDrop),ar(o,"touchend",n._onDrop),ar(o,"touchcancel",n._onDrop),h3&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Fe.draggable=!0),bi("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Ag||Fs))){if(yt.eventCanceled){this._onDrop();return}ar(o,"mouseup",n._disableDelayedDrag),ar(o,"touchend",n._disableDelayedDrag),ar(o,"touchcancel",n._disableDelayedDrag),ar(o,"mousemove",n._delayedDragTouchMoveHandler),ar(o,"touchmove",n._delayedDragTouchMoveHandler),a.supportPointer&&ar(o,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Fe&&VC(Fe),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Qt(e,"mouseup",this._disableDelayedDrag),Qt(e,"touchend",this._disableDelayedDrag),Qt(e,"touchcancel",this._disableDelayedDrag),Qt(e,"mousemove",this._delayedDragTouchMoveHandler),Qt(e,"touchmove",this._delayedDragTouchMoveHandler),Qt(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?ar(document,"pointermove",this._onTouchMove):t?ar(document,"touchmove",this._onTouchMove):ar(document,"mousemove",this._onTouchMove):(ar(Fe,"dragend",this),ar(kr,"dragstart",this._onDragStart));try{document.selection?O0(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Xf=!1,kr&&Fe){bi("dragStarted",this,{evt:t}),this.nativeDraggable&&ar(document,"dragover",xIe);var r=this.options;!e&&Vi(Fe,r.dragClass,!1),Vi(Fe,r.ghostClass,!0),yt.active=this,e&&this._appendGhost(),Qn({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ea){this._lastX=Ea.clientX,this._lastY=Ea.clientY,A7();for(var e=document.elementFromPoint(Ea.clientX,Ea.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ea.clientX,Ea.clientY),e!==t);)t=e;if(Fe.parentNode[$i]._isOutsideThisEl(e),t)do{if(t[$i]){var r=void 0;if(r=t[$i]._onDragOver({clientX:Ea.clientX,clientY:Ea.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);D7()}},_onTouchMove:function(e){if(Bu){var t=this.options,r=t.fallbackTolerance,n=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=Tt&&gh(Tt,!0),o=Tt&&a&&a.a,s=Tt&&a&&a.d,l=zy&&Bn&&p3(Bn),u=(i.clientX-Bu.clientX+n.x)/(o||1)+(l?l[0]-FC[0]:0)/(o||1),c=(i.clientY-Bu.clientY+n.y)/(s||1)+(l?l[1]-FC[1]:0)/(s||1);if(!yt.active&&!Xf){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(Qn({rootEl:$r,name:"add",toEl:$r,fromEl:kr,originalEvent:e}),Qn({sortable:this,name:"remove",toEl:$r,originalEvent:e}),Qn({rootEl:$r,name:"sort",toEl:$r,fromEl:kr,originalEvent:e}),Qn({sortable:this,name:"sort",toEl:$r,originalEvent:e})),Dn&&Dn.save()):zi!==eh&&zi>=0&&(Qn({sortable:this,name:"update",toEl:$r,originalEvent:e}),Qn({sortable:this,name:"sort",toEl:$r,originalEvent:e})),yt.active&&((zi==null||zi===-1)&&(zi=eh,dl=np),Qn({sortable:this,name:"end",toEl:$r,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){bi("nulling",this),kr=Fe=$r=Tt=qu=Vr=E0=ml=Bu=Ea=Cv=zi=dl=eh=np=Bf=ip=Dn=Vy=yt.dragged=yt.ghost=yt.clone=yt.active=null,i1.forEach(function(e){e.checked=!0}),i1.length=OC=NC=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Fe&&(this._onDragOver(e),CIe(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,r=this.el.children,n=0,i=r.length,a=this.options;ni.right+a||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>i.bottom+a||e.clientX>n.right&&e.clientY>n.top}function MIe(e,t,r,n,i,a,o,s){var l=n?e.clientY:e.clientX,u=n?r.height:r.width,c=n?r.top:r.left,f=n?r.bottom:r.right,h=!1;if(!o){if(s&&k0c+u*a/2:lf-k0)return-ip}else if(l>c+u*(1-i)/2&&lf-u*a/2)?l>c+u/2?1:-1:0}function IIe(e){return fa(Fe){if(N&&(i==null?void 0:i.length)!==E.childNodes.length)return P.insertBefore(N,V.nextSibling),!0;const G=E.childNodes[U];N=E==null?void 0:E.replaceChild(V,G)})}}catch(N){F=N}finally{i=null}Uc(()=>{if(S3(),F)throw F})}const y={onUpdate:g,onStart:h,onAdd:d,onRemove:v,onEnd:m};function S(D){const M=J(a);return D||(D=eIe(M)?tIe(M,n==null?void 0:n.$el):M),D&&!iIe(D)&&(D=D.$el),D||jMe("Root element not found"),D}function b(){var D;const M=(D=J(s))!=null?D:{},I=d7(M,["immediate","clone"]);return c3(I,(P,E)=>{aIe(P)&&(I[P]=(F,...O)=>{const N=NIe();return oIe(F,N),E(F,...O)})}),nIe(o===null?{}:y,I)}const w=D=>{D=S(D),l&&C.destroy(),l=new yt(D,b())};vr(()=>s,()=>{l&&c3(b(),(D,M)=>{l==null||l.option(D,M)})},{deep:!0});const C={option:(D,M)=>l==null?void 0:l.option(D,M),destroy:()=>{l==null||l.destroy(),l=null},save:()=>l==null?void 0:l.save(),toArray:()=>l==null?void 0:l.toArray(),closest:(...D)=>l==null?void 0:l.closest(...D)},x=()=>C==null?void 0:C.option("disabled",!0),A=()=>C==null?void 0:C.option("disabled",!1);return OIe(()=>{u&&w()}),kIe(C.destroy),Qf({start:w,pause:x,resume:A},C)}const bD=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],VIe=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...bD.map(e=>`on${e.replace(/^\S/,t=>t.toUpperCase())}`)],w3=Ut({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:VIe,emits:["update:modelValue",...bD],setup(e,{slots:t,emit:r,expose:n,attrs:i}){const a=bD.reduce((c,f)=>{const h=`on${f.replace(/^\S/,d=>d.toUpperCase())}`;return c[h]=(...d)=>r(f,...d),c},{}),o=at(()=>{const c=gQ(e),f=d7(c,["modelValue"]),h=Object.entries(f).reduce((d,[v,g])=>{const m=J(g);return m!==void 0&&(d[v]=m),d},{});return Qf(Qf({},a),JMe(Qf(Qf({},i),h)))}),s=at({get:()=>e.modelValue,set:c=>r("update:modelValue",c)}),l=Ze(),u=Wc(FIe(e.target||l,s,o));return n(u),()=>{var c;return yo(e.tag||"div",{ref:l},(c=t==null?void 0:t.default)==null?void 0:c.call(t,u))}}}),BIe={class:"flex w-72 rounded bg-base-200 lg:w-full lg:flex-col"},zIe=Ut({__name:"TableSettings",setup(e){const t=Ze(Object.values(tr).filter(r=>!ju.value.includes(r)));return(r,n)=>(se(),Se("div",BIe,[Be(J(w3),{class:"flex flex-1 flex-col gap-2 bg-base-300 p-2 lg:flex-row",modelValue:J(ju),"onUpdate:modelValue":n[0]||(n[0]=i=>bt(ju)?ju.value=i:null),animation:150,group:"list",ghostClass:"ghost"},{default:fp(()=>[(se(!0),Se(lt,null,dr(J(ju),i=>(se(),Se("div",{key:i,class:"flex cursor-move items-center rounded bg-neutral px-2 text-neutral-content shadow-lg"},Re(r.$t(i)),1))),128))]),_:1},8,["modelValue"]),Be(J(w3),{class:"flex flex-1 flex-col gap-2 p-2 lg:flex-row",modelValue:t.value,"onUpdate:modelValue":n[1]||(n[1]=i=>t.value=i),animation:150,group:"list",ghostClass:"ghost"},{default:fp(()=>[(se(!0),Se(lt,null,dr(t.value,i=>(se(),Se("div",{key:i,class:"flex cursor-move items-center rounded bg-neutral px-2 text-neutral-content shadow-lg"},Re(r.$t(i)),1))),128))]),_:1},8,["modelValue"])]))}}),GIe={class:"flex flex-col gap-1 overflow-y-auto p-2"},$Ie={class:"card card-compact bg-base-100 shadow-lg"},HIe={class:"card-title px-4 pt-4 text-primary"},WIe={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},UIe={class:"card-body gap-4"},YIe={class:"flex items-center gap-2"},XIe=["value"],ZIe={class:"flex items-center gap-2"},qIe=["value","label"],jIe={key:0},KIe={class:"card card-compact bg-base-100 shadow-lg"},JIe={class:"card-title px-4 pt-4"},QIe={class:"card-body gap-4"},eLe={class:"flex items-center gap-2"},tLe={class:"card card-compact bg-base-100 shadow-lg"},rLe={class:"card-title px-4 pt-4"},nLe={class:"card-body"},iLe={class:"flex items-center gap-2"},aLe={class:"flex items-center gap-2"},oLe={class:"flex items-center gap-2"},sLe={class:"flex items-center gap-2"},lLe={class:"flex max-w-96 items-center gap-2"},uLe={class:"flex max-w-96 items-center gap-2"},cLe={class:"card card-compact bg-base-100 shadow-lg"},fLe={class:"card-title px-4 pt-4"},hLe={class:"card-body"},dLe={class:"flex items-center gap-2"},vLe={key:0,class:"flex items-center gap-2"},pLe={key:1,class:"flex flex-col gap-2"},gLe=Ut({__name:"SettingsPage",setup(e){const t=Ze(!1),r=async()=>{if(!t.value){t.value=!0;try{await Tne(),t.value=!1}catch{t.value=!1}}},n=Ze(!1),i=async()=>{if(!n.value){n.value=!0;try{await Cne(),n.value=!1}catch{n.value=!1}}},a=Ze(!1),o=async()=>{if(!a.value){a.value=!0;try{await xne(),a.value=!1}catch{a.value=!1}}},s=["default","light","dark","cupcake","bumblebee","emerald","corporate","synthwave","retro","cyberpunk","valentine","halloween","garden","forest","aqua","lofi","pastel","fantasy","wireframe","black","luxury","dracula","cmyk","autumn","business","acid","lemonade","night","coffee","winter","dim","nord","sunset"];return(l,u)=>(se(),Se("div",GIe,[Q("div",$Ie,[Q("div",HIe,[Q("a",WIe,"zashboard v"+Re(J(hne)),1)]),Q("div",UIe,[Q("div",YIe,[qt(Re(l.$t("theme"))+": ",1),Dr(Q("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":u[0]||(u[0]=c=>bt(Jy)?Jy.value=c:null)},[(se(),Se(lt,null,dr(s,c=>Q("option",{key:c,value:c},Re(c),9,XIe)),64))],512),[[ms,J(Jy)]])]),Q("div",ZIe,[qt(Re(l.$t("language"))+": ",1),Dr(Q("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":u[1]||(u[1]=c=>bt(fs)?fs.value=c:null),onChange:u[2]||(u[2]=()=>J(wL).global.locale=J(fs))},[(se(!0),Se(lt,null,dr(Object.values(J(Lo)),c=>(se(),Se("option",{key:c,value:c,label:l.$t(c)},null,8,qIe))),128))],544),[[ms,J(fs)]])]),J(sE)?Jt("",!0):(se(),Se("div",jIe,[Q("button",{class:Xt(J(Kr)("btn btn-primary btn-sm",n.value?"animate-pulse":"")),onClick:i},Re(l.$t("upgradeUI")),3)]))])]),Q("div",KIe,[Q("div",JIe,Re(l.$t("backend")),1),Q("div",QIe,[Be(ZG),Q("div",eLe,[J(sE)?Jt("",!0):(se(),Se("button",{key:0,class:Xt(J(Kr)("btn btn-primary btn-sm",t.value?"animate-pulse":"")),onClick:r},Re(l.$t("upgradeCore")),3)),Q("button",{class:Xt(J(Kr)("btn btn-sm",a.value?"animate-pulse":"")),onClick:o},Re(l.$t("reloadConfigs")),3),Q("button",{class:"btn btn-sm",onClick:u[3]||(u[3]=(...c)=>J(lE)&&J(lE)(...c))},Re(l.$t("flushFakeIP")),1)])])]),Q("div",tLe,[Q("div",rLe,Re(l.$t("proxies")),1),Q("div",nLe,[Q("div",iLe,[qt(Re(l.$t("automaticDisconnection"))+": ",1),Dr(Q("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":u[4]||(u[4]=c=>bt(t0)?t0.value=c:null)},null,512),[[ss,J(t0)]])]),Q("div",aLe,[qt(Re(l.$t("showGlobalProxy"))+": ",1),Dr(Q("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":u[5]||(u[5]=c=>bt(Qy)?Qy.value=c:null)},null,512),[[ss,J(Qy)]])]),Q("div",oLe,[qt(Re(l.$t("twoColumns"))+": ",1),Dr(Q("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":u[6]||(u[6]=c=>bt(sh)?sh.value=c:null)},null,512),[[ss,J(sh)]])]),Q("div",sLe,[qt(Re(l.$t("twoColumnsForProxyGroupInMobile"))+": ",1),Dr(Q("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":u[7]||(u[7]=c=>bt(r0)?r0.value=c:null)},null,512),[[ss,J(r0)]])]),Q("div",lLe,[qt(Re(l.$t("speedtestUrl"))+": ",1),Dr(Q("input",{type:"text",class:"input input-sm input-bordered flex-1","onUpdate:modelValue":u[8]||(u[8]=c=>bt(Rv)?Rv.value=c:null)},null,512),[[Rl,J(Rv)]])]),Q("div",uLe,[qt(Re(l.$t("speedtestTimeout"))+": ",1),Dr(Q("input",{type:"text",class:"input input-sm input-bordered flex-1","onUpdate:modelValue":u[9]||(u[9]=c=>bt(Ev)?Ev.value=c:null)},null,512),[[Rl,J(Ev)]])])])]),Q("div",cLe,[Q("div",fLe,Re(l.$t("connections")),1),Q("div",hLe,[Q("div",dLe,[qt(Re(l.$t("connectionStyle"))+": "+Re(l.$t("table"))+" ",1),Dr(Q("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":u[10]||(u[10]=c=>bt(ac)?ac.value=c:null)},null,512),[[ss,J(ac)]]),qt(" "+Re(l.$t("card")),1)]),J(ac)?(se(),Se("div",vLe,[qt(Re(l.$t("compactCard"))+": ",1),Dr(Q("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":u[11]||(u[11]=c=>bt(n0)?n0.value=c:null)},null,512),[[ss,J(n0)]])])):(se(),Se("div",pLe,[Q("div",null,Re(l.$t("customTableColumns"))+":",1),Be(zIe)]))])])]))}});/*! + * vue-router v4.5.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const Zf=typeof document<"u";function P7(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function mLe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&P7(e.default)}const fr=Object.assign;function $C(e,t){const r={};for(const n in t){const i=t[n];r[n]=qa(i)?i.map(e):e(i)}return r}const op=()=>{},qa=Array.isArray,R7=/#/g,yLe=/&/g,_Le=/\//g,SLe=/=/g,bLe=/\?/g,E7=/\+/g,wLe=/%5B/g,xLe=/%5D/g,k7=/%5E/g,CLe=/%60/g,O7=/%7B/g,TLe=/%7C/g,N7=/%7D/g,ALe=/%20/g;function IL(e){return encodeURI(""+e).replace(TLe,"|").replace(wLe,"[").replace(xLe,"]")}function DLe(e){return IL(e).replace(O7,"{").replace(N7,"}").replace(k7,"^")}function wD(e){return IL(e).replace(E7,"%2B").replace(ALe,"+").replace(R7,"%23").replace(yLe,"%26").replace(CLe,"`").replace(O7,"{").replace(N7,"}").replace(k7,"^")}function MLe(e){return wD(e).replace(SLe,"%3D")}function ILe(e){return IL(e).replace(R7,"%23").replace(bLe,"%3F")}function LLe(e){return e==null?"":ILe(e).replace(_Le,"%2F")}function qp(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const PLe=/\/$/,RLe=e=>e.replace(PLe,"");function HC(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=NLe(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:qp(o)}}function ELe(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function x3(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function kLe(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Nh(t.matched[n],r.matched[i])&&F7(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Nh(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function F7(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!OLe(e[r],t[r]))return!1;return!0}function OLe(e,t){return qa(e)?C3(e,t):qa(t)?C3(t,e):e===t}function C3(e,t){return qa(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function NLe(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 al={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var jp;(function(e){e.pop="pop",e.push="push"})(jp||(jp={}));var sp;(function(e){e.back="back",e.forward="forward",e.unknown=""})(sp||(sp={}));function FLe(e){if(!e)if(Zf){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),RLe(e)}const VLe=/^[^#]+#/;function BLe(e,t){return e.replace(VLe,"#")+t}function zLe(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 SS=()=>({left:window.scrollX,top:window.scrollY});function GLe(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=zLe(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 T3(e,t){return(history.state?history.state.position-t:-1)+e}const xD=new Map;function $Le(e,t){xD.set(e,t)}function HLe(e){const t=xD.get(e);return xD.delete(e),t}let WLe=()=>location.protocol+"//"+location.host;function V7(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),x3(l,"")}return x3(r,e)+n+i}function ULe(e,t,r,n){let i=[],a=[],o=null;const s=({state:h})=>{const d=V7(e,location),v=r.value,g=t.value;let m=0;if(h){if(r.value=d,t.value=h,o&&o===v){o=null;return}m=g?h.position-g.position:0}else n(d);i.forEach(y=>{y(r.value,v,{delta:m,type:jp.pop,direction:m?m>0?sp.forward:sp.back:sp.unknown})})};function l(){o=r.value}function u(h){i.push(h);const d=()=>{const v=i.indexOf(h);v>-1&&i.splice(v,1)};return a.push(d),d}function c(){const{history:h}=window;h.state&&h.replaceState(fr({},h.state,{scroll:SS()}),"")}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 A3(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?SS():null}}function YLe(e){const{history:t,location:r}=window,n={value:V7(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:WLe()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),i.value=u}catch(d){console.error(d),r[c?"replace":"assign"](h)}}function o(l,u){const c=fr({},t.state,A3(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=fr({},i.value,t.state,{forward:l,scroll:SS()});a(c.current,c,!0);const f=fr({},A3(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 XLe(e){e=FLe(e);const t=YLe(e),r=ULe(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=fr({location:"",base:e,go:n,createHref:BLe.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 ZLe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),XLe(e)}function qLe(e){return typeof e=="string"||e&&typeof e=="object"}function B7(e){return typeof e=="string"||typeof e=="symbol"}const z7=Symbol("");var D3;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(D3||(D3={}));function Fh(e,t){return fr(new Error,{type:e,[z7]:!0},t)}function rs(e,t){return e instanceof Error&&z7 in e&&(t==null||!!(e.type&t))}const M3="[^/]+?",jLe={sensitive:!1,strict:!1,start:!0,end:!0},KLe=/[.+*?^${}()[\]/\\]/g;function JLe(e,t){const r=fr({},jLe,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 G7(e,t){let r=0;const n=e.score,i=t.score;for(;r0&&t[t.length-1]<0}const ePe={type:0,value:""},tPe=/[a-zA-Z0-9_]/;function rPe(e){if(!e)return[[]];if(e==="/")return[[ePe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${r})/"${u}": ${d}`)}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(b)}:op}function o(f){if(B7(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=sPe(f,r);r.splice(h,0,f),f.record.name&&!R3(f)&&n.set(f.record.name,f)}function u(f,h){let d,v={},g,m;if("name"in f&&f.name){if(d=n.get(f.name),!d)throw Fh(1,{location:f});m=d.record.name,v=fr(L3(h.params,d.keys.filter(b=>!b.optional).concat(d.parent?d.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&L3(f.params,d.keys.map(b=>b.name))),g=d.stringify(v)}else if(f.path!=null)g=f.path,d=r.find(b=>b.re.test(g)),d&&(v=d.parse(g),m=d.record.name);else{if(d=h.name?n.get(h.name):r.find(b=>b.re.test(h.path)),!d)throw Fh(1,{location:f,currentLocation:h});m=d.record.name,v=fr({},h.params,f.params),g=d.stringify(v)}const y=[];let S=d;for(;S;)y.unshift(S.record),S=S.parent;return{name:m,path:g,params:v,matched:y,meta:oPe(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 L3(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function P3(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:aPe(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 aPe(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 R3(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function oPe(e){return e.reduce((t,r)=>fr(t,r.meta),{})}function E3(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function sPe(e,t){let r=0,n=t.length;for(;r!==n;){const a=r+n>>1;G7(e,t[a])<0?n=a:r=a+1}const i=lPe(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function lPe(e){let t=e;for(;t=t.parent;)if($7(t)&&G7(e,t)===0)return t}function $7({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function uPe(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&wD(a)):[n&&wD(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function cPe(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=qa(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const fPe=Symbol(""),O3=Symbol(""),LL=Symbol(""),PL=Symbol(""),CD=Symbol("");function nv(){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 vl(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(Fh(4,{from:r,to:t})):h instanceof Error?l(h):qLe(h)?l(Fh(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 WC(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(P7(l)){const c=(l.__vccOpts||l)[t];c&&a.push(vl(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=mLe(c)?c.default:c;o.mods[s]=c,o.components[s]=f;const d=(f.__vccOpts||f)[t];return d&&vl(d,r,n,o,s,i)()}))}}return a}function N3(e){const t=$a(LL),r=$a(PL),n=at(()=>{const l=J(e.to);return t.resolve(l)}),i=at(()=>{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(Nh.bind(null,c));if(h>-1)return h;const d=F3(l[u-2]);return u>1&&F3(c)===d&&f[f.length-1].path!==d?f.findIndex(Nh.bind(null,l[u-2])):h}),a=at(()=>i.value>-1&&gPe(r.params,n.value.params)),o=at(()=>i.value>-1&&i.value===r.matched.length-1&&F7(r.params,n.value.params));function s(l={}){if(pPe(l)){const u=t[J(e.replace)?"replace":"push"](J(e.to)).catch(op);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:at(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function hPe(e){return e.length===1?e[0]:e}const dPe=Ut({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:N3,setup(e,{slots:t}){const r=Wc(N3(e)),{options:n}=$a(LL),i=at(()=>({[V3(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[V3(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&hPe(t.default(r));return e.custom?a:yo("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),vPe=dPe;function pPe(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 gPe(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(!qa(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function F3(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const V3=(e,t,r)=>e??t??r,mPe=Ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=$a(CD),i=at(()=>e.route||n.value),a=$a(O3,0),o=at(()=>{let u=J(a);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=at(()=>i.value.matched[o.value]);Yy(O3,at(()=>o.value+1)),Yy(fPe,s),Yy(CD,i);const l=Ze();return vr(()=>[l.value,s.value,e.name],([u,c,f],[h,d,v])=>{c&&(c.instances[f]=u,d&&d!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!Nh(c,d)||!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 B3(r.default,{Component:h,route:u});const d=f.props[c],v=d?d===!0?u.params:typeof d=="function"?d(u):d:null,m=yo(h,fr({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return B3(r.default,{Component:m,route:u})||m}}});function B3(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const H7=mPe;function yPe(e){const t=iPe(e.routes,e),r=e.parseQuery||uPe,n=e.stringifyQuery||k3,i=e.history,a=nv(),o=nv(),s=nv(),l=d1(al);let u=al;Zf&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=$C.bind(null,oe=>""+oe),f=$C.bind(null,LLe),h=$C.bind(null,qp);function d(oe,ue){let ve,me;return B7(oe)?(ve=t.getRecordMatcher(oe),me=ue):me=oe,t.addRoute(me,ve)}function v(oe){const ue=t.getRecordMatcher(oe);ue&&t.removeRoute(ue)}function g(){return t.getRoutes().map(oe=>oe.record)}function m(oe){return!!t.getRecordMatcher(oe)}function y(oe,ue){if(ue=fr({},ue||l.value),typeof oe=="string"){const W=HC(r,oe,ue.path),ne=t.resolve({path:W.path},ue),_e=i.createHref(W.fullPath);return fr(W,ne,{params:h(ne.params),hash:qp(W.hash),redirectedFrom:void 0,href:_e})}let ve;if(oe.path!=null)ve=fr({},oe,{path:HC(r,oe.path,ue.path).path});else{const W=fr({},oe.params);for(const ne in W)W[ne]==null&&delete W[ne];ve=fr({},oe,{params:f(W)}),ue.params=f(ue.params)}const me=t.resolve(ve,ue),Ce=oe.hash||"";me.params=c(h(me.params));const Ee=ELe(n,fr({},oe,{hash:DLe(Ce),path:me.path})),H=i.createHref(Ee);return fr({fullPath:Ee,hash:Ce,query:n===k3?cPe(oe.query):oe.query||{}},me,{redirectedFrom:void 0,href:H})}function S(oe){return typeof oe=="string"?HC(r,oe,l.value.path):fr({},oe)}function b(oe,ue){if(u!==oe)return Fh(8,{from:ue,to:oe})}function w(oe){return A(oe)}function C(oe){return w(fr(S(oe),{replace:!0}))}function x(oe){const ue=oe.matched[oe.matched.length-1];if(ue&&ue.redirect){const{redirect:ve}=ue;let me=typeof ve=="function"?ve(oe):ve;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=S(me):{path:me},me.params={}),fr({query:oe.query,hash:oe.hash,params:me.path!=null?{}:oe.params},me)}}function A(oe,ue){const ve=u=y(oe),me=l.value,Ce=oe.state,Ee=oe.force,H=oe.replace===!0,W=x(ve);if(W)return A(fr(S(W),{state:typeof W=="object"?fr({},Ce,W.state):Ce,force:Ee,replace:H}),ue||ve);const ne=ve;ne.redirectedFrom=ue;let _e;return!Ee&&kLe(n,me,ve)&&(_e=Fh(16,{to:ne,from:me}),ie(me,me,!0,!1)),(_e?Promise.resolve(_e):I(ne,me)).catch(he=>rs(he)?rs(he,2)?he:ee(he):G(he,ne,me)).then(he=>{if(he){if(rs(he,2))return A(fr({replace:H},S(he.to),{state:typeof he.to=="object"?fr({},Ce,he.to.state):Ce,force:Ee}),ue||ne)}else he=E(ne,me,!0,H,Ce);return P(ne,me,he),he})}function D(oe,ue){const ve=b(oe,ue);return ve?Promise.reject(ve):Promise.resolve()}function M(oe){const ue=Le.values().next().value;return ue&&typeof ue.runWithContext=="function"?ue.runWithContext(oe):oe()}function I(oe,ue){let ve;const[me,Ce,Ee]=_Pe(oe,ue);ve=WC(me.reverse(),"beforeRouteLeave",oe,ue);for(const W of me)W.leaveGuards.forEach(ne=>{ve.push(vl(ne,oe,ue))});const H=D.bind(null,oe,ue);return ve.push(H),He(ve).then(()=>{ve=[];for(const W of a.list())ve.push(vl(W,oe,ue));return ve.push(H),He(ve)}).then(()=>{ve=WC(Ce,"beforeRouteUpdate",oe,ue);for(const W of Ce)W.updateGuards.forEach(ne=>{ve.push(vl(ne,oe,ue))});return ve.push(H),He(ve)}).then(()=>{ve=[];for(const W of Ee)if(W.beforeEnter)if(qa(W.beforeEnter))for(const ne of W.beforeEnter)ve.push(vl(ne,oe,ue));else ve.push(vl(W.beforeEnter,oe,ue));return ve.push(H),He(ve)}).then(()=>(oe.matched.forEach(W=>W.enterCallbacks={}),ve=WC(Ee,"beforeRouteEnter",oe,ue,M),ve.push(H),He(ve))).then(()=>{ve=[];for(const W of o.list())ve.push(vl(W,oe,ue));return ve.push(H),He(ve)}).catch(W=>rs(W,8)?W:Promise.reject(W))}function P(oe,ue,ve){s.list().forEach(me=>M(()=>me(oe,ue,ve)))}function E(oe,ue,ve,me,Ce){const Ee=b(oe,ue);if(Ee)return Ee;const H=ue===al,W=Zf?history.state:{};ve&&(me||H?i.replace(oe.fullPath,fr({scroll:H&&W&&W.scroll},Ce)):i.push(oe.fullPath,Ce)),l.value=oe,ie(oe,ue,ve,H),ee()}let F;function O(){F||(F=i.listen((oe,ue,ve)=>{if(!ze.listening)return;const me=y(oe),Ce=x(me);if(Ce){A(fr(Ce,{replace:!0,force:!0}),me).catch(op);return}u=me;const Ee=l.value;Zf&&$Le(T3(Ee.fullPath,ve.delta),SS()),I(me,Ee).catch(H=>rs(H,12)?H:rs(H,2)?(A(fr(S(H.to),{force:!0}),me).then(W=>{rs(W,20)&&!ve.delta&&ve.type===jp.pop&&i.go(-1,!1)}).catch(op),Promise.reject()):(ve.delta&&i.go(-ve.delta,!1),G(H,me,Ee))).then(H=>{H=H||E(me,Ee,!1),H&&(ve.delta&&!rs(H,8)?i.go(-ve.delta,!1):ve.type===jp.pop&&rs(H,20)&&i.go(-1,!1)),P(me,Ee,H)}).catch(op)}))}let N=nv(),V=nv(),U;function G(oe,ue,ve){ee(oe);const me=V.list();return me.length?me.forEach(Ce=>Ce(oe,ue,ve)):console.error(oe),Promise.reject(oe)}function Z(){return U&&l.value!==al?Promise.resolve():new Promise((oe,ue)=>{N.add([oe,ue])})}function ee(oe){return U||(U=!oe,O(),N.list().forEach(([ue,ve])=>oe?ve(oe):ue()),N.reset()),oe}function ie(oe,ue,ve,me){const{scrollBehavior:Ce}=e;if(!Zf||!Ce)return Promise.resolve();const Ee=!ve&&HLe(T3(oe.fullPath,0))||(me||!ve)&&history.state&&history.state.scroll||null;return Uc().then(()=>Ce(oe,ue,Ee)).then(H=>H&&GLe(H)).catch(H=>G(H,oe,ue))}const pe=oe=>i.go(oe);let De;const Le=new Set,ze={currentRoute:l,listening:!0,addRoute:d,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:g,resolve:y,options:e,push:w,replace:C,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:V.add,isReady:Z,install(oe){const ue=this;oe.component("RouterLink",vPe),oe.component("RouterView",H7),oe.config.globalProperties.$router=ue,Object.defineProperty(oe.config.globalProperties,"$route",{enumerable:!0,get:()=>J(l)}),Zf&&!De&&l.value===al&&(De=!0,w(i.location).catch(Ce=>{}));const ve={};for(const Ce in al)Object.defineProperty(ve,Ce,{get:()=>l.value[Ce],enumerable:!0});oe.provide(LL,ue),oe.provide(PL,fz(ve)),oe.provide(CD,l);const me=oe.unmount;Le.add(oe),oe.unmount=function(){Le.delete(oe),Le.size<1&&(u=al,F&&F(),F=null,l.value=al,De=!1,U=!1),me()}}};function He(oe){return oe.reduce((ue,ve)=>ue.then(()=>M(ve)),Promise.resolve())}return ze}function _Pe(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oNh(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Nh(u,l))||i.push(l))}return[r,n,i]}function W7(e){return $a(PL)}const Mg=yPe({history:ZLe("./"),routes:[{path:"/proxies",name:br.proxies,component:NMe},{path:"/connections",name:br.connections,component:qDe},{path:"/logs",name:br.logs,component:QDe},{path:"/rules",name:br.rules,component:XMe},{path:"/settings",name:br.settings,component:gLe},{path:"/:catchAll(.*)",redirect:br.proxies}]}),z3=Cte("zashboard"),U7=e=>{typeof e=="string"&&_l.value?z3.value=`zashboard | ${wL.global.t(e)}`:z3.value="zashboard"};Mg.afterEach(e=>{U7(e.name)});vr(fs,()=>{U7(Mg.currentRoute.value.name)});const SPe={class:"flex flex-col gap-4 text-xs"},bPe={class:"flex flex-col items-center justify-center"},wPe={class:"flex flex-col items-center justify-center"},xPe={class:"flex flex-col items-center justify-center"},CPe={class:"flex flex-col items-center justify-center"},TPe={class:"flex flex-col items-center justify-center"},APe=Ut({__name:"VerticalInfos",setup(e){return(t,r)=>(se(),Se("div",SPe,[Q("div",bPe,[Be(J(JD),{class:"h-4 w-4"}),qt(" "+Re(J(_o).length),1)]),Q("div",wPe,[Be(J(TG),{class:"h-4 w-4"}),qt(" "+Re(J(Or)(J(q0)))+" ",1),Q("span",null,Re(J(Or)(J(aM)))+"/s ",1)]),Q("div",xPe,[Be(J(DG),{class:"h-4 w-4"}),qt(" "+Re(J(Or)(J(j0)))+" ",1),Q("span",null,Re(J(Or)(J(oM)))+"/s ",1)]),Q("div",CPe,[Be(J(Nne),{class:"h-4 w-4"}),qt(" "+Re(J(Or)(J(iM),{binary:!0})),1)]),Q("div",TPe,[Q("button",{class:"btn btn-circle btn-sm",onClick:r[0]||(r[0]=n=>yc.value=!1)},[Be(J(kne),{class:"h-5 w-5"})])])]))}}),DPe={class:"drawer-side z-30"},MPe={class:"menu flex-1 pb-0"},IPe=["onClick"],LPe={class:"card bg-base-100 shadow-lg"},PPe=Ut({__name:"SideBar",setup(e){const t={[br.connections]:GG,[br.logs]:$G,[br.proxies]:HG,[br.rules]:UG},r={[br.proxies]:PG,[br.connections]:JD,[br.rules]:OG,[br.logs]:LG,[br.settings]:IG},n=at(()=>i.name?t[i.name]:null),i=W7(),a=Object.values(br);return(o,s)=>(se(),Se("div",DPe,[s[0]||(s[0]=Q("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),Q("div",{class:Xt(J(Kr)("flex h-full flex-col gap-2 overflow-x-hidden bg-base-200 p-2 text-base-content !transition-all duration-500",J(yc)?"w-18 px-0":"w-[21rem]"))},[Q("ul",MPe,[(se(!0),Se(lt,null,dr(J(a),l=>(se(),Se("li",{key:l},[Q("a",{class:Xt(l===J(i).name?"active":"inactive"),onClick:()=>J(Mg).push({name:l})},[(se(),jt(Vl(r[l]),{class:"h-5 w-5"})),J(yc)?Jt("",!0):(se(),Se(lt,{key:0},[qt(Re(o.$t(l)),1)],64))],10,IPe)]))),128))]),J(yc)?(se(),jt(APe,{key:0})):(se(),Se(lt,{key:1},[Q("div",LPe,[n.value?(se(),jt(Vl(n.value),{key:0})):Jt("",!0),Be(qie)]),Be(OAe)],64))],2)]))}}),RPe={class:"w-128 drawer md:drawer-open"},EPe={class:"drawer-content fixed bottom-0 flex h-full w-full flex-col overflow-hidden bg-base-200/50 md:relative md:w-auto"},kPe={class:"fixed bottom-0 flex h-12 w-full items-center justify-center gap-1 bg-base-200 p-1 md:hidden"},OPe={class:"menu menu-horizontal"},NPe=["href"],FPe={for:"sidebar"},VPe={class:"btn btn-circle drawer-button btn-sm bg-neutral text-neutral-content shadow-lg"},BPe=Ut({__name:"HomePage",setup(e){const t={[br.proxies]:PG,[br.connections]:JD,[br.rules]:OG,[br.logs]:LG,[br.settings]:IG},r={[br.connections]:GG,[br.logs]:$G,[br.proxies]:HG,[br.rules]:UG},n=W7(),i=Object.values(br),a=at(()=>r[n.name]);return vr(cs,()=>{kv.value=_h.RULES,_c.value=Gl.PROXIES,CG(),J0(),nM(),Pne(),lT(),Hie()},{immediate:!0}),(o,s)=>(se(),Se("div",RPe,[s[0]||(s[0]=Q("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),Be(PPe),Q("div",EPe,[a.value&&J(yc)?(se(),jt(Vl(a.value),{key:0,horizontal:!0})):Jt("",!0),Be(J(H7),{class:"mb-12 md:mb-0"}),Q("div",kPe,[Q("ul",OPe,[(se(!0),Se(lt,null,dr(J(i),l=>(se(),Se("li",{key:l},[Q("a",{class:Xt(l===J(n).name?"active":"inactive"),href:`#${l}`},[(se(),jt(Vl(t[l]),{class:"h-5 w-5"}))],10,NPe)]))),128))]),Q("label",FPe,[Q("div",VPe,[Be(J(One),{class:"h-4 w-4"})])])])])]))}}),zPe={class:"flex h-full w-full items-center justify-center"},GPe={class:"rounded-lg bg-base-100 p-6 shadow-lg"},$Pe={class:"mb-4 text-2xl font-semibold"},HPe={class:"form-control mb-4"},WPe={class:"label"},UPe={class:"label-text"},YPe={class:"form-control mb-4"},XPe={class:"label"},ZPe={class:"label-text"},qPe={class:"form-control mb-4"},jPe={class:"label"},KPe={class:"label-text"},JPe={class:"form-control"},QPe={class:"label"},e2e={class:"label-text"},t2e=["onClick"],r2e=Ut({__name:"SetupPage",setup(e){var i,a;const t=Wc({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:d,message:v}=await h.json();if(!d){s||alert(v);return}Ote(o),Mg.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)=>(se(),Se("div",zPe,[Q("div",GPe,[Q("h1",$Pe,Re(o.$t("setup")),1),Q("div",HPe,[Q("label",WPe,[Q("span",UPe,Re(o.$t("protocol")),1)]),Dr(Q("select",{class:"select select-bordered w-full","onUpdate:modelValue":s[0]||(s[0]=l=>t.protocol=l)},s[5]||(s[5]=[Q("option",{value:"http"},"HTTP",-1),Q("option",{value:"https"},"HTTPS",-1)]),512),[[ms,t.protocol]])]),Q("div",YPe,[Q("label",XPe,[Q("span",ZPe,Re(o.$t("host")),1)]),Dr(Q("input",{type:"text",class:"input input-bordered w-full","onUpdate:modelValue":s[1]||(s[1]=l=>t.host=l)},null,512),[[Rl,t.host]])]),Q("div",qPe,[Q("label",jPe,[Q("span",KPe,Re(o.$t("port")),1)]),Dr(Q("input",{type:"text",class:"input input-bordered w-full","onUpdate:modelValue":s[2]||(s[2]=l=>t.port=l)},null,512),[[Rl,t.port]])]),Q("div",JPe,[Q("label",QPe,[Q("span",e2e,Re(o.$t("password")),1)]),Dr(Q("input",{type:"password",class:"input input-bordered w-full","onUpdate:modelValue":s[3]||(s[3]=l=>t.password=l)},null,512),[[Rl,t.password]])]),Q("button",{class:"btn btn-primary mt-4 w-full",onClick:s[4]||(s[4]=l=>r(t))},Re(o.$t("submit")),1),(se(!0),Se(lt,null,dr(J(gp),l=>(se(),Se("button",{class:"btn btn-xs mt-2 w-full",key:l.uuid,onClick:u=>cs.value=l.uuid},Re(l.protocol)+"://"+Re(l.host)+":"+Re(l.port),9,t2e))),128))])]))}}),n2e=["data-theme"],i2e=Ut({__name:"App",setup(e){return(t,r)=>(se(),Se("div",{class:"flex h-dvh w-screen overflow-x-hidden bg-base-100 font-twemoji","data-theme":J(Jy)},[J(_l)?(se(),jt(BPe,{key:1})):(se(),jt(r2e,{key:0}))],8,n2e))}}),RL=ete(i2e);Fl.extend(PJ);RL.use(Mg);RL.use(wL);RL.mount("#app"); diff --git a/index.html b/index.html index 7f4e7811..887caa2b 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ zashboard - +