diff --git a/luci-app-nekobox/htdocs/nekobox/ping.php b/luci-app-nekobox/htdocs/nekobox/ping.php index ff6f27c0f..8456ab7a2 100644 --- a/luci-app-nekobox/htdocs/nekobox/ping.php +++ b/luci-app-nekobox/htdocs/nekobox/ping.php @@ -724,6 +724,11 @@ let IP = { let timezone = data.timezone || ""; let asn = data.asn || ""; + let areaDisplay = [country, region, city].filter(Boolean).join(" "); + if (region === city) { + areaDisplay = `${country} ${region}`; + } + let ipSupport; const ipv4Regex = /^(\d{1,3}\.){3}\d{1,3}$/; const ipv6Regex = /^[a-fA-F0-9:]+$/; @@ -766,7 +771,7 @@ let IP = {
地区: - ${country} ${region} ${city} + ${areaDisplay}
运营商: diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-C1iuVV9q.js b/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-BYS07YVA.js similarity index 78% rename from luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-C1iuVV9q.js rename to luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-BYS07YVA.js index f1035ae78..f910ab712 100644 --- a/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-C1iuVV9q.js +++ b/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-BYS07YVA.js @@ -1,53 +1,53 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var ev=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sg={exports:{}},Kz=sg.exports,lA;function EP(){return lA||(lA=1,function(e,t){(function(n,r){e.exports=r()})(Kz,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",f="month",p="quarter",d="year",g="date",y="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,b={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(W){var q=["th","st","nd","rd"],j=W%100;return"["+W+(q[(j-20)%10]||q[j]||q[0])+"]"}},S=function(W,q,j){var ie=String(W);return!ie||ie.length>=q?W:""+Array(q+1-ie.length).join(j)+W},x={s:S,z:function(W){var q=-W.utcOffset(),j=Math.abs(q),ie=Math.floor(j/60),J=j%60;return(q<=0?"+":"-")+S(ie,2,"0")+":"+S(J,2,"0")},m:function W(q,j){if(q.date()1)return W(ye[0])}else{var we=q.name;T[we]=q,J=we}return!ie&&J&&(E=J),J||!ie&&E},O=function(W,q){if(D(W))return W.clone();var j=typeof q=="object"?q:{};return j.date=W,j.args=arguments,new H(j)},k=x;k.l=P,k.i=D,k.w=function(W,q){return O(W,{locale:q.$L,utc:q.$u,x:q.$x,$offset:q.$offset})};var H=function(){function W(j){this.$L=P(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[A]=!0}var q=W.prototype;return q.parse=function(j){this.$d=function(ie){var J=ie.date,ce=ie.utc;if(J===null)return new Date(NaN);if(k.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var ye=J.match(_);if(ye){var we=ye[2]-1||0,Ne=(ye[7]||"0").substring(0,3);return ce?new Date(Date.UTC(ye[1],we,ye[3]||1,ye[4]||0,ye[5]||0,ye[6]||0,Ne)):new Date(ye[1],we,ye[3]||1,ye[4]||0,ye[5]||0,ye[6]||0,Ne)}}return new Date(J)}(j),this.init()},q.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},q.$utils=function(){return k},q.isValid=function(){return this.$d.toString()!==y},q.isSame=function(j,ie){var J=O(j);return this.startOf(ie)<=J&&J<=this.endOf(ie)},q.isAfter=function(j,ie){return O(j)0,T<=E.r||!E.r){T<=1&&x>0&&(E=b[x-1]);var A=m[E.l];d&&(T=d(""+T)),y=typeof A=="string"?A.replace("%d",T):A(T,c,E.l,_);break}}if(c)return y;var D=_?m.future:m.past;return typeof D=="function"?D(y):D.replace("%s",y)},o.to=function(u,c){return s(u,c,this,!0)},o.from=function(u,c){return s(u,c,this)};var l=function(u){return u.$u?i.utc():i()};o.toNow=function(u){return this.to(l(this),u)},o.fromNow=function(u){return this.from(l(this),u)}}})}(ug)),ug.exports}var n8=t8();const r8=e0(n8);/** +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var tv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function t0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lg={exports:{}},Kz=lg.exports,sA;function TP(){return sA||(sA=1,function(e,t){(function(n,r){e.exports=r()})(Kz,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",f="month",p="quarter",d="year",g="date",y="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,b={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(W){var q=["th","st","nd","rd"],j=W%100;return"["+W+(q[(j-20)%10]||q[j]||q[0])+"]"}},S=function(W,q,j){var ie=String(W);return!ie||ie.length>=q?W:""+Array(q+1-ie.length).join(j)+W},x={s:S,z:function(W){var q=-W.utcOffset(),j=Math.abs(q),ie=Math.floor(j/60),J=j%60;return(q<=0?"+":"-")+S(ie,2,"0")+":"+S(J,2,"0")},m:function W(q,j){if(q.date()1)return W(ye[0])}else{var we=q.name;T[we]=q,J=we}return!ie&&J&&(E=J),J||!ie&&E},O=function(W,q){if(D(W))return W.clone();var j=typeof q=="object"?q:{};return j.date=W,j.args=arguments,new H(j)},k=x;k.l=P,k.i=D,k.w=function(W,q){return O(W,{locale:q.$L,utc:q.$u,x:q.$x,$offset:q.$offset})};var H=function(){function W(j){this.$L=P(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[A]=!0}var q=W.prototype;return q.parse=function(j){this.$d=function(ie){var J=ie.date,ce=ie.utc;if(J===null)return new Date(NaN);if(k.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var ye=J.match(_);if(ye){var we=ye[2]-1||0,Ne=(ye[7]||"0").substring(0,3);return ce?new Date(Date.UTC(ye[1],we,ye[3]||1,ye[4]||0,ye[5]||0,ye[6]||0,Ne)):new Date(ye[1],we,ye[3]||1,ye[4]||0,ye[5]||0,ye[6]||0,Ne)}}return new Date(J)}(j),this.init()},q.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},q.$utils=function(){return k},q.isValid=function(){return this.$d.toString()!==y},q.isSame=function(j,ie){var J=O(j);return this.startOf(ie)<=J&&J<=this.endOf(ie)},q.isAfter=function(j,ie){return O(j)0,T<=E.r||!E.r){T<=1&&x>0&&(E=b[x-1]);var A=m[E.l];d&&(T=d(""+T)),y=typeof A=="string"?A.replace("%d",T):A(T,c,E.l,_);break}}if(c)return y;var D=_?m.future:m.past;return typeof D=="function"?D(y):D.replace("%s",y)},o.to=function(u,c){return s(u,c,this,!0)},o.from=function(u,c){return s(u,c,this)};var l=function(u){return u.$u?i.utc():i()};o.toNow=function(u){return this.to(l(this),u)},o.fromNow=function(u){return this.from(l(this),u)}}})}(cg)),cg.exports}var n8=t8();const r8=t0(n8);/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function PS(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const cn={},_c=[],jo=()=>{},i8=()=>!1,t0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),LS=e=>e.startsWith("onUpdate:"),rr=Object.assign,OS=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},o8=Object.prototype.hasOwnProperty,Xt=(e,t)=>o8.call(e,t),Je=Array.isArray,wc=e=>Vd(e)==="[object Map]",ef=e=>Vd(e)==="[object Set]",fA=e=>Vd(e)==="[object Date]",pt=e=>typeof e=="function",Hn=e=>typeof e=="string",So=e=>typeof e=="symbol",dn=e=>e!==null&&typeof e=="object",AP=e=>(dn(e)||pt(e))&&pt(e.then)&&pt(e.catch),MP=Object.prototype.toString,Vd=e=>MP.call(e),a8=e=>Vd(e).slice(8,-1),RP=e=>Vd(e)==="[object Object]",kS=e=>Hn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ah=PS(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),n0=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},s8=/-(\w)/g,Qi=n0(e=>e.replace(s8,(t,n)=>n?n.toUpperCase():"")),l8=/\B([A-Z])/g,Qs=n0(e=>e.replace(l8,"-$1").toLowerCase()),r0=n0(e=>e.charAt(0).toUpperCase()+e.slice(1)),b_=n0(e=>e?`on${r0(e)}`:""),Bs=(e,t)=>!Object.is(e,t),cg=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Jg=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hA;const i0=()=>hA||(hA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function vo(e){if(Je(e)){const t={};for(let n=0;n{if(n){const r=n.split(c8);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ot(e){let t="";if(Hn(e))t=e;else if(Je(e))for(let n=0;nHd(n,t))}const PP=e=>!!(e&&e.__v_isRef===!0),de=e=>Hn(e)?e:e==null?"":Je(e)||dn(e)&&(e.toString===MP||!pt(e.toString))?PP(e)?de(e.value):JSON.stringify(e,LP,2):String(e),LP=(e,t)=>PP(t)?LP(e,t.value):wc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[S_(r,o)+" =>"]=i,n),{})}:ef(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>S_(n))}:So(t)?S_(t):dn(t)&&!Je(t)&&!RP(t)?String(t):t,S_=(e,t="")=>{var n;return So(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function PS(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const cn={},_c=[],jo=()=>{},i8=()=>!1,n0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),LS=e=>e.startsWith("onUpdate:"),rr=Object.assign,OS=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},o8=Object.prototype.hasOwnProperty,Xt=(e,t)=>o8.call(e,t),Je=Array.isArray,wc=e=>Hd(e)==="[object Map]",ef=e=>Hd(e)==="[object Set]",cA=e=>Hd(e)==="[object Date]",pt=e=>typeof e=="function",Hn=e=>typeof e=="string",So=e=>typeof e=="symbol",dn=e=>e!==null&&typeof e=="object",EP=e=>(dn(e)||pt(e))&&pt(e.then)&&pt(e.catch),AP=Object.prototype.toString,Hd=e=>AP.call(e),a8=e=>Hd(e).slice(8,-1),MP=e=>Hd(e)==="[object Object]",kS=e=>Hn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ah=PS(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),r0=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},s8=/-(\w)/g,Zi=r0(e=>e.replace(s8,(t,n)=>n?n.toUpperCase():"")),l8=/\B([A-Z])/g,Qs=r0(e=>e.replace(l8,"-$1").toLowerCase()),i0=r0(e=>e.charAt(0).toUpperCase()+e.slice(1)),b_=r0(e=>e?`on${i0(e)}`:""),Bs=(e,t)=>!Object.is(e,t),fg=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},em=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fA;const o0=()=>fA||(fA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function vo(e){if(Je(e)){const t={};for(let n=0;n{if(n){const r=n.split(c8);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ot(e){let t="";if(Hn(e))t=e;else if(Je(e))for(let n=0;nUd(n,t))}const IP=e=>!!(e&&e.__v_isRef===!0),de=e=>Hn(e)?e:e==null?"":Je(e)||dn(e)&&(e.toString===AP||!pt(e.toString))?IP(e)?de(e.value):JSON.stringify(e,PP,2):String(e),PP=(e,t)=>IP(t)?PP(e,t.value):wc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[S_(r,o)+" =>"]=i,n),{})}:ef(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>S_(n))}:So(t)?S_(t):dn(t)&&!Je(t)&&!MP(t)?String(t):t,S_=(e,t="")=>{var n;return So(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Ir;class OP{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ir,!t&&Ir&&(this.index=(Ir.scopes||(Ir.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(Rh){let t=Rh;for(Rh=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Mh;){let t=Mh;for(Mh=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function VP(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function HP(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),BS(r),m8(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function kw(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(UP(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function UP(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===cd))return;e.globalVersion=cd;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!kw(e)){e.flags&=-3;return}const n=gn,r=_o;gn=e,_o=!0;try{VP(e);const i=e.fn(e._value);(t.version===0||Bs(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{gn=n,_o=r,HP(e),e.flags&=-3}}function BS(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)BS(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function m8(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let _o=!0;const zP=[];function Js(){zP.push(_o),_o=!1}function el(){const e=zP.pop();_o=e===void 0?!0:e}function dA(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=gn;gn=void 0;try{t()}finally{gn=n}}}let cd=0;class y8{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class o0{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(!gn||!_o||gn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==gn)n=this.activeLink=new y8(gn,this),gn.deps?(n.prevDep=gn.depsTail,gn.depsTail.nextDep=n,gn.depsTail=n):gn.deps=gn.depsTail=n,GP(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=gn.depsTail,n.nextDep=void 0,gn.depsTail.nextDep=n,gn.depsTail=n,gn.deps===n&&(gn.deps=r)}return n}trigger(t){this.version++,cd++,this.notify(t)}notify(t){FS();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{$S()}}}function GP(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)GP(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const em=new WeakMap,ou=Symbol(""),Nw=Symbol(""),fd=Symbol("");function _r(e,t,n){if(_o&&gn){let r=em.get(e);r||em.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new o0),i.map=r,i.key=n),i.track()}}function Ma(e,t,n,r,i,o){const a=em.get(e);if(!a){cd++;return}const s=l=>{l&&l.trigger()};if(FS(),t==="clear")a.forEach(s);else{const l=Je(e),u=l&&kS(n);if(l&&n==="length"){const c=Number(r);a.forEach((f,p)=>{(p==="length"||p===fd||!So(p)&&p>=c)&&s(f)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(fd)),t){case"add":l?u&&s(a.get("length")):(s(a.get(ou)),wc(e)&&s(a.get(Nw)));break;case"delete":l||(s(a.get(ou)),wc(e)&&s(a.get(Nw)));break;case"set":wc(e)&&s(a.get(ou));break}}$S()}function _8(e,t){const n=em.get(e);return n&&n.get(t)}function Uu(e){const t=zt(e);return t===e?t:(_r(t,"iterate",fd),Xi(e)?t:t.map(wr))}function a0(e){return _r(e=zt(e),"iterate",fd),e}const w8={__proto__:null,[Symbol.iterator](){return C_(this,Symbol.iterator,wr)},concat(...e){return Uu(this).concat(...e.map(t=>Je(t)?Uu(t):t))},entries(){return C_(this,"entries",e=>(e[1]=wr(e[1]),e))},every(e,t){return ma(this,"every",e,t,void 0,arguments)},filter(e,t){return ma(this,"filter",e,t,n=>n.map(wr),arguments)},find(e,t){return ma(this,"find",e,t,wr,arguments)},findIndex(e,t){return ma(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ma(this,"findLast",e,t,wr,arguments)},findLastIndex(e,t){return ma(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ma(this,"forEach",e,t,void 0,arguments)},includes(...e){return T_(this,"includes",e)},indexOf(...e){return T_(this,"indexOf",e)},join(e){return Uu(this).join(e)},lastIndexOf(...e){return T_(this,"lastIndexOf",e)},map(e,t){return ma(this,"map",e,t,void 0,arguments)},pop(){return If(this,"pop")},push(...e){return If(this,"push",e)},reduce(e,...t){return pA(this,"reduce",e,t)},reduceRight(e,...t){return pA(this,"reduceRight",e,t)},shift(){return If(this,"shift")},some(e,t){return ma(this,"some",e,t,void 0,arguments)},splice(...e){return If(this,"splice",e)},toReversed(){return Uu(this).toReversed()},toSorted(e){return Uu(this).toSorted(e)},toSpliced(...e){return Uu(this).toSpliced(...e)},unshift(...e){return If(this,"unshift",e)},values(){return C_(this,"values",wr)}};function C_(e,t,n){const r=a0(e),i=r[t]();return r!==e&&!Xi(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const b8=Array.prototype;function ma(e,t,n,r,i,o){const a=a0(e),s=a!==e&&!Xi(e),l=a[t];if(l!==b8[t]){const f=l.apply(e,o);return s?wr(f):f}let u=n;a!==e&&(s?u=function(f,p){return n.call(this,wr(f),p,e)}:n.length>2&&(u=function(f,p){return n.call(this,f,p,e)}));const c=l.call(a,u,r);return s&&i?i(c):c}function pA(e,t,n,r){const i=a0(e);let o=n;return i!==e&&(Xi(e)?n.length>3&&(o=function(a,s,l){return n.call(this,a,s,l,e)}):o=function(a,s,l){return n.call(this,a,wr(s),l,e)}),i[t](o,...r)}function T_(e,t,n){const r=zt(e);_r(r,"iterate",fd);const i=r[t](...n);return(i===-1||i===!1)&&US(n[0])?(n[0]=zt(n[0]),r[t](...n)):i}function If(e,t,n=[]){Js(),FS();const r=zt(e)[t].apply(e,n);return $S(),el(),r}const S8=PS("__proto__,__v_isRef,__isVue"),WP=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(So));function x8(e){So(e)||(e=String(e));const t=zt(this);return _r(t,"has",e),t.hasOwnProperty(e)}class YP{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(i?o?L8:KP:o?XP:qP).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Je(t);if(!i){let l;if(a&&(l=w8[n]))return l;if(n==="hasOwnProperty")return x8}const s=Reflect.get(t,n,Ze(t)?t:r);return(So(n)?WP.has(n):S8(n))||(i||_r(t,"get",n),o)?s:Ze(s)?a&&kS(n)?s:s.value:dn(s)?i?s0(s):xo(s):s}}class jP extends YP{constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];if(!this._isShallow){const l=du(o);if(!Xi(r)&&!du(r)&&(o=zt(o),r=zt(r)),!Je(t)&&Ze(o)&&!Ze(r))return l?!1:(o.value=r,!0)}const a=Je(t)&&kS(n)?Number(n)e,tv=e=>Reflect.getPrototypeOf(e);function M8(e,t,n){return function(...r){const i=this.__v_raw,o=zt(i),a=wc(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=i[e](...r),c=n?Fw:t?$w:wr;return!t&&_r(o,"iterate",l?Nw:ou),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:s?[c(f[0]),c(f[1])]:c(f),done:p}},[Symbol.iterator](){return this}}}}function nv(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function R8(e,t){const n={get(i){const o=this.__v_raw,a=zt(o),s=zt(i);e||(Bs(i,s)&&_r(a,"get",i),_r(a,"get",s));const{has:l}=tv(a),u=t?Fw:e?$w:wr;if(l.call(a,i))return u(o.get(i));if(l.call(a,s))return u(o.get(s));o!==a&&o.get(i)},get size(){const i=this.__v_raw;return!e&&_r(zt(i),"iterate",ou),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,a=zt(o),s=zt(i);return e||(Bs(i,s)&&_r(a,"has",i),_r(a,"has",s)),i===s?o.has(i):o.has(i)||o.has(s)},forEach(i,o){const a=this,s=a.__v_raw,l=zt(s),u=t?Fw:e?$w:wr;return!e&&_r(l,"iterate",ou),s.forEach((c,f)=>i.call(o,u(c),u(f),a))}};return rr(n,e?{add:nv("add"),set:nv("set"),delete:nv("delete"),clear:nv("clear")}:{add(i){!t&&!Xi(i)&&!du(i)&&(i=zt(i));const o=zt(this);return tv(o).has.call(o,i)||(o.add(i),Ma(o,"add",i,i)),this},set(i,o){!t&&!Xi(o)&&!du(o)&&(o=zt(o));const a=zt(this),{has:s,get:l}=tv(a);let u=s.call(a,i);u||(i=zt(i),u=s.call(a,i));const c=l.call(a,i);return a.set(i,o),u?Bs(o,c)&&Ma(a,"set",i,o):Ma(a,"add",i,o),this},delete(i){const o=zt(this),{has:a,get:s}=tv(o);let l=a.call(o,i);l||(i=zt(i),l=a.call(o,i)),s&&s.call(o,i);const u=o.delete(i);return l&&Ma(o,"delete",i,void 0),u},clear(){const i=zt(this),o=i.size!==0,a=i.clear();return o&&Ma(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=M8(i,e,t)}),n}function VS(e,t){const n=R8(e,t);return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Xt(n,i)&&i in r?n:r,i,o)}const D8={get:VS(!1,!1)},I8={get:VS(!1,!0)},P8={get:VS(!0,!1)};const qP=new WeakMap,XP=new WeakMap,KP=new WeakMap,L8=new WeakMap;function O8(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function k8(e){return e.__v_skip||!Object.isExtensible(e)?0:O8(a8(e))}function xo(e){return du(e)?e:HS(e,!1,T8,D8,qP)}function ZP(e){return HS(e,!1,A8,I8,XP)}function s0(e){return HS(e,!0,E8,P8,KP)}function HS(e,t,n,r,i){if(!dn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=k8(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function bc(e){return du(e)?bc(e.__v_raw):!!(e&&e.__v_isReactive)}function du(e){return!!(e&&e.__v_isReadonly)}function Xi(e){return!!(e&&e.__v_isShallow)}function US(e){return e?!!e.__v_raw:!1}function zt(e){const t=e&&e.__v_raw;return t?zt(t):e}function N8(e){return!Xt(e,"__v_skip")&&Object.isExtensible(e)&&DP(e,"__v_skip",!0),e}const wr=e=>dn(e)?xo(e):e,$w=e=>dn(e)?s0(e):e;function Ze(e){return e?e.__v_isRef===!0:!1}function Ie(e){return QP(e,!1)}function Ud(e){return QP(e,!0)}function QP(e,t){return Ze(e)?e:new F8(e,t)}class F8{constructor(t,n){this.dep=new o0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:zt(t),this._value=n?t:wr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Xi(t)||du(t);t=r?t:zt(t),Bs(t,n)&&(this._rawValue=t,this._value=r?t:wr(t),this.dep.trigger())}}function vA(e){e.dep&&e.dep.trigger()}function $(e){return Ze(e)?e.value:e}const $8={get:(e,t,n)=>t==="__v_raw"?e:$(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Ze(i)&&!Ze(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function JP(e){return bc(e)?e:new Proxy(e,$8)}class B8{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new o0,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function V8(e){return new B8(e)}function H8(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=eL(e,n);return t}class U8{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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 _8(zt(this._object),this._key)}}class z8{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 G8(e,t,n){return Ze(e)?e:pt(e)?new z8(e):dn(e)&&arguments.length>1?eL(e,t,n):Ie(e)}function eL(e,t,n){const r=e[t];return Ze(r)?r:new U8(e,t,n)}class W8{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new o0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cd-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&gn!==this)return BP(this,!0),!0}get value(){const t=this.dep.track();return UP(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Y8(e,t,n=!1){let r,i;return pt(e)?r=e:(r=e.get,i=e.set),new W8(r,i,n)}const rv={},tm=new WeakMap;let Ul;function j8(e,t=!1,n=Ul){if(n){let r=tm.get(n);r||tm.set(n,r=[]),r.push(e)}}function q8(e,t,n=cn){const{immediate:r,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=n,u=x=>i?x:Xi(x)||i===!1||i===0?Ra(x,1):Ra(x);let c,f,p,d,g=!1,y=!1;if(Ze(e)?(f=()=>e.value,g=Xi(e)):bc(e)?(f=()=>u(e),g=!0):Je(e)?(y=!0,g=e.some(x=>bc(x)||Xi(x)),f=()=>e.map(x=>{if(Ze(x))return x.value;if(bc(x))return u(x);if(pt(x))return l?l(x,2):x()})):pt(e)?t?f=l?()=>l(e,2):e:f=()=>{if(p){Js();try{p()}finally{el()}}const x=Ul;Ul=c;try{return l?l(e,3,[d]):e(d)}finally{Ul=x}}:f=jo,t&&i){const x=f,E=i===!0?1/0:i;f=()=>Ra(x(),E)}const _=kP(),m=()=>{c.stop(),_&&_.active&&OS(_.effects,c)};if(o&&t){const x=t;t=(...E)=>{x(...E),m()}}let b=y?new Array(e.length).fill(rv):rv;const S=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(t){const E=c.run();if(i||g||(y?E.some((T,A)=>Bs(T,b[A])):Bs(E,b))){p&&p();const T=Ul;Ul=c;try{const A=[E,b===rv?void 0:y&&b[0]===rv?[]:b,d];l?l(t,3,A):t(...A),b=E}finally{Ul=T}}}else c.run()};return s&&s(S),c=new FP(f),c.scheduler=a?()=>a(S,!1):S,d=x=>j8(x,!1,c),p=c.onStop=()=>{const x=tm.get(c);if(x){if(l)l(x,4);else for(const E of x)E();tm.delete(c)}},t?r?S(!0):b=c.run():a?a(S.bind(null,!0),!0):c.run(),m.pause=c.pause.bind(c),m.resume=c.resume.bind(c),m.stop=m,m}function Ra(e,t=1/0,n){if(t<=0||!dn(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ze(e))Ra(e.value,t,n);else if(Je(e))for(let r=0;r{Ra(r,t,n)});else if(RP(e)){for(const r in e)Ra(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ra(e[r],t,n)}return e}/** +**/let Ir;class LP{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ir,!t&&Ir&&(this.index=(Ir.scopes||(Ir.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(Rh){let t=Rh;for(Rh=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Mh;){let t=Mh;for(Mh=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function BP(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function VP(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),BS(r),m8(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function kw(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(HP(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function HP(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===cd))return;e.globalVersion=cd;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!kw(e)){e.flags&=-3;return}const n=gn,r=_o;gn=e,_o=!0;try{BP(e);const i=e.fn(e._value);(t.version===0||Bs(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{gn=n,_o=r,VP(e),e.flags&=-3}}function BS(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)BS(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function m8(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let _o=!0;const UP=[];function Js(){UP.push(_o),_o=!1}function el(){const e=UP.pop();_o=e===void 0?!0:e}function hA(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=gn;gn=void 0;try{t()}finally{gn=n}}}let cd=0;class y8{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class a0{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(!gn||!_o||gn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==gn)n=this.activeLink=new y8(gn,this),gn.deps?(n.prevDep=gn.depsTail,gn.depsTail.nextDep=n,gn.depsTail=n):gn.deps=gn.depsTail=n,zP(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=gn.depsTail,n.nextDep=void 0,gn.depsTail.nextDep=n,gn.depsTail=n,gn.deps===n&&(gn.deps=r)}return n}trigger(t){this.version++,cd++,this.notify(t)}notify(t){FS();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{$S()}}}function zP(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zP(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const tm=new WeakMap,ou=Symbol(""),Nw=Symbol(""),fd=Symbol("");function _r(e,t,n){if(_o&&gn){let r=tm.get(e);r||tm.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new a0),i.map=r,i.key=n),i.track()}}function Ma(e,t,n,r,i,o){const a=tm.get(e);if(!a){cd++;return}const s=l=>{l&&l.trigger()};if(FS(),t==="clear")a.forEach(s);else{const l=Je(e),u=l&&kS(n);if(l&&n==="length"){const c=Number(r);a.forEach((f,p)=>{(p==="length"||p===fd||!So(p)&&p>=c)&&s(f)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(fd)),t){case"add":l?u&&s(a.get("length")):(s(a.get(ou)),wc(e)&&s(a.get(Nw)));break;case"delete":l||(s(a.get(ou)),wc(e)&&s(a.get(Nw)));break;case"set":wc(e)&&s(a.get(ou));break}}$S()}function _8(e,t){const n=tm.get(e);return n&&n.get(t)}function Uu(e){const t=zt(e);return t===e?t:(_r(t,"iterate",fd),qi(e)?t:t.map(wr))}function s0(e){return _r(e=zt(e),"iterate",fd),e}const w8={__proto__:null,[Symbol.iterator](){return C_(this,Symbol.iterator,wr)},concat(...e){return Uu(this).concat(...e.map(t=>Je(t)?Uu(t):t))},entries(){return C_(this,"entries",e=>(e[1]=wr(e[1]),e))},every(e,t){return ma(this,"every",e,t,void 0,arguments)},filter(e,t){return ma(this,"filter",e,t,n=>n.map(wr),arguments)},find(e,t){return ma(this,"find",e,t,wr,arguments)},findIndex(e,t){return ma(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ma(this,"findLast",e,t,wr,arguments)},findLastIndex(e,t){return ma(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ma(this,"forEach",e,t,void 0,arguments)},includes(...e){return T_(this,"includes",e)},indexOf(...e){return T_(this,"indexOf",e)},join(e){return Uu(this).join(e)},lastIndexOf(...e){return T_(this,"lastIndexOf",e)},map(e,t){return ma(this,"map",e,t,void 0,arguments)},pop(){return If(this,"pop")},push(...e){return If(this,"push",e)},reduce(e,...t){return dA(this,"reduce",e,t)},reduceRight(e,...t){return dA(this,"reduceRight",e,t)},shift(){return If(this,"shift")},some(e,t){return ma(this,"some",e,t,void 0,arguments)},splice(...e){return If(this,"splice",e)},toReversed(){return Uu(this).toReversed()},toSorted(e){return Uu(this).toSorted(e)},toSpliced(...e){return Uu(this).toSpliced(...e)},unshift(...e){return If(this,"unshift",e)},values(){return C_(this,"values",wr)}};function C_(e,t,n){const r=s0(e),i=r[t]();return r!==e&&!qi(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const b8=Array.prototype;function ma(e,t,n,r,i,o){const a=s0(e),s=a!==e&&!qi(e),l=a[t];if(l!==b8[t]){const f=l.apply(e,o);return s?wr(f):f}let u=n;a!==e&&(s?u=function(f,p){return n.call(this,wr(f),p,e)}:n.length>2&&(u=function(f,p){return n.call(this,f,p,e)}));const c=l.call(a,u,r);return s&&i?i(c):c}function dA(e,t,n,r){const i=s0(e);let o=n;return i!==e&&(qi(e)?n.length>3&&(o=function(a,s,l){return n.call(this,a,s,l,e)}):o=function(a,s,l){return n.call(this,a,wr(s),l,e)}),i[t](o,...r)}function T_(e,t,n){const r=zt(e);_r(r,"iterate",fd);const i=r[t](...n);return(i===-1||i===!1)&&US(n[0])?(n[0]=zt(n[0]),r[t](...n)):i}function If(e,t,n=[]){Js(),FS();const r=zt(e)[t].apply(e,n);return $S(),el(),r}const S8=PS("__proto__,__v_isRef,__isVue"),GP=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(So));function x8(e){So(e)||(e=String(e));const t=zt(this);return _r(t,"has",e),t.hasOwnProperty(e)}class WP{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(i?o?L8:XP:o?qP:jP).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Je(t);if(!i){let l;if(a&&(l=w8[n]))return l;if(n==="hasOwnProperty")return x8}const s=Reflect.get(t,n,Qe(t)?t:r);return(So(n)?GP.has(n):S8(n))||(i||_r(t,"get",n),o)?s:Qe(s)?a&&kS(n)?s:s.value:dn(s)?i?l0(s):xo(s):s}}class YP extends WP{constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];if(!this._isShallow){const l=du(o);if(!qi(r)&&!du(r)&&(o=zt(o),r=zt(r)),!Je(t)&&Qe(o)&&!Qe(r))return l?!1:(o.value=r,!0)}const a=Je(t)&&kS(n)?Number(n)e,nv=e=>Reflect.getPrototypeOf(e);function M8(e,t,n){return function(...r){const i=this.__v_raw,o=zt(i),a=wc(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=i[e](...r),c=n?Fw:t?$w:wr;return!t&&_r(o,"iterate",l?Nw:ou),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:s?[c(f[0]),c(f[1])]:c(f),done:p}},[Symbol.iterator](){return this}}}}function rv(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function R8(e,t){const n={get(i){const o=this.__v_raw,a=zt(o),s=zt(i);e||(Bs(i,s)&&_r(a,"get",i),_r(a,"get",s));const{has:l}=nv(a),u=t?Fw:e?$w:wr;if(l.call(a,i))return u(o.get(i));if(l.call(a,s))return u(o.get(s));o!==a&&o.get(i)},get size(){const i=this.__v_raw;return!e&&_r(zt(i),"iterate",ou),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,a=zt(o),s=zt(i);return e||(Bs(i,s)&&_r(a,"has",i),_r(a,"has",s)),i===s?o.has(i):o.has(i)||o.has(s)},forEach(i,o){const a=this,s=a.__v_raw,l=zt(s),u=t?Fw:e?$w:wr;return!e&&_r(l,"iterate",ou),s.forEach((c,f)=>i.call(o,u(c),u(f),a))}};return rr(n,e?{add:rv("add"),set:rv("set"),delete:rv("delete"),clear:rv("clear")}:{add(i){!t&&!qi(i)&&!du(i)&&(i=zt(i));const o=zt(this);return nv(o).has.call(o,i)||(o.add(i),Ma(o,"add",i,i)),this},set(i,o){!t&&!qi(o)&&!du(o)&&(o=zt(o));const a=zt(this),{has:s,get:l}=nv(a);let u=s.call(a,i);u||(i=zt(i),u=s.call(a,i));const c=l.call(a,i);return a.set(i,o),u?Bs(o,c)&&Ma(a,"set",i,o):Ma(a,"add",i,o),this},delete(i){const o=zt(this),{has:a,get:s}=nv(o);let l=a.call(o,i);l||(i=zt(i),l=a.call(o,i)),s&&s.call(o,i);const u=o.delete(i);return l&&Ma(o,"delete",i,void 0),u},clear(){const i=zt(this),o=i.size!==0,a=i.clear();return o&&Ma(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=M8(i,e,t)}),n}function VS(e,t){const n=R8(e,t);return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Xt(n,i)&&i in r?n:r,i,o)}const D8={get:VS(!1,!1)},I8={get:VS(!1,!0)},P8={get:VS(!0,!1)};const jP=new WeakMap,qP=new WeakMap,XP=new WeakMap,L8=new WeakMap;function O8(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function k8(e){return e.__v_skip||!Object.isExtensible(e)?0:O8(a8(e))}function xo(e){return du(e)?e:HS(e,!1,T8,D8,jP)}function KP(e){return HS(e,!1,A8,I8,qP)}function l0(e){return HS(e,!0,E8,P8,XP)}function HS(e,t,n,r,i){if(!dn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=k8(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function bc(e){return du(e)?bc(e.__v_raw):!!(e&&e.__v_isReactive)}function du(e){return!!(e&&e.__v_isReadonly)}function qi(e){return!!(e&&e.__v_isShallow)}function US(e){return e?!!e.__v_raw:!1}function zt(e){const t=e&&e.__v_raw;return t?zt(t):e}function N8(e){return!Xt(e,"__v_skip")&&Object.isExtensible(e)&&RP(e,"__v_skip",!0),e}const wr=e=>dn(e)?xo(e):e,$w=e=>dn(e)?l0(e):e;function Qe(e){return e?e.__v_isRef===!0:!1}function Ie(e){return ZP(e,!1)}function zd(e){return ZP(e,!0)}function ZP(e,t){return Qe(e)?e:new F8(e,t)}class F8{constructor(t,n){this.dep=new a0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:zt(t),this._value=n?t:wr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||qi(t)||du(t);t=r?t:zt(t),Bs(t,n)&&(this._rawValue=t,this._value=r?t:wr(t),this.dep.trigger())}}function pA(e){e.dep&&e.dep.trigger()}function $(e){return Qe(e)?e.value:e}const $8={get:(e,t,n)=>t==="__v_raw"?e:$(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Qe(i)&&!Qe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function QP(e){return bc(e)?e:new Proxy(e,$8)}class B8{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new a0,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function V8(e){return new B8(e)}function H8(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=JP(e,n);return t}class U8{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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 _8(zt(this._object),this._key)}}class z8{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 G8(e,t,n){return Qe(e)?e:pt(e)?new z8(e):dn(e)&&arguments.length>1?JP(e,t,n):Ie(e)}function JP(e,t,n){const r=e[t];return Qe(r)?r:new U8(e,t,n)}class W8{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new a0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cd-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&gn!==this)return $P(this,!0),!0}get value(){const t=this.dep.track();return HP(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Y8(e,t,n=!1){let r,i;return pt(e)?r=e:(r=e.get,i=e.set),new W8(r,i,n)}const iv={},nm=new WeakMap;let Ul;function j8(e,t=!1,n=Ul){if(n){let r=nm.get(n);r||nm.set(n,r=[]),r.push(e)}}function q8(e,t,n=cn){const{immediate:r,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=n,u=x=>i?x:qi(x)||i===!1||i===0?Ra(x,1):Ra(x);let c,f,p,d,g=!1,y=!1;if(Qe(e)?(f=()=>e.value,g=qi(e)):bc(e)?(f=()=>u(e),g=!0):Je(e)?(y=!0,g=e.some(x=>bc(x)||qi(x)),f=()=>e.map(x=>{if(Qe(x))return x.value;if(bc(x))return u(x);if(pt(x))return l?l(x,2):x()})):pt(e)?t?f=l?()=>l(e,2):e:f=()=>{if(p){Js();try{p()}finally{el()}}const x=Ul;Ul=c;try{return l?l(e,3,[d]):e(d)}finally{Ul=x}}:f=jo,t&&i){const x=f,E=i===!0?1/0:i;f=()=>Ra(x(),E)}const _=OP(),m=()=>{c.stop(),_&&_.active&&OS(_.effects,c)};if(o&&t){const x=t;t=(...E)=>{x(...E),m()}}let b=y?new Array(e.length).fill(iv):iv;const S=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(t){const E=c.run();if(i||g||(y?E.some((T,A)=>Bs(T,b[A])):Bs(E,b))){p&&p();const T=Ul;Ul=c;try{const A=[E,b===iv?void 0:y&&b[0]===iv?[]:b,d];l?l(t,3,A):t(...A),b=E}finally{Ul=T}}}else c.run()};return s&&s(S),c=new NP(f),c.scheduler=a?()=>a(S,!1):S,d=x=>j8(x,!1,c),p=c.onStop=()=>{const x=nm.get(c);if(x){if(l)l(x,4);else for(const E of x)E();nm.delete(c)}},t?r?S(!0):b=c.run():a?a(S.bind(null,!0),!0):c.run(),m.pause=c.pause.bind(c),m.resume=c.resume.bind(c),m.stop=m,m}function Ra(e,t=1/0,n){if(t<=0||!dn(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Qe(e))Ra(e.value,t,n);else if(Je(e))for(let r=0;r{Ra(r,t,n)});else if(MP(e)){for(const r in e)Ra(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ra(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function zd(e,t,n,r){try{return r?e(...r):e()}catch(i){l0(i,t,n)}}function Qo(e,t,n,r){if(pt(e)){const i=zd(e,t,n,r);return i&&AP(i)&&i.catch(o=>{l0(o,t,n)}),i}if(Je(e)){const i=[];for(let o=0;o>>1,i=Lr[r],o=hd(i);o=hd(n)?Lr.push(e):Lr.splice(K8(t),0,e),e.flags|=1,nL()}}function nL(){nm||(nm=tL.then(iL))}function Z8(e){Je(e)?Sc.push(...e):Ts&&e.id===-1?Ts.splice(ac+1,0,e):e.flags&1||(Sc.push(e),e.flags|=1),nL()}function gA(e,t,n=Bo+1){for(;nhd(n)-hd(r));if(Sc.length=0,Ts){Ts.push(...t);return}for(Ts=t,ac=0;ace.id==null?e.flags&2?-1:1/0:e.id;function iL(e){try{for(Bo=0;Bo{r._d&&TA(-1);const o=rm(t);let a;try{a=e(...i)}finally{rm(o),r._d&&TA(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function At(e,t){if(nr===null)return e;const n=f0(nr),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport;function GS(e,t){e.shapeFlag&6&&e.component?(e.transition=t,GS(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 lt(e,t){return pt(e)?rr({name:e.name},t,{setup:e}):e}function aL(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function im(e,t,n,r,i=!1){if(Je(e)){e.forEach((g,y)=>im(g,t&&(Je(t)?t[y]:t),n,r,i));return}if(xc(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&im(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?f0(r.component):r.el,a=i?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===cn?s.refs={}:s.refs,f=s.setupState,p=zt(f),d=f===cn?()=>!1:g=>Xt(p,g);if(u!=null&&u!==l&&(Hn(u)?(c[u]=null,d(u)&&(f[u]=null)):Ze(u)&&(u.value=null)),pt(l))zd(l,s,12,[a,c]);else{const g=Hn(l),y=Ze(l);if(g||y){const _=()=>{if(e.f){const m=g?d(l)?f[l]:c[l]:l.value;i?Je(m)&&OS(m,o):Je(m)?m.includes(o)||m.push(o):g?(c[l]=[o],d(l)&&(f[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else g?(c[l]=a,d(l)&&(f[l]=a)):y&&(l.value=a,e.k&&(c[e.k]=a))};a?(_.id=-1,pi(_,n)):_()}}}i0().requestIdleCallback;i0().cancelIdleCallback;const xc=e=>!!e.type.__asyncLoader,sL=e=>e.type.__isKeepAlive;function eG(e,t){lL(e,"a",t)}function tG(e,t){lL(e,"da",t)}function lL(e,t,n=ur){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(u0(t,r,n),n){let i=n.parent;for(;i&&i.parent;)sL(i.parent.vnode)&&nG(r,t,n,i),i=i.parent}}function nG(e,t,n,r){const i=u0(t,e,r,!0);Gd(()=>{OS(r[t],i)},n)}function u0(e,t,n=ur,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Js();const s=Yd(n),l=Qo(t,n,e,a);return s(),el(),l});return r?i.unshift(o):i.push(o),o}}const Xa=e=>(t,n=ur)=>{(!vd||e==="sp")&&u0(e,(...r)=>t(...r),n)},rG=Xa("bm"),tl=Xa("m"),iG=Xa("bu"),oG=Xa("u"),uL=Xa("bum"),Gd=Xa("um"),aG=Xa("sp"),sG=Xa("rtg"),lG=Xa("rtc");function uG(e,t=ur){u0("ec",e,t)}const cG="components",cL=Symbol.for("v-ndc");function Ua(e){return Hn(e)?fG(cG,e,!1)||e:e||cL}function fG(e,t,n=!0,r=!1){const i=nr||ur;if(i){const o=i.type;{const s=ZG(o,!1);if(s&&(s===t||s===Qi(t)||s===r0(Qi(t))))return o}const a=mA(i[e]||o[e],t)||mA(i.appContext[e],t);return!a&&r?o:a}}function mA(e,t){return e&&(e[t]||e[Qi(t)]||e[r0(Qi(t))])}function Gt(e,t,n,r){let i;const o=n,a=Je(e);if(a||Hn(e)){const s=a&&bc(e);let l=!1;s&&(l=!Xi(e),e=a0(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(s,l,void 0,o));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;lpd(t)?!(t.type===Ws||t.type===Ye&&!hL(t.children)):!0)?e:null}const Bw=e=>e?IL(e)?f0(e):Bw(e.parent):null,Dh=rr(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=>Bw(e.parent),$root:e=>Bw(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>WS(e),$forceUpdate:e=>e.f||(e.f=()=>{zS(e.update)}),$nextTick:e=>e.n||(e.n=Eo.bind(e.proxy)),$watch:e=>PG.bind(e)}),E_=(e,t)=>e!==cn&&!e.__isScriptSetup&&Xt(e,t),hG={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const d=a[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(E_(r,t))return a[t]=1,r[t];if(i!==cn&&Xt(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&Xt(u,t))return a[t]=3,o[t];if(n!==cn&&Xt(n,t))return a[t]=4,n[t];Vw&&(a[t]=0)}}const c=Dh[t];let f,p;if(c)return t==="$attrs"&&_r(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==cn&&Xt(n,t))return a[t]=4,n[t];if(p=l.config.globalProperties,Xt(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return E_(i,t)?(i[t]=n,!0):r!==cn&&Xt(r,t)?(r[t]=n,!0):Xt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},a){let s;return!!n[a]||e!==cn&&Xt(e,a)||E_(t,a)||(s=o[0])&&Xt(s,a)||Xt(r,a)||Xt(Dh,a)||Xt(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Xt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function yA(e){return Je(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Vw=!0;function dG(e){const t=WS(e),n=e.proxy,r=e.ctx;Vw=!1,t.beforeCreate&&_A(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:p,beforeUpdate:d,updated:g,activated:y,deactivated:_,beforeDestroy:m,beforeUnmount:b,destroyed:S,unmounted:x,render:E,renderTracked:T,renderTriggered:A,errorCaptured:D,serverPrefetch:P,expose:O,inheritAttrs:k,components:H,directives:te,filters:W}=t;if(u&&pG(u,r,null),a)for(const ie in a){const J=a[ie];pt(J)&&(r[ie]=J.bind(n))}if(i){const ie=i.call(n,n);dn(ie)&&(e.data=xo(ie))}if(Vw=!0,o)for(const ie in o){const J=o[ie],ce=pt(J)?J.bind(n,n):pt(J.get)?J.get.bind(n,n):jo,ye=!pt(J)&&pt(J.set)?J.set.bind(n):jo,we=Le({get:ce,set:ye});Object.defineProperty(r,ie,{enumerable:!0,configurable:!0,get:()=>we.value,set:Ne=>we.value=Ne})}if(s)for(const ie in s)dL(s[ie],r,n,ie);if(l){const ie=pt(l)?l.call(n):l;Reflect.ownKeys(ie).forEach(J=>{fg(J,ie[J])})}c&&_A(c,e,"c");function j(ie,J){Je(J)?J.forEach(ce=>ie(ce.bind(n))):J&&ie(J.bind(n))}if(j(rG,f),j(tl,p),j(iG,d),j(oG,g),j(eG,y),j(tG,_),j(uG,D),j(lG,T),j(sG,A),j(uL,b),j(Gd,x),j(aG,P),Je(O))if(O.length){const ie=e.exposed||(e.exposed={});O.forEach(J=>{Object.defineProperty(ie,J,{get:()=>n[J],set:ce=>n[J]=ce})})}else e.exposed||(e.exposed={});E&&e.render===jo&&(e.render=E),k!=null&&(e.inheritAttrs=k),H&&(e.components=H),te&&(e.directives=te),P&&aL(e)}function pG(e,t,n=jo){Je(e)&&(e=Hw(e));for(const r in e){const i=e[r];let o;dn(i)?"default"in i?o=Ki(i.from||r,i.default,!0):o=Ki(i.from||r):o=Ki(i),Ze(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function _A(e,t,n){Qo(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function dL(e,t,n,r){let i=r.includes(".")?EL(n,r):()=>n[r];if(Hn(e)){const o=t[e];pt(o)&&kt(i,o)}else if(pt(e))kt(i,e.bind(n));else if(dn(e))if(Je(e))e.forEach(o=>dL(o,t,n,r));else{const o=pt(e.handler)?e.handler.bind(n):t[e.handler];pt(o)&&kt(i,o,e)}}function WS(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>om(l,u,a,!0)),om(l,t,a)),dn(t)&&o.set(t,l),l}function om(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&om(e,o,n,!0),i&&i.forEach(a=>om(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=vG[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const vG={data:wA,props:bA,emits:bA,methods:fh,computed:fh,beforeCreate:Ar,created:Ar,beforeMount:Ar,mounted:Ar,beforeUpdate:Ar,updated:Ar,beforeDestroy:Ar,beforeUnmount:Ar,destroyed:Ar,unmounted:Ar,activated:Ar,deactivated:Ar,errorCaptured:Ar,serverPrefetch:Ar,components:fh,directives:fh,watch:mG,provide:wA,inject:gG};function wA(e,t){return t?e?function(){return rr(pt(e)?e.call(this,this):e,pt(t)?t.call(this,this):t)}:t:e}function gG(e,t){return fh(Hw(e),Hw(t))}function Hw(e){if(Je(e)){const t={};for(let n=0;n1)return n&&pt(t)?t.call(r&&r.proxy):t}}const vL={},gL=()=>Object.create(vL),mL=e=>Object.getPrototypeOf(e)===vL;function wG(e,t,n,r=!1){const i={},o=gL();e.propsDefaults=Object.create(null),yL(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:ZP(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function bG(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=zt(i),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[p,d]=_L(f,t,!0);rr(a,p),d&&s.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return dn(e)&&r.set(e,_c),_c;if(Je(o))for(let c=0;ce[0]==="_"||e==="$stable",YS=e=>Je(e)?e.map(Vo):[Vo(e)],xG=(e,t,n)=>{if(t._n)return t;const r=Gs((...i)=>YS(t(...i)),n);return r._c=!1,r},bL=(e,t,n)=>{const r=e._ctx;for(const i in e){if(wL(i))continue;const o=e[i];if(pt(o))t[i]=xG(i,o,r);else if(o!=null){const a=YS(o);t[i]=()=>a}}},SL=(e,t)=>{const n=YS(t);e.slots.default=()=>n},xL=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},CG=(e,t,n)=>{const r=e.slots=gL();if(e.vnode.shapeFlag&32){const i=t._;i?(xL(r,t,n),n&&DP(r,"_",i,!0)):bL(t,r)}else t&&SL(e,t)},TG=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=cn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:xL(i,t,n):(o=!t.$stable,bL(t,i)),a=t}else t&&(SL(e,t),a={default:1});if(o)for(const s in i)!wL(s)&&a[s]==null&&delete i[s]},pi=BG;function EG(e){return AG(e)}function AG(e,t){const n=i0();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:p,setScopeId:d=jo,insertStaticContent:g}=e,y=(F,B,ne,me=null,ue=null,L=null,V=void 0,Z=null,oe=!!B.dynamicChildren)=>{if(F===B)return;F&&!Pf(F,B)&&(me=le(F),Ne(F,ue,L,!0),F=null),B.patchFlag===-2&&(oe=!1,B.dynamicChildren=null);const{type:pe,ref:Ce,shapeFlag:Y}=B;switch(pe){case Wd:_(F,B,ne,me);break;case Ws:m(F,B,ne,me);break;case R_:F==null&&b(B,ne,me,V);break;case Ye:H(F,B,ne,me,ue,L,V,Z,oe);break;default:Y&1?E(F,B,ne,me,ue,L,V,Z,oe):Y&6?te(F,B,ne,me,ue,L,V,Z,oe):(Y&64||Y&128)&&pe.process(F,B,ne,me,ue,L,V,Z,oe,xe)}Ce!=null&&ue&&im(Ce,F&&F.ref,L,B||F,!B)},_=(F,B,ne,me)=>{if(F==null)r(B.el=s(B.children),ne,me);else{const ue=B.el=F.el;B.children!==F.children&&u(ue,B.children)}},m=(F,B,ne,me)=>{F==null?r(B.el=l(B.children||""),ne,me):B.el=F.el},b=(F,B,ne,me)=>{[F.el,F.anchor]=g(F.children,B,ne,me,F.el,F.anchor)},S=({el:F,anchor:B},ne,me)=>{let ue;for(;F&&F!==B;)ue=p(F),r(F,ne,me),F=ue;r(B,ne,me)},x=({el:F,anchor:B})=>{let ne;for(;F&&F!==B;)ne=p(F),i(F),F=ne;i(B)},E=(F,B,ne,me,ue,L,V,Z,oe)=>{B.type==="svg"?V="svg":B.type==="math"&&(V="mathml"),F==null?T(B,ne,me,ue,L,V,Z,oe):P(F,B,ue,L,V,Z,oe)},T=(F,B,ne,me,ue,L,V,Z)=>{let oe,pe;const{props:Ce,shapeFlag:Y,transition:re,dirs:Me}=F;if(oe=F.el=a(F.type,L,Ce&&Ce.is,Ce),Y&8?c(oe,F.children):Y&16&&D(F.children,oe,null,me,ue,A_(F,L),V,Z),Me&&gl(F,null,me,"created"),A(oe,F,F.scopeId,V,me),Ce){for(const ft in Ce)ft!=="value"&&!Ah(ft)&&o(oe,ft,null,Ce[ft],L,me);"value"in Ce&&o(oe,"value",null,Ce.value,L),(pe=Ce.onVnodeBeforeMount)&&Po(pe,me,F)}Me&&gl(F,null,me,"beforeMount");const Be=MG(ue,re);Be&&re.beforeEnter(oe),r(oe,B,ne),((pe=Ce&&Ce.onVnodeMounted)||Be||Me)&&pi(()=>{pe&&Po(pe,me,F),Be&&re.enter(oe),Me&&gl(F,null,me,"mounted")},ue)},A=(F,B,ne,me,ue)=>{if(ne&&d(F,ne),me)for(let L=0;L{for(let pe=oe;pe{const Z=B.el=F.el;let{patchFlag:oe,dynamicChildren:pe,dirs:Ce}=B;oe|=F.patchFlag&16;const Y=F.props||cn,re=B.props||cn;let Me;if(ne&&ml(ne,!1),(Me=re.onVnodeBeforeUpdate)&&Po(Me,ne,B,F),Ce&&gl(B,F,ne,"beforeUpdate"),ne&&ml(ne,!0),(Y.innerHTML&&re.innerHTML==null||Y.textContent&&re.textContent==null)&&c(Z,""),pe?O(F.dynamicChildren,pe,Z,ne,me,A_(B,ue),L):V||J(F,B,Z,null,ne,me,A_(B,ue),L,!1),oe>0){if(oe&16)k(Z,Y,re,ne,ue);else if(oe&2&&Y.class!==re.class&&o(Z,"class",null,re.class,ue),oe&4&&o(Z,"style",Y.style,re.style,ue),oe&8){const Be=B.dynamicProps;for(let ft=0;ft{Me&&Po(Me,ne,B,F),Ce&&gl(B,F,ne,"updated")},me)},O=(F,B,ne,me,ue,L,V)=>{for(let Z=0;Z{if(B!==ne){if(B!==cn)for(const L in B)!Ah(L)&&!(L in ne)&&o(F,L,B[L],null,ue,me);for(const L in ne){if(Ah(L))continue;const V=ne[L],Z=B[L];V!==Z&&L!=="value"&&o(F,L,Z,V,ue,me)}"value"in ne&&o(F,"value",B.value,ne.value,ue)}},H=(F,B,ne,me,ue,L,V,Z,oe)=>{const pe=B.el=F?F.el:s(""),Ce=B.anchor=F?F.anchor:s("");let{patchFlag:Y,dynamicChildren:re,slotScopeIds:Me}=B;Me&&(Z=Z?Z.concat(Me):Me),F==null?(r(pe,ne,me),r(Ce,ne,me),D(B.children||[],ne,Ce,ue,L,V,Z,oe)):Y>0&&Y&64&&re&&F.dynamicChildren?(O(F.dynamicChildren,re,ne,ue,L,V,Z),(B.key!=null||ue&&B===ue.subTree)&&CL(F,B,!0)):J(F,B,ne,Ce,ue,L,V,Z,oe)},te=(F,B,ne,me,ue,L,V,Z,oe)=>{B.slotScopeIds=Z,F==null?B.shapeFlag&512?ue.ctx.activate(B,ne,me,V,oe):W(B,ne,me,ue,L,V,oe):q(F,B,oe)},W=(F,B,ne,me,ue,L,V)=>{const Z=F.component=YG(F,me,ue);if(sL(F)&&(Z.ctx.renderer=xe),jG(Z,!1,V),Z.asyncDep){if(ue&&ue.registerDep(Z,j,V),!F.el){const oe=Z.subTree=Se(Ws);m(null,oe,B,ne)}}else j(Z,F,B,ne,ue,L,V)},q=(F,B,ne)=>{const me=B.component=F.component;if(FG(F,B,ne))if(me.asyncDep&&!me.asyncResolved){ie(me,B,ne);return}else me.next=B,me.update();else B.el=F.el,me.vnode=B},j=(F,B,ne,me,ue,L,V)=>{const Z=()=>{if(F.isMounted){let{next:Y,bu:re,u:Me,parent:Be,vnode:ft}=F;{const Rn=TL(F);if(Rn){Y&&(Y.el=ft.el,ie(F,Y,V)),Rn.asyncDep.then(()=>{F.isUnmounted||Z()});return}}let bt=Y,rn;ml(F,!1),Y?(Y.el=ft.el,ie(F,Y,V)):Y=ft,re&&cg(re),(rn=Y.props&&Y.props.onVnodeBeforeUpdate)&&Po(rn,Be,Y,ft),ml(F,!0);const yn=M_(F),kn=F.subTree;F.subTree=yn,y(kn,yn,f(kn.el),le(kn),F,ue,L),Y.el=yn.el,bt===null&&$G(F,yn.el),Me&&pi(Me,ue),(rn=Y.props&&Y.props.onVnodeUpdated)&&pi(()=>Po(rn,Be,Y,ft),ue)}else{let Y;const{el:re,props:Me}=B,{bm:Be,m:ft,parent:bt,root:rn,type:yn}=F,kn=xc(B);if(ml(F,!1),Be&&cg(Be),!kn&&(Y=Me&&Me.onVnodeBeforeMount)&&Po(Y,bt,B),ml(F,!0),re&&De){const Rn=()=>{F.subTree=M_(F),De(re,F.subTree,F,ue,null)};kn&&yn.__asyncHydrate?yn.__asyncHydrate(re,F,Rn):Rn()}else{rn.ce&&rn.ce._injectChildStyle(yn);const Rn=F.subTree=M_(F);y(null,Rn,ne,me,F,ue,L),B.el=Rn.el}if(ft&&pi(ft,ue),!kn&&(Y=Me&&Me.onVnodeMounted)){const Rn=B;pi(()=>Po(Y,bt,Rn),ue)}(B.shapeFlag&256||bt&&xc(bt.vnode)&&bt.vnode.shapeFlag&256)&&F.a&&pi(F.a,ue),F.isMounted=!0,B=ne=me=null}};F.scope.on();const oe=F.effect=new FP(Z);F.scope.off();const pe=F.update=oe.run.bind(oe),Ce=F.job=oe.runIfDirty.bind(oe);Ce.i=F,Ce.id=F.uid,oe.scheduler=()=>zS(Ce),ml(F,!0),pe()},ie=(F,B,ne)=>{B.component=F;const me=F.vnode.props;F.vnode=B,F.next=null,bG(F,B.props,me,ne),TG(F,B.children,ne),Js(),gA(F),el()},J=(F,B,ne,me,ue,L,V,Z,oe=!1)=>{const pe=F&&F.children,Ce=F?F.shapeFlag:0,Y=B.children,{patchFlag:re,shapeFlag:Me}=B;if(re>0){if(re&128){ye(pe,Y,ne,me,ue,L,V,Z,oe);return}else if(re&256){ce(pe,Y,ne,me,ue,L,V,Z,oe);return}}Me&8?(Ce&16&&We(pe,ue,L),Y!==pe&&c(ne,Y)):Ce&16?Me&16?ye(pe,Y,ne,me,ue,L,V,Z,oe):We(pe,ue,L,!0):(Ce&8&&c(ne,""),Me&16&&D(Y,ne,me,ue,L,V,Z,oe))},ce=(F,B,ne,me,ue,L,V,Z,oe)=>{F=F||_c,B=B||_c;const pe=F.length,Ce=B.length,Y=Math.min(pe,Ce);let re;for(re=0;reCe?We(F,ue,L,!0,!1,Y):D(B,ne,me,ue,L,V,Z,oe,Y)},ye=(F,B,ne,me,ue,L,V,Z,oe)=>{let pe=0;const Ce=B.length;let Y=F.length-1,re=Ce-1;for(;pe<=Y&&pe<=re;){const Me=F[pe],Be=B[pe]=oe?Es(B[pe]):Vo(B[pe]);if(Pf(Me,Be))y(Me,Be,ne,null,ue,L,V,Z,oe);else break;pe++}for(;pe<=Y&&pe<=re;){const Me=F[Y],Be=B[re]=oe?Es(B[re]):Vo(B[re]);if(Pf(Me,Be))y(Me,Be,ne,null,ue,L,V,Z,oe);else break;Y--,re--}if(pe>Y){if(pe<=re){const Me=re+1,Be=Mere)for(;pe<=Y;)Ne(F[pe],ue,L,!0),pe++;else{const Me=pe,Be=pe,ft=new Map;for(pe=Be;pe<=re;pe++){const Nn=B[pe]=oe?Es(B[pe]):Vo(B[pe]);Nn.key!=null&&ft.set(Nn.key,pe)}let bt,rn=0;const yn=re-Be+1;let kn=!1,Rn=0;const Yn=new Array(yn);for(pe=0;pe=yn){Ne(Nn,ue,L,!0);continue}let Zn;if(Nn.key!=null)Zn=ft.get(Nn.key);else for(bt=Be;bt<=re;bt++)if(Yn[bt-Be]===0&&Pf(Nn,B[bt])){Zn=bt;break}Zn===void 0?Ne(Nn,ue,L,!0):(Yn[Zn-Be]=pe+1,Zn>=Rn?Rn=Zn:kn=!0,y(Nn,B[Zn],ne,null,ue,L,V,Z,oe),rn++)}const oi=kn?RG(Yn):_c;for(bt=oi.length-1,pe=yn-1;pe>=0;pe--){const Nn=Be+pe,Zn=B[Nn],xu=Nn+1{const{el:L,type:V,transition:Z,children:oe,shapeFlag:pe}=F;if(pe&6){we(F.component.subTree,B,ne,me);return}if(pe&128){F.suspense.move(B,ne,me);return}if(pe&64){V.move(F,B,ne,xe);return}if(V===Ye){r(L,B,ne);for(let Y=0;YZ.enter(L),ue);else{const{leave:Y,delayLeave:re,afterLeave:Me}=Z,Be=()=>r(L,B,ne),ft=()=>{Y(L,()=>{Be(),Me&&Me()})};re?re(L,Be,ft):ft()}else r(L,B,ne)},Ne=(F,B,ne,me=!1,ue=!1)=>{const{type:L,props:V,ref:Z,children:oe,dynamicChildren:pe,shapeFlag:Ce,patchFlag:Y,dirs:re,cacheIndex:Me}=F;if(Y===-2&&(ue=!1),Z!=null&&im(Z,null,ne,F,!0),Me!=null&&(B.renderCache[Me]=void 0),Ce&256){B.ctx.deactivate(F);return}const Be=Ce&1&&re,ft=!xc(F);let bt;if(ft&&(bt=V&&V.onVnodeBeforeUnmount)&&Po(bt,B,F),Ce&6)He(F.component,ne,me);else{if(Ce&128){F.suspense.unmount(ne,me);return}Be&&gl(F,null,B,"beforeUnmount"),Ce&64?F.type.remove(F,B,ne,xe,me):pe&&!pe.hasOnce&&(L!==Ye||Y>0&&Y&64)?We(pe,B,ne,!1,!0):(L===Ye&&Y&384||!ue&&Ce&16)&&We(oe,B,ne),me&&ke(F)}(ft&&(bt=V&&V.onVnodeUnmounted)||Be)&&pi(()=>{bt&&Po(bt,B,F),Be&&gl(F,null,B,"unmounted")},ne)},ke=F=>{const{type:B,el:ne,anchor:me,transition:ue}=F;if(B===Ye){je(ne,me);return}if(B===R_){x(F);return}const L=()=>{i(ne),ue&&!ue.persisted&&ue.afterLeave&&ue.afterLeave()};if(F.shapeFlag&1&&ue&&!ue.persisted){const{leave:V,delayLeave:Z}=ue,oe=()=>V(ne,L);Z?Z(F.el,L,oe):oe()}else L()},je=(F,B)=>{let ne;for(;F!==B;)ne=p(F),i(F),F=ne;i(B)},He=(F,B,ne)=>{const{bum:me,scope:ue,job:L,subTree:V,um:Z,m:oe,a:pe}=F;xA(oe),xA(pe),me&&cg(me),ue.stop(),L&&(L.flags|=8,Ne(V,F,B,ne)),Z&&pi(Z,B),pi(()=>{F.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&F.asyncDep&&!F.asyncResolved&&F.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},We=(F,B,ne,me=!1,ue=!1,L=0)=>{for(let V=L;V{if(F.shapeFlag&6)return le(F.component.subTree);if(F.shapeFlag&128)return F.suspense.next();const B=p(F.anchor||F.el),ne=B&&B[Q8];return ne?p(ne):B};let Te=!1;const _e=(F,B,ne)=>{F==null?B._vnode&&Ne(B._vnode,null,null,!0):y(B._vnode||null,F,B,null,null,null,ne),B._vnode=F,Te||(Te=!0,gA(),rL(),Te=!1)},xe={p:y,um:Ne,m:we,r:ke,mt:W,mc:D,pc:J,pbc:O,n:le,o:e};let Ee,De;return{render:_e,hydrate:Ee,createApp:_G(_e,Ee)}}function A_({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ml({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function MG(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function CL(e,t,n=!1){const r=e.children,i=t.children;if(Je(r)&&Je(i))for(let o=0;o>1,e[n[s]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function TL(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:TL(t)}function xA(e){if(e)for(let t=0;tKi(DG);function jS(e,t){return qS(e,null,t)}function kt(e,t,n){return qS(e,t,n)}function qS(e,t,n=cn){const{immediate:r,deep:i,flush:o,once:a}=n,s=rr({},n),l=t&&r||!t&&o!=="post";let u;if(vd){if(o==="sync"){const d=IG();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=jo,d.resume=jo,d.pause=jo,d}}const c=ur;s.call=(d,g,y)=>Qo(d,c,g,y);let f=!1;o==="post"?s.scheduler=d=>{pi(d,c&&c.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(d,g)=>{g?d():zS(d)}),s.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const p=q8(e,t,s);return vd&&(u?u.push(p):l&&p()),p}function PG(e,t,n){const r=this.proxy,i=Hn(e)?e.includes(".")?EL(r,e):()=>r[e]:e.bind(r,r);let o;pt(t)?o=t:(o=t.handler,n=t);const a=Yd(this),s=qS(i,o.bind(r),n);return a(),s}function EL(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Qi(t)}Modifiers`]||e[`${Qs(t)}Modifiers`];function OG(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||cn;let i=n;const o=t.startsWith("update:"),a=o&&LG(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>Hn(c)?c.trim():c)),a.number&&(i=n.map(Jg)));let s,l=r[s=b_(t)]||r[s=b_(Qi(t))];!l&&o&&(l=r[s=b_(Qs(t))]),l&&Qo(l,e,6,i);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Qo(u,e,6,i)}}function AL(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let a={},s=!1;if(!pt(e)){const l=u=>{const c=AL(u,t,!0);c&&(s=!0,rr(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(dn(e)&&r.set(e,null),null):(Je(o)?o.forEach(l=>a[l]=null):rr(a,o),dn(e)&&r.set(e,a),a)}function c0(e,t){return!e||!t0(t)?!1:(t=t.slice(2).replace(/Once$/,""),Xt(e,t[0].toLowerCase()+t.slice(1))||Xt(e,Qs(t))||Xt(e,t))}function M_(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:u,renderCache:c,props:f,data:p,setupState:d,ctx:g,inheritAttrs:y}=e,_=rm(e);let m,b;try{if(n.shapeFlag&4){const x=i||r,E=x;m=Vo(u.call(E,x,c,f,d,p,g)),b=s}else{const x=t;m=Vo(x.length>1?x(f,{attrs:s,slots:a,emit:l}):x(f,null)),b=t.props?s:kG(s)}}catch(x){Ih.length=0,l0(x,e,1),m=Se(Ws)}let S=m;if(b&&y!==!1){const x=Object.keys(b),{shapeFlag:E}=S;x.length&&E&7&&(o&&x.some(LS)&&(b=NG(b,o)),S=Bc(S,b,!1,!0))}return n.dirs&&(S=Bc(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&GS(S,n.transition),m=S,rm(_),m}const kG=e=>{let t;for(const n in e)(n==="class"||n==="style"||t0(n))&&((t||(t={}))[n]=e[n]);return t},NG=(e,t)=>{const n={};for(const r in e)(!LS(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function FG(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?CA(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function BG(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):Z8(e)}const Ye=Symbol.for("v-fgt"),Wd=Symbol.for("v-txt"),Ws=Symbol.for("v-cmt"),R_=Symbol.for("v-stc"),Ih=[];let Si=null;function X(e=!1){Ih.push(Si=e?null:[])}function VG(){Ih.pop(),Si=Ih[Ih.length-1]||null}let dd=1;function TA(e,t=!1){dd+=e,e<0&&Si&&t&&(Si.hasOnce=!0)}function RL(e){return e.dynamicChildren=dd>0?Si||_c:null,VG(),dd>0&&Si&&Si.push(e),e}function ae(e,t,n,r,i,o){return RL(N(e,t,n,r,i,o,!0))}function _t(e,t,n,r,i){return RL(Se(e,t,n,r,i,!0))}function pd(e){return e?e.__v_isVNode===!0:!1}function Pf(e,t){return e.type===t.type&&e.key===t.key}const DL=({key:e})=>e??null,hg=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Hn(e)||Ze(e)||pt(e)?{i:nr,r:e,k:t,f:!!n}:e:null);function N(e,t=null,n=null,r=0,i=null,o=e===Ye?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&DL(t),ref:t&&hg(t),scopeId:oL,slotScopeIds:null,children:n,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:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:nr};return s?(XS(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Hn(n)?8:16),dd>0&&!a&&Si&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Si.push(l),l}const Se=HG;function HG(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===cL)&&(e=Ws),pd(e)){const s=Bc(e,t,!0);return n&&XS(s,n),dd>0&&!o&&Si&&(s.shapeFlag&6?Si[Si.indexOf(e)]=s:Si.push(s)),s.patchFlag=-2,s}if(QG(e)&&(e=e.__vccOpts),t){t=UG(t);let{class:s,style:l}=t;s&&!Hn(s)&&(t.class=ot(s)),dn(l)&&(US(l)&&!Je(l)&&(l=rr({},l)),t.style=vo(l))}const a=Hn(e)?1:ML(e)?128:J8(e)?64:dn(e)?4:pt(e)?2:0;return N(e,t,n,r,i,a,o,!0)}function UG(e){return e?US(e)||mL(e)?rr({},e):e:null}function Bc(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?zG(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&DL(u),ref:t&&t.ref?n&&o?Je(o)?o.concat(hg(t)):[o,hg(t)]:hg(t):o,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!==Ye?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Bc(e.ssContent),ssFallback:e.ssFallback&&Bc(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&GS(c,l.clone(c)),c}function ut(e=" ",t=0){return Se(Wd,null,e,t)}function mt(e="",t=!1){return t?(X(),_t(Ws,null,e)):Se(Ws,null,e)}function Vo(e){return e==null||typeof e=="boolean"?Se(Ws):Je(e)?Se(Ye,null,e.slice()):pd(e)?Es(e):Se(Wd,null,String(e))}function Es(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bc(e)}function XS(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Je(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),XS(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!mL(t)?t._ctx=nr:i===3&&nr&&(nr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pt(t)?(t={default:t,_ctx:nr},n=32):(t=String(t),r&64?(n=16,t=[ut(t)]):n=8);e.children=t,e.shapeFlag|=n}function zG(...e){const t={};for(let n=0;nur||nr;let am,zw;{const e=i0(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};am=t("__VUE_INSTANCE_SETTERS__",n=>ur=n),zw=t("__VUE_SSR_SETTERS__",n=>vd=n)}const Yd=e=>{const t=ur;return am(e),e.scope.on(),()=>{e.scope.off(),am(t)}},EA=()=>{ur&&ur.scope.off(),am(null)};function IL(e){return e.vnode.shapeFlag&4}let vd=!1;function jG(e,t=!1,n=!1){t&&zw(t);const{props:r,children:i}=e.vnode,o=IL(e);wG(e,r,o,t),CG(e,i,n);const a=o?qG(e,t):void 0;return t&&zw(!1),a}function qG(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,hG);const{setup:r}=n;if(r){Js();const i=e.setupContext=r.length>1?KG(e):null,o=Yd(e),a=zd(r,e,0,[e.props,i]),s=AP(a);if(el(),o(),(s||e.sp)&&!xc(e)&&aL(e),s){if(a.then(EA,EA),t)return a.then(l=>{AA(e,l,t)}).catch(l=>{l0(l,e,0)});e.asyncDep=a}else AA(e,a,t)}else PL(e,t)}function AA(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:dn(t)&&(e.setupState=JP(t)),PL(e,n)}let MA;function PL(e,t,n){const r=e.type;if(!e.render){if(!t&&MA&&!r.render){const i=r.template||WS(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=rr(rr({isCustomElement:o,delimiters:s},a),l);r.render=MA(i,u)}}e.render=r.render||jo}{const i=Yd(e);Js();try{dG(e)}finally{el(),i()}}}const XG={get(e,t){return _r(e,"get",""),e[t]}};function KG(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,XG),slots:e.slots,emit:e.emit,expose:t}}function f0(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(JP(N8(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Dh)return Dh[n](e)},has(t,n){return n in t||n in Dh}})):e.proxy}function ZG(e,t=!0){return pt(e)?e.displayName||e.name:e.name||t&&e.__name}function QG(e){return pt(e)&&"__vccOpts"in e}const Le=(e,t)=>Y8(e,t,vd);function zo(e,t,n){const r=arguments.length;return r===2?dn(t)&&!Je(t)?pd(t)?Se(e,null,[t]):Se(e,t):Se(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&pd(n)&&(n=[n]),Se(e,t,n))}const JG="3.5.13";/** +**/function Gd(e,t,n,r){try{return r?e(...r):e()}catch(i){u0(i,t,n)}}function Qo(e,t,n,r){if(pt(e)){const i=Gd(e,t,n,r);return i&&EP(i)&&i.catch(o=>{u0(o,t,n)}),i}if(Je(e)){const i=[];for(let o=0;o>>1,i=Lr[r],o=hd(i);o=hd(n)?Lr.push(e):Lr.splice(K8(t),0,e),e.flags|=1,tL()}}function tL(){rm||(rm=eL.then(rL))}function Z8(e){Je(e)?Sc.push(...e):Ts&&e.id===-1?Ts.splice(ac+1,0,e):e.flags&1||(Sc.push(e),e.flags|=1),tL()}function vA(e,t,n=Bo+1){for(;nhd(n)-hd(r));if(Sc.length=0,Ts){Ts.push(...t);return}for(Ts=t,ac=0;ace.id==null?e.flags&2?-1:1/0:e.id;function rL(e){try{for(Bo=0;Bo{r._d&&CA(-1);const o=im(t);let a;try{a=e(...i)}finally{im(o),r._d&&CA(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function It(e,t){if(nr===null)return e;const n=h0(nr),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport;function GS(e,t){e.shapeFlag&6&&e.component?(e.transition=t,GS(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 lt(e,t){return pt(e)?rr({name:e.name},t,{setup:e}):e}function oL(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function om(e,t,n,r,i=!1){if(Je(e)){e.forEach((g,y)=>om(g,t&&(Je(t)?t[y]:t),n,r,i));return}if(xc(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&om(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?h0(r.component):r.el,a=i?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===cn?s.refs={}:s.refs,f=s.setupState,p=zt(f),d=f===cn?()=>!1:g=>Xt(p,g);if(u!=null&&u!==l&&(Hn(u)?(c[u]=null,d(u)&&(f[u]=null)):Qe(u)&&(u.value=null)),pt(l))Gd(l,s,12,[a,c]);else{const g=Hn(l),y=Qe(l);if(g||y){const _=()=>{if(e.f){const m=g?d(l)?f[l]:c[l]:l.value;i?Je(m)&&OS(m,o):Je(m)?m.includes(o)||m.push(o):g?(c[l]=[o],d(l)&&(f[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else g?(c[l]=a,d(l)&&(f[l]=a)):y&&(l.value=a,e.k&&(c[e.k]=a))};a?(_.id=-1,pi(_,n)):_()}}}o0().requestIdleCallback;o0().cancelIdleCallback;const xc=e=>!!e.type.__asyncLoader,aL=e=>e.type.__isKeepAlive;function eG(e,t){sL(e,"a",t)}function tG(e,t){sL(e,"da",t)}function sL(e,t,n=ur){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(c0(t,r,n),n){let i=n.parent;for(;i&&i.parent;)aL(i.parent.vnode)&&nG(r,t,n,i),i=i.parent}}function nG(e,t,n,r){const i=c0(t,e,r,!0);Wd(()=>{OS(r[t],i)},n)}function c0(e,t,n=ur,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Js();const s=jd(n),l=Qo(t,n,e,a);return s(),el(),l});return r?i.unshift(o):i.push(o),o}}const Xa=e=>(t,n=ur)=>{(!vd||e==="sp")&&c0(e,(...r)=>t(...r),n)},rG=Xa("bm"),tl=Xa("m"),iG=Xa("bu"),oG=Xa("u"),lL=Xa("bum"),Wd=Xa("um"),aG=Xa("sp"),sG=Xa("rtg"),lG=Xa("rtc");function uG(e,t=ur){c0("ec",e,t)}const cG="components",uL=Symbol.for("v-ndc");function Ua(e){return Hn(e)?fG(cG,e,!1)||e:e||uL}function fG(e,t,n=!0,r=!1){const i=nr||ur;if(i){const o=i.type;{const s=ZG(o,!1);if(s&&(s===t||s===Zi(t)||s===i0(Zi(t))))return o}const a=gA(i[e]||o[e],t)||gA(i.appContext[e],t);return!a&&r?o:a}}function gA(e,t){return e&&(e[t]||e[Zi(t)]||e[i0(Zi(t))])}function Gt(e,t,n,r){let i;const o=n,a=Je(e);if(a||Hn(e)){const s=a&&bc(e);let l=!1;s&&(l=!qi(e),e=s0(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(s,l,void 0,o));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;lpd(t)?!(t.type===Ws||t.type===Ye&&!fL(t.children)):!0)?e:null}const Bw=e=>e?DL(e)?h0(e):Bw(e.parent):null,Dh=rr(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=>Bw(e.parent),$root:e=>Bw(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>WS(e),$forceUpdate:e=>e.f||(e.f=()=>{zS(e.update)}),$nextTick:e=>e.n||(e.n=Eo.bind(e.proxy)),$watch:e=>PG.bind(e)}),E_=(e,t)=>e!==cn&&!e.__isScriptSetup&&Xt(e,t),hG={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const d=a[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(E_(r,t))return a[t]=1,r[t];if(i!==cn&&Xt(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&Xt(u,t))return a[t]=3,o[t];if(n!==cn&&Xt(n,t))return a[t]=4,n[t];Vw&&(a[t]=0)}}const c=Dh[t];let f,p;if(c)return t==="$attrs"&&_r(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==cn&&Xt(n,t))return a[t]=4,n[t];if(p=l.config.globalProperties,Xt(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return E_(i,t)?(i[t]=n,!0):r!==cn&&Xt(r,t)?(r[t]=n,!0):Xt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},a){let s;return!!n[a]||e!==cn&&Xt(e,a)||E_(t,a)||(s=o[0])&&Xt(s,a)||Xt(r,a)||Xt(Dh,a)||Xt(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Xt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function mA(e){return Je(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Vw=!0;function dG(e){const t=WS(e),n=e.proxy,r=e.ctx;Vw=!1,t.beforeCreate&&yA(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:p,beforeUpdate:d,updated:g,activated:y,deactivated:_,beforeDestroy:m,beforeUnmount:b,destroyed:S,unmounted:x,render:E,renderTracked:T,renderTriggered:A,errorCaptured:D,serverPrefetch:P,expose:O,inheritAttrs:k,components:H,directives:te,filters:W}=t;if(u&&pG(u,r,null),a)for(const ie in a){const J=a[ie];pt(J)&&(r[ie]=J.bind(n))}if(i){const ie=i.call(n,n);dn(ie)&&(e.data=xo(ie))}if(Vw=!0,o)for(const ie in o){const J=o[ie],ce=pt(J)?J.bind(n,n):pt(J.get)?J.get.bind(n,n):jo,ye=!pt(J)&&pt(J.set)?J.set.bind(n):jo,we=Le({get:ce,set:ye});Object.defineProperty(r,ie,{enumerable:!0,configurable:!0,get:()=>we.value,set:Ne=>we.value=Ne})}if(s)for(const ie in s)hL(s[ie],r,n,ie);if(l){const ie=pt(l)?l.call(n):l;Reflect.ownKeys(ie).forEach(J=>{hg(J,ie[J])})}c&&yA(c,e,"c");function j(ie,J){Je(J)?J.forEach(ce=>ie(ce.bind(n))):J&&ie(J.bind(n))}if(j(rG,f),j(tl,p),j(iG,d),j(oG,g),j(eG,y),j(tG,_),j(uG,D),j(lG,T),j(sG,A),j(lL,b),j(Wd,x),j(aG,P),Je(O))if(O.length){const ie=e.exposed||(e.exposed={});O.forEach(J=>{Object.defineProperty(ie,J,{get:()=>n[J],set:ce=>n[J]=ce})})}else e.exposed||(e.exposed={});E&&e.render===jo&&(e.render=E),k!=null&&(e.inheritAttrs=k),H&&(e.components=H),te&&(e.directives=te),P&&oL(e)}function pG(e,t,n=jo){Je(e)&&(e=Hw(e));for(const r in e){const i=e[r];let o;dn(i)?"default"in i?o=Xi(i.from||r,i.default,!0):o=Xi(i.from||r):o=Xi(i),Qe(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function yA(e,t,n){Qo(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function hL(e,t,n,r){let i=r.includes(".")?TL(n,r):()=>n[r];if(Hn(e)){const o=t[e];pt(o)&&kt(i,o)}else if(pt(e))kt(i,e.bind(n));else if(dn(e))if(Je(e))e.forEach(o=>hL(o,t,n,r));else{const o=pt(e.handler)?e.handler.bind(n):t[e.handler];pt(o)&&kt(i,o,e)}}function WS(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>am(l,u,a,!0)),am(l,t,a)),dn(t)&&o.set(t,l),l}function am(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&am(e,o,n,!0),i&&i.forEach(a=>am(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=vG[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const vG={data:_A,props:wA,emits:wA,methods:fh,computed:fh,beforeCreate:Ar,created:Ar,beforeMount:Ar,mounted:Ar,beforeUpdate:Ar,updated:Ar,beforeDestroy:Ar,beforeUnmount:Ar,destroyed:Ar,unmounted:Ar,activated:Ar,deactivated:Ar,errorCaptured:Ar,serverPrefetch:Ar,components:fh,directives:fh,watch:mG,provide:_A,inject:gG};function _A(e,t){return t?e?function(){return rr(pt(e)?e.call(this,this):e,pt(t)?t.call(this,this):t)}:t:e}function gG(e,t){return fh(Hw(e),Hw(t))}function Hw(e){if(Je(e)){const t={};for(let n=0;n1)return n&&pt(t)?t.call(r&&r.proxy):t}}const pL={},vL=()=>Object.create(pL),gL=e=>Object.getPrototypeOf(e)===pL;function wG(e,t,n,r=!1){const i={},o=vL();e.propsDefaults=Object.create(null),mL(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:KP(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function bG(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=zt(i),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[p,d]=yL(f,t,!0);rr(a,p),d&&s.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return dn(e)&&r.set(e,_c),_c;if(Je(o))for(let c=0;ce[0]==="_"||e==="$stable",YS=e=>Je(e)?e.map(Vo):[Vo(e)],xG=(e,t,n)=>{if(t._n)return t;const r=Gs((...i)=>YS(t(...i)),n);return r._c=!1,r},wL=(e,t,n)=>{const r=e._ctx;for(const i in e){if(_L(i))continue;const o=e[i];if(pt(o))t[i]=xG(i,o,r);else if(o!=null){const a=YS(o);t[i]=()=>a}}},bL=(e,t)=>{const n=YS(t);e.slots.default=()=>n},SL=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},CG=(e,t,n)=>{const r=e.slots=vL();if(e.vnode.shapeFlag&32){const i=t._;i?(SL(r,t,n),n&&RP(r,"_",i,!0)):wL(t,r)}else t&&bL(e,t)},TG=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=cn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:SL(i,t,n):(o=!t.$stable,wL(t,i)),a=t}else t&&(bL(e,t),a={default:1});if(o)for(const s in i)!_L(s)&&a[s]==null&&delete i[s]},pi=BG;function EG(e){return AG(e)}function AG(e,t){const n=o0();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:p,setScopeId:d=jo,insertStaticContent:g}=e,y=(N,B,ne,me=null,ue=null,L=null,V=void 0,Z=null,oe=!!B.dynamicChildren)=>{if(N===B)return;N&&!Pf(N,B)&&(me=le(N),Ne(N,ue,L,!0),N=null),B.patchFlag===-2&&(oe=!1,B.dynamicChildren=null);const{type:pe,ref:Ce,shapeFlag:Y}=B;switch(pe){case Yd:_(N,B,ne,me);break;case Ws:m(N,B,ne,me);break;case R_:N==null&&b(B,ne,me,V);break;case Ye:H(N,B,ne,me,ue,L,V,Z,oe);break;default:Y&1?E(N,B,ne,me,ue,L,V,Z,oe):Y&6?te(N,B,ne,me,ue,L,V,Z,oe):(Y&64||Y&128)&&pe.process(N,B,ne,me,ue,L,V,Z,oe,xe)}Ce!=null&&ue&&om(Ce,N&&N.ref,L,B||N,!B)},_=(N,B,ne,me)=>{if(N==null)r(B.el=s(B.children),ne,me);else{const ue=B.el=N.el;B.children!==N.children&&u(ue,B.children)}},m=(N,B,ne,me)=>{N==null?r(B.el=l(B.children||""),ne,me):B.el=N.el},b=(N,B,ne,me)=>{[N.el,N.anchor]=g(N.children,B,ne,me,N.el,N.anchor)},S=({el:N,anchor:B},ne,me)=>{let ue;for(;N&&N!==B;)ue=p(N),r(N,ne,me),N=ue;r(B,ne,me)},x=({el:N,anchor:B})=>{let ne;for(;N&&N!==B;)ne=p(N),i(N),N=ne;i(B)},E=(N,B,ne,me,ue,L,V,Z,oe)=>{B.type==="svg"?V="svg":B.type==="math"&&(V="mathml"),N==null?T(B,ne,me,ue,L,V,Z,oe):P(N,B,ue,L,V,Z,oe)},T=(N,B,ne,me,ue,L,V,Z)=>{let oe,pe;const{props:Ce,shapeFlag:Y,transition:re,dirs:Me}=N;if(oe=N.el=a(N.type,L,Ce&&Ce.is,Ce),Y&8?c(oe,N.children):Y&16&&D(N.children,oe,null,me,ue,A_(N,L),V,Z),Me&&gl(N,null,me,"created"),A(oe,N,N.scopeId,V,me),Ce){for(const ft in Ce)ft!=="value"&&!Ah(ft)&&o(oe,ft,null,Ce[ft],L,me);"value"in Ce&&o(oe,"value",null,Ce.value,L),(pe=Ce.onVnodeBeforeMount)&&Po(pe,me,N)}Me&&gl(N,null,me,"beforeMount");const Be=MG(ue,re);Be&&re.beforeEnter(oe),r(oe,B,ne),((pe=Ce&&Ce.onVnodeMounted)||Be||Me)&&pi(()=>{pe&&Po(pe,me,N),Be&&re.enter(oe),Me&&gl(N,null,me,"mounted")},ue)},A=(N,B,ne,me,ue)=>{if(ne&&d(N,ne),me)for(let L=0;L{for(let pe=oe;pe{const Z=B.el=N.el;let{patchFlag:oe,dynamicChildren:pe,dirs:Ce}=B;oe|=N.patchFlag&16;const Y=N.props||cn,re=B.props||cn;let Me;if(ne&&ml(ne,!1),(Me=re.onVnodeBeforeUpdate)&&Po(Me,ne,B,N),Ce&&gl(B,N,ne,"beforeUpdate"),ne&&ml(ne,!0),(Y.innerHTML&&re.innerHTML==null||Y.textContent&&re.textContent==null)&&c(Z,""),pe?O(N.dynamicChildren,pe,Z,ne,me,A_(B,ue),L):V||J(N,B,Z,null,ne,me,A_(B,ue),L,!1),oe>0){if(oe&16)k(Z,Y,re,ne,ue);else if(oe&2&&Y.class!==re.class&&o(Z,"class",null,re.class,ue),oe&4&&o(Z,"style",Y.style,re.style,ue),oe&8){const Be=B.dynamicProps;for(let ft=0;ft{Me&&Po(Me,ne,B,N),Ce&&gl(B,N,ne,"updated")},me)},O=(N,B,ne,me,ue,L,V)=>{for(let Z=0;Z{if(B!==ne){if(B!==cn)for(const L in B)!Ah(L)&&!(L in ne)&&o(N,L,B[L],null,ue,me);for(const L in ne){if(Ah(L))continue;const V=ne[L],Z=B[L];V!==Z&&L!=="value"&&o(N,L,Z,V,ue,me)}"value"in ne&&o(N,"value",B.value,ne.value,ue)}},H=(N,B,ne,me,ue,L,V,Z,oe)=>{const pe=B.el=N?N.el:s(""),Ce=B.anchor=N?N.anchor:s("");let{patchFlag:Y,dynamicChildren:re,slotScopeIds:Me}=B;Me&&(Z=Z?Z.concat(Me):Me),N==null?(r(pe,ne,me),r(Ce,ne,me),D(B.children||[],ne,Ce,ue,L,V,Z,oe)):Y>0&&Y&64&&re&&N.dynamicChildren?(O(N.dynamicChildren,re,ne,ue,L,V,Z),(B.key!=null||ue&&B===ue.subTree)&&xL(N,B,!0)):J(N,B,ne,Ce,ue,L,V,Z,oe)},te=(N,B,ne,me,ue,L,V,Z,oe)=>{B.slotScopeIds=Z,N==null?B.shapeFlag&512?ue.ctx.activate(B,ne,me,V,oe):W(B,ne,me,ue,L,V,oe):q(N,B,oe)},W=(N,B,ne,me,ue,L,V)=>{const Z=N.component=YG(N,me,ue);if(aL(N)&&(Z.ctx.renderer=xe),jG(Z,!1,V),Z.asyncDep){if(ue&&ue.registerDep(Z,j,V),!N.el){const oe=Z.subTree=Se(Ws);m(null,oe,B,ne)}}else j(Z,N,B,ne,ue,L,V)},q=(N,B,ne)=>{const me=B.component=N.component;if(FG(N,B,ne))if(me.asyncDep&&!me.asyncResolved){ie(me,B,ne);return}else me.next=B,me.update();else B.el=N.el,me.vnode=B},j=(N,B,ne,me,ue,L,V)=>{const Z=()=>{if(N.isMounted){let{next:Y,bu:re,u:Me,parent:Be,vnode:ft}=N;{const Rn=CL(N);if(Rn){Y&&(Y.el=ft.el,ie(N,Y,V)),Rn.asyncDep.then(()=>{N.isUnmounted||Z()});return}}let bt=Y,rn;ml(N,!1),Y?(Y.el=ft.el,ie(N,Y,V)):Y=ft,re&&fg(re),(rn=Y.props&&Y.props.onVnodeBeforeUpdate)&&Po(rn,Be,Y,ft),ml(N,!0);const yn=M_(N),kn=N.subTree;N.subTree=yn,y(kn,yn,f(kn.el),le(kn),N,ue,L),Y.el=yn.el,bt===null&&$G(N,yn.el),Me&&pi(Me,ue),(rn=Y.props&&Y.props.onVnodeUpdated)&&pi(()=>Po(rn,Be,Y,ft),ue)}else{let Y;const{el:re,props:Me}=B,{bm:Be,m:ft,parent:bt,root:rn,type:yn}=N,kn=xc(B);if(ml(N,!1),Be&&fg(Be),!kn&&(Y=Me&&Me.onVnodeBeforeMount)&&Po(Y,bt,B),ml(N,!0),re&&De){const Rn=()=>{N.subTree=M_(N),De(re,N.subTree,N,ue,null)};kn&&yn.__asyncHydrate?yn.__asyncHydrate(re,N,Rn):Rn()}else{rn.ce&&rn.ce._injectChildStyle(yn);const Rn=N.subTree=M_(N);y(null,Rn,ne,me,N,ue,L),B.el=Rn.el}if(ft&&pi(ft,ue),!kn&&(Y=Me&&Me.onVnodeMounted)){const Rn=B;pi(()=>Po(Y,bt,Rn),ue)}(B.shapeFlag&256||bt&&xc(bt.vnode)&&bt.vnode.shapeFlag&256)&&N.a&&pi(N.a,ue),N.isMounted=!0,B=ne=me=null}};N.scope.on();const oe=N.effect=new NP(Z);N.scope.off();const pe=N.update=oe.run.bind(oe),Ce=N.job=oe.runIfDirty.bind(oe);Ce.i=N,Ce.id=N.uid,oe.scheduler=()=>zS(Ce),ml(N,!0),pe()},ie=(N,B,ne)=>{B.component=N;const me=N.vnode.props;N.vnode=B,N.next=null,bG(N,B.props,me,ne),TG(N,B.children,ne),Js(),vA(N),el()},J=(N,B,ne,me,ue,L,V,Z,oe=!1)=>{const pe=N&&N.children,Ce=N?N.shapeFlag:0,Y=B.children,{patchFlag:re,shapeFlag:Me}=B;if(re>0){if(re&128){ye(pe,Y,ne,me,ue,L,V,Z,oe);return}else if(re&256){ce(pe,Y,ne,me,ue,L,V,Z,oe);return}}Me&8?(Ce&16&&We(pe,ue,L),Y!==pe&&c(ne,Y)):Ce&16?Me&16?ye(pe,Y,ne,me,ue,L,V,Z,oe):We(pe,ue,L,!0):(Ce&8&&c(ne,""),Me&16&&D(Y,ne,me,ue,L,V,Z,oe))},ce=(N,B,ne,me,ue,L,V,Z,oe)=>{N=N||_c,B=B||_c;const pe=N.length,Ce=B.length,Y=Math.min(pe,Ce);let re;for(re=0;reCe?We(N,ue,L,!0,!1,Y):D(B,ne,me,ue,L,V,Z,oe,Y)},ye=(N,B,ne,me,ue,L,V,Z,oe)=>{let pe=0;const Ce=B.length;let Y=N.length-1,re=Ce-1;for(;pe<=Y&&pe<=re;){const Me=N[pe],Be=B[pe]=oe?Es(B[pe]):Vo(B[pe]);if(Pf(Me,Be))y(Me,Be,ne,null,ue,L,V,Z,oe);else break;pe++}for(;pe<=Y&&pe<=re;){const Me=N[Y],Be=B[re]=oe?Es(B[re]):Vo(B[re]);if(Pf(Me,Be))y(Me,Be,ne,null,ue,L,V,Z,oe);else break;Y--,re--}if(pe>Y){if(pe<=re){const Me=re+1,Be=Mere)for(;pe<=Y;)Ne(N[pe],ue,L,!0),pe++;else{const Me=pe,Be=pe,ft=new Map;for(pe=Be;pe<=re;pe++){const Nn=B[pe]=oe?Es(B[pe]):Vo(B[pe]);Nn.key!=null&&ft.set(Nn.key,pe)}let bt,rn=0;const yn=re-Be+1;let kn=!1,Rn=0;const Yn=new Array(yn);for(pe=0;pe=yn){Ne(Nn,ue,L,!0);continue}let Zn;if(Nn.key!=null)Zn=ft.get(Nn.key);else for(bt=Be;bt<=re;bt++)if(Yn[bt-Be]===0&&Pf(Nn,B[bt])){Zn=bt;break}Zn===void 0?Ne(Nn,ue,L,!0):(Yn[Zn-Be]=pe+1,Zn>=Rn?Rn=Zn:kn=!0,y(Nn,B[Zn],ne,null,ue,L,V,Z,oe),rn++)}const oi=kn?RG(Yn):_c;for(bt=oi.length-1,pe=yn-1;pe>=0;pe--){const Nn=Be+pe,Zn=B[Nn],xu=Nn+1{const{el:L,type:V,transition:Z,children:oe,shapeFlag:pe}=N;if(pe&6){we(N.component.subTree,B,ne,me);return}if(pe&128){N.suspense.move(B,ne,me);return}if(pe&64){V.move(N,B,ne,xe);return}if(V===Ye){r(L,B,ne);for(let Y=0;YZ.enter(L),ue);else{const{leave:Y,delayLeave:re,afterLeave:Me}=Z,Be=()=>r(L,B,ne),ft=()=>{Y(L,()=>{Be(),Me&&Me()})};re?re(L,Be,ft):ft()}else r(L,B,ne)},Ne=(N,B,ne,me=!1,ue=!1)=>{const{type:L,props:V,ref:Z,children:oe,dynamicChildren:pe,shapeFlag:Ce,patchFlag:Y,dirs:re,cacheIndex:Me}=N;if(Y===-2&&(ue=!1),Z!=null&&om(Z,null,ne,N,!0),Me!=null&&(B.renderCache[Me]=void 0),Ce&256){B.ctx.deactivate(N);return}const Be=Ce&1&&re,ft=!xc(N);let bt;if(ft&&(bt=V&&V.onVnodeBeforeUnmount)&&Po(bt,B,N),Ce&6)He(N.component,ne,me);else{if(Ce&128){N.suspense.unmount(ne,me);return}Be&&gl(N,null,B,"beforeUnmount"),Ce&64?N.type.remove(N,B,ne,xe,me):pe&&!pe.hasOnce&&(L!==Ye||Y>0&&Y&64)?We(pe,B,ne,!1,!0):(L===Ye&&Y&384||!ue&&Ce&16)&&We(oe,B,ne),me&&ke(N)}(ft&&(bt=V&&V.onVnodeUnmounted)||Be)&&pi(()=>{bt&&Po(bt,B,N),Be&&gl(N,null,B,"unmounted")},ne)},ke=N=>{const{type:B,el:ne,anchor:me,transition:ue}=N;if(B===Ye){je(ne,me);return}if(B===R_){x(N);return}const L=()=>{i(ne),ue&&!ue.persisted&&ue.afterLeave&&ue.afterLeave()};if(N.shapeFlag&1&&ue&&!ue.persisted){const{leave:V,delayLeave:Z}=ue,oe=()=>V(ne,L);Z?Z(N.el,L,oe):oe()}else L()},je=(N,B)=>{let ne;for(;N!==B;)ne=p(N),i(N),N=ne;i(B)},He=(N,B,ne)=>{const{bum:me,scope:ue,job:L,subTree:V,um:Z,m:oe,a:pe}=N;SA(oe),SA(pe),me&&fg(me),ue.stop(),L&&(L.flags|=8,Ne(V,N,B,ne)),Z&&pi(Z,B),pi(()=>{N.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},We=(N,B,ne,me=!1,ue=!1,L=0)=>{for(let V=L;V{if(N.shapeFlag&6)return le(N.component.subTree);if(N.shapeFlag&128)return N.suspense.next();const B=p(N.anchor||N.el),ne=B&&B[Q8];return ne?p(ne):B};let Te=!1;const _e=(N,B,ne)=>{N==null?B._vnode&&Ne(B._vnode,null,null,!0):y(B._vnode||null,N,B,null,null,null,ne),B._vnode=N,Te||(Te=!0,vA(),nL(),Te=!1)},xe={p:y,um:Ne,m:we,r:ke,mt:W,mc:D,pc:J,pbc:O,n:le,o:e};let Ee,De;return{render:_e,hydrate:Ee,createApp:_G(_e,Ee)}}function A_({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ml({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function MG(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function xL(e,t,n=!1){const r=e.children,i=t.children;if(Je(r)&&Je(i))for(let o=0;o>1,e[n[s]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function CL(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:CL(t)}function SA(e){if(e)for(let t=0;tXi(DG);function jS(e,t){return qS(e,null,t)}function kt(e,t,n){return qS(e,t,n)}function qS(e,t,n=cn){const{immediate:r,deep:i,flush:o,once:a}=n,s=rr({},n),l=t&&r||!t&&o!=="post";let u;if(vd){if(o==="sync"){const d=IG();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=jo,d.resume=jo,d.pause=jo,d}}const c=ur;s.call=(d,g,y)=>Qo(d,c,g,y);let f=!1;o==="post"?s.scheduler=d=>{pi(d,c&&c.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(d,g)=>{g?d():zS(d)}),s.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const p=q8(e,t,s);return vd&&(u?u.push(p):l&&p()),p}function PG(e,t,n){const r=this.proxy,i=Hn(e)?e.includes(".")?TL(r,e):()=>r[e]:e.bind(r,r);let o;pt(t)?o=t:(o=t.handler,n=t);const a=jd(this),s=qS(i,o.bind(r),n);return a(),s}function TL(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Zi(t)}Modifiers`]||e[`${Qs(t)}Modifiers`];function OG(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||cn;let i=n;const o=t.startsWith("update:"),a=o&&LG(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>Hn(c)?c.trim():c)),a.number&&(i=n.map(em)));let s,l=r[s=b_(t)]||r[s=b_(Zi(t))];!l&&o&&(l=r[s=b_(Qs(t))]),l&&Qo(l,e,6,i);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Qo(u,e,6,i)}}function EL(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let a={},s=!1;if(!pt(e)){const l=u=>{const c=EL(u,t,!0);c&&(s=!0,rr(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(dn(e)&&r.set(e,null),null):(Je(o)?o.forEach(l=>a[l]=null):rr(a,o),dn(e)&&r.set(e,a),a)}function f0(e,t){return!e||!n0(t)?!1:(t=t.slice(2).replace(/Once$/,""),Xt(e,t[0].toLowerCase()+t.slice(1))||Xt(e,Qs(t))||Xt(e,t))}function M_(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:u,renderCache:c,props:f,data:p,setupState:d,ctx:g,inheritAttrs:y}=e,_=im(e);let m,b;try{if(n.shapeFlag&4){const x=i||r,E=x;m=Vo(u.call(E,x,c,f,d,p,g)),b=s}else{const x=t;m=Vo(x.length>1?x(f,{attrs:s,slots:a,emit:l}):x(f,null)),b=t.props?s:kG(s)}}catch(x){Ih.length=0,u0(x,e,1),m=Se(Ws)}let S=m;if(b&&y!==!1){const x=Object.keys(b),{shapeFlag:E}=S;x.length&&E&7&&(o&&x.some(LS)&&(b=NG(b,o)),S=Bc(S,b,!1,!0))}return n.dirs&&(S=Bc(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&GS(S,n.transition),m=S,im(_),m}const kG=e=>{let t;for(const n in e)(n==="class"||n==="style"||n0(n))&&((t||(t={}))[n]=e[n]);return t},NG=(e,t)=>{const n={};for(const r in e)(!LS(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function FG(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?xA(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function BG(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):Z8(e)}const Ye=Symbol.for("v-fgt"),Yd=Symbol.for("v-txt"),Ws=Symbol.for("v-cmt"),R_=Symbol.for("v-stc"),Ih=[];let bi=null;function X(e=!1){Ih.push(bi=e?null:[])}function VG(){Ih.pop(),bi=Ih[Ih.length-1]||null}let dd=1;function CA(e,t=!1){dd+=e,e<0&&bi&&t&&(bi.hasOnce=!0)}function ML(e){return e.dynamicChildren=dd>0?bi||_c:null,VG(),dd>0&&bi&&bi.push(e),e}function ae(e,t,n,r,i,o){return ML(F(e,t,n,r,i,o,!0))}function _t(e,t,n,r,i){return ML(Se(e,t,n,r,i,!0))}function pd(e){return e?e.__v_isVNode===!0:!1}function Pf(e,t){return e.type===t.type&&e.key===t.key}const RL=({key:e})=>e??null,dg=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Hn(e)||Qe(e)||pt(e)?{i:nr,r:e,k:t,f:!!n}:e:null);function F(e,t=null,n=null,r=0,i=null,o=e===Ye?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&RL(t),ref:t&&dg(t),scopeId:iL,slotScopeIds:null,children:n,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:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:nr};return s?(XS(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Hn(n)?8:16),dd>0&&!a&&bi&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&bi.push(l),l}const Se=HG;function HG(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===uL)&&(e=Ws),pd(e)){const s=Bc(e,t,!0);return n&&XS(s,n),dd>0&&!o&&bi&&(s.shapeFlag&6?bi[bi.indexOf(e)]=s:bi.push(s)),s.patchFlag=-2,s}if(QG(e)&&(e=e.__vccOpts),t){t=UG(t);let{class:s,style:l}=t;s&&!Hn(s)&&(t.class=ot(s)),dn(l)&&(US(l)&&!Je(l)&&(l=rr({},l)),t.style=vo(l))}const a=Hn(e)?1:AL(e)?128:J8(e)?64:dn(e)?4:pt(e)?2:0;return F(e,t,n,r,i,a,o,!0)}function UG(e){return e?US(e)||gL(e)?rr({},e):e:null}function Bc(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?zG(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&RL(u),ref:t&&t.ref?n&&o?Je(o)?o.concat(dg(t)):[o,dg(t)]:dg(t):o,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!==Ye?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Bc(e.ssContent),ssFallback:e.ssFallback&&Bc(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&GS(c,l.clone(c)),c}function ut(e=" ",t=0){return Se(Yd,null,e,t)}function mt(e="",t=!1){return t?(X(),_t(Ws,null,e)):Se(Ws,null,e)}function Vo(e){return e==null||typeof e=="boolean"?Se(Ws):Je(e)?Se(Ye,null,e.slice()):pd(e)?Es(e):Se(Yd,null,String(e))}function Es(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Bc(e)}function XS(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Je(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),XS(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!gL(t)?t._ctx=nr:i===3&&nr&&(nr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pt(t)?(t={default:t,_ctx:nr},n=32):(t=String(t),r&64?(n=16,t=[ut(t)]):n=8);e.children=t,e.shapeFlag|=n}function zG(...e){const t={};for(let n=0;nur||nr;let sm,zw;{const e=o0(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};sm=t("__VUE_INSTANCE_SETTERS__",n=>ur=n),zw=t("__VUE_SSR_SETTERS__",n=>vd=n)}const jd=e=>{const t=ur;return sm(e),e.scope.on(),()=>{e.scope.off(),sm(t)}},TA=()=>{ur&&ur.scope.off(),sm(null)};function DL(e){return e.vnode.shapeFlag&4}let vd=!1;function jG(e,t=!1,n=!1){t&&zw(t);const{props:r,children:i}=e.vnode,o=DL(e);wG(e,r,o,t),CG(e,i,n);const a=o?qG(e,t):void 0;return t&&zw(!1),a}function qG(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,hG);const{setup:r}=n;if(r){Js();const i=e.setupContext=r.length>1?KG(e):null,o=jd(e),a=Gd(r,e,0,[e.props,i]),s=EP(a);if(el(),o(),(s||e.sp)&&!xc(e)&&oL(e),s){if(a.then(TA,TA),t)return a.then(l=>{EA(e,l,t)}).catch(l=>{u0(l,e,0)});e.asyncDep=a}else EA(e,a,t)}else IL(e,t)}function EA(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:dn(t)&&(e.setupState=QP(t)),IL(e,n)}let AA;function IL(e,t,n){const r=e.type;if(!e.render){if(!t&&AA&&!r.render){const i=r.template||WS(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=rr(rr({isCustomElement:o,delimiters:s},a),l);r.render=AA(i,u)}}e.render=r.render||jo}{const i=jd(e);Js();try{dG(e)}finally{el(),i()}}}const XG={get(e,t){return _r(e,"get",""),e[t]}};function KG(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,XG),slots:e.slots,emit:e.emit,expose:t}}function h0(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(QP(N8(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Dh)return Dh[n](e)},has(t,n){return n in t||n in Dh}})):e.proxy}function ZG(e,t=!0){return pt(e)?e.displayName||e.name:e.name||t&&e.__name}function QG(e){return pt(e)&&"__vccOpts"in e}const Le=(e,t)=>Y8(e,t,vd);function zo(e,t,n){const r=arguments.length;return r===2?dn(t)&&!Je(t)?pd(t)?Se(e,null,[t]):Se(e,t):Se(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&pd(n)&&(n=[n]),Se(e,t,n))}const JG="3.5.13";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Gw;const RA=typeof window<"u"&&window.trustedTypes;if(RA)try{Gw=RA.createPolicy("vue",{createHTML:e=>e})}catch{}const LL=Gw?e=>Gw.createHTML(e):e=>e,eW="http://www.w3.org/2000/svg",tW="http://www.w3.org/1998/Math/MathML",xa=typeof document<"u"?document:null,DA=xa&&xa.createElement("template"),nW={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?xa.createElementNS(eW,e):t==="mathml"?xa.createElementNS(tW,e):n?xa.createElement(e,{is:n}):xa.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>xa.createTextNode(e),createComment:e=>xa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{DA.innerHTML=LL(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const s=DA.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rW=Symbol("_vtc");function iW(e,t,n){const r=e[rW];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sm=Symbol("_vod"),OL=Symbol("_vsh"),oW={beforeMount(e,{value:t},{transition:n}){e[sm]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Lf(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Lf(e,!0),r.enter(e)):r.leave(e,()=>{Lf(e,!1)}):Lf(e,t))},beforeUnmount(e,{value:t}){Lf(e,t)}};function Lf(e,t){e.style.display=t?e[sm]:"none",e[OL]=!t}const aW=Symbol(""),sW=/(^|;)\s*display\s*:/;function lW(e,t,n){const r=e.style,i=Hn(n);let o=!1;if(n&&!i){if(t)if(Hn(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&dg(r,s,"")}else for(const a in t)n[a]==null&&dg(r,a,"");for(const a in n)a==="display"&&(o=!0),dg(r,a,n[a])}else if(i){if(t!==n){const a=r[aW];a&&(n+=";"+a),r.cssText=n,o=sW.test(n)}}else t&&e.removeAttribute("style");sm in e&&(e[sm]=o?r.display:"",e[OL]&&(r.display="none"))}const IA=/\s*!important$/;function dg(e,t,n){if(Je(n))n.forEach(r=>dg(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=uW(e,t);IA.test(n)?e.setProperty(Qs(r),n.replace(IA,""),"important"):e[r]=n}}const PA=["Webkit","Moz","ms"],D_={};function uW(e,t){const n=D_[t];if(n)return n;let r=Qi(t);if(r!=="filter"&&r in e)return D_[t]=r;r=r0(r);for(let i=0;iI_||(dW.then(()=>I_=0),I_=Date.now());function vW(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Qo(gW(r,n.value),t,5,[r])};return n.value=e,n.attached=pW(),n}function gW(e,t){if(Je(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const $A=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,mW=(e,t,n,r,i,o)=>{const a=i==="svg";t==="class"?iW(e,r,a):t==="style"?lW(e,n,r):t0(t)?LS(t)||fW(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yW(e,t,r,a))?(kA(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&OA(e,t,r,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Hn(r))?kA(e,Qi(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),OA(e,t,r,a))};function yW(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&$A(t)&&pt(n));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 $A(t)&&Hn(n)?!1:t in e}const Vc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Je(t)?n=>cg(t,n):t};function _W(e){e.target.composing=!0}function BA(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fa=Symbol("_assign"),Kr={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Fa]=Vc(i);const o=r||i.props&&i.props.type==="number";Rs(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),o&&(s=Jg(s)),e[Fa](s)}),n&&Rs(e,"change",()=>{e.value=e.value.trim()}),t||(Rs(e,"compositionstart",_W),Rs(e,"compositionend",BA),Rs(e,"change",BA))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[Fa]=Vc(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?Jg(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l))}},mi={deep:!0,created(e,t,n){e[Fa]=Vc(n),Rs(e,"change",()=>{const r=e._modelValue,i=gd(e),o=e.checked,a=e[Fa];if(Je(r)){const s=NS(r,i),l=s!==-1;if(o&&!l)a(r.concat(i));else if(!o&&l){const u=[...r];u.splice(s,1),a(u)}}else if(ef(r)){const s=new Set(r);o?s.add(i):s.delete(i),a(s)}else a(kL(e,o))})},mounted:VA,beforeUpdate(e,t,n){e[Fa]=Vc(n),VA(e,t,n)}};function VA(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(Je(t))i=NS(t,r.props.value)>-1;else if(ef(t))i=t.has(r.props.value);else{if(t===n)return;i=Hd(t,kL(e,!0))}e.checked!==i&&(e.checked=i)}const wo={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=ef(t);Rs(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?Jg(gd(a)):gd(a));e[Fa](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,Eo(()=>{e._assigning=!1})}),e[Fa]=Vc(r)},mounted(e,{value:t}){HA(e,t)},beforeUpdate(e,t,n){e[Fa]=Vc(n)},updated(e,{value:t}){e._assigning||HA(e,t)}};function HA(e,t){const n=e.multiple,r=Je(t);if(!(n&&!r&&!ef(t))){for(let i=0,o=e.options.length;iString(u)===String(s)):a.selected=NS(t,s)>-1}else a.selected=t.has(s);else if(Hd(gd(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function gd(e){return"_value"in e?e._value:e.value}function kL(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const wW=["ctrl","shift","alt","meta"],bW={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)=>wW.some(n=>e[`${n}Key`]&&!t.includes(n))},KS=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...o)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const o=Qs(i.key);if(t.some(a=>a===o||SW[a]===o))return e(i)})},CW=rr({patchProp:mW},nW);let UA;function TW(){return UA||(UA=EG(CW))}const EW=(...e)=>{const t=TW().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=MW(r);if(!i)return;const o=t._component;!pt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=n(i,!1,AW(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t};function AW(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function MW(e){return Hn(e)?document.querySelector(e):e}/*! +**/let Gw;const MA=typeof window<"u"&&window.trustedTypes;if(MA)try{Gw=MA.createPolicy("vue",{createHTML:e=>e})}catch{}const PL=Gw?e=>Gw.createHTML(e):e=>e,eW="http://www.w3.org/2000/svg",tW="http://www.w3.org/1998/Math/MathML",xa=typeof document<"u"?document:null,RA=xa&&xa.createElement("template"),nW={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?xa.createElementNS(eW,e):t==="mathml"?xa.createElementNS(tW,e):n?xa.createElement(e,{is:n}):xa.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>xa.createTextNode(e),createComment:e=>xa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{RA.innerHTML=PL(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const s=RA.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rW=Symbol("_vtc");function iW(e,t,n){const r=e[rW];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const lm=Symbol("_vod"),LL=Symbol("_vsh"),oW={beforeMount(e,{value:t},{transition:n}){e[lm]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Lf(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Lf(e,!0),r.enter(e)):r.leave(e,()=>{Lf(e,!1)}):Lf(e,t))},beforeUnmount(e,{value:t}){Lf(e,t)}};function Lf(e,t){e.style.display=t?e[lm]:"none",e[LL]=!t}const aW=Symbol(""),sW=/(^|;)\s*display\s*:/;function lW(e,t,n){const r=e.style,i=Hn(n);let o=!1;if(n&&!i){if(t)if(Hn(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&pg(r,s,"")}else for(const a in t)n[a]==null&&pg(r,a,"");for(const a in n)a==="display"&&(o=!0),pg(r,a,n[a])}else if(i){if(t!==n){const a=r[aW];a&&(n+=";"+a),r.cssText=n,o=sW.test(n)}}else t&&e.removeAttribute("style");lm in e&&(e[lm]=o?r.display:"",e[LL]&&(r.display="none"))}const DA=/\s*!important$/;function pg(e,t,n){if(Je(n))n.forEach(r=>pg(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=uW(e,t);DA.test(n)?e.setProperty(Qs(r),n.replace(DA,""),"important"):e[r]=n}}const IA=["Webkit","Moz","ms"],D_={};function uW(e,t){const n=D_[t];if(n)return n;let r=Zi(t);if(r!=="filter"&&r in e)return D_[t]=r;r=i0(r);for(let i=0;iI_||(dW.then(()=>I_=0),I_=Date.now());function vW(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Qo(gW(r,n.value),t,5,[r])};return n.value=e,n.attached=pW(),n}function gW(e,t){if(Je(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const FA=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,mW=(e,t,n,r,i,o)=>{const a=i==="svg";t==="class"?iW(e,r,a):t==="style"?lW(e,n,r):n0(t)?LS(t)||fW(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yW(e,t,r,a))?(OA(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&LA(e,t,r,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Hn(r))?OA(e,Zi(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),LA(e,t,r,a))};function yW(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&FA(t)&&pt(n));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 FA(t)&&Hn(n)?!1:t in e}const Vc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Je(t)?n=>fg(t,n):t};function _W(e){e.target.composing=!0}function $A(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fa=Symbol("_assign"),Kr={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Fa]=Vc(i);const o=r||i.props&&i.props.type==="number";Rs(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),o&&(s=em(s)),e[Fa](s)}),n&&Rs(e,"change",()=>{e.value=e.value.trim()}),t||(Rs(e,"compositionstart",_W),Rs(e,"compositionend",$A),Rs(e,"change",$A))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[Fa]=Vc(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?em(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l))}},uo={deep:!0,created(e,t,n){e[Fa]=Vc(n),Rs(e,"change",()=>{const r=e._modelValue,i=gd(e),o=e.checked,a=e[Fa];if(Je(r)){const s=NS(r,i),l=s!==-1;if(o&&!l)a(r.concat(i));else if(!o&&l){const u=[...r];u.splice(s,1),a(u)}}else if(ef(r)){const s=new Set(r);o?s.add(i):s.delete(i),a(s)}else a(OL(e,o))})},mounted:BA,beforeUpdate(e,t,n){e[Fa]=Vc(n),BA(e,t,n)}};function BA(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(Je(t))i=NS(t,r.props.value)>-1;else if(ef(t))i=t.has(r.props.value);else{if(t===n)return;i=Ud(t,OL(e,!0))}e.checked!==i&&(e.checked=i)}const wo={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=ef(t);Rs(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?em(gd(a)):gd(a));e[Fa](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,Eo(()=>{e._assigning=!1})}),e[Fa]=Vc(r)},mounted(e,{value:t}){VA(e,t)},beforeUpdate(e,t,n){e[Fa]=Vc(n)},updated(e,{value:t}){e._assigning||VA(e,t)}};function VA(e,t){const n=e.multiple,r=Je(t);if(!(n&&!r&&!ef(t))){for(let i=0,o=e.options.length;iString(u)===String(s)):a.selected=NS(t,s)>-1}else a.selected=t.has(s);else if(Ud(gd(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function gd(e){return"_value"in e?e._value:e.value}function OL(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const wW=["ctrl","shift","alt","meta"],bW={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)=>wW.some(n=>e[`${n}Key`]&&!t.includes(n))},KS=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...o)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const o=Qs(i.key);if(t.some(a=>a===o||SW[a]===o))return e(i)})},CW=rr({patchProp:mW},nW);let HA;function TW(){return HA||(HA=EG(CW))}const EW=(...e)=>{const t=TW().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=MW(r);if(!i)return;const o=t._component;!pt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=n(i,!1,AW(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t};function AW(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function MW(e){return Hn(e)?document.querySelector(e):e}/*! * vue-router v4.5.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const sc=typeof document<"u";function NL(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function RW(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&NL(e.default)}const qt=Object.assign;function P_(e,t){const n={};for(const r in t){const i=t[r];n[r]=Co(i)?i.map(e):e(i)}return n}const Ph=()=>{},Co=Array.isArray,FL=/#/g,DW=/&/g,IW=/\//g,PW=/=/g,LW=/\?/g,$L=/\+/g,OW=/%5B/g,kW=/%5D/g,BL=/%5E/g,NW=/%60/g,VL=/%7B/g,FW=/%7C/g,HL=/%7D/g,$W=/%20/g;function ZS(e){return encodeURI(""+e).replace(FW,"|").replace(OW,"[").replace(kW,"]")}function BW(e){return ZS(e).replace(VL,"{").replace(HL,"}").replace(BL,"^")}function Ww(e){return ZS(e).replace($L,"%2B").replace($W,"+").replace(FL,"%23").replace(DW,"%26").replace(NW,"`").replace(VL,"{").replace(HL,"}").replace(BL,"^")}function VW(e){return Ww(e).replace(PW,"%3D")}function HW(e){return ZS(e).replace(FL,"%23").replace(LW,"%3F")}function UW(e){return e==null?"":HW(e).replace(IW,"%2F")}function md(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const zW=/\/$/,GW=e=>e.replace(zW,"");function L_(e,t,n="/"){let r,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),i=e(o)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=qW(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:md(a)}}function WW(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function zA(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function YW(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Hc(t.matched[r],n.matched[i])&&UL(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Hc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function UL(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!jW(e[n],t[n]))return!1;return!0}function jW(e,t){return Co(e)?GA(e,t):Co(t)?GA(t,e):e===t}function GA(e,t){return Co(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function qW(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,a,s;for(a=0;a1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const cs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var yd;(function(e){e.pop="pop",e.push="push"})(yd||(yd={}));var Lh;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Lh||(Lh={}));function XW(e){if(!e)if(sc){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),GW(e)}const KW=/^[^#]+#/;function ZW(e,t){return e.replace(KW,"#")+t}function QW(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const h0=()=>({left:window.scrollX,top:window.scrollY});function JW(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=QW(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 WA(e,t){return(history.state?history.state.position-t:-1)+e}const Yw=new Map;function e6(e,t){Yw.set(e,t)}function t6(e){const t=Yw.get(e);return Yw.delete(e),t}let n6=()=>location.protocol+"//"+location.host;function zL(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let s=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),zA(l,"")}return zA(n,e)+r+i}function r6(e,t,n,r){let i=[],o=[],a=null;const s=({state:p})=>{const d=zL(e,location),g=n.value,y=t.value;let _=0;if(p){if(n.value=d,t.value=p,a&&a===g){a=null;return}_=y?p.position-y.position:0}else r(d);i.forEach(m=>{m(n.value,g,{delta:_,type:yd.pop,direction:_?_>0?Lh.forward:Lh.back:Lh.unknown})})};function l(){a=n.value}function u(p){i.push(p);const d=()=>{const g=i.indexOf(p);g>-1&&i.splice(g,1)};return o.push(d),d}function c(){const{history:p}=window;p.state&&p.replaceState(qt({},p.state,{scroll:h0()}),"")}function f(){for(const p of o)p();o=[],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 YA(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?h0():null}}function i6(e){const{history:t,location:n}=window,r={value:zL(e,n)},i={value:t.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:n6()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),i.value=u}catch(d){console.error(d),n[c?"replace":"assign"](p)}}function a(l,u){const c=qt({},t.state,YA(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});o(l,c,!0),r.value=l}function s(l,u){const c=qt({},i.value,t.state,{forward:l,scroll:h0()});o(c.current,c,!0);const f=qt({},YA(r.value,l,null),{position:c.position+1},u);o(l,f,!1),r.value=l}return{location:r,state:i,push:s,replace:a}}function o6(e){e=XW(e);const t=i6(e),n=r6(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const i=qt({location:"",base:e,go:r,createHref:ZW.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function a6(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),o6(e)}function s6(e){return typeof e=="string"||e&&typeof e=="object"}function GL(e){return typeof e=="string"||typeof e=="symbol"}const WL=Symbol("");var jA;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(jA||(jA={}));function Uc(e,t){return qt(new Error,{type:e,[WL]:!0},t)}function ya(e,t){return e instanceof Error&&WL in e&&(t==null||!!(e.type&t))}const qA="[^/]+?",l6={sensitive:!1,strict:!1,start:!0,end:!0},u6=/[.+*?^${}()[\]/\\]/g;function c6(e,t){const n=qt({},l6,t),r=[];let i=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function YL(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const h6={type:0,value:""},d6=/[a-zA-Z0-9_]/;function p6(e){if(!e)return[[]];if(e==="/")return[[h6]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${n})/"${u}": ${d}`)}let n=0,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,u="",c="";function f(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=l}for(;s{a(S)}:Ph}function a(f){if(GL(f)){const p=r.get(f);p&&(r.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(a),p.alias.forEach(a))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&r.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function s(){return n}function l(f){const p=_6(f,n);n.splice(p,0,f),f.record.name&&!QA(f)&&r.set(f.record.name,f)}function u(f,p){let d,g={},y,_;if("name"in f&&f.name){if(d=r.get(f.name),!d)throw Uc(1,{location:f});_=d.record.name,g=qt(KA(p.params,d.keys.filter(S=>!S.optional).concat(d.parent?d.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),f.params&&KA(f.params,d.keys.map(S=>S.name))),y=d.stringify(g)}else if(f.path!=null)y=f.path,d=n.find(S=>S.re.test(y)),d&&(g=d.parse(y),_=d.record.name);else{if(d=p.name?r.get(p.name):n.find(S=>S.re.test(p.path)),!d)throw Uc(1,{location:f,currentLocation:p});_=d.record.name,g=qt({},p.params,f.params),y=d.stringify(g)}const m=[];let b=d;for(;b;)m.unshift(b.record),b=b.parent;return{name:_,path:y,params:g,matched:m,meta:y6(m)}}e.forEach(f=>o(f));function c(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:s,getRecordMatcher:i}}function KA(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ZA(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:m6(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 m6(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function QA(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function y6(e){return e.reduce((t,n)=>qt(t,n.meta),{})}function JA(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function _6(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;YL(e,t[o])<0?r=o:n=o+1}const i=w6(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function w6(e){let t=e;for(;t=t.parent;)if(jL(t)&&YL(e,t)===0)return t}function jL({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function b6(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&Ww(o)):[r&&Ww(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function S6(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Co(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const x6=Symbol(""),t2=Symbol(""),d0=Symbol(""),QS=Symbol(""),jw=Symbol("");function Of(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function As(e,t,n,r,i,o=a=>a()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=p=>{p===!1?l(Uc(4,{from:n,to:t})):p instanceof Error?l(p):s6(p)?l(Uc(2,{from:t,to:p})):(a&&r.enterCallbacks[i]===a&&typeof p=="function"&&a.push(p),s())},c=o(()=>e.call(r&&r.instances[i],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(p=>l(p))})}function O_(e,t,n,r,i=o=>o()){const o=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(NL(l)){const c=(l.__vccOpts||l)[t];c&&o.push(As(c,n,r,a,s,i))}else{let u=l();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const f=RW(c)?c.default:c;a.mods[s]=c,a.components[s]=f;const d=(f.__vccOpts||f)[t];return d&&As(d,n,r,a,s,i)()}))}}return o}function n2(e){const t=Ki(d0),n=Ki(QS),r=Le(()=>{const l=$(e.to);return t.resolve(l)}),i=Le(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const p=f.findIndex(Hc.bind(null,c));if(p>-1)return p;const d=r2(l[u-2]);return u>1&&r2(c)===d&&f[f.length-1].path!==d?f.findIndex(Hc.bind(null,l[u-2])):p}),o=Le(()=>i.value>-1&&M6(n.params,r.value.params)),a=Le(()=>i.value>-1&&i.value===n.matched.length-1&&UL(n.params,r.value.params));function s(l={}){if(A6(l)){const u=t[$(e.replace)?"replace":"push"]($(e.to)).catch(Ph);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Le(()=>r.value.href),isActive:o,isExactActive:a,navigate:s}}function C6(e){return e.length===1?e[0]:e}const T6=lt({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:n2,setup(e,{slots:t}){const n=xo(n2(e)),{options:r}=Ki(d0),i=Le(()=>({[i2(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[i2(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&C6(t.default(n));return e.custom?o:zo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),E6=T6;function A6(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 M6(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Co(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function r2(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const i2=(e,t,n)=>e??t??n,R6=lt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ki(jw),i=Le(()=>e.route||r.value),o=Ki(t2,0),a=Le(()=>{let u=$(o);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=Le(()=>i.value.matched[a.value]);fg(t2,Le(()=>a.value+1)),fg(x6,s),fg(jw,i);const l=Ie();return kt(()=>[l.value,s.value,e.name],([u,c,f],[p,d,g])=>{c&&(c.instances[f]=u,d&&d!==c&&u&&u===p&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!Hc(c,d)||!p)&&(c.enterCallbacks[f]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,p=f&&f.components[c];if(!p)return o2(n.default,{Component:p,route:u});const d=f.props[c],g=d?d===!0?u.params:typeof d=="function"?d(u):d:null,_=zo(p,qt({},g,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return o2(n.default,{Component:_,route:u})||_}}});function o2(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const JS=R6;function D6(e){const t=g6(e.routes,e),n=e.parseQuery||b6,r=e.stringifyQuery||e2,i=e.history,o=Of(),a=Of(),s=Of(),l=Ud(cs);let u=cs;sc&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=P_.bind(null,le=>""+le),f=P_.bind(null,UW),p=P_.bind(null,md);function d(le,Te){let _e,xe;return GL(le)?(_e=t.getRecordMatcher(le),xe=Te):xe=le,t.addRoute(xe,_e)}function g(le){const Te=t.getRecordMatcher(le);Te&&t.removeRoute(Te)}function y(){return t.getRoutes().map(le=>le.record)}function _(le){return!!t.getRecordMatcher(le)}function m(le,Te){if(Te=qt({},Te||l.value),typeof le=="string"){const B=L_(n,le,Te.path),ne=t.resolve({path:B.path},Te),me=i.createHref(B.fullPath);return qt(B,ne,{params:p(ne.params),hash:md(B.hash),redirectedFrom:void 0,href:me})}let _e;if(le.path!=null)_e=qt({},le,{path:L_(n,le.path,Te.path).path});else{const B=qt({},le.params);for(const ne in B)B[ne]==null&&delete B[ne];_e=qt({},le,{params:f(B)}),Te.params=f(Te.params)}const xe=t.resolve(_e,Te),Ee=le.hash||"";xe.params=c(p(xe.params));const De=WW(r,qt({},le,{hash:BW(Ee),path:xe.path})),F=i.createHref(De);return qt({fullPath:De,hash:Ee,query:r===e2?S6(le.query):le.query||{}},xe,{redirectedFrom:void 0,href:F})}function b(le){return typeof le=="string"?L_(n,le,l.value.path):qt({},le)}function S(le,Te){if(u!==le)return Uc(8,{from:Te,to:le})}function x(le){return A(le)}function E(le){return x(qt(b(le),{replace:!0}))}function T(le){const Te=le.matched[le.matched.length-1];if(Te&&Te.redirect){const{redirect:_e}=Te;let xe=typeof _e=="function"?_e(le):_e;return typeof xe=="string"&&(xe=xe.includes("?")||xe.includes("#")?xe=b(xe):{path:xe},xe.params={}),qt({query:le.query,hash:le.hash,params:xe.path!=null?{}:le.params},xe)}}function A(le,Te){const _e=u=m(le),xe=l.value,Ee=le.state,De=le.force,F=le.replace===!0,B=T(_e);if(B)return A(qt(b(B),{state:typeof B=="object"?qt({},Ee,B.state):Ee,force:De,replace:F}),Te||_e);const ne=_e;ne.redirectedFrom=Te;let me;return!De&&YW(r,xe,_e)&&(me=Uc(16,{to:ne,from:xe}),we(xe,xe,!0,!1)),(me?Promise.resolve(me):O(ne,xe)).catch(ue=>ya(ue)?ya(ue,2)?ue:ye(ue):J(ue,ne,xe)).then(ue=>{if(ue){if(ya(ue,2))return A(qt({replace:F},b(ue.to),{state:typeof ue.to=="object"?qt({},Ee,ue.to.state):Ee,force:De}),Te||ne)}else ue=H(ne,xe,!0,F,Ee);return k(ne,xe,ue),ue})}function D(le,Te){const _e=S(le,Te);return _e?Promise.reject(_e):Promise.resolve()}function P(le){const Te=je.values().next().value;return Te&&typeof Te.runWithContext=="function"?Te.runWithContext(le):le()}function O(le,Te){let _e;const[xe,Ee,De]=I6(le,Te);_e=O_(xe.reverse(),"beforeRouteLeave",le,Te);for(const B of xe)B.leaveGuards.forEach(ne=>{_e.push(As(ne,le,Te))});const F=D.bind(null,le,Te);return _e.push(F),We(_e).then(()=>{_e=[];for(const B of o.list())_e.push(As(B,le,Te));return _e.push(F),We(_e)}).then(()=>{_e=O_(Ee,"beforeRouteUpdate",le,Te);for(const B of Ee)B.updateGuards.forEach(ne=>{_e.push(As(ne,le,Te))});return _e.push(F),We(_e)}).then(()=>{_e=[];for(const B of De)if(B.beforeEnter)if(Co(B.beforeEnter))for(const ne of B.beforeEnter)_e.push(As(ne,le,Te));else _e.push(As(B.beforeEnter,le,Te));return _e.push(F),We(_e)}).then(()=>(le.matched.forEach(B=>B.enterCallbacks={}),_e=O_(De,"beforeRouteEnter",le,Te,P),_e.push(F),We(_e))).then(()=>{_e=[];for(const B of a.list())_e.push(As(B,le,Te));return _e.push(F),We(_e)}).catch(B=>ya(B,8)?B:Promise.reject(B))}function k(le,Te,_e){s.list().forEach(xe=>P(()=>xe(le,Te,_e)))}function H(le,Te,_e,xe,Ee){const De=S(le,Te);if(De)return De;const F=Te===cs,B=sc?history.state:{};_e&&(xe||F?i.replace(le.fullPath,qt({scroll:F&&B&&B.scroll},Ee)):i.push(le.fullPath,Ee)),l.value=le,we(le,Te,_e,F),ye()}let te;function W(){te||(te=i.listen((le,Te,_e)=>{if(!He.listening)return;const xe=m(le),Ee=T(xe);if(Ee){A(qt(Ee,{replace:!0,force:!0}),xe).catch(Ph);return}u=xe;const De=l.value;sc&&e6(WA(De.fullPath,_e.delta),h0()),O(xe,De).catch(F=>ya(F,12)?F:ya(F,2)?(A(qt(b(F.to),{force:!0}),xe).then(B=>{ya(B,20)&&!_e.delta&&_e.type===yd.pop&&i.go(-1,!1)}).catch(Ph),Promise.reject()):(_e.delta&&i.go(-_e.delta,!1),J(F,xe,De))).then(F=>{F=F||H(xe,De,!1),F&&(_e.delta&&!ya(F,8)?i.go(-_e.delta,!1):_e.type===yd.pop&&ya(F,20)&&i.go(-1,!1)),k(xe,De,F)}).catch(Ph)}))}let q=Of(),j=Of(),ie;function J(le,Te,_e){ye(le);const xe=j.list();return xe.length?xe.forEach(Ee=>Ee(le,Te,_e)):console.error(le),Promise.reject(le)}function ce(){return ie&&l.value!==cs?Promise.resolve():new Promise((le,Te)=>{q.add([le,Te])})}function ye(le){return ie||(ie=!le,W(),q.list().forEach(([Te,_e])=>le?_e(le):Te()),q.reset()),le}function we(le,Te,_e,xe){const{scrollBehavior:Ee}=e;if(!sc||!Ee)return Promise.resolve();const De=!_e&&t6(WA(le.fullPath,0))||(xe||!_e)&&history.state&&history.state.scroll||null;return Eo().then(()=>Ee(le,Te,De)).then(F=>F&&JW(F)).catch(F=>J(F,le,Te))}const Ne=le=>i.go(le);let ke;const je=new Set,He={currentRoute:l,listening:!0,addRoute:d,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:y,resolve:m,options:e,push:x,replace:E,go:Ne,back:()=>Ne(-1),forward:()=>Ne(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:j.add,isReady:ce,install(le){const Te=this;le.component("RouterLink",E6),le.component("RouterView",JS),le.config.globalProperties.$router=Te,Object.defineProperty(le.config.globalProperties,"$route",{enumerable:!0,get:()=>$(l)}),sc&&!ke&&l.value===cs&&(ke=!0,x(i.location).catch(Ee=>{}));const _e={};for(const Ee in cs)Object.defineProperty(_e,Ee,{get:()=>l.value[Ee],enumerable:!0});le.provide(d0,Te),le.provide(QS,ZP(_e)),le.provide(jw,l);const xe=le.unmount;je.add(le),le.unmount=function(){je.delete(le),je.size<1&&(u=cs,te&&te(),te=null,l.value=cs,ke=!1,ie=!1),xe()}}};function We(le){return le.reduce((Te,_e)=>Te.then(()=>P(_e)),Promise.resolve())}return He}function I6(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;aHc(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>Hc(u,l))||i.push(l))}return[n,r,i]}function P6(){return Ki(d0)}function qL(e){return Ki(QS)}function XL(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 L6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function O6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 KL(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 k6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 ZL(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 a2(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function QL(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 N6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function JL(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 F6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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"}),N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function $6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 B6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 V6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 eO(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 s2(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 l2(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 tO(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function H6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.25 9v6m-4.5 0V9M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function nO(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function U6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"})])}function rO(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 iO(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function oO(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})])}function z6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("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 p0(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const Kl=0;var $a=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e))($a||{}),Ds=(e=>(e.MI_SANS="MiSans",e.SARASA_UI="SarasaUi",e.PING_FANG="PingFang",e.FIRA_SANS="FiraSans",e.SYSTEM_UI="SystemUI",e))(Ds||{}),$t=(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))($t||{}),Is=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(Is||{}),_d=(e=>(e.AUTO="auto",e.DOTS="dots",e.BAR="bar",e))(_d||{}),zc=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(zc||{}),pu=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(pu||{}),jr=(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))(jr||{}),Aa=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(Aa||{}),Zl=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(Zl||{}),Bt=(e=>(e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e.setup="setup",e))(Bt||{});const aO={proxies:V6,connections:QL,rules:z6,logs:B6,settings:F6};function v0(e){return kP()?(NP(e),!0):!1}function bu(e){return typeof e=="function"?e():$(e)}const sO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const G6=e=>e!=null,W6=Object.prototype.toString,Y6=e=>W6.call(e)==="[object Object]",lm=()=>{};function j6(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const lO=e=>e();function q6(e=lO){const t=Ie(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:s0(t),pause:n,resume:r,eventFilter:i}}function uO(e){return Jo()}function X6(...e){if(e.length!==1)return G8(...e);const t=e[0];return typeof t=="function"?s0(V8(()=>({get:t,set:lm}))):Ie(t)}function K6(e,t,n={}){const{eventFilter:r=lO,...i}=n;return kt(e,j6(r,t),i)}function Z6(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:a,resume:s,isActive:l}=q6(r);return{stop:K6(e,t,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function Q6(e,t){uO()&&uL(e,t)}function ex(e,t=!0,n){uO()?tl(e,n):t?e():Eo(e)}const za=sO?window:void 0,J6=sO?window.document:void 0;function Ls(e){var t;const n=bu(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Tc(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=za):[t,n,r,i]=e,!t)return lm;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,f,p,d)=>(c.addEventListener(f,p,d),()=>c.removeEventListener(f,p,d)),l=kt(()=>[Ls(t),bu(i)],([c,f])=>{if(a(),!c)return;const p=Y6(f)?{...f}:f;o.push(...n.flatMap(d=>r.map(g=>s(c,d,g,p))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return v0(u),u}function e9(){const e=Ie(!1),t=Jo();return t&&tl(()=>{e.value=!0},t),e}function tx(e){const t=e9();return Le(()=>(t.value,!!e()))}function t9(e,t,n={}){const{window:r=za,...i}=n;let o;const a=tx(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Le(()=>{const p=bu(e),d=(Array.isArray(p)?p:[p]).map(Ls).filter(G6);return new Set(d)}),u=kt(()=>l.value,p=>{s(),a.value&&p.size&&(o=new MutationObserver(t),p.forEach(d=>o.observe(d,i)))},{immediate:!0,flush:"post"}),c=()=>o==null?void 0:o.takeRecords(),f=()=>{u(),s()};return v0(f),{isSupported:a,stop:f,takeRecords:c}}function n9(e,t={}){const{window:n=za}=t,r=tx(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const o=Ie(!1),a=u=>{o.value=u.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},l=jS(()=>{r.value&&(s(),i=n.matchMedia(bu(e)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),o.value=i.matches)});return v0(()=>{l(),s(),i=void 0}),o}const iv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ov="__vueuse_ssr_handlers__",r9=i9();function i9(){return ov in iv||(iv[ov]=iv[ov]||{}),iv[ov]}function o9(e,t){return r9[e]||t}function a9(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 s9={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()}},u2="vueuse-storage";function Qt(e,t,n,r={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=za,eventFilter:p,onError:d=O=>{console.error(O)},initOnMounted:g}=r,y=(c?Ud:Ie)(typeof t=="function"?t():t);if(!n)try{n=o9("getDefaultStorage",()=>{var O;return(O=za)==null?void 0:O.localStorage})()}catch(O){d(O)}if(!n)return y;const _=bu(t),m=a9(_),b=(i=r.serializer)!=null?i:s9[m],{pause:S,resume:x}=Z6(y,()=>T(y.value),{flush:o,deep:a,eventFilter:p});f&&s&&ex(()=>{n instanceof Storage?Tc(f,"storage",D):Tc(f,u2,P),g&&D()}),g||D();function E(O,k){if(f){const H={key:e,oldValue:O,newValue:k,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(u2,{detail:H}))}}function T(O){try{const k=n.getItem(e);if(O==null)E(k,null),n.removeItem(e);else{const H=b.write(O);k!==H&&(n.setItem(e,H),E(k,H))}}catch(k){d(k)}}function A(O){const k=O?O.newValue:n.getItem(e);if(k==null)return l&&_!=null&&n.setItem(e,b.write(_)),_;if(!O&&u){const H=b.read(k);return typeof u=="function"?u(H,_):m==="object"&&!Array.isArray(H)?{..._,...H}:H}else return typeof k!="string"?k:b.read(k)}function D(O){if(!(O&&O.storageArea!==n)){if(O&&O.key==null){y.value=_;return}if(!(O&&O.key!==e)){S();try{(O==null?void 0:O.newValue)!==b.write(y.value)&&(y.value=A(O))}catch(k){d(k)}finally{O?Eo(x):x()}}}}function P(O){D(O.detail)}return y}function l9(e,t,n={}){const{window:r=za,...i}=n;let o;const a=tx(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Le(()=>{const f=bu(e);return Array.isArray(f)?f.map(p=>Ls(p)):[Ls(f)]}),u=kt(l,f=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const p of f)p&&o.observe(p,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return v0(c),{isSupported:a,stop:c}}function u9(e,t={width:0,height:0},n={}){const{window:r=za,box:i="content-box"}=n,o=Le(()=>{var f,p;return(p=(f=Ls(e))==null?void 0:f.namespaceURI)==null?void 0:p.includes("svg")}),a=Ie(t.width),s=Ie(t.height),{stop:l}=l9(e,([f])=>{const p=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&o.value){const d=Ls(e);if(d){const g=d.getBoundingClientRect();a.value=g.width,s.value=g.height}}else if(p){const d=Array.isArray(p)?p:[p];a.value=d.reduce((g,{inlineSize:y})=>g+y,0),s.value=d.reduce((g,{blockSize:y})=>g+y,0)}else a.value=f.contentRect.width,s.value=f.contentRect.height},n);ex(()=>{const f=Ls(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=kt(()=>Ls(e),f=>{a.value=f?t.width:0,s.value=f?t.height:0});function c(){l(),u()}return{width:a,height:s,stop:c}}function c9(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:a=!0,window:s=za}=t,l=xo({x:0,y:0}),u=xo({x:0,y:0}),c=Le(()=>l.x-u.x),f=Le(()=>l.y-u.y),{max:p,abs:d}=Math,g=Le(()=>p(d(c.value),d(f.value))>=n),y=Ie(!1),_=Le(()=>g.value?d(c.value)>d(f.value)?c.value>0?"left":"right":f.value>0?"up":"down":"none"),m=P=>[P.touches[0].clientX,P.touches[0].clientY],b=(P,O)=>{l.x=P,l.y=O},S=(P,O)=>{u.x=P,u.y=O};let x;const E=f9(s==null?void 0:s.document);a?x=E?{passive:!0}:{capture:!1}:x=E?{passive:!1,capture:!0}:{capture:!0};const T=P=>{y.value&&(i==null||i(P,_.value)),y.value=!1},A=[Tc(e,"touchstart",P=>{if(P.touches.length!==1)return;const[O,k]=m(P);b(O,k),S(O,k),o==null||o(P)},x),Tc(e,"touchmove",P=>{if(P.touches.length!==1)return;const[O,k]=m(P);S(O,k),x.capture&&!x.passive&&Math.abs(c.value)>Math.abs(f.value)&&P.preventDefault(),!y.value&&g.value&&(y.value=!0),y.value&&(r==null||r(P))},x),Tc(e,["touchend","touchcancel"],T,x)];return{isPassiveEventSupported:E,isSwiping:y,direction:_,coordsStart:l,coordsEnd:u,lengthX:c,lengthY:f,stop:()=>A.forEach(P=>P())}}function f9(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",lm,n),e.removeEventListener("x",lm),t}function h9(e=null,t={}){var n,r,i;const{document:o=J6,restoreOnUnmount:a=f=>f}=t,s=(n=o==null?void 0:o.title)!=null?n:"",l=X6((r=e??(o==null?void 0:o.title))!=null?r:null),u=e&&typeof e=="function";function c(f){if(!("titleTemplate"in t))return f;const p=t.titleTemplate||"%s";return typeof p=="function"?p(f):bu(p).replace(/%s/g,f)}return kt(l,(f,p)=>{f!==p&&o&&(o.title=c(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!u&&t9((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=c(o.title))},{childList:!0}),Q6(()=>{if(a){const f=a(s,l.value||"");f!=null&&o&&(o.title=f)}}),l}function d9(e={}){const{window:t=za,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=e,s=Ie(n),l=Ie(r),u=()=>{t&&(a==="outer"?(s.value=t.outerWidth,l.value=t.outerHeight):o?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(u(),ex(u),Tc("resize",u,{passive:!0}),i){const c=n9("(orientation: portrait)");kt(c,()=>u())}return{width:s,height:l}}const Ec=Qt("config/theme","default"),Pa=Qt("config/language",Object.values($a).includes(navigator.language)?navigator.language:$a.EN_US),au=Qt("config/is-sidebar-collapsed",!0),Oh=Qt("config/font",Ds.MI_SANS),pg=Qt("config/auto-upgrade",!1),vg=Qt("config/show-global-proxy",!0),k_=Qt("config/collapse-group-map",{}),kh=Qt("config/two-columns",!0),Nh=Qt("config/speedtest-url","http://www.gstatic.com/generate_204"),Fh=Qt("config/speedtest-timeout",5e3),gg=Qt("config/proxy-sort-type",Is.DEFAULT),mg=Qt("config/automatic-disconnection",!0),$h=Qt("config/two-column-for-mobile",!0),Bh=Qt("config/truncate-proxy-name",!0),Vh=Qt("config/proxy-preview-type",_d.AUTO),yg=Qt("config/hide-unavailable-proxies",!1),Os=Qt("config/low-latency",300),Da=Qt("config/medium-latency",800),Ql=Qt("config/use-connecticon-card",!1),jl=Qt("config/connection-table-columns",[$t.Close,$t.Host,$t.Type,$t.Rule,$t.Chains,$t.Download,$t.Upload,$t.DlSpeed,$t.UlSpeed,$t.ConnectTime]),_g=Qt("config/compact-connection-card",!0),yi=Qt("config/source-ip-label-map",{}),wg=Qt("config/log-retention-limit",1e3),p9=["data-theme"],v9=lt({__name:"App",setup(e){const t=Ie(),n=()=>{const o=getComputedStyle(t.value).getPropertyValue("background-color").trim(),a=document.querySelector('meta[name="theme-color"]');a&&a.setAttribute("content",o)};tl(()=>{n(),kt(Ec,()=>{Eo(n)})});const r={[Ds.MI_SANS]:"font-MiSans",[Ds.SARASA_UI]:"font-SarasaUI",[Ds.PING_FANG]:"font-PingFang",[Ds.FIRA_SANS]:"font-FiraSans",[Ds.SYSTEM_UI]:"font-SystemUI"},i=Le(()=>r[Oh.value]);return(o,a)=>(X(),ae("div",{ref_key:"app",ref:t,class:ot(`flex h-dvh w-screen overflow-x-hidden bg-base-100 ${i.value}`),"data-theme":$(Ec)},[Se($(JS))],10,p9))}});/*! + */const sc=typeof document<"u";function kL(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function RW(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&kL(e.default)}const qt=Object.assign;function P_(e,t){const n={};for(const r in t){const i=t[r];n[r]=Co(i)?i.map(e):e(i)}return n}const Ph=()=>{},Co=Array.isArray,NL=/#/g,DW=/&/g,IW=/\//g,PW=/=/g,LW=/\?/g,FL=/\+/g,OW=/%5B/g,kW=/%5D/g,$L=/%5E/g,NW=/%60/g,BL=/%7B/g,FW=/%7C/g,VL=/%7D/g,$W=/%20/g;function ZS(e){return encodeURI(""+e).replace(FW,"|").replace(OW,"[").replace(kW,"]")}function BW(e){return ZS(e).replace(BL,"{").replace(VL,"}").replace($L,"^")}function Ww(e){return ZS(e).replace(FL,"%2B").replace($W,"+").replace(NL,"%23").replace(DW,"%26").replace(NW,"`").replace(BL,"{").replace(VL,"}").replace($L,"^")}function VW(e){return Ww(e).replace(PW,"%3D")}function HW(e){return ZS(e).replace(NL,"%23").replace(LW,"%3F")}function UW(e){return e==null?"":HW(e).replace(IW,"%2F")}function md(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const zW=/\/$/,GW=e=>e.replace(zW,"");function L_(e,t,n="/"){let r,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),i=e(o)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=qW(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:md(a)}}function WW(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function UA(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function YW(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Hc(t.matched[r],n.matched[i])&&HL(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Hc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function HL(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!jW(e[n],t[n]))return!1;return!0}function jW(e,t){return Co(e)?zA(e,t):Co(t)?zA(t,e):e===t}function zA(e,t){return Co(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function qW(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,a,s;for(a=0;a1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const cs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var yd;(function(e){e.pop="pop",e.push="push"})(yd||(yd={}));var Lh;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Lh||(Lh={}));function XW(e){if(!e)if(sc){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),GW(e)}const KW=/^[^#]+#/;function ZW(e,t){return e.replace(KW,"#")+t}function QW(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const d0=()=>({left:window.scrollX,top:window.scrollY});function JW(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=QW(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 GA(e,t){return(history.state?history.state.position-t:-1)+e}const Yw=new Map;function e6(e,t){Yw.set(e,t)}function t6(e){const t=Yw.get(e);return Yw.delete(e),t}let n6=()=>location.protocol+"//"+location.host;function UL(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let s=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),UA(l,"")}return UA(n,e)+r+i}function r6(e,t,n,r){let i=[],o=[],a=null;const s=({state:p})=>{const d=UL(e,location),g=n.value,y=t.value;let _=0;if(p){if(n.value=d,t.value=p,a&&a===g){a=null;return}_=y?p.position-y.position:0}else r(d);i.forEach(m=>{m(n.value,g,{delta:_,type:yd.pop,direction:_?_>0?Lh.forward:Lh.back:Lh.unknown})})};function l(){a=n.value}function u(p){i.push(p);const d=()=>{const g=i.indexOf(p);g>-1&&i.splice(g,1)};return o.push(d),d}function c(){const{history:p}=window;p.state&&p.replaceState(qt({},p.state,{scroll:d0()}),"")}function f(){for(const p of o)p();o=[],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 WA(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?d0():null}}function i6(e){const{history:t,location:n}=window,r={value:UL(e,n)},i={value:t.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:n6()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),i.value=u}catch(d){console.error(d),n[c?"replace":"assign"](p)}}function a(l,u){const c=qt({},t.state,WA(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});o(l,c,!0),r.value=l}function s(l,u){const c=qt({},i.value,t.state,{forward:l,scroll:d0()});o(c.current,c,!0);const f=qt({},WA(r.value,l,null),{position:c.position+1},u);o(l,f,!1),r.value=l}return{location:r,state:i,push:s,replace:a}}function o6(e){e=XW(e);const t=i6(e),n=r6(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const i=qt({location:"",base:e,go:r,createHref:ZW.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function a6(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),o6(e)}function s6(e){return typeof e=="string"||e&&typeof e=="object"}function zL(e){return typeof e=="string"||typeof e=="symbol"}const GL=Symbol("");var YA;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(YA||(YA={}));function Uc(e,t){return qt(new Error,{type:e,[GL]:!0},t)}function ya(e,t){return e instanceof Error&&GL in e&&(t==null||!!(e.type&t))}const jA="[^/]+?",l6={sensitive:!1,strict:!1,start:!0,end:!0},u6=/[.+*?^${}()[\]/\\]/g;function c6(e,t){const n=qt({},l6,t),r=[];let i=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function WL(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const h6={type:0,value:""},d6=/[a-zA-Z0-9_]/;function p6(e){if(!e)return[[]];if(e==="/")return[[h6]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${n})/"${u}": ${d}`)}let n=0,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,u="",c="";function f(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=l}for(;s{a(S)}:Ph}function a(f){if(zL(f)){const p=r.get(f);p&&(r.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(a),p.alias.forEach(a))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&r.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function s(){return n}function l(f){const p=_6(f,n);n.splice(p,0,f),f.record.name&&!ZA(f)&&r.set(f.record.name,f)}function u(f,p){let d,g={},y,_;if("name"in f&&f.name){if(d=r.get(f.name),!d)throw Uc(1,{location:f});_=d.record.name,g=qt(XA(p.params,d.keys.filter(S=>!S.optional).concat(d.parent?d.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),f.params&&XA(f.params,d.keys.map(S=>S.name))),y=d.stringify(g)}else if(f.path!=null)y=f.path,d=n.find(S=>S.re.test(y)),d&&(g=d.parse(y),_=d.record.name);else{if(d=p.name?r.get(p.name):n.find(S=>S.re.test(p.path)),!d)throw Uc(1,{location:f,currentLocation:p});_=d.record.name,g=qt({},p.params,f.params),y=d.stringify(g)}const m=[];let b=d;for(;b;)m.unshift(b.record),b=b.parent;return{name:_,path:y,params:g,matched:m,meta:y6(m)}}e.forEach(f=>o(f));function c(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:s,getRecordMatcher:i}}function XA(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function KA(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:m6(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 m6(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ZA(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function y6(e){return e.reduce((t,n)=>qt(t,n.meta),{})}function QA(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function _6(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;WL(e,t[o])<0?r=o:n=o+1}const i=w6(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function w6(e){let t=e;for(;t=t.parent;)if(YL(t)&&WL(e,t)===0)return t}function YL({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function b6(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&Ww(o)):[r&&Ww(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function S6(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Co(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const x6=Symbol(""),e2=Symbol(""),p0=Symbol(""),QS=Symbol(""),jw=Symbol("");function Of(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function As(e,t,n,r,i,o=a=>a()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=p=>{p===!1?l(Uc(4,{from:n,to:t})):p instanceof Error?l(p):s6(p)?l(Uc(2,{from:t,to:p})):(a&&r.enterCallbacks[i]===a&&typeof p=="function"&&a.push(p),s())},c=o(()=>e.call(r&&r.instances[i],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(p=>l(p))})}function O_(e,t,n,r,i=o=>o()){const o=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(kL(l)){const c=(l.__vccOpts||l)[t];c&&o.push(As(c,n,r,a,s,i))}else{let u=l();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const f=RW(c)?c.default:c;a.mods[s]=c,a.components[s]=f;const d=(f.__vccOpts||f)[t];return d&&As(d,n,r,a,s,i)()}))}}return o}function t2(e){const t=Xi(p0),n=Xi(QS),r=Le(()=>{const l=$(e.to);return t.resolve(l)}),i=Le(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const p=f.findIndex(Hc.bind(null,c));if(p>-1)return p;const d=n2(l[u-2]);return u>1&&n2(c)===d&&f[f.length-1].path!==d?f.findIndex(Hc.bind(null,l[u-2])):p}),o=Le(()=>i.value>-1&&M6(n.params,r.value.params)),a=Le(()=>i.value>-1&&i.value===n.matched.length-1&&HL(n.params,r.value.params));function s(l={}){if(A6(l)){const u=t[$(e.replace)?"replace":"push"]($(e.to)).catch(Ph);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Le(()=>r.value.href),isActive:o,isExactActive:a,navigate:s}}function C6(e){return e.length===1?e[0]:e}const T6=lt({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:t2,setup(e,{slots:t}){const n=xo(t2(e)),{options:r}=Xi(p0),i=Le(()=>({[r2(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[r2(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&C6(t.default(n));return e.custom?o:zo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),E6=T6;function A6(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 M6(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Co(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function n2(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const r2=(e,t,n)=>e??t??n,R6=lt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Xi(jw),i=Le(()=>e.route||r.value),o=Xi(e2,0),a=Le(()=>{let u=$(o);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=Le(()=>i.value.matched[a.value]);hg(e2,Le(()=>a.value+1)),hg(x6,s),hg(jw,i);const l=Ie();return kt(()=>[l.value,s.value,e.name],([u,c,f],[p,d,g])=>{c&&(c.instances[f]=u,d&&d!==c&&u&&u===p&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!Hc(c,d)||!p)&&(c.enterCallbacks[f]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,p=f&&f.components[c];if(!p)return i2(n.default,{Component:p,route:u});const d=f.props[c],g=d?d===!0?u.params:typeof d=="function"?d(u):d:null,_=zo(p,qt({},g,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return i2(n.default,{Component:_,route:u})||_}}});function i2(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const JS=R6;function D6(e){const t=g6(e.routes,e),n=e.parseQuery||b6,r=e.stringifyQuery||JA,i=e.history,o=Of(),a=Of(),s=Of(),l=zd(cs);let u=cs;sc&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=P_.bind(null,le=>""+le),f=P_.bind(null,UW),p=P_.bind(null,md);function d(le,Te){let _e,xe;return zL(le)?(_e=t.getRecordMatcher(le),xe=Te):xe=le,t.addRoute(xe,_e)}function g(le){const Te=t.getRecordMatcher(le);Te&&t.removeRoute(Te)}function y(){return t.getRoutes().map(le=>le.record)}function _(le){return!!t.getRecordMatcher(le)}function m(le,Te){if(Te=qt({},Te||l.value),typeof le=="string"){const B=L_(n,le,Te.path),ne=t.resolve({path:B.path},Te),me=i.createHref(B.fullPath);return qt(B,ne,{params:p(ne.params),hash:md(B.hash),redirectedFrom:void 0,href:me})}let _e;if(le.path!=null)_e=qt({},le,{path:L_(n,le.path,Te.path).path});else{const B=qt({},le.params);for(const ne in B)B[ne]==null&&delete B[ne];_e=qt({},le,{params:f(B)}),Te.params=f(Te.params)}const xe=t.resolve(_e,Te),Ee=le.hash||"";xe.params=c(p(xe.params));const De=WW(r,qt({},le,{hash:BW(Ee),path:xe.path})),N=i.createHref(De);return qt({fullPath:De,hash:Ee,query:r===JA?S6(le.query):le.query||{}},xe,{redirectedFrom:void 0,href:N})}function b(le){return typeof le=="string"?L_(n,le,l.value.path):qt({},le)}function S(le,Te){if(u!==le)return Uc(8,{from:Te,to:le})}function x(le){return A(le)}function E(le){return x(qt(b(le),{replace:!0}))}function T(le){const Te=le.matched[le.matched.length-1];if(Te&&Te.redirect){const{redirect:_e}=Te;let xe=typeof _e=="function"?_e(le):_e;return typeof xe=="string"&&(xe=xe.includes("?")||xe.includes("#")?xe=b(xe):{path:xe},xe.params={}),qt({query:le.query,hash:le.hash,params:xe.path!=null?{}:le.params},xe)}}function A(le,Te){const _e=u=m(le),xe=l.value,Ee=le.state,De=le.force,N=le.replace===!0,B=T(_e);if(B)return A(qt(b(B),{state:typeof B=="object"?qt({},Ee,B.state):Ee,force:De,replace:N}),Te||_e);const ne=_e;ne.redirectedFrom=Te;let me;return!De&&YW(r,xe,_e)&&(me=Uc(16,{to:ne,from:xe}),we(xe,xe,!0,!1)),(me?Promise.resolve(me):O(ne,xe)).catch(ue=>ya(ue)?ya(ue,2)?ue:ye(ue):J(ue,ne,xe)).then(ue=>{if(ue){if(ya(ue,2))return A(qt({replace:N},b(ue.to),{state:typeof ue.to=="object"?qt({},Ee,ue.to.state):Ee,force:De}),Te||ne)}else ue=H(ne,xe,!0,N,Ee);return k(ne,xe,ue),ue})}function D(le,Te){const _e=S(le,Te);return _e?Promise.reject(_e):Promise.resolve()}function P(le){const Te=je.values().next().value;return Te&&typeof Te.runWithContext=="function"?Te.runWithContext(le):le()}function O(le,Te){let _e;const[xe,Ee,De]=I6(le,Te);_e=O_(xe.reverse(),"beforeRouteLeave",le,Te);for(const B of xe)B.leaveGuards.forEach(ne=>{_e.push(As(ne,le,Te))});const N=D.bind(null,le,Te);return _e.push(N),We(_e).then(()=>{_e=[];for(const B of o.list())_e.push(As(B,le,Te));return _e.push(N),We(_e)}).then(()=>{_e=O_(Ee,"beforeRouteUpdate",le,Te);for(const B of Ee)B.updateGuards.forEach(ne=>{_e.push(As(ne,le,Te))});return _e.push(N),We(_e)}).then(()=>{_e=[];for(const B of De)if(B.beforeEnter)if(Co(B.beforeEnter))for(const ne of B.beforeEnter)_e.push(As(ne,le,Te));else _e.push(As(B.beforeEnter,le,Te));return _e.push(N),We(_e)}).then(()=>(le.matched.forEach(B=>B.enterCallbacks={}),_e=O_(De,"beforeRouteEnter",le,Te,P),_e.push(N),We(_e))).then(()=>{_e=[];for(const B of a.list())_e.push(As(B,le,Te));return _e.push(N),We(_e)}).catch(B=>ya(B,8)?B:Promise.reject(B))}function k(le,Te,_e){s.list().forEach(xe=>P(()=>xe(le,Te,_e)))}function H(le,Te,_e,xe,Ee){const De=S(le,Te);if(De)return De;const N=Te===cs,B=sc?history.state:{};_e&&(xe||N?i.replace(le.fullPath,qt({scroll:N&&B&&B.scroll},Ee)):i.push(le.fullPath,Ee)),l.value=le,we(le,Te,_e,N),ye()}let te;function W(){te||(te=i.listen((le,Te,_e)=>{if(!He.listening)return;const xe=m(le),Ee=T(xe);if(Ee){A(qt(Ee,{replace:!0,force:!0}),xe).catch(Ph);return}u=xe;const De=l.value;sc&&e6(GA(De.fullPath,_e.delta),d0()),O(xe,De).catch(N=>ya(N,12)?N:ya(N,2)?(A(qt(b(N.to),{force:!0}),xe).then(B=>{ya(B,20)&&!_e.delta&&_e.type===yd.pop&&i.go(-1,!1)}).catch(Ph),Promise.reject()):(_e.delta&&i.go(-_e.delta,!1),J(N,xe,De))).then(N=>{N=N||H(xe,De,!1),N&&(_e.delta&&!ya(N,8)?i.go(-_e.delta,!1):_e.type===yd.pop&&ya(N,20)&&i.go(-1,!1)),k(xe,De,N)}).catch(Ph)}))}let q=Of(),j=Of(),ie;function J(le,Te,_e){ye(le);const xe=j.list();return xe.length?xe.forEach(Ee=>Ee(le,Te,_e)):console.error(le),Promise.reject(le)}function ce(){return ie&&l.value!==cs?Promise.resolve():new Promise((le,Te)=>{q.add([le,Te])})}function ye(le){return ie||(ie=!le,W(),q.list().forEach(([Te,_e])=>le?_e(le):Te()),q.reset()),le}function we(le,Te,_e,xe){const{scrollBehavior:Ee}=e;if(!sc||!Ee)return Promise.resolve();const De=!_e&&t6(GA(le.fullPath,0))||(xe||!_e)&&history.state&&history.state.scroll||null;return Eo().then(()=>Ee(le,Te,De)).then(N=>N&&JW(N)).catch(N=>J(N,le,Te))}const Ne=le=>i.go(le);let ke;const je=new Set,He={currentRoute:l,listening:!0,addRoute:d,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:y,resolve:m,options:e,push:x,replace:E,go:Ne,back:()=>Ne(-1),forward:()=>Ne(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:j.add,isReady:ce,install(le){const Te=this;le.component("RouterLink",E6),le.component("RouterView",JS),le.config.globalProperties.$router=Te,Object.defineProperty(le.config.globalProperties,"$route",{enumerable:!0,get:()=>$(l)}),sc&&!ke&&l.value===cs&&(ke=!0,x(i.location).catch(Ee=>{}));const _e={};for(const Ee in cs)Object.defineProperty(_e,Ee,{get:()=>l.value[Ee],enumerable:!0});le.provide(p0,Te),le.provide(QS,KP(_e)),le.provide(jw,l);const xe=le.unmount;je.add(le),le.unmount=function(){je.delete(le),je.size<1&&(u=cs,te&&te(),te=null,l.value=cs,ke=!1,ie=!1),xe()}}};function We(le){return le.reduce((Te,_e)=>Te.then(()=>P(_e)),Promise.resolve())}return He}function I6(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;aHc(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>Hc(u,l))||i.push(l))}return[n,r,i]}function P6(){return Xi(p0)}function jL(e){return Xi(QS)}function qL(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 L6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function O6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 XL(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 k6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 KL(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 o2(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function ZL(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 N6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function QL(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 F6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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"}),F("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function $6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 B6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 V6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 JL(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 a2(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 s2(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 eO(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function H6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.25 9v6m-4.5 0V9M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function tO(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function U6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),F("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"})])}function nO(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 rO(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function iO(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})])}function z6(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("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 v0(e,t){return X(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const Kl=0;var $a=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e))($a||{}),Ds=(e=>(e.MI_SANS="MiSans",e.SARASA_UI="SarasaUi",e.PING_FANG="PingFang",e.FIRA_SANS="FiraSans",e.SYSTEM_UI="SystemUI",e))(Ds||{}),$t=(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))($t||{}),Is=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(Is||{}),_d=(e=>(e.AUTO="auto",e.DOTS="dots",e.BAR="bar",e))(_d||{}),zc=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(zc||{}),pu=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(pu||{}),jr=(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))(jr||{}),Aa=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(Aa||{}),Zl=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(Zl||{}),Bt=(e=>(e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e.setup="setup",e))(Bt||{});const oO={proxies:V6,connections:ZL,rules:z6,logs:B6,settings:F6};function g0(e){return OP()?(kP(e),!0):!1}function bu(e){return typeof e=="function"?e():$(e)}const aO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const G6=e=>e!=null,W6=Object.prototype.toString,Y6=e=>W6.call(e)==="[object Object]",um=()=>{};function j6(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const sO=e=>e();function q6(e=sO){const t=Ie(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:l0(t),pause:n,resume:r,eventFilter:i}}function lO(e){return Jo()}function X6(...e){if(e.length!==1)return G8(...e);const t=e[0];return typeof t=="function"?l0(V8(()=>({get:t,set:um}))):Ie(t)}function K6(e,t,n={}){const{eventFilter:r=sO,...i}=n;return kt(e,j6(r,t),i)}function Z6(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:a,resume:s,isActive:l}=q6(r);return{stop:K6(e,t,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function Q6(e,t){lO()&&lL(e,t)}function ex(e,t=!0,n){lO()?tl(e,n):t?e():Eo(e)}const za=aO?window:void 0,J6=aO?window.document:void 0;function Ls(e){var t;const n=bu(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Tc(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=za):[t,n,r,i]=e,!t)return um;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,f,p,d)=>(c.addEventListener(f,p,d),()=>c.removeEventListener(f,p,d)),l=kt(()=>[Ls(t),bu(i)],([c,f])=>{if(a(),!c)return;const p=Y6(f)?{...f}:f;o.push(...n.flatMap(d=>r.map(g=>s(c,d,g,p))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return g0(u),u}function e9(){const e=Ie(!1),t=Jo();return t&&tl(()=>{e.value=!0},t),e}function tx(e){const t=e9();return Le(()=>(t.value,!!e()))}function t9(e,t,n={}){const{window:r=za,...i}=n;let o;const a=tx(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Le(()=>{const p=bu(e),d=(Array.isArray(p)?p:[p]).map(Ls).filter(G6);return new Set(d)}),u=kt(()=>l.value,p=>{s(),a.value&&p.size&&(o=new MutationObserver(t),p.forEach(d=>o.observe(d,i)))},{immediate:!0,flush:"post"}),c=()=>o==null?void 0:o.takeRecords(),f=()=>{u(),s()};return g0(f),{isSupported:a,stop:f,takeRecords:c}}function n9(e,t={}){const{window:n=za}=t,r=tx(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const o=Ie(!1),a=u=>{o.value=u.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},l=jS(()=>{r.value&&(s(),i=n.matchMedia(bu(e)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),o.value=i.matches)});return g0(()=>{l(),s(),i=void 0}),o}const ov=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},av="__vueuse_ssr_handlers__",r9=i9();function i9(){return av in ov||(ov[av]=ov[av]||{}),ov[av]}function o9(e,t){return r9[e]||t}function a9(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 s9={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()}},l2="vueuse-storage";function Qt(e,t,n,r={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=za,eventFilter:p,onError:d=O=>{console.error(O)},initOnMounted:g}=r,y=(c?zd:Ie)(typeof t=="function"?t():t);if(!n)try{n=o9("getDefaultStorage",()=>{var O;return(O=za)==null?void 0:O.localStorage})()}catch(O){d(O)}if(!n)return y;const _=bu(t),m=a9(_),b=(i=r.serializer)!=null?i:s9[m],{pause:S,resume:x}=Z6(y,()=>T(y.value),{flush:o,deep:a,eventFilter:p});f&&s&&ex(()=>{n instanceof Storage?Tc(f,"storage",D):Tc(f,l2,P),g&&D()}),g||D();function E(O,k){if(f){const H={key:e,oldValue:O,newValue:k,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(l2,{detail:H}))}}function T(O){try{const k=n.getItem(e);if(O==null)E(k,null),n.removeItem(e);else{const H=b.write(O);k!==H&&(n.setItem(e,H),E(k,H))}}catch(k){d(k)}}function A(O){const k=O?O.newValue:n.getItem(e);if(k==null)return l&&_!=null&&n.setItem(e,b.write(_)),_;if(!O&&u){const H=b.read(k);return typeof u=="function"?u(H,_):m==="object"&&!Array.isArray(H)?{..._,...H}:H}else return typeof k!="string"?k:b.read(k)}function D(O){if(!(O&&O.storageArea!==n)){if(O&&O.key==null){y.value=_;return}if(!(O&&O.key!==e)){S();try{(O==null?void 0:O.newValue)!==b.write(y.value)&&(y.value=A(O))}catch(k){d(k)}finally{O?Eo(x):x()}}}}function P(O){D(O.detail)}return y}function l9(e,t,n={}){const{window:r=za,...i}=n;let o;const a=tx(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Le(()=>{const f=bu(e);return Array.isArray(f)?f.map(p=>Ls(p)):[Ls(f)]}),u=kt(l,f=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const p of f)p&&o.observe(p,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return g0(c),{isSupported:a,stop:c}}function u9(e,t={width:0,height:0},n={}){const{window:r=za,box:i="content-box"}=n,o=Le(()=>{var f,p;return(p=(f=Ls(e))==null?void 0:f.namespaceURI)==null?void 0:p.includes("svg")}),a=Ie(t.width),s=Ie(t.height),{stop:l}=l9(e,([f])=>{const p=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&o.value){const d=Ls(e);if(d){const g=d.getBoundingClientRect();a.value=g.width,s.value=g.height}}else if(p){const d=Array.isArray(p)?p:[p];a.value=d.reduce((g,{inlineSize:y})=>g+y,0),s.value=d.reduce((g,{blockSize:y})=>g+y,0)}else a.value=f.contentRect.width,s.value=f.contentRect.height},n);ex(()=>{const f=Ls(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=kt(()=>Ls(e),f=>{a.value=f?t.width:0,s.value=f?t.height:0});function c(){l(),u()}return{width:a,height:s,stop:c}}function c9(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:a=!0,window:s=za}=t,l=xo({x:0,y:0}),u=xo({x:0,y:0}),c=Le(()=>l.x-u.x),f=Le(()=>l.y-u.y),{max:p,abs:d}=Math,g=Le(()=>p(d(c.value),d(f.value))>=n),y=Ie(!1),_=Le(()=>g.value?d(c.value)>d(f.value)?c.value>0?"left":"right":f.value>0?"up":"down":"none"),m=P=>[P.touches[0].clientX,P.touches[0].clientY],b=(P,O)=>{l.x=P,l.y=O},S=(P,O)=>{u.x=P,u.y=O};let x;const E=f9(s==null?void 0:s.document);a?x=E?{passive:!0}:{capture:!1}:x=E?{passive:!1,capture:!0}:{capture:!0};const T=P=>{y.value&&(i==null||i(P,_.value)),y.value=!1},A=[Tc(e,"touchstart",P=>{if(P.touches.length!==1)return;const[O,k]=m(P);b(O,k),S(O,k),o==null||o(P)},x),Tc(e,"touchmove",P=>{if(P.touches.length!==1)return;const[O,k]=m(P);S(O,k),x.capture&&!x.passive&&Math.abs(c.value)>Math.abs(f.value)&&P.preventDefault(),!y.value&&g.value&&(y.value=!0),y.value&&(r==null||r(P))},x),Tc(e,["touchend","touchcancel"],T,x)];return{isPassiveEventSupported:E,isSwiping:y,direction:_,coordsStart:l,coordsEnd:u,lengthX:c,lengthY:f,stop:()=>A.forEach(P=>P())}}function f9(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",um,n),e.removeEventListener("x",um),t}function h9(e=null,t={}){var n,r,i;const{document:o=J6,restoreOnUnmount:a=f=>f}=t,s=(n=o==null?void 0:o.title)!=null?n:"",l=X6((r=e??(o==null?void 0:o.title))!=null?r:null),u=e&&typeof e=="function";function c(f){if(!("titleTemplate"in t))return f;const p=t.titleTemplate||"%s";return typeof p=="function"?p(f):bu(p).replace(/%s/g,f)}return kt(l,(f,p)=>{f!==p&&o&&(o.title=c(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!u&&t9((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=c(o.title))},{childList:!0}),Q6(()=>{if(a){const f=a(s,l.value||"");f!=null&&o&&(o.title=f)}}),l}function d9(e={}){const{window:t=za,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=e,s=Ie(n),l=Ie(r),u=()=>{t&&(a==="outer"?(s.value=t.outerWidth,l.value=t.outerHeight):o?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(u(),ex(u),Tc("resize",u,{passive:!0}),i){const c=n9("(orientation: portrait)");kt(c,()=>u())}return{width:s,height:l}}const Ec=Qt("config/theme","default"),Pa=Qt("config/language",Object.values($a).includes(navigator.language)?navigator.language:$a.EN_US),au=Qt("config/is-sidebar-collapsed",!0),Oh=Qt("config/font",Ds.MI_SANS),vg=Qt("config/auto-upgrade",!1),gg=Qt("config/show-global-proxy",!0),k_=Qt("config/collapse-group-map",{}),kh=Qt("config/two-columns",!0),Nh=Qt("config/speedtest-url","http://www.gstatic.com/generate_204"),Fh=Qt("config/speedtest-timeout",5e3),mg=Qt("config/proxy-sort-type",Is.DEFAULT),yg=Qt("config/automatic-disconnection",!0),$h=Qt("config/two-column-for-mobile",!0),Bh=Qt("config/truncate-proxy-name",!0),Vh=Qt("config/proxy-preview-type",_d.AUTO),_g=Qt("config/hide-unavailable-proxies",!1),Os=Qt("config/low-latency",300),Da=Qt("config/medium-latency",800),Ql=Qt("config/use-connecticon-card",!1),jl=Qt("config/connection-table-columns",[$t.Close,$t.Host,$t.Type,$t.Rule,$t.Chains,$t.Download,$t.Upload,$t.DlSpeed,$t.UlSpeed,$t.ConnectTime]),wg=Qt("config/compact-connection-card",!0),mi=Qt("config/source-ip-label-map",{}),bg=Qt("config/log-retention-limit",1e3),p9=["data-theme"],v9=lt({__name:"App",setup(e){const t=Ie(),n=()=>{const o=getComputedStyle(t.value).getPropertyValue("background-color").trim(),a=document.querySelector('meta[name="theme-color"]');a&&a.setAttribute("content",o)};tl(()=>{n(),kt(Ec,()=>{Eo(n)})});const r={[Ds.MI_SANS]:"font-MiSans",[Ds.SARASA_UI]:"font-SarasaUI",[Ds.PING_FANG]:"font-PingFang",[Ds.FIRA_SANS]:"font-FiraSans",[Ds.SYSTEM_UI]:"font-SystemUI"},i=Le(()=>r[Oh.value]);return(o,a)=>(X(),ae("div",{ref_key:"app",ref:t,class:ot(`flex h-dvh w-screen overflow-x-hidden bg-base-100 ${i.value}`),"data-theme":$(Ec)},[Se($(JS))],10,p9))}});/*! * shared v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */const um=typeof window<"u",nl=(e,t=!1)=>t?Symbol.for(e):Symbol(e),g9=(e,t,n)=>m9({l:e,k:t,s:n}),m9=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Vn=e=>typeof e=="number"&&isFinite(e),y9=e=>nx(e)==="[object Date]",Gc=e=>nx(e)==="[object RegExp]",g0=e=>Mt(e)&&Object.keys(e).length===0,Xn=Object.assign,_9=Object.create,sn=(e=null)=>_9(e);let c2;const Jl=()=>c2||(c2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:sn());function f2(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const w9=Object.prototype.hasOwnProperty;function go(e,t){return w9.call(e,t)}const Ln=Array.isArray,bn=e=>typeof e=="function",Fe=e=>typeof e=="string",Vt=e=>typeof e=="boolean",Wt=e=>e!==null&&typeof e=="object",b9=e=>Wt(e)&&bn(e.then)&&bn(e.catch),cO=Object.prototype.toString,nx=e=>cO.call(e),Mt=e=>nx(e)==="[object Object]",S9=e=>e==null?"":Ln(e)||Mt(e)&&e.toString===cO?JSON.stringify(e,null,2):String(e);function rx(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function x9(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const av=e=>!Wt(e)||Ln(e);function bg(e,t){if(av(e)||av(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(Wt(r[o])&&!Wt(i[o])&&(i[o]=Array.isArray(r[o])?[]:sn()),av(i[o])||av(r[o])?i[o]=r[o]:n.push({src:r[o],des:i[o]}))})}}/*! + */const cm=typeof window<"u",nl=(e,t=!1)=>t?Symbol.for(e):Symbol(e),g9=(e,t,n)=>m9({l:e,k:t,s:n}),m9=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Vn=e=>typeof e=="number"&&isFinite(e),y9=e=>nx(e)==="[object Date]",Gc=e=>nx(e)==="[object RegExp]",m0=e=>At(e)&&Object.keys(e).length===0,Xn=Object.assign,_9=Object.create,sn=(e=null)=>_9(e);let u2;const Jl=()=>u2||(u2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:sn());function c2(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const w9=Object.prototype.hasOwnProperty;function go(e,t){return w9.call(e,t)}const Ln=Array.isArray,bn=e=>typeof e=="function",Fe=e=>typeof e=="string",Vt=e=>typeof e=="boolean",Wt=e=>e!==null&&typeof e=="object",b9=e=>Wt(e)&&bn(e.then)&&bn(e.catch),uO=Object.prototype.toString,nx=e=>uO.call(e),At=e=>nx(e)==="[object Object]",S9=e=>e==null?"":Ln(e)||At(e)&&e.toString===uO?JSON.stringify(e,null,2):String(e);function rx(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function x9(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const sv=e=>!Wt(e)||Ln(e);function Sg(e,t){if(sv(e)||sv(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(Wt(r[o])&&!Wt(i[o])&&(i[o]=Array.isArray(r[o])?[]:sn()),sv(i[o])||sv(r[o])?i[o]=r[o]:n.push({src:r[o],des:i[o]}))})}}/*! * message-compiler v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */function C9(e,t,n){return{line:e,column:t,offset:n}}function qw(e,t,n){return{start:e,end:t}}const tn={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},T9=17;function m0(e,t,n={}){const{domain:r,messages:i,args:o}=n,a=e,s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=r,s}function E9(e){throw e}const _a=" ",A9="\r",Dr=` -`,M9="\u2028",R9="\u2029";function D9(e){const t=e;let n=0,r=1,i=1,o=0;const a=A=>t[A]===A9&&t[A+1]===Dr,s=A=>t[A]===Dr,l=A=>t[A]===R9,u=A=>t[A]===M9,c=A=>a(A)||s(A)||l(A)||u(A),f=()=>n,p=()=>r,d=()=>i,g=()=>o,y=A=>a(A)||l(A)||u(A)?Dr:t[A],_=()=>y(n),m=()=>y(n+o);function b(){return o=0,c(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function S(){return a(n+o)&&o++,o++,t[n+o]}function x(){n=0,r=1,i=1,o=0}function E(A=0){o=A}function T(){const A=n+o;for(;A!==n;)b();o=0}return{index:f,line:p,column:d,peekOffset:g,charAt:y,currentChar:_,currentPeek:m,next:b,peek:S,reset:x,resetPeek:E,skipToPeek:T}}const fs=void 0,I9=".",h2="'",P9="tokenizer";function L9(e,t={}){const n=t.location!==!1,r=D9(e),i=()=>r.index(),o=()=>C9(r.line(),r.column(),r.index()),a=o(),s=i(),l={currentType:13,offset:s,startLoc:a,endLoc:a,lastType:13,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(L,V,Z,...oe){const pe=u();if(V.column+=Z,V.offset+=Z,c){const Ce=n?qw(pe.startLoc,V):null,Y=m0(L,Ce,{domain:P9,args:oe});c(Y)}}function p(L,V,Z){L.endLoc=o(),L.currentType=V;const oe={type:V};return n&&(oe.loc=qw(L.startLoc,L.endLoc)),Z!=null&&(oe.value=Z),oe}const d=L=>p(L,13);function g(L,V){return L.currentChar()===V?(L.next(),V):(f(tn.EXPECTED_TOKEN,o(),0,V),"")}function y(L){let V="";for(;L.currentPeek()===_a||L.currentPeek()===Dr;)V+=L.currentPeek(),L.peek();return V}function _(L){const V=y(L);return L.skipToPeek(),V}function m(L){if(L===fs)return!1;const V=L.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V===95}function b(L){if(L===fs)return!1;const V=L.charCodeAt(0);return V>=48&&V<=57}function S(L,V){const{currentType:Z}=V;if(Z!==2)return!1;y(L);const oe=m(L.currentPeek());return L.resetPeek(),oe}function x(L,V){const{currentType:Z}=V;if(Z!==2)return!1;y(L);const oe=L.currentPeek()==="-"?L.peek():L.currentPeek(),pe=b(oe);return L.resetPeek(),pe}function E(L,V){const{currentType:Z}=V;if(Z!==2)return!1;y(L);const oe=L.currentPeek()===h2;return L.resetPeek(),oe}function T(L,V){const{currentType:Z}=V;if(Z!==7)return!1;y(L);const oe=L.currentPeek()===".";return L.resetPeek(),oe}function A(L,V){const{currentType:Z}=V;if(Z!==8)return!1;y(L);const oe=m(L.currentPeek());return L.resetPeek(),oe}function D(L,V){const{currentType:Z}=V;if(!(Z===7||Z===11))return!1;y(L);const oe=L.currentPeek()===":";return L.resetPeek(),oe}function P(L,V){const{currentType:Z}=V;if(Z!==9)return!1;const oe=()=>{const Ce=L.currentPeek();return Ce==="{"?m(L.peek()):Ce==="@"||Ce==="|"||Ce===":"||Ce==="."||Ce===_a||!Ce?!1:Ce===Dr?(L.peek(),oe()):k(L,!1)},pe=oe();return L.resetPeek(),pe}function O(L){y(L);const V=L.currentPeek()==="|";return L.resetPeek(),V}function k(L,V=!0){const Z=(pe=!1,Ce="")=>{const Y=L.currentPeek();return Y==="{"||Y==="@"||!Y?pe:Y==="|"?!(Ce===_a||Ce===Dr):Y===_a?(L.peek(),Z(!0,_a)):Y===Dr?(L.peek(),Z(!0,Dr)):!0},oe=Z();return V&&L.resetPeek(),oe}function H(L,V){const Z=L.currentChar();return Z===fs?fs:V(Z)?(L.next(),Z):null}function te(L){const V=L.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36}function W(L){return H(L,te)}function q(L){const V=L.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36||V===45}function j(L){return H(L,q)}function ie(L){const V=L.charCodeAt(0);return V>=48&&V<=57}function J(L){return H(L,ie)}function ce(L){const V=L.charCodeAt(0);return V>=48&&V<=57||V>=65&&V<=70||V>=97&&V<=102}function ye(L){return H(L,ce)}function we(L){let V="",Z="";for(;V=J(L);)Z+=V;return Z}function Ne(L){let V="";for(;;){const Z=L.currentChar();if(Z==="{"||Z==="}"||Z==="@"||Z==="|"||!Z)break;if(Z===_a||Z===Dr)if(k(L))V+=Z,L.next();else{if(O(L))break;V+=Z,L.next()}else V+=Z,L.next()}return V}function ke(L){_(L);let V="",Z="";for(;V=j(L);)Z+=V;return L.currentChar()===fs&&f(tn.UNTERMINATED_CLOSING_BRACE,o(),0),Z}function je(L){_(L);let V="";return L.currentChar()==="-"?(L.next(),V+=`-${we(L)}`):V+=we(L),L.currentChar()===fs&&f(tn.UNTERMINATED_CLOSING_BRACE,o(),0),V}function He(L){return L!==h2&&L!==Dr}function We(L){_(L),g(L,"'");let V="",Z="";for(;V=H(L,He);)V==="\\"?Z+=le(L):Z+=V;const oe=L.currentChar();return oe===Dr||oe===fs?(f(tn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),oe===Dr&&(L.next(),g(L,"'")),Z):(g(L,"'"),Z)}function le(L){const V=L.currentChar();switch(V){case"\\":case"'":return L.next(),`\\${V}`;case"u":return Te(L,V,4);case"U":return Te(L,V,6);default:return f(tn.UNKNOWN_ESCAPE_SEQUENCE,o(),0,V),""}}function Te(L,V,Z){g(L,V);let oe="";for(let pe=0;pe{const oe=L.currentChar();return oe==="{"||oe==="@"||oe==="|"||oe==="("||oe===")"||!oe||oe===_a?Z:(Z+=oe,L.next(),V(Z))};return V("")}function F(L){_(L);const V=g(L,"|");return _(L),V}function B(L,V){let Z=null;switch(L.currentChar()){case"{":return V.braceNest>=1&&f(tn.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),L.next(),Z=p(V,2,"{"),_(L),V.braceNest++,Z;case"}":return V.braceNest>0&&V.currentType===2&&f(tn.EMPTY_PLACEHOLDER,o(),0),L.next(),Z=p(V,3,"}"),V.braceNest--,V.braceNest>0&&_(L),V.inLinked&&V.braceNest===0&&(V.inLinked=!1),Z;case"@":return V.braceNest>0&&f(tn.UNTERMINATED_CLOSING_BRACE,o(),0),Z=ne(L,V)||d(V),V.braceNest=0,Z;default:{let pe=!0,Ce=!0,Y=!0;if(O(L))return V.braceNest>0&&f(tn.UNTERMINATED_CLOSING_BRACE,o(),0),Z=p(V,1,F(L)),V.braceNest=0,V.inLinked=!1,Z;if(V.braceNest>0&&(V.currentType===4||V.currentType===5||V.currentType===6))return f(tn.UNTERMINATED_CLOSING_BRACE,o(),0),V.braceNest=0,me(L,V);if(pe=S(L,V))return Z=p(V,4,ke(L)),_(L),Z;if(Ce=x(L,V))return Z=p(V,5,je(L)),_(L),Z;if(Y=E(L,V))return Z=p(V,6,We(L)),_(L),Z;if(!pe&&!Ce&&!Y)return Z=p(V,12,xe(L)),f(tn.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,Z.value),_(L),Z;break}}return Z}function ne(L,V){const{currentType:Z}=V;let oe=null;const pe=L.currentChar();switch((Z===7||Z===8||Z===11||Z===9)&&(pe===Dr||pe===_a)&&f(tn.INVALID_LINKED_FORMAT,o(),0),pe){case"@":return L.next(),oe=p(V,7,"@"),V.inLinked=!0,oe;case".":return _(L),L.next(),p(V,8,".");case":":return _(L),L.next(),p(V,9,":");default:return O(L)?(oe=p(V,1,F(L)),V.braceNest=0,V.inLinked=!1,oe):T(L,V)||D(L,V)?(_(L),ne(L,V)):A(L,V)?(_(L),p(V,11,Ee(L))):P(L,V)?(_(L),pe==="{"?B(L,V)||oe:p(V,10,De(L))):(Z===7&&f(tn.INVALID_LINKED_FORMAT,o(),0),V.braceNest=0,V.inLinked=!1,me(L,V))}}function me(L,V){let Z={type:13};if(V.braceNest>0)return B(L,V)||d(V);if(V.inLinked)return ne(L,V)||d(V);switch(L.currentChar()){case"{":return B(L,V)||d(V);case"}":return f(tn.UNBALANCED_CLOSING_BRACE,o(),0),L.next(),p(V,3,"}");case"@":return ne(L,V)||d(V);default:{if(O(L))return Z=p(V,1,F(L)),V.braceNest=0,V.inLinked=!1,Z;if(k(L))return p(V,0,Ne(L));break}}return Z}function ue(){const{currentType:L,offset:V,startLoc:Z,endLoc:oe}=l;return l.lastType=L,l.lastOffset=V,l.lastStartLoc=Z,l.lastEndLoc=oe,l.offset=i(),l.startLoc=o(),r.currentChar()===fs?p(l,13):me(r,l)}return{nextToken:ue,currentOffset:i,currentPosition:o,context:u}}const O9="parser",k9=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function N9(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function F9(e={}){const t=e.location!==!1,{onError:n}=e;function r(m,b,S,x,...E){const T=m.currentPosition();if(T.offset+=x,T.column+=x,n){const A=t?qw(S,T):null,D=m0(b,A,{domain:O9,args:E});n(D)}}function i(m,b,S){const x={type:m};return t&&(x.start=b,x.end=b,x.loc={start:S,end:S}),x}function o(m,b,S,x){t&&(m.end=b,m.loc&&(m.loc.end=S))}function a(m,b){const S=m.context(),x=i(3,S.offset,S.startLoc);return x.value=b,o(x,m.currentOffset(),m.currentPosition()),x}function s(m,b){const S=m.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(5,x,E);return T.index=parseInt(b,10),m.nextToken(),o(T,m.currentOffset(),m.currentPosition()),T}function l(m,b){const S=m.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(4,x,E);return T.key=b,m.nextToken(),o(T,m.currentOffset(),m.currentPosition()),T}function u(m,b){const S=m.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(9,x,E);return T.value=b.replace(k9,N9),m.nextToken(),o(T,m.currentOffset(),m.currentPosition()),T}function c(m){const b=m.nextToken(),S=m.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(8,x,E);return b.type!==11?(r(m,tn.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),T.value="",o(T,x,E),{nextConsumeToken:b,node:T}):(b.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Lo(b)),T.value=b.value||"",o(T,m.currentOffset(),m.currentPosition()),{node:T})}function f(m,b){const S=m.context(),x=i(7,S.offset,S.startLoc);return x.value=b,o(x,m.currentOffset(),m.currentPosition()),x}function p(m){const b=m.context(),S=i(6,b.offset,b.startLoc);let x=m.nextToken();if(x.type===8){const E=c(m);S.modifier=E.node,x=E.nextConsumeToken||m.nextToken()}switch(x.type!==9&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(x)),x=m.nextToken(),x.type===2&&(x=m.nextToken()),x.type){case 10:x.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(x)),S.key=f(m,x.value||"");break;case 4:x.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(x)),S.key=l(m,x.value||"");break;case 5:x.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(x)),S.key=s(m,x.value||"");break;case 6:x.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(x)),S.key=u(m,x.value||"");break;default:{r(m,tn.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const E=m.context(),T=i(7,E.offset,E.startLoc);return T.value="",o(T,E.offset,E.startLoc),S.key=T,o(S,E.offset,E.startLoc),{nextConsumeToken:x,node:S}}}return o(S,m.currentOffset(),m.currentPosition()),{node:S}}function d(m){const b=m.context(),S=b.currentType===1?m.currentOffset():b.offset,x=b.currentType===1?b.endLoc:b.startLoc,E=i(2,S,x);E.items=[];let T=null;do{const P=T||m.nextToken();switch(T=null,P.type){case 0:P.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(P)),E.items.push(a(m,P.value||""));break;case 5:P.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(P)),E.items.push(s(m,P.value||""));break;case 4:P.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(P)),E.items.push(l(m,P.value||""));break;case 6:P.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(P)),E.items.push(u(m,P.value||""));break;case 7:{const O=p(m);E.items.push(O.node),T=O.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const A=b.currentType===1?b.lastOffset:m.currentOffset(),D=b.currentType===1?b.lastEndLoc:m.currentPosition();return o(E,A,D),E}function g(m,b,S,x){const E=m.context();let T=x.items.length===0;const A=i(1,b,S);A.cases=[],A.cases.push(x);do{const D=d(m);T||(T=D.items.length===0),A.cases.push(D)}while(E.currentType!==13);return T&&r(m,tn.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),o(A,m.currentOffset(),m.currentPosition()),A}function y(m){const b=m.context(),{offset:S,startLoc:x}=b,E=d(m);return b.currentType===13?E:g(m,S,x,E)}function _(m){const b=L9(m,Xn({},e)),S=b.context(),x=i(0,S.offset,S.startLoc);return t&&x.loc&&(x.loc.source=m),x.body=y(b),e.onCacheKey&&(x.cacheKey=e.onCacheKey(m)),S.currentType!==13&&r(b,tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,m[S.offset]||""),o(x,b.currentOffset(),b.currentPosition()),x}return{parse:_}}function Lo(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 $9(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function d2(e,t){for(let n=0;np2(n)),e}function p2(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 n=0;ns;function u(_,m){s.code+=_}function c(_,m=!0){const b=m?i:"";u(o?b+" ".repeat(_):b)}function f(_=!0){const m=++s.indentLevel;_&&c(m)}function p(_=!0){const m=--s.indentLevel;_&&c(m)}function d(){c(s.indentLevel)}return{context:l,push:u,indent:f,deindent:p,newline:d,helper:_=>`_${_}`,needIndent:()=>s.needIndent}}function U9(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Wc(e,t.key),t.modifier?(e.push(", "),Wc(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function z9(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let o=0;o1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let o=0;o{const n=Fe(t.mode)?t.mode:"normal",r=Fe(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` + */function C9(e,t,n){return{line:e,column:t,offset:n}}function qw(e,t,n){return{start:e,end:t}}const tn={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},T9=17;function y0(e,t,n={}){const{domain:r,messages:i,args:o}=n,a=e,s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=r,s}function E9(e){throw e}const _a=" ",A9="\r",Dr=` +`,M9="\u2028",R9="\u2029";function D9(e){const t=e;let n=0,r=1,i=1,o=0;const a=A=>t[A]===A9&&t[A+1]===Dr,s=A=>t[A]===Dr,l=A=>t[A]===R9,u=A=>t[A]===M9,c=A=>a(A)||s(A)||l(A)||u(A),f=()=>n,p=()=>r,d=()=>i,g=()=>o,y=A=>a(A)||l(A)||u(A)?Dr:t[A],_=()=>y(n),m=()=>y(n+o);function b(){return o=0,c(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function S(){return a(n+o)&&o++,o++,t[n+o]}function x(){n=0,r=1,i=1,o=0}function E(A=0){o=A}function T(){const A=n+o;for(;A!==n;)b();o=0}return{index:f,line:p,column:d,peekOffset:g,charAt:y,currentChar:_,currentPeek:m,next:b,peek:S,reset:x,resetPeek:E,skipToPeek:T}}const fs=void 0,I9=".",f2="'",P9="tokenizer";function L9(e,t={}){const n=t.location!==!1,r=D9(e),i=()=>r.index(),o=()=>C9(r.line(),r.column(),r.index()),a=o(),s=i(),l={currentType:13,offset:s,startLoc:a,endLoc:a,lastType:13,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(L,V,Z,...oe){const pe=u();if(V.column+=Z,V.offset+=Z,c){const Ce=n?qw(pe.startLoc,V):null,Y=y0(L,Ce,{domain:P9,args:oe});c(Y)}}function p(L,V,Z){L.endLoc=o(),L.currentType=V;const oe={type:V};return n&&(oe.loc=qw(L.startLoc,L.endLoc)),Z!=null&&(oe.value=Z),oe}const d=L=>p(L,13);function g(L,V){return L.currentChar()===V?(L.next(),V):(f(tn.EXPECTED_TOKEN,o(),0,V),"")}function y(L){let V="";for(;L.currentPeek()===_a||L.currentPeek()===Dr;)V+=L.currentPeek(),L.peek();return V}function _(L){const V=y(L);return L.skipToPeek(),V}function m(L){if(L===fs)return!1;const V=L.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V===95}function b(L){if(L===fs)return!1;const V=L.charCodeAt(0);return V>=48&&V<=57}function S(L,V){const{currentType:Z}=V;if(Z!==2)return!1;y(L);const oe=m(L.currentPeek());return L.resetPeek(),oe}function x(L,V){const{currentType:Z}=V;if(Z!==2)return!1;y(L);const oe=L.currentPeek()==="-"?L.peek():L.currentPeek(),pe=b(oe);return L.resetPeek(),pe}function E(L,V){const{currentType:Z}=V;if(Z!==2)return!1;y(L);const oe=L.currentPeek()===f2;return L.resetPeek(),oe}function T(L,V){const{currentType:Z}=V;if(Z!==7)return!1;y(L);const oe=L.currentPeek()===".";return L.resetPeek(),oe}function A(L,V){const{currentType:Z}=V;if(Z!==8)return!1;y(L);const oe=m(L.currentPeek());return L.resetPeek(),oe}function D(L,V){const{currentType:Z}=V;if(!(Z===7||Z===11))return!1;y(L);const oe=L.currentPeek()===":";return L.resetPeek(),oe}function P(L,V){const{currentType:Z}=V;if(Z!==9)return!1;const oe=()=>{const Ce=L.currentPeek();return Ce==="{"?m(L.peek()):Ce==="@"||Ce==="|"||Ce===":"||Ce==="."||Ce===_a||!Ce?!1:Ce===Dr?(L.peek(),oe()):k(L,!1)},pe=oe();return L.resetPeek(),pe}function O(L){y(L);const V=L.currentPeek()==="|";return L.resetPeek(),V}function k(L,V=!0){const Z=(pe=!1,Ce="")=>{const Y=L.currentPeek();return Y==="{"||Y==="@"||!Y?pe:Y==="|"?!(Ce===_a||Ce===Dr):Y===_a?(L.peek(),Z(!0,_a)):Y===Dr?(L.peek(),Z(!0,Dr)):!0},oe=Z();return V&&L.resetPeek(),oe}function H(L,V){const Z=L.currentChar();return Z===fs?fs:V(Z)?(L.next(),Z):null}function te(L){const V=L.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36}function W(L){return H(L,te)}function q(L){const V=L.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36||V===45}function j(L){return H(L,q)}function ie(L){const V=L.charCodeAt(0);return V>=48&&V<=57}function J(L){return H(L,ie)}function ce(L){const V=L.charCodeAt(0);return V>=48&&V<=57||V>=65&&V<=70||V>=97&&V<=102}function ye(L){return H(L,ce)}function we(L){let V="",Z="";for(;V=J(L);)Z+=V;return Z}function Ne(L){let V="";for(;;){const Z=L.currentChar();if(Z==="{"||Z==="}"||Z==="@"||Z==="|"||!Z)break;if(Z===_a||Z===Dr)if(k(L))V+=Z,L.next();else{if(O(L))break;V+=Z,L.next()}else V+=Z,L.next()}return V}function ke(L){_(L);let V="",Z="";for(;V=j(L);)Z+=V;return L.currentChar()===fs&&f(tn.UNTERMINATED_CLOSING_BRACE,o(),0),Z}function je(L){_(L);let V="";return L.currentChar()==="-"?(L.next(),V+=`-${we(L)}`):V+=we(L),L.currentChar()===fs&&f(tn.UNTERMINATED_CLOSING_BRACE,o(),0),V}function He(L){return L!==f2&&L!==Dr}function We(L){_(L),g(L,"'");let V="",Z="";for(;V=H(L,He);)V==="\\"?Z+=le(L):Z+=V;const oe=L.currentChar();return oe===Dr||oe===fs?(f(tn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),oe===Dr&&(L.next(),g(L,"'")),Z):(g(L,"'"),Z)}function le(L){const V=L.currentChar();switch(V){case"\\":case"'":return L.next(),`\\${V}`;case"u":return Te(L,V,4);case"U":return Te(L,V,6);default:return f(tn.UNKNOWN_ESCAPE_SEQUENCE,o(),0,V),""}}function Te(L,V,Z){g(L,V);let oe="";for(let pe=0;pe{const oe=L.currentChar();return oe==="{"||oe==="@"||oe==="|"||oe==="("||oe===")"||!oe||oe===_a?Z:(Z+=oe,L.next(),V(Z))};return V("")}function N(L){_(L);const V=g(L,"|");return _(L),V}function B(L,V){let Z=null;switch(L.currentChar()){case"{":return V.braceNest>=1&&f(tn.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),L.next(),Z=p(V,2,"{"),_(L),V.braceNest++,Z;case"}":return V.braceNest>0&&V.currentType===2&&f(tn.EMPTY_PLACEHOLDER,o(),0),L.next(),Z=p(V,3,"}"),V.braceNest--,V.braceNest>0&&_(L),V.inLinked&&V.braceNest===0&&(V.inLinked=!1),Z;case"@":return V.braceNest>0&&f(tn.UNTERMINATED_CLOSING_BRACE,o(),0),Z=ne(L,V)||d(V),V.braceNest=0,Z;default:{let pe=!0,Ce=!0,Y=!0;if(O(L))return V.braceNest>0&&f(tn.UNTERMINATED_CLOSING_BRACE,o(),0),Z=p(V,1,N(L)),V.braceNest=0,V.inLinked=!1,Z;if(V.braceNest>0&&(V.currentType===4||V.currentType===5||V.currentType===6))return f(tn.UNTERMINATED_CLOSING_BRACE,o(),0),V.braceNest=0,me(L,V);if(pe=S(L,V))return Z=p(V,4,ke(L)),_(L),Z;if(Ce=x(L,V))return Z=p(V,5,je(L)),_(L),Z;if(Y=E(L,V))return Z=p(V,6,We(L)),_(L),Z;if(!pe&&!Ce&&!Y)return Z=p(V,12,xe(L)),f(tn.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,Z.value),_(L),Z;break}}return Z}function ne(L,V){const{currentType:Z}=V;let oe=null;const pe=L.currentChar();switch((Z===7||Z===8||Z===11||Z===9)&&(pe===Dr||pe===_a)&&f(tn.INVALID_LINKED_FORMAT,o(),0),pe){case"@":return L.next(),oe=p(V,7,"@"),V.inLinked=!0,oe;case".":return _(L),L.next(),p(V,8,".");case":":return _(L),L.next(),p(V,9,":");default:return O(L)?(oe=p(V,1,N(L)),V.braceNest=0,V.inLinked=!1,oe):T(L,V)||D(L,V)?(_(L),ne(L,V)):A(L,V)?(_(L),p(V,11,Ee(L))):P(L,V)?(_(L),pe==="{"?B(L,V)||oe:p(V,10,De(L))):(Z===7&&f(tn.INVALID_LINKED_FORMAT,o(),0),V.braceNest=0,V.inLinked=!1,me(L,V))}}function me(L,V){let Z={type:13};if(V.braceNest>0)return B(L,V)||d(V);if(V.inLinked)return ne(L,V)||d(V);switch(L.currentChar()){case"{":return B(L,V)||d(V);case"}":return f(tn.UNBALANCED_CLOSING_BRACE,o(),0),L.next(),p(V,3,"}");case"@":return ne(L,V)||d(V);default:{if(O(L))return Z=p(V,1,N(L)),V.braceNest=0,V.inLinked=!1,Z;if(k(L))return p(V,0,Ne(L));break}}return Z}function ue(){const{currentType:L,offset:V,startLoc:Z,endLoc:oe}=l;return l.lastType=L,l.lastOffset=V,l.lastStartLoc=Z,l.lastEndLoc=oe,l.offset=i(),l.startLoc=o(),r.currentChar()===fs?p(l,13):me(r,l)}return{nextToken:ue,currentOffset:i,currentPosition:o,context:u}}const O9="parser",k9=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function N9(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function F9(e={}){const t=e.location!==!1,{onError:n}=e;function r(m,b,S,x,...E){const T=m.currentPosition();if(T.offset+=x,T.column+=x,n){const A=t?qw(S,T):null,D=y0(b,A,{domain:O9,args:E});n(D)}}function i(m,b,S){const x={type:m};return t&&(x.start=b,x.end=b,x.loc={start:S,end:S}),x}function o(m,b,S,x){t&&(m.end=b,m.loc&&(m.loc.end=S))}function a(m,b){const S=m.context(),x=i(3,S.offset,S.startLoc);return x.value=b,o(x,m.currentOffset(),m.currentPosition()),x}function s(m,b){const S=m.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(5,x,E);return T.index=parseInt(b,10),m.nextToken(),o(T,m.currentOffset(),m.currentPosition()),T}function l(m,b){const S=m.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(4,x,E);return T.key=b,m.nextToken(),o(T,m.currentOffset(),m.currentPosition()),T}function u(m,b){const S=m.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(9,x,E);return T.value=b.replace(k9,N9),m.nextToken(),o(T,m.currentOffset(),m.currentPosition()),T}function c(m){const b=m.nextToken(),S=m.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(8,x,E);return b.type!==11?(r(m,tn.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),T.value="",o(T,x,E),{nextConsumeToken:b,node:T}):(b.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Lo(b)),T.value=b.value||"",o(T,m.currentOffset(),m.currentPosition()),{node:T})}function f(m,b){const S=m.context(),x=i(7,S.offset,S.startLoc);return x.value=b,o(x,m.currentOffset(),m.currentPosition()),x}function p(m){const b=m.context(),S=i(6,b.offset,b.startLoc);let x=m.nextToken();if(x.type===8){const E=c(m);S.modifier=E.node,x=E.nextConsumeToken||m.nextToken()}switch(x.type!==9&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(x)),x=m.nextToken(),x.type===2&&(x=m.nextToken()),x.type){case 10:x.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(x)),S.key=f(m,x.value||"");break;case 4:x.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(x)),S.key=l(m,x.value||"");break;case 5:x.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(x)),S.key=s(m,x.value||"");break;case 6:x.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(x)),S.key=u(m,x.value||"");break;default:{r(m,tn.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const E=m.context(),T=i(7,E.offset,E.startLoc);return T.value="",o(T,E.offset,E.startLoc),S.key=T,o(S,E.offset,E.startLoc),{nextConsumeToken:x,node:S}}}return o(S,m.currentOffset(),m.currentPosition()),{node:S}}function d(m){const b=m.context(),S=b.currentType===1?m.currentOffset():b.offset,x=b.currentType===1?b.endLoc:b.startLoc,E=i(2,S,x);E.items=[];let T=null;do{const P=T||m.nextToken();switch(T=null,P.type){case 0:P.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(P)),E.items.push(a(m,P.value||""));break;case 5:P.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(P)),E.items.push(s(m,P.value||""));break;case 4:P.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(P)),E.items.push(l(m,P.value||""));break;case 6:P.value==null&&r(m,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Lo(P)),E.items.push(u(m,P.value||""));break;case 7:{const O=p(m);E.items.push(O.node),T=O.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const A=b.currentType===1?b.lastOffset:m.currentOffset(),D=b.currentType===1?b.lastEndLoc:m.currentPosition();return o(E,A,D),E}function g(m,b,S,x){const E=m.context();let T=x.items.length===0;const A=i(1,b,S);A.cases=[],A.cases.push(x);do{const D=d(m);T||(T=D.items.length===0),A.cases.push(D)}while(E.currentType!==13);return T&&r(m,tn.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),o(A,m.currentOffset(),m.currentPosition()),A}function y(m){const b=m.context(),{offset:S,startLoc:x}=b,E=d(m);return b.currentType===13?E:g(m,S,x,E)}function _(m){const b=L9(m,Xn({},e)),S=b.context(),x=i(0,S.offset,S.startLoc);return t&&x.loc&&(x.loc.source=m),x.body=y(b),e.onCacheKey&&(x.cacheKey=e.onCacheKey(m)),S.currentType!==13&&r(b,tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,m[S.offset]||""),o(x,b.currentOffset(),b.currentPosition()),x}return{parse:_}}function Lo(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 $9(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function h2(e,t){for(let n=0;nd2(n)),e}function d2(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 n=0;ns;function u(_,m){s.code+=_}function c(_,m=!0){const b=m?i:"";u(o?b+" ".repeat(_):b)}function f(_=!0){const m=++s.indentLevel;_&&c(m)}function p(_=!0){const m=--s.indentLevel;_&&c(m)}function d(){c(s.indentLevel)}return{context:l,push:u,indent:f,deindent:p,newline:d,helper:_=>`_${_}`,needIndent:()=>s.needIndent}}function U9(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Wc(e,t.key),t.modifier?(e.push(", "),Wc(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function z9(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let o=0;o1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let o=0;o{const n=Fe(t.mode)?t.mode:"normal",r=Fe(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` `,a=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],l=H9(e,{mode:n,filename:r,sourceMap:i,breakLineCode:o,needIndent:a});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${rx(s.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),Wc(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function j9(e,t={}){const n=Xn({},t),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,s=F9(n).parse(e);return r?(o&&V9(s),i&&lc(s),{ast:s,code:""}):(B9(s,n),Y9(s,n))}/*! * core-base v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */function q9(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Jl().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Jl().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function N_(e){return n=>X9(n,e)}function X9(e,t){const n=Z9(t);if(n==null)throw wd(0);if(ox(n)===1){const o=J9(n);return e.plural(o.reduce((a,s)=>[...a,v2(e,s)],[]))}else return v2(e,n)}const K9=["b","body"];function Z9(e){return rl(e,K9)}const Q9=["c","cases"];function J9(e){return rl(e,Q9,[])}function v2(e,t){const n=t7(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=r7(t).reduce((i,o)=>[...i,Xw(e,o)],[]);return e.normalize(r)}}const e7=["s","static"];function t7(e){return rl(e,e7)}const n7=["i","items"];function r7(e){return rl(e,n7,[])}function Xw(e,t){const n=ox(t);switch(n){case 3:return sv(t,n);case 9:return sv(t,n);case 4:{const r=t;if(go(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(go(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw wd(n)}case 5:{const r=t;if(go(r,"i")&&Vn(r.i))return e.interpolate(e.list(r.i));if(go(r,"index")&&Vn(r.index))return e.interpolate(e.list(r.index));throw wd(n)}case 6:{const r=t,i=s7(r),o=u7(r);return e.linked(Xw(e,o),i?Xw(e,i):void 0,e.type)}case 7:return sv(t,n);case 8:return sv(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const i7=["t","type"];function ox(e){return rl(e,i7)}const o7=["v","value"];function sv(e,t){const n=rl(e,o7);if(n)return n;throw wd(t)}const a7=["m","modifier"];function s7(e){return rl(e,a7)}const l7=["k","key"];function u7(e){const t=rl(e,l7);if(t)return t;throw wd(6)}function rl(e,t,n){for(let r=0;re;let lv=sn();function Yc(e){return Wt(e)&&ox(e)===0&&(go(e,"b")||go(e,"body"))}function f7(e,t={}){let n=!1;const r=t.onError||E9;return t.onError=i=>{n=!0,r(i)},{...j9(e,t),detectError:n}}function h7(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Fe(e)){Vt(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||c7)(e),i=lv[r];if(i)return i;const{ast:o,detectError:a}=f7(e,{...t,location:!1,jit:!0}),s=N_(o);return a?s:lv[r]=s}else{const n=e.cacheKey;if(n){const r=lv[n];return r||(lv[n]=N_(e))}else return N_(e)}}let bd=null;function d7(e){bd=e}function p7(e,t,n){bd&&bd.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const v7=g7("function:translate");function g7(e){return t=>bd&&bd.emit(e,t)}const La={INVALID_ARGUMENT:T9,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},m7=24;function Oa(e){return m0(e,null,void 0)}function ax(e,t){return t.locale!=null?g2(t.locale):g2(e.locale)}let F_;function g2(e){if(Fe(e))return e;if(bn(e)){if(e.resolvedOnce&&F_!=null)return F_;if(e.constructor.name==="Function"){const t=e();if(b9(t))throw Oa(La.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return F_=t}else throw Oa(La.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Oa(La.NOT_SUPPORT_LOCALE_TYPE)}function y7(e,t,n){return[...new Set([n,...Ln(t)?t:Wt(t)?Object.keys(t):Fe(t)?[t]:[n]])]}function fO(e,t,n){const r=Fe(n)?n:Sd,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;Ln(a);)a=m2(o,a,t);const s=Ln(t)||!Mt(t)?t:t.default?t.default:null;a=Fe(s)?[s]:s,Ln(a)&&m2(o,a,!1),i.__localeChainCache.set(r,o)}return o}function m2(e,t,n){let r=!0;for(let i=0;i{a===void 0?a=s:a+=s},p[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},p[2]=()=>{p[0](),i++},p[3]=()=>{if(i>0)i--,r=4,p[0]();else{if(i=0,a===void 0||(a=T7(a),a===!1))return!1;p[1]()}};function d(){const g=e[n+1];if(r===5&&g==="'"||r===6&&g==='"')return n++,s="\\"+g,p[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&d())){if(l=C7(o),f=il[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=p[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return t}}const y2=new Map;function A7(e,t){return Wt(e)?e[t]:null}function M7(e,t){if(!Wt(e))return null;let n=y2.get(t);if(n||(n=E7(t),n&&y2.set(t,n)),!n)return null;const r=n.length;let i=e,o=0;for(;o`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function D7(){return{upper:(e,t)=>t==="text"&&Fe(e)?e.toUpperCase():t==="vnode"&&Wt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Fe(e)?e.toLowerCase():t==="vnode"&&Wt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Fe(e)?w2(e):t==="vnode"&&Wt(e)&&"__v_isVNode"in e?w2(e.children):e}}let hO;function I7(e){hO=e}let dO;function P7(e){dO=e}let pO;function L7(e){pO=e}let vO=null;const O7=e=>{vO=e},k7=()=>vO;let gO=null;const b2=e=>{gO=e},N7=()=>gO;let S2=0;function F7(e={}){const t=bn(e.onWarn)?e.onWarn:x9,n=Fe(e.version)?e.version:R7,r=Fe(e.locale)||bn(e.locale)?e.locale:Sd,i=bn(r)?Sd:r,o=Ln(e.fallbackLocale)||Mt(e.fallbackLocale)||Fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=Mt(e.messages)?e.messages:$_(i),s=Mt(e.datetimeFormats)?e.datetimeFormats:$_(i),l=Mt(e.numberFormats)?e.numberFormats:$_(i),u=Xn(sn(),e.modifiers,D7()),c=e.pluralRules||sn(),f=bn(e.missing)?e.missing:null,p=Vt(e.missingWarn)||Gc(e.missingWarn)?e.missingWarn:!0,d=Vt(e.fallbackWarn)||Gc(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,y=!!e.unresolving,_=bn(e.postTranslation)?e.postTranslation:null,m=Mt(e.processor)?e.processor:null,b=Vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,x=bn(e.messageCompiler)?e.messageCompiler:hO,E=bn(e.messageResolver)?e.messageResolver:dO||A7,T=bn(e.localeFallbacker)?e.localeFallbacker:pO||y7,A=Wt(e.fallbackContext)?e.fallbackContext:void 0,D=e,P=Wt(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,O=Wt(D.__numberFormatters)?D.__numberFormatters:new Map,k=Wt(D.__meta)?D.__meta:{};S2++;const H={version:n,cid:S2,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:f,missingWarn:p,fallbackWarn:d,fallbackFormat:g,unresolving:y,postTranslation:_,processor:m,warnHtmlMessage:b,escapeParameter:S,messageCompiler:x,messageResolver:E,localeFallbacker:T,fallbackContext:A,onWarn:t,__meta:k};return H.datetimeFormats=s,H.numberFormats=l,H.__datetimeFormatters=P,H.__numberFormatters=O,__INTLIFY_PROD_DEVTOOLS__&&p7(H,n,k),H}const $_=e=>({[e]:sn()});function sx(e,t,n,r,i){const{missing:o,onWarn:a}=e;if(o!==null){const s=o(e,n,t,i);return Fe(s)?s:t}else return t}function kf(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function $7(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function B7(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{mO.includes(l)?a[l]=n[l]:o[l]=n[l]}),Fe(r)?o.locale=r:Mt(r)&&(a=r),Mt(i)&&(a=i),[o.key||"",s,o,a]}function C2(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function T2(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,u,c,f]=Zw(...t),p=Vt(c.missingWarn)?c.missingWarn:e.missingWarn;Vt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,g=ax(e,c),y=a(e,i,g);if(!Fe(l)||l==="")return new Intl.NumberFormat(g,f).format(u);let _={},m,b=null;const S="number format";for(let T=0;T{yO.includes(l)?a[l]=n[l]:o[l]=n[l]}),Fe(r)?o.locale=r:Mt(r)&&(a=r),Mt(i)&&(a=i),[o.key||"",s,o,a]}function E2(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const V7=e=>e,H7=e=>"",U7="text",z7=e=>e.length===0?"":rx(e),G7=S9;function A2(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function W7(e){const t=Vn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Vn(e.named.count)||Vn(e.named.n))?Vn(e.named.count)?e.named.count:Vn(e.named.n)?e.named.n:t:t}function Y7(e,t){t.count||(t.count=e),t.n||(t.n=e)}function j7(e={}){const t=e.locale,n=W7(e),r=Wt(e.pluralRules)&&Fe(t)&&bn(e.pluralRules[t])?e.pluralRules[t]:A2,i=Wt(e.pluralRules)&&Fe(t)&&bn(e.pluralRules[t])?A2:void 0,o=m=>m[r(n,m.length,i)],a=e.list||[],s=m=>a[m],l=e.named||sn();Vn(e.pluralIndex)&&Y7(n,l);const u=m=>l[m];function c(m,b){const S=bn(e.messages)?e.messages(m,!!b):Wt(e.messages)?e.messages[m]:!1;return S||(e.parent?e.parent.message(m):H7)}const f=m=>e.modifiers?e.modifiers[m]:V7,p=Mt(e.processor)&&bn(e.processor.normalize)?e.processor.normalize:z7,d=Mt(e.processor)&&bn(e.processor.interpolate)?e.processor.interpolate:G7,g=Mt(e.processor)&&Fe(e.processor.type)?e.processor.type:U7,_={list:s,named:u,plural:o,linked:(m,...b)=>{const[S,x]=b;let E="text",T="";b.length===1?Wt(S)?(T=S.modifier||T,E=S.type||E):Fe(S)&&(T=S||T):b.length===2&&(Fe(S)&&(T=S||T),Fe(x)&&(E=x||E));const A=c(m,!0)(_),D=E==="vnode"&&Ln(A)&&T?A[0]:A;return T?f(T)(D,E):D},message:c,type:g,interpolate:d,normalize:p,values:Xn(sn(),a,l)};return _}const M2=()=>"",Gi=e=>bn(e);function R2(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,u]=Qw(...t),c=Vt(u.missingWarn)?u.missingWarn:e.missingWarn,f=Vt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=Vt(u.escapeParameter)?u.escapeParameter:e.escapeParameter,d=!!u.resolvedMessage,g=Fe(u.default)||Vt(u.default)?Vt(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:null,y=n||g!=null&&(Fe(g)||bn(g)),_=ax(e,u);p&&q7(u);let[m,b,S]=d?[l,_,s[_]||sn()]:_O(e,l,_,a,f,c),x=m,E=l;if(!d&&!(Fe(x)||Yc(x)||Gi(x))&&y&&(x=g,E=x),!d&&(!(Fe(x)||Yc(x)||Gi(x))||!Fe(b)))return i?y0:l;let T=!1;const A=()=>{T=!0},D=Gi(x)?x:wO(e,l,b,x,E,A);if(T)return x;const P=Z7(e,b,S,u),O=j7(P),k=X7(e,D,O),H=r?r(k,l):k;if(__INTLIFY_PROD_DEVTOOLS__){const te={timestamp:Date.now(),key:Fe(l)?l:Gi(x)?x.key:"",locale:b||(Gi(x)?x.locale:""),format:Fe(x)?x:Gi(x)?x.source:"",message:H};te.meta=Xn({},e.__meta,k7()||{}),v7(te)}return H}function q7(e){Ln(e.list)?e.list=e.list.map(t=>Fe(t)?f2(t):t):Wt(e.named)&&Object.keys(e.named).forEach(t=>{Fe(e.named[t])&&(e.named[t]=f2(e.named[t]))})}function _O(e,t,n,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=sn(),p,d=null;const g="translate";for(let y=0;yr;return u.locale=n,u.key=t,u}const l=a(r,K7(e,n,i,r,s,o));return l.locale=n,l.key=t,l.source=r,l}function X7(e,t,n){return t(n)}function Qw(...e){const[t,n,r]=e,i=sn();if(!Fe(t)&&!Vn(t)&&!Gi(t)&&!Yc(t))throw Oa(La.INVALID_ARGUMENT);const o=Vn(t)?String(t):(Gi(t),t);return Vn(n)?i.plural=n:Fe(n)?i.default=n:Mt(n)&&!g0(n)?i.named=n:Ln(n)&&(i.list=n),Vn(r)?i.plural=r:Fe(r)?i.default=r:Mt(r)&&Xn(i,r),[o,i]}function K7(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>g9(t,n,a)}}function Z7(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,p={locale:t,modifiers:i,pluralRules:o,messages:(d,g)=>{let y=a(n,d);if(y==null&&(c||g)){const[,,_]=_O(c||e,d,t,s,l,u);y=a(_,d)}if(Fe(y)||Yc(y)){let _=!1;const b=wO(e,d,t,y,d,()=>{_=!0});return _?M2:b}else return Gi(y)?y:M2}};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),Vn(r.plural)&&(p.pluralIndex=r.plural),p}q9();/*! + */function q9(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Jl().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Jl().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function N_(e){return n=>X9(n,e)}function X9(e,t){const n=Z9(t);if(n==null)throw wd(0);if(ox(n)===1){const o=J9(n);return e.plural(o.reduce((a,s)=>[...a,p2(e,s)],[]))}else return p2(e,n)}const K9=["b","body"];function Z9(e){return rl(e,K9)}const Q9=["c","cases"];function J9(e){return rl(e,Q9,[])}function p2(e,t){const n=t7(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=r7(t).reduce((i,o)=>[...i,Xw(e,o)],[]);return e.normalize(r)}}const e7=["s","static"];function t7(e){return rl(e,e7)}const n7=["i","items"];function r7(e){return rl(e,n7,[])}function Xw(e,t){const n=ox(t);switch(n){case 3:return lv(t,n);case 9:return lv(t,n);case 4:{const r=t;if(go(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(go(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw wd(n)}case 5:{const r=t;if(go(r,"i")&&Vn(r.i))return e.interpolate(e.list(r.i));if(go(r,"index")&&Vn(r.index))return e.interpolate(e.list(r.index));throw wd(n)}case 6:{const r=t,i=s7(r),o=u7(r);return e.linked(Xw(e,o),i?Xw(e,i):void 0,e.type)}case 7:return lv(t,n);case 8:return lv(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const i7=["t","type"];function ox(e){return rl(e,i7)}const o7=["v","value"];function lv(e,t){const n=rl(e,o7);if(n)return n;throw wd(t)}const a7=["m","modifier"];function s7(e){return rl(e,a7)}const l7=["k","key"];function u7(e){const t=rl(e,l7);if(t)return t;throw wd(6)}function rl(e,t,n){for(let r=0;re;let uv=sn();function Yc(e){return Wt(e)&&ox(e)===0&&(go(e,"b")||go(e,"body"))}function f7(e,t={}){let n=!1;const r=t.onError||E9;return t.onError=i=>{n=!0,r(i)},{...j9(e,t),detectError:n}}function h7(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Fe(e)){Vt(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||c7)(e),i=uv[r];if(i)return i;const{ast:o,detectError:a}=f7(e,{...t,location:!1,jit:!0}),s=N_(o);return a?s:uv[r]=s}else{const n=e.cacheKey;if(n){const r=uv[n];return r||(uv[n]=N_(e))}else return N_(e)}}let bd=null;function d7(e){bd=e}function p7(e,t,n){bd&&bd.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const v7=g7("function:translate");function g7(e){return t=>bd&&bd.emit(e,t)}const La={INVALID_ARGUMENT:T9,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},m7=24;function Oa(e){return y0(e,null,void 0)}function ax(e,t){return t.locale!=null?v2(t.locale):v2(e.locale)}let F_;function v2(e){if(Fe(e))return e;if(bn(e)){if(e.resolvedOnce&&F_!=null)return F_;if(e.constructor.name==="Function"){const t=e();if(b9(t))throw Oa(La.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return F_=t}else throw Oa(La.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Oa(La.NOT_SUPPORT_LOCALE_TYPE)}function y7(e,t,n){return[...new Set([n,...Ln(t)?t:Wt(t)?Object.keys(t):Fe(t)?[t]:[n]])]}function cO(e,t,n){const r=Fe(n)?n:Sd,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;Ln(a);)a=g2(o,a,t);const s=Ln(t)||!At(t)?t:t.default?t.default:null;a=Fe(s)?[s]:s,Ln(a)&&g2(o,a,!1),i.__localeChainCache.set(r,o)}return o}function g2(e,t,n){let r=!0;for(let i=0;i{a===void 0?a=s:a+=s},p[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},p[2]=()=>{p[0](),i++},p[3]=()=>{if(i>0)i--,r=4,p[0]();else{if(i=0,a===void 0||(a=T7(a),a===!1))return!1;p[1]()}};function d(){const g=e[n+1];if(r===5&&g==="'"||r===6&&g==='"')return n++,s="\\"+g,p[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&d())){if(l=C7(o),f=il[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=p[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return t}}const m2=new Map;function A7(e,t){return Wt(e)?e[t]:null}function M7(e,t){if(!Wt(e))return null;let n=m2.get(t);if(n||(n=E7(t),n&&m2.set(t,n)),!n)return null;const r=n.length;let i=e,o=0;for(;o`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function D7(){return{upper:(e,t)=>t==="text"&&Fe(e)?e.toUpperCase():t==="vnode"&&Wt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Fe(e)?e.toLowerCase():t==="vnode"&&Wt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Fe(e)?_2(e):t==="vnode"&&Wt(e)&&"__v_isVNode"in e?_2(e.children):e}}let fO;function I7(e){fO=e}let hO;function P7(e){hO=e}let dO;function L7(e){dO=e}let pO=null;const O7=e=>{pO=e},k7=()=>pO;let vO=null;const w2=e=>{vO=e},N7=()=>vO;let b2=0;function F7(e={}){const t=bn(e.onWarn)?e.onWarn:x9,n=Fe(e.version)?e.version:R7,r=Fe(e.locale)||bn(e.locale)?e.locale:Sd,i=bn(r)?Sd:r,o=Ln(e.fallbackLocale)||At(e.fallbackLocale)||Fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=At(e.messages)?e.messages:$_(i),s=At(e.datetimeFormats)?e.datetimeFormats:$_(i),l=At(e.numberFormats)?e.numberFormats:$_(i),u=Xn(sn(),e.modifiers,D7()),c=e.pluralRules||sn(),f=bn(e.missing)?e.missing:null,p=Vt(e.missingWarn)||Gc(e.missingWarn)?e.missingWarn:!0,d=Vt(e.fallbackWarn)||Gc(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,y=!!e.unresolving,_=bn(e.postTranslation)?e.postTranslation:null,m=At(e.processor)?e.processor:null,b=Vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,x=bn(e.messageCompiler)?e.messageCompiler:fO,E=bn(e.messageResolver)?e.messageResolver:hO||A7,T=bn(e.localeFallbacker)?e.localeFallbacker:dO||y7,A=Wt(e.fallbackContext)?e.fallbackContext:void 0,D=e,P=Wt(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,O=Wt(D.__numberFormatters)?D.__numberFormatters:new Map,k=Wt(D.__meta)?D.__meta:{};b2++;const H={version:n,cid:b2,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:f,missingWarn:p,fallbackWarn:d,fallbackFormat:g,unresolving:y,postTranslation:_,processor:m,warnHtmlMessage:b,escapeParameter:S,messageCompiler:x,messageResolver:E,localeFallbacker:T,fallbackContext:A,onWarn:t,__meta:k};return H.datetimeFormats=s,H.numberFormats=l,H.__datetimeFormatters=P,H.__numberFormatters=O,__INTLIFY_PROD_DEVTOOLS__&&p7(H,n,k),H}const $_=e=>({[e]:sn()});function sx(e,t,n,r,i){const{missing:o,onWarn:a}=e;if(o!==null){const s=o(e,n,t,i);return Fe(s)?s:t}else return t}function kf(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function $7(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function B7(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{gO.includes(l)?a[l]=n[l]:o[l]=n[l]}),Fe(r)?o.locale=r:At(r)&&(a=r),At(i)&&(a=i),[o.key||"",s,o,a]}function x2(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function C2(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,u,c,f]=Zw(...t),p=Vt(c.missingWarn)?c.missingWarn:e.missingWarn;Vt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,g=ax(e,c),y=a(e,i,g);if(!Fe(l)||l==="")return new Intl.NumberFormat(g,f).format(u);let _={},m,b=null;const S="number format";for(let T=0;T{mO.includes(l)?a[l]=n[l]:o[l]=n[l]}),Fe(r)?o.locale=r:At(r)&&(a=r),At(i)&&(a=i),[o.key||"",s,o,a]}function T2(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const V7=e=>e,H7=e=>"",U7="text",z7=e=>e.length===0?"":rx(e),G7=S9;function E2(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function W7(e){const t=Vn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Vn(e.named.count)||Vn(e.named.n))?Vn(e.named.count)?e.named.count:Vn(e.named.n)?e.named.n:t:t}function Y7(e,t){t.count||(t.count=e),t.n||(t.n=e)}function j7(e={}){const t=e.locale,n=W7(e),r=Wt(e.pluralRules)&&Fe(t)&&bn(e.pluralRules[t])?e.pluralRules[t]:E2,i=Wt(e.pluralRules)&&Fe(t)&&bn(e.pluralRules[t])?E2:void 0,o=m=>m[r(n,m.length,i)],a=e.list||[],s=m=>a[m],l=e.named||sn();Vn(e.pluralIndex)&&Y7(n,l);const u=m=>l[m];function c(m,b){const S=bn(e.messages)?e.messages(m,!!b):Wt(e.messages)?e.messages[m]:!1;return S||(e.parent?e.parent.message(m):H7)}const f=m=>e.modifiers?e.modifiers[m]:V7,p=At(e.processor)&&bn(e.processor.normalize)?e.processor.normalize:z7,d=At(e.processor)&&bn(e.processor.interpolate)?e.processor.interpolate:G7,g=At(e.processor)&&Fe(e.processor.type)?e.processor.type:U7,_={list:s,named:u,plural:o,linked:(m,...b)=>{const[S,x]=b;let E="text",T="";b.length===1?Wt(S)?(T=S.modifier||T,E=S.type||E):Fe(S)&&(T=S||T):b.length===2&&(Fe(S)&&(T=S||T),Fe(x)&&(E=x||E));const A=c(m,!0)(_),D=E==="vnode"&&Ln(A)&&T?A[0]:A;return T?f(T)(D,E):D},message:c,type:g,interpolate:d,normalize:p,values:Xn(sn(),a,l)};return _}const A2=()=>"",zi=e=>bn(e);function M2(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,u]=Qw(...t),c=Vt(u.missingWarn)?u.missingWarn:e.missingWarn,f=Vt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=Vt(u.escapeParameter)?u.escapeParameter:e.escapeParameter,d=!!u.resolvedMessage,g=Fe(u.default)||Vt(u.default)?Vt(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:null,y=n||g!=null&&(Fe(g)||bn(g)),_=ax(e,u);p&&q7(u);let[m,b,S]=d?[l,_,s[_]||sn()]:yO(e,l,_,a,f,c),x=m,E=l;if(!d&&!(Fe(x)||Yc(x)||zi(x))&&y&&(x=g,E=x),!d&&(!(Fe(x)||Yc(x)||zi(x))||!Fe(b)))return i?_0:l;let T=!1;const A=()=>{T=!0},D=zi(x)?x:_O(e,l,b,x,E,A);if(T)return x;const P=Z7(e,b,S,u),O=j7(P),k=X7(e,D,O),H=r?r(k,l):k;if(__INTLIFY_PROD_DEVTOOLS__){const te={timestamp:Date.now(),key:Fe(l)?l:zi(x)?x.key:"",locale:b||(zi(x)?x.locale:""),format:Fe(x)?x:zi(x)?x.source:"",message:H};te.meta=Xn({},e.__meta,k7()||{}),v7(te)}return H}function q7(e){Ln(e.list)?e.list=e.list.map(t=>Fe(t)?c2(t):t):Wt(e.named)&&Object.keys(e.named).forEach(t=>{Fe(e.named[t])&&(e.named[t]=c2(e.named[t]))})}function yO(e,t,n,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=sn(),p,d=null;const g="translate";for(let y=0;yr;return u.locale=n,u.key=t,u}const l=a(r,K7(e,n,i,r,s,o));return l.locale=n,l.key=t,l.source=r,l}function X7(e,t,n){return t(n)}function Qw(...e){const[t,n,r]=e,i=sn();if(!Fe(t)&&!Vn(t)&&!zi(t)&&!Yc(t))throw Oa(La.INVALID_ARGUMENT);const o=Vn(t)?String(t):(zi(t),t);return Vn(n)?i.plural=n:Fe(n)?i.default=n:At(n)&&!m0(n)?i.named=n:Ln(n)&&(i.list=n),Vn(r)?i.plural=r:Fe(r)?i.default=r:At(r)&&Xn(i,r),[o,i]}function K7(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>g9(t,n,a)}}function Z7(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,p={locale:t,modifiers:i,pluralRules:o,messages:(d,g)=>{let y=a(n,d);if(y==null&&(c||g)){const[,,_]=yO(c||e,d,t,s,l,u);y=a(_,d)}if(Fe(y)||Yc(y)){let _=!1;const b=_O(e,d,t,y,d,()=>{_=!0});return _?A2:b}else return zi(y)?y:A2}};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),Vn(r.plural)&&(p.pluralIndex=r.plural),p}q9();/*! * vue-i18n v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */const Q7="10.0.5";function J7(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Jl().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Jl().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Jl().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Jl().__INTLIFY_PROD_DEVTOOLS__=!1)}const Fr={UNEXPECTED_RETURN_TYPE:m7,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 ei(e,...t){return m0(e,null,void 0)}const Jw=nl("__translateVNode"),eb=nl("__datetimeParts"),tb=nl("__numberParts"),bO=nl("__setPluralRules"),SO=nl("__injectWithOption"),nb=nl("__dispose");function xd(e){if(!Wt(e))return e;for(const t in e)if(go(e,t))if(!t.includes("."))Wt(e[t])&&xd(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,o=!1;for(let a=0;a{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(a[l]=a[l]||sn(),bg(u,a[l])):bg(u,a)}else Fe(s)&&bg(JSON.parse(s),a)}),i==null&&o)for(const s in a)go(a,s)&&xd(a[s]);return a}function xO(e){return e.type}function CO(e,t,n){let r=Wt(t.messages)?t.messages:sn();"__i18nGlobal"in n&&(r=lx(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Wt(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Wt(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function D2(e){return Se(Wd,null,e,0)}const I2="__INTLIFY_META__",P2=()=>[],eY=()=>!1;let L2=0;function O2(e){return(t,n,r,i)=>e(n,r,Jo()||void 0,i)}const tY=()=>{const e=Jo();let t=null;return e&&(t=xO(e)[I2])?{[I2]:t}:null};function ux(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,o=um?Ie:Ud;let a=Vt(e.inheritLocale)?e.inheritLocale:!0;const s=o(t&&a?t.locale.value:Fe(e.locale)?e.locale:Sd),l=o(t&&a?t.fallbackLocale.value:Fe(e.fallbackLocale)||Ln(e.fallbackLocale)||Mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=o(lx(s.value,e)),c=o(Mt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=o(Mt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let p=t?t.missingWarn:Vt(e.missingWarn)||Gc(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:Vt(e.fallbackWarn)||Gc(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:Vt(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,_=bn(e.missing)?e.missing:null,m=bn(e.missing)?O2(e.missing):null,b=bn(e.postTranslation)?e.postTranslation:null,S=t?t.warnHtmlMessage:Vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const E=t?t.modifiers:Mt(e.modifiers)?e.modifiers:{};let T=e.pluralRules||t&&t.pluralRules,A;A=(()=>{r&&b2(null);const Y={version:Q7,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:E,pluralRules:T,missing:m===null?void 0:m,missingWarn:p,fallbackWarn:d,fallbackFormat:y,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Y.datetimeFormats=c.value,Y.numberFormats=f.value,Y.__datetimeFormatters=Mt(A)?A.__datetimeFormatters:void 0,Y.__numberFormatters=Mt(A)?A.__numberFormatters:void 0;const re=F7(Y);return r&&b2(re),re})(),kf(A,s.value,l.value);function P(){return[s.value,l.value,u.value,c.value,f.value]}const O=Le({get:()=>s.value,set:Y=>{s.value=Y,A.locale=s.value}}),k=Le({get:()=>l.value,set:Y=>{l.value=Y,A.fallbackLocale=l.value,kf(A,s.value,Y)}}),H=Le(()=>u.value),te=Le(()=>c.value),W=Le(()=>f.value);function q(){return bn(b)?b:null}function j(Y){b=Y,A.postTranslation=Y}function ie(){return _}function J(Y){Y!==null&&(m=O2(Y)),_=Y,A.missing=m}const ce=(Y,re,Me,Be,ft,bt)=>{P();let rn;try{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=t?N7():void 0),rn=Y(A)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(Me!=="translate exists"&&Vn(rn)&&rn===y0||Me==="translate exists"&&!rn){const[yn,kn]=re();return t&&g?Be(t):ft(yn)}else{if(bt(rn))return rn;throw ei(Fr.UNEXPECTED_RETURN_TYPE)}};function ye(...Y){return ce(re=>Reflect.apply(R2,null,[re,...Y]),()=>Qw(...Y),"translate",re=>Reflect.apply(re.t,re,[...Y]),re=>re,re=>Fe(re))}function we(...Y){const[re,Me,Be]=Y;if(Be&&!Wt(Be))throw ei(Fr.INVALID_ARGUMENT);return ye(re,Me,Xn({resolvedMessage:!0},Be||{}))}function Ne(...Y){return ce(re=>Reflect.apply(x2,null,[re,...Y]),()=>Kw(...Y),"datetime format",re=>Reflect.apply(re.d,re,[...Y]),()=>_2,re=>Fe(re))}function ke(...Y){return ce(re=>Reflect.apply(T2,null,[re,...Y]),()=>Zw(...Y),"number format",re=>Reflect.apply(re.n,re,[...Y]),()=>_2,re=>Fe(re))}function je(Y){return Y.map(re=>Fe(re)||Vn(re)||Vt(re)?D2(String(re)):re)}const We={normalize:je,interpolate:Y=>Y,type:"vnode"};function le(...Y){return ce(re=>{let Me;const Be=re;try{Be.processor=We,Me=Reflect.apply(R2,null,[Be,...Y])}finally{Be.processor=null}return Me},()=>Qw(...Y),"translate",re=>re[Jw](...Y),re=>[D2(re)],re=>Ln(re))}function Te(...Y){return ce(re=>Reflect.apply(T2,null,[re,...Y]),()=>Zw(...Y),"number format",re=>re[tb](...Y),P2,re=>Fe(re)||Ln(re))}function _e(...Y){return ce(re=>Reflect.apply(x2,null,[re,...Y]),()=>Kw(...Y),"datetime format",re=>re[eb](...Y),P2,re=>Fe(re)||Ln(re))}function xe(Y){T=Y,A.pluralRules=T}function Ee(Y,re){return ce(()=>{if(!Y)return!1;const Me=Fe(re)?re:s.value,Be=B(Me),ft=A.messageResolver(Be,Y);return Yc(ft)||Gi(ft)||Fe(ft)},()=>[Y],"translate exists",Me=>Reflect.apply(Me.te,Me,[Y,re]),eY,Me=>Vt(Me))}function De(Y){let re=null;const Me=fO(A,l.value,s.value);for(let Be=0;Be{a&&(s.value=Y,A.locale=Y,kf(A,s.value,l.value))}),kt(t.fallbackLocale,Y=>{a&&(l.value=Y,A.fallbackLocale=Y,kf(A,s.value,l.value))}));const Ce={id:L2,locale:O,fallbackLocale:k,get inheritLocale(){return a},set inheritLocale(Y){a=Y,Y&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,kf(A,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:H,get modifiers(){return E},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(Y){p=Y,A.missingWarn=p},get fallbackWarn(){return d},set fallbackWarn(Y){d=Y,A.fallbackWarn=d},get fallbackRoot(){return g},set fallbackRoot(Y){g=Y},get fallbackFormat(){return y},set fallbackFormat(Y){y=Y,A.fallbackFormat=y},get warnHtmlMessage(){return S},set warnHtmlMessage(Y){S=Y,A.warnHtmlMessage=Y},get escapeParameter(){return x},set escapeParameter(Y){x=Y,A.escapeParameter=Y},t:ye,getLocaleMessage:B,setLocaleMessage:ne,mergeLocaleMessage:me,getPostTranslationHandler:q,setPostTranslationHandler:j,getMissingHandler:ie,setMissingHandler:J,[bO]:xe};return Ce.datetimeFormats=te,Ce.numberFormats=W,Ce.rt=we,Ce.te=Ee,Ce.tm=F,Ce.d=Ne,Ce.n=ke,Ce.getDateTimeFormat=ue,Ce.setDateTimeFormat=L,Ce.mergeDateTimeFormat=V,Ce.getNumberFormat=Z,Ce.setNumberFormat=oe,Ce.mergeNumberFormat=pe,Ce[SO]=n,Ce[Jw]=le,Ce[eb]=_e,Ce[tb]=Te,Ce}function nY(e){const t=Fe(e.locale)?e.locale:Sd,n=Fe(e.fallbackLocale)||Ln(e.fallbackLocale)||Mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=bn(e.missing)?e.missing:void 0,i=Vt(e.silentTranslationWarn)||Gc(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=Vt(e.silentFallbackWarn)||Gc(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=Vt(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Mt(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=bn(e.postTranslation)?e.postTranslation:void 0,f=Fe(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,d=Vt(e.sync)?e.sync:!0;let g=e.messages;if(Mt(e.sharedMessages)){const E=e.sharedMessages;g=Object.keys(E).reduce((A,D)=>{const P=A[D]||(A[D]={});return Xn(P,E[D]),A},g||{})}const{__i18n:y,__root:_,__injectWithOption:m}=e,b=e.datetimeFormats,S=e.numberFormats,x=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:x,datetimeFormats:b,numberFormats:S,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:d,__i18n:y,__root:_,__injectWithOption:m}}function rb(e={}){const t=ux(nY(e)),{__extender:n}=e,r={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 Vt(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=Vt(i)?!i:i},get silentFallbackWarn(){return Vt(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=Vt(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[o,a,s]=i,l={plural:1};let u=null,c=null;if(!Fe(o))throw ei(Fr.INVALID_ARGUMENT);const f=o;return Fe(a)?l.locale=a:Vn(a)?l.plural=a:Ln(a)?u=a:Mt(a)&&(c=a),Fe(s)?l.locale=s:Ln(s)?u=s:Mt(s)&&(c=s),Reflect.apply(t.t,t,[f,u||c||{},l])},te(i,o){return t.te(i,o)},tm(i){return t.tm(i)},getLocaleMessage(i){return t.getLocaleMessage(i)},setLocaleMessage(i,o){t.setLocaleMessage(i,o)},mergeLocaleMessage(i,o){t.mergeLocaleMessage(i,o)},d(...i){return Reflect.apply(t.d,t,[...i])},getDateTimeFormat(i){return t.getDateTimeFormat(i)},setDateTimeFormat(i,o){t.setDateTimeFormat(i,o)},mergeDateTimeFormat(i,o){t.mergeDateTimeFormat(i,o)},n(...i){return Reflect.apply(t.n,t,[...i])},getNumberFormat(i){return t.getNumberFormat(i)},setNumberFormat(i,o){t.setNumberFormat(i,o)},mergeNumberFormat(i,o){t.mergeNumberFormat(i,o)}};return r.__extender=n,r}function rY(e,t,n){return{beforeCreate(){const r=Jo();if(!r)throw ei(Fr.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const o=i.i18n;if(i.__i18n&&(o.__i18n=i.__i18n),o.__root=t,this===this.$root)this.$i18n=k2(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=rb(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=k2(e,i);else{this.$i18n=rb({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&CO(t,i,i),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,a)=>this.$i18n.te(o,a),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=Jo();if(!r)throw ei(Fr.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),n.__deleteInstance(r),delete this.$i18n}}}function k2(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[bO](t.pluralizationRules||e.pluralizationRules);const n=lx(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const cx={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function iY({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Ye?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},sn())}function TO(){return Ye}const oY=lt({name:"i18n-t",props:Xn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Vn(e)||!isNaN(e)}},cx),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||Ga({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),a=sn();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Fe(e.plural)?+e.plural:e.plural);const s=iY(t,o),l=i[Jw](e.keypath,s,a),u=Xn(sn(),r),c=Fe(e.tag)||Wt(e.tag)?e.tag:TO();return zo(c,u,l)}}}),N2=oY;function aY(e){return Ln(e)&&!Fe(e[0])}function EO(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const a={part:!0};let s=sn();e.locale&&(a.locale=e.locale),Fe(e.format)?a.key=e.format:Wt(e.format)&&(Fe(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((p,d)=>n.includes(d)?Xn(sn(),p,{[d]:e.format[d]}):p,sn()));const l=r(e.value,a,s);let u=[a.key];Ln(l)?u=l.map((p,d)=>{const g=i[p.type],y=g?g({[p.type]:p.value,index:d,parts:l}):[p.value];return aY(y)&&(y[0].key=`${p.type}-${d}`),y}):Fe(l)&&(u=[l]);const c=Xn(sn(),o),f=Fe(e.tag)||Wt(e.tag)?e.tag:TO();return zo(f,c,u)}}const sY=lt({name:"i18n-n",props:Xn({value:{type:Number,required:!0},format:{type:[String,Object]}},cx),setup(e,t){const n=e.i18n||Ga({useScope:e.scope,__useComponent:!0});return EO(e,t,yO,(...r)=>n[tb](...r))}}),F2=sY,lY=lt({name:"i18n-d",props:Xn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},cx),setup(e,t){const n=e.i18n||Ga({useScope:e.scope,__useComponent:!0});return EO(e,t,mO,(...r)=>n[eb](...r))}}),$2=lY;function uY(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function cY(e){const t=a=>{const{instance:s,value:l}=a;if(!s||!s.$)throw ei(Fr.UNEXPECTED_ERROR);const u=uY(e,s.$),c=B2(l);return[Reflect.apply(u.t,u,[...V2(c)]),u]};return{created:(a,s)=>{const[l,u]=t(s);um&&e.global===u&&(a.__i18nWatcher=kt(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{um&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,u=B2(s);a.textContent=Reflect.apply(l.t,l,[...V2(u)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function B2(e){if(Fe(e))return{path:e};if(Mt(e)){if(!("path"in e))throw ei(Fr.REQUIRED_VALUE,"path");return e}else throw ei(Fr.INVALID_VALUE)}function V2(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,a={},s=r||{};return Fe(n)&&(a.locale=n),Vn(i)&&(a.plural=i),Vn(o)&&(a.plural=o),[t,s,a]}function fY(e,t,...n){const r=Mt(n[0])?n[0]:{};(Vt(r.globalInstall)?r.globalInstall:!0)&&([N2.name,"I18nT"].forEach(o=>e.component(o,N2)),[F2.name,"I18nN"].forEach(o=>e.component(o,F2)),[$2.name,"I18nD"].forEach(o=>e.component(o,$2))),e.directive("t",cY(t))}const hY=nl("global-vue-i18n");function dY(e={},t){const n=__VUE_I18N_LEGACY_API__&&Vt(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=Vt(e.globalInjection)?e.globalInjection:!0,i=new Map,[o,a]=pY(e,n),s=nl("");function l(p){return i.get(p)||null}function u(p,d){i.set(p,d)}function c(p){i.delete(p)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(p,...d){if(p.__VUE_I18N_SYMBOL__=s,p.provide(p.__VUE_I18N_SYMBOL__,f),Mt(d[0])){const _=d[0];f.__composerExtend=_.__composerExtend,f.__vueI18nExtend=_.__vueI18nExtend}let g=null;!n&&r&&(g=SY(p,f.global)),__VUE_I18N_FULL_INSTALL__&&fY(p,f,...d),__VUE_I18N_LEGACY_API__&&n&&p.mixin(rY(a,a.__composer,f));const y=p.unmount;p.unmount=()=>{g&&g(),f.dispose(),y()}},get global(){return a},dispose(){o.stop()},__instances:i,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function Ga(e={}){const t=Jo();if(t==null)throw ei(Fr.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ei(Fr.NOT_INSTALLED);const n=vY(t),r=mY(n),i=xO(t),o=gY(e,i);if(o==="global")return CO(r,e,i),r;if(o==="parent"){let l=yY(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Xn({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=ux(l),a.__composerExtend&&(s[nb]=a.__composerExtend(s)),wY(a,t,s),a.__setInstance(t,s)}return s}function pY(e,t,n){const r=g8(),i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>rb(e)):r.run(()=>ux(e));if(i==null)throw ei(Fr.UNEXPECTED_ERROR);return[r,i]}function vY(e){const t=Ki(e.isCE?hY:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ei(e.isCE?Fr.NOT_INSTALLED_WITH_PROVIDE:Fr.UNEXPECTED_ERROR);return t}function gY(e,t){return g0(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function mY(e){return e.mode==="composition"?e.global:e.global.__composer}function yY(e,t,n=!1){let r=null;const i=t.root;let o=_Y(t,n);for(;o!=null;){const a=e;if(e.mode==="composition")r=a.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(o);s!=null&&(r=s.__composer,n&&r&&!r[SO]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function _Y(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function wY(e,t,n){tl(()=>{},t),Gd(()=>{const r=n;e.__deleteInstance(t);const i=r[nb];i&&(i(),delete r[nb])},t)}const bY=["locale","fallbackLocale","availableLocales"],H2=["t","rt","d","n","tm","te"];function SY(e,t){const n=Object.create(null);return bY.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw ei(Fr.UNEXPECTED_ERROR);const a=Ze(o.value)?{get(){return o.value.value},set(s){o.value.value=s}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,i,a)}),e.config.globalProperties.$i18n=n,H2.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o||!o.value)throw ei(Fr.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,o)}),()=>{delete e.config.globalProperties.$i18n,H2.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}J7();I7(h7);P7(M7);L7(fO);if(__INTLIFY_PROD_DEVTOOLS__){const e=Jl();e.__INTLIFY__=!0,d7(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const xY={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",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",twoColumnProxyGroup:"Two Column Proxy Group",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",updateAllProviders:"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",twoColumnNodeForMobile:"Two Column Proxy Node",backend:"Backend",tunMode:"Tun Mode",upgradeCore:"Upgrade Core",truncateProxyName:"Truncate Proxy Name",sourceIPLabels:"Source IP Labels",proxyPreviewType:"Proxy Preview Type",auto:"Auto",dots:"Dots",bar:"Bar",exportSettings:"Export Settings",importSettings:"Import Settings",hideUnavailable:"Hide Unavail",protocolTips:"You are trying to connect a http backend but the zashboard is served by https. This may cause connection error. Please allow the insecure content in your browser settings. The settings is on the left of the browser address bar.",global:"Global",direct:"Direct",quickFilterTip:"Quick filtering allows one-click exclusion of connections matching proxy chains, host, or destination IPs using regular expressions.",lowLatencyDesc:"Yellow threshold",mediumLatencyDesc:"Red threshold",fonts:"Fonts",statistics:"Statistics",unauthorizedTip:"Unauthorized, please login again.",restartCore:"Restart Core",autoUpgrade:"Auto Upgrade",secondaryPath:"Secondary Path",secondaryPathTip:'If present, start with a "/", otherwise leave it empty.',logRetentionLimit:"Log Retention Limit",DNSQuery:"DNS Query"},CY={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:"日志等级",twoColumnProxyGroup:"双列显示代理组",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:"更新面板",updateAllProviders:"更新所有提供商",reloadConfigs:"重载配置",mode:"模式",proxySortType:"代理排序方式",defaultsort:"按配置排序",nameasc:"按名称升序",namedesc:"按名称降序",latencydesc:"按延迟降序",latencyasc:"按延迟升序",language:"语言",automaticDisconnection:"自动断开连接",twoColumnNodeForMobile:"双列显示节点",backend:"后端",upgradeCore:"更新核心",tunMode:"Tun 模式",truncateProxyName:"截断代理名称",sourceIPLabels:"源IP标签",proxyPreviewType:"代理预览类型",auto:"自动",dots:"点",bar:"条",exportSettings:"导出设置",importSettings:"导入设置",hideUnavailable:"隐藏不可用",protocolTips:"您正在尝试连接一个http后端但zashboard是通过https提供的,这可能会导致连接错误,请在浏览器设置中允许不安全的内容,设置在浏览器地址栏左侧。",global:"全局",direct:"直连",quickFilterTip:"快速过滤使用正则表达式进行匹配,支持一键排除符合代理链、主机或目标 IP 的连接。",lowLatencyDesc:"黄色的阈值",mediumLatencyDesc:"红色的阈值",fonts:"字体",statistics:"统计",unauthorizedTip:"未授权,请重新登录",restartCore:"重启核心",autoUpgrade:"自动更新",secondaryPath:"二级路径",secondaryPathTip:"如果有的话以/开头,没有则留空不填",logRetentionLimit:"日志保留条数",DNSQuery:"DNS 查询"},fx=dY({locale:Pa.value,messages:{[$a.EN_US]:xY,[$a.ZH_CN]:CY}});var hh={exports:{}};/** + */const Q7="10.0.5";function J7(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Jl().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Jl().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Jl().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Jl().__INTLIFY_PROD_DEVTOOLS__=!1)}const Fr={UNEXPECTED_RETURN_TYPE:m7,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 ei(e,...t){return y0(e,null,void 0)}const Jw=nl("__translateVNode"),eb=nl("__datetimeParts"),tb=nl("__numberParts"),wO=nl("__setPluralRules"),bO=nl("__injectWithOption"),nb=nl("__dispose");function xd(e){if(!Wt(e))return e;for(const t in e)if(go(e,t))if(!t.includes("."))Wt(e[t])&&xd(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,o=!1;for(let a=0;a{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(a[l]=a[l]||sn(),Sg(u,a[l])):Sg(u,a)}else Fe(s)&&Sg(JSON.parse(s),a)}),i==null&&o)for(const s in a)go(a,s)&&xd(a[s]);return a}function SO(e){return e.type}function xO(e,t,n){let r=Wt(t.messages)?t.messages:sn();"__i18nGlobal"in n&&(r=lx(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Wt(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Wt(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function R2(e){return Se(Yd,null,e,0)}const D2="__INTLIFY_META__",I2=()=>[],eY=()=>!1;let P2=0;function L2(e){return(t,n,r,i)=>e(n,r,Jo()||void 0,i)}const tY=()=>{const e=Jo();let t=null;return e&&(t=SO(e)[D2])?{[D2]:t}:null};function ux(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,o=cm?Ie:zd;let a=Vt(e.inheritLocale)?e.inheritLocale:!0;const s=o(t&&a?t.locale.value:Fe(e.locale)?e.locale:Sd),l=o(t&&a?t.fallbackLocale.value:Fe(e.fallbackLocale)||Ln(e.fallbackLocale)||At(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=o(lx(s.value,e)),c=o(At(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=o(At(e.numberFormats)?e.numberFormats:{[s.value]:{}});let p=t?t.missingWarn:Vt(e.missingWarn)||Gc(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:Vt(e.fallbackWarn)||Gc(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:Vt(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,_=bn(e.missing)?e.missing:null,m=bn(e.missing)?L2(e.missing):null,b=bn(e.postTranslation)?e.postTranslation:null,S=t?t.warnHtmlMessage:Vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const E=t?t.modifiers:At(e.modifiers)?e.modifiers:{};let T=e.pluralRules||t&&t.pluralRules,A;A=(()=>{r&&w2(null);const Y={version:Q7,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:E,pluralRules:T,missing:m===null?void 0:m,missingWarn:p,fallbackWarn:d,fallbackFormat:y,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Y.datetimeFormats=c.value,Y.numberFormats=f.value,Y.__datetimeFormatters=At(A)?A.__datetimeFormatters:void 0,Y.__numberFormatters=At(A)?A.__numberFormatters:void 0;const re=F7(Y);return r&&w2(re),re})(),kf(A,s.value,l.value);function P(){return[s.value,l.value,u.value,c.value,f.value]}const O=Le({get:()=>s.value,set:Y=>{s.value=Y,A.locale=s.value}}),k=Le({get:()=>l.value,set:Y=>{l.value=Y,A.fallbackLocale=l.value,kf(A,s.value,Y)}}),H=Le(()=>u.value),te=Le(()=>c.value),W=Le(()=>f.value);function q(){return bn(b)?b:null}function j(Y){b=Y,A.postTranslation=Y}function ie(){return _}function J(Y){Y!==null&&(m=L2(Y)),_=Y,A.missing=m}const ce=(Y,re,Me,Be,ft,bt)=>{P();let rn;try{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=t?N7():void 0),rn=Y(A)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(Me!=="translate exists"&&Vn(rn)&&rn===_0||Me==="translate exists"&&!rn){const[yn,kn]=re();return t&&g?Be(t):ft(yn)}else{if(bt(rn))return rn;throw ei(Fr.UNEXPECTED_RETURN_TYPE)}};function ye(...Y){return ce(re=>Reflect.apply(M2,null,[re,...Y]),()=>Qw(...Y),"translate",re=>Reflect.apply(re.t,re,[...Y]),re=>re,re=>Fe(re))}function we(...Y){const[re,Me,Be]=Y;if(Be&&!Wt(Be))throw ei(Fr.INVALID_ARGUMENT);return ye(re,Me,Xn({resolvedMessage:!0},Be||{}))}function Ne(...Y){return ce(re=>Reflect.apply(S2,null,[re,...Y]),()=>Kw(...Y),"datetime format",re=>Reflect.apply(re.d,re,[...Y]),()=>y2,re=>Fe(re))}function ke(...Y){return ce(re=>Reflect.apply(C2,null,[re,...Y]),()=>Zw(...Y),"number format",re=>Reflect.apply(re.n,re,[...Y]),()=>y2,re=>Fe(re))}function je(Y){return Y.map(re=>Fe(re)||Vn(re)||Vt(re)?R2(String(re)):re)}const We={normalize:je,interpolate:Y=>Y,type:"vnode"};function le(...Y){return ce(re=>{let Me;const Be=re;try{Be.processor=We,Me=Reflect.apply(M2,null,[Be,...Y])}finally{Be.processor=null}return Me},()=>Qw(...Y),"translate",re=>re[Jw](...Y),re=>[R2(re)],re=>Ln(re))}function Te(...Y){return ce(re=>Reflect.apply(C2,null,[re,...Y]),()=>Zw(...Y),"number format",re=>re[tb](...Y),I2,re=>Fe(re)||Ln(re))}function _e(...Y){return ce(re=>Reflect.apply(S2,null,[re,...Y]),()=>Kw(...Y),"datetime format",re=>re[eb](...Y),I2,re=>Fe(re)||Ln(re))}function xe(Y){T=Y,A.pluralRules=T}function Ee(Y,re){return ce(()=>{if(!Y)return!1;const Me=Fe(re)?re:s.value,Be=B(Me),ft=A.messageResolver(Be,Y);return Yc(ft)||zi(ft)||Fe(ft)},()=>[Y],"translate exists",Me=>Reflect.apply(Me.te,Me,[Y,re]),eY,Me=>Vt(Me))}function De(Y){let re=null;const Me=cO(A,l.value,s.value);for(let Be=0;Be{a&&(s.value=Y,A.locale=Y,kf(A,s.value,l.value))}),kt(t.fallbackLocale,Y=>{a&&(l.value=Y,A.fallbackLocale=Y,kf(A,s.value,l.value))}));const Ce={id:P2,locale:O,fallbackLocale:k,get inheritLocale(){return a},set inheritLocale(Y){a=Y,Y&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,kf(A,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:H,get modifiers(){return E},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(Y){p=Y,A.missingWarn=p},get fallbackWarn(){return d},set fallbackWarn(Y){d=Y,A.fallbackWarn=d},get fallbackRoot(){return g},set fallbackRoot(Y){g=Y},get fallbackFormat(){return y},set fallbackFormat(Y){y=Y,A.fallbackFormat=y},get warnHtmlMessage(){return S},set warnHtmlMessage(Y){S=Y,A.warnHtmlMessage=Y},get escapeParameter(){return x},set escapeParameter(Y){x=Y,A.escapeParameter=Y},t:ye,getLocaleMessage:B,setLocaleMessage:ne,mergeLocaleMessage:me,getPostTranslationHandler:q,setPostTranslationHandler:j,getMissingHandler:ie,setMissingHandler:J,[wO]:xe};return Ce.datetimeFormats=te,Ce.numberFormats=W,Ce.rt=we,Ce.te=Ee,Ce.tm=N,Ce.d=Ne,Ce.n=ke,Ce.getDateTimeFormat=ue,Ce.setDateTimeFormat=L,Ce.mergeDateTimeFormat=V,Ce.getNumberFormat=Z,Ce.setNumberFormat=oe,Ce.mergeNumberFormat=pe,Ce[bO]=n,Ce[Jw]=le,Ce[eb]=_e,Ce[tb]=Te,Ce}function nY(e){const t=Fe(e.locale)?e.locale:Sd,n=Fe(e.fallbackLocale)||Ln(e.fallbackLocale)||At(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=bn(e.missing)?e.missing:void 0,i=Vt(e.silentTranslationWarn)||Gc(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=Vt(e.silentFallbackWarn)||Gc(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=Vt(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=At(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=bn(e.postTranslation)?e.postTranslation:void 0,f=Fe(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,d=Vt(e.sync)?e.sync:!0;let g=e.messages;if(At(e.sharedMessages)){const E=e.sharedMessages;g=Object.keys(E).reduce((A,D)=>{const P=A[D]||(A[D]={});return Xn(P,E[D]),A},g||{})}const{__i18n:y,__root:_,__injectWithOption:m}=e,b=e.datetimeFormats,S=e.numberFormats,x=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:x,datetimeFormats:b,numberFormats:S,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:d,__i18n:y,__root:_,__injectWithOption:m}}function rb(e={}){const t=ux(nY(e)),{__extender:n}=e,r={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 Vt(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=Vt(i)?!i:i},get silentFallbackWarn(){return Vt(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=Vt(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[o,a,s]=i,l={plural:1};let u=null,c=null;if(!Fe(o))throw ei(Fr.INVALID_ARGUMENT);const f=o;return Fe(a)?l.locale=a:Vn(a)?l.plural=a:Ln(a)?u=a:At(a)&&(c=a),Fe(s)?l.locale=s:Ln(s)?u=s:At(s)&&(c=s),Reflect.apply(t.t,t,[f,u||c||{},l])},te(i,o){return t.te(i,o)},tm(i){return t.tm(i)},getLocaleMessage(i){return t.getLocaleMessage(i)},setLocaleMessage(i,o){t.setLocaleMessage(i,o)},mergeLocaleMessage(i,o){t.mergeLocaleMessage(i,o)},d(...i){return Reflect.apply(t.d,t,[...i])},getDateTimeFormat(i){return t.getDateTimeFormat(i)},setDateTimeFormat(i,o){t.setDateTimeFormat(i,o)},mergeDateTimeFormat(i,o){t.mergeDateTimeFormat(i,o)},n(...i){return Reflect.apply(t.n,t,[...i])},getNumberFormat(i){return t.getNumberFormat(i)},setNumberFormat(i,o){t.setNumberFormat(i,o)},mergeNumberFormat(i,o){t.mergeNumberFormat(i,o)}};return r.__extender=n,r}function rY(e,t,n){return{beforeCreate(){const r=Jo();if(!r)throw ei(Fr.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const o=i.i18n;if(i.__i18n&&(o.__i18n=i.__i18n),o.__root=t,this===this.$root)this.$i18n=O2(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=rb(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=O2(e,i);else{this.$i18n=rb({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&xO(t,i,i),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,a)=>this.$i18n.te(o,a),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=Jo();if(!r)throw ei(Fr.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),n.__deleteInstance(r),delete this.$i18n}}}function O2(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[wO](t.pluralizationRules||e.pluralizationRules);const n=lx(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const cx={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function iY({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Ye?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},sn())}function CO(){return Ye}const oY=lt({name:"i18n-t",props:Xn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Vn(e)||!isNaN(e)}},cx),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||Ga({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),a=sn();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Fe(e.plural)?+e.plural:e.plural);const s=iY(t,o),l=i[Jw](e.keypath,s,a),u=Xn(sn(),r),c=Fe(e.tag)||Wt(e.tag)?e.tag:CO();return zo(c,u,l)}}}),k2=oY;function aY(e){return Ln(e)&&!Fe(e[0])}function TO(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const a={part:!0};let s=sn();e.locale&&(a.locale=e.locale),Fe(e.format)?a.key=e.format:Wt(e.format)&&(Fe(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((p,d)=>n.includes(d)?Xn(sn(),p,{[d]:e.format[d]}):p,sn()));const l=r(e.value,a,s);let u=[a.key];Ln(l)?u=l.map((p,d)=>{const g=i[p.type],y=g?g({[p.type]:p.value,index:d,parts:l}):[p.value];return aY(y)&&(y[0].key=`${p.type}-${d}`),y}):Fe(l)&&(u=[l]);const c=Xn(sn(),o),f=Fe(e.tag)||Wt(e.tag)?e.tag:CO();return zo(f,c,u)}}const sY=lt({name:"i18n-n",props:Xn({value:{type:Number,required:!0},format:{type:[String,Object]}},cx),setup(e,t){const n=e.i18n||Ga({useScope:e.scope,__useComponent:!0});return TO(e,t,mO,(...r)=>n[tb](...r))}}),N2=sY,lY=lt({name:"i18n-d",props:Xn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},cx),setup(e,t){const n=e.i18n||Ga({useScope:e.scope,__useComponent:!0});return TO(e,t,gO,(...r)=>n[eb](...r))}}),F2=lY;function uY(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function cY(e){const t=a=>{const{instance:s,value:l}=a;if(!s||!s.$)throw ei(Fr.UNEXPECTED_ERROR);const u=uY(e,s.$),c=$2(l);return[Reflect.apply(u.t,u,[...B2(c)]),u]};return{created:(a,s)=>{const[l,u]=t(s);cm&&e.global===u&&(a.__i18nWatcher=kt(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{cm&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,u=$2(s);a.textContent=Reflect.apply(l.t,l,[...B2(u)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function $2(e){if(Fe(e))return{path:e};if(At(e)){if(!("path"in e))throw ei(Fr.REQUIRED_VALUE,"path");return e}else throw ei(Fr.INVALID_VALUE)}function B2(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,a={},s=r||{};return Fe(n)&&(a.locale=n),Vn(i)&&(a.plural=i),Vn(o)&&(a.plural=o),[t,s,a]}function fY(e,t,...n){const r=At(n[0])?n[0]:{};(Vt(r.globalInstall)?r.globalInstall:!0)&&([k2.name,"I18nT"].forEach(o=>e.component(o,k2)),[N2.name,"I18nN"].forEach(o=>e.component(o,N2)),[F2.name,"I18nD"].forEach(o=>e.component(o,F2))),e.directive("t",cY(t))}const hY=nl("global-vue-i18n");function dY(e={},t){const n=__VUE_I18N_LEGACY_API__&&Vt(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=Vt(e.globalInjection)?e.globalInjection:!0,i=new Map,[o,a]=pY(e,n),s=nl("");function l(p){return i.get(p)||null}function u(p,d){i.set(p,d)}function c(p){i.delete(p)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(p,...d){if(p.__VUE_I18N_SYMBOL__=s,p.provide(p.__VUE_I18N_SYMBOL__,f),At(d[0])){const _=d[0];f.__composerExtend=_.__composerExtend,f.__vueI18nExtend=_.__vueI18nExtend}let g=null;!n&&r&&(g=SY(p,f.global)),__VUE_I18N_FULL_INSTALL__&&fY(p,f,...d),__VUE_I18N_LEGACY_API__&&n&&p.mixin(rY(a,a.__composer,f));const y=p.unmount;p.unmount=()=>{g&&g(),f.dispose(),y()}},get global(){return a},dispose(){o.stop()},__instances:i,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function Ga(e={}){const t=Jo();if(t==null)throw ei(Fr.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ei(Fr.NOT_INSTALLED);const n=vY(t),r=mY(n),i=SO(t),o=gY(e,i);if(o==="global")return xO(r,e,i),r;if(o==="parent"){let l=yY(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Xn({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=ux(l),a.__composerExtend&&(s[nb]=a.__composerExtend(s)),wY(a,t,s),a.__setInstance(t,s)}return s}function pY(e,t,n){const r=g8(),i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>rb(e)):r.run(()=>ux(e));if(i==null)throw ei(Fr.UNEXPECTED_ERROR);return[r,i]}function vY(e){const t=Xi(e.isCE?hY:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ei(e.isCE?Fr.NOT_INSTALLED_WITH_PROVIDE:Fr.UNEXPECTED_ERROR);return t}function gY(e,t){return m0(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function mY(e){return e.mode==="composition"?e.global:e.global.__composer}function yY(e,t,n=!1){let r=null;const i=t.root;let o=_Y(t,n);for(;o!=null;){const a=e;if(e.mode==="composition")r=a.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(o);s!=null&&(r=s.__composer,n&&r&&!r[bO]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function _Y(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function wY(e,t,n){tl(()=>{},t),Wd(()=>{const r=n;e.__deleteInstance(t);const i=r[nb];i&&(i(),delete r[nb])},t)}const bY=["locale","fallbackLocale","availableLocales"],V2=["t","rt","d","n","tm","te"];function SY(e,t){const n=Object.create(null);return bY.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw ei(Fr.UNEXPECTED_ERROR);const a=Qe(o.value)?{get(){return o.value.value},set(s){o.value.value=s}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,i,a)}),e.config.globalProperties.$i18n=n,V2.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o||!o.value)throw ei(Fr.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,o)}),()=>{delete e.config.globalProperties.$i18n,V2.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}J7();I7(h7);P7(M7);L7(cO);if(__INTLIFY_PROD_DEVTOOLS__){const e=Jl();e.__INTLIFY__=!0,d7(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const xY={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",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",twoColumnProxyGroup:"Two Column Proxy Group",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",updateAllProviders:"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",twoColumnNodeForMobile:"Two Column Proxy Node",backend:"Backend",tunMode:"Tun Mode",upgradeCore:"Upgrade Core",truncateProxyName:"Truncate Proxy Name",sourceIPLabels:"Source IP Labels",proxyPreviewType:"Proxy Preview Type",auto:"Auto",dots:"Dots",bar:"Bar",exportSettings:"Export Settings",importSettings:"Import Settings",hideUnavailable:"Hide Unavail",protocolTips:"You are trying to connect a http backend but the zashboard is served by https. This may cause connection error. Please allow the insecure content in your browser settings. The settings is on the left of the browser address bar.",global:"Global",direct:"Direct",quickFilterTip:"Quick filtering allows one-click exclusion of connections matching proxy chains, host, or destination IPs using regular expressions.",lowLatencyDesc:"Yellow threshold",mediumLatencyDesc:"Red threshold",fonts:"Fonts",statistics:"Statistics",unauthorizedTip:"Unauthorized, please login again.",restartCore:"Restart Core",autoUpgrade:"Auto Upgrade",secondaryPath:"Secondary Path",secondaryPathTip:'If present, start with a "/", otherwise leave it empty.',logRetentionLimit:"Log Retention Limit",DNSQuery:"DNS Query"},CY={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:"日志等级",twoColumnProxyGroup:"双列显示代理组",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:"更新面板",updateAllProviders:"更新所有提供商",reloadConfigs:"重载配置",mode:"模式",proxySortType:"代理排序方式",defaultsort:"按配置排序",nameasc:"按名称升序",namedesc:"按名称降序",latencydesc:"按延迟降序",latencyasc:"按延迟升序",language:"语言",automaticDisconnection:"自动断开连接",twoColumnNodeForMobile:"双列显示节点",backend:"后端",upgradeCore:"更新核心",tunMode:"Tun 模式",truncateProxyName:"截断代理名称",sourceIPLabels:"源IP标签",proxyPreviewType:"代理预览类型",auto:"自动",dots:"点",bar:"条",exportSettings:"导出设置",importSettings:"导入设置",hideUnavailable:"隐藏不可用",protocolTips:"您正在尝试连接一个http后端但zashboard是通过https提供的,这可能会导致连接错误,请在浏览器设置中允许不安全的内容,设置在浏览器地址栏左侧。",global:"全局",direct:"直连",quickFilterTip:"快速过滤使用正则表达式进行匹配,支持一键排除符合代理链、主机或目标 IP 的连接。",lowLatencyDesc:"黄色的阈值",mediumLatencyDesc:"红色的阈值",fonts:"字体",statistics:"统计",unauthorizedTip:"未授权,请重新登录",restartCore:"重启核心",autoUpgrade:"自动更新",secondaryPath:"二级路径",secondaryPathTip:"如果有的话以/开头,没有则留空不填",logRetentionLimit:"日志保留条数",DNSQuery:"DNS 查询"},fx=dY({locale:Pa.value,messages:{[$a.EN_US]:xY,[$a.ZH_CN]:CY}});var hh={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 TY=hh.exports,U2;function EY(){return U2||(U2=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,p=2,d=4,g=1,y=2,_=1,m=2,b=4,S=8,x=16,E=32,T=64,A=128,D=256,P=512,O=30,k="...",H=800,te=16,W=1,q=2,j=3,ie=1/0,J=9007199254740991,ce=17976931348623157e292,ye=NaN,we=4294967295,Ne=we-1,ke=we>>>1,je=[["ary",A],["bind",_],["bindKey",m],["curry",S],["curryRight",x],["flip",P],["partial",E],["partialRight",T],["rearg",D]],He="[object Arguments]",We="[object Array]",le="[object AsyncFunction]",Te="[object Boolean]",_e="[object Date]",xe="[object DOMException]",Ee="[object Error]",De="[object Function]",F="[object GeneratorFunction]",B="[object Map]",ne="[object Number]",me="[object Null]",ue="[object Object]",L="[object Promise]",V="[object Proxy]",Z="[object RegExp]",oe="[object Set]",pe="[object String]",Ce="[object Symbol]",Y="[object Undefined]",re="[object WeakMap]",Me="[object WeakSet]",Be="[object ArrayBuffer]",ft="[object DataView]",bt="[object Float32Array]",rn="[object Float64Array]",yn="[object Int8Array]",kn="[object Int16Array]",Rn="[object Int32Array]",Yn="[object Uint8Array]",oi="[object Uint8ClampedArray]",Nn="[object Uint16Array]",Zn="[object Uint32Array]",xu=/\b__p \+= '';/g,Cu=/\b(__p \+=) '' \+/g,Tu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rp=/&(?:amp|lt|gt|quot|#39);/g,Ja=/[&<>"']/g,sy=RegExp(rp.source),ly=RegExp(Ja.source),Un=/<%-([\s\S]+?)%>/g,es=/<%([\s\S]+?)%>/g,ip=/<%=([\s\S]+?)%>/g,op=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hf=/^\w*$/,ap=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Eu=/[\\^$.*+?()[\]{}|]/g,uy=RegExp(Eu.source),Br=/^\s+/,Au=/\s/,sp=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,lp=/\{\n\/\* \[wrapped with (.+)\] \*/,up=/,? & /,cp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,to=/[()=,{}\[\]\/\s]/,fp=/\\(\\)?/g,hp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,df=/\w*$/,dp=/^[-+]0x[0-9a-f]+$/i,cy=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,K=/^0o[0-7]+$/i,Ae=/^(?:0|[1-9]\d*)$/,Ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jt=/($^)/,Qn=/['\n\r\u2028\u2029\\]/g,Dn="\\ud800-\\udfff",fr="\\u0300-\\u036f",Mi="\\ufe20-\\ufe2f",al="\\u20d0-\\u20ff",Jn=fr+Mi+al,pf="\\u2700-\\u27bf",vf="a-z\\xdf-\\xf6\\xf8-\\xff",Y3="\\xac\\xb1\\xd7\\xf7",j3="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",q3="\\u2000-\\u206f",X3=" \\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",VC="A-Z\\xc0-\\xd6\\xd8-\\xde",HC="\\ufe0e\\ufe0f",UC=Y3+j3+q3+X3,fy="['’]",K3="["+Dn+"]",zC="["+UC+"]",pp="["+Jn+"]",GC="\\d+",Z3="["+pf+"]",WC="["+vf+"]",YC="[^"+Dn+UC+GC+pf+vf+VC+"]",hy="\\ud83c[\\udffb-\\udfff]",Q3="(?:"+pp+"|"+hy+")",jC="[^"+Dn+"]",dy="(?:\\ud83c[\\udde6-\\uddff]){2}",py="[\\ud800-\\udbff][\\udc00-\\udfff]",Mu="["+VC+"]",qC="\\u200d",XC="(?:"+WC+"|"+YC+")",J3="(?:"+Mu+"|"+YC+")",KC="(?:"+fy+"(?:d|ll|m|re|s|t|ve))?",ZC="(?:"+fy+"(?:D|LL|M|RE|S|T|VE))?",QC=Q3+"?",JC="["+HC+"]?",e$="(?:"+qC+"(?:"+[jC,dy,py].join("|")+")"+JC+QC+")*",t$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",n$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",eT=JC+QC+e$,r$="(?:"+[Z3,dy,py].join("|")+")"+eT,i$="(?:"+[jC+pp+"?",pp,dy,py,K3].join("|")+")",o$=RegExp(fy,"g"),a$=RegExp(pp,"g"),vy=RegExp(hy+"(?="+hy+")|"+i$+eT,"g"),s$=RegExp([Mu+"?"+WC+"+"+KC+"(?="+[zC,Mu,"$"].join("|")+")",J3+"+"+ZC+"(?="+[zC,Mu+XC,"$"].join("|")+")",Mu+"?"+XC+"+"+KC,Mu+"+"+ZC,n$,t$,GC,r$].join("|"),"g"),l$=RegExp("["+qC+Dn+Jn+HC+"]"),u$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,c$=["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"],f$=-1,_n={};_n[bt]=_n[rn]=_n[yn]=_n[kn]=_n[Rn]=_n[Yn]=_n[oi]=_n[Nn]=_n[Zn]=!0,_n[He]=_n[We]=_n[Be]=_n[Te]=_n[ft]=_n[_e]=_n[Ee]=_n[De]=_n[B]=_n[ne]=_n[ue]=_n[Z]=_n[oe]=_n[pe]=_n[re]=!1;var vn={};vn[He]=vn[We]=vn[Be]=vn[ft]=vn[Te]=vn[_e]=vn[bt]=vn[rn]=vn[yn]=vn[kn]=vn[Rn]=vn[B]=vn[ne]=vn[ue]=vn[Z]=vn[oe]=vn[pe]=vn[Ce]=vn[Yn]=vn[oi]=vn[Nn]=vn[Zn]=!0,vn[Ee]=vn[De]=vn[re]=!1;var h$={À:"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"},d$={"&":"&","<":"<",">":">",'"':""","'":"'"},p$={"&":"&","<":"<",">":">",""":'"',"'":"'"},v$={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},g$=parseFloat,m$=parseInt,tT=typeof ev=="object"&&ev&&ev.Object===Object&&ev,y$=typeof self=="object"&&self&&self.Object===Object&&self,ir=tT||y$||Function("return this")(),gy=t&&!t.nodeType&&t,sl=gy&&!0&&e&&!e.nodeType&&e,nT=sl&&sl.exports===gy,my=nT&&tT.process,Ri=function(){try{var Q=sl&&sl.require&&sl.require("util").types;return Q||my&&my.binding&&my.binding("util")}catch{}}(),rT=Ri&&Ri.isArrayBuffer,iT=Ri&&Ri.isDate,oT=Ri&&Ri.isMap,aT=Ri&&Ri.isRegExp,sT=Ri&&Ri.isSet,lT=Ri&&Ri.isTypedArray;function ai(Q,he,se){switch(se.length){case 0:return Q.call(he);case 1:return Q.call(he,se[0]);case 2:return Q.call(he,se[0],se[1]);case 3:return Q.call(he,se[0],se[1],se[2])}return Q.apply(he,se)}function _$(Q,he,se,$e){for(var ht=-1,Ht=Q==null?0:Q.length;++ht-1}function yy(Q,he,se){for(var $e=-1,ht=Q==null?0:Q.length;++$e-1;);return se}function gT(Q,he){for(var se=Q.length;se--&&Ru(he,Q[se],0)>-1;);return se}function M$(Q,he){for(var se=Q.length,$e=0;se--;)Q[se]===he&&++$e;return $e}var R$=Sy(h$),D$=Sy(d$);function I$(Q){return"\\"+v$[Q]}function P$(Q,he){return Q==null?n:Q[he]}function Du(Q){return l$.test(Q)}function L$(Q){return u$.test(Q)}function O$(Q){for(var he,se=[];!(he=Q.next()).done;)se.push(he.value);return se}function Ey(Q){var he=-1,se=Array(Q.size);return Q.forEach(function($e,ht){se[++he]=[ht,$e]}),se}function mT(Q,he){return function(se){return Q(he(se))}}function rs(Q,he){for(var se=-1,$e=Q.length,ht=0,Ht=[];++se<$e;){var jn=Q[se];(jn===he||jn===c)&&(Q[se]=c,Ht[ht++]=se)}return Ht}function mp(Q){var he=-1,se=Array(Q.size);return Q.forEach(function($e){se[++he]=$e}),se}function k$(Q){var he=-1,se=Array(Q.size);return Q.forEach(function($e){se[++he]=[$e,$e]}),se}function N$(Q,he,se){for(var $e=se-1,ht=Q.length;++$e-1}function bB(h,v){var w=this.__data__,C=Pp(w,h);return C<0?(++this.size,w.push([h,v])):w[C][1]=v,this}la.prototype.clear=mB,la.prototype.delete=yB,la.prototype.get=_B,la.prototype.has=wB,la.prototype.set=bB;function ua(h){var v=-1,w=h==null?0:h.length;for(this.clear();++v=v?h:v)),h}function Li(h,v,w,C,M,I){var U,z=v&f,ee=v&p,ve=v&d;if(w&&(U=M?w(h,C,M,I):w(h)),U!==n)return U;if(!En(h))return h;var ge=gt(h);if(ge){if(U=T4(h),!z)return Vr(h,U)}else{var be=dr(h),Oe=be==De||be==F;if(us(h))return JT(h,z);if(be==ue||be==He||Oe&&!M){if(U=ee||Oe?{}:yE(h),!z)return ee?p4(h,FB(U,h)):d4(h,RT(U,h))}else{if(!vn[be])return M?h:{};U=E4(h,be,z)}}I||(I=new ro);var Ge=I.get(h);if(Ge)return Ge;I.set(h,U),jE(h)?h.forEach(function(tt){U.add(Li(tt,v,w,tt,h,I))}):WE(h)&&h.forEach(function(tt,Dt){U.set(Dt,Li(tt,v,w,Dt,h,I))});var et=ve?ee?Qy:Zy:ee?Ur:er,Tt=ge?n:et(h);return Di(Tt||h,function(tt,Dt){Tt&&(Dt=tt,tt=h[Dt]),Sf(U,Dt,Li(tt,v,w,Dt,h,I))}),U}function $B(h){var v=er(h);return function(w){return DT(w,h,v)}}function DT(h,v,w){var C=w.length;if(h==null)return!C;for(h=ln(h);C--;){var M=w[C],I=v[M],U=h[M];if(U===n&&!(M in h)||!I(U))return!1}return!0}function IT(h,v,w){if(typeof h!="function")throw new Ii(a);return Rf(function(){h.apply(n,w)},v)}function xf(h,v,w,C){var M=-1,I=vp,U=!0,z=h.length,ee=[],ve=v.length;if(!z)return ee;w&&(v=Sn(v,si(w))),C?(I=yy,U=!1):v.length>=i&&(I=gf,U=!1,v=new cl(v));e:for(;++MM?0:M+w),C=C===n||C>M?M:St(C),C<0&&(C+=M),C=w>C?0:XE(C);w0&&w(z)?v>1?or(z,v-1,w,C,M):ns(M,z):C||(M[M.length]=z)}return M}var Ly=oE(),OT=oE(!0);function Ro(h,v){return h&&Ly(h,v,er)}function Oy(h,v){return h&&OT(h,v,er)}function Op(h,v){return ts(v,function(w){return pa(h[w])})}function hl(h,v){v=ss(v,h);for(var w=0,C=v.length;h!=null&&wv}function HB(h,v){return h!=null&&en.call(h,v)}function UB(h,v){return h!=null&&v in ln(h)}function zB(h,v,w){return h>=hr(v,w)&&h=120&&ge.length>=120)?new cl(U&&ge):n}ge=h[0];var be=-1,Oe=z[0];e:for(;++be-1;)z!==h&&Tp.call(z,ee,1),Tp.call(h,ee,1);return h}function WT(h,v){for(var w=h?v.length:0,C=w-1;w--;){var M=v[w];if(w==C||M!==I){var I=M;da(M)?Tp.call(h,M,1):Gy(h,M)}}return h}function Hy(h,v){return h+Mp(TT()*(v-h+1))}function n4(h,v,w,C){for(var M=-1,I=qn(Ap((v-h)/(w||1)),0),U=se(I);I--;)U[C?I:++M]=h,h+=w;return U}function Uy(h,v){var w="";if(!h||v<1||v>J)return w;do v%2&&(w+=h),v=Mp(v/2),v&&(h+=h);while(v);return w}function Et(h,v){return o_(bE(h,v,zr),h+"")}function r4(h){return MT(Hu(h))}function i4(h,v){var w=Hu(h);return Wp(w,fl(v,0,w.length))}function Ef(h,v,w,C){if(!En(h))return h;v=ss(v,h);for(var M=-1,I=v.length,U=I-1,z=h;z!=null&&++MM?0:M+v),w=w>M?M:w,w<0&&(w+=M),M=v>w?0:w-v>>>0,v>>>=0;for(var I=se(M);++C>>1,U=h[I];U!==null&&!ui(U)&&(w?U<=v:U=i){var ve=v?null:y4(h);if(ve)return mp(ve);U=!1,M=gf,ee=new cl}else ee=v?[]:z;e:for(;++C=C?h:Oi(h,v,w)}var QT=X$||function(h){return ir.clearTimeout(h)};function JT(h,v){if(v)return h.slice();var w=h.length,C=wT?wT(w):new h.constructor(w);return h.copy(C),C}function qy(h){var v=new h.constructor(h.byteLength);return new xp(v).set(new xp(h)),v}function u4(h,v){var w=v?qy(h.buffer):h.buffer;return new h.constructor(w,h.byteOffset,h.byteLength)}function c4(h){var v=new h.constructor(h.source,df.exec(h));return v.lastIndex=h.lastIndex,v}function f4(h){return bf?ln(bf.call(h)):{}}function eE(h,v){var w=v?qy(h.buffer):h.buffer;return new h.constructor(w,h.byteOffset,h.length)}function tE(h,v){if(h!==v){var w=h!==n,C=h===null,M=h===h,I=ui(h),U=v!==n,z=v===null,ee=v===v,ve=ui(v);if(!z&&!ve&&!I&&h>v||I&&U&&ee&&!z&&!ve||C&&U&&ee||!w&&ee||!M)return 1;if(!C&&!I&&!ve&&h=z)return ee;var ve=w[C];return ee*(ve=="desc"?-1:1)}}return h.index-v.index}function nE(h,v,w,C){for(var M=-1,I=h.length,U=w.length,z=-1,ee=v.length,ve=qn(I-U,0),ge=se(ee+ve),be=!C;++z1?w[M-1]:n,U=M>2?w[2]:n;for(I=h.length>3&&typeof I=="function"?(M--,I):n,U&&Cr(w[0],w[1],U)&&(I=M<3?n:I,M=1),v=ln(v);++C-1?M[I?v[U]:U]:n}}function lE(h){return ha(function(v){var w=v.length,C=w,M=Pi.prototype.thru;for(h&&v.reverse();C--;){var I=v[C];if(typeof I!="function")throw new Ii(a);if(M&&!U&&zp(I)=="wrapper")var U=new Pi([],!0)}for(C=U?C:w;++C1&&Lt.reverse(),ge&&eez))return!1;var ve=I.get(h),ge=I.get(v);if(ve&&ge)return ve==v&&ge==h;var be=-1,Oe=!0,Ge=w&y?new cl:n;for(I.set(h,v),I.set(v,h);++be1?"& ":"")+v[C],v=v.join(w>2?", ":" "),h.replace(sp,`{ + */var TY=hh.exports,H2;function EY(){return H2||(H2=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,p=2,d=4,g=1,y=2,_=1,m=2,b=4,S=8,x=16,E=32,T=64,A=128,D=256,P=512,O=30,k="...",H=800,te=16,W=1,q=2,j=3,ie=1/0,J=9007199254740991,ce=17976931348623157e292,ye=NaN,we=4294967295,Ne=we-1,ke=we>>>1,je=[["ary",A],["bind",_],["bindKey",m],["curry",S],["curryRight",x],["flip",P],["partial",E],["partialRight",T],["rearg",D]],He="[object Arguments]",We="[object Array]",le="[object AsyncFunction]",Te="[object Boolean]",_e="[object Date]",xe="[object DOMException]",Ee="[object Error]",De="[object Function]",N="[object GeneratorFunction]",B="[object Map]",ne="[object Number]",me="[object Null]",ue="[object Object]",L="[object Promise]",V="[object Proxy]",Z="[object RegExp]",oe="[object Set]",pe="[object String]",Ce="[object Symbol]",Y="[object Undefined]",re="[object WeakMap]",Me="[object WeakSet]",Be="[object ArrayBuffer]",ft="[object DataView]",bt="[object Float32Array]",rn="[object Float64Array]",yn="[object Int8Array]",kn="[object Int16Array]",Rn="[object Int32Array]",Yn="[object Uint8Array]",oi="[object Uint8ClampedArray]",Nn="[object Uint16Array]",Zn="[object Uint32Array]",xu=/\b__p \+= '';/g,Cu=/\b(__p \+=) '' \+/g,Tu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ip=/&(?:amp|lt|gt|quot|#39);/g,Ja=/[&<>"']/g,sy=RegExp(ip.source),ly=RegExp(Ja.source),Un=/<%-([\s\S]+?)%>/g,es=/<%([\s\S]+?)%>/g,op=/<%=([\s\S]+?)%>/g,ap=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hf=/^\w*$/,sp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Eu=/[\\^$.*+?()[\]{}|]/g,uy=RegExp(Eu.source),Br=/^\s+/,Au=/\s/,lp=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,up=/\{\n\/\* \[wrapped with (.+)\] \*/,cp=/,? & /,fp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,eo=/[()=,{}\[\]\/\s]/,hp=/\\(\\)?/g,dp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,df=/\w*$/,pp=/^[-+]0x[0-9a-f]+$/i,cy=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,K=/^0o[0-7]+$/i,Ae=/^(?:0|[1-9]\d*)$/,Ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jt=/($^)/,Qn=/['\n\r\u2028\u2029\\]/g,Dn="\\ud800-\\udfff",fr="\\u0300-\\u036f",Ai="\\ufe20-\\ufe2f",al="\\u20d0-\\u20ff",Jn=fr+Ai+al,pf="\\u2700-\\u27bf",vf="a-z\\xdf-\\xf6\\xf8-\\xff",Y3="\\xac\\xb1\\xd7\\xf7",j3="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",q3="\\u2000-\\u206f",X3=" \\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",BC="A-Z\\xc0-\\xd6\\xd8-\\xde",VC="\\ufe0e\\ufe0f",HC=Y3+j3+q3+X3,fy="['’]",K3="["+Dn+"]",UC="["+HC+"]",vp="["+Jn+"]",zC="\\d+",Z3="["+pf+"]",GC="["+vf+"]",WC="[^"+Dn+HC+zC+pf+vf+BC+"]",hy="\\ud83c[\\udffb-\\udfff]",Q3="(?:"+vp+"|"+hy+")",YC="[^"+Dn+"]",dy="(?:\\ud83c[\\udde6-\\uddff]){2}",py="[\\ud800-\\udbff][\\udc00-\\udfff]",Mu="["+BC+"]",jC="\\u200d",qC="(?:"+GC+"|"+WC+")",J3="(?:"+Mu+"|"+WC+")",XC="(?:"+fy+"(?:d|ll|m|re|s|t|ve))?",KC="(?:"+fy+"(?:D|LL|M|RE|S|T|VE))?",ZC=Q3+"?",QC="["+VC+"]?",e$="(?:"+jC+"(?:"+[YC,dy,py].join("|")+")"+QC+ZC+")*",t$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",n$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",JC=QC+ZC+e$,r$="(?:"+[Z3,dy,py].join("|")+")"+JC,i$="(?:"+[YC+vp+"?",vp,dy,py,K3].join("|")+")",o$=RegExp(fy,"g"),a$=RegExp(vp,"g"),vy=RegExp(hy+"(?="+hy+")|"+i$+JC,"g"),s$=RegExp([Mu+"?"+GC+"+"+XC+"(?="+[UC,Mu,"$"].join("|")+")",J3+"+"+KC+"(?="+[UC,Mu+qC,"$"].join("|")+")",Mu+"?"+qC+"+"+XC,Mu+"+"+KC,n$,t$,zC,r$].join("|"),"g"),l$=RegExp("["+jC+Dn+Jn+VC+"]"),u$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,c$=["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"],f$=-1,_n={};_n[bt]=_n[rn]=_n[yn]=_n[kn]=_n[Rn]=_n[Yn]=_n[oi]=_n[Nn]=_n[Zn]=!0,_n[He]=_n[We]=_n[Be]=_n[Te]=_n[ft]=_n[_e]=_n[Ee]=_n[De]=_n[B]=_n[ne]=_n[ue]=_n[Z]=_n[oe]=_n[pe]=_n[re]=!1;var vn={};vn[He]=vn[We]=vn[Be]=vn[ft]=vn[Te]=vn[_e]=vn[bt]=vn[rn]=vn[yn]=vn[kn]=vn[Rn]=vn[B]=vn[ne]=vn[ue]=vn[Z]=vn[oe]=vn[pe]=vn[Ce]=vn[Yn]=vn[oi]=vn[Nn]=vn[Zn]=!0,vn[Ee]=vn[De]=vn[re]=!1;var h$={À:"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"},d$={"&":"&","<":"<",">":">",'"':""","'":"'"},p$={"&":"&","<":"<",">":">",""":'"',"'":"'"},v$={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},g$=parseFloat,m$=parseInt,eT=typeof tv=="object"&&tv&&tv.Object===Object&&tv,y$=typeof self=="object"&&self&&self.Object===Object&&self,ir=eT||y$||Function("return this")(),gy=t&&!t.nodeType&&t,sl=gy&&!0&&e&&!e.nodeType&&e,tT=sl&&sl.exports===gy,my=tT&&eT.process,Mi=function(){try{var Q=sl&&sl.require&&sl.require("util").types;return Q||my&&my.binding&&my.binding("util")}catch{}}(),nT=Mi&&Mi.isArrayBuffer,rT=Mi&&Mi.isDate,iT=Mi&&Mi.isMap,oT=Mi&&Mi.isRegExp,aT=Mi&&Mi.isSet,sT=Mi&&Mi.isTypedArray;function ai(Q,he,se){switch(se.length){case 0:return Q.call(he);case 1:return Q.call(he,se[0]);case 2:return Q.call(he,se[0],se[1]);case 3:return Q.call(he,se[0],se[1],se[2])}return Q.apply(he,se)}function _$(Q,he,se,$e){for(var ht=-1,Ht=Q==null?0:Q.length;++ht-1}function yy(Q,he,se){for(var $e=-1,ht=Q==null?0:Q.length;++$e-1;);return se}function vT(Q,he){for(var se=Q.length;se--&&Ru(he,Q[se],0)>-1;);return se}function M$(Q,he){for(var se=Q.length,$e=0;se--;)Q[se]===he&&++$e;return $e}var R$=Sy(h$),D$=Sy(d$);function I$(Q){return"\\"+v$[Q]}function P$(Q,he){return Q==null?n:Q[he]}function Du(Q){return l$.test(Q)}function L$(Q){return u$.test(Q)}function O$(Q){for(var he,se=[];!(he=Q.next()).done;)se.push(he.value);return se}function Ey(Q){var he=-1,se=Array(Q.size);return Q.forEach(function($e,ht){se[++he]=[ht,$e]}),se}function gT(Q,he){return function(se){return Q(he(se))}}function rs(Q,he){for(var se=-1,$e=Q.length,ht=0,Ht=[];++se<$e;){var jn=Q[se];(jn===he||jn===c)&&(Q[se]=c,Ht[ht++]=se)}return Ht}function yp(Q){var he=-1,se=Array(Q.size);return Q.forEach(function($e){se[++he]=$e}),se}function k$(Q){var he=-1,se=Array(Q.size);return Q.forEach(function($e){se[++he]=[$e,$e]}),se}function N$(Q,he,se){for(var $e=se-1,ht=Q.length;++$e-1}function bB(h,v){var w=this.__data__,C=Lp(w,h);return C<0?(++this.size,w.push([h,v])):w[C][1]=v,this}la.prototype.clear=mB,la.prototype.delete=yB,la.prototype.get=_B,la.prototype.has=wB,la.prototype.set=bB;function ua(h){var v=-1,w=h==null?0:h.length;for(this.clear();++v=v?h:v)),h}function Pi(h,v,w,C,M,I){var U,z=v&f,ee=v&p,ve=v&d;if(w&&(U=M?w(h,C,M,I):w(h)),U!==n)return U;if(!En(h))return h;var ge=gt(h);if(ge){if(U=T4(h),!z)return Vr(h,U)}else{var be=dr(h),Oe=be==De||be==N;if(us(h))return QT(h,z);if(be==ue||be==He||Oe&&!M){if(U=ee||Oe?{}:mE(h),!z)return ee?p4(h,FB(U,h)):d4(h,MT(U,h))}else{if(!vn[be])return M?h:{};U=E4(h,be,z)}}I||(I=new no);var Ge=I.get(h);if(Ge)return Ge;I.set(h,U),YE(h)?h.forEach(function(tt){U.add(Pi(tt,v,w,tt,h,I))}):GE(h)&&h.forEach(function(tt,Rt){U.set(Rt,Pi(tt,v,w,Rt,h,I))});var et=ve?ee?Qy:Zy:ee?Ur:er,Tt=ge?n:et(h);return Ri(Tt||h,function(tt,Rt){Tt&&(Rt=tt,tt=h[Rt]),Sf(U,Rt,Pi(tt,v,w,Rt,h,I))}),U}function $B(h){var v=er(h);return function(w){return RT(w,h,v)}}function RT(h,v,w){var C=w.length;if(h==null)return!C;for(h=ln(h);C--;){var M=w[C],I=v[M],U=h[M];if(U===n&&!(M in h)||!I(U))return!1}return!0}function DT(h,v,w){if(typeof h!="function")throw new Di(a);return Rf(function(){h.apply(n,w)},v)}function xf(h,v,w,C){var M=-1,I=gp,U=!0,z=h.length,ee=[],ve=v.length;if(!z)return ee;w&&(v=Sn(v,si(w))),C?(I=yy,U=!1):v.length>=i&&(I=gf,U=!1,v=new cl(v));e:for(;++MM?0:M+w),C=C===n||C>M?M:St(C),C<0&&(C+=M),C=w>C?0:qE(C);w0&&w(z)?v>1?or(z,v-1,w,C,M):ns(M,z):C||(M[M.length]=z)}return M}var Ly=iE(),LT=iE(!0);function Ro(h,v){return h&&Ly(h,v,er)}function Oy(h,v){return h&<(h,v,er)}function kp(h,v){return ts(v,function(w){return pa(h[w])})}function hl(h,v){v=ss(v,h);for(var w=0,C=v.length;h!=null&&wv}function HB(h,v){return h!=null&&en.call(h,v)}function UB(h,v){return h!=null&&v in ln(h)}function zB(h,v,w){return h>=hr(v,w)&&h=120&&ge.length>=120)?new cl(U&&ge):n}ge=h[0];var be=-1,Oe=z[0];e:for(;++be-1;)z!==h&&Ep.call(z,ee,1),Ep.call(h,ee,1);return h}function GT(h,v){for(var w=h?v.length:0,C=w-1;w--;){var M=v[w];if(w==C||M!==I){var I=M;da(M)?Ep.call(h,M,1):Gy(h,M)}}return h}function Hy(h,v){return h+Rp(CT()*(v-h+1))}function n4(h,v,w,C){for(var M=-1,I=qn(Mp((v-h)/(w||1)),0),U=se(I);I--;)U[C?I:++M]=h,h+=w;return U}function Uy(h,v){var w="";if(!h||v<1||v>J)return w;do v%2&&(w+=h),v=Rp(v/2),v&&(h+=h);while(v);return w}function Et(h,v){return o_(wE(h,v,zr),h+"")}function r4(h){return AT(Hu(h))}function i4(h,v){var w=Hu(h);return Yp(w,fl(v,0,w.length))}function Ef(h,v,w,C){if(!En(h))return h;v=ss(v,h);for(var M=-1,I=v.length,U=I-1,z=h;z!=null&&++MM?0:M+v),w=w>M?M:w,w<0&&(w+=M),M=v>w?0:w-v>>>0,v>>>=0;for(var I=se(M);++C>>1,U=h[I];U!==null&&!ui(U)&&(w?U<=v:U=i){var ve=v?null:y4(h);if(ve)return yp(ve);U=!1,M=gf,ee=new cl}else ee=v?[]:z;e:for(;++C=C?h:Li(h,v,w)}var ZT=X$||function(h){return ir.clearTimeout(h)};function QT(h,v){if(v)return h.slice();var w=h.length,C=_T?_T(w):new h.constructor(w);return h.copy(C),C}function qy(h){var v=new h.constructor(h.byteLength);return new Cp(v).set(new Cp(h)),v}function u4(h,v){var w=v?qy(h.buffer):h.buffer;return new h.constructor(w,h.byteOffset,h.byteLength)}function c4(h){var v=new h.constructor(h.source,df.exec(h));return v.lastIndex=h.lastIndex,v}function f4(h){return bf?ln(bf.call(h)):{}}function JT(h,v){var w=v?qy(h.buffer):h.buffer;return new h.constructor(w,h.byteOffset,h.length)}function eE(h,v){if(h!==v){var w=h!==n,C=h===null,M=h===h,I=ui(h),U=v!==n,z=v===null,ee=v===v,ve=ui(v);if(!z&&!ve&&!I&&h>v||I&&U&&ee&&!z&&!ve||C&&U&&ee||!w&&ee||!M)return 1;if(!C&&!I&&!ve&&h=z)return ee;var ve=w[C];return ee*(ve=="desc"?-1:1)}}return h.index-v.index}function tE(h,v,w,C){for(var M=-1,I=h.length,U=w.length,z=-1,ee=v.length,ve=qn(I-U,0),ge=se(ee+ve),be=!C;++z1?w[M-1]:n,U=M>2?w[2]:n;for(I=h.length>3&&typeof I=="function"?(M--,I):n,U&&Cr(w[0],w[1],U)&&(I=M<3?n:I,M=1),v=ln(v);++C-1?M[I?v[U]:U]:n}}function sE(h){return ha(function(v){var w=v.length,C=w,M=Ii.prototype.thru;for(h&&v.reverse();C--;){var I=v[C];if(typeof I!="function")throw new Di(a);if(M&&!U&&Gp(I)=="wrapper")var U=new Ii([],!0)}for(C=U?C:w;++C1&&Lt.reverse(),ge&&eez))return!1;var ve=I.get(h),ge=I.get(v);if(ve&&ge)return ve==v&&ge==h;var be=-1,Oe=!0,Ge=w&y?new cl:n;for(I.set(h,v),I.set(v,h);++be1?"& ":"")+v[C],v=v.join(w>2?", ":" "),h.replace(lp,`{ /* [wrapped with `+v+`] */ -`)}function M4(h){return gt(h)||vl(h)||!!(xT&&h&&h[xT])}function da(h,v){var w=typeof h;return v=v??J,!!v&&(w=="number"||w!="symbol"&&Ae.test(h))&&h>-1&&h%1==0&&h0){if(++v>=H)return arguments[0]}else v=0;return h.apply(n,arguments)}}function Wp(h,v){var w=-1,C=h.length,M=C-1;for(v=v===n?C:v;++w1?h[v-1]:n;return w=typeof w=="function"?(h.pop(),w):n,LE(h,w)});function OE(h){var v=R(h);return v.__chain__=!0,v}function BV(h,v){return v(h),h}function Yp(h,v){return v(h)}var VV=ha(function(h){var v=h.length,w=v?h[0]:0,C=this.__wrapped__,M=function(I){return Py(I,h)};return v>1||this.__actions__.length||!(C instanceof Pt)||!da(w)?this.thru(M):(C=C.slice(w,+w+(v?1:0)),C.__actions__.push({func:Yp,args:[M],thisArg:n}),new Pi(C,this.__chain__).thru(function(I){return v&&!I.length&&I.push(n),I}))});function HV(){return OE(this)}function UV(){return new Pi(this.value(),this.__chain__)}function zV(){this.__values__===n&&(this.__values__=qE(this.value()));var h=this.__index__>=this.__values__.length,v=h?n:this.__values__[this.__index__++];return{done:h,value:v}}function GV(){return this}function WV(h){for(var v,w=this;w instanceof Ip;){var C=AE(w);C.__index__=0,C.__values__=n,v?M.__wrapped__=C:v=C;var M=C;w=w.__wrapped__}return M.__wrapped__=h,v}function YV(){var h=this.__wrapped__;if(h instanceof Pt){var v=h;return this.__actions__.length&&(v=new Pt(this)),v=v.reverse(),v.__actions__.push({func:Yp,args:[a_],thisArg:n}),new Pi(v,this.__chain__)}return this.thru(a_)}function jV(){return KT(this.__wrapped__,this.__actions__)}var qV=$p(function(h,v,w){en.call(h,w)?++h[w]:ca(h,w,1)});function XV(h,v,w){var C=gt(h)?uT:BB;return w&&Cr(h,v,w)&&(v=n),C(h,Qe(v,3))}function KV(h,v){var w=gt(h)?ts:LT;return w(h,Qe(v,3))}var ZV=sE(ME),QV=sE(RE);function JV(h,v){return or(jp(h,v),1)}function eH(h,v){return or(jp(h,v),ie)}function tH(h,v,w){return w=w===n?1:St(w),or(jp(h,v),w)}function kE(h,v){var w=gt(h)?Di:os;return w(h,Qe(v,3))}function NE(h,v){var w=gt(h)?w$:PT;return w(h,Qe(v,3))}var nH=$p(function(h,v,w){en.call(h,w)?h[w].push(v):ca(h,w,[v])});function rH(h,v,w,C){h=Hr(h)?h:Hu(h),w=w&&!C?St(w):0;var M=h.length;return w<0&&(w=qn(M+w,0)),Qp(h)?w<=M&&h.indexOf(v,w)>-1:!!M&&Ru(h,v,w)>-1}var iH=Et(function(h,v,w){var C=-1,M=typeof v=="function",I=Hr(h)?se(h.length):[];return os(h,function(U){I[++C]=M?ai(v,U,w):Cf(U,v,w)}),I}),oH=$p(function(h,v,w){ca(h,w,v)});function jp(h,v){var w=gt(h)?Sn:BT;return w(h,Qe(v,3))}function aH(h,v,w,C){return h==null?[]:(gt(v)||(v=v==null?[]:[v]),w=C?n:w,gt(w)||(w=w==null?[]:[w]),zT(h,v,w))}var sH=$p(function(h,v,w){h[w?0:1].push(v)},function(){return[[],[]]});function lH(h,v,w){var C=gt(h)?_y:dT,M=arguments.length<3;return C(h,Qe(v,4),w,M,os)}function uH(h,v,w){var C=gt(h)?b$:dT,M=arguments.length<3;return C(h,Qe(v,4),w,M,PT)}function cH(h,v){var w=gt(h)?ts:LT;return w(h,Kp(Qe(v,3)))}function fH(h){var v=gt(h)?MT:r4;return v(h)}function hH(h,v,w){(w?Cr(h,v,w):v===n)?v=1:v=St(v);var C=gt(h)?OB:i4;return C(h,v)}function dH(h){var v=gt(h)?kB:a4;return v(h)}function pH(h){if(h==null)return 0;if(Hr(h))return Qp(h)?Iu(h):h.length;var v=dr(h);return v==B||v==oe?h.size:$y(h).length}function vH(h,v,w){var C=gt(h)?wy:s4;return w&&Cr(h,v,w)&&(v=n),C(h,Qe(v,3))}var gH=Et(function(h,v){if(h==null)return[];var w=v.length;return w>1&&Cr(h,v[0],v[1])?v=[]:w>2&&Cr(v[0],v[1],v[2])&&(v=[v[0]]),zT(h,or(v,1),[])}),qp=K$||function(){return ir.Date.now()};function mH(h,v){if(typeof v!="function")throw new Ii(a);return h=St(h),function(){if(--h<1)return v.apply(this,arguments)}}function FE(h,v,w){return v=w?n:v,v=h&&v==null?h.length:v,fa(h,A,n,n,n,n,v)}function $E(h,v){var w;if(typeof v!="function")throw new Ii(a);return h=St(h),function(){return--h>0&&(w=v.apply(this,arguments)),h<=1&&(v=n),w}}var l_=Et(function(h,v,w){var C=_;if(w.length){var M=rs(w,Bu(l_));C|=E}return fa(h,C,v,w,M)}),BE=Et(function(h,v,w){var C=_|m;if(w.length){var M=rs(w,Bu(BE));C|=E}return fa(v,C,h,w,M)});function VE(h,v,w){v=w?n:v;var C=fa(h,S,n,n,n,n,n,v);return C.placeholder=VE.placeholder,C}function HE(h,v,w){v=w?n:v;var C=fa(h,x,n,n,n,n,n,v);return C.placeholder=HE.placeholder,C}function UE(h,v,w){var C,M,I,U,z,ee,ve=0,ge=!1,be=!1,Oe=!0;if(typeof h!="function")throw new Ii(a);v=Ni(v)||0,En(w)&&(ge=!!w.leading,be="maxWait"in w,I=be?qn(Ni(w.maxWait)||0,v):I,Oe="trailing"in w?!!w.trailing:Oe);function Ge($n){var oo=C,ga=M;return C=M=n,ve=$n,U=h.apply(ga,oo),U}function et($n){return ve=$n,z=Rf(Dt,v),ge?Ge($n):U}function Tt($n){var oo=$n-ee,ga=$n-ve,sA=v-oo;return be?hr(sA,I-ga):sA}function tt($n){var oo=$n-ee,ga=$n-ve;return ee===n||oo>=v||oo<0||be&&ga>=I}function Dt(){var $n=qp();if(tt($n))return Lt($n);z=Rf(Dt,Tt($n))}function Lt($n){return z=n,Oe&&C?Ge($n):(C=M=n,U)}function ci(){z!==n&&QT(z),ve=0,C=ee=M=z=n}function Tr(){return z===n?U:Lt(qp())}function fi(){var $n=qp(),oo=tt($n);if(C=arguments,M=this,ee=$n,oo){if(z===n)return et(ee);if(be)return QT(z),z=Rf(Dt,v),Ge(ee)}return z===n&&(z=Rf(Dt,v)),U}return fi.cancel=ci,fi.flush=Tr,fi}var yH=Et(function(h,v){return IT(h,1,v)}),_H=Et(function(h,v,w){return IT(h,Ni(v)||0,w)});function wH(h){return fa(h,P)}function Xp(h,v){if(typeof h!="function"||v!=null&&typeof v!="function")throw new Ii(a);var w=function(){var C=arguments,M=v?v.apply(this,C):C[0],I=w.cache;if(I.has(M))return I.get(M);var U=h.apply(this,C);return w.cache=I.set(M,U)||I,U};return w.cache=new(Xp.Cache||ua),w}Xp.Cache=ua;function Kp(h){if(typeof h!="function")throw new Ii(a);return function(){var v=arguments;switch(v.length){case 0:return!h.call(this);case 1:return!h.call(this,v[0]);case 2:return!h.call(this,v[0],v[1]);case 3:return!h.call(this,v[0],v[1],v[2])}return!h.apply(this,v)}}function bH(h){return $E(2,h)}var SH=l4(function(h,v){v=v.length==1&>(v[0])?Sn(v[0],si(Qe())):Sn(or(v,1),si(Qe()));var w=v.length;return Et(function(C){for(var M=-1,I=hr(C.length,w);++M=v}),vl=NT(function(){return arguments}())?NT:function(h){return In(h)&&en.call(h,"callee")&&!ST.call(h,"callee")},gt=se.isArray,FH=rT?si(rT):WB;function Hr(h){return h!=null&&Zp(h.length)&&!pa(h)}function Fn(h){return In(h)&&Hr(h)}function $H(h){return h===!0||h===!1||In(h)&&xr(h)==Te}var us=Q$||w_,BH=iT?si(iT):YB;function VH(h){return In(h)&&h.nodeType===1&&!Df(h)}function HH(h){if(h==null)return!0;if(Hr(h)&&(gt(h)||typeof h=="string"||typeof h.splice=="function"||us(h)||Vu(h)||vl(h)))return!h.length;var v=dr(h);if(v==B||v==oe)return!h.size;if(Mf(h))return!$y(h).length;for(var w in h)if(en.call(h,w))return!1;return!0}function UH(h,v){return Tf(h,v)}function zH(h,v,w){w=typeof w=="function"?w:n;var C=w?w(h,v):n;return C===n?Tf(h,v,n,w):!!C}function c_(h){if(!In(h))return!1;var v=xr(h);return v==Ee||v==xe||typeof h.message=="string"&&typeof h.name=="string"&&!Df(h)}function GH(h){return typeof h=="number"&&CT(h)}function pa(h){if(!En(h))return!1;var v=xr(h);return v==De||v==F||v==le||v==V}function GE(h){return typeof h=="number"&&h==St(h)}function Zp(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=J}function En(h){var v=typeof h;return h!=null&&(v=="object"||v=="function")}function In(h){return h!=null&&typeof h=="object"}var WE=oT?si(oT):qB;function WH(h,v){return h===v||Fy(h,v,e_(v))}function YH(h,v,w){return w=typeof w=="function"?w:n,Fy(h,v,e_(v),w)}function jH(h){return YE(h)&&h!=+h}function qH(h){if(I4(h))throw new ht(o);return FT(h)}function XH(h){return h===null}function KH(h){return h==null}function YE(h){return typeof h=="number"||In(h)&&xr(h)==ne}function Df(h){if(!In(h)||xr(h)!=ue)return!1;var v=Cp(h);if(v===null)return!0;var w=en.call(v,"constructor")&&v.constructor;return typeof w=="function"&&w instanceof w&&wp.call(w)==Y$}var f_=aT?si(aT):XB;function ZH(h){return GE(h)&&h>=-J&&h<=J}var jE=sT?si(sT):KB;function Qp(h){return typeof h=="string"||!gt(h)&&In(h)&&xr(h)==pe}function ui(h){return typeof h=="symbol"||In(h)&&xr(h)==Ce}var Vu=lT?si(lT):ZB;function QH(h){return h===n}function JH(h){return In(h)&&dr(h)==re}function eU(h){return In(h)&&xr(h)==Me}var tU=Up(By),nU=Up(function(h,v){return h<=v});function qE(h){if(!h)return[];if(Hr(h))return Qp(h)?no(h):Vr(h);if(mf&&h[mf])return O$(h[mf]());var v=dr(h),w=v==B?Ey:v==oe?mp:Hu;return w(h)}function va(h){if(!h)return h===0?h:0;if(h=Ni(h),h===ie||h===-ie){var v=h<0?-1:1;return v*ce}return h===h?h:0}function St(h){var v=va(h),w=v%1;return v===v?w?v-w:v:0}function XE(h){return h?fl(St(h),0,we):0}function Ni(h){if(typeof h=="number")return h;if(ui(h))return ye;if(En(h)){var v=typeof h.valueOf=="function"?h.valueOf():h;h=En(v)?v+"":v}if(typeof h!="string")return h===0?h:+h;h=pT(h);var w=cy.test(h);return w||K.test(h)?m$(h.slice(2),w?2:8):dp.test(h)?ye:+h}function KE(h){return Do(h,Ur(h))}function rU(h){return h?fl(St(h),-J,J):h===0?h:0}function Yt(h){return h==null?"":li(h)}var iU=Fu(function(h,v){if(Mf(v)||Hr(v)){Do(v,er(v),h);return}for(var w in v)en.call(v,w)&&Sf(h,w,v[w])}),ZE=Fu(function(h,v){Do(v,Ur(v),h)}),Jp=Fu(function(h,v,w,C){Do(v,Ur(v),h,C)}),oU=Fu(function(h,v,w,C){Do(v,er(v),h,C)}),aU=ha(Py);function sU(h,v){var w=Nu(h);return v==null?w:RT(w,v)}var lU=Et(function(h,v){h=ln(h);var w=-1,C=v.length,M=C>2?v[2]:n;for(M&&Cr(v[0],v[1],M)&&(C=1);++w1),I}),Do(h,Qy(h),w),C&&(w=Li(w,f|p|d,_4));for(var M=v.length;M--;)Gy(w,v[M]);return w});function EU(h,v){return JE(h,Kp(Qe(v)))}var AU=ha(function(h,v){return h==null?{}:e4(h,v)});function JE(h,v){if(h==null)return{};var w=Sn(Qy(h),function(C){return[C]});return v=Qe(v),GT(h,w,function(C,M){return v(C,M[0])})}function MU(h,v,w){v=ss(v,h);var C=-1,M=v.length;for(M||(M=1,h=n);++Cv){var C=h;h=v,v=C}if(w||h%1||v%1){var M=TT();return hr(h+M*(v-h+g$("1e-"+((M+"").length-1))),v)}return Hy(h,v)}var BU=$u(function(h,v,w){return v=v.toLowerCase(),h+(w?nA(v):v)});function nA(h){return p_(Yt(h).toLowerCase())}function rA(h){return h=Yt(h),h&&h.replace(Ue,R$).replace(a$,"")}function VU(h,v,w){h=Yt(h),v=li(v);var C=h.length;w=w===n?C:fl(St(w),0,C);var M=w;return w-=v.length,w>=0&&h.slice(w,M)==v}function HU(h){return h=Yt(h),h&&ly.test(h)?h.replace(Ja,D$):h}function UU(h){return h=Yt(h),h&&uy.test(h)?h.replace(Eu,"\\$&"):h}var zU=$u(function(h,v,w){return h+(w?"-":"")+v.toLowerCase()}),GU=$u(function(h,v,w){return h+(w?" ":"")+v.toLowerCase()}),WU=aE("toLowerCase");function YU(h,v,w){h=Yt(h),v=St(v);var C=v?Iu(h):0;if(!v||C>=v)return h;var M=(v-C)/2;return Hp(Mp(M),w)+h+Hp(Ap(M),w)}function jU(h,v,w){h=Yt(h),v=St(v);var C=v?Iu(h):0;return v&&C>>0,w?(h=Yt(h),h&&(typeof v=="string"||v!=null&&!f_(v))&&(v=li(v),!v&&Du(h))?ls(no(h),0,w):h.split(v,w)):[]}var ez=$u(function(h,v,w){return h+(w?" ":"")+p_(v)});function tz(h,v,w){return h=Yt(h),w=w==null?0:fl(St(w),0,h.length),v=li(v),h.slice(w,w+v.length)==v}function nz(h,v,w){var C=R.templateSettings;w&&Cr(h,v,w)&&(v=n),h=Yt(h),v=Jp({},v,C,dE);var M=Jp({},v.imports,C.imports,dE),I=er(M),U=Ty(M,I),z,ee,ve=0,ge=v.interpolate||Jt,be="__p += '",Oe=Ay((v.escape||Jt).source+"|"+ge.source+"|"+(ge===ip?hp:Jt).source+"|"+(v.evaluate||Jt).source+"|$","g"),Ge="//# sourceURL="+(en.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++f$+"]")+` -`;h.replace(Oe,function(tt,Dt,Lt,ci,Tr,fi){return Lt||(Lt=ci),be+=h.slice(ve,fi).replace(Qn,I$),Dt&&(z=!0,be+=`' + -__e(`+Dt+`) + +`)}function M4(h){return gt(h)||vl(h)||!!(ST&&h&&h[ST])}function da(h,v){var w=typeof h;return v=v??J,!!v&&(w=="number"||w!="symbol"&&Ae.test(h))&&h>-1&&h%1==0&&h0){if(++v>=H)return arguments[0]}else v=0;return h.apply(n,arguments)}}function Yp(h,v){var w=-1,C=h.length,M=C-1;for(v=v===n?C:v;++w1?h[v-1]:n;return w=typeof w=="function"?(h.pop(),w):n,PE(h,w)});function LE(h){var v=R(h);return v.__chain__=!0,v}function BV(h,v){return v(h),h}function jp(h,v){return v(h)}var VV=ha(function(h){var v=h.length,w=v?h[0]:0,C=this.__wrapped__,M=function(I){return Py(I,h)};return v>1||this.__actions__.length||!(C instanceof Pt)||!da(w)?this.thru(M):(C=C.slice(w,+w+(v?1:0)),C.__actions__.push({func:jp,args:[M],thisArg:n}),new Ii(C,this.__chain__).thru(function(I){return v&&!I.length&&I.push(n),I}))});function HV(){return LE(this)}function UV(){return new Ii(this.value(),this.__chain__)}function zV(){this.__values__===n&&(this.__values__=jE(this.value()));var h=this.__index__>=this.__values__.length,v=h?n:this.__values__[this.__index__++];return{done:h,value:v}}function GV(){return this}function WV(h){for(var v,w=this;w instanceof Pp;){var C=EE(w);C.__index__=0,C.__values__=n,v?M.__wrapped__=C:v=C;var M=C;w=w.__wrapped__}return M.__wrapped__=h,v}function YV(){var h=this.__wrapped__;if(h instanceof Pt){var v=h;return this.__actions__.length&&(v=new Pt(this)),v=v.reverse(),v.__actions__.push({func:jp,args:[a_],thisArg:n}),new Ii(v,this.__chain__)}return this.thru(a_)}function jV(){return XT(this.__wrapped__,this.__actions__)}var qV=Bp(function(h,v,w){en.call(h,w)?++h[w]:ca(h,w,1)});function XV(h,v,w){var C=gt(h)?lT:BB;return w&&Cr(h,v,w)&&(v=n),C(h,Ze(v,3))}function KV(h,v){var w=gt(h)?ts:PT;return w(h,Ze(v,3))}var ZV=aE(AE),QV=aE(ME);function JV(h,v){return or(qp(h,v),1)}function eH(h,v){return or(qp(h,v),ie)}function tH(h,v,w){return w=w===n?1:St(w),or(qp(h,v),w)}function OE(h,v){var w=gt(h)?Ri:os;return w(h,Ze(v,3))}function kE(h,v){var w=gt(h)?w$:IT;return w(h,Ze(v,3))}var nH=Bp(function(h,v,w){en.call(h,w)?h[w].push(v):ca(h,w,[v])});function rH(h,v,w,C){h=Hr(h)?h:Hu(h),w=w&&!C?St(w):0;var M=h.length;return w<0&&(w=qn(M+w,0)),Jp(h)?w<=M&&h.indexOf(v,w)>-1:!!M&&Ru(h,v,w)>-1}var iH=Et(function(h,v,w){var C=-1,M=typeof v=="function",I=Hr(h)?se(h.length):[];return os(h,function(U){I[++C]=M?ai(v,U,w):Cf(U,v,w)}),I}),oH=Bp(function(h,v,w){ca(h,w,v)});function qp(h,v){var w=gt(h)?Sn:$T;return w(h,Ze(v,3))}function aH(h,v,w,C){return h==null?[]:(gt(v)||(v=v==null?[]:[v]),w=C?n:w,gt(w)||(w=w==null?[]:[w]),UT(h,v,w))}var sH=Bp(function(h,v,w){h[w?0:1].push(v)},function(){return[[],[]]});function lH(h,v,w){var C=gt(h)?_y:hT,M=arguments.length<3;return C(h,Ze(v,4),w,M,os)}function uH(h,v,w){var C=gt(h)?b$:hT,M=arguments.length<3;return C(h,Ze(v,4),w,M,IT)}function cH(h,v){var w=gt(h)?ts:PT;return w(h,Zp(Ze(v,3)))}function fH(h){var v=gt(h)?AT:r4;return v(h)}function hH(h,v,w){(w?Cr(h,v,w):v===n)?v=1:v=St(v);var C=gt(h)?OB:i4;return C(h,v)}function dH(h){var v=gt(h)?kB:a4;return v(h)}function pH(h){if(h==null)return 0;if(Hr(h))return Jp(h)?Iu(h):h.length;var v=dr(h);return v==B||v==oe?h.size:$y(h).length}function vH(h,v,w){var C=gt(h)?wy:s4;return w&&Cr(h,v,w)&&(v=n),C(h,Ze(v,3))}var gH=Et(function(h,v){if(h==null)return[];var w=v.length;return w>1&&Cr(h,v[0],v[1])?v=[]:w>2&&Cr(v[0],v[1],v[2])&&(v=[v[0]]),UT(h,or(v,1),[])}),Xp=K$||function(){return ir.Date.now()};function mH(h,v){if(typeof v!="function")throw new Di(a);return h=St(h),function(){if(--h<1)return v.apply(this,arguments)}}function NE(h,v,w){return v=w?n:v,v=h&&v==null?h.length:v,fa(h,A,n,n,n,n,v)}function FE(h,v){var w;if(typeof v!="function")throw new Di(a);return h=St(h),function(){return--h>0&&(w=v.apply(this,arguments)),h<=1&&(v=n),w}}var l_=Et(function(h,v,w){var C=_;if(w.length){var M=rs(w,Bu(l_));C|=E}return fa(h,C,v,w,M)}),$E=Et(function(h,v,w){var C=_|m;if(w.length){var M=rs(w,Bu($E));C|=E}return fa(v,C,h,w,M)});function BE(h,v,w){v=w?n:v;var C=fa(h,S,n,n,n,n,n,v);return C.placeholder=BE.placeholder,C}function VE(h,v,w){v=w?n:v;var C=fa(h,x,n,n,n,n,n,v);return C.placeholder=VE.placeholder,C}function HE(h,v,w){var C,M,I,U,z,ee,ve=0,ge=!1,be=!1,Oe=!0;if(typeof h!="function")throw new Di(a);v=ki(v)||0,En(w)&&(ge=!!w.leading,be="maxWait"in w,I=be?qn(ki(w.maxWait)||0,v):I,Oe="trailing"in w?!!w.trailing:Oe);function Ge($n){var io=C,ga=M;return C=M=n,ve=$n,U=h.apply(ga,io),U}function et($n){return ve=$n,z=Rf(Rt,v),ge?Ge($n):U}function Tt($n){var io=$n-ee,ga=$n-ve,aA=v-io;return be?hr(aA,I-ga):aA}function tt($n){var io=$n-ee,ga=$n-ve;return ee===n||io>=v||io<0||be&&ga>=I}function Rt(){var $n=Xp();if(tt($n))return Lt($n);z=Rf(Rt,Tt($n))}function Lt($n){return z=n,Oe&&C?Ge($n):(C=M=n,U)}function ci(){z!==n&&ZT(z),ve=0,C=ee=M=z=n}function Tr(){return z===n?U:Lt(Xp())}function fi(){var $n=Xp(),io=tt($n);if(C=arguments,M=this,ee=$n,io){if(z===n)return et(ee);if(be)return ZT(z),z=Rf(Rt,v),Ge(ee)}return z===n&&(z=Rf(Rt,v)),U}return fi.cancel=ci,fi.flush=Tr,fi}var yH=Et(function(h,v){return DT(h,1,v)}),_H=Et(function(h,v,w){return DT(h,ki(v)||0,w)});function wH(h){return fa(h,P)}function Kp(h,v){if(typeof h!="function"||v!=null&&typeof v!="function")throw new Di(a);var w=function(){var C=arguments,M=v?v.apply(this,C):C[0],I=w.cache;if(I.has(M))return I.get(M);var U=h.apply(this,C);return w.cache=I.set(M,U)||I,U};return w.cache=new(Kp.Cache||ua),w}Kp.Cache=ua;function Zp(h){if(typeof h!="function")throw new Di(a);return function(){var v=arguments;switch(v.length){case 0:return!h.call(this);case 1:return!h.call(this,v[0]);case 2:return!h.call(this,v[0],v[1]);case 3:return!h.call(this,v[0],v[1],v[2])}return!h.apply(this,v)}}function bH(h){return FE(2,h)}var SH=l4(function(h,v){v=v.length==1&>(v[0])?Sn(v[0],si(Ze())):Sn(or(v,1),si(Ze()));var w=v.length;return Et(function(C){for(var M=-1,I=hr(C.length,w);++M=v}),vl=kT(function(){return arguments}())?kT:function(h){return In(h)&&en.call(h,"callee")&&!bT.call(h,"callee")},gt=se.isArray,FH=nT?si(nT):WB;function Hr(h){return h!=null&&Qp(h.length)&&!pa(h)}function Fn(h){return In(h)&&Hr(h)}function $H(h){return h===!0||h===!1||In(h)&&xr(h)==Te}var us=Q$||w_,BH=rT?si(rT):YB;function VH(h){return In(h)&&h.nodeType===1&&!Df(h)}function HH(h){if(h==null)return!0;if(Hr(h)&&(gt(h)||typeof h=="string"||typeof h.splice=="function"||us(h)||Vu(h)||vl(h)))return!h.length;var v=dr(h);if(v==B||v==oe)return!h.size;if(Mf(h))return!$y(h).length;for(var w in h)if(en.call(h,w))return!1;return!0}function UH(h,v){return Tf(h,v)}function zH(h,v,w){w=typeof w=="function"?w:n;var C=w?w(h,v):n;return C===n?Tf(h,v,n,w):!!C}function c_(h){if(!In(h))return!1;var v=xr(h);return v==Ee||v==xe||typeof h.message=="string"&&typeof h.name=="string"&&!Df(h)}function GH(h){return typeof h=="number"&&xT(h)}function pa(h){if(!En(h))return!1;var v=xr(h);return v==De||v==N||v==le||v==V}function zE(h){return typeof h=="number"&&h==St(h)}function Qp(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=J}function En(h){var v=typeof h;return h!=null&&(v=="object"||v=="function")}function In(h){return h!=null&&typeof h=="object"}var GE=iT?si(iT):qB;function WH(h,v){return h===v||Fy(h,v,e_(v))}function YH(h,v,w){return w=typeof w=="function"?w:n,Fy(h,v,e_(v),w)}function jH(h){return WE(h)&&h!=+h}function qH(h){if(I4(h))throw new ht(o);return NT(h)}function XH(h){return h===null}function KH(h){return h==null}function WE(h){return typeof h=="number"||In(h)&&xr(h)==ne}function Df(h){if(!In(h)||xr(h)!=ue)return!1;var v=Tp(h);if(v===null)return!0;var w=en.call(v,"constructor")&&v.constructor;return typeof w=="function"&&w instanceof w&&bp.call(w)==Y$}var f_=oT?si(oT):XB;function ZH(h){return zE(h)&&h>=-J&&h<=J}var YE=aT?si(aT):KB;function Jp(h){return typeof h=="string"||!gt(h)&&In(h)&&xr(h)==pe}function ui(h){return typeof h=="symbol"||In(h)&&xr(h)==Ce}var Vu=sT?si(sT):ZB;function QH(h){return h===n}function JH(h){return In(h)&&dr(h)==re}function eU(h){return In(h)&&xr(h)==Me}var tU=zp(By),nU=zp(function(h,v){return h<=v});function jE(h){if(!h)return[];if(Hr(h))return Jp(h)?to(h):Vr(h);if(mf&&h[mf])return O$(h[mf]());var v=dr(h),w=v==B?Ey:v==oe?yp:Hu;return w(h)}function va(h){if(!h)return h===0?h:0;if(h=ki(h),h===ie||h===-ie){var v=h<0?-1:1;return v*ce}return h===h?h:0}function St(h){var v=va(h),w=v%1;return v===v?w?v-w:v:0}function qE(h){return h?fl(St(h),0,we):0}function ki(h){if(typeof h=="number")return h;if(ui(h))return ye;if(En(h)){var v=typeof h.valueOf=="function"?h.valueOf():h;h=En(v)?v+"":v}if(typeof h!="string")return h===0?h:+h;h=dT(h);var w=cy.test(h);return w||K.test(h)?m$(h.slice(2),w?2:8):pp.test(h)?ye:+h}function XE(h){return Do(h,Ur(h))}function rU(h){return h?fl(St(h),-J,J):h===0?h:0}function Yt(h){return h==null?"":li(h)}var iU=Fu(function(h,v){if(Mf(v)||Hr(v)){Do(v,er(v),h);return}for(var w in v)en.call(v,w)&&Sf(h,w,v[w])}),KE=Fu(function(h,v){Do(v,Ur(v),h)}),ev=Fu(function(h,v,w,C){Do(v,Ur(v),h,C)}),oU=Fu(function(h,v,w,C){Do(v,er(v),h,C)}),aU=ha(Py);function sU(h,v){var w=Nu(h);return v==null?w:MT(w,v)}var lU=Et(function(h,v){h=ln(h);var w=-1,C=v.length,M=C>2?v[2]:n;for(M&&Cr(v[0],v[1],M)&&(C=1);++w1),I}),Do(h,Qy(h),w),C&&(w=Pi(w,f|p|d,_4));for(var M=v.length;M--;)Gy(w,v[M]);return w});function EU(h,v){return QE(h,Zp(Ze(v)))}var AU=ha(function(h,v){return h==null?{}:e4(h,v)});function QE(h,v){if(h==null)return{};var w=Sn(Qy(h),function(C){return[C]});return v=Ze(v),zT(h,w,function(C,M){return v(C,M[0])})}function MU(h,v,w){v=ss(v,h);var C=-1,M=v.length;for(M||(M=1,h=n);++Cv){var C=h;h=v,v=C}if(w||h%1||v%1){var M=CT();return hr(h+M*(v-h+g$("1e-"+((M+"").length-1))),v)}return Hy(h,v)}var BU=$u(function(h,v,w){return v=v.toLowerCase(),h+(w?tA(v):v)});function tA(h){return p_(Yt(h).toLowerCase())}function nA(h){return h=Yt(h),h&&h.replace(Ue,R$).replace(a$,"")}function VU(h,v,w){h=Yt(h),v=li(v);var C=h.length;w=w===n?C:fl(St(w),0,C);var M=w;return w-=v.length,w>=0&&h.slice(w,M)==v}function HU(h){return h=Yt(h),h&&ly.test(h)?h.replace(Ja,D$):h}function UU(h){return h=Yt(h),h&&uy.test(h)?h.replace(Eu,"\\$&"):h}var zU=$u(function(h,v,w){return h+(w?"-":"")+v.toLowerCase()}),GU=$u(function(h,v,w){return h+(w?" ":"")+v.toLowerCase()}),WU=oE("toLowerCase");function YU(h,v,w){h=Yt(h),v=St(v);var C=v?Iu(h):0;if(!v||C>=v)return h;var M=(v-C)/2;return Up(Rp(M),w)+h+Up(Mp(M),w)}function jU(h,v,w){h=Yt(h),v=St(v);var C=v?Iu(h):0;return v&&C>>0,w?(h=Yt(h),h&&(typeof v=="string"||v!=null&&!f_(v))&&(v=li(v),!v&&Du(h))?ls(to(h),0,w):h.split(v,w)):[]}var ez=$u(function(h,v,w){return h+(w?" ":"")+p_(v)});function tz(h,v,w){return h=Yt(h),w=w==null?0:fl(St(w),0,h.length),v=li(v),h.slice(w,w+v.length)==v}function nz(h,v,w){var C=R.templateSettings;w&&Cr(h,v,w)&&(v=n),h=Yt(h),v=ev({},v,C,hE);var M=ev({},v.imports,C.imports,hE),I=er(M),U=Ty(M,I),z,ee,ve=0,ge=v.interpolate||Jt,be="__p += '",Oe=Ay((v.escape||Jt).source+"|"+ge.source+"|"+(ge===op?dp:Jt).source+"|"+(v.evaluate||Jt).source+"|$","g"),Ge="//# sourceURL="+(en.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++f$+"]")+` +`;h.replace(Oe,function(tt,Rt,Lt,ci,Tr,fi){return Lt||(Lt=ci),be+=h.slice(ve,fi).replace(Qn,I$),Rt&&(z=!0,be+=`' + +__e(`+Rt+`) + '`),Tr&&(ee=!0,be+=`'; `+Tr+`; __p += '`),Lt&&(be+=`' + @@ -56,26 +56,26 @@ __p += '`),Lt&&(be+=`' + `;var et=en.call(v,"variable")&&v.variable;if(!et)be=`with (obj) { `+be+` } -`;else if(to.test(et))throw new ht(s);be=(ee?be.replace(xu,""):be).replace(Cu,"$1").replace(Tu,"$1;"),be="function("+(et||"obj")+`) { +`;else if(eo.test(et))throw new ht(s);be=(ee?be.replace(xu,""):be).replace(Cu,"$1").replace(Tu,"$1;"),be="function("+(et||"obj")+`) { `+(et?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(z?", __e = _.escape":"")+(ee?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+be+`return __p -}`;var Tt=oA(function(){return Ht(I,Ge+"return "+be).apply(n,U)});if(Tt.source=be,c_(Tt))throw Tt;return Tt}function rz(h){return Yt(h).toLowerCase()}function iz(h){return Yt(h).toUpperCase()}function oz(h,v,w){if(h=Yt(h),h&&(w||v===n))return pT(h);if(!h||!(v=li(v)))return h;var C=no(h),M=no(v),I=vT(C,M),U=gT(C,M)+1;return ls(C,I,U).join("")}function az(h,v,w){if(h=Yt(h),h&&(w||v===n))return h.slice(0,yT(h)+1);if(!h||!(v=li(v)))return h;var C=no(h),M=gT(C,no(v))+1;return ls(C,0,M).join("")}function sz(h,v,w){if(h=Yt(h),h&&(w||v===n))return h.replace(Br,"");if(!h||!(v=li(v)))return h;var C=no(h),M=vT(C,no(v));return ls(C,M).join("")}function lz(h,v){var w=O,C=k;if(En(v)){var M="separator"in v?v.separator:M;w="length"in v?St(v.length):w,C="omission"in v?li(v.omission):C}h=Yt(h);var I=h.length;if(Du(h)){var U=no(h);I=U.length}if(w>=I)return h;var z=w-Iu(C);if(z<1)return C;var ee=U?ls(U,0,z).join(""):h.slice(0,z);if(M===n)return ee+C;if(U&&(z+=ee.length-z),f_(M)){if(h.slice(z).search(M)){var ve,ge=ee;for(M.global||(M=Ay(M.source,Yt(df.exec(M))+"g")),M.lastIndex=0;ve=M.exec(ge);)var be=ve.index;ee=ee.slice(0,be===n?z:be)}}else if(h.indexOf(li(M),z)!=z){var Oe=ee.lastIndexOf(M);Oe>-1&&(ee=ee.slice(0,Oe))}return ee+C}function uz(h){return h=Yt(h),h&&sy.test(h)?h.replace(rp,$$):h}var cz=$u(function(h,v,w){return h+(w?" ":"")+v.toUpperCase()}),p_=aE("toUpperCase");function iA(h,v,w){return h=Yt(h),v=w?n:v,v===n?L$(h)?H$(h):C$(h):h.match(v)||[]}var oA=Et(function(h,v){try{return ai(h,n,v)}catch(w){return c_(w)?w:new ht(w)}}),fz=ha(function(h,v){return Di(v,function(w){w=Io(w),ca(h,w,l_(h[w],h))}),h});function hz(h){var v=h==null?0:h.length,w=Qe();return h=v?Sn(h,function(C){if(typeof C[1]!="function")throw new Ii(a);return[w(C[0]),C[1]]}):[],Et(function(C){for(var M=-1;++MJ)return[];var w=we,C=hr(h,we);v=Qe(v),h-=we;for(var M=Cy(C,v);++w0||v<0)?new Pt(w):(h<0?w=w.takeRight(-h):h&&(w=w.drop(h)),v!==n&&(v=St(v),w=v<0?w.dropRight(-v):w.take(v-h)),w)},Pt.prototype.takeRightWhile=function(h){return this.reverse().takeWhile(h).reverse()},Pt.prototype.toArray=function(){return this.take(we)},Ro(Pt.prototype,function(h,v){var w=/^(?:filter|find|map|reject)|While$/.test(v),C=/^(?:head|last)$/.test(v),M=R[C?"take"+(v=="last"?"Right":""):v],I=C||/^find/.test(v);M&&(R.prototype[v]=function(){var U=this.__wrapped__,z=C?[1]:arguments,ee=U instanceof Pt,ve=z[0],ge=ee||gt(U),be=function(Dt){var Lt=M.apply(R,ns([Dt],z));return C&&Oe?Lt[0]:Lt};ge&&w&&typeof ve=="function"&&ve.length!=1&&(ee=ge=!1);var Oe=this.__chain__,Ge=!!this.__actions__.length,et=I&&!Oe,Tt=ee&&!Ge;if(!I&&ge){U=Tt?U:new Pt(this);var tt=h.apply(U,z);return tt.__actions__.push({func:Yp,args:[be],thisArg:n}),new Pi(tt,Oe)}return et&&Tt?h.apply(this,z):(tt=this.thru(be),et?C?tt.value()[0]:tt.value():tt)})}),Di(["pop","push","shift","sort","splice","unshift"],function(h){var v=yp[h],w=/^(?:push|sort|unshift)$/.test(h)?"tap":"thru",C=/^(?:pop|shift)$/.test(h);R.prototype[h]=function(){var M=arguments;if(C&&!this.__chain__){var I=this.value();return v.apply(gt(I)?I:[],M)}return this[w](function(U){return v.apply(gt(U)?U:[],M)})}}),Ro(Pt.prototype,function(h,v){var w=R[v];if(w){var C=w.name+"";en.call(ku,C)||(ku[C]=[]),ku[C].push({name:v,func:w})}}),ku[Bp(n,m).name]=[{name:"wrapper",func:n}],Pt.prototype.clone=uB,Pt.prototype.reverse=cB,Pt.prototype.value=fB,R.prototype.at=VV,R.prototype.chain=HV,R.prototype.commit=UV,R.prototype.next=zV,R.prototype.plant=WV,R.prototype.reverse=YV,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=jV,R.prototype.first=R.prototype.head,mf&&(R.prototype[mf]=GV),R},Pu=U$();sl?((sl.exports=Pu)._=Pu,gy._=Pu):ir._=Pu}).call(TY)}(hh,hh.exports)),hh.exports}var ea=EY();const AY=e0(ea),ar=[];for(let e=0;e<256;++e)ar.push((e+256).toString(16).slice(1));function MY(e,t=0){return(ar[e[t+0]]+ar[e[t+1]]+ar[e[t+2]]+ar[e[t+3]]+"-"+ar[e[t+4]]+ar[e[t+5]]+"-"+ar[e[t+6]]+ar[e[t+7]]+"-"+ar[e[t+8]]+ar[e[t+9]]+"-"+ar[e[t+10]]+ar[e[t+11]]+ar[e[t+12]]+ar[e[t+13]]+ar[e[t+14]]+ar[e[t+15]]).toLowerCase()}let B_;const RY=new Uint8Array(16);function DY(){if(!B_){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");B_=crypto.getRandomValues.bind(crypto)}return B_(RY)}const IY=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),z2={randomUUID:IY};function PY(e,t,n){if(z2.randomUUID&&!t&&!e)return z2.randomUUID();e=e||{};const r=e.random||(e.rng||DY)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,MY(r)}const Ys=Qt("setup/api-list",[]),xi=Qt("setup/active-uuid",""),Ho=Le(()=>Ys.value.find(e=>e.uuid===xi.value)),LY=e=>{const t=Ys.value.find(r=>ea.isEqual(ea.omit(r,"uuid"),e));if(t){xi.value=t.uuid;return}const n=PY();Ys.value.push({...e,uuid:n}),xi.value=n},AO=e=>{Ys.value=Ys.value.filter(t=>t.uuid!==e)},V_=Ie(!1),G2=Ie(),MO=()=>({showTip:t=>{V_.value=!0,G2.value=t,setTimeout(()=>{V_.value=!1},1e4)},tipShowModel:V_,tipContent:G2});function RO(e,t){return function(){return e.apply(t,arguments)}}const{toString:OY}=Object.prototype,{getPrototypeOf:hx}=Object,_0=(e=>t=>{const n=OY.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ao=e=>(e=e.toLowerCase(),t=>_0(t)===e),w0=e=>t=>typeof t===e,{isArray:tf}=Array,Cd=w0("undefined");function kY(e){return e!==null&&!Cd(e)&&e.constructor!==null&&!Cd(e.constructor)&&Ci(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const DO=Ao("ArrayBuffer");function NY(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&DO(e.buffer),t}const FY=w0("string"),Ci=w0("function"),IO=w0("number"),b0=e=>e!==null&&typeof e=="object",$Y=e=>e===!0||e===!1,Sg=e=>{if(_0(e)!=="object")return!1;const t=hx(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},BY=Ao("Date"),VY=Ao("File"),HY=Ao("Blob"),UY=Ao("FileList"),zY=e=>b0(e)&&Ci(e.pipe),GY=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ci(e.append)&&((t=_0(e))==="formdata"||t==="object"&&Ci(e.toString)&&e.toString()==="[object FormData]"))},WY=Ao("URLSearchParams"),[YY,jY,qY,XY]=["ReadableStream","Request","Response","Headers"].map(Ao),KY=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),tf(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const eu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,LO=e=>!Cd(e)&&e!==eu;function ib(){const{caseless:e}=LO(this)&&this||{},t={},n=(r,i)=>{const o=e&&PO(t,i)||i;Sg(t[o])&&Sg(r)?t[o]=ib(t[o],r):Sg(r)?t[o]=ib({},r):tf(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(jd(t,(i,o)=>{n&&Ci(i)?e[o]=RO(i,n):e[o]=i},{allOwnKeys:r}),e),QY=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),JY=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ej=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&hx(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tj=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},nj=e=>{if(!e)return null;if(tf(e))return e;let t=e.length;if(!IO(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hx(Uint8Array)),ij=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},oj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},aj=Ao("HTMLFormElement"),sj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),W2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lj=Ao("RegExp"),OO=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};jd(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},uj=e=>{OO(e,(t,n)=>{if(Ci(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ci(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},cj=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return tf(e)?r(e):r(String(e).split(t)),n},fj=()=>{},hj=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,H_="abcdefghijklmnopqrstuvwxyz",Y2="0123456789",kO={DIGIT:Y2,ALPHA:H_,ALPHA_DIGIT:H_+H_.toUpperCase()+Y2},dj=(e=16,t=kO.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function pj(e){return!!(e&&Ci(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vj=e=>{const t=new Array(10),n=(r,i)=>{if(b0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=tf(r)?[]:{};return jd(r,(a,s)=>{const l=n(a,i+1);!Cd(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},gj=Ao("AsyncFunction"),mj=e=>e&&(b0(e)||Ci(e))&&Ci(e.then)&&Ci(e.catch),NO=((e,t)=>e?setImmediate:t?((n,r)=>(eu.addEventListener("message",({source:i,data:o})=>{i===eu&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),eu.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ci(eu.postMessage)),yj=typeof queueMicrotask<"u"?queueMicrotask.bind(eu):typeof process<"u"&&process.nextTick||NO,fe={isArray:tf,isArrayBuffer:DO,isBuffer:kY,isFormData:GY,isArrayBufferView:NY,isString:FY,isNumber:IO,isBoolean:$Y,isObject:b0,isPlainObject:Sg,isReadableStream:YY,isRequest:jY,isResponse:qY,isHeaders:XY,isUndefined:Cd,isDate:BY,isFile:VY,isBlob:HY,isRegExp:lj,isFunction:Ci,isStream:zY,isURLSearchParams:WY,isTypedArray:rj,isFileList:UY,forEach:jd,merge:ib,extend:ZY,trim:KY,stripBOM:QY,inherits:JY,toFlatObject:ej,kindOf:_0,kindOfTest:Ao,endsWith:tj,toArray:nj,forEachEntry:ij,matchAll:oj,isHTMLForm:aj,hasOwnProperty:W2,hasOwnProp:W2,reduceDescriptors:OO,freezeMethods:uj,toObjectSet:cj,toCamelCase:sj,noop:fj,toFiniteNumber:hj,findKey:PO,global:eu,isContextDefined:LO,ALPHABET:kO,generateString:dj,isSpecCompliantForm:pj,toJSONObject:vj,isAsyncFn:gj,isThenable:mj,setImmediate:NO,asap:yj};function yt(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}fe.inherits(yt,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:fe.toJSONObject(this.config),code:this.code,status:this.status}}});const FO=yt.prototype,$O={};["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=>{$O[e]={value:e}});Object.defineProperties(yt,$O);Object.defineProperty(FO,"isAxiosError",{value:!0});yt.from=(e,t,n,r,i,o)=>{const a=Object.create(FO);return fe.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),yt.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const _j=null;function ob(e){return fe.isPlainObject(e)||fe.isArray(e)}function BO(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function j2(e,t,n){return e?e.concat(t).map(function(i,o){return i=BO(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function wj(e){return fe.isArray(e)&&!e.some(ob)}const bj=fe.toFlatObject(fe,{},null,function(t){return/^is[A-Z]/.test(t)});function S0(e,t,n){if(!fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,_){return!fe.isUndefined(_[y])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&fe.isSpecCompliantForm(t);if(!fe.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(fe.isDate(g))return g.toISOString();if(!l&&fe.isBlob(g))throw new yt("Blob is not supported. Use a Buffer instead.");return fe.isArrayBuffer(g)||fe.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,y,_){let m=g;if(g&&!_&&typeof g=="object"){if(fe.endsWith(y,"{}"))y=r?y:y.slice(0,-2),g=JSON.stringify(g);else if(fe.isArray(g)&&wj(g)||(fe.isFileList(g)||fe.endsWith(y,"[]"))&&(m=fe.toArray(g)))return y=BO(y),m.forEach(function(S,x){!(fe.isUndefined(S)||S===null)&&t.append(a===!0?j2([y],x,o):a===null?y:y+"[]",u(S))}),!1}return ob(g)?!0:(t.append(j2(_,y,o),u(g)),!1)}const f=[],p=Object.assign(bj,{defaultVisitor:c,convertValue:u,isVisitable:ob});function d(g,y){if(!fe.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(g),fe.forEach(g,function(m,b){(!(fe.isUndefined(m)||m===null)&&i.call(t,m,fe.isString(b)?b.trim():b,y,p))===!0&&d(m,y?y.concat(b):[b])}),f.pop()}}if(!fe.isObject(e))throw new TypeError("data must be an object");return d(e),t}function q2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function dx(e,t){this._pairs=[],e&&S0(e,this,t)}const VO=dx.prototype;VO.append=function(t,n){this._pairs.push([t,n])};VO.toString=function(t){const n=t?function(r){return t.call(this,r,q2)}:q2;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Sj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function HO(e,t,n){if(!t)return e;const r=n&&n.encode||Sj;fe.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=fe.isURLSearchParams(t)?t.toString():new dx(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class X2{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){fe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const UO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xj=typeof URLSearchParams<"u"?URLSearchParams:dx,Cj=typeof FormData<"u"?FormData:null,Tj=typeof Blob<"u"?Blob:null,Ej={isBrowser:!0,classes:{URLSearchParams:xj,FormData:Cj,Blob:Tj},protocols:["http","https","file","blob","url","data"]},px=typeof window<"u"&&typeof document<"u",ab=typeof navigator=="object"&&navigator||void 0,Aj=px&&(!ab||["ReactNative","NativeScript","NS"].indexOf(ab.product)<0),Mj=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rj=px&&window.location.href||"http://localhost",Dj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:px,hasStandardBrowserEnv:Aj,hasStandardBrowserWebWorkerEnv:Mj,navigator:ab,origin:Rj},Symbol.toStringTag,{value:"Module"})),br={...Dj,...Ej};function Ij(e,t){return S0(e,new br.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return br.isNode&&fe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Pj(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Lj(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&fe.isArray(i)?i.length:a,l?(fe.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!fe.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&fe.isArray(i[a])&&(i[a]=Lj(i[a])),!s)}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};return fe.forEachEntry(e,(r,i)=>{t(Pj(r),i,n,0)}),n}return null}function Oj(e,t,n){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const qd={transitional:UO,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=fe.isObject(t);if(o&&fe.isHTMLForm(t)&&(t=new FormData(t)),fe.isFormData(t))return i?JSON.stringify(zO(t)):t;if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t)||fe.isReadableStream(t))return t;if(fe.isArrayBufferView(t))return t.buffer;if(fe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ij(t,this.formSerializer).toString();if((s=fe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return S0(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Oj(t)):t}],transformResponse:[function(t){const n=this.transitional||qd.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(fe.isResponse(t)||fe.isReadableStream(t))return t;if(t&&fe.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?yt.from(s,yt.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:br.classes.FormData,Blob:br.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(["delete","get","head","post","put","patch"],e=>{qd.headers[e]={}});const kj=fe.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"]),Nj=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&kj[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},K2=Symbol("internals");function Nf(e){return e&&String(e).trim().toLowerCase()}function xg(e){return e===!1||e==null?e:fe.isArray(e)?e.map(xg):String(e)}function Fj(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const $j=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function U_(e,t,n,r,i){if(fe.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!fe.isString(t)){if(fe.isString(r))return t.indexOf(r)!==-1;if(fe.isRegExp(r))return r.test(t)}}function Bj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Vj(e,t){const n=fe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class Qr{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=Nf(l);if(!c)throw new Error("header name must be a non-empty string");const f=fe.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=xg(s))}const a=(s,l)=>fe.forEach(s,(u,c)=>o(u,c,l));if(fe.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(fe.isString(t)&&(t=t.trim())&&!$j(t))a(Nj(t),n);else if(fe.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Nf(t),t){const r=fe.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Fj(i);if(fe.isFunction(n))return n.call(this,i,r);if(fe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Nf(t),t){const r=fe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||U_(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Nf(a),a){const s=fe.findKey(r,a);s&&(!n||U_(r,r[s],s,n))&&(delete r[s],i=!0)}}return fe.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||U_(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return fe.forEach(this,(i,o)=>{const a=fe.findKey(r,o);if(a){n[a]=xg(i),delete n[o];return}const s=t?Bj(o):String(o).trim();s!==o&&delete n[o],n[s]=xg(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return fe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&fe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[K2]=this[K2]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Nf(a);r[s]||(Vj(i,a),r[s]=!0)}return fe.isArray(t)?t.forEach(o):o(t),this}}Qr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(Qr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});fe.freezeMethods(Qr);function z_(e,t){const n=this||qd,r=t||n,i=Qr.from(r.headers);let o=r.data;return fe.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function GO(e){return!!(e&&e.__CANCEL__)}function nf(e,t,n){yt.call(this,e??"canceled",yt.ERR_CANCELED,t,n),this.name="CanceledError"}fe.inherits(nf,yt,{__CANCEL__:!0});function WO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new yt("Request failed with status code "+n.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Hj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Uj(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let f=o,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a{n=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?a(u,c):(i=u,o||(o=setTimeout(()=>{o=null,a(i)},r-f)))},()=>i&&a(i)]}const cm=(e,t,n=3)=>{let r=0;const i=Uj(50,250);return zj(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,u=i(l),c=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},Z2=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Q2=e=>(...t)=>fe.asap(()=>e(...t)),Gj=br.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,br.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(br.origin),br.navigator&&/(msie|trident)/i.test(br.navigator.userAgent)):()=>!0,Wj=br.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];fe.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),fe.isString(r)&&a.push("path="+r),fe.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 Yj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jj(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function YO(e,t){return e&&!Yj(t)?jj(e,t):t}const J2=e=>e instanceof Qr?{...e}:e;function vu(e,t){t=t||{};const n={};function r(u,c,f,p){return fe.isPlainObject(u)&&fe.isPlainObject(c)?fe.merge.call({caseless:p},u,c):fe.isPlainObject(c)?fe.merge({},c):fe.isArray(c)?c.slice():c}function i(u,c,f,p){if(fe.isUndefined(c)){if(!fe.isUndefined(u))return r(void 0,u,f,p)}else return r(u,c,f,p)}function o(u,c){if(!fe.isUndefined(c))return r(void 0,c)}function a(u,c){if(fe.isUndefined(c)){if(!fe.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c,f)=>i(J2(u),J2(c),f,!0)};return fe.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,p=f(e[c],t[c],c);fe.isUndefined(p)&&f!==s||(n[c]=p)}),n}const jO=e=>{const t=vu({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Qr.from(a),t.url=HO(YO(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(fe.isFormData(n)){if(br.hasStandardBrowserEnv||br.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(br.hasStandardBrowserEnv&&(r&&fe.isFunction(r)&&(r=r(t)),r||r!==!1&&Gj(t.url))){const u=i&&o&&Wj.read(o);u&&a.set(i,u)}return t},qj=typeof XMLHttpRequest<"u",Xj=qj&&function(e){return new Promise(function(n,r){const i=jO(e);let o=i.data;const a=Qr.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,p,d,g;function y(){d&&d(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let _=new XMLHttpRequest;_.open(i.method.toUpperCase(),i.url,!0),_.timeout=i.timeout;function m(){if(!_)return;const S=Qr.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:S,config:e,request:_};WO(function(A){n(A),y()},function(A){r(A),y()},E),_=null}"onloadend"in _?_.onloadend=m:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(m)},_.onabort=function(){_&&(r(new yt("Request aborted",yt.ECONNABORTED,e,_)),_=null)},_.onerror=function(){r(new yt("Network Error",yt.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||UO;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new yt(x,E.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,e,_)),_=null},o===void 0&&a.setContentType(null),"setRequestHeader"in _&&fe.forEach(a.toJSON(),function(x,E){_.setRequestHeader(E,x)}),fe.isUndefined(i.withCredentials)||(_.withCredentials=!!i.withCredentials),s&&s!=="json"&&(_.responseType=i.responseType),u&&([p,g]=cm(u,!0),_.addEventListener("progress",p)),l&&_.upload&&([f,d]=cm(l),_.upload.addEventListener("progress",f),_.upload.addEventListener("loadend",d)),(i.cancelToken||i.signal)&&(c=S=>{_&&(r(!S||S.type?new nf(null,e,_):S),_.abort(),_=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const b=Hj(i.url);if(b&&br.protocols.indexOf(b)===-1){r(new yt("Unsupported protocol "+b+":",yt.ERR_BAD_REQUEST,e));return}_.send(o||null)})},Kj=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,s();const c=u instanceof Error?u:this.reason;r.abort(c instanceof yt?c:new nf(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,o(new yt(`timeout ${t} of ms exceeded`,yt.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>fe.asap(s),l}},Zj=function*(e,t){let n=e.byteLength;if(n{const i=Qj(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(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(n){let p=o+=f;n(p)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},x0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",qO=x0&&typeof ReadableStream=="function",eq=x0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),XO=(e,...t)=>{try{return!!e(...t)}catch{return!1}},tq=qO&&XO(()=>{let e=!1;const t=new Request(br.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),tM=64*1024,sb=qO&&XO(()=>fe.isReadableStream(new Response("").body)),fm={stream:sb&&(e=>e.body)};x0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!fm[t]&&(fm[t]=fe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new yt(`Response type '${t}' is not supported`,yt.ERR_NOT_SUPPORT,r)})})})(new Response);const nq=async e=>{if(e==null)return 0;if(fe.isBlob(e))return e.size;if(fe.isSpecCompliantForm(e))return(await new Request(br.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(fe.isArrayBufferView(e)||fe.isArrayBuffer(e))return e.byteLength;if(fe.isURLSearchParams(e)&&(e=e+""),fe.isString(e))return(await eq(e)).byteLength},rq=async(e,t)=>{const n=fe.toFiniteNumber(e.getContentLength());return n??nq(t)},iq=x0&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:p}=jO(e);u=u?(u+"").toLowerCase():"text";let d=Kj([i,o&&o.toAbortSignal()],a),g;const y=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let _;try{if(l&&tq&&n!=="get"&&n!=="head"&&(_=await rq(c,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(fe.isFormData(r)&&(T=E.headers.get("content-type"))&&c.setContentType(T),E.body){const[A,D]=Z2(_,cm(Q2(l)));r=eM(E.body,tM,A,D)}}fe.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;g=new Request(t,{...p,signal:d,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:m?f:void 0});let b=await fetch(g);const S=sb&&(u==="stream"||u==="response");if(sb&&(s||S&&y)){const E={};["status","statusText","headers"].forEach(P=>{E[P]=b[P]});const T=fe.toFiniteNumber(b.headers.get("content-length")),[A,D]=s&&Z2(T,cm(Q2(s),!0))||[];b=new Response(eM(b.body,tM,A,()=>{D&&D(),y&&y()}),E)}u=u||"text";let x=await fm[fe.findKey(fm,u)||"text"](b,e);return!S&&y&&y(),await new Promise((E,T)=>{WO(E,T,{data:x,headers:Qr.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(m){throw y&&y(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new yt("Network Error",yt.ERR_NETWORK,e,g),{cause:m.cause||m}):yt.from(m,m&&m.code,e,g)}}),lb={http:_j,xhr:Xj,fetch:iq};fe.forEach(lb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const nM=e=>`- ${e}`,oq=e=>fe.isFunction(e)||e===null||e===!1,KO={getAdapter:e=>{e=fe.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : -`+o.map(nM).join(` -`):" "+nM(o[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:lb};function G_(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new nf(null,e)}function rM(e){return G_(e),e.headers=Qr.from(e.headers),e.data=z_.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),KO.getAdapter(e.adapter||qd.adapter)(e).then(function(r){return G_(e),r.data=z_.call(e,e.transformResponse,r),r.headers=Qr.from(r.headers),r},function(r){return GO(r)||(G_(e),r&&r.response&&(r.response.data=z_.call(e,e.transformResponse,r.response),r.response.headers=Qr.from(r.response.headers))),Promise.reject(r)})}const ZO="1.7.8",C0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{C0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const iM={};C0.transitional=function(t,n,r){function i(o,a){return"[Axios v"+ZO+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new yt(i(a," has been removed"+(n?" in "+n:"")),yt.ERR_DEPRECATED);return n&&!iM[a]&&(iM[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};C0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function aq(e,t,n){if(typeof e!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new yt("option "+o+" must be "+l,yt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yt("Unknown option "+o,yt.ERR_BAD_OPTION)}}const Cg={assertOptions:aq,validators:C0},Oo=Cg.validators;class su{constructor(t){this.defaults=t,this.interceptors={request:new X2,response:new X2}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=vu(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Cg.assertOptions(r,{silentJSONParsing:Oo.transitional(Oo.boolean),forcedJSONParsing:Oo.transitional(Oo.boolean),clarifyTimeoutError:Oo.transitional(Oo.boolean)},!1),i!=null&&(fe.isFunction(i)?n.paramsSerializer={serialize:i}:Cg.assertOptions(i,{encode:Oo.function,serialize:Oo.function},!0)),Cg.assertOptions(n,{baseUrl:Oo.spelling("baseURL"),withXsrfToken:Oo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&fe.merge(o.common,o[n.method]);o&&fe.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=Qr.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,f=0,p;if(!l){const g=[rM.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),p=g.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new nf(o,a,s),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new vx(function(i){t=i}),cancel:t}}}function sq(e){return function(n){return e.apply(null,n)}}function lq(e){return fe.isObject(e)&&e.isAxiosError===!0}const ub={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(ub).forEach(([e,t])=>{ub[t]=e});function QO(e){const t=new su(e),n=RO(su.prototype.request,t);return fe.extend(n,su.prototype,t,{allOwnKeys:!0}),fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return QO(vu(e,i))},n}const Ct=QO(qd);Ct.Axios=su;Ct.CanceledError=nf;Ct.CancelToken=vx;Ct.isCancel=GO;Ct.VERSION=ZO;Ct.toFormData=S0;Ct.AxiosError=yt;Ct.Cancel=Ct.CanceledError;Ct.all=function(t){return Promise.all(t)};Ct.spread=sq;Ct.isAxiosError=lq;Ct.mergeConfig=vu;Ct.AxiosHeaders=Qr;Ct.formToJSON=e=>zO(fe.isHTMLForm(e)?new FormData(e):e);Ct.getAdapter=KO.getAdapter;Ct.HttpStatusCode=ub;Ct.default=Ct;var Tg={exports:{}},uq=Tg.exports,oM;function cq(){return oM||(oM=1,function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(uq,function(){if(!("WebSocket"in window))return;function t(n,r,i){var o={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3,maxReconnectAttempts:null};i||(i={});for(var a in o)typeof i[a]<"u"?this[a]=i[a]:this[a]=o[a];this.url=n,this.reconnectAttempts=0,this.readyState=WebSocket.CONNECTING,this.protocol=null;var s=this,l,u=!1,c=!1,f=document.createElement("div");f.addEventListener("open",function(d){s.onopen(d)}),f.addEventListener("close",function(d){s.onclose(d)}),f.addEventListener("connecting",function(d){s.onconnecting(d)}),f.addEventListener("message",function(d){s.onmessage(d)}),f.addEventListener("error",function(d){s.onerror(d)}),this.addEventListener=f.addEventListener.bind(f),this.removeEventListener=f.removeEventListener.bind(f),this.dispatchEvent=f.dispatchEvent.bind(f);function p(d,g){var y=document.createEvent("CustomEvent");return y.initCustomEvent(d,!1,!1,g),y}this.open=function(d){if(l=new WebSocket(s.url,r||[]),d){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else f.dispatchEvent(p("connecting")),this.reconnectAttempts=0;(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",s.url);var g=l,y=setTimeout(function(){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",s.url),c=!0,g.close(),c=!1},s.timeoutInterval);l.onopen=function(_){clearTimeout(y),(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",s.url),s.protocol=l.protocol,s.readyState=WebSocket.OPEN,s.reconnectAttempts=0;var m=p("open");m.isReconnect=d,d=!1,f.dispatchEvent(m)},l.onclose=function(_){if(clearTimeout(b),l=null,u)s.readyState=WebSocket.CLOSED,f.dispatchEvent(p("close"));else{s.readyState=WebSocket.CONNECTING;var m=p("connecting");m.code=_.code,m.reason=_.reason,m.wasClean=_.wasClean,f.dispatchEvent(m),!d&&!c&&((s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",s.url),f.dispatchEvent(p("close")));var b=s.reconnectInterval*Math.pow(s.reconnectDecay,s.reconnectAttempts);setTimeout(function(){s.reconnectAttempts++,s.open(!0)},b>s.maxReconnectInterval?s.maxReconnectInterval:b)}},l.onmessage=function(_){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",s.url,_.data);var m=p("message");m.data=_.data,f.dispatchEvent(m)},l.onerror=function(_){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",s.url,_),f.dispatchEvent(p("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(d){if(l)return(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",s.url,d),l.send(d);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(d,g){typeof d>"u"&&(d=1e3),u=!0,l&&l.close(d,g)},this.refresh=function(){l&&l.close()}}return t.prototype.onopen=function(n){},t.prototype.onclose=function(n){},t.prototype.onconnecting=function(n){},t.prototype.onmessage=function(n){},t.prototype.onerror=function(n){},t.debugAll=!1,t.CONNECTING=WebSocket.CONNECTING,t.OPEN=WebSocket.OPEN,t.CLOSING=WebSocket.CLOSING,t.CLOSED=WebSocket.CLOSED,t})}(Tg)),Tg.exports}var fq=cq();const hq=e0(fq);Ct.interceptors.request.use(e=>{var t,n,r,i,o,a;return e.baseURL=((t=Ho.value)==null?void 0:t.protocol)+"://"+((n=Ho.value)==null?void 0:n.host)+":"+((r=Ho.value)==null?void 0:r.port),(i=Ho.value)!=null&&i.secondaryPath&&(e.baseURL+=(o=Ho.value)==null?void 0:o.secondaryPath),e.headers.Authorization="Bearer "+((a=Ho.value)==null?void 0:a.password),e});Ct.interceptors.response.use(null,e=>(e.status===401&&xi.value?(AO(xi.value),xi.value=null,To.push({name:Bt.setup}),Eo(()=>{const{showTip:t}=MO();t("unauthorizedTip")})):e.status===404&&(xi.value=null,To.push({name:Bt.setup})),e));const T0=Ie(),JO=Ie(!1),dq=()=>Ct.get("/version"),Ia=Le(()=>{var e;return(e=T0.value)==null?void 0:e.includes("sing-box")}),gx=Ie("1.29.2");kt(Ho,async e=>{if(e){const{data:t}=await dq();if(T0.value=t.version,Ia.value)return;JO.value=await Lq()}},{immediate:!0});const pq=()=>Ct.get("/proxies"),vq=(e,t)=>Ct.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),gq=(e,t,n)=>Ct.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),mq=(e,t,n)=>Ct.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),yq=()=>Ct.get("/providers/proxies"),ek=e=>Ct.put(`/providers/proxies/${encodeURIComponent(e)}`),_q=e=>Ct.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),wq=()=>Ct.get("/rules"),bq=()=>Ct.get("/providers/rules"),tk=e=>Ct.put(`/providers/rules/${encodeURIComponent(e)}`),E0=e=>Ct.delete(`/connections/${e}`),Sq=()=>Ct.get("/configs"),xq=e=>Ct.patch("/configs",e),aM=()=>Ct.post("/cache/fakeip/flush"),Cq=()=>Ct.put("/configs?reload=true",{path:"",payload:""}),nk=()=>Ct.post("/upgrade/ui"),Tq=()=>Ct.post("/upgrade"),Eq=()=>Ct.post("/restart"),Aq=e=>Ct.get("/dns/query",{params:e}),A0=(e,t)=>{const n=Ho.value,r=new URL(`${(n==null?void 0:n.protocol)==="https"?"wss":"ws"}://${n==null?void 0:n.host}:${n==null?void 0:n.port}${(n==null?void 0:n.secondaryPath)||""}/${e}`);r.searchParams.append("token",(n==null?void 0:n.password)||""),t&&Object.entries(t).forEach(([s,l])=>{r.searchParams.append(s,l)});const i=Ie(),o=new hq(r.toString()),a=()=>{o.close()};return o.onmessage=({data:s})=>{i.value=JSON.parse(s)},{data:i,close:a}},Mq=()=>A0("connections"),Rq=(e={})=>A0("logs",e),Dq=()=>A0("memory"),Iq=()=>A0("traffic"),Pq=async()=>{const e=await fetch("https://api.github.com/repos/Zephyruso/zashboard/releases/latest"),{tag_name:t}=await e.json();return t&&t!==`v${gx.value}`},sM=async(e,t)=>{const n=await fetch(`https://api.github.com/repos/MetaCubeX/mihomo${e}`),{assets:r}=await n.json();return!r.some(({name:o})=>o.includes(t))},Lq=async()=>{const e=/(alpha|beta|meta)-?(\w+)/.exec(T0.value);if(!e){const r=await fetch("https://api.github.com/repos/MetaCubeX/mihomo/releases/latest"),{tag_name:i}=await r.json();return i&&i!==`v${gx.value}`}const t=e[1],n=e[2];return t==="meta"?await sM("/releases/latest",n):t==="alpha"?await sM("/releases/tags/Prerelease-Alpha",n):!1},mo=Ie([]),Eg=Ie([]),hm=Ie(0),dm=Ie(0);let uv;const Oq=()=>{uv==null||uv(),mo.value=[],Eg.value=[],hm.value=0,dm.value=0;const e=Mq(),t=kt(e.data,n=>{var r;n&&(hm.value=n.downloadTotal,dm.value=n.uploadTotal,!Rg.value&&(Eg.value=[...Eg.value,...ea.differenceWith(mo.value,n.connections,(i,o)=>i.id===o.id)].slice(-500),mo.value=((r=n.connections)==null?void 0:r.map(i=>{const o=mo.value.find(a=>a.id===i.id);return o?{...i,downloadSpeed:i.download-o.download,uploadSpeed:i.upload-o.upload}:{...i,downloadSpeed:0,uploadSpeed:0}}))??[]))});uv=()=>{t(),e.close()}},Hh=Qt("config/quick-filter-regex","direct"),Ag=Qt("config/quick-filter-enabled",!1),zl=Ie(Aa.ACTIVE),lM={[jr.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[jr.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[jr.CHAINS]:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),[jr.DOWNLOAD]:(e,t)=>t.download-e.download,[jr.DOWNLOAD_SPEED]:(e,t)=>t.downloadSpeed-e.downloadSpeed,[jr.UPLOAD]:(e,t)=>t.upload-e.upload,[jr.UPLOAD_SPEED]:(e,t)=>t.uploadSpeed-e.uploadSpeed,[jr.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[jr.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[jr.CONNECT_TIME]:(e,t)=>Zo(t.start).valueOf()-Zo(e.start).valueOf()},Mg=Qt("config/connection-sort-type",jr.HOST),Uh=Ie(""),Rg=Ie(!1),Ac=Le(()=>{let e=null;return Ag.value&&Hh.value&&(e=new RegExp(Hh.value,"i")),(zl.value===Aa.ACTIVE?mo.value:Eg.value).filter(t=>e&&(e.test(t.chains.join(""))||e.test(t.metadata.host)||e.test(t.metadata.destinationIP))||Ca.value&&t.metadata.sourceIP!==Ca.value?!1:Uh.value?[t.metadata.host,t.metadata.destinationIP,t.metadata.destinationPort,t.metadata.sourceIP,t.metadata.sourcePort,t.metadata.processPath,t.metadata.type,t.metadata.network,t.chains.join(""),t.rule,t.rulePayload].some(n=>n==null?void 0:n.includes(Uh.value)):!0).sort((t,n)=>{const r=Ql.value?lM[Mg.value](t,n):lM[jr.HOST](t,n);return r===0?t.id.localeCompare(n.id):r})}),Ca=Ie(""),kq=Le(()=>AY.uniq(mo.value.map(e=>e.metadata.sourceIP)).sort());function zu(e,t,n){let r=n.initialDeps??[],i;return()=>{var o,a,s,l;let u;n.key&&((o=n.debug)!=null&&o.call(n))&&(u=Date.now());const c=e();if(!(c.length!==r.length||c.some((d,g)=>r[g]!==d)))return i;r=c;let p;if(n.key&&((a=n.debug)!=null&&a.call(n))&&(p=Date.now()),i=t(...c),n.key&&((s=n.debug)!=null&&s.call(n))){const d=Math.round((Date.now()-u)*100)/100,g=Math.round((Date.now()-p)*100)/100,y=g/16,_=(m,b)=>{for(m=String(m);m.length=I)return h;var z=w-Iu(C);if(z<1)return C;var ee=U?ls(U,0,z).join(""):h.slice(0,z);if(M===n)return ee+C;if(U&&(z+=ee.length-z),f_(M)){if(h.slice(z).search(M)){var ve,ge=ee;for(M.global||(M=Ay(M.source,Yt(df.exec(M))+"g")),M.lastIndex=0;ve=M.exec(ge);)var be=ve.index;ee=ee.slice(0,be===n?z:be)}}else if(h.indexOf(li(M),z)!=z){var Oe=ee.lastIndexOf(M);Oe>-1&&(ee=ee.slice(0,Oe))}return ee+C}function uz(h){return h=Yt(h),h&&sy.test(h)?h.replace(ip,$$):h}var cz=$u(function(h,v,w){return h+(w?" ":"")+v.toUpperCase()}),p_=oE("toUpperCase");function rA(h,v,w){return h=Yt(h),v=w?n:v,v===n?L$(h)?H$(h):C$(h):h.match(v)||[]}var iA=Et(function(h,v){try{return ai(h,n,v)}catch(w){return c_(w)?w:new ht(w)}}),fz=ha(function(h,v){return Ri(v,function(w){w=Io(w),ca(h,w,l_(h[w],h))}),h});function hz(h){var v=h==null?0:h.length,w=Ze();return h=v?Sn(h,function(C){if(typeof C[1]!="function")throw new Di(a);return[w(C[0]),C[1]]}):[],Et(function(C){for(var M=-1;++MJ)return[];var w=we,C=hr(h,we);v=Ze(v),h-=we;for(var M=Cy(C,v);++w0||v<0)?new Pt(w):(h<0?w=w.takeRight(-h):h&&(w=w.drop(h)),v!==n&&(v=St(v),w=v<0?w.dropRight(-v):w.take(v-h)),w)},Pt.prototype.takeRightWhile=function(h){return this.reverse().takeWhile(h).reverse()},Pt.prototype.toArray=function(){return this.take(we)},Ro(Pt.prototype,function(h,v){var w=/^(?:filter|find|map|reject)|While$/.test(v),C=/^(?:head|last)$/.test(v),M=R[C?"take"+(v=="last"?"Right":""):v],I=C||/^find/.test(v);M&&(R.prototype[v]=function(){var U=this.__wrapped__,z=C?[1]:arguments,ee=U instanceof Pt,ve=z[0],ge=ee||gt(U),be=function(Rt){var Lt=M.apply(R,ns([Rt],z));return C&&Oe?Lt[0]:Lt};ge&&w&&typeof ve=="function"&&ve.length!=1&&(ee=ge=!1);var Oe=this.__chain__,Ge=!!this.__actions__.length,et=I&&!Oe,Tt=ee&&!Ge;if(!I&&ge){U=Tt?U:new Pt(this);var tt=h.apply(U,z);return tt.__actions__.push({func:jp,args:[be],thisArg:n}),new Ii(tt,Oe)}return et&&Tt?h.apply(this,z):(tt=this.thru(be),et?C?tt.value()[0]:tt.value():tt)})}),Ri(["pop","push","shift","sort","splice","unshift"],function(h){var v=_p[h],w=/^(?:push|sort|unshift)$/.test(h)?"tap":"thru",C=/^(?:pop|shift)$/.test(h);R.prototype[h]=function(){var M=arguments;if(C&&!this.__chain__){var I=this.value();return v.apply(gt(I)?I:[],M)}return this[w](function(U){return v.apply(gt(U)?U:[],M)})}}),Ro(Pt.prototype,function(h,v){var w=R[v];if(w){var C=w.name+"";en.call(ku,C)||(ku[C]=[]),ku[C].push({name:v,func:w})}}),ku[Vp(n,m).name]=[{name:"wrapper",func:n}],Pt.prototype.clone=uB,Pt.prototype.reverse=cB,Pt.prototype.value=fB,R.prototype.at=VV,R.prototype.chain=HV,R.prototype.commit=UV,R.prototype.next=zV,R.prototype.plant=WV,R.prototype.reverse=YV,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=jV,R.prototype.first=R.prototype.head,mf&&(R.prototype[mf]=GV),R},Pu=U$();sl?((sl.exports=Pu)._=Pu,gy._=Pu):ir._=Pu}).call(TY)}(hh,hh.exports)),hh.exports}var ea=EY();const AY=t0(ea),ar=[];for(let e=0;e<256;++e)ar.push((e+256).toString(16).slice(1));function MY(e,t=0){return(ar[e[t+0]]+ar[e[t+1]]+ar[e[t+2]]+ar[e[t+3]]+"-"+ar[e[t+4]]+ar[e[t+5]]+"-"+ar[e[t+6]]+ar[e[t+7]]+"-"+ar[e[t+8]]+ar[e[t+9]]+"-"+ar[e[t+10]]+ar[e[t+11]]+ar[e[t+12]]+ar[e[t+13]]+ar[e[t+14]]+ar[e[t+15]]).toLowerCase()}let B_;const RY=new Uint8Array(16);function DY(){if(!B_){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");B_=crypto.getRandomValues.bind(crypto)}return B_(RY)}const IY=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),U2={randomUUID:IY};function PY(e,t,n){if(U2.randomUUID&&!t&&!e)return U2.randomUUID();e=e||{};const r=e.random||(e.rng||DY)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,MY(r)}const Ys=Qt("setup/api-list",[]),Si=Qt("setup/active-uuid",""),Ho=Le(()=>Ys.value.find(e=>e.uuid===Si.value)),LY=e=>{const t=Ys.value.find(r=>ea.isEqual(ea.omit(r,"uuid"),e));if(t){Si.value=t.uuid;return}const n=PY();Ys.value.push({...e,uuid:n}),Si.value=n},EO=e=>{Ys.value=Ys.value.filter(t=>t.uuid!==e)},V_=Ie(!1),z2=Ie(),AO=()=>({showTip:t=>{V_.value=!0,z2.value=t,setTimeout(()=>{V_.value=!1},1e4)},tipShowModel:V_,tipContent:z2});function MO(e,t){return function(){return e.apply(t,arguments)}}const{toString:OY}=Object.prototype,{getPrototypeOf:hx}=Object,w0=(e=>t=>{const n=OY.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ao=e=>(e=e.toLowerCase(),t=>w0(t)===e),b0=e=>t=>typeof t===e,{isArray:tf}=Array,Cd=b0("undefined");function kY(e){return e!==null&&!Cd(e)&&e.constructor!==null&&!Cd(e.constructor)&&xi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const RO=Ao("ArrayBuffer");function NY(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&RO(e.buffer),t}const FY=b0("string"),xi=b0("function"),DO=b0("number"),S0=e=>e!==null&&typeof e=="object",$Y=e=>e===!0||e===!1,xg=e=>{if(w0(e)!=="object")return!1;const t=hx(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},BY=Ao("Date"),VY=Ao("File"),HY=Ao("Blob"),UY=Ao("FileList"),zY=e=>S0(e)&&xi(e.pipe),GY=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||xi(e.append)&&((t=w0(e))==="formdata"||t==="object"&&xi(e.toString)&&e.toString()==="[object FormData]"))},WY=Ao("URLSearchParams"),[YY,jY,qY,XY]=["ReadableStream","Request","Response","Headers"].map(Ao),KY=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),tf(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const eu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,PO=e=>!Cd(e)&&e!==eu;function ib(){const{caseless:e}=PO(this)&&this||{},t={},n=(r,i)=>{const o=e&&IO(t,i)||i;xg(t[o])&&xg(r)?t[o]=ib(t[o],r):xg(r)?t[o]=ib({},r):tf(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(qd(t,(i,o)=>{n&&xi(i)?e[o]=MO(i,n):e[o]=i},{allOwnKeys:r}),e),QY=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),JY=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ej=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&hx(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tj=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},nj=e=>{if(!e)return null;if(tf(e))return e;let t=e.length;if(!DO(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hx(Uint8Array)),ij=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},oj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},aj=Ao("HTMLFormElement"),sj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),G2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lj=Ao("RegExp"),LO=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};qd(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},uj=e=>{LO(e,(t,n)=>{if(xi(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(xi(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},cj=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return tf(e)?r(e):r(String(e).split(t)),n},fj=()=>{},hj=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,H_="abcdefghijklmnopqrstuvwxyz",W2="0123456789",OO={DIGIT:W2,ALPHA:H_,ALPHA_DIGIT:H_+H_.toUpperCase()+W2},dj=(e=16,t=OO.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function pj(e){return!!(e&&xi(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vj=e=>{const t=new Array(10),n=(r,i)=>{if(S0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=tf(r)?[]:{};return qd(r,(a,s)=>{const l=n(a,i+1);!Cd(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},gj=Ao("AsyncFunction"),mj=e=>e&&(S0(e)||xi(e))&&xi(e.then)&&xi(e.catch),kO=((e,t)=>e?setImmediate:t?((n,r)=>(eu.addEventListener("message",({source:i,data:o})=>{i===eu&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),eu.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xi(eu.postMessage)),yj=typeof queueMicrotask<"u"?queueMicrotask.bind(eu):typeof process<"u"&&process.nextTick||kO,fe={isArray:tf,isArrayBuffer:RO,isBuffer:kY,isFormData:GY,isArrayBufferView:NY,isString:FY,isNumber:DO,isBoolean:$Y,isObject:S0,isPlainObject:xg,isReadableStream:YY,isRequest:jY,isResponse:qY,isHeaders:XY,isUndefined:Cd,isDate:BY,isFile:VY,isBlob:HY,isRegExp:lj,isFunction:xi,isStream:zY,isURLSearchParams:WY,isTypedArray:rj,isFileList:UY,forEach:qd,merge:ib,extend:ZY,trim:KY,stripBOM:QY,inherits:JY,toFlatObject:ej,kindOf:w0,kindOfTest:Ao,endsWith:tj,toArray:nj,forEachEntry:ij,matchAll:oj,isHTMLForm:aj,hasOwnProperty:G2,hasOwnProp:G2,reduceDescriptors:LO,freezeMethods:uj,toObjectSet:cj,toCamelCase:sj,noop:fj,toFiniteNumber:hj,findKey:IO,global:eu,isContextDefined:PO,ALPHABET:OO,generateString:dj,isSpecCompliantForm:pj,toJSONObject:vj,isAsyncFn:gj,isThenable:mj,setImmediate:kO,asap:yj};function yt(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}fe.inherits(yt,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:fe.toJSONObject(this.config),code:this.code,status:this.status}}});const NO=yt.prototype,FO={};["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=>{FO[e]={value:e}});Object.defineProperties(yt,FO);Object.defineProperty(NO,"isAxiosError",{value:!0});yt.from=(e,t,n,r,i,o)=>{const a=Object.create(NO);return fe.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),yt.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const _j=null;function ob(e){return fe.isPlainObject(e)||fe.isArray(e)}function $O(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function Y2(e,t,n){return e?e.concat(t).map(function(i,o){return i=$O(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function wj(e){return fe.isArray(e)&&!e.some(ob)}const bj=fe.toFlatObject(fe,{},null,function(t){return/^is[A-Z]/.test(t)});function x0(e,t,n){if(!fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,_){return!fe.isUndefined(_[y])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&fe.isSpecCompliantForm(t);if(!fe.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(fe.isDate(g))return g.toISOString();if(!l&&fe.isBlob(g))throw new yt("Blob is not supported. Use a Buffer instead.");return fe.isArrayBuffer(g)||fe.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,y,_){let m=g;if(g&&!_&&typeof g=="object"){if(fe.endsWith(y,"{}"))y=r?y:y.slice(0,-2),g=JSON.stringify(g);else if(fe.isArray(g)&&wj(g)||(fe.isFileList(g)||fe.endsWith(y,"[]"))&&(m=fe.toArray(g)))return y=$O(y),m.forEach(function(S,x){!(fe.isUndefined(S)||S===null)&&t.append(a===!0?Y2([y],x,o):a===null?y:y+"[]",u(S))}),!1}return ob(g)?!0:(t.append(Y2(_,y,o),u(g)),!1)}const f=[],p=Object.assign(bj,{defaultVisitor:c,convertValue:u,isVisitable:ob});function d(g,y){if(!fe.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(g),fe.forEach(g,function(m,b){(!(fe.isUndefined(m)||m===null)&&i.call(t,m,fe.isString(b)?b.trim():b,y,p))===!0&&d(m,y?y.concat(b):[b])}),f.pop()}}if(!fe.isObject(e))throw new TypeError("data must be an object");return d(e),t}function j2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function dx(e,t){this._pairs=[],e&&x0(e,this,t)}const BO=dx.prototype;BO.append=function(t,n){this._pairs.push([t,n])};BO.toString=function(t){const n=t?function(r){return t.call(this,r,j2)}:j2;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Sj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function VO(e,t,n){if(!t)return e;const r=n&&n.encode||Sj;fe.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=fe.isURLSearchParams(t)?t.toString():new dx(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class q2{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){fe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const HO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xj=typeof URLSearchParams<"u"?URLSearchParams:dx,Cj=typeof FormData<"u"?FormData:null,Tj=typeof Blob<"u"?Blob:null,Ej={isBrowser:!0,classes:{URLSearchParams:xj,FormData:Cj,Blob:Tj},protocols:["http","https","file","blob","url","data"]},px=typeof window<"u"&&typeof document<"u",ab=typeof navigator=="object"&&navigator||void 0,Aj=px&&(!ab||["ReactNative","NativeScript","NS"].indexOf(ab.product)<0),Mj=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rj=px&&window.location.href||"http://localhost",Dj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:px,hasStandardBrowserEnv:Aj,hasStandardBrowserWebWorkerEnv:Mj,navigator:ab,origin:Rj},Symbol.toStringTag,{value:"Module"})),br={...Dj,...Ej};function Ij(e,t){return x0(e,new br.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return br.isNode&&fe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Pj(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Lj(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&fe.isArray(i)?i.length:a,l?(fe.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!fe.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&fe.isArray(i[a])&&(i[a]=Lj(i[a])),!s)}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};return fe.forEachEntry(e,(r,i)=>{t(Pj(r),i,n,0)}),n}return null}function Oj(e,t,n){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Xd={transitional:HO,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=fe.isObject(t);if(o&&fe.isHTMLForm(t)&&(t=new FormData(t)),fe.isFormData(t))return i?JSON.stringify(UO(t)):t;if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t)||fe.isReadableStream(t))return t;if(fe.isArrayBufferView(t))return t.buffer;if(fe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ij(t,this.formSerializer).toString();if((s=fe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return x0(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Oj(t)):t}],transformResponse:[function(t){const n=this.transitional||Xd.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(fe.isResponse(t)||fe.isReadableStream(t))return t;if(t&&fe.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?yt.from(s,yt.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:br.classes.FormData,Blob:br.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(["delete","get","head","post","put","patch"],e=>{Xd.headers[e]={}});const kj=fe.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"]),Nj=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&kj[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},X2=Symbol("internals");function Nf(e){return e&&String(e).trim().toLowerCase()}function Cg(e){return e===!1||e==null?e:fe.isArray(e)?e.map(Cg):String(e)}function Fj(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const $j=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function U_(e,t,n,r,i){if(fe.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!fe.isString(t)){if(fe.isString(r))return t.indexOf(r)!==-1;if(fe.isRegExp(r))return r.test(t)}}function Bj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Vj(e,t){const n=fe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class Qr{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=Nf(l);if(!c)throw new Error("header name must be a non-empty string");const f=fe.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Cg(s))}const a=(s,l)=>fe.forEach(s,(u,c)=>o(u,c,l));if(fe.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(fe.isString(t)&&(t=t.trim())&&!$j(t))a(Nj(t),n);else if(fe.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Nf(t),t){const r=fe.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Fj(i);if(fe.isFunction(n))return n.call(this,i,r);if(fe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Nf(t),t){const r=fe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||U_(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Nf(a),a){const s=fe.findKey(r,a);s&&(!n||U_(r,r[s],s,n))&&(delete r[s],i=!0)}}return fe.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||U_(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return fe.forEach(this,(i,o)=>{const a=fe.findKey(r,o);if(a){n[a]=Cg(i),delete n[o];return}const s=t?Bj(o):String(o).trim();s!==o&&delete n[o],n[s]=Cg(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return fe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&fe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[X2]=this[X2]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Nf(a);r[s]||(Vj(i,a),r[s]=!0)}return fe.isArray(t)?t.forEach(o):o(t),this}}Qr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(Qr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});fe.freezeMethods(Qr);function z_(e,t){const n=this||Xd,r=t||n,i=Qr.from(r.headers);let o=r.data;return fe.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function zO(e){return!!(e&&e.__CANCEL__)}function nf(e,t,n){yt.call(this,e??"canceled",yt.ERR_CANCELED,t,n),this.name="CanceledError"}fe.inherits(nf,yt,{__CANCEL__:!0});function GO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new yt("Request failed with status code "+n.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Hj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Uj(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let f=o,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a{n=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?a(u,c):(i=u,o||(o=setTimeout(()=>{o=null,a(i)},r-f)))},()=>i&&a(i)]}const fm=(e,t,n=3)=>{let r=0;const i=Uj(50,250);return zj(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,u=i(l),c=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},K2=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Z2=e=>(...t)=>fe.asap(()=>e(...t)),Gj=br.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,br.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(br.origin),br.navigator&&/(msie|trident)/i.test(br.navigator.userAgent)):()=>!0,Wj=br.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];fe.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),fe.isString(r)&&a.push("path="+r),fe.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 Yj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jj(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function WO(e,t){return e&&!Yj(t)?jj(e,t):t}const Q2=e=>e instanceof Qr?{...e}:e;function vu(e,t){t=t||{};const n={};function r(u,c,f,p){return fe.isPlainObject(u)&&fe.isPlainObject(c)?fe.merge.call({caseless:p},u,c):fe.isPlainObject(c)?fe.merge({},c):fe.isArray(c)?c.slice():c}function i(u,c,f,p){if(fe.isUndefined(c)){if(!fe.isUndefined(u))return r(void 0,u,f,p)}else return r(u,c,f,p)}function o(u,c){if(!fe.isUndefined(c))return r(void 0,c)}function a(u,c){if(fe.isUndefined(c)){if(!fe.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c,f)=>i(Q2(u),Q2(c),f,!0)};return fe.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,p=f(e[c],t[c],c);fe.isUndefined(p)&&f!==s||(n[c]=p)}),n}const YO=e=>{const t=vu({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Qr.from(a),t.url=VO(WO(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(fe.isFormData(n)){if(br.hasStandardBrowserEnv||br.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(br.hasStandardBrowserEnv&&(r&&fe.isFunction(r)&&(r=r(t)),r||r!==!1&&Gj(t.url))){const u=i&&o&&Wj.read(o);u&&a.set(i,u)}return t},qj=typeof XMLHttpRequest<"u",Xj=qj&&function(e){return new Promise(function(n,r){const i=YO(e);let o=i.data;const a=Qr.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,p,d,g;function y(){d&&d(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let _=new XMLHttpRequest;_.open(i.method.toUpperCase(),i.url,!0),_.timeout=i.timeout;function m(){if(!_)return;const S=Qr.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:S,config:e,request:_};GO(function(A){n(A),y()},function(A){r(A),y()},E),_=null}"onloadend"in _?_.onloadend=m:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(m)},_.onabort=function(){_&&(r(new yt("Request aborted",yt.ECONNABORTED,e,_)),_=null)},_.onerror=function(){r(new yt("Network Error",yt.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||HO;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new yt(x,E.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,e,_)),_=null},o===void 0&&a.setContentType(null),"setRequestHeader"in _&&fe.forEach(a.toJSON(),function(x,E){_.setRequestHeader(E,x)}),fe.isUndefined(i.withCredentials)||(_.withCredentials=!!i.withCredentials),s&&s!=="json"&&(_.responseType=i.responseType),u&&([p,g]=fm(u,!0),_.addEventListener("progress",p)),l&&_.upload&&([f,d]=fm(l),_.upload.addEventListener("progress",f),_.upload.addEventListener("loadend",d)),(i.cancelToken||i.signal)&&(c=S=>{_&&(r(!S||S.type?new nf(null,e,_):S),_.abort(),_=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const b=Hj(i.url);if(b&&br.protocols.indexOf(b)===-1){r(new yt("Unsupported protocol "+b+":",yt.ERR_BAD_REQUEST,e));return}_.send(o||null)})},Kj=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,s();const c=u instanceof Error?u:this.reason;r.abort(c instanceof yt?c:new nf(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,o(new yt(`timeout ${t} of ms exceeded`,yt.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>fe.asap(s),l}},Zj=function*(e,t){let n=e.byteLength;if(n{const i=Qj(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(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(n){let p=o+=f;n(p)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},C0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",jO=C0&&typeof ReadableStream=="function",eq=C0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),qO=(e,...t)=>{try{return!!e(...t)}catch{return!1}},tq=jO&&qO(()=>{let e=!1;const t=new Request(br.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),eM=64*1024,sb=jO&&qO(()=>fe.isReadableStream(new Response("").body)),hm={stream:sb&&(e=>e.body)};C0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!hm[t]&&(hm[t]=fe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new yt(`Response type '${t}' is not supported`,yt.ERR_NOT_SUPPORT,r)})})})(new Response);const nq=async e=>{if(e==null)return 0;if(fe.isBlob(e))return e.size;if(fe.isSpecCompliantForm(e))return(await new Request(br.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(fe.isArrayBufferView(e)||fe.isArrayBuffer(e))return e.byteLength;if(fe.isURLSearchParams(e)&&(e=e+""),fe.isString(e))return(await eq(e)).byteLength},rq=async(e,t)=>{const n=fe.toFiniteNumber(e.getContentLength());return n??nq(t)},iq=C0&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:p}=YO(e);u=u?(u+"").toLowerCase():"text";let d=Kj([i,o&&o.toAbortSignal()],a),g;const y=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let _;try{if(l&&tq&&n!=="get"&&n!=="head"&&(_=await rq(c,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(fe.isFormData(r)&&(T=E.headers.get("content-type"))&&c.setContentType(T),E.body){const[A,D]=K2(_,fm(Z2(l)));r=J2(E.body,eM,A,D)}}fe.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;g=new Request(t,{...p,signal:d,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:m?f:void 0});let b=await fetch(g);const S=sb&&(u==="stream"||u==="response");if(sb&&(s||S&&y)){const E={};["status","statusText","headers"].forEach(P=>{E[P]=b[P]});const T=fe.toFiniteNumber(b.headers.get("content-length")),[A,D]=s&&K2(T,fm(Z2(s),!0))||[];b=new Response(J2(b.body,eM,A,()=>{D&&D(),y&&y()}),E)}u=u||"text";let x=await hm[fe.findKey(hm,u)||"text"](b,e);return!S&&y&&y(),await new Promise((E,T)=>{GO(E,T,{data:x,headers:Qr.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(m){throw y&&y(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new yt("Network Error",yt.ERR_NETWORK,e,g),{cause:m.cause||m}):yt.from(m,m&&m.code,e,g)}}),lb={http:_j,xhr:Xj,fetch:iq};fe.forEach(lb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const tM=e=>`- ${e}`,oq=e=>fe.isFunction(e)||e===null||e===!1,XO={getAdapter:e=>{e=fe.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : +`+o.map(tM).join(` +`):" "+tM(o[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:lb};function G_(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new nf(null,e)}function nM(e){return G_(e),e.headers=Qr.from(e.headers),e.data=z_.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),XO.getAdapter(e.adapter||Xd.adapter)(e).then(function(r){return G_(e),r.data=z_.call(e,e.transformResponse,r),r.headers=Qr.from(r.headers),r},function(r){return zO(r)||(G_(e),r&&r.response&&(r.response.data=z_.call(e,e.transformResponse,r.response),r.response.headers=Qr.from(r.response.headers))),Promise.reject(r)})}const KO="1.7.8",T0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{T0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const rM={};T0.transitional=function(t,n,r){function i(o,a){return"[Axios v"+KO+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new yt(i(a," has been removed"+(n?" in "+n:"")),yt.ERR_DEPRECATED);return n&&!rM[a]&&(rM[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};T0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function aq(e,t,n){if(typeof e!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new yt("option "+o+" must be "+l,yt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yt("Unknown option "+o,yt.ERR_BAD_OPTION)}}const Tg={assertOptions:aq,validators:T0},Oo=Tg.validators;class su{constructor(t){this.defaults=t,this.interceptors={request:new q2,response:new q2}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=vu(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Tg.assertOptions(r,{silentJSONParsing:Oo.transitional(Oo.boolean),forcedJSONParsing:Oo.transitional(Oo.boolean),clarifyTimeoutError:Oo.transitional(Oo.boolean)},!1),i!=null&&(fe.isFunction(i)?n.paramsSerializer={serialize:i}:Tg.assertOptions(i,{encode:Oo.function,serialize:Oo.function},!0)),Tg.assertOptions(n,{baseUrl:Oo.spelling("baseURL"),withXsrfToken:Oo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&fe.merge(o.common,o[n.method]);o&&fe.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=Qr.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,f=0,p;if(!l){const g=[nM.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),p=g.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new nf(o,a,s),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new vx(function(i){t=i}),cancel:t}}}function sq(e){return function(n){return e.apply(null,n)}}function lq(e){return fe.isObject(e)&&e.isAxiosError===!0}const ub={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(ub).forEach(([e,t])=>{ub[t]=e});function ZO(e){const t=new su(e),n=MO(su.prototype.request,t);return fe.extend(n,su.prototype,t,{allOwnKeys:!0}),fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return ZO(vu(e,i))},n}const Ct=ZO(Xd);Ct.Axios=su;Ct.CanceledError=nf;Ct.CancelToken=vx;Ct.isCancel=zO;Ct.VERSION=KO;Ct.toFormData=x0;Ct.AxiosError=yt;Ct.Cancel=Ct.CanceledError;Ct.all=function(t){return Promise.all(t)};Ct.spread=sq;Ct.isAxiosError=lq;Ct.mergeConfig=vu;Ct.AxiosHeaders=Qr;Ct.formToJSON=e=>UO(fe.isHTMLForm(e)?new FormData(e):e);Ct.getAdapter=XO.getAdapter;Ct.HttpStatusCode=ub;Ct.default=Ct;var Eg={exports:{}},uq=Eg.exports,iM;function cq(){return iM||(iM=1,function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(uq,function(){if(!("WebSocket"in window))return;function t(n,r,i){var o={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3,maxReconnectAttempts:null};i||(i={});for(var a in o)typeof i[a]<"u"?this[a]=i[a]:this[a]=o[a];this.url=n,this.reconnectAttempts=0,this.readyState=WebSocket.CONNECTING,this.protocol=null;var s=this,l,u=!1,c=!1,f=document.createElement("div");f.addEventListener("open",function(d){s.onopen(d)}),f.addEventListener("close",function(d){s.onclose(d)}),f.addEventListener("connecting",function(d){s.onconnecting(d)}),f.addEventListener("message",function(d){s.onmessage(d)}),f.addEventListener("error",function(d){s.onerror(d)}),this.addEventListener=f.addEventListener.bind(f),this.removeEventListener=f.removeEventListener.bind(f),this.dispatchEvent=f.dispatchEvent.bind(f);function p(d,g){var y=document.createEvent("CustomEvent");return y.initCustomEvent(d,!1,!1,g),y}this.open=function(d){if(l=new WebSocket(s.url,r||[]),d){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else f.dispatchEvent(p("connecting")),this.reconnectAttempts=0;(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",s.url);var g=l,y=setTimeout(function(){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",s.url),c=!0,g.close(),c=!1},s.timeoutInterval);l.onopen=function(_){clearTimeout(y),(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",s.url),s.protocol=l.protocol,s.readyState=WebSocket.OPEN,s.reconnectAttempts=0;var m=p("open");m.isReconnect=d,d=!1,f.dispatchEvent(m)},l.onclose=function(_){if(clearTimeout(b),l=null,u)s.readyState=WebSocket.CLOSED,f.dispatchEvent(p("close"));else{s.readyState=WebSocket.CONNECTING;var m=p("connecting");m.code=_.code,m.reason=_.reason,m.wasClean=_.wasClean,f.dispatchEvent(m),!d&&!c&&((s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",s.url),f.dispatchEvent(p("close")));var b=s.reconnectInterval*Math.pow(s.reconnectDecay,s.reconnectAttempts);setTimeout(function(){s.reconnectAttempts++,s.open(!0)},b>s.maxReconnectInterval?s.maxReconnectInterval:b)}},l.onmessage=function(_){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",s.url,_.data);var m=p("message");m.data=_.data,f.dispatchEvent(m)},l.onerror=function(_){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",s.url,_),f.dispatchEvent(p("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(d){if(l)return(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",s.url,d),l.send(d);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(d,g){typeof d>"u"&&(d=1e3),u=!0,l&&l.close(d,g)},this.refresh=function(){l&&l.close()}}return t.prototype.onopen=function(n){},t.prototype.onclose=function(n){},t.prototype.onconnecting=function(n){},t.prototype.onmessage=function(n){},t.prototype.onerror=function(n){},t.debugAll=!1,t.CONNECTING=WebSocket.CONNECTING,t.OPEN=WebSocket.OPEN,t.CLOSING=WebSocket.CLOSING,t.CLOSED=WebSocket.CLOSED,t})}(Eg)),Eg.exports}var fq=cq();const hq=t0(fq);Ct.interceptors.request.use(e=>{var t,n,r,i,o,a;return e.baseURL=((t=Ho.value)==null?void 0:t.protocol)+"://"+((n=Ho.value)==null?void 0:n.host)+":"+((r=Ho.value)==null?void 0:r.port),(i=Ho.value)!=null&&i.secondaryPath&&(e.baseURL+=(o=Ho.value)==null?void 0:o.secondaryPath),e.headers.Authorization="Bearer "+((a=Ho.value)==null?void 0:a.password),e});Ct.interceptors.response.use(null,e=>(e.status===401&&Si.value?(EO(Si.value),Si.value=null,To.push({name:Bt.setup}),Eo(()=>{const{showTip:t}=AO();t("unauthorizedTip")})):e.status===404&&(Si.value=null,To.push({name:Bt.setup})),e));const Td=Ie(),QO=Ie(!1),dq=()=>Ct.get("/version"),Ia=Le(()=>{var e;return(e=Td.value)==null?void 0:e.includes("sing-box")}),JO=Ie("1.29.3");kt(Ho,async e=>{if(e){const{data:t}=await dq();if(Td.value=t.version,Ia.value)return;QO.value=await Lq()}},{immediate:!0});const pq=()=>Ct.get("/proxies"),vq=(e,t)=>Ct.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),gq=(e,t,n)=>Ct.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),mq=(e,t,n)=>Ct.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),yq=()=>Ct.get("/providers/proxies"),ek=e=>Ct.put(`/providers/proxies/${encodeURIComponent(e)}`),_q=e=>Ct.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),wq=()=>Ct.get("/rules"),bq=()=>Ct.get("/providers/rules"),tk=e=>Ct.put(`/providers/rules/${encodeURIComponent(e)}`),E0=e=>Ct.delete(`/connections/${e}`),Sq=()=>Ct.get("/configs"),xq=e=>Ct.patch("/configs",e),oM=()=>Ct.post("/cache/fakeip/flush"),Cq=()=>Ct.put("/configs?reload=true",{path:"",payload:""}),nk=()=>Ct.post("/upgrade/ui"),Tq=()=>Ct.post("/upgrade"),Eq=()=>Ct.post("/restart"),Aq=e=>Ct.get("/dns/query",{params:e}),A0=(e,t)=>{const n=Ho.value,r=new URL(`${(n==null?void 0:n.protocol)==="https"?"wss":"ws"}://${n==null?void 0:n.host}:${n==null?void 0:n.port}${(n==null?void 0:n.secondaryPath)||""}/${e}`);r.searchParams.append("token",(n==null?void 0:n.password)||""),t&&Object.entries(t).forEach(([s,l])=>{r.searchParams.append(s,l)});const i=Ie(),o=new hq(r.toString()),a=()=>{o.close()};return o.onmessage=({data:s})=>{i.value=JSON.parse(s)},{data:i,close:a}},Mq=()=>A0("connections"),Rq=(e={})=>A0("logs",e),Dq=()=>A0("memory"),Iq=()=>A0("traffic"),Pq=async()=>{const e=await fetch("https://api.github.com/repos/Zephyruso/zashboard/releases/latest"),{tag_name:t}=await e.json();return t&&t!==`v${JO.value}`},aM=async(e,t)=>{const n=await fetch(`https://api.github.com/repos/MetaCubeX/mihomo${e}`),{assets:r}=await n.json();return!r.some(({name:o})=>o.includes(t))},Lq=async()=>{const e=/(alpha|beta|meta)-?(\w+)/.exec(Td.value);if(!e){const r=await fetch("https://api.github.com/repos/MetaCubeX/mihomo/releases/latest"),{tag_name:i}=await r.json();return i&&i!==`v${Td.value}`}const t=e[1],n=e[2];return t==="meta"?await aM("/releases/latest",n):t==="alpha"?await aM("/releases/tags/Prerelease-Alpha",n):!1},mo=Ie([]),Ag=Ie([]),dm=Ie(0),pm=Ie(0);let cv;const Oq=()=>{cv==null||cv(),mo.value=[],Ag.value=[],dm.value=0,pm.value=0;const e=Mq(),t=kt(e.data,n=>{var r;n&&(dm.value=n.downloadTotal,pm.value=n.uploadTotal,!Dg.value&&(Ag.value=[...Ag.value,...ea.differenceWith(mo.value,n.connections,(i,o)=>i.id===o.id)].slice(-500),mo.value=((r=n.connections)==null?void 0:r.map(i=>{const o=mo.value.find(a=>a.id===i.id);return o?{...i,downloadSpeed:i.download-o.download,uploadSpeed:i.upload-o.upload}:{...i,downloadSpeed:0,uploadSpeed:0}}))??[]))});cv=()=>{t(),e.close()}},Hh=Qt("config/quick-filter-regex","direct"),Mg=Qt("config/quick-filter-enabled",!1),zl=Ie(Aa.ACTIVE),sM={[jr.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[jr.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[jr.CHAINS]:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),[jr.DOWNLOAD]:(e,t)=>t.download-e.download,[jr.DOWNLOAD_SPEED]:(e,t)=>t.downloadSpeed-e.downloadSpeed,[jr.UPLOAD]:(e,t)=>t.upload-e.upload,[jr.UPLOAD_SPEED]:(e,t)=>t.uploadSpeed-e.uploadSpeed,[jr.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[jr.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[jr.CONNECT_TIME]:(e,t)=>Zo(t.start).valueOf()-Zo(e.start).valueOf()},Rg=Qt("config/connection-sort-type",jr.HOST),Uh=Ie(""),Dg=Ie(!1),Ac=Le(()=>{let e=null;return Mg.value&&Hh.value&&(e=new RegExp(Hh.value,"i")),(zl.value===Aa.ACTIVE?mo.value:Ag.value).filter(t=>e&&(e.test(t.chains.join(""))||e.test(t.metadata.host)||e.test(t.metadata.destinationIP))||Ca.value&&t.metadata.sourceIP!==Ca.value?!1:Uh.value?[t.metadata.host,t.metadata.destinationIP,t.metadata.destinationPort,t.metadata.sourceIP,t.metadata.sourcePort,t.metadata.processPath,t.metadata.type,t.metadata.network,t.chains.join(""),t.rule,t.rulePayload].some(n=>n==null?void 0:n.includes(Uh.value)):!0).sort((t,n)=>{const r=Ql.value?sM[Rg.value](t,n):sM[jr.HOST](t,n);return r===0?t.id.localeCompare(n.id):r})}),Ca=Ie(""),kq=Le(()=>AY.uniq(mo.value.map(e=>e.metadata.sourceIP)).sort());function zu(e,t,n){let r=n.initialDeps??[],i;return()=>{var o,a,s,l;let u;n.key&&((o=n.debug)!=null&&o.call(n))&&(u=Date.now());const c=e();if(!(c.length!==r.length||c.some((d,g)=>r[g]!==d)))return i;r=c;let p;if(n.key&&((a=n.debug)!=null&&a.call(n))&&(p=Date.now()),i=t(...c),n.key&&((s=n.debug)!=null&&s.call(n))){const d=Math.round((Date.now()-u)*100)/100,g=Math.round((Date.now()-p)*100)/100,y=g/16,_=(m,b)=>{for(m=String(m);m.lengthMath.abs(e-t)<1,Fq=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},$q=e=>e,Bq=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},Vq=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=a=>{const{width:s,height:l}=a;t({width:Math.round(s),height:Math.round(l)})};if(i(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(a=>{const s=a[0];if(s!=null&&s.borderBoxSize){const l=s.borderBoxSize[0];if(l){i({width:l.inlineSize,height:l.blockSize});return}}i(n.getBoundingClientRect())});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},uM={passive:!0},Hq=typeof window>"u"?!0:"onscrollend"in window,Uq=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&Hq?()=>{}:Fq(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),a=u=>()=>{const{horizontal:c,isRtl:f}=e.options;i=c?n.scrollLeft*(f&&-1||1):n.scrollTop,o(),t(i,u)},s=a(!0),l=a(!1);return l(),n.addEventListener("scroll",s,uM),n.addEventListener("scrollend",l,uM),()=>{n.removeEventListener("scroll",s),n.removeEventListener("scrollend",l)}},zq=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},Gq=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const a=e+t;(o=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||o.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class Wq{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(o=>{this._measureElement(o.target,o)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var o;return(o=r())==null?void 0:o.observe(i,{box:"border-box"})},unobserve:i=>{var o;return(o=r())==null?void 0:o.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:$q,rangeExtractor:Bq,onChange:()=>{},measureElement:zq,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=zu(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,o=new Map;for(let a=r-1;a>=0;a--){const s=n[a];if(i.has(s.lane))continue;const l=o.get(s.lane);if(l==null||s.end>l.end?o.set(s.lane,s):s.enda.end===s.end?a.index-s.index:a.end-s.end)[0]:void 0},this.getMeasurementOptions=zu(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,o,a)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:a}),{key:!1}),this.getMeasurements=zu(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:a},s)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;cthis.options.debug}),this.calculateRange=zu(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,r,i)=>this.range=n.length>0&&r>0?Yq({measurements:n,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=zu(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,i,o)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:i,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),o=this.measurementsCache[i];if(!o)return;const a=o.key,s=this.elementsCache.get(a);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(a,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,a=r-o;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,a,this):i.start{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=zu(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let o=0,a=n.length;othis.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return W_(r[rk(0,r.length-1,i=>W_(r[i]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const i=this.getSize(),o=this.getScrollOffset();r==="auto"&&(n<=o?r="start":n>=o+i?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-i:r==="center"&&(n=n-i/2);const a=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-i;return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const o=this.getSize(),a=this.getScrollOffset();if(r==="auto")if(i.end>=a+o-this.options.scrollPaddingEnd)r="end";else if(i.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];const s=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:r="auto",behavior:i}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const o=this.getOffsetForIndex(n,r);if(!o)return;const[a,s]=o;this._scrollToOffset(a,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[u]=W_(this.getOffsetForIndex(n,s));Nq(u,this.getScrollOffset())||this.scrollToIndex(n,{align:s,behavior:i})}else this.scrollToIndex(n,{align:s,behavior:i})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(o=>o.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const rk=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(or)t=i-1;else return i}return e>0?e-1:0};function Yq({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,o=rk(0,r,s=>e[s].start,n);let a=o;for(;a$(e).getScrollElement(),i=>{i&&t._willUpdate()},{immediate:!0}),kt(()=>$(e),i=>{t.setOptions({...i,onChange:(o,a)=>{var s;vA(n),(s=i.onChange)==null||s.call(i,o,a)}}),t._willUpdate(),vA(n)},{immediate:!0}),NP(r),n}function ik(e){return jq(Le(()=>({observeElementRect:Vq,observeElementOffset:Uq,scrollToFn:Gq,...$(e)})))}const qq=["data-index"],mx=lt({__name:"VirtualScroller",props:{data:{}},setup(e){const t=Ie(null),n=e,r=Le(()=>({count:n.data.length,getScrollElement:()=>t.value,estimateSize:()=>55,overscan:24})),i=ik(r),o=Le(()=>i.value.getVirtualItems()),a=Le(()=>i.value.getTotalSize()),s=l=>{l&&i.value.measureElement(l)};return(l,u)=>{var c;return X(),ae("div",{ref_key:"parentRef",ref:t,class:"flex h-full w-full overflow-y-auto overscroll-y-none p-2"},[N("div",{style:vo({height:`${a.value}px`}),class:"relative w-full max-sm:min-h-[calc(100%+1px)]"},[N("div",{class:"absolute left-0 top-0 w-full",style:vo({transform:`translateY(${((c=o.value[0])==null?void 0:c.start)??0}px)`})},[(X(!0),ae(Ye,null,Gt(o.value,f=>(X(),ae("div",{key:f.key.toString(),"data-index":f.index,ref_for:!0,ref:s},[fL(l.$slots,"default",{item:l.data[f.index],index:f.index})],8,qq))),128))],4)],4)],512)}}}),cM=Ie(),fM=Ie(),yx=()=>({infoConn:cM,modalRef:fM,handlerInfo:t=>{var n;cM.value=t,(n=fM.value)==null||n.showModal()}}),ql="GLOBAL",cb=Ie([]),Wa=Ie({}),_x=Ie({}),Mc=Ie([]),M0=e=>_x.value[ok(e)],jc=async()=>{const{data:e}=await pq(),{data:t}=await yq(),n=e.proxies[ql].all??[];Wa.value=e.proxies,cb.value=Object.values(e.proxies).filter(r=>{var i;return((i=r.all)==null?void 0:i.length)&&r.name!==ql&&!(r!=null&&r.hidden)}).sort((r,i)=>n.indexOf(r.name)-n.indexOf(i.name)).map(r=>r.name),_x.value=Object.fromEntries(Object.entries(e.proxies).map(([r,i])=>[r,Qq(i)])),Mc.value=Object.values(t.providers).filter(r=>r.name!=="default"&&r.vehicleType!=="Compatible")},Xq=async(e,t)=>{await vq(e,t),Wa.value[e].now=t,mg.value&&mo.value.filter(n=>n.chains.includes(e)).forEach(n=>E0(n.id))},Kq=async e=>{const{data:t}=await gq(e,Nh.value,Fh.value);_x.value[ok(e)]=t.delay},Zq=async e=>{await mq(e,Nh.value,Fh.value),await jc()},Qq=e=>{var t;return((t=ea.last(e.history))==null?void 0:t.delay)??0},ok=e=>{let t=Wa.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const n=Wa.value[t.now];if(!n)return t.name;t=n}return t.name},tu=60,lu=new Array(tu).fill(0).map((e,t)=>({name:t,value:e})),bx=Ie(0),dh=Ie([...lu]),Dg=Ie([...lu]),Sx=Ie(0),xx=Ie(0),ph=Ie([...lu]),vh=Ie([...lu]);let cv;const Jq=()=>{cv==null||cv(),ph.value=[...lu],vh.value=[...lu],dh.value=[...lu];const{data:e,close:t}=Dq(),n=kt(()=>e.value,a=>{if(!a)return;const s=Date.now().valueOf();bx.value=a.inuse,dh.value.push({value:a.inuse,name:s}),Dg.value.push({value:mo.value.length,name:s}),dh.value=dh.value.slice(-1*tu),Dg.value=Dg.value.slice(-1*tu)}),{data:r,close:i}=Iq(),o=kt(()=>r.value,a=>{if(!a)return;const s=Date.now().valueOf();Sx.value=a.down,xx.value=a.up,ph.value.push({value:a.down,name:s}),vh.value.push({value:a.up,name:s}),ph.value=ph.value.slice(-1*tu),vh.value=vh.value.slice(-1*tu)});cv=()=>{t(),i(),n(),o()}},eX=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],tX=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],nX=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],rX=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],hM=(e,t,n)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};function iX(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 n=t.bits?t.binary?rX:nX:t.binary?tX:eX,r=t.space?" ":"";if(t.signed&&e===0)return` 0${r}${n[0]}`;const i=e<0,o=i?"-":t.signed?"+":"";i&&(e=-e);let a;if(t.minimumFractionDigits!==void 0&&(a={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(a={maximumFractionDigits:t.maximumFractionDigits,...a}),e<1){const c=hM(e,t.locale,a);return o+c+r+n[0]}const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,a||(e=e.toPrecision(3));const l=hM(Number(e),t.locale,a),u=n[s];return o+l+r+u}const mn=(e,t)=>iX(e,{binary:!1,...t}),ak=d9(),sk=Le(()=>ak.width.value>1280),oX=Le(()=>ak.width.value<640),R0=e=>Zo(e).locale(Pa.value).fromNow(),fv=e=>{const t=M0(e);return t===0?1/0:t},aX=e=>{const t=Wa.value[e];return t?["direct","reject","reject-drop","pass"].includes(t.type.toLowerCase())||!!t.all:!1},lk=e=>{switch(e=[...e],yg.value&&(e=e.filter(t=>aX(t)||M0(t)>0)),gg.value){case Is.DEFAULT:return e;case Is.NAME_ASC:return e.sort((t,n)=>t.localeCompare(n));case Is.NAME_DESC:return e.sort((t,n)=>n.localeCompare(t));case Is.LATENCY_ASC:return e.sort((t,n)=>fv(t)-fv(n));case Is.LATENCY_DESC:return e.sort((t,n)=>fv(n)-fv(t))}},pm=e=>{const t=e.includes(":");for(const n in yi.value)if(n.startsWith("/")){if(new RegExp(n,"i").test(e))return yi.value[n]}else if(e===n||t&&e.endsWith(n))return yi.value[n];return e},uk=e=>e.metadata.process||e.metadata.processPath.replace(/^.*[/\\](.*)$/,"$1")||"-",ck=(e,t)=>{const{suffix:n="",binary:r=!1}=t;return e.data.nameMath.abs(e-t)<1,Fq=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},$q=e=>e,Bq=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},Vq=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=a=>{const{width:s,height:l}=a;t({width:Math.round(s),height:Math.round(l)})};if(i(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(a=>{const s=a[0];if(s!=null&&s.borderBoxSize){const l=s.borderBoxSize[0];if(l){i({width:l.inlineSize,height:l.blockSize});return}}i(n.getBoundingClientRect())});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},lM={passive:!0},Hq=typeof window>"u"?!0:"onscrollend"in window,Uq=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&Hq?()=>{}:Fq(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),a=u=>()=>{const{horizontal:c,isRtl:f}=e.options;i=c?n.scrollLeft*(f&&-1||1):n.scrollTop,o(),t(i,u)},s=a(!0),l=a(!1);return l(),n.addEventListener("scroll",s,lM),n.addEventListener("scrollend",l,lM),()=>{n.removeEventListener("scroll",s),n.removeEventListener("scrollend",l)}},zq=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},Gq=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const a=e+t;(o=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||o.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class Wq{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(o=>{this._measureElement(o.target,o)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var o;return(o=r())==null?void 0:o.observe(i,{box:"border-box"})},unobserve:i=>{var o;return(o=r())==null?void 0:o.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:$q,rangeExtractor:Bq,onChange:()=>{},measureElement:zq,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=zu(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,o=new Map;for(let a=r-1;a>=0;a--){const s=n[a];if(i.has(s.lane))continue;const l=o.get(s.lane);if(l==null||s.end>l.end?o.set(s.lane,s):s.enda.end===s.end?a.index-s.index:a.end-s.end)[0]:void 0},this.getMeasurementOptions=zu(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,o,a)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:a}),{key:!1}),this.getMeasurements=zu(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:a},s)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;cthis.options.debug}),this.calculateRange=zu(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,r,i)=>this.range=n.length>0&&r>0?Yq({measurements:n,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=zu(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,i,o)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:i,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),o=this.measurementsCache[i];if(!o)return;const a=o.key,s=this.elementsCache.get(a);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(a,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,a=r-o;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,a,this):i.start{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=zu(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let o=0,a=n.length;othis.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return W_(r[rk(0,r.length-1,i=>W_(r[i]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const i=this.getSize(),o=this.getScrollOffset();r==="auto"&&(n<=o?r="start":n>=o+i?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-i:r==="center"&&(n=n-i/2);const a=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-i;return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const o=this.getSize(),a=this.getScrollOffset();if(r==="auto")if(i.end>=a+o-this.options.scrollPaddingEnd)r="end";else if(i.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];const s=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:r="auto",behavior:i}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const o=this.getOffsetForIndex(n,r);if(!o)return;const[a,s]=o;this._scrollToOffset(a,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[u]=W_(this.getOffsetForIndex(n,s));Nq(u,this.getScrollOffset())||this.scrollToIndex(n,{align:s,behavior:i})}else this.scrollToIndex(n,{align:s,behavior:i})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(o=>o.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const rk=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(or)t=i-1;else return i}return e>0?e-1:0};function Yq({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,o=rk(0,r,s=>e[s].start,n);let a=o;for(;a$(e).getScrollElement(),i=>{i&&t._willUpdate()},{immediate:!0}),kt(()=>$(e),i=>{t.setOptions({...i,onChange:(o,a)=>{var s;pA(n),(s=i.onChange)==null||s.call(i,o,a)}}),t._willUpdate(),pA(n)},{immediate:!0}),kP(r),n}function ik(e){return jq(Le(()=>({observeElementRect:Vq,observeElementOffset:Uq,scrollToFn:Gq,...$(e)})))}const qq=["data-index"],gx=lt({__name:"VirtualScroller",props:{data:{}},setup(e){const t=Ie(null),n=e,r=Le(()=>({count:n.data.length,getScrollElement:()=>t.value,estimateSize:()=>55,overscan:24})),i=ik(r),o=Le(()=>i.value.getVirtualItems()),a=Le(()=>i.value.getTotalSize()),s=l=>{l&&i.value.measureElement(l)};return(l,u)=>{var c;return X(),ae("div",{ref_key:"parentRef",ref:t,class:"flex h-full w-full overflow-y-auto overscroll-y-none p-2"},[F("div",{style:vo({height:`${a.value}px`}),class:"relative w-full max-sm:min-h-[calc(100%+1px)]"},[F("div",{class:"absolute left-0 top-0 w-full",style:vo({transform:`translateY(${((c=o.value[0])==null?void 0:c.start)??0}px)`})},[(X(!0),ae(Ye,null,Gt(o.value,f=>(X(),ae("div",{key:f.key.toString(),"data-index":f.index,ref_for:!0,ref:s},[cL(l.$slots,"default",{item:l.data[f.index],index:f.index})],8,qq))),128))],4)],4)],512)}}}),uM=Ie(),cM=Ie(),mx=()=>({infoConn:uM,modalRef:cM,handlerInfo:t=>{var n;uM.value=t,(n=cM.value)==null||n.showModal()}}),ql="GLOBAL",cb=Ie([]),Wa=Ie({}),yx=Ie({}),Mc=Ie([]),M0=e=>yx.value[ok(e)],jc=async()=>{const{data:e}=await pq(),{data:t}=await yq(),n=e.proxies[ql].all??[];Wa.value=e.proxies,cb.value=Object.values(e.proxies).filter(r=>{var i;return((i=r.all)==null?void 0:i.length)&&r.name!==ql&&!(r!=null&&r.hidden)}).sort((r,i)=>n.indexOf(r.name)-n.indexOf(i.name)).map(r=>r.name),yx.value=Object.fromEntries(Object.entries(e.proxies).map(([r,i])=>[r,Qq(i)])),Mc.value=Object.values(t.providers).filter(r=>r.name!=="default"&&r.vehicleType!=="Compatible")},Xq=async(e,t)=>{await vq(e,t),Wa.value[e].now=t,yg.value&&mo.value.filter(n=>n.chains.includes(e)).forEach(n=>E0(n.id))},Kq=async e=>{const{data:t}=await gq(e,Nh.value,Fh.value);yx.value[ok(e)]=t.delay},Zq=async e=>{await mq(e,Nh.value,Fh.value),await jc()},Qq=e=>{var t;return((t=ea.last(e.history))==null?void 0:t.delay)??0},ok=e=>{let t=Wa.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const n=Wa.value[t.now];if(!n)return t.name;t=n}return t.name},tu=60,lu=new Array(tu).fill(0).map((e,t)=>({name:t,value:e})),_x=Ie(0),dh=Ie([...lu]),Ig=Ie([...lu]),bx=Ie(0),Sx=Ie(0),ph=Ie([...lu]),vh=Ie([...lu]);let fv;const Jq=()=>{fv==null||fv(),ph.value=[...lu],vh.value=[...lu],dh.value=[...lu];const{data:e,close:t}=Dq(),n=kt(()=>e.value,a=>{if(!a)return;const s=Date.now().valueOf();_x.value=a.inuse,dh.value.push({value:a.inuse,name:s}),Ig.value.push({value:mo.value.length,name:s}),dh.value=dh.value.slice(-1*tu),Ig.value=Ig.value.slice(-1*tu)}),{data:r,close:i}=Iq(),o=kt(()=>r.value,a=>{if(!a)return;const s=Date.now().valueOf();bx.value=a.down,Sx.value=a.up,ph.value.push({value:a.down,name:s}),vh.value.push({value:a.up,name:s}),ph.value=ph.value.slice(-1*tu),vh.value=vh.value.slice(-1*tu)});fv=()=>{t(),i(),n(),o()}},eX=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],tX=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],nX=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],rX=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],fM=(e,t,n)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};function iX(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 n=t.bits?t.binary?rX:nX:t.binary?tX:eX,r=t.space?" ":"";if(t.signed&&e===0)return` 0${r}${n[0]}`;const i=e<0,o=i?"-":t.signed?"+":"";i&&(e=-e);let a;if(t.minimumFractionDigits!==void 0&&(a={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(a={maximumFractionDigits:t.maximumFractionDigits,...a}),e<1){const c=fM(e,t.locale,a);return o+c+r+n[0]}const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,a||(e=e.toPrecision(3));const l=fM(Number(e),t.locale,a),u=n[s];return o+l+r+u}const mn=(e,t)=>iX(e,{binary:!1,...t}),ak=d9(),sk=Le(()=>ak.width.value>1280),oX=Le(()=>ak.width.value<640),R0=e=>Zo(e).locale(Pa.value).fromNow(),hv=e=>{const t=M0(e);return t===0?1/0:t},aX=e=>{const t=Wa.value[e];return t?["direct","reject","reject-drop","pass"].includes(t.type.toLowerCase())||!!t.all:!1},lk=e=>{switch(e=[...e],_g.value&&(e=e.filter(t=>aX(t)||M0(t)>0)),mg.value){case Is.DEFAULT:return e;case Is.NAME_ASC:return e.sort((t,n)=>t.localeCompare(n));case Is.NAME_DESC:return e.sort((t,n)=>n.localeCompare(t));case Is.LATENCY_ASC:return e.sort((t,n)=>hv(t)-hv(n));case Is.LATENCY_DESC:return e.sort((t,n)=>hv(n)-hv(t))}},vm=e=>{const t=e.includes(":");for(const n in mi.value)if(n.startsWith("/")){if(new RegExp(n,"i").test(e))return mi.value[n]}else if(e===n||t&&e.endsWith(n))return mi.value[n];return e},uk=e=>e.metadata.process||e.metadata.processPath.replace(/^.*[/\\](.*)$/,"$1")||"-",ck=(e,t)=>{const{suffix:n="",binary:r=!1}=t;return e.data.name
${e.seriesName} (${Zo(e.data.name).format("HH:mm:ss")}): ${mn(e.data.value,{binary:r})}${n} -
`},Cx="-",sX=e=>{const t=uX(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(Cx);return s[0]===""&&s.length!==1&&s.shift(),fk(s,t)||lX(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},fk=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?fk(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(Cx);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},dM=/^\[(.+)\]$/,lX=e=>{if(dM.test(e)){const t=dM.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},uX=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return fX(Object.entries(e.classGroups),n).forEach(([o,a])=>{fb(a,r,o,t)}),r},fb=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:pM(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(cX(i)){fb(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{fb(a,pM(t,o),n,r)})})},pM=(e,t)=>{let n=e;return t.split(Cx).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},cX=e=>e.isThemeGetter,fX=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,s])=>[t+a,s])):o);return[n,i]}):e,hX=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a)}}},hk="!",dX=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,a=s=>{const l=[];let u=0,c=0,f;for(let _=0;_c?f-c:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:y}};return n?s=>n({className:s,parseClassName:a}):a},pX=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},vX=e=>({cache:hX(e.cacheSize),parseClassName:dX(e),...sX(e)}),gX=/\s+/,mX=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(gX);let s="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{modifiers:c,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:d}=n(u);let g=!!d,y=r(g?p.substring(0,d):p);if(!y){if(!g){s=u+(s.length>0?" "+s:s);continue}if(y=r(p),!y){s=u+(s.length>0?" "+s:s);continue}g=!1}const _=pX(c).join(":"),m=f?_+hk:_,b=m+y;if(o.includes(b))continue;o.push(b);const S=i(y,g);for(let x=0;x0?" "+s:s)}return s};function yX(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(c),e());return n=vX(u),r=n.cache.get,i=n.cache.set,o=s,s(l)}function s(l){const u=r(l);if(u)return u;const c=mX(l,n);return i(l,c),c}return function(){return o(yX.apply(null,arguments))}}const wn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},pk=/^\[(?:([a-z-]+):)?(.+)\]$/i,wX=/^\d+\/\d+$/,bX=new Set(["px","full","screen"]),SX=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xX=/\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$/,CX=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,TX=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,EX=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wa=e=>Rc(e)||bX.has(e)||wX.test(e),hs=e=>rf(e,"length",OX),Rc=e=>!!e&&!Number.isNaN(Number(e)),Y_=e=>rf(e,"number",Rc),Ff=e=>!!e&&Number.isInteger(Number(e)),AX=e=>e.endsWith("%")&&Rc(e.slice(0,-1)),xt=e=>pk.test(e),ds=e=>SX.test(e),MX=new Set(["length","size","percentage"]),RX=e=>rf(e,MX,vk),DX=e=>rf(e,"position",vk),IX=new Set(["image","url"]),PX=e=>rf(e,IX,NX),LX=e=>rf(e,"",kX),$f=()=>!0,rf=(e,t,n)=>{const r=pk.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},OX=e=>xX.test(e)&&!CX.test(e),vk=()=>!1,kX=e=>TX.test(e),NX=e=>EX.test(e),FX=()=>{const e=wn("colors"),t=wn("spacing"),n=wn("blur"),r=wn("brightness"),i=wn("borderColor"),o=wn("borderRadius"),a=wn("borderSpacing"),s=wn("borderWidth"),l=wn("contrast"),u=wn("grayscale"),c=wn("hueRotate"),f=wn("invert"),p=wn("gap"),d=wn("gradientColorStops"),g=wn("gradientColorStopPositions"),y=wn("inset"),_=wn("margin"),m=wn("opacity"),b=wn("padding"),S=wn("saturate"),x=wn("scale"),E=wn("sepia"),T=wn("skew"),A=wn("space"),D=wn("translate"),P=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto",xt,t],H=()=>[xt,t],te=()=>["",wa,hs],W=()=>["auto",Rc,xt],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],ce=()=>["","0",xt],ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],we=()=>[Rc,xt];return{cacheSize:500,separator:":",theme:{colors:[$f],spacing:[wa,hs],blur:["none","",ds,xt],brightness:we(),borderColor:[e],borderRadius:["none","","full",ds,xt],borderSpacing:H(),borderWidth:te(),contrast:we(),grayscale:ce(),hueRotate:we(),invert:ce(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[AX,hs],inset:k(),margin:k(),opacity:we(),padding:H(),saturate:we(),scale:we(),sepia:ce(),skew:we(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",xt]}],container:["container"],columns:[{columns:[ds]}],"break-after":[{"break-after":ye()}],"break-before":[{"break-before":ye()}],"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:[...q(),xt]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ff,xt]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xt]}],grow:[{grow:ce()}],shrink:[{shrink:ce()}],order:[{order:["first","last","none",Ff,xt]}],"grid-cols":[{"grid-cols":[$f]}],"col-start-end":[{col:["auto",{span:["full",Ff,xt]},xt]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[$f]}],"row-start-end":[{row:["auto",{span:[Ff,xt]},xt]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xt]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"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",xt,t]}],"min-w":[{"min-w":[xt,t,"min","max","fit"]}],"max-w":[{"max-w":[xt,t,"none","full","min","max","fit","prose",{screen:[ds]},ds]}],h:[{h:[xt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ds,hs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Y_]}],"font-family":[{font:[$f]}],"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",xt]}],"line-clamp":[{"line-clamp":["none",Rc,Y_]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",wa,xt]}],"list-image":[{"list-image":["none",xt]}],"list-style-type":[{list:["none","disc","decimal",xt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",wa,hs]}],"underline-offset":[{"underline-offset":["auto",wa,xt]}],"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:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xt]}],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",xt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),DX]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",RX]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},PX]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"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":[m]}],"border-style":[{border:[...j(),"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":[m]}],"divide-style":[{divide:j()}],"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:["",...j()]}],"outline-offset":[{"outline-offset":[wa,xt]}],"outline-w":[{outline:[wa,hs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[wa,hs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ds,LX]}],"shadow-color":[{shadow:[$f]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ds,xt]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[S]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"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":[m]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xt]}],duration:[{duration:we()}],ease:[{ease:["linear","in","out","in-out",xt]}],delay:[{delay:we()}],animate:[{animate:["none","spin","ping","pulse","bounce",xt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Ff,xt]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xt]}],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",xt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",xt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[wa,hs,Y_]}],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"]}}},hn=_X(FX),$X=lt({props:{conn:Object},name:"ConnectionCard",setup(e){const{handlerInfo:t}=yx();return()=>{const n=Se("span",{class:"flex-1"},null),r=Se("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,Se("span",{class:"hidden sm:inline"},[ut(":"),e.conn.metadata.destinationPort])]),i=Se("div",{class:"badge flex px-1 text-sm text-base-content"},[Se(L6,{class:"h-4 w-3"},null),Se("div",{class:"hidden w-16 text-right sm:inline"},[mn(e.conn.download),ut(" |")," "]),Se("div",{class:"w-20 text-right"},[mn(e.conn.downloadSpeed),ut("/s")])]),o=Se("div",{class:"badge hidden px-1 text-sm text-base-content 2xl:flex"},[Se(a2,{class:"h-4 w-3"},null),Se("div",{class:"w-16 text-right"},[mn(e.conn.upload),ut(" | ")]),Se("div",{class:"w-20 text-right"},[mn(e.conn.uploadSpeed),ut("/s")])]),a=Se("div",{class:"badge hidden px-1 text-sm text-base-content lg:flex"},[Se(a2,{class:"h-4 w-3"},null),Se("div",{class:"w-16 text-right"},[mn(e.conn.upload),ut(" | ")]),Se("div",{class:"w-20 text-right"},[mn(e.conn.uploadSpeed),ut("/s")])]),s=Se("div",{class:"flex w-12 gap-1"},[Se("button",{class:"btn btn-circle btn-xs",onClick:()=>t(e.conn)},[Se(eO,{class:"h-4 w-4"},null)]),Se("button",{onClick:()=>E0(e.conn.id)},[Se(p0,{class:"h-4 w-4"},null)])]),l=e.conn.chains,u=ea.first(l),c=ea.last(l),f=Se("span",{class:"inline w-56 truncate text-sm"},[Se("span",{class:"hidden sm:inline"},[[...l].reverse().join("->")]),Se("span",{class:"inline sm:hidden"},[l.length>1?[c,u].join(" =>> "):u])]),p=Se("span",{class:"hidden text-sm tracking-tight xl:inline"},[e.conn.rule]),d=Se("span",{class:"hidden min-w-48 px-2 text-sm 2xl:inline"},[uk(e.conn)]),g=Se("span",{class:hn("inline whitespace-nowrap text-right text-sm tracking-tight",Pa.value===$a.ZH_CN?"w-20":"w-32")},[R0(e.conn.start)]),y=Se("span",{class:"hidden w-36 text-sm lg:inline"},[e.conn.metadata.type,ut(" | "),e.conn.metadata.network]),_=Se("span",{class:"hidden w-36 text-sm md:inline"},[e.conn.metadata.type,ut(" | "),e.conn.metadata.network]),m=e.conn.metadata.destinationIP||"remote-resolve",b=pm(e.conn.metadata.sourceIP),S=Se("span",{class:"hidden w-96 truncate text-sm tracking-tight xl:flex"},[Se("span",null,[b,ut(":"),e.conn.metadata.sourcePort]),Se("span",null,[ut("->")]),Se("span",null,[m,ut(":"),e.conn.metadata.destinationPort])]),x=Se("span",{class:"hidden w-52 truncate text-sm tracking-tight 3xl:flex"},[Se("span",null,[b]),Se("span",null,[ut("->")]),Se("span",null,[m])]);return sk.value&&_g.value?Se("div",{class:"card flex-row items-center justify-between gap-1 px-2 py-1"},[r,f,x,_,i,o,g,s]):Se("div",{class:"card gap-[1px] px-2 py-[1px]"},[Se("div",{class:"flex flex-row items-center gap-1 px-1"},[r,n,d,S,i,a]),Se("div",{class:"flex flex-row items-center gap-1 px-1"},[f,p,n,y,g,s])])}}}),BX={key:0,class:"card m-2 flex-row p-2 text-sm"},VX=lt({__name:"ConnectionCardList",setup(e){return(t,n)=>$(Ac).length?(X(),_t(mx,{key:1,data:$(Ac)},{default:Gs(({item:r})=>[Se($($X),{class:"mb-1",conn:r},null,8,["conn"])]),_:1},8,["data"])):(X(),ae("div",BX,de(t.$t("noContent")),1))}});/** + `},xx="-",sX=e=>{const t=uX(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(xx);return s[0]===""&&s.length!==1&&s.shift(),fk(s,t)||lX(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},fk=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?fk(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(xx);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},hM=/^\[(.+)\]$/,lX=e=>{if(hM.test(e)){const t=hM.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},uX=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return fX(Object.entries(e.classGroups),n).forEach(([o,a])=>{fb(a,r,o,t)}),r},fb=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:dM(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(cX(i)){fb(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{fb(a,dM(t,o),n,r)})})},dM=(e,t)=>{let n=e;return t.split(xx).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},cX=e=>e.isThemeGetter,fX=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,s])=>[t+a,s])):o);return[n,i]}):e,hX=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a)}}},hk="!",dX=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,a=s=>{const l=[];let u=0,c=0,f;for(let _=0;_c?f-c:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:y}};return n?s=>n({className:s,parseClassName:a}):a},pX=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},vX=e=>({cache:hX(e.cacheSize),parseClassName:dX(e),...sX(e)}),gX=/\s+/,mX=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(gX);let s="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{modifiers:c,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:d}=n(u);let g=!!d,y=r(g?p.substring(0,d):p);if(!y){if(!g){s=u+(s.length>0?" "+s:s);continue}if(y=r(p),!y){s=u+(s.length>0?" "+s:s);continue}g=!1}const _=pX(c).join(":"),m=f?_+hk:_,b=m+y;if(o.includes(b))continue;o.push(b);const S=i(y,g);for(let x=0;x0?" "+s:s)}return s};function yX(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(c),e());return n=vX(u),r=n.cache.get,i=n.cache.set,o=s,s(l)}function s(l){const u=r(l);if(u)return u;const c=mX(l,n);return i(l,c),c}return function(){return o(yX.apply(null,arguments))}}const wn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},pk=/^\[(?:([a-z-]+):)?(.+)\]$/i,wX=/^\d+\/\d+$/,bX=new Set(["px","full","screen"]),SX=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xX=/\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$/,CX=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,TX=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,EX=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wa=e=>Rc(e)||bX.has(e)||wX.test(e),hs=e=>rf(e,"length",OX),Rc=e=>!!e&&!Number.isNaN(Number(e)),Y_=e=>rf(e,"number",Rc),Ff=e=>!!e&&Number.isInteger(Number(e)),AX=e=>e.endsWith("%")&&Rc(e.slice(0,-1)),xt=e=>pk.test(e),ds=e=>SX.test(e),MX=new Set(["length","size","percentage"]),RX=e=>rf(e,MX,vk),DX=e=>rf(e,"position",vk),IX=new Set(["image","url"]),PX=e=>rf(e,IX,NX),LX=e=>rf(e,"",kX),$f=()=>!0,rf=(e,t,n)=>{const r=pk.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},OX=e=>xX.test(e)&&!CX.test(e),vk=()=>!1,kX=e=>TX.test(e),NX=e=>EX.test(e),FX=()=>{const e=wn("colors"),t=wn("spacing"),n=wn("blur"),r=wn("brightness"),i=wn("borderColor"),o=wn("borderRadius"),a=wn("borderSpacing"),s=wn("borderWidth"),l=wn("contrast"),u=wn("grayscale"),c=wn("hueRotate"),f=wn("invert"),p=wn("gap"),d=wn("gradientColorStops"),g=wn("gradientColorStopPositions"),y=wn("inset"),_=wn("margin"),m=wn("opacity"),b=wn("padding"),S=wn("saturate"),x=wn("scale"),E=wn("sepia"),T=wn("skew"),A=wn("space"),D=wn("translate"),P=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto",xt,t],H=()=>[xt,t],te=()=>["",wa,hs],W=()=>["auto",Rc,xt],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],ce=()=>["","0",xt],ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],we=()=>[Rc,xt];return{cacheSize:500,separator:":",theme:{colors:[$f],spacing:[wa,hs],blur:["none","",ds,xt],brightness:we(),borderColor:[e],borderRadius:["none","","full",ds,xt],borderSpacing:H(),borderWidth:te(),contrast:we(),grayscale:ce(),hueRotate:we(),invert:ce(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[AX,hs],inset:k(),margin:k(),opacity:we(),padding:H(),saturate:we(),scale:we(),sepia:ce(),skew:we(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",xt]}],container:["container"],columns:[{columns:[ds]}],"break-after":[{"break-after":ye()}],"break-before":[{"break-before":ye()}],"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:[...q(),xt]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ff,xt]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xt]}],grow:[{grow:ce()}],shrink:[{shrink:ce()}],order:[{order:["first","last","none",Ff,xt]}],"grid-cols":[{"grid-cols":[$f]}],"col-start-end":[{col:["auto",{span:["full",Ff,xt]},xt]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[$f]}],"row-start-end":[{row:["auto",{span:[Ff,xt]},xt]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xt]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"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",xt,t]}],"min-w":[{"min-w":[xt,t,"min","max","fit"]}],"max-w":[{"max-w":[xt,t,"none","full","min","max","fit","prose",{screen:[ds]},ds]}],h:[{h:[xt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ds,hs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Y_]}],"font-family":[{font:[$f]}],"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",xt]}],"line-clamp":[{"line-clamp":["none",Rc,Y_]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",wa,xt]}],"list-image":[{"list-image":["none",xt]}],"list-style-type":[{list:["none","disc","decimal",xt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",wa,hs]}],"underline-offset":[{"underline-offset":["auto",wa,xt]}],"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:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xt]}],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",xt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),DX]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",RX]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},PX]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"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":[m]}],"border-style":[{border:[...j(),"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":[m]}],"divide-style":[{divide:j()}],"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:["",...j()]}],"outline-offset":[{"outline-offset":[wa,xt]}],"outline-w":[{outline:[wa,hs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[wa,hs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ds,LX]}],"shadow-color":[{shadow:[$f]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ds,xt]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[S]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"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":[m]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xt]}],duration:[{duration:we()}],ease:[{ease:["linear","in","out","in-out",xt]}],delay:[{delay:we()}],animate:[{animate:["none","spin","ping","pulse","bounce",xt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Ff,xt]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xt]}],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",xt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",xt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[wa,hs,Y_]}],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"]}}},hn=_X(FX),$X=lt({props:{conn:Object},name:"ConnectionCard",setup(e){const{handlerInfo:t}=mx();return()=>{const n=Se("span",{class:"flex-1"},null),r=Se("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,Se("span",{class:"hidden sm:inline"},[ut(":"),e.conn.metadata.destinationPort])]),i=Se("div",{class:"badge flex px-1 text-sm text-base-content"},[Se(L6,{class:"h-4 w-3"},null),Se("div",{class:"hidden w-16 text-right sm:inline"},[mn(e.conn.download),ut(" |")," "]),Se("div",{class:"w-20 text-right"},[mn(e.conn.downloadSpeed),ut("/s")])]),o=Se("div",{class:"badge hidden px-1 text-sm text-base-content 2xl:flex"},[Se(o2,{class:"h-4 w-3"},null),Se("div",{class:"w-16 text-right"},[mn(e.conn.upload),ut(" | ")]),Se("div",{class:"w-20 text-right"},[mn(e.conn.uploadSpeed),ut("/s")])]),a=Se("div",{class:"badge hidden px-1 text-sm text-base-content lg:flex"},[Se(o2,{class:"h-4 w-3"},null),Se("div",{class:"w-16 text-right"},[mn(e.conn.upload),ut(" | ")]),Se("div",{class:"w-20 text-right"},[mn(e.conn.uploadSpeed),ut("/s")])]),s=Se("div",{class:"flex w-12 gap-1"},[Se("button",{class:"btn btn-circle btn-xs",onClick:()=>t(e.conn)},[Se(JL,{class:"h-4 w-4"},null)]),Se("button",{onClick:()=>E0(e.conn.id)},[Se(v0,{class:"h-4 w-4"},null)])]),l=e.conn.chains,u=ea.first(l),c=ea.last(l),f=Se("span",{class:"inline w-56 truncate text-sm"},[Se("span",{class:"hidden sm:inline"},[[...l].reverse().join("->")]),Se("span",{class:"inline sm:hidden"},[l.length>1?[c,u].join(" =>> "):u])]),p=Se("span",{class:"hidden text-sm tracking-tight xl:inline"},[e.conn.rule]),d=Se("span",{class:"hidden min-w-48 px-2 text-sm 2xl:inline"},[uk(e.conn)]),g=Se("span",{class:hn("inline whitespace-nowrap text-right text-sm tracking-tight",Pa.value===$a.ZH_CN?"w-20":"w-32")},[R0(e.conn.start)]),y=Se("span",{class:"hidden w-36 text-sm lg:inline"},[e.conn.metadata.type,ut(" | "),e.conn.metadata.network]),_=Se("span",{class:"hidden w-36 text-sm md:inline"},[e.conn.metadata.type,ut(" | "),e.conn.metadata.network]),m=e.conn.metadata.destinationIP||"remote-resolve",b=vm(e.conn.metadata.sourceIP),S=Se("span",{class:"hidden w-96 truncate text-sm tracking-tight xl:flex"},[Se("span",null,[b,ut(":"),e.conn.metadata.sourcePort]),Se("span",null,[ut("->")]),Se("span",null,[m,ut(":"),e.conn.metadata.destinationPort])]),x=Se("span",{class:"hidden w-52 truncate text-sm tracking-tight 3xl:flex"},[Se("span",null,[b]),Se("span",null,[ut("->")]),Se("span",null,[m])]);return sk.value&&wg.value?Se("div",{class:"card flex-row items-center justify-between gap-1 px-2 py-1"},[r,f,x,_,i,o,g,s]):Se("div",{class:"card gap-[1px] px-2 py-[1px]"},[Se("div",{class:"flex flex-row items-center gap-1 px-1"},[r,n,d,S,i,a]),Se("div",{class:"flex flex-row items-center gap-1 px-1"},[f,p,n,y,g,s])])}}}),BX={key:0,class:"card m-2 flex-row p-2 text-sm"},VX=lt({__name:"ConnectionCardList",setup(e){return(t,n)=>$(Ac).length?(X(),_t(gx,{key:1,data:$(Ac)},{default:Gs(({item:r})=>[Se($($X),{class:"mb-1",conn:r},null,8,["conn"])]),_:1},8,["data"])):(X(),ae("div",BX,de(t.$t("noContent")),1))}});/** * table-core * * Copyright (c) TanStack @@ -84,10 +84,10 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ks(e,t){return typeof e=="function"?e(t):e}function Ei(e,t){return n=>{t.setState(r=>({...r,[e]:ks(n,r[e])}))}}function uu(e){return e instanceof Function}function HX(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function gk(e,t){const n=[],r=i=>{i.forEach(o=>{n.push(o);const a=t(o);a!=null&&a.length&&r(a)})};return r(e),n}function nt(e,t,n){let r=[],i;return o=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(o);if(!(s.length!==r.length||s.some((c,f)=>r[f]!==c)))return i;r=s;let u;if(n.key&&n.debug&&(u=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const c=Math.round((Date.now()-a)*100)/100,f=Math.round((Date.now()-u)*100)/100,p=f/16,d=(g,y)=>{for(g=String(g);g.length{t.setState(r=>({...r,[e]:ks(n,r[e])}))}}function uu(e){return e instanceof Function}function HX(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function gk(e,t){const n=[],r=i=>{i.forEach(o=>{n.push(o);const a=t(o);a!=null&&a.length&&r(a)})};return r(e),n}function nt(e,t,n){let r=[],i;return o=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(o);if(!(s.length!==r.length||s.some((c,f)=>r[f]!==c)))return i;r=s;let u;if(n.key&&n.debug&&(u=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const c=Math.round((Date.now()-a)*100)/100,f=Math.round((Date.now()-u)*100)/100,p=f/16,d=(g,y)=>{for(g=String(g);g.length{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:r}}function UX(e,t,n,r){const i=()=>{var a;return(a=o.getValue())!=null?a:e.options.renderFallbackValue},o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:nt(()=>[e,n,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),rt(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(o,n,t,e)},{}),o}function zX(e,t,n,r){var i,o;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(o=s.id)!=null?o: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=p=>{let d=p;for(const y of l.split(".")){var g;d=(g=d)==null?void 0:g[y]}return d}:c=p=>p[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:nt(()=>[!0],()=>{var p;return[f,...(p=f.columns)==null?void 0:p.flatMap(d=>d.getFlatColumns())]},rt(e.options,"debugColumns")),getLeafColumns:nt(()=>[e._getOrderColumnsFn()],p=>{var d;if((d=f.columns)!=null&&d.length){let g=f.columns.flatMap(y=>y.getLeafColumns());return p(g)}return[f]},rt(e.options,"debugColumns"))};for(const p of e._features)p.createColumn==null||p.createColumn(f,e);return f}const pr="debugHeaders";function vM(e,t,n){var r;let o={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(o),a},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(o,e)}),o}const GX={createTable:e=>{e.getHeaderGroups=nt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var o,a;const s=(o=r==null?void 0:r.map(f=>n.find(p=>p.id===f)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(f=>n.find(p=>p.id===f)).filter(Boolean))!=null?a:[],u=n.filter(f=>!(r!=null&&r.includes(f.id))&&!(i!=null&&i.includes(f.id)));return hv(t,[...s,...u,...l],e)},rt(e.options,pr)),e.getCenterHeaderGroups=nt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(o=>!(r!=null&&r.includes(o.id))&&!(i!=null&&i.includes(o.id))),hv(t,n,e,"center")),rt(e.options,pr)),e.getLeftHeaderGroups=nt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return hv(t,o,e,"left")},rt(e.options,pr)),e.getRightHeaderGroups=nt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return hv(t,o,e,"right")},rt(e.options,pr)),e.getFooterGroups=nt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),rt(e.options,pr)),e.getLeftFooterGroups=nt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),rt(e.options,pr)),e.getCenterFooterGroups=nt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),rt(e.options,pr)),e.getRightFooterGroups=nt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),rt(e.options,pr)),e.getFlatHeaders=nt(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),rt(e.options,pr)),e.getLeftFlatHeaders=nt(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),rt(e.options,pr)),e.getCenterFlatHeaders=nt(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),rt(e.options,pr)),e.getRightFlatHeaders=nt(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),rt(e.options,pr)),e.getCenterLeafHeaders=nt(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),rt(e.options,pr)),e.getLeftLeafHeaders=nt(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),rt(e.options,pr)),e.getRightLeafHeaders=nt(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),rt(e.options,pr)),e.getLeafHeaders=nt(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,o,a,s,l,u;return[...(i=(o=t[0])==null?void 0:o.headers)!=null?i:[],...(a=(s=n[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},rt(e.options,pr))}};function hv(e,t,n,r){var i,o;let a=0;const s=function(p,d){d===void 0&&(d=1),a=Math.max(a,d),p.filter(g=>g.getIsVisible()).forEach(g=>{var y;(y=g.columns)!=null&&y.length&&s(g.columns,d+1)},0)};s(e);let l=[];const u=(p,d)=>{const g={depth:d,id:[r,`${d}`].filter(Boolean).join("_"),headers:[]},y=[];p.forEach(_=>{const m=[...y].reverse()[0],b=_.column.depth===g.depth;let S,x=!1;if(b&&_.column.parent?S=_.column.parent:(S=_.column,x=!0),m&&(m==null?void 0:m.column)===S)m.subHeaders.push(_);else{const E=vM(n,S,{id:[r,d,S.id,_==null?void 0:_.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${y.filter(T=>T.column===S).length}`:void 0,depth:d,index:y.length});E.subHeaders.push(_),y.push(E)}g.headers.push(_),_.headerGroup=g}),l.push(g),d>0&&u(y,d-1)},c=t.map((p,d)=>vM(n,p,{depth:a,index:d}));u(c,a-1),l.reverse();const f=p=>p.filter(g=>g.column.getIsVisible()).map(g=>{let y=0,_=0,m=[0];g.subHeaders&&g.subHeaders.length?(m=[],f(g.subHeaders).forEach(S=>{let{colSpan:x,rowSpan:E}=S;y+=x,m.push(E)})):y=1;const b=Math.min(...m);return _=_+b,g.colSpan=y,g.rowSpan=_,{colSpan:y,rowSpan:_}});return f((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const mk=(e,t,n,r,i,o,a)=>{let s={id:t,index:r,original:n,depth:i,parentId:a,_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,r),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,r),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:()=>gk(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:nt(()=>[e.getAllLeafColumns()],l=>l.map(u=>UX(e,s,u,u.id)),rt(e.options,"debugRows")),_getAllCellsByColumnId:nt(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),rt(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()}}},yk=(e,t,n)=>{var r,i;const o=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(o))};yk.autoRemove=e=>bo(e);const _k=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};_k.autoRemove=e=>bo(e);const wk=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};wk.autoRemove=e=>bo(e);const bk=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};bk.autoRemove=e=>bo(e)||!(e!=null&&e.length);const Sk=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});Sk.autoRemove=e=>bo(e)||!(e!=null&&e.length);const xk=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});xk.autoRemove=e=>bo(e)||!(e!=null&&e.length);const Ck=(e,t,n)=>e.getValue(t)===n;Ck.autoRemove=e=>bo(e);const Tk=(e,t,n)=>e.getValue(t)==n;Tk.autoRemove=e=>bo(e);const Tx=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};Tx.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,o=t===null||Number.isNaN(r)?-1/0:r,a=n===null||Number.isNaN(i)?1/0:i;if(o>a){const s=o;o=a,a=s}return[o,a]};Tx.autoRemove=e=>bo(e)||bo(e[0])&&bo(e[1]);const Ta={includesString:yk,includesStringSensitive:_k,equalsString:wk,arrIncludes:bk,arrIncludesAll:Sk,arrIncludesSome:xk,equals:Ck,weakEquals:Tk,inNumberRange:Tx};function bo(e){return e==null||e===""}const YX={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ei("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Ta.includesString:typeof r=="number"?Ta.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Ta.equals:Array.isArray(r)?Ta.arrIncludes:Ta.weakEquals},e.getFilterFn=()=>{var n,r;return uu(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Ta[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),o=r==null?void 0:r.find(c=>c.id===e.id),a=ks(n,o?o.value:void 0);if(gM(i,a,e)){var s;return(s=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(o){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?l:c))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var o;return(o=ks(t,i))==null?void 0:o.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(gM(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},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 gM(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const jX=(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),qX=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}),r},XX=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r=o)&&(r=o)}),r},KX=(e,t,n)=>{let r,i;return n.forEach(o=>{const a=o.getValue(e);a!=null&&(r===void 0?a>=a&&(r=i=a):(r>a&&(r=a),i{let n=0,r=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},QX=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!HX(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((o,a)=>o-a);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},JX=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),eK=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,tK=(e,t)=>t.length,j_={sum:jX,min:qX,max:XX,extent:KX,mean:ZX,median:QX,unique:JX,uniqueCount:eK,count:tK},nK={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Ei("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return j_.sum;if(Object.prototype.toString.call(r)==="[object Date]")return j_.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return uu(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:j_[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},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=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function rK(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(o=>!t.includes(o.id));return n==="remove"?r:[...t.map(o=>e.find(a=>a.id===o)).filter(Boolean),...r]}const iK={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ei("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=nt(n=>[zh(t,n)],n=>n.findIndex(r=>r.id===e.id),rt(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=zh(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=zh(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=nt(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let o=[];if(!(t!=null&&t.length))o=i;else{const a=[...t],s=[...i];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(c=>c.id===l);u>-1&&o.push(s.splice(u,1)[0])}o=[...o,...s]}return rK(o,n,r)},rt(e.options,"debugTable"))}},q_=()=>({left:[],right:[]}),oK={getInitialState:e=>({columnPinning:q_(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Ei("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var o,a;if(n==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(f=>!(r!=null&&r.includes(f))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(f=>!(r!=null&&r.includes(f))),...r]}}if(n==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(f=>!(r!=null&&r.includes(f))),...r],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(f=>!(r!=null&&r.includes(f)))}}return{left:((o=i==null?void 0:i.left)!=null?o:[]).filter(f=>!(r!=null&&r.includes(f))),right:((a=i==null?void 0:i.right)!=null?a:[]).filter(f=>!(r!=null&&r.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,o,a;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((o=(a=t.options.enableColumnPinning)!=null?a:t.options.enablePinning)!=null?o:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:i}=t.getState().columnPinning,o=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>i==null?void 0:i.includes(s));return o?"left":a?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=nt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const o=[...r??[],...i??[]];return n.filter(a=>!o.includes(a.column.id))},rt(t.options,"debugRows")),e.getLeftVisibleCells=nt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),rt(t.options,"debugRows")),e.getRightVisibleCells=nt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),rt(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?q_():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:q_())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,o;return!!((i=r.left)!=null&&i.length||(o=r.right)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=nt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),rt(e.options,"debugColumns")),e.getRightLeafColumns=nt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),rt(e.options,"debugColumns")),e.getCenterLeafColumns=nt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(o=>!i.includes(o.id))},rt(e.options,"debugColumns"))}},dv={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},X_=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),aK={getDefaultColumnDef:()=>dv,getInitialState:e=>({columnSizing:{},columnSizingInfo:X_(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ei("columnSizing",e),onColumnSizingInfoChange:Ei("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:dv.minSize,(r=o??e.columnDef.size)!=null?r:dv.size),(i=e.columnDef.maxSize)!=null?i:dv.maxSize)},e.getStart=nt(n=>[n,zh(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,o)=>i+o.getSize(),0),rt(t.options,"debugColumns")),e.getAfter=nt(n=>[n,zh(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,o)=>i+o.getSize(),0),rt(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var o;n+=(o=i.column.getSize())!=null?o:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r==null?void 0:r.getCanResize();return o=>{if(!r||!i||(o.persist==null||o.persist(),K_(o)&&o.touches&&o.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(m=>[m.column.id,m.column.getSize()]):[[r.id,r.getSize()]],l=K_(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(m,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(S=>{var x,E;const T=t.options.columnResizeDirection==="rtl"?-1:1,A=(b-((x=S==null?void 0:S.startOffset)!=null?x:0))*T,D=Math.max(A/((E=S==null?void 0:S.startSize)!=null?E:0),-.999999);return S.columnSizingStart.forEach(P=>{let[O,k]=P;u[O]=Math.round(Math.max(k+k*D,0)*100)/100}),{...S,deltaOffset:A,deltaPercentage:D}}),(t.options.columnResizeMode==="onChange"||m==="end")&&t.setColumnSizing(S=>({...S,...u})))},f=m=>c("move",m),p=m=>{c("end",m),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d=n||typeof document<"u"?document:null,g={moveHandler:m=>f(m.clientX),upHandler:m=>{d==null||d.removeEventListener("mousemove",g.moveHandler),d==null||d.removeEventListener("mouseup",g.upHandler),p(m.clientX)}},y={moveHandler:m=>(m.cancelable&&(m.preventDefault(),m.stopPropagation()),f(m.touches[0].clientX),!1),upHandler:m=>{var b;d==null||d.removeEventListener("touchmove",y.moveHandler),d==null||d.removeEventListener("touchend",y.upHandler),m.cancelable&&(m.preventDefault(),m.stopPropagation()),p((b=m.touches[0])==null?void 0:b.clientX)}},_=sK()?{passive:!1}:!1;K_(o)?(d==null||d.addEventListener("touchmove",y.moveHandler,_),d==null||d.addEventListener("touchend",y.upHandler,_)):(d==null||d.addEventListener("mousemove",g.moveHandler,_),d==null||d.addEventListener("mouseup",g.upHandler,_)),t.setColumnSizingInfo(m=>({...m,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.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 n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?X_():(n=e.initialState.columnSizingInfo)!=null?n:X_())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let pv=null;function sK(){if(typeof pv=="boolean")return pv;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return pv=e,pv}function K_(e){return e.type==="touchstart"}const lK={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ei("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return(n=i.length?i.some(o=>o.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=nt(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),rt(t.options,"debugRows")),e.getVisibleCells=nt(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],rt(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>nt(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),rt(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=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,o)=>({...i,[o.id]:n||!(o.getCanHide!=null&&o.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function zh(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const uK={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()}}},cK={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Ei("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,o;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Ta.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return uu(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Ta[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},fK={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ei("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,o;e.setExpanded(r?{}:(i=(o=e.initialState)==null?void 0:o.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const a=o.split(".");r=Math.max(r,a.length)}),r},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=n=>{t.setExpanded(r=>{var i;const o=r===!0?!0:!!(r!=null&&r[e.id]);let a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=r,n=(i=n)!=null?i:!o,!o&&n)return{...a,[e.id]:!0};if(o&&!n){const{[e.id]:s,...l}=a;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},hb=0,db=10,Z_=()=>({pageIndex:hb,pageSize:db}),hK={getInitialState:e=>({...e,pagination:{...Z_(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ei("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=o=>ks(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Z_():(i=e.initialState.pagination)!=null?i:Z_())},e.setPageIndex=r=>{e.setPagination(i=>{let o=ks(r,i.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,a)),{...i,pageIndex:o}})},e.resetPageIndex=r=>{var i,o;e.setPageIndex(r?hb:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:hb)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?db:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:db)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,ks(r,i.pageSize)),a=i.pageSize*i.pageIndex,s=Math.floor(a/o);return{...i,pageIndex:s,pageSize:o}})},e.setPageCount=r=>e.setPagination(i=>{var o;let a=ks(r,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),e.getPageOptions=nt(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((o,a)=>a)),i},rt(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:re.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+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 r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Q_=()=>({top:[],bottom:[]}),dK={getInitialState:e=>({rowPinning:Q_(),...e}),getDefaultOptions:e=>({onRowPinningChange:Ei("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const o=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],a=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...a,e.id,...o]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var f,p;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(y=>!(s!=null&&s.has(y))),bottom:[...((p=l==null?void 0:l.bottom)!=null?p:[]).filter(y=>!(s!=null&&s.has(y))),...Array.from(s)]}}if(n==="top"){var d,g;return{top:[...((d=l==null?void 0:l.top)!=null?d:[]).filter(y=>!(s!=null&&s.has(y))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(y=>!(s!=null&&s.has(y)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(y=>!(s!=null&&s.has(y))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(y=>!(s!=null&&s.has(y)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>i==null?void 0:i.includes(s));return o?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const o=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(a=>{let{id:s}=a;return s});return(r=o==null?void 0:o.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Q_():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Q_())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,o;return!!((i=r.top)!=null&&i.length||(o=r.bottom)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(a=>{const s=e.getRow(a,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(a=>t.find(s=>s.id===a))).filter(Boolean).map(a=>({...a,position:r}))},e.getTopRows=nt(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),rt(e.options,"debugRows")),e.getBottomRows=nt(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),rt(e.options,"debugRows")),e.getCenterRows=nt(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(o=>!i.has(o.id))},rt(e.options,"debugRows"))}},pK={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ei("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 n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(o=>{o.getCanSelect()&&(r[o.id]=!0)}):i.forEach(o=>{delete r[o.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(o=>{pb(i,o.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=nt(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?J_(e,n):{rows:[],flatRows:[],rowsById:{}},rt(e.options,"debugTable")),e.getFilteredSelectedRowModel=nt(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?J_(e,n):{rows:[],flatRows:[],rowsById:{}},rt(e.options,"debugTable")),e.getGroupedSelectedRowModel=nt(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?J_(e,n):{rows:[],flatRows:[],rowsById:{}},rt(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var a;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return o;const s={...o};return pb(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Ex(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return vb(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return vb(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},pb=(e,t,n,r,i)=>{var o;const a=i.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(o=a.subRows)!=null&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach(s=>pb(e,s.id,n,r,i))};function J_(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(a,s){return a.map(l=>{var u;const c=Ex(l,n);if(c&&(r.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:o(l.subRows)}),c)return l}).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function Ex(e,t){var n;return(n=t[e.id])!=null?n:!1}function vb(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,o=!1;return e.subRows.forEach(a=>{if(!(o&&!i)&&(a.getCanSelect()&&(Ex(a,t)?o=!0:i=!1),a.subRows&&a.subRows.length)){const s=vb(a,t);s==="all"?o=!0:(s==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const gb=/([0-9]+)/gm,vK=(e,t,n)=>Ek(js(e.getValue(n)).toLowerCase(),js(t.getValue(n)).toLowerCase()),gK=(e,t,n)=>Ek(js(e.getValue(n)),js(t.getValue(n))),mK=(e,t,n)=>Ax(js(e.getValue(n)).toLowerCase(),js(t.getValue(n)).toLowerCase()),yK=(e,t,n)=>Ax(js(e.getValue(n)),js(t.getValue(n))),_K=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:rAx(e.getValue(n),t.getValue(n));function Ax(e,t){return e===t?0:e>t?1:-1}function js(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Ek(e,t){const n=e.split(gb).filter(Boolean),r=t.split(gb).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),o=r.shift(),a=parseInt(i,10),s=parseInt(o,10),l=[a,s].sort();if(isNaN(l[0])){if(i>o)return 1;if(o>i)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return n.length-r.length}const Bf={alphanumeric:vK,alphanumericCaseSensitive:gK,text:mK,textCaseSensitive:yK,datetime:_K,basic:wK},bK={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ei("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const o=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return Bf.datetime;if(typeof o=="string"&&(r=!0,o.split(gb).length>1))return Bf.alphanumeric}return r?Bf.text:Bf.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return uu(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Bf[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),o=typeof n<"u"&&n!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(d=>d.id===e.id),l=a==null?void 0:a.findIndex(d=>d.id===e.id);let u=[],c,f=o?n:i==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&r?s?c="toggle":c="add":a!=null&&a.length&&l!==a.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(o||i||(c="remove")),c==="add"){var p;u=[...a,{id:e.id,desc:f}],u.splice(0,u.length-((p=t.options.maxMultiSortColCount)!=null?p:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(d=>d.id===e.id?{...d,desc:f}:d):c==="remove"?u=a.filter(d=>d.id!==e.id):u=[{id:e.id,desc:f}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const o=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==o&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:a==="desc"?"asc":"desc":o},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},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())}},SK=[GX,lK,iK,oK,WX,YX,uK,cK,bK,nK,fK,hK,dK,pK,aK];function xK(e){var t,n;const r=[...SK,...(t=e._features)!=null?t:[]];let i={_features:r};const o=i._features.reduce((p,d)=>Object.assign(p,d.getDefaultOptions==null?void 0:d.getDefaultOptions(i)),{}),a=p=>i.options.mergeOptions?i.options.mergeOptions(o,p):{...o,...p};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(p=>{var d;l=(d=p.getInitialState==null?void 0:p.getInitialState(l))!=null?d:l});const u=[];let c=!1;const f={_features:r,options:{...o,...e},initialState:l,_queue:p=>{u.push(p),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{i.setState(i.initialState)},setOptions:p=>{const d=ks(p,i.options);i.options=a(d)},getState:()=>i.options.state,setState:p=>{i.options.onStateChange==null||i.options.onStateChange(p)},_getRowId:(p,d,g)=>{var y;return(y=i.options.getRowId==null?void 0:i.options.getRowId(p,d,g))!=null?y:`${g?[g.id,d].join("."):d}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(p,d)=>{let g=(d?i.getPrePaginationRowModel():i.getRowModel()).rowsById[p];if(!g&&(g=i.getCoreRowModel().rowsById[p],!g))throw new Error;return g},_getDefaultColumnDef:nt(()=>[i.options.defaultColumn],p=>{var d;return p=(d=p)!=null?d:{},{header:g=>{const y=g.header.column.columnDef;return y.accessorKey?y.accessorKey:y.accessorFn?y.id:null},cell:g=>{var y,_;return(y=(_=g.renderValue())==null||_.toString==null?void 0:_.toString())!=null?y:null},...i._features.reduce((g,y)=>Object.assign(g,y.getDefaultColumnDef==null?void 0:y.getDefaultColumnDef()),{}),...p}},rt(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:nt(()=>[i._getColumnDefs()],p=>{const d=function(g,y,_){return _===void 0&&(_=0),g.map(m=>{const b=zX(i,m,_,y),S=m;return b.columns=S.columns?d(S.columns,b,_+1):[],b})};return d(p)},rt(e,"debugColumns")),getAllFlatColumns:nt(()=>[i.getAllColumns()],p=>p.flatMap(d=>d.getFlatColumns()),rt(e,"debugColumns")),_getAllFlatColumnsById:nt(()=>[i.getAllFlatColumns()],p=>p.reduce((d,g)=>(d[g.id]=g,d),{}),rt(e,"debugColumns")),getAllLeafColumns:nt(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(p,d)=>{let g=p.flatMap(y=>y.getLeafColumns());return d(g)},rt(e,"debugColumns")),getColumn:p=>i._getAllFlatColumnsById()[p]};Object.assign(i,f);for(let p=0;pnt(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,o,a){o===void 0&&(o=0);const s=[];for(let u=0;ue._autoResetPageIndex()))}function TK(){return e=>nt(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:EK(n),rt(e.options,"debugTable"))}function EK(e){const t=[],n=r=>{var i;t.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function AK(){return e=>nt(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach(l=>{l.depth=0,l.parentId=void 0}),n;const r=t.filter(l=>e.getColumn(l)),i=[],o={},a=function(l,u,c){if(u===void 0&&(u=0),u>=r.length)return l.map(g=>(g.depth=u,i.push(g),o[g.id]=g,g.subRows&&(g.subRows=a(g.subRows,u+1,g.id)),g));const f=r[u],p=MK(l,f);return Array.from(p.entries()).map((g,y)=>{let[_,m]=g,b=`${f}:${_}`;b=c?`${c}>${b}`:b;const S=a(m,u+1,b);S.forEach(T=>{T.parentId=b});const x=u?gk(m,T=>T.subRows):m,E=mk(e,b,x[0].original,y,u,void 0,c);return Object.assign(E,{groupingColumnId:f,groupingValue:_,subRows:S,leafRows:x,getValue:T=>{if(r.includes(T)){if(E._valuesCache.hasOwnProperty(T))return E._valuesCache[T];if(m[0]){var A;E._valuesCache[T]=(A=m[0].getValue(T))!=null?A:void 0}return E._valuesCache[T]}if(E._groupingValuesCache.hasOwnProperty(T))return E._groupingValuesCache[T];const D=e.getColumn(T),P=D==null?void 0:D.getAggregationFn();if(P)return E._groupingValuesCache[T]=P(T,x,m),E._groupingValuesCache[T]}}),S.forEach(T=>{i.push(T),o[T.id]=T}),E})},s=a(n.rows,0);return s.forEach(l=>{i.push(l),o[l.id]=l}),{rows:s,flatRows:i,rowsById:o}},rt(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function MK(e,t){const n=new Map;return e.reduce((r,i)=>{const o=`${i.getGroupingValue(t)}`,a=r.get(o);return a?a.push(i):r.set(o,[i]),r},n)}function RK(){return e=>nt(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,i=[],o=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),a={};o.forEach(l=>{const u=e.getColumn(l.id);u&&(a[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(n.rows),flatRows:i,rowsById:n.rowsById}},rt(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/** + color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function rt(e,t,n,r){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:r}}function UX(e,t,n,r){const i=()=>{var a;return(a=o.getValue())!=null?a:e.options.renderFallbackValue},o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:nt(()=>[e,n,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),rt(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(o,n,t,e)},{}),o}function zX(e,t,n,r){var i,o;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(o=s.id)!=null?o: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=p=>{let d=p;for(const y of l.split(".")){var g;d=(g=d)==null?void 0:g[y]}return d}:c=p=>p[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:nt(()=>[!0],()=>{var p;return[f,...(p=f.columns)==null?void 0:p.flatMap(d=>d.getFlatColumns())]},rt(e.options,"debugColumns")),getLeafColumns:nt(()=>[e._getOrderColumnsFn()],p=>{var d;if((d=f.columns)!=null&&d.length){let g=f.columns.flatMap(y=>y.getLeafColumns());return p(g)}return[f]},rt(e.options,"debugColumns"))};for(const p of e._features)p.createColumn==null||p.createColumn(f,e);return f}const pr="debugHeaders";function pM(e,t,n){var r;let o={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(o),a},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(o,e)}),o}const GX={createTable:e=>{e.getHeaderGroups=nt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var o,a;const s=(o=r==null?void 0:r.map(f=>n.find(p=>p.id===f)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(f=>n.find(p=>p.id===f)).filter(Boolean))!=null?a:[],u=n.filter(f=>!(r!=null&&r.includes(f.id))&&!(i!=null&&i.includes(f.id)));return dv(t,[...s,...u,...l],e)},rt(e.options,pr)),e.getCenterHeaderGroups=nt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(o=>!(r!=null&&r.includes(o.id))&&!(i!=null&&i.includes(o.id))),dv(t,n,e,"center")),rt(e.options,pr)),e.getLeftHeaderGroups=nt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return dv(t,o,e,"left")},rt(e.options,pr)),e.getRightHeaderGroups=nt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return dv(t,o,e,"right")},rt(e.options,pr)),e.getFooterGroups=nt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),rt(e.options,pr)),e.getLeftFooterGroups=nt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),rt(e.options,pr)),e.getCenterFooterGroups=nt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),rt(e.options,pr)),e.getRightFooterGroups=nt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),rt(e.options,pr)),e.getFlatHeaders=nt(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),rt(e.options,pr)),e.getLeftFlatHeaders=nt(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),rt(e.options,pr)),e.getCenterFlatHeaders=nt(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),rt(e.options,pr)),e.getRightFlatHeaders=nt(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),rt(e.options,pr)),e.getCenterLeafHeaders=nt(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),rt(e.options,pr)),e.getLeftLeafHeaders=nt(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),rt(e.options,pr)),e.getRightLeafHeaders=nt(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),rt(e.options,pr)),e.getLeafHeaders=nt(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,o,a,s,l,u;return[...(i=(o=t[0])==null?void 0:o.headers)!=null?i:[],...(a=(s=n[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},rt(e.options,pr))}};function dv(e,t,n,r){var i,o;let a=0;const s=function(p,d){d===void 0&&(d=1),a=Math.max(a,d),p.filter(g=>g.getIsVisible()).forEach(g=>{var y;(y=g.columns)!=null&&y.length&&s(g.columns,d+1)},0)};s(e);let l=[];const u=(p,d)=>{const g={depth:d,id:[r,`${d}`].filter(Boolean).join("_"),headers:[]},y=[];p.forEach(_=>{const m=[...y].reverse()[0],b=_.column.depth===g.depth;let S,x=!1;if(b&&_.column.parent?S=_.column.parent:(S=_.column,x=!0),m&&(m==null?void 0:m.column)===S)m.subHeaders.push(_);else{const E=pM(n,S,{id:[r,d,S.id,_==null?void 0:_.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${y.filter(T=>T.column===S).length}`:void 0,depth:d,index:y.length});E.subHeaders.push(_),y.push(E)}g.headers.push(_),_.headerGroup=g}),l.push(g),d>0&&u(y,d-1)},c=t.map((p,d)=>pM(n,p,{depth:a,index:d}));u(c,a-1),l.reverse();const f=p=>p.filter(g=>g.column.getIsVisible()).map(g=>{let y=0,_=0,m=[0];g.subHeaders&&g.subHeaders.length?(m=[],f(g.subHeaders).forEach(S=>{let{colSpan:x,rowSpan:E}=S;y+=x,m.push(E)})):y=1;const b=Math.min(...m);return _=_+b,g.colSpan=y,g.rowSpan=_,{colSpan:y,rowSpan:_}});return f((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const mk=(e,t,n,r,i,o,a)=>{let s={id:t,index:r,original:n,depth:i,parentId:a,_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,r),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,r),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:()=>gk(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:nt(()=>[e.getAllLeafColumns()],l=>l.map(u=>UX(e,s,u,u.id)),rt(e.options,"debugRows")),_getAllCellsByColumnId:nt(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),rt(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()}}},yk=(e,t,n)=>{var r,i;const o=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(o))};yk.autoRemove=e=>bo(e);const _k=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};_k.autoRemove=e=>bo(e);const wk=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};wk.autoRemove=e=>bo(e);const bk=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};bk.autoRemove=e=>bo(e)||!(e!=null&&e.length);const Sk=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});Sk.autoRemove=e=>bo(e)||!(e!=null&&e.length);const xk=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});xk.autoRemove=e=>bo(e)||!(e!=null&&e.length);const Ck=(e,t,n)=>e.getValue(t)===n;Ck.autoRemove=e=>bo(e);const Tk=(e,t,n)=>e.getValue(t)==n;Tk.autoRemove=e=>bo(e);const Cx=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};Cx.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,o=t===null||Number.isNaN(r)?-1/0:r,a=n===null||Number.isNaN(i)?1/0:i;if(o>a){const s=o;o=a,a=s}return[o,a]};Cx.autoRemove=e=>bo(e)||bo(e[0])&&bo(e[1]);const Ta={includesString:yk,includesStringSensitive:_k,equalsString:wk,arrIncludes:bk,arrIncludesAll:Sk,arrIncludesSome:xk,equals:Ck,weakEquals:Tk,inNumberRange:Cx};function bo(e){return e==null||e===""}const YX={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ti("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Ta.includesString:typeof r=="number"?Ta.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Ta.equals:Array.isArray(r)?Ta.arrIncludes:Ta.weakEquals},e.getFilterFn=()=>{var n,r;return uu(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Ta[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),o=r==null?void 0:r.find(c=>c.id===e.id),a=ks(n,o?o.value:void 0);if(vM(i,a,e)){var s;return(s=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(o){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?l:c))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var o;return(o=ks(t,i))==null?void 0:o.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(vM(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},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 vM(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const jX=(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),qX=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}),r},XX=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r=o)&&(r=o)}),r},KX=(e,t,n)=>{let r,i;return n.forEach(o=>{const a=o.getValue(e);a!=null&&(r===void 0?a>=a&&(r=i=a):(r>a&&(r=a),i{let n=0,r=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},QX=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!HX(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((o,a)=>o-a);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},JX=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),eK=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,tK=(e,t)=>t.length,j_={sum:jX,min:qX,max:XX,extent:KX,mean:ZX,median:QX,unique:JX,uniqueCount:eK,count:tK},nK={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Ti("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return j_.sum;if(Object.prototype.toString.call(r)==="[object Date]")return j_.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return uu(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:j_[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},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=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function rK(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(o=>!t.includes(o.id));return n==="remove"?r:[...t.map(o=>e.find(a=>a.id===o)).filter(Boolean),...r]}const iK={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ti("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=nt(n=>[zh(t,n)],n=>n.findIndex(r=>r.id===e.id),rt(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=zh(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=zh(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=nt(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let o=[];if(!(t!=null&&t.length))o=i;else{const a=[...t],s=[...i];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(c=>c.id===l);u>-1&&o.push(s.splice(u,1)[0])}o=[...o,...s]}return rK(o,n,r)},rt(e.options,"debugTable"))}},q_=()=>({left:[],right:[]}),oK={getInitialState:e=>({columnPinning:q_(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Ti("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var o,a;if(n==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(f=>!(r!=null&&r.includes(f))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(f=>!(r!=null&&r.includes(f))),...r]}}if(n==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(f=>!(r!=null&&r.includes(f))),...r],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(f=>!(r!=null&&r.includes(f)))}}return{left:((o=i==null?void 0:i.left)!=null?o:[]).filter(f=>!(r!=null&&r.includes(f))),right:((a=i==null?void 0:i.right)!=null?a:[]).filter(f=>!(r!=null&&r.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,o,a;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((o=(a=t.options.enableColumnPinning)!=null?a:t.options.enablePinning)!=null?o:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:i}=t.getState().columnPinning,o=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>i==null?void 0:i.includes(s));return o?"left":a?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=nt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const o=[...r??[],...i??[]];return n.filter(a=>!o.includes(a.column.id))},rt(t.options,"debugRows")),e.getLeftVisibleCells=nt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),rt(t.options,"debugRows")),e.getRightVisibleCells=nt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),rt(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?q_():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:q_())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,o;return!!((i=r.left)!=null&&i.length||(o=r.right)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=nt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),rt(e.options,"debugColumns")),e.getRightLeafColumns=nt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),rt(e.options,"debugColumns")),e.getCenterLeafColumns=nt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(o=>!i.includes(o.id))},rt(e.options,"debugColumns"))}},pv={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},X_=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),aK={getDefaultColumnDef:()=>pv,getInitialState:e=>({columnSizing:{},columnSizingInfo:X_(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ti("columnSizing",e),onColumnSizingInfoChange:Ti("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:pv.minSize,(r=o??e.columnDef.size)!=null?r:pv.size),(i=e.columnDef.maxSize)!=null?i:pv.maxSize)},e.getStart=nt(n=>[n,zh(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,o)=>i+o.getSize(),0),rt(t.options,"debugColumns")),e.getAfter=nt(n=>[n,zh(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,o)=>i+o.getSize(),0),rt(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var o;n+=(o=i.column.getSize())!=null?o:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r==null?void 0:r.getCanResize();return o=>{if(!r||!i||(o.persist==null||o.persist(),K_(o)&&o.touches&&o.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(m=>[m.column.id,m.column.getSize()]):[[r.id,r.getSize()]],l=K_(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(m,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(S=>{var x,E;const T=t.options.columnResizeDirection==="rtl"?-1:1,A=(b-((x=S==null?void 0:S.startOffset)!=null?x:0))*T,D=Math.max(A/((E=S==null?void 0:S.startSize)!=null?E:0),-.999999);return S.columnSizingStart.forEach(P=>{let[O,k]=P;u[O]=Math.round(Math.max(k+k*D,0)*100)/100}),{...S,deltaOffset:A,deltaPercentage:D}}),(t.options.columnResizeMode==="onChange"||m==="end")&&t.setColumnSizing(S=>({...S,...u})))},f=m=>c("move",m),p=m=>{c("end",m),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d=n||typeof document<"u"?document:null,g={moveHandler:m=>f(m.clientX),upHandler:m=>{d==null||d.removeEventListener("mousemove",g.moveHandler),d==null||d.removeEventListener("mouseup",g.upHandler),p(m.clientX)}},y={moveHandler:m=>(m.cancelable&&(m.preventDefault(),m.stopPropagation()),f(m.touches[0].clientX),!1),upHandler:m=>{var b;d==null||d.removeEventListener("touchmove",y.moveHandler),d==null||d.removeEventListener("touchend",y.upHandler),m.cancelable&&(m.preventDefault(),m.stopPropagation()),p((b=m.touches[0])==null?void 0:b.clientX)}},_=sK()?{passive:!1}:!1;K_(o)?(d==null||d.addEventListener("touchmove",y.moveHandler,_),d==null||d.addEventListener("touchend",y.upHandler,_)):(d==null||d.addEventListener("mousemove",g.moveHandler,_),d==null||d.addEventListener("mouseup",g.upHandler,_)),t.setColumnSizingInfo(m=>({...m,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.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 n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?X_():(n=e.initialState.columnSizingInfo)!=null?n:X_())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let vv=null;function sK(){if(typeof vv=="boolean")return vv;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return vv=e,vv}function K_(e){return e.type==="touchstart"}const lK={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ti("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return(n=i.length?i.some(o=>o.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=nt(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),rt(t.options,"debugRows")),e.getVisibleCells=nt(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],rt(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>nt(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),rt(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=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,o)=>({...i,[o.id]:n||!(o.getCanHide!=null&&o.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function zh(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const uK={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()}}},cK={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Ti("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,o;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Ta.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return uu(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Ta[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},fK={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ti("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,o;e.setExpanded(r?{}:(i=(o=e.initialState)==null?void 0:o.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const a=o.split(".");r=Math.max(r,a.length)}),r},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=n=>{t.setExpanded(r=>{var i;const o=r===!0?!0:!!(r!=null&&r[e.id]);let a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=r,n=(i=n)!=null?i:!o,!o&&n)return{...a,[e.id]:!0};if(o&&!n){const{[e.id]:s,...l}=a;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},hb=0,db=10,Z_=()=>({pageIndex:hb,pageSize:db}),hK={getInitialState:e=>({...e,pagination:{...Z_(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ti("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=o=>ks(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Z_():(i=e.initialState.pagination)!=null?i:Z_())},e.setPageIndex=r=>{e.setPagination(i=>{let o=ks(r,i.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,a)),{...i,pageIndex:o}})},e.resetPageIndex=r=>{var i,o;e.setPageIndex(r?hb:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:hb)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?db:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:db)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,ks(r,i.pageSize)),a=i.pageSize*i.pageIndex,s=Math.floor(a/o);return{...i,pageIndex:s,pageSize:o}})},e.setPageCount=r=>e.setPagination(i=>{var o;let a=ks(r,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),e.getPageOptions=nt(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((o,a)=>a)),i},rt(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:re.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+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 r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Q_=()=>({top:[],bottom:[]}),dK={getInitialState:e=>({rowPinning:Q_(),...e}),getDefaultOptions:e=>({onRowPinningChange:Ti("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const o=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],a=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...a,e.id,...o]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var f,p;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(y=>!(s!=null&&s.has(y))),bottom:[...((p=l==null?void 0:l.bottom)!=null?p:[]).filter(y=>!(s!=null&&s.has(y))),...Array.from(s)]}}if(n==="top"){var d,g;return{top:[...((d=l==null?void 0:l.top)!=null?d:[]).filter(y=>!(s!=null&&s.has(y))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(y=>!(s!=null&&s.has(y)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(y=>!(s!=null&&s.has(y))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(y=>!(s!=null&&s.has(y)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>i==null?void 0:i.includes(s));return o?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const o=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(a=>{let{id:s}=a;return s});return(r=o==null?void 0:o.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Q_():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Q_())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,o;return!!((i=r.top)!=null&&i.length||(o=r.bottom)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(a=>{const s=e.getRow(a,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(a=>t.find(s=>s.id===a))).filter(Boolean).map(a=>({...a,position:r}))},e.getTopRows=nt(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),rt(e.options,"debugRows")),e.getBottomRows=nt(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),rt(e.options,"debugRows")),e.getCenterRows=nt(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(o=>!i.has(o.id))},rt(e.options,"debugRows"))}},pK={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ti("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 n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(o=>{o.getCanSelect()&&(r[o.id]=!0)}):i.forEach(o=>{delete r[o.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(o=>{pb(i,o.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=nt(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?J_(e,n):{rows:[],flatRows:[],rowsById:{}},rt(e.options,"debugTable")),e.getFilteredSelectedRowModel=nt(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?J_(e,n):{rows:[],flatRows:[],rowsById:{}},rt(e.options,"debugTable")),e.getGroupedSelectedRowModel=nt(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?J_(e,n):{rows:[],flatRows:[],rowsById:{}},rt(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var a;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return o;const s={...o};return pb(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Tx(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return vb(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return vb(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},pb=(e,t,n,r,i)=>{var o;const a=i.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(o=a.subRows)!=null&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach(s=>pb(e,s.id,n,r,i))};function J_(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(a,s){return a.map(l=>{var u;const c=Tx(l,n);if(c&&(r.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:o(l.subRows)}),c)return l}).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function Tx(e,t){var n;return(n=t[e.id])!=null?n:!1}function vb(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,o=!1;return e.subRows.forEach(a=>{if(!(o&&!i)&&(a.getCanSelect()&&(Tx(a,t)?o=!0:i=!1),a.subRows&&a.subRows.length)){const s=vb(a,t);s==="all"?o=!0:(s==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const gb=/([0-9]+)/gm,vK=(e,t,n)=>Ek(js(e.getValue(n)).toLowerCase(),js(t.getValue(n)).toLowerCase()),gK=(e,t,n)=>Ek(js(e.getValue(n)),js(t.getValue(n))),mK=(e,t,n)=>Ex(js(e.getValue(n)).toLowerCase(),js(t.getValue(n)).toLowerCase()),yK=(e,t,n)=>Ex(js(e.getValue(n)),js(t.getValue(n))),_K=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:rEx(e.getValue(n),t.getValue(n));function Ex(e,t){return e===t?0:e>t?1:-1}function js(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Ek(e,t){const n=e.split(gb).filter(Boolean),r=t.split(gb).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),o=r.shift(),a=parseInt(i,10),s=parseInt(o,10),l=[a,s].sort();if(isNaN(l[0])){if(i>o)return 1;if(o>i)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return n.length-r.length}const Bf={alphanumeric:vK,alphanumericCaseSensitive:gK,text:mK,textCaseSensitive:yK,datetime:_K,basic:wK},bK={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ti("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const o=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return Bf.datetime;if(typeof o=="string"&&(r=!0,o.split(gb).length>1))return Bf.alphanumeric}return r?Bf.text:Bf.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return uu(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Bf[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),o=typeof n<"u"&&n!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(d=>d.id===e.id),l=a==null?void 0:a.findIndex(d=>d.id===e.id);let u=[],c,f=o?n:i==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&r?s?c="toggle":c="add":a!=null&&a.length&&l!==a.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(o||i||(c="remove")),c==="add"){var p;u=[...a,{id:e.id,desc:f}],u.splice(0,u.length-((p=t.options.maxMultiSortColCount)!=null?p:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(d=>d.id===e.id?{...d,desc:f}:d):c==="remove"?u=a.filter(d=>d.id!==e.id):u=[{id:e.id,desc:f}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const o=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==o&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:a==="desc"?"asc":"desc":o},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},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())}},SK=[GX,lK,iK,oK,WX,YX,uK,cK,bK,nK,fK,hK,dK,pK,aK];function xK(e){var t,n;const r=[...SK,...(t=e._features)!=null?t:[]];let i={_features:r};const o=i._features.reduce((p,d)=>Object.assign(p,d.getDefaultOptions==null?void 0:d.getDefaultOptions(i)),{}),a=p=>i.options.mergeOptions?i.options.mergeOptions(o,p):{...o,...p};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(p=>{var d;l=(d=p.getInitialState==null?void 0:p.getInitialState(l))!=null?d:l});const u=[];let c=!1;const f={_features:r,options:{...o,...e},initialState:l,_queue:p=>{u.push(p),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{i.setState(i.initialState)},setOptions:p=>{const d=ks(p,i.options);i.options=a(d)},getState:()=>i.options.state,setState:p=>{i.options.onStateChange==null||i.options.onStateChange(p)},_getRowId:(p,d,g)=>{var y;return(y=i.options.getRowId==null?void 0:i.options.getRowId(p,d,g))!=null?y:`${g?[g.id,d].join("."):d}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(p,d)=>{let g=(d?i.getPrePaginationRowModel():i.getRowModel()).rowsById[p];if(!g&&(g=i.getCoreRowModel().rowsById[p],!g))throw new Error;return g},_getDefaultColumnDef:nt(()=>[i.options.defaultColumn],p=>{var d;return p=(d=p)!=null?d:{},{header:g=>{const y=g.header.column.columnDef;return y.accessorKey?y.accessorKey:y.accessorFn?y.id:null},cell:g=>{var y,_;return(y=(_=g.renderValue())==null||_.toString==null?void 0:_.toString())!=null?y:null},...i._features.reduce((g,y)=>Object.assign(g,y.getDefaultColumnDef==null?void 0:y.getDefaultColumnDef()),{}),...p}},rt(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:nt(()=>[i._getColumnDefs()],p=>{const d=function(g,y,_){return _===void 0&&(_=0),g.map(m=>{const b=zX(i,m,_,y),S=m;return b.columns=S.columns?d(S.columns,b,_+1):[],b})};return d(p)},rt(e,"debugColumns")),getAllFlatColumns:nt(()=>[i.getAllColumns()],p=>p.flatMap(d=>d.getFlatColumns()),rt(e,"debugColumns")),_getAllFlatColumnsById:nt(()=>[i.getAllFlatColumns()],p=>p.reduce((d,g)=>(d[g.id]=g,d),{}),rt(e,"debugColumns")),getAllLeafColumns:nt(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(p,d)=>{let g=p.flatMap(y=>y.getLeafColumns());return d(g)},rt(e,"debugColumns")),getColumn:p=>i._getAllFlatColumnsById()[p]};Object.assign(i,f);for(let p=0;pnt(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,o,a){o===void 0&&(o=0);const s=[];for(let u=0;ue._autoResetPageIndex()))}function TK(){return e=>nt(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:EK(n),rt(e.options,"debugTable"))}function EK(e){const t=[],n=r=>{var i;t.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function AK(){return e=>nt(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach(l=>{l.depth=0,l.parentId=void 0}),n;const r=t.filter(l=>e.getColumn(l)),i=[],o={},a=function(l,u,c){if(u===void 0&&(u=0),u>=r.length)return l.map(g=>(g.depth=u,i.push(g),o[g.id]=g,g.subRows&&(g.subRows=a(g.subRows,u+1,g.id)),g));const f=r[u],p=MK(l,f);return Array.from(p.entries()).map((g,y)=>{let[_,m]=g,b=`${f}:${_}`;b=c?`${c}>${b}`:b;const S=a(m,u+1,b);S.forEach(T=>{T.parentId=b});const x=u?gk(m,T=>T.subRows):m,E=mk(e,b,x[0].original,y,u,void 0,c);return Object.assign(E,{groupingColumnId:f,groupingValue:_,subRows:S,leafRows:x,getValue:T=>{if(r.includes(T)){if(E._valuesCache.hasOwnProperty(T))return E._valuesCache[T];if(m[0]){var A;E._valuesCache[T]=(A=m[0].getValue(T))!=null?A:void 0}return E._valuesCache[T]}if(E._groupingValuesCache.hasOwnProperty(T))return E._groupingValuesCache[T];const D=e.getColumn(T),P=D==null?void 0:D.getAggregationFn();if(P)return E._groupingValuesCache[T]=P(T,x,m),E._groupingValuesCache[T]}}),S.forEach(T=>{i.push(T),o[T.id]=T}),E})},s=a(n.rows,0);return s.forEach(l=>{i.push(l),o[l.id]=l}),{rows:s,flatRows:i,rowsById:o}},rt(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function MK(e,t){const n=new Map;return e.reduce((r,i)=>{const o=`${i.getGroupingValue(t)}`,a=r.get(o);return a?a.push(i):r.set(o,[i]),r},n)}function RK(){return e=>nt(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,i=[],o=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),a={};o.forEach(l=>{const u=e.getColumn(l.id);u&&(a[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(n.rows),flatRows:i,rowsById:n.rowsById}},rt(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/** * vue-table * * Copyright (c) TanStack @@ -96,9 +96,9 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function vv(){return!0}const DK=Symbol("merge-proxy"),IK={get(e,t,n){return t===DK?n:e.get(t)},has(e,t){return e.has(t)},set:vv,deleteProperty:vv,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:vv,deleteProperty:vv}},ownKeys(e){return e.keys()}};function e1(e){return"value"in e?e.value:e}function gh(){for(var e=arguments.length,t=new Array(e),n=0;n=0;i--){const o=e1(t[i])[r];if(o!==void 0)return o}},has(r){for(let i=t.length-1;i>=0;i--)if(r in e1(t[i]))return!0;return!1},keys(){const r=[];for(let i=0;i()=>typeof e.render=="function"||typeof e.render=="object"?zo(e.render,e.props):e.render});function mM(e){return gh(e,{data:$(e.data)})}function PK(e){const t=Ze(e.data),n=gh({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(o,a){return t?{...o,...a}:gh(o,a)}},t?mM(e):e),r=xK(n);if(t){const o=Ud(e.data);kt(o,()=>{r.setState(a=>({...a,data:o.value}))},{immediate:!0})}const i=Ie(r.initialState);return jS(()=>{r.setOptions(o=>{var a;const s=new Proxy({},{get:(l,u)=>i.value[u]});return gh(o,t?mM(e):e,{state:gh(s,(a=e.state)!=null?a:{}),onStateChange:l=>{l instanceof Function?i.value=l(i.value):i.value=l,e.onStateChange==null||e.onStateChange(l)}})})}),r}const LK={class:"table table-zebra table-xs rounded-none shadow-md"},OK=["colSpan","onClick"],kK={class:"flex items-center gap-1"},NK=["onClick"],FK=["onClick"],$K=lt({__name:"ConnectionTable",setup(e){const{handlerInfo:t}=yx(),{t:n}=Ga(),r=[{header:()=>n("details"),enableSorting:!1,id:$t.Details,cell:({row:g})=>zo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const y=g.original;t(y)}},[zo(eO,{class:"h-4 w-4"})])},{header:()=>n("close"),enableSorting:!1,id:$t.Close,cell:({row:g})=>zo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const y=g.original;E0(y.id)}},[zo(p0,{class:"h-4 w-4"})])},{header:()=>n("type"),id:$t.Type,accessorFn:g=>`${g.metadata.type} | ${g.metadata.network}`},{header:()=>n("process"),id:$t.Process,accessorFn:g=>uk(g)},{header:()=>n("host"),id:$t.Host,accessorFn:g=>`${g.metadata.host?g.metadata.host:g.metadata.destinationIP}:${g.metadata.destinationPort}`},{header:()=>n("rule"),id:$t.Rule,accessorFn:g=>g.rulePayload?`${g.rule} -> ${g.rulePayload}`:g.rule},{header:()=>n("chains"),id:$t.Chains,accessorFn:g=>g.chains.slice().reverse().join(" -> ")},{header:()=>n("connectTime"),enableGrouping:!1,id:$t.ConnectTime,accessorFn:g=>R0(g.start),sortingFn:(g,y)=>Zo(y.original.start).valueOf()-Zo(g.original.start).valueOf()},{header:()=>n("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:$t.DlSpeed,accessorFn:g=>`${mn(g.downloadSpeed)}/s`,sortingFn:(g,y)=>g.original.downloadSpeed-y.original.downloadSpeed},{header:()=>n("ulSpeed"),enableGrouping:!1,id:$t.UlSpeed,accessorFn:g=>`${mn(g.uploadSpeed)}/s`,sortingFn:(g,y)=>g.original.uploadSpeed-y.original.uploadSpeed},{header:()=>n("dl"),enableGrouping:!1,id:$t.Download,accessorFn:g=>mn(g.download),sortingFn:(g,y)=>g.original.download-y.original.download},{header:()=>n("ul"),enableGrouping:!1,id:$t.Upload,accessorFn:g=>mn(g.upload),sortingFn:(g,y)=>g.original.upload-y.original.upload},{header:()=>n("sourceIP"),id:$t.SourceIP,accessorFn:g=>pm(g.metadata.sourceIP)},{header:()=>n("sourcePort"),id:$t.SourcePort,accessorFn:g=>g.metadata.sourcePort},{header:()=>n("destination"),id:$t.Destination,accessorFn:g=>g.metadata.destinationIP||g.metadata.host}],i=Ie([]),o=Ie({}),a=Qt("config/table-sorting",[]),s=PK({get data(){return Ac.value},columns:r,state:{get columnOrder(){return jl.value},get columnVisibility(){return{...Object.fromEntries(Object.values($t).map(g=>[g,!1])),...Object.fromEntries(jl.value.map(g=>[g,!0]))}},get grouping(){return i.value},get expanded(){return o.value},get sorting(){return a.value}},onGroupingChange:g=>{uu(g)?i.value=g(i.value):i.value=g},onExpandedChange:g=>{uu(g)&&(o.value=g(o.value))},onSortingChange:g=>{uu(g)?a.value=g(a.value):a.value=g},getSortedRowModel:RK(),getGroupedRowModel:AK(),getExpandedRowModel:TK(),getCoreRowModel:CK()}),l=Le(()=>s.getRowModel().rows),u=Ie(null),c=Le(()=>({count:l.value.length,getScrollElement:()=>u.value,estimateSize:()=>36,overscan:48})),f=ik(c),p=Le(()=>f.value.getVirtualItems()),d=Le(()=>f.value.getTotalSize()+24);return(g,y)=>(X(),ae("div",{ref_key:"parentRef",ref:u,class:"h-full overflow-y-auto p-2"},[N("div",{style:vo({height:`${d.value}px`})},[N("table",LK,[N("thead",null,[(X(!0),ae(Ye,null,Gt($(s).getHeaderGroups(),_=>(X(),ae("tr",{key:_.id},[(X(!0),ae(Ye,null,Gt(_.headers,m=>(X(),ae("th",{key:m.id,colSpan:m.colSpan,class:ot(m.column.getCanSort()?"cursor-pointer select-none":""),onClick:b=>{var S;return(S=m.column.getToggleSortingHandler())==null?void 0:S(b)}},[N("div",kK,[m.column.getCanGroup()?(X(),ae("button",{key:0,class:"cursor-pointer",onClick:KS(()=>m.column.getToggleGroupingHandler()(),["stop"])},[m.column.getIsGrouped()?(X(),_t($(s2),{key:0,class:"h-4 w-4"})):(X(),_t($(l2),{key:1,class:"h-4 w-4"}))],8,NK)):mt("",!0),m.isPlaceholder?mt("",!0):(X(),_t($(t1),{key:1,render:m.column.columnDef.header,props:m.getContext()},null,8,["render","props"])),m.column.getIsSorted()==="asc"?(X(),_t($(ZL),{key:2,class:"h-4 w-4"})):mt("",!0),m.column.getIsSorted()==="desc"?(X(),_t($(XL),{key:3,class:"h-4 w-4"})):mt("",!0)])],10,OK))),128))]))),128))]),N("tbody",null,[(X(!0),ae(Ye,null,Gt(p.value,(_,m)=>(X(),ae("tr",{key:_.key.toString(),style:vo({height:`${_.size}px`,transform:`translateY(${_.start-m*_.size}px)`}),class:"hover:!bg-primary hover:text-primary-content"},[(X(!0),ae(Ye,null,Gt(l.value[_.index].getVisibleCells(),b=>(X(),ae("td",{key:b.id,class:ot($(hn)("whitespace-nowrap text-sm",[$($t).Download,$($t).DlSpeed,$($t).Upload,$($t).UlSpeed].includes(b.column.id)&&"min-w-20",[$($t).Host].includes(b.column.id)&&"max-w-[32rem] truncate"))},[b.column.getIsGrouped()?(X(),ae(Ye,{key:0},[l.value[_.index].getCanExpand()?(X(),ae(Ye,{key:0},[N("button",{onClick:()=>l.value[_.index].getToggleExpandedHandler()(),class:"relative top-1 cursor-pointer"},[l.value[_.index].getIsExpanded()?(X(),_t($(s2),{key:0,class:"h-4 w-4"})):(X(),_t($(l2),{key:1,class:"h-4 w-4"}))],8,FK),Se($(t1),{render:b.column.columnDef.cell,props:b.getContext()},null,8,["render","props"]),N("span",null," ("+de(l.value[_.index].subRows.length)+") ",1)],64)):mt("",!0)],64)):(X(),_t($(t1),{key:1,render:b.getIsAggregated()?b.column.columnDef.aggregatedCell:b.column.columnDef.cell,props:b.getContext()},null,8,["render","props"]))],2))),128))],4))),128))])])],4)],512))}});var vm={d:(e,t)=>{for(var n in t)vm.o(t,n)&&!vm.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},Ak={};function mb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nzK});const Ke=(yM={computed:()=>Le,createTextVNode:()=>ut,createVNode:()=>Se,defineComponent:()=>lt,reactive:()=>xo,ref:()=>Ie,watch:()=>kt,watchEffect:()=>jS},n1={},vm.d(n1,yM),n1),BK=(0,Ke.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,Ke.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),VK=(0,Ke.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,Ke.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,Ke.computed)({get:function(){return e.checked},set:function(r){return n("update:modelValue",r)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,Ke.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,Ke.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,Ke.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),HK=(0,Ke.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n=e==="objectStart"||e==="arrayStart";return n||e==="objectCollapsed"||e==="arrayCollapsed"?(0,Ke.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,Ke.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Ke.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 yM,n1;function yb(e){return yb=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},yb(e)}function Rk(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Gl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,i=r||{},o=i.key,a=i.index,s=i.type,l=s===void 0?"content":s,u=i.showComma,c=u!==void 0&&u,f=i.length,p=f===void 0?1:f,d=Rk(e);if(d==="array"){var g=_M(e.map(function(m,b,S){return Gl(m,"".concat(t,"[").concat(b,"]"),n+1,{index:b,showComma:b!==S.length-1,length:p,type:l})}));return[Gl("[",t,n,{showComma:!1,key:o,length:e.length,type:"arrayStart"})[0]].concat(g,Gl("]",t,n,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(d==="object"){var y=Object.keys(e),_=_M(y.map(function(m,b,S){return Gl(e[m],/^[a-zA-Z_]\w*$/.test(m)?"".concat(t,".").concat(m):"".concat(t,'["').concat(m,'"]'),n+1,{key:m,showComma:b!==S.length-1,length:p,type:l})}));return[Gl("{",t,n,{showComma:!1,key:o,index:a,length:y.length,type:"objectStart"})[0]].concat(_,Gl("}",t,n,{showComma:c,length:y.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:o,index:a,path:t,showComma:c,length:p,type:l}]}function _M(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=gm(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,gm(r)):n.push(r)}return n}function _b(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(yb(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(o){return _b(o,t)});return t.set(e,n),n}var r={};for(var i in e)r[i]=_b(e[i],t);return t.set(e,r),r}function wM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bM(e){for(var t=1;t=S||T.length>=x,P=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,T);return T.type!=="objectStart"&&T.type!=="arrayStart"||!D&&!P?E:hi(hi({},E),{},mm({},T.path,1))},{})},s=(0,Ke.reactive)({translateY:0,visibleData:null,hiddenPaths:a(e.deep,e.collapsedNodeLength)}),l=(0,Ke.computed)(function(){for(var S=null,x=[],E=o.value.length,T=0;TS.length?S.length-E:A;D<0&&(D=0);var P=D+E;s.translateY=D*e.itemHeight,s.visibleData=S.filter(function(O,k){return k>=D&&k(X(),ae("div",WK,[$(Ql)?(X(),_t(VX,{key:0})):(X(),_t($K,{key:1})),N("dialog",{ref_key:"modalRef",ref:n,class:"modal"},[N("div",YK,[Se($(GK),{data:$(t)},null,8,["data"])]),i[0]||(i[0]=N("form",{method:"dialog",class:"modal-backdrop"},[N("button",null,"close")],-1))],512)]))}}),qK={class:"relative w-full flex-1"},Mx=lt({__name:"TextInput",props:{label:{type:String,required:!1},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=Ie(e.modelValue),i=t;kt(r,a=>{i("update:modelValue",a)});const o=()=>{r.value=""};return(a,s)=>(X(),ae("div",qK,[At(N("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>r.value=l),type:"text",class:"input input-sm join-item input-bordered w-full"},null,512),[[Kr,r.value]]),Se($(p0),{class:"absolute right-2 top-1/2 h-3 w-3 -translate-y-1/2 cursor-pointer",onClick:o})]))}}),XK=["value","label"],KK=["value","label"],xM=lt({__name:"SourceIPFilter",props:{horizontal:{type:Boolean}},setup(e){const t=Le(()=>kq.value.map(n=>({label:pm(n),value:n})));return(n,r)=>n.horizontal?mt("",!0):At((X(),ae("select",{key:0,class:"join-item select select-bordered select-sm","onUpdate:modelValue":r[0]||(r[0]=i=>Ze(Ca)?Ca.value=i:null)},[r[1]||(r[1]=N("option",{value:"",label:"all"},null,-1)),t.value.every(i=>i.value!==$(Ca))&&$(Ca)!==""?(X(),ae("option",{key:0,value:$(Ca),label:$(pm)($(Ca))},null,8,XK)):mt("",!0),(X(!0),ae(Ye,null,Gt(t.value,i=>(X(),ae("option",{key:i.value,value:i.value,label:i.label},null,8,KK))),128))],512)),[[wo,$(Ca)]])}}),ZK={class:"tabs-boxed tabs tabs-sm"},QK={class:"shrink-0"},JK=["value"],eZ={class:"shrink-0"},tZ=["data-tip"],nZ={class:"join w-full flex-1"},rZ=lt({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{Ac.value.forEach(n=>{E0(n.id)})};return(n,r)=>(X(),ae("div",{class:ot($(hn)("flex flex-col gap-2 p-2 text-sm",n.horizontal&&"flex-row flex-wrap pb-0"))},[N("div",ZK,[N("a",{role:"tab",class:ot($(hn)("tab",$(zl)===$(Aa).ACTIVE&&"tab-active")),onClick:r[0]||(r[0]=()=>zl.value=$(Aa).ACTIVE)},[ut(de(n.$t("activeConnections"))+" ",1),$(zl)===$(Aa).ACTIVE?(X(),ae(Ye,{key:0},[ut(" ("+de($(Ac).length)+") ",1)],64)):mt("",!0)],2),N("a",{role:"tab",class:ot($(hn)("tab",$(zl)===$(Aa).CLOSED&&"tab-active")),onClick:r[1]||(r[1]=()=>zl.value=$(Aa).CLOSED)},[ut(de(n.$t("closedConnections"))+" ",1),$(zl)===$(Aa).CLOSED?(X(),ae(Ye,{key:0},[ut(" ("+de($(Ac).length)+") ",1)],64)):mt("",!0)],2)]),$(Ql)?(X(),ae("div",{key:0,class:ot($(hn)("flex w-full items-center gap-2",n.horizontal&&"sm:w-auto"))},[N("span",QK,de(n.$t("sortBy"))+":",1),At(N("select",{class:"select select-bordered select-sm w-full","onUpdate:modelValue":r[2]||(r[2]=i=>Ze(Mg)?Mg.value=i:null)},[(X(!0),ae(Ye,null,Gt(Object.values($(jr)),i=>(X(),ae("option",{key:i,value:i},de(n.$t(i)||i),9,JK))),128))],512),[[wo,$(Mg)]])],2)):mt("",!0),N("div",{class:ot($(hn)("flex w-full items-center gap-2",n.horizontal&&"sm:w-auto"))},[N("span",eZ,de(n.$t("quickFilter"))+": ",1),At(N("input",{type:"text",class:"input input-sm join-item input-bordered w-full","onUpdate:modelValue":r[3]||(r[3]=i=>Ze(Hh)?Hh.value=i:null)},null,512),[[Kr,$(Hh)]]),At(N("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":r[4]||(r[4]=i=>Ze(Ag)?Ag.value=i:null)},null,512),[[mi,$(Ag)]]),N("div",{class:ot(`tooltip ${n.horizontal?"tooltip-left sm:tooltip-bottom":"tooltip-left"}`),"data-tip":n.$t("quickFilterTip")},[Se($(oO),{class:"h-4 w-4"})],10,tZ)],2),n.horizontal?mt("",!0):(X(),_t(xM,{key:1})),N("div",nZ,[n.horizontal?(X(),_t(xM,{key:0})):mt("",!0),Se(Mx,{modelValue:$(Uh),"onUpdate:modelValue":r[5]||(r[5]=i=>Ze(Uh)?Uh.value=i:null),class:"join-item"},null,8,["modelValue"]),N("button",{class:"btn-bordered btn join-item btn-sm",onClick:r[6]||(r[6]=i=>Rg.value=!$(Rg))},[(X(),_t(Ua($(Rg)?$(rO):$(nO)),{class:"h-4 w-4"}))]),N("button",{class:"btn-bordered btn join-item btn-sm",onClick:t},[Se($(p0),{class:"h-4 w-4"})])])],2))}}),Rx=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Ik=Rx(rZ,[["__scopeId","data-v-46c5b7bb"]]),ym=Ie([]),Dc=Ie(""),Ig=Ie(!1),Pg=Qt("config/log-level",Zl.Info);let gv,_m=[];const iZ=ea.throttle(()=>{ym.value=_m.concat(ym.value).slice(0,wg.value),_m=[]},500),wb=[],oZ=()=>{wb.length=0;for(const e in yi.value){if(e.startsWith("/"))continue;const t=new RegExp(e+":","ig");wb.push([t,`${e} (${yi.value[e]}) :`])}};kt(yi,()=>{oZ()},{immediate:!0});const bb=()=>{gv==null||gv(),ym.value=[],_m=[];let e=1;const t=Rq({level:Pg.value}),n=kt(t.data,r=>{if(r){if(Ig.value){e++;return}for(const[i,o]of wb)r.payload=r.payload.replace(i,o);_m.unshift({...r,time:new Date().valueOf(),seq:e++}),iZ()}});gv=()=>{n(),t.close()}},aZ=["value"],Pk=lt({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,n)=>(X(),ae("div",{class:ot($(hn)("join w-full p-2",t.horizontal&&"max-w-96 pb-0"))},[At(N("select",{class:"join-item select select-bordered select-sm","onUpdate:modelValue":n[0]||(n[0]=r=>Ze(Pg)?Pg.value=r:null),onChange:n[1]||(n[1]=(...r)=>$(bb)&&$(bb)(...r))},[(X(!0),ae(Ye,null,Gt(Object.values($(Zl)),r=>(X(),ae("option",{key:r,value:r},de(r),9,aZ))),128))],544),[[wo,$(Pg)]]),Se(Mx,{type:"text",modelValue:$(Dc),"onUpdate:modelValue":n[2]||(n[2]=r=>Ze(Dc)?Dc.value=r:null)},null,8,["modelValue"]),N("button",{class:"btn-bordered btn join-item btn-sm",onClick:n[3]||(n[3]=r=>Ig.value=!$(Ig))},[(X(),_t(Ua($(Ig)?$(rO):$(nO)),{class:"h-4 w-4"}))])],2))}}),Go=Ie(),Lk=async()=>{Go.value=(await Sq()).data},Ok=async e=>{await xq(e),Lk()},kk=Ie(pu.PROXIES),Nk=Le(()=>{var e;return kk.value===pu.PROVIDER?Mc.value.map(t=>t.name):Ia.value&&vg.value&&Wa.value[ql]?[...cb.value,ql]:!Ia.value&&((e=Go.value)==null?void 0:e.mode.toLocaleUpperCase())===ql&&Wa.value[ql]?[ql]:cb.value}),sZ=Le(()=>kh.value&&Nk.value.length>1),D0=()=>({proxiesTabShow:kk,renderGroups:Nk,hasTwoColumns:sZ}),lZ={key:0,role:"tablist",class:"tabs-boxed tabs tabs-sm"},uZ=["onClick"],cZ={key:1,class:"flex flex-col gap-2"},fZ=["value"],hZ=["label","value"],dZ=["label","value"],pZ={class:"shrink-0"},Fk=lt({__name:"ProxiesCtrl",props:{horizontal:{type:Boolean}},setup(e){const{proxiesTabShow:t}=D0(),n=Ie(!1),r=async()=>{if(!n.value){n.value=!0;try{await Promise.all(Mc.value.map(a=>ek(a.name))),await jc(),n.value=!1}catch{await jc(),n.value=!1}}},i=Le(()=>{var a,s;return((a=Go.value)==null?void 0:a["mode-list"])||((s=Go.value)==null?void 0:s.modes)||["direct","rule","global"]}),o=a=>{const s=a.target.value;Ok({mode:s})};return(a,s)=>$(Go)?(X(),ae("div",{key:0,class:ot($(hn)("flex flex-col gap-1 p-2 text-sm sm:gap-2",a.horizontal&&"flex-row flex-wrap pb-0"))},[$(Mc).length?(X(),ae(Ye,{key:0},[$(Mc).length?(X(),ae("div",lZ,[(X(!0),ae(Ye,null,Gt($(pu),l=>(X(),ae("a",{role:"tab",class:ot(["tab",{"tab-active":$(t)===l}]),key:l,onClick:u=>t.value=l},de(a.$t(l)),11,uZ))),128))])):mt("",!0),$(t)===$(pu).PROVIDER?(X(),ae("div",cZ,[N("button",{class:ot($(hn)("btn btn-sm",n.value?"animate-pulse":"")),onClick:r},de(a.$t("updateAllProviders")),3)])):mt("",!0)],64)):mt("",!0),s[2]||(s[2]=N("div",{class:"w-full sm:hidden"},null,-1)),N("div",{class:ot($(hn)("flex w-full items-center gap-2",a.horizontal&&"w-24"))},[N("select",{class:"select select-bordered select-sm w-1/2 flex-1",value:$(Go).mode,onChange:o},[(X(!0),ae(Ye,null,Gt(i.value,l=>(X(),ae("option",{key:l,label:a.$t(l.toLowerCase())||l,value:l},null,8,hZ))),128))],40,fZ)],2),N("div",{class:ot($(hn)("flex w-full items-center gap-2",a.horizontal&&"w-72 max-sm:flex-1"))},[At(N("select",{class:"select select-bordered select-sm w-1/2 flex-1","onUpdate:modelValue":s[0]||(s[0]=l=>Ze(gg)?gg.value=l:null)},[(X(!0),ae(Ye,null,Gt(Object.values($(Is)),l=>(X(),ae("option",{key:l,label:a.$t(l),value:l},null,8,dZ))),128))],512),[[wo,$(gg)]]),N("span",pZ,de(a.$t("hideUnavailable"))+": ",1),At(N("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=l=>Ze(yg)?yg.value=l:null)},null,512),[[mi,$(yg)]])],2)],2)):mt("",!0)}}),Gh=Ie(zc.RULES),$k=Ie([]),wm=Ie([]),bm=async()=>{const{data:e}=await wq(),{data:t}=await bq();$k.value=e.rules,wm.value=Object.values(t.providers)},vZ={role:"tablist",class:"tabs-boxed tabs tabs-sm"},gZ=["onClick"],mZ={key:0,class:"flex flex-col gap-2"},Bk=lt({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Ie(!1),n=async()=>{if(!t.value){t.value=!0;try{await Promise.all(wm.value.map(r=>tk(r.name))),await bm(),t.value=!1}catch{await bm(),t.value=!1}}};return(r,i)=>$(wm).length?(X(),ae("div",{key:0,class:ot($(hn)("flex flex-col gap-2 p-2",r.horizontal&&"flex-row pb-0"))},[N("div",vZ,[(X(!0),ae(Ye,null,Gt($(zc),o=>(X(),ae("a",{role:"tab",class:ot(["tab",{"tab-active":$(Gh)===o}]),key:o,onClick:a=>Gh.value=o},de(r.$t(o)),11,gZ))),128))]),$(Gh)===$(zc).PROVIDER?(X(),ae("div",mZ,[N("button",{class:ot($(hn)("btn btn-sm",t.value?"animate-pulse":"")),onClick:n},de(r.$t("updateAllProviders")),3)])):mt("",!0)],2)):mt("",!0)}}),yZ="data:image/jpeg;base64,/9j/2wCEAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDIBCQkJDAsMGA0NGDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMv/AABEIADAAMAMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/APXaKKx/EfirRfCdmLjWL1YiwzFAnzTS/wC6vp7nA96ZJsgEkAAknsKCCCQQQR2NfPHiT4wax4jvI7DTFbStMkkCMsb/AL6VScfM46A+i4/Gl8N/GDWPDl5JYamrarpkchRFkf8AfRKDgbXPUD0bP1FIdj6ForH8O+KtE8V2ZudHvVlKjMkD/LNF/vL6e4yPetimIK8D+KniNrf4iajpupWcWpaWscGyCU7XhzChJikHKHPOOVJ6g175Xzl8W7E3PxP1aWSeK3t0jtg0kh7+QnCqOWP0H1wOaQ0YVt4ct9QuYrzw3dtepG6vJYyqFu4lByTtHEgHqmT6qKLnw5b6fcy3niS7aySR2eOxhAa7lUnIJU8RA+r8+imqui3trBr2mwafBjN3EGuZwDI3zj7o6IPpk/7WOKNavbafXdSg1CD7t3KFuYFAkX5z94cBx9cH/axxQM7T4a+I2uPGsGnabZxaZphtrktBEdzykQuQZZD8znPOOFB6AV78hzGpPoK+b/hdYm28f2ksc8Vxbva3QWSNu/kPwynlT9R9MjmvpCP/AFa/QUCY6ue8UeDNF8WwbdUtA0wXEdzFhJo/TDY5Hs2R9K6GimI+edQ+FGt+GvENhd2gOpacl3EWlhQiSJd45dOSB7jI9xUVr8L9X13X768vydM0+S7lKPKhaWYbz/q4+p+pwPevoojPqCOhBwR9DUUVtFE7SKpMjfed2LMfxPNIdzmfDXgjS/D1qYrC0FtvXbLO5D3Ew7hn6KD/AHVwK6wDAAHQUUUxH//Z",_Z="data:image/svg+xml,%3csvg%20width='1027'%20height='1109'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20overflow='hidden'%3e%3cdefs%3e%3cfilter%20id='fx0'%20x='-10%25'%20y='-10%25'%20width='120%25'%20height='120%25'%20filterUnits='userSpaceOnUse'%20primitiveUnits='userSpaceOnUse'%3e%3cfeComponentTransfer%20color-interpolation-filters='sRGB'%3e%3cfeFuncR%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncG%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncB%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncA%20type='linear'%20slope='0.4'%20intercept='0'%20/%3e%3c/feComponentTransfer%3e%3cfeGaussianBlur%20stdDeviation='4.58333%204.58333'%20/%3e%3c/filter%3e%3cclipPath%20id='clip1'%3e%3crect%20x='692'%20y='855'%20width='1027'%20height='1109'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2'%3e%3crect%20x='-2'%20y='-2'%20width='541'%20height='786'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3'%3e%3crect%20x='0'%20y='0'%20width='535'%20height='782'%20/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23clip1)'%20transform='translate(-692%20-855)'%3e%3cpath%20d='M692%201191%20692%201575.69C692%201640.41%20731.499%201651.19%20731.499%201651.19L1148.03%201931.62C1212.66%201974.77%201194.71%201881.29%201194.71%201881.29L1194.71%201528.96%20692%201191Z'%20fill='%2337474F'%20fill-rule='evenodd'%20/%3e%3cg%20clip-path='url(%23clip2)'%20filter='url(%23fx0)'%20transform='translate(1184%201182)'%3e%3cg%20clip-path='url(%23clip3)'%3e%3cpath%20d='M520.482%2015.4819%20520.482%20400.176C520.482%20464.89%20480.983%20475.676%20480.983%20475.676%20480.983%20475.676%20129.086%20712.963%2064.4523%20756.106-0.181814%20799.25%2017.7721%20705.773%2017.7721%20705.773L17.7721%20353.437%20520.482%2015.4819Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M1698%201191%201698%201575.69C1698%201640.41%201658.5%201651.19%201658.5%201651.19%201658.5%201651.19%201306.6%201888.48%201241.97%201931.62%201177.34%201974.77%201195.29%201881.29%201195.29%201881.29L1195.29%201528.96%201698%201191Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1241.71%20868.473C1212.96%20850.509%201169.85%20850.509%201144.7%20868.473L713.557%201163.07C684.814%201181.04%20684.814%201213.37%20713.557%201231.33L1144.7%201529.53C1173.44%201547.49%201216.56%201547.49%201241.71%201529.53L1676.44%201227.74C1705.19%201209.78%201705.19%201177.44%201676.44%201159.48L1241.71%20868.473Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1195%201949C1173.4%201949%201159%201935.19%201159%201917.92L1159%201531.08C1159%201513.82%201173.4%201500%201195%201500%201216.6%201500%201231%201513.82%201231%201531.08L1231%201914.46C1231%201935.19%201216.6%201949%201195%201949Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1553.92%201435.92C1553.92%201471.89%201557.5%201486.27%201518.03%201511.45L1428.32%201568.99C1388.85%201594.17%201374.5%201572.59%201374.5%201540.22L1374.5%201446.71C1374.5%201439.52%201374.5%201435.92%201363.73%201428.73%201270.43%201363.99%20911.591%201115.84%20847%201069.09L1012.07%20954C1058.72%20982.772%201399.61%201209.35%201539.56%201306.45%201546.74%201310.05%201550.33%201317.24%201550.33%201320.84L1550.33%201435.92Z'%20fill='%2399AAB5'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.41%201310.21C1399.82%201213.17%201058.79%20986.752%201015.72%20958L951.103%20997.534%20847%201069.41C911.615%201116.14%201270.59%201360.53%201363.92%201425.22%201371.1%201428.81%201371.1%201432.41%201371.1%201436L1547%201313.8C1547%201313.8%201547%201310.21%201543.41%201310.21Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1554.9%201435.48%201554.9%201324.19C1554.9%201317.01%201551.3%201313.42%201544.11%201309.83%201400.28%201212.89%201058.67%20986.721%201015.51%20958L940%201008.26C1062.26%201090.83%201389.49%201306.24%201475.79%201367.27%201486.58%201374.45%201486.58%201381.63%201486.58%201385.22L1486.58%201536%201522.54%201510.87C1558.5%201485.74%201554.9%201467.79%201554.9%201435.48Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.23%201309.95C1399.6%201212.98%201058.49%20986.731%201015.4%20958L940%201008.28C1062.08%201090.88%201388.83%201306.36%201475.01%201367.41%201475.01%201367.41%201478.6%201371%201478.6%201371L1554%201317.13C1546.82%201313.54%201546.82%201309.95%201543.23%201309.95Z'%20fill='%23E1E8ED'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/svg%3e",wZ={class:"join flex"},bZ=["value"],Vk=lt({__name:"BackendSwitch",setup(e){const t=Le(()=>Ys.value.map(r=>({label:`${r.protocol}://${r.host}:${r.port}`,value:r.uuid}))),n=()=>{xi.value=null,To.push({name:Bt.setup})};return(r,i)=>(X(),ae("div",wZ,[At(N("select",{class:"join-item select select-bordered select-xs w-48","onUpdate:modelValue":i[0]||(i[0]=o=>Ze(xi)?xi.value=o:null)},[(X(!0),ae(Ye,null,Gt(t.value,o=>(X(),ae("option",{key:o.value,value:o.value},de(o.label),9,bZ))),128))],512),[[wo,$(xi)]]),N("button",{class:"btn join-item btn-xs",onClick:n},[Se($(iO),{class:"h-4 w-4"})])]))}}),SZ={class:"grid grid-cols-2 gap-1"},Hk=lt({__name:"StatisticsInfo",setup(e){return(t,n)=>(X(),ae("div",SZ,[N("div",null,de(t.$t("connections"))+": "+de($(mo).length),1),N("div",null,de(t.$t("memoryUsage"))+": "+de($(mn)($(bx),{binary:!0})),1),N("div",null,de(t.$t("download"))+": "+de($(mn)($(hm))),1),N("div",null,de(t.$t("dlSpeed"))+": "+de($(mn)($(Sx)))+"/s",1),N("div",null,de(t.$t("upload"))+": "+de($(mn)($(dm))),1),N("div",null,de(t.$t("ulSpeed"))+": "+de($(mn)($(xx)))+"/s",1)]))}}),xZ={class:"flex flex-col gap-2 p-2 text-xs"},CZ={class:"flex gap-1"},TZ=["src"],EZ={class:"flex"},AZ=lt({__name:"CommonCtrl",setup(e){return(t,n)=>(X(),ae("div",xZ,[Se(Hk),N("div",CZ,[ut(de(t.$t("version"))+": ",1),N("img",{src:$(Ia)?$(_Z):$(yZ),class:"w-4"},null,8,TZ),ut(" "+de($(T0)),1)]),N("div",EZ,[N("button",{class:"btn btn-circle btn-ghost btn-xs",onClick:n[0]||(n[0]=r=>au.value=!0)},[Se($(O6),{class:"h-5 w-5"})]),n[1]||(n[1]=N("div",{class:"flex-1"},null,-1)),Se(Vk)])]))}});/*! ***************************************************************************** + */function gv(){return!0}const DK=Symbol("merge-proxy"),IK={get(e,t,n){return t===DK?n:e.get(t)},has(e,t){return e.has(t)},set:gv,deleteProperty:gv,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:gv,deleteProperty:gv}},ownKeys(e){return e.keys()}};function e1(e){return"value"in e?e.value:e}function gh(){for(var e=arguments.length,t=new Array(e),n=0;n=0;i--){const o=e1(t[i])[r];if(o!==void 0)return o}},has(r){for(let i=t.length-1;i>=0;i--)if(r in e1(t[i]))return!0;return!1},keys(){const r=[];for(let i=0;i()=>typeof e.render=="function"||typeof e.render=="object"?zo(e.render,e.props):e.render});function gM(e){return gh(e,{data:$(e.data)})}function PK(e){const t=Qe(e.data),n=gh({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(o,a){return t?{...o,...a}:gh(o,a)}},t?gM(e):e),r=xK(n);if(t){const o=zd(e.data);kt(o,()=>{r.setState(a=>({...a,data:o.value}))},{immediate:!0})}const i=Ie(r.initialState);return jS(()=>{r.setOptions(o=>{var a;const s=new Proxy({},{get:(l,u)=>i.value[u]});return gh(o,t?gM(e):e,{state:gh(s,(a=e.state)!=null?a:{}),onStateChange:l=>{l instanceof Function?i.value=l(i.value):i.value=l,e.onStateChange==null||e.onStateChange(l)}})})}),r}const LK={class:"table table-zebra table-xs rounded-none shadow-md"},OK=["colSpan","onClick"],kK={class:"flex items-center gap-1"},NK=["onClick"],FK=["onClick"],$K=lt({__name:"ConnectionTable",setup(e){const{handlerInfo:t}=mx(),{t:n}=Ga(),r=[{header:()=>n("details"),enableSorting:!1,id:$t.Details,cell:({row:g})=>zo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const y=g.original;t(y)}},[zo(JL,{class:"h-4 w-4"})])},{header:()=>n("close"),enableSorting:!1,id:$t.Close,cell:({row:g})=>zo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const y=g.original;E0(y.id)}},[zo(v0,{class:"h-4 w-4"})])},{header:()=>n("type"),id:$t.Type,accessorFn:g=>`${g.metadata.type} | ${g.metadata.network}`},{header:()=>n("process"),id:$t.Process,accessorFn:g=>uk(g)},{header:()=>n("host"),id:$t.Host,accessorFn:g=>`${g.metadata.host?g.metadata.host:g.metadata.destinationIP}:${g.metadata.destinationPort}`},{header:()=>n("rule"),id:$t.Rule,accessorFn:g=>g.rulePayload?`${g.rule} -> ${g.rulePayload}`:g.rule},{header:()=>n("chains"),id:$t.Chains,accessorFn:g=>g.chains.slice().reverse().join(" -> ")},{header:()=>n("connectTime"),enableGrouping:!1,id:$t.ConnectTime,accessorFn:g=>R0(g.start),sortingFn:(g,y)=>Zo(y.original.start).valueOf()-Zo(g.original.start).valueOf()},{header:()=>n("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:$t.DlSpeed,accessorFn:g=>`${mn(g.downloadSpeed)}/s`,sortingFn:(g,y)=>g.original.downloadSpeed-y.original.downloadSpeed},{header:()=>n("ulSpeed"),enableGrouping:!1,id:$t.UlSpeed,accessorFn:g=>`${mn(g.uploadSpeed)}/s`,sortingFn:(g,y)=>g.original.uploadSpeed-y.original.uploadSpeed},{header:()=>n("dl"),enableGrouping:!1,id:$t.Download,accessorFn:g=>mn(g.download),sortingFn:(g,y)=>g.original.download-y.original.download},{header:()=>n("ul"),enableGrouping:!1,id:$t.Upload,accessorFn:g=>mn(g.upload),sortingFn:(g,y)=>g.original.upload-y.original.upload},{header:()=>n("sourceIP"),id:$t.SourceIP,accessorFn:g=>vm(g.metadata.sourceIP)},{header:()=>n("sourcePort"),id:$t.SourcePort,accessorFn:g=>g.metadata.sourcePort},{header:()=>n("destination"),id:$t.Destination,accessorFn:g=>g.metadata.destinationIP||g.metadata.host}],i=Ie([]),o=Ie({}),a=Qt("config/table-sorting",[]),s=PK({get data(){return Ac.value},columns:r,state:{get columnOrder(){return jl.value},get columnVisibility(){return{...Object.fromEntries(Object.values($t).map(g=>[g,!1])),...Object.fromEntries(jl.value.map(g=>[g,!0]))}},get grouping(){return i.value},get expanded(){return o.value},get sorting(){return a.value}},onGroupingChange:g=>{uu(g)?i.value=g(i.value):i.value=g},onExpandedChange:g=>{uu(g)&&(o.value=g(o.value))},onSortingChange:g=>{uu(g)?a.value=g(a.value):a.value=g},getSortedRowModel:RK(),getGroupedRowModel:AK(),getExpandedRowModel:TK(),getCoreRowModel:CK()}),l=Le(()=>s.getRowModel().rows),u=Ie(null),c=Le(()=>({count:l.value.length,getScrollElement:()=>u.value,estimateSize:()=>36,overscan:48})),f=ik(c),p=Le(()=>f.value.getVirtualItems()),d=Le(()=>f.value.getTotalSize()+24);return(g,y)=>(X(),ae("div",{ref_key:"parentRef",ref:u,class:"h-full overflow-y-auto p-2"},[F("div",{style:vo({height:`${d.value}px`})},[F("table",LK,[F("thead",null,[(X(!0),ae(Ye,null,Gt($(s).getHeaderGroups(),_=>(X(),ae("tr",{key:_.id},[(X(!0),ae(Ye,null,Gt(_.headers,m=>(X(),ae("th",{key:m.id,colSpan:m.colSpan,class:ot(m.column.getCanSort()?"cursor-pointer select-none":""),onClick:b=>{var S;return(S=m.column.getToggleSortingHandler())==null?void 0:S(b)}},[F("div",kK,[m.column.getCanGroup()?(X(),ae("button",{key:0,class:"cursor-pointer",onClick:KS(()=>m.column.getToggleGroupingHandler()(),["stop"])},[m.column.getIsGrouped()?(X(),_t($(a2),{key:0,class:"h-4 w-4"})):(X(),_t($(s2),{key:1,class:"h-4 w-4"}))],8,NK)):mt("",!0),m.isPlaceholder?mt("",!0):(X(),_t($(t1),{key:1,render:m.column.columnDef.header,props:m.getContext()},null,8,["render","props"])),m.column.getIsSorted()==="asc"?(X(),_t($(KL),{key:2,class:"h-4 w-4"})):mt("",!0),m.column.getIsSorted()==="desc"?(X(),_t($(qL),{key:3,class:"h-4 w-4"})):mt("",!0)])],10,OK))),128))]))),128))]),F("tbody",null,[(X(!0),ae(Ye,null,Gt(p.value,(_,m)=>(X(),ae("tr",{key:_.key.toString(),style:vo({height:`${_.size}px`,transform:`translateY(${_.start-m*_.size}px)`}),class:"hover:!bg-primary hover:text-primary-content"},[(X(!0),ae(Ye,null,Gt(l.value[_.index].getVisibleCells(),b=>(X(),ae("td",{key:b.id,class:ot($(hn)("whitespace-nowrap text-sm",[$($t).Download,$($t).DlSpeed,$($t).Upload,$($t).UlSpeed].includes(b.column.id)&&"min-w-20",[$($t).Host].includes(b.column.id)&&"max-w-[32rem] truncate"))},[b.column.getIsGrouped()?(X(),ae(Ye,{key:0},[l.value[_.index].getCanExpand()?(X(),ae(Ye,{key:0},[F("button",{onClick:()=>l.value[_.index].getToggleExpandedHandler()(),class:"relative top-1 cursor-pointer"},[l.value[_.index].getIsExpanded()?(X(),_t($(a2),{key:0,class:"h-4 w-4"})):(X(),_t($(s2),{key:1,class:"h-4 w-4"}))],8,FK),Se($(t1),{render:b.column.columnDef.cell,props:b.getContext()},null,8,["render","props"]),F("span",null," ("+de(l.value[_.index].subRows.length)+") ",1)],64)):mt("",!0)],64)):(X(),_t($(t1),{key:1,render:b.getIsAggregated()?b.column.columnDef.aggregatedCell:b.column.columnDef.cell,props:b.getContext()},null,8,["render","props"]))],2))),128))],4))),128))])])],4)],512))}});var gm={d:(e,t)=>{for(var n in t)gm.o(t,n)&&!gm.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},Ak={};function mb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nzK});const Ke=(mM={computed:()=>Le,createTextVNode:()=>ut,createVNode:()=>Se,defineComponent:()=>lt,reactive:()=>xo,ref:()=>Ie,watch:()=>kt,watchEffect:()=>jS},n1={},gm.d(n1,mM),n1),BK=(0,Ke.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,Ke.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),VK=(0,Ke.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,Ke.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,Ke.computed)({get:function(){return e.checked},set:function(r){return n("update:modelValue",r)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,Ke.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,Ke.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,Ke.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),HK=(0,Ke.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n=e==="objectStart"||e==="arrayStart";return n||e==="objectCollapsed"||e==="arrayCollapsed"?(0,Ke.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,Ke.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Ke.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 mM,n1;function yb(e){return yb=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},yb(e)}function Rk(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Gl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,i=r||{},o=i.key,a=i.index,s=i.type,l=s===void 0?"content":s,u=i.showComma,c=u!==void 0&&u,f=i.length,p=f===void 0?1:f,d=Rk(e);if(d==="array"){var g=yM(e.map(function(m,b,S){return Gl(m,"".concat(t,"[").concat(b,"]"),n+1,{index:b,showComma:b!==S.length-1,length:p,type:l})}));return[Gl("[",t,n,{showComma:!1,key:o,length:e.length,type:"arrayStart"})[0]].concat(g,Gl("]",t,n,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(d==="object"){var y=Object.keys(e),_=yM(y.map(function(m,b,S){return Gl(e[m],/^[a-zA-Z_]\w*$/.test(m)?"".concat(t,".").concat(m):"".concat(t,'["').concat(m,'"]'),n+1,{key:m,showComma:b!==S.length-1,length:p,type:l})}));return[Gl("{",t,n,{showComma:!1,key:o,index:a,length:y.length,type:"objectStart"})[0]].concat(_,Gl("}",t,n,{showComma:c,length:y.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:o,index:a,path:t,showComma:c,length:p,type:l}]}function yM(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=mm(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,mm(r)):n.push(r)}return n}function _b(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(yb(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(o){return _b(o,t)});return t.set(e,n),n}var r={};for(var i in e)r[i]=_b(e[i],t);return t.set(e,r),r}function _M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wM(e){for(var t=1;t=S||T.length>=x,P=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,T);return T.type!=="objectStart"&&T.type!=="arrayStart"||!D&&!P?E:hi(hi({},E),{},ym({},T.path,1))},{})},s=(0,Ke.reactive)({translateY:0,visibleData:null,hiddenPaths:a(e.deep,e.collapsedNodeLength)}),l=(0,Ke.computed)(function(){for(var S=null,x=[],E=o.value.length,T=0;TS.length?S.length-E:A;D<0&&(D=0);var P=D+E;s.translateY=D*e.itemHeight,s.visibleData=S.filter(function(O,k){return k>=D&&k(X(),ae("div",WK,[$(Ql)?(X(),_t(VX,{key:0})):(X(),_t($K,{key:1})),F("dialog",{ref_key:"modalRef",ref:n,class:"modal"},[F("div",YK,[Se($(GK),{data:$(t)},null,8,["data"])]),i[0]||(i[0]=F("form",{method:"dialog",class:"modal-backdrop"},[F("button",null,"close")],-1))],512)]))}}),qK={class:"relative w-full flex-1"},Ax=lt({__name:"TextInput",props:{label:{type:String,required:!1},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=Ie(e.modelValue),i=t;kt(r,a=>{i("update:modelValue",a)});const o=()=>{r.value=""};return(a,s)=>(X(),ae("div",qK,[It(F("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>r.value=l),type:"text",class:"input input-sm join-item input-bordered w-full"},null,512),[[Kr,r.value]]),Se($(v0),{class:"absolute right-2 top-1/2 h-3 w-3 -translate-y-1/2 cursor-pointer",onClick:o})]))}}),XK=["value","label"],KK=["value","label"],SM=lt({__name:"SourceIPFilter",props:{horizontal:{type:Boolean}},setup(e){const t=Le(()=>kq.value.map(n=>({label:vm(n),value:n})));return(n,r)=>n.horizontal?mt("",!0):It((X(),ae("select",{key:0,class:"join-item select select-bordered select-sm","onUpdate:modelValue":r[0]||(r[0]=i=>Qe(Ca)?Ca.value=i:null)},[r[1]||(r[1]=F("option",{value:"",label:"all"},null,-1)),t.value.every(i=>i.value!==$(Ca))&&$(Ca)!==""?(X(),ae("option",{key:0,value:$(Ca),label:$(vm)($(Ca))},null,8,XK)):mt("",!0),(X(!0),ae(Ye,null,Gt(t.value,i=>(X(),ae("option",{key:i.value,value:i.value,label:i.label},null,8,KK))),128))],512)),[[wo,$(Ca)]])}}),ZK={class:"tabs-boxed tabs tabs-sm"},QK={class:"shrink-0"},JK=["value"],eZ={class:"shrink-0"},tZ=["data-tip"],nZ={class:"join w-full flex-1"},rZ=lt({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{Ac.value.forEach(n=>{E0(n.id)})};return(n,r)=>(X(),ae("div",{class:ot($(hn)("flex flex-col gap-2 p-2 text-sm",n.horizontal&&"flex-row flex-wrap pb-0"))},[F("div",ZK,[F("a",{role:"tab",class:ot($(hn)("tab",$(zl)===$(Aa).ACTIVE&&"tab-active")),onClick:r[0]||(r[0]=()=>zl.value=$(Aa).ACTIVE)},[ut(de(n.$t("activeConnections"))+" ",1),$(zl)===$(Aa).ACTIVE?(X(),ae(Ye,{key:0},[ut(" ("+de($(Ac).length)+") ",1)],64)):mt("",!0)],2),F("a",{role:"tab",class:ot($(hn)("tab",$(zl)===$(Aa).CLOSED&&"tab-active")),onClick:r[1]||(r[1]=()=>zl.value=$(Aa).CLOSED)},[ut(de(n.$t("closedConnections"))+" ",1),$(zl)===$(Aa).CLOSED?(X(),ae(Ye,{key:0},[ut(" ("+de($(Ac).length)+") ",1)],64)):mt("",!0)],2)]),$(Ql)?(X(),ae("div",{key:0,class:ot($(hn)("flex w-full items-center gap-2",n.horizontal&&"sm:w-auto"))},[F("span",QK,de(n.$t("sortBy"))+":",1),It(F("select",{class:"select select-bordered select-sm w-full","onUpdate:modelValue":r[2]||(r[2]=i=>Qe(Rg)?Rg.value=i:null)},[(X(!0),ae(Ye,null,Gt(Object.values($(jr)),i=>(X(),ae("option",{key:i,value:i},de(n.$t(i)||i),9,JK))),128))],512),[[wo,$(Rg)]])],2)):mt("",!0),F("div",{class:ot($(hn)("flex w-full items-center gap-2",n.horizontal&&"sm:w-auto"))},[F("span",eZ,de(n.$t("quickFilter"))+": ",1),It(F("input",{type:"text",class:"input input-sm join-item input-bordered w-full","onUpdate:modelValue":r[3]||(r[3]=i=>Qe(Hh)?Hh.value=i:null)},null,512),[[Kr,$(Hh)]]),It(F("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":r[4]||(r[4]=i=>Qe(Mg)?Mg.value=i:null)},null,512),[[uo,$(Mg)]]),F("div",{class:ot(`tooltip ${n.horizontal?"tooltip-left sm:tooltip-bottom":"tooltip-left"}`),"data-tip":n.$t("quickFilterTip")},[Se($(iO),{class:"h-4 w-4"})],10,tZ)],2),n.horizontal?mt("",!0):(X(),_t(SM,{key:1})),F("div",nZ,[n.horizontal?(X(),_t(SM,{key:0})):mt("",!0),Se(Ax,{modelValue:$(Uh),"onUpdate:modelValue":r[5]||(r[5]=i=>Qe(Uh)?Uh.value=i:null),class:"join-item"},null,8,["modelValue"]),F("button",{class:"btn-bordered btn join-item btn-sm",onClick:r[6]||(r[6]=i=>Dg.value=!$(Dg))},[(X(),_t(Ua($(Dg)?$(nO):$(tO)),{class:"h-4 w-4"}))]),F("button",{class:"btn-bordered btn join-item btn-sm",onClick:t},[Se($(v0),{class:"h-4 w-4"})])])],2))}}),Mx=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Ik=Mx(rZ,[["__scopeId","data-v-46c5b7bb"]]),_m=Ie([]),Dc=Ie(""),Pg=Ie(!1),Lg=Qt("config/log-level",Zl.Info);let mv,wm=[];const iZ=ea.throttle(()=>{_m.value=wm.concat(_m.value).slice(0,bg.value),wm=[]},500),wb=[],oZ=()=>{wb.length=0;for(const e in mi.value){if(e.startsWith("/"))continue;const t=new RegExp(e+":","ig");wb.push([t,`${e} (${mi.value[e]}) :`])}};kt(mi,()=>{oZ()},{immediate:!0});const bb=()=>{mv==null||mv(),_m.value=[],wm=[];let e=1;const t=Rq({level:Lg.value}),n=kt(t.data,r=>{if(r){if(Pg.value){e++;return}for(const[i,o]of wb)r.payload=r.payload.replace(i,o);wm.unshift({...r,time:new Date().valueOf(),seq:e++}),iZ()}});mv=()=>{n(),t.close()}},aZ=["value"],Pk=lt({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,n)=>(X(),ae("div",{class:ot($(hn)("join w-full p-2",t.horizontal&&"max-w-96 pb-0"))},[It(F("select",{class:"join-item select select-bordered select-sm","onUpdate:modelValue":n[0]||(n[0]=r=>Qe(Lg)?Lg.value=r:null),onChange:n[1]||(n[1]=(...r)=>$(bb)&&$(bb)(...r))},[(X(!0),ae(Ye,null,Gt(Object.values($(Zl)),r=>(X(),ae("option",{key:r,value:r},de(r),9,aZ))),128))],544),[[wo,$(Lg)]]),Se(Ax,{type:"text",modelValue:$(Dc),"onUpdate:modelValue":n[2]||(n[2]=r=>Qe(Dc)?Dc.value=r:null)},null,8,["modelValue"]),F("button",{class:"btn-bordered btn join-item btn-sm",onClick:n[3]||(n[3]=r=>Pg.value=!$(Pg))},[(X(),_t(Ua($(Pg)?$(nO):$(tO)),{class:"h-4 w-4"}))])],2))}}),Go=Ie(),Lk=async()=>{Go.value=(await Sq()).data},Ok=async e=>{await xq(e),Lk()},kk=Ie(pu.PROXIES),Nk=Le(()=>{var e;return kk.value===pu.PROVIDER?Mc.value.map(t=>t.name):Ia.value&&gg.value&&Wa.value[ql]?[...cb.value,ql]:!Ia.value&&((e=Go.value)==null?void 0:e.mode.toLocaleUpperCase())===ql&&Wa.value[ql]?[ql]:cb.value}),sZ=Le(()=>kh.value&&Nk.value.length>1),D0=()=>({proxiesTabShow:kk,renderGroups:Nk,hasTwoColumns:sZ}),lZ={key:0,role:"tablist",class:"tabs-boxed tabs tabs-sm"},uZ=["onClick"],cZ={key:1,class:"flex flex-col gap-2"},fZ=["value"],hZ=["label","value"],dZ=["label","value"],pZ={class:"shrink-0"},Fk=lt({__name:"ProxiesCtrl",props:{horizontal:{type:Boolean}},setup(e){const{proxiesTabShow:t}=D0(),n=Ie(!1),r=async()=>{if(!n.value){n.value=!0;try{await Promise.all(Mc.value.map(a=>ek(a.name))),await jc(),n.value=!1}catch{await jc(),n.value=!1}}},i=Le(()=>{var a,s;return((a=Go.value)==null?void 0:a["mode-list"])||((s=Go.value)==null?void 0:s.modes)||["direct","rule","global"]}),o=a=>{const s=a.target.value;Ok({mode:s})};return(a,s)=>$(Go)?(X(),ae("div",{key:0,class:ot($(hn)("flex flex-col gap-1 p-2 text-sm sm:gap-2",a.horizontal&&"flex-row flex-wrap pb-0"))},[$(Mc).length?(X(),ae(Ye,{key:0},[$(Mc).length?(X(),ae("div",lZ,[(X(!0),ae(Ye,null,Gt($(pu),l=>(X(),ae("a",{role:"tab",class:ot(["tab",{"tab-active":$(t)===l}]),key:l,onClick:u=>t.value=l},de(a.$t(l)),11,uZ))),128))])):mt("",!0),$(t)===$(pu).PROVIDER?(X(),ae("div",cZ,[F("button",{class:ot($(hn)("btn btn-sm",n.value?"animate-pulse":"")),onClick:r},de(a.$t("updateAllProviders")),3)])):mt("",!0)],64)):mt("",!0),s[2]||(s[2]=F("div",{class:"w-full sm:hidden"},null,-1)),F("div",{class:ot($(hn)("flex w-full items-center gap-2",a.horizontal&&"w-24"))},[F("select",{class:"select select-bordered select-sm w-1/2 flex-1",value:$(Go).mode,onChange:o},[(X(!0),ae(Ye,null,Gt(i.value,l=>(X(),ae("option",{key:l,label:a.$t(l.toLowerCase())||l,value:l},null,8,hZ))),128))],40,fZ)],2),F("div",{class:ot($(hn)("flex w-full items-center gap-2",a.horizontal&&"w-72 max-sm:flex-1"))},[It(F("select",{class:"select select-bordered select-sm w-1/2 flex-1","onUpdate:modelValue":s[0]||(s[0]=l=>Qe(mg)?mg.value=l:null)},[(X(!0),ae(Ye,null,Gt(Object.values($(Is)),l=>(X(),ae("option",{key:l,label:a.$t(l),value:l},null,8,dZ))),128))],512),[[wo,$(mg)]]),F("span",pZ,de(a.$t("hideUnavailable"))+": ",1),It(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=l=>Qe(_g)?_g.value=l:null)},null,512),[[uo,$(_g)]])],2)],2)):mt("",!0)}}),Gh=Ie(zc.RULES),$k=Ie([]),bm=Ie([]),Sm=async()=>{const{data:e}=await wq(),{data:t}=await bq();$k.value=e.rules,bm.value=Object.values(t.providers)},vZ={role:"tablist",class:"tabs-boxed tabs tabs-sm"},gZ=["onClick"],mZ={key:0,class:"flex flex-col gap-2"},Bk=lt({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Ie(!1),n=async()=>{if(!t.value){t.value=!0;try{await Promise.all(bm.value.map(r=>tk(r.name))),await Sm(),t.value=!1}catch{await Sm(),t.value=!1}}};return(r,i)=>$(bm).length?(X(),ae("div",{key:0,class:ot($(hn)("flex flex-col gap-2 p-2",r.horizontal&&"flex-row pb-0"))},[F("div",vZ,[(X(!0),ae(Ye,null,Gt($(zc),o=>(X(),ae("a",{role:"tab",class:ot(["tab",{"tab-active":$(Gh)===o}]),key:o,onClick:a=>Gh.value=o},de(r.$t(o)),11,gZ))),128))]),$(Gh)===$(zc).PROVIDER?(X(),ae("div",mZ,[F("button",{class:ot($(hn)("btn btn-sm",t.value?"animate-pulse":"")),onClick:n},de(r.$t("updateAllProviders")),3)])):mt("",!0)],2)):mt("",!0)}}),yZ="data:image/jpeg;base64,/9j/2wCEAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDIBCQkJDAsMGA0NGDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMv/AABEIADAAMAMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/APXaKKx/EfirRfCdmLjWL1YiwzFAnzTS/wC6vp7nA96ZJsgEkAAknsKCCCQQQR2NfPHiT4wax4jvI7DTFbStMkkCMsb/AL6VScfM46A+i4/Gl8N/GDWPDl5JYamrarpkchRFkf8AfRKDgbXPUD0bP1FIdj6ForH8O+KtE8V2ZudHvVlKjMkD/LNF/vL6e4yPetimIK8D+KniNrf4iajpupWcWpaWscGyCU7XhzChJikHKHPOOVJ6g175Xzl8W7E3PxP1aWSeK3t0jtg0kh7+QnCqOWP0H1wOaQ0YVt4ct9QuYrzw3dtepG6vJYyqFu4lByTtHEgHqmT6qKLnw5b6fcy3niS7aySR2eOxhAa7lUnIJU8RA+r8+imqui3trBr2mwafBjN3EGuZwDI3zj7o6IPpk/7WOKNavbafXdSg1CD7t3KFuYFAkX5z94cBx9cH/axxQM7T4a+I2uPGsGnabZxaZphtrktBEdzykQuQZZD8znPOOFB6AV78hzGpPoK+b/hdYm28f2ksc8Vxbva3QWSNu/kPwynlT9R9MjmvpCP/AFa/QUCY6ue8UeDNF8WwbdUtA0wXEdzFhJo/TDY5Hs2R9K6GimI+edQ+FGt+GvENhd2gOpacl3EWlhQiSJd45dOSB7jI9xUVr8L9X13X768vydM0+S7lKPKhaWYbz/q4+p+pwPevoojPqCOhBwR9DUUVtFE7SKpMjfed2LMfxPNIdzmfDXgjS/D1qYrC0FtvXbLO5D3Ew7hn6KD/AHVwK6wDAAHQUUUxH//Z",_Z="data:image/svg+xml,%3csvg%20width='1027'%20height='1109'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20overflow='hidden'%3e%3cdefs%3e%3cfilter%20id='fx0'%20x='-10%25'%20y='-10%25'%20width='120%25'%20height='120%25'%20filterUnits='userSpaceOnUse'%20primitiveUnits='userSpaceOnUse'%3e%3cfeComponentTransfer%20color-interpolation-filters='sRGB'%3e%3cfeFuncR%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncG%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncB%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncA%20type='linear'%20slope='0.4'%20intercept='0'%20/%3e%3c/feComponentTransfer%3e%3cfeGaussianBlur%20stdDeviation='4.58333%204.58333'%20/%3e%3c/filter%3e%3cclipPath%20id='clip1'%3e%3crect%20x='692'%20y='855'%20width='1027'%20height='1109'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2'%3e%3crect%20x='-2'%20y='-2'%20width='541'%20height='786'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3'%3e%3crect%20x='0'%20y='0'%20width='535'%20height='782'%20/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23clip1)'%20transform='translate(-692%20-855)'%3e%3cpath%20d='M692%201191%20692%201575.69C692%201640.41%20731.499%201651.19%20731.499%201651.19L1148.03%201931.62C1212.66%201974.77%201194.71%201881.29%201194.71%201881.29L1194.71%201528.96%20692%201191Z'%20fill='%2337474F'%20fill-rule='evenodd'%20/%3e%3cg%20clip-path='url(%23clip2)'%20filter='url(%23fx0)'%20transform='translate(1184%201182)'%3e%3cg%20clip-path='url(%23clip3)'%3e%3cpath%20d='M520.482%2015.4819%20520.482%20400.176C520.482%20464.89%20480.983%20475.676%20480.983%20475.676%20480.983%20475.676%20129.086%20712.963%2064.4523%20756.106-0.181814%20799.25%2017.7721%20705.773%2017.7721%20705.773L17.7721%20353.437%20520.482%2015.4819Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M1698%201191%201698%201575.69C1698%201640.41%201658.5%201651.19%201658.5%201651.19%201658.5%201651.19%201306.6%201888.48%201241.97%201931.62%201177.34%201974.77%201195.29%201881.29%201195.29%201881.29L1195.29%201528.96%201698%201191Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1241.71%20868.473C1212.96%20850.509%201169.85%20850.509%201144.7%20868.473L713.557%201163.07C684.814%201181.04%20684.814%201213.37%20713.557%201231.33L1144.7%201529.53C1173.44%201547.49%201216.56%201547.49%201241.71%201529.53L1676.44%201227.74C1705.19%201209.78%201705.19%201177.44%201676.44%201159.48L1241.71%20868.473Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1195%201949C1173.4%201949%201159%201935.19%201159%201917.92L1159%201531.08C1159%201513.82%201173.4%201500%201195%201500%201216.6%201500%201231%201513.82%201231%201531.08L1231%201914.46C1231%201935.19%201216.6%201949%201195%201949Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1553.92%201435.92C1553.92%201471.89%201557.5%201486.27%201518.03%201511.45L1428.32%201568.99C1388.85%201594.17%201374.5%201572.59%201374.5%201540.22L1374.5%201446.71C1374.5%201439.52%201374.5%201435.92%201363.73%201428.73%201270.43%201363.99%20911.591%201115.84%20847%201069.09L1012.07%20954C1058.72%20982.772%201399.61%201209.35%201539.56%201306.45%201546.74%201310.05%201550.33%201317.24%201550.33%201320.84L1550.33%201435.92Z'%20fill='%2399AAB5'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.41%201310.21C1399.82%201213.17%201058.79%20986.752%201015.72%20958L951.103%20997.534%20847%201069.41C911.615%201116.14%201270.59%201360.53%201363.92%201425.22%201371.1%201428.81%201371.1%201432.41%201371.1%201436L1547%201313.8C1547%201313.8%201547%201310.21%201543.41%201310.21Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1554.9%201435.48%201554.9%201324.19C1554.9%201317.01%201551.3%201313.42%201544.11%201309.83%201400.28%201212.89%201058.67%20986.721%201015.51%20958L940%201008.26C1062.26%201090.83%201389.49%201306.24%201475.79%201367.27%201486.58%201374.45%201486.58%201381.63%201486.58%201385.22L1486.58%201536%201522.54%201510.87C1558.5%201485.74%201554.9%201467.79%201554.9%201435.48Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.23%201309.95C1399.6%201212.98%201058.49%20986.731%201015.4%20958L940%201008.28C1062.08%201090.88%201388.83%201306.36%201475.01%201367.41%201475.01%201367.41%201478.6%201371%201478.6%201371L1554%201317.13C1546.82%201313.54%201546.82%201309.95%201543.23%201309.95Z'%20fill='%23E1E8ED'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/svg%3e",wZ={class:"join flex"},bZ=["value"],Vk=lt({__name:"BackendSwitch",setup(e){const t=Le(()=>Ys.value.map(r=>({label:`${r.protocol}://${r.host}:${r.port}`,value:r.uuid}))),n=()=>{Si.value=null,To.push({name:Bt.setup})};return(r,i)=>(X(),ae("div",wZ,[It(F("select",{class:"join-item select select-bordered select-xs w-48","onUpdate:modelValue":i[0]||(i[0]=o=>Qe(Si)?Si.value=o:null)},[(X(!0),ae(Ye,null,Gt(t.value,o=>(X(),ae("option",{key:o.value,value:o.value},de(o.label),9,bZ))),128))],512),[[wo,$(Si)]]),F("button",{class:"btn join-item btn-xs",onClick:n},[Se($(rO),{class:"h-4 w-4"})])]))}}),SZ={class:"grid grid-cols-2 gap-1"},Hk=lt({__name:"StatisticsInfo",setup(e){return(t,n)=>(X(),ae("div",SZ,[F("div",null,de(t.$t("connections"))+": "+de($(mo).length),1),F("div",null,de(t.$t("memoryUsage"))+": "+de($(mn)($(_x),{binary:!0})),1),F("div",null,de(t.$t("download"))+": "+de($(mn)($(dm))),1),F("div",null,de(t.$t("dlSpeed"))+": "+de($(mn)($(bx)))+"/s",1),F("div",null,de(t.$t("upload"))+": "+de($(mn)($(pm))),1),F("div",null,de(t.$t("ulSpeed"))+": "+de($(mn)($(Sx)))+"/s",1)]))}}),xZ={class:"flex flex-col gap-2 p-2 text-xs"},CZ={class:"flex gap-1"},TZ=["src"],EZ={class:"flex"},AZ=lt({__name:"CommonCtrl",setup(e){return(t,n)=>(X(),ae("div",xZ,[Se(Hk),F("div",CZ,[ut(de(t.$t("version"))+": ",1),F("img",{src:$(Ia)?$(_Z):$(yZ),class:"w-4"},null,8,TZ),ut(" "+de($(Td)),1)]),F("div",EZ,[F("button",{class:"btn btn-circle btn-ghost btn-xs",onClick:n[0]||(n[0]=r=>au.value=!0)},[Se($(O6),{class:"h-5 w-5"})]),n[1]||(n[1]=F("div",{class:"flex-1"},null,-1)),Se(Vk)])]))}});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -111,20 +111,20 @@ 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 Sb=function(e,t){return Sb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Sb(e,t)};function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Sb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Dx=12,MZ="sans-serif",gu=Dx+"px "+MZ,RZ=20,DZ=100,IZ="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function PZ(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)s=a*n.length;else for(var l=0;l"u"&&typeof self<"u"?vt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(vt.node=!0,vt.svgSupported=!0):qZ(navigator.userAgent,vt);function qZ(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var XZ=".",yl="___EC__COMPONENT__CONTAINER___",Xk="___EC__EXTENDED_CLASS___";function Yo(e){var t={main:"",sub:""};if(e){var n=e.split(XZ);t.main=n[0]||"",t.sub=n[1]||""}return t}function KZ(e){Ya(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function ZZ(e){return!!(e&&e[Xk])}function kx(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return QZ(r)?i=function(o){Ve(a,o);function a(){return o.apply(this,arguments)||this}return a}(r):(i=function(){(n.$constructor||r).apply(this,arguments)},$Z(i,this)),Pe(i.prototype,n),i[Xk]=!0,i.extend=this.extend,i.superCall=tQ,i.superApply=nQ,i.superClass=r,i}}function QZ(e){return wt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Kk(e,t){e.extend=t.extend}var JZ=Math.round(Math.random()*10);function eQ(e){var t=["__\0is_clz",JZ++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function tQ(e,t){for(var n=[],r=2;r=0||o&&an(o,l)<0)){var u=r.getShallow(l,t);u!=null&&(a[e[s][0]]=u)}}return a}}var rQ=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],iQ=Ad(rQ),oQ=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return iQ(this,t,n)},e}(),Zk=function(){function e(t){this.value=t}return e}(),aQ=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new Zk(t);return this.insertEntry(n),n},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 n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,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}(),Kd=function(){function e(t){this._list=new aQ,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,i=this._map,o=null;if(i[t]==null){var a=r.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=r.head;r.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new Zk(n),s.key=t,r.insertEntry(s),i[t]=s}return o},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Tb=new Kd(50);function sQ(e){if(typeof e=="string"){var t=Tb.get(e);return t&&t.image}else return e}function Qk(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=Tb.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!k0(t)&&o.pending.push(a)):(t=of.loadImage(e,EM,EM),t.__zrImageSrc=e,Tb.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function EM(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tg&&(g=S,y<_?un.set(Hf,-y,0):un.set(Hf,_,0)):Sg&&(g=x,m=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.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,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}_l.x=bl.x=n.x,_l.y=Sl.y=n.y,wl.x=Sl.x=n.x+n.width,wl.y=bl.y=n.y+n.height,_l.transform(r),Sl.transform(r),wl.transform(r),bl.transform(r),t.x=yv(_l.x,wl.x,bl.x,Sl.x),t.y=yv(_l.y,wl.y,bl.y,Sl.y);var l=_v(_l.x,wl.x,bl.x,Sl.x),u=_v(_l.y,wl.y,bl.y,Sl.y);t.width=l-t.x,t.height=u-t.y},e}(),AM={};function Ti(e,t){t=t||gu;var n=AM[t];n||(n=AM[t]=new Kd(500));var r=n.get(e);return r==null&&(r=of.measureText(e,t).width,n.put(e,r)),r}function MM(e,t,n,r){var i=Ti(e,t),o=Vx(t),a=mh(0,i,n),s=uc(0,o,r),l=new Zt(a,s,i,o);return l}function Bx(e,t,n,r){var i=((e||"")+"").split(` -`),o=i.length;if(o===1)return MM(i[0],t,n,r);for(var a=new Zt(0,0,0,0),s=0;s=0?parseFloat(e)/100*t:parseFloat(e):e}function Jk(e,t,n){var r=t.position||"inside",i=t.distance!=null?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=mu(r[0],n.width),u+=mu(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+a,u+=s,f="middle";break;case"top":l+=a/2,u-=i,c="center",f="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=a-i,u+=s,c="right",f="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,f="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var r1=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function cQ(e,t,n,r,i){if(!t)return"";var o=(e+"").split(` +***************************************************************************** */var Sb=function(e,t){return Sb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Sb(e,t)};function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Sb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Rx=12,MZ="sans-serif",gu=Rx+"px "+MZ,RZ=20,DZ=100,IZ="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function PZ(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)s=a*n.length;else for(var l=0;l"u"&&typeof self<"u"?vt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(vt.node=!0,vt.svgSupported=!0):qZ(navigator.userAgent,vt);function qZ(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var XZ=".",yl="___EC__COMPONENT__CONTAINER___",Xk="___EC__EXTENDED_CLASS___";function Yo(e){var t={main:"",sub:""};if(e){var n=e.split(XZ);t.main=n[0]||"",t.sub=n[1]||""}return t}function KZ(e){Ya(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function ZZ(e){return!!(e&&e[Xk])}function Ox(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return QZ(r)?i=function(o){Ve(a,o);function a(){return o.apply(this,arguments)||this}return a}(r):(i=function(){(n.$constructor||r).apply(this,arguments)},$Z(i,this)),Pe(i.prototype,n),i[Xk]=!0,i.extend=this.extend,i.superCall=tQ,i.superApply=nQ,i.superClass=r,i}}function QZ(e){return wt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Kk(e,t){e.extend=t.extend}var JZ=Math.round(Math.random()*10);function eQ(e){var t=["__\0is_clz",JZ++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function tQ(e,t){for(var n=[],r=2;r=0||o&&an(o,l)<0)){var u=r.getShallow(l,t);u!=null&&(a[e[s][0]]=u)}}return a}}var rQ=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],iQ=Md(rQ),oQ=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return iQ(this,t,n)},e}(),Zk=function(){function e(t){this.value=t}return e}(),aQ=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new Zk(t);return this.insertEntry(n),n},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 n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,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}(),Zd=function(){function e(t){this._list=new aQ,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,i=this._map,o=null;if(i[t]==null){var a=r.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=r.head;r.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new Zk(n),s.key=t,r.insertEntry(s),i[t]=s}return o},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Tb=new Zd(50);function sQ(e){if(typeof e=="string"){var t=Tb.get(e);return t&&t.image}else return e}function Qk(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=Tb.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!k0(t)&&o.pending.push(a)):(t=of.loadImage(e,TM,TM),t.__zrImageSrc=e,Tb.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function TM(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tg&&(g=S,y<_?un.set(Hf,-y,0):un.set(Hf,_,0)):Sg&&(g=x,m=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.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,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}_l.x=bl.x=n.x,_l.y=Sl.y=n.y,wl.x=Sl.x=n.x+n.width,wl.y=bl.y=n.y+n.height,_l.transform(r),Sl.transform(r),wl.transform(r),bl.transform(r),t.x=_v(_l.x,wl.x,bl.x,Sl.x),t.y=_v(_l.y,wl.y,bl.y,Sl.y);var l=wv(_l.x,wl.x,bl.x,Sl.x),u=wv(_l.y,wl.y,bl.y,Sl.y);t.width=l-t.x,t.height=u-t.y},e}(),EM={};function Ci(e,t){t=t||gu;var n=EM[t];n||(n=EM[t]=new Zd(500));var r=n.get(e);return r==null&&(r=of.measureText(e,t).width,n.put(e,r)),r}function AM(e,t,n,r){var i=Ci(e,t),o=Bx(t),a=mh(0,i,n),s=uc(0,o,r),l=new Zt(a,s,i,o);return l}function $x(e,t,n,r){var i=((e||"")+"").split(` +`),o=i.length;if(o===1)return AM(i[0],t,n,r);for(var a=new Zt(0,0,0,0),s=0;s=0?parseFloat(e)/100*t:parseFloat(e):e}function Jk(e,t,n){var r=t.position||"inside",i=t.distance!=null?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=mu(r[0],n.width),u+=mu(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+a,u+=s,f="middle";break;case"top":l+=a/2,u-=i,c="center",f="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=a-i,u+=s,c="right",f="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,f="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var r1=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function cQ(e,t,n,r,i){if(!t)return"";var o=(e+"").split(` `);i=eN(t,n,r,i);for(var a=0,s=o.length;a=a;l++)s-=a;var u=Ti(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function tN(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=Ti(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=a===0?fQ(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,s),o=Ti(e,r)}return e===""&&(e=t.placeholder),e}function fQ(e,t,n,r){for(var i=0,o=0,a=e.length;od&&u){var g=Math.floor(d/s);f=f.slice(0,g)}if(e&&o&&c!=null)for(var y=eN(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_=0;_s&&i1(n,e.substring(s,u),t,a),i1(n,l[2],t,a,l[1]),s=r1.lastIndex}si){E>0?(b.tokens=b.tokens.slice(0,E),_(b,x,S),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var H=A.width,te=H==null||H==="auto";if(typeof H=="string"&&H.charAt(H.length-1)==="%")T.percentWidth=H,c.push(T),T.contentWidth=Ti(T.text,O);else{if(te){var W=A.backgroundColor,q=W&&W.image;q&&(q=sQ(q),k0(q)&&(T.width=Math.max(T.width,q.width*k/q.height)))}var j=g&&r!=null?r-x:null;j!=null&&j0&&g+r.accumWidth>r.width&&(c=t.split(` +`)}function eN(e,t,n,r){r=r||{};var i=Pe({},r);i.font=t,n=Ot(n,"..."),i.maxIterations=Ot(r.maxIterations,2);var o=i.minChar=Ot(r.minChar,0);i.cnCharWidth=Ci("国",t);var a=i.ascCharWidth=Ci("a",t);i.placeholder=Ot(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l=a;l++)s-=a;var u=Ci(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function tN(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=Ci(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=a===0?fQ(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,s),o=Ci(e,r)}return e===""&&(e=t.placeholder),e}function fQ(e,t,n,r){for(var i=0,o=0,a=e.length;od&&u){var g=Math.floor(d/s);f=f.slice(0,g)}if(e&&o&&c!=null)for(var y=eN(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_=0;_s&&i1(n,e.substring(s,u),t,a),i1(n,l[2],t,a,l[1]),s=r1.lastIndex}si){E>0?(b.tokens=b.tokens.slice(0,E),_(b,x,S),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var H=A.width,te=H==null||H==="auto";if(typeof H=="string"&&H.charAt(H.length-1)==="%")T.percentWidth=H,c.push(T),T.contentWidth=Ci(T.text,O);else{if(te){var W=A.backgroundColor,q=W&&W.image;q&&(q=sQ(q),k0(q)&&(T.width=Math.max(T.width,q.width*k/q.height)))}var j=g&&r!=null?r-x:null;j!=null&&j0&&g+r.accumWidth>r.width&&(c=t.split(` `),u=!0),r.accumWidth=g}else{var y=nN(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+d,f=y.linesWidths,c=y.lines}}else c=t.split(` -`);for(var _=0;_=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var mQ=af(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function yQ(e){return gQ(e)?!!mQ[e]:!0}function nN(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=0;fn:i+c+d>n){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=p,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=d)):g?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d));continue}c+=d,g?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p)}return!o.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),o.length===1&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}function sf(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function _Q(e){return[e[0],e[1]]}function DM(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function wQ(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function bQ(e){return Math.sqrt(SQ(e))}function SQ(e){return e[0]*e[0]+e[1]*e[1]}function o1(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function xQ(e,t){var n=bQ(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Ab(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var CQ=Ab;function TQ(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Lc=TQ;function Zi(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function hc(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function dc(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var IM=Nx,PM=5e-5;function xl(e){return e>PM||e<-PM}var Cl=[],Gu=[],a1=Ic(),s1=Math.abs,Hx=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 xl(this.rotation)||xl(this.x)||xl(this.y)||xl(this.scaleX-1)||xl(this.scaleY-1)||xl(this.skewX)||xl(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(IM(r),this.invTransform=null);return}r=r||Ic(),n?this.getLocalTransform(r):IM(r),t&&(n?Pc(r,t,r):lQ(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Cl);var r=Cl[0]<0?-1:1,i=Cl[1]<0?-1:1,o=((Cl[0]-r)*n+r)/Cl[0]||0,a=((Cl[1]-i)*n+i)/Cl[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||Ic(),$x(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),o=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ic(),Pc(Gu,t.invTransform,n),n=Gu);var r=this.originX,i=this.originY;(r||i)&&(a1[4]=r,a1[5]=i,Pc(Gu,n,a1),Gu[4]-=r,Gu[5]-=i,n=Gu),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],i=this.invTransform;return i&&Zi(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&Zi(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&s1(t[0]-1)>1e-10&&s1(t[3]-1)>1e-10?Math.sqrt(s1(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){EQ(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,p=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var g=r+s,y=i+l;n[4]=-g*o-p*y*a,n[5]=-y*a-d*g*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=d*o,n[2]=p*a,u&&Fx(n,n,u),n[4]+=r+c,n[5]+=i+f,n},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}(),Md=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function EQ(e,t){for(var n=0;n-xm&&exm||e<-xm}function lr(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function OM(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function Cm(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,f=s*l-9*a*u,p=l*l-3*s*u,d=0;if(Ns(c)&&Ns(f))if(Ns(s))o[0]=0;else{var g=-l/s;g>=0&&g<=1&&(o[d++]=g)}else{var y=f*f-4*c*p;if(Ns(y)){var _=f/c,g=-s/a+_,m=-_/2;g>=0&&g<=1&&(o[d++]=g),m>=0&&m<=1&&(o[d++]=m)}else if(y>0){var b=Vs(y),S=c*s+1.5*a*(-f+b),x=c*s+1.5*a*(-f-b);S<0?S=-wv(-S,bv):S=wv(S,bv),x<0?x=-wv(-x,bv):x=wv(x,bv);var g=(-s-(S+x))/(3*a);g>=0&&g<=1&&(o[d++]=g)}else{var E=(2*c*s-3*a*f)/(2*Vs(c*c*c)),T=Math.acos(E)/3,A=Vs(c),D=Math.cos(T),g=(-s-2*A*D)/(3*a),m=(-s+A*(D+LM*Math.sin(T)))/(3*a),P=(-s+A*(D-LM*Math.sin(T)))/(3*a);g>=0&&g<=1&&(o[d++]=g),m>=0&&m<=1&&(o[d++]=m),P>=0&&P<=1&&(o[d++]=P)}}return d}function oN(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Ns(a)){if(iN(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Ns(c))i[0]=-o/(2*a);else if(c>0){var f=Vs(c),u=(-o+f)/(2*a),p=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function Tm(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,f=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=r}function AQ(e,t,n,r,i,o,a,s,l,u,c){var f,p=.005,d=1/0,g,y,_,m;Uo[0]=l,Uo[1]=u;for(var b=0;b<1;b+=.05)Wi[0]=lr(e,n,i,a,b),Wi[1]=lr(t,r,o,s,b),_=Lc(Uo,Wi),_=0&&_=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Ns(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Vs(c),u=(-a+f)/(2*o),p=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function aN(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Em(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function DQ(e,t,n,r,i,o,a,s,l){var u,c=.005,f=1/0;Uo[0]=a,Uo[1]=s;for(var p=0;p<1;p+=.05){Wi[0]=qr(e,n,i,p),Wi[1]=qr(t,r,o,p);var d=Lc(Uo,Wi);d=0&&d=1?1:Cm(0,r,o,1,l,s)&&lr(0,i,a,1,s[0])}}}var LQ=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||Jr,this.ondestroy=t.ondestroy||Jr,this.onrestart=t.onrestart||Jr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=t-this._startTime-this._pausedTime,o=i/r;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=i%r;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=wt(t)?t:Yh[t]||sN(t)},e}(),NM={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 Hs(e){return e=Math.round(e),e<0?0:e>255?255:e}function Mb(e){return e<0?0:e>1?1:e}function l1(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Hs(parseFloat(t)/100*255):Hs(parseInt(t,10))}function jh(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Mb(parseFloat(t)/100):Mb(parseFloat(t))}function u1(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Sv(e,t,n){return e+(t-e)*n}function Bi(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Rb(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var lN=new Kd(20),xv=null;function Wu(e,t){xv&&Rb(xv,t),xv=lN.put(e,xv||t.slice())}function Ba(e,t){if(e){t=t||[];var n=lN.get(e);if(n)return Rb(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in NM)return Rb(t,NM[r]),Wu(e,t),t;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(r.slice(1,4),16);if(!(o>=0&&o<=4095)){Bi(t,0,0,0,1);return}return Bi(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Wu(e,t),t}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){Bi(t,0,0,0,1);return}return Bi(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),Wu(e,t),t}return}var a=r.indexOf("("),s=r.indexOf(")");if(a!==-1&&s+1===i){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Bi(t,+u[0],+u[1],+u[2],1):Bi(t,0,0,0,1);c=jh(u.pop());case"rgb":if(u.length>=3)return Bi(t,l1(u[0]),l1(u[1]),l1(u[2]),u.length===3?c:jh(u[3])),Wu(e,t),t;Bi(t,0,0,0,1);return;case"hsla":if(u.length!==4){Bi(t,0,0,0,1);return}return u[3]=jh(u[3]),FM(u,t),Wu(e,t),t;case"hsl":if(u.length!==3){Bi(t,0,0,0,1);return}return FM(u,t),Wu(e,t),t;default:return}}Bi(t,0,0,0,1)}}function FM(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=jh(e[1]),i=jh(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return t=t||[],Bi(t,Hs(u1(a,o,n+1/3)*255),Hs(u1(a,o,n)*255),Hs(u1(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function $M(e,t){var n=Ba(e);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-t)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return N0(n,n.length===4?"rgba":"rgb")}}function OQ(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=Ba(t[i]),s=Ba(t[o]),l=r-i,u=N0([Hs(Sv(a[0],s[0],l)),Hs(Sv(a[1],s[1],l)),Hs(Sv(a[2],s[2],l)),Mb(Sv(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function N0(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function Am(e,t){var n=Ba(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var BM=new Kd(100);function VM(e){if(qe(e)){var t=BM.get(e);return t||(t=$M(e,-.1),BM.put(e,t)),t}else if(P0(e)){var n=Pe({},e);return n.colorStops=ct(e.colorStops,function(r){return{offset:r.offset,color:$M(r.color,-.1)}}),n}return e}function kQ(e){return e.type==="linear"}function NQ(e){return e.type==="radial"}(function(){return vt.hasGlobalWindow&&wt(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Db=Array.prototype.slice;function Ea(e,t,n){return(t-e)*n+e}function c1(e,t,n,r){for(var i=t.length,o=0;or?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=UM,l=n;if(ti(n)){var u=VQ(n);s=u,(u===1&&!Tn(n[0])||u===2&&!Tn(n[0][0]))&&(a=!0)}else if(Tn(n)&&!Sm(n))s=Tv;else if(qe(n))if(!isNaN(+n))s=Tv;else{var c=Ba(n);c&&(l=c,s=yh)}else if(P0(n)){var f=Pe({},l);f.colorStops=ct(n.colorStops,function(d){return{offset:d.offset,color:Ba(d.color)}}),kQ(n)?s=Ib:NQ(n)&&(s=Pb),l=f}o===0?this.valType=s:(s!==this.valType||s===UM)&&(a=!0),this.discrete=this.discrete||a;var p={time:t,value:l,rawValue:n,percent:0};return r&&(p.easing=r,p.easingFunc=wt(r)?r:Yh[r]||sN(r)),i.push(p),p},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(y,_){return y.time-_.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=Ev(i),u=zM(i),c=0;c=0&&!(a[c].percent<=n);c--);c=p(c,s-2)}else{for(c=f;cn);c++);c=p(c-1,s-2)}g=a[c+1],d=a[c]}if(d&&g){this._lastFr=c,this._lastFrP=n;var _=g.percent-d.percent,m=_===0?1:p((n-d.percent)/_,1);g.easingFunc&&(m=g.easingFunc(m));var b=r?this._additiveValue:u?Uf:t[l];if((Ev(o)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=m<1?d.rawValue:g.rawValue;else if(Ev(o))o===Ng?c1(b,d[i],g[i],m):FQ(b,d[i],g[i],m);else if(zM(o)){var S=d[i],x=g[i],E=o===Ib;t[l]={type:E?"linear":"radial",x:Ea(S.x,x.x,m),y:Ea(S.y,x.y,m),colorStops:ct(S.colorStops,function(A,D){var P=x.colorStops[D];return{offset:Ea(A.offset,P.offset,m),color:kg(c1([],A.color,P.color,m))}}),global:x.global},E?(t[l].x2=Ea(S.x2,x.x2,m),t[l].y2=Ea(S.y2,x.y2,m)):t[l].r=Ea(S.r,x.r,m)}else if(u)c1(b,d[i],g[i],m),r||(t[l]=kg(b));else{var T=Ea(d[i],g[i],m);r?this._additiveValue=T:t[l]=T}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,i=this._additiveValue;n===Tv?t[r]=t[r]+i:n===yh?(Ba(t[r],Uf),Cv(Uf,Uf,i,1),t[r]=kg(Uf)):n===Ng?Cv(t[r],t[r],i,1):n===uN&&HM(t[r],t[r],i,1)},e}(),Ux=function(){function e(t,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&i){Lx("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}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,n,r){return this.whenWithKeys(t,n,Cn(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var o=this._tracks,a=0;a0&&l.addKeyframe(0,Og(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Og(n[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 n=t.length,r=0;r0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}(),oa=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!t)return this;var a=this._$eventProcessor;n!=null&&a&&a.normalizeQuery&&(n=a.normalizeQuery(n)),o[t]||(o[t]=[]);for(var s=0;s=0:r.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,b=void 0,S=void 0;y&&this.canBeInsideText()?(m=r.insideFill,b=r.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(m),S=!0)):(m=r.outsideFill,b=r.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(m),S=!0)),m=m||"#000",(m!==_.fill||b!==_.stroke||S!==_.autoStroke||a!==_.align||s!==_.verticalAlign)&&(l=!0,_.fill=m,_.stroke=b,_.autoStroke=S,_.align=a,_.verticalAlign=s,n.setDefaultTextStyle(_)),n.__dirty|=wi,l&&n.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()?kb:Ob},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Ba(n);r||(r=[255,255,255,1]);for(var i=r[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*i+(o?0:255)*(1-i);return r[3]=1,N0(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},Pe(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(it(t))for(var r=t,i=Cn(r),o=0;o0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(f1,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===f1,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(an(s,t)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!o){Lx("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,p=this._textGuide;return f&&f.useState(t,n,r,c),p&&p.useState(t,n,r,c),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~wi),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var i=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l0,g);var y=this._textContent,_=this._textGuide;y&&y.useStates(t,n,p),_&&_.useStates(t,n,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~wi)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),o=an(i,t),a=an(i,n)>=0;o>=0?a?i.splice(o,1):i[o]=n:r&&!a&&i.push(n),this.useStates(i)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,i=0;i=0&&o.splice(a,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,o=[],a=0;a0&&n.during&&o[0].during(function(g,y){n.during(y)});for(var p=0;p0||i.force&&!a.length){var D=void 0,P=void 0,O=void 0;if(s){P={},p&&(D={});for(var x=0;x1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(Av[0]=y1(i)*n+e,Av[1]=m1(i)*r+t,Mv[0]=y1(o)*n+e,Mv[1]=m1(o)*r+t,u(s,Av,Mv),c(l,Av,Mv),i=i%Tl,i<0&&(i=i+Tl),o=o%Tl,o<0&&(o=o+Tl),i>o&&!a?o+=Tl:ii&&(Rv[0]=y1(d)*n+e,Rv[1]=m1(d)*r+t,u(s,Rv,s),c(l,Rv,l))}var jt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},El=[],Al=[],ko=[],ps=[],No=[],Fo=[],_1=Math.min,w1=Math.max,Ml=Math.cos,Rl=Math.sin,ba=Math.abs,Fb=Math.PI,xs=Fb*2,b1=typeof Float32Array<"u",zf=[];function S1(e){var t=Math.round(e/Fb*1e8)/1e8;return t%2*Fb}function eJ(e,t){var n=S1(e[0]);n<0&&(n+=xs);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=xs?i=n+xs:t&&n-i>=xs?i=n-xs:!t&&n>i?i=n+(xs-S1(n-i)):t&&n0&&(this._ux=ba(r/Mm/t)||0,this._uy=ba(r/Mm/n)||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,n){return this._drawPendingPt(),this.addData(jt.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=ba(t-this._xi),i=ba(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(jt.L,t,n),this._ctx&&o&&this._ctx.lineTo(t,n),o)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var a=r*r+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,n,r,i,o,a){return this._drawPendingPt(),this.addData(jt.C,t,n,r,i,o,a),this._ctx&&this._ctx.bezierCurveTo(t,n,r,i,o,a),this._xi=o,this._yi=a,this},e.prototype.quadraticCurveTo=function(t,n,r,i){return this._drawPendingPt(),this.addData(jt.Q,t,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,i),this._xi=r,this._yi=i,this},e.prototype.arc=function(t,n,r,i,o,a){this._drawPendingPt(),zf[0]=i,zf[1]=o,eJ(zf,a),i=zf[0],o=zf[1];var s=o-i;return this.addData(jt.A,t,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,r,i,o,a),this._xi=Ml(o)*r+t,this._yi=Rl(o)*r+n,this},e.prototype.arcTo=function(t,n,r,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,i,o),this},e.prototype.rect=function(t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,i),this.addData(jt.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(jt.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,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 n=t.length;!(this.data&&this.data.length===n)&&b1&&(this.data=new Float32Array(n));for(var r=0;rc.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=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ko[0]=ko[1]=No[0]=No[1]=Number.MAX_VALUE,ps[0]=ps[1]=Fo[0]=Fo[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,o=0,a;for(a=0;ar||ba(S)>i||p===n-1)&&(y=Math.sqrt(b*b+S*S),o=_,a=m);break}case jt.C:{var x=t[p++],E=t[p++],_=t[p++],m=t[p++],T=t[p++],A=t[p++];y=MQ(o,a,x,E,_,m,T,A,10),o=T,a=A;break}case jt.Q:{var x=t[p++],E=t[p++],_=t[p++],m=t[p++];y=IQ(o,a,x,E,_,m,10),o=_,a=m;break}case jt.A:var D=t[p++],P=t[p++],O=t[p++],k=t[p++],H=t[p++],te=t[p++],W=te+H;p+=1,g&&(s=Ml(H)*O+D,l=Rl(H)*k+P),y=w1(O,k)*_1(xs,Math.abs(te)),o=Ml(W)*O+D,a=Rl(W)*k+P;break;case jt.R:{s=o=t[p++],l=a=t[p++];var q=t[p++],j=t[p++];y=q*2+j*2;break}case jt.Z:{var b=s-o,S=l-a;y=Math.sqrt(b*b+S*S),o=s,a=l;break}}y>=0&&(u[f++]=y,c+=y)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,i=this._ux,o=this._uy,a=this._len,s,l,u,c,f,p,d=n<1,g,y,_=0,m=0,b,S=0,x,E;if(!(d&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,y=this._pathLen,b=n*y,!b)))e:for(var T=0;T0&&(t.lineTo(x,E),S=0),A){case jt.M:s=u=r[T++],l=c=r[T++],t.moveTo(u,c);break;case jt.L:{f=r[T++],p=r[T++];var P=ba(f-u),O=ba(p-c);if(P>i||O>o){if(d){var k=g[m++];if(_+k>b){var H=(b-_)/k;t.lineTo(u*(1-H)+f*H,c*(1-H)+p*H);break e}_+=k}t.lineTo(f,p),u=f,c=p,S=0}else{var te=P*P+O*O;te>S&&(x=f,E=p,S=te)}break}case jt.C:{var W=r[T++],q=r[T++],j=r[T++],ie=r[T++],J=r[T++],ce=r[T++];if(d){var k=g[m++];if(_+k>b){var H=(b-_)/k;Tm(u,W,j,J,H,El),Tm(c,q,ie,ce,H,Al),t.bezierCurveTo(El[1],Al[1],El[2],Al[2],El[3],Al[3]);break e}_+=k}t.bezierCurveTo(W,q,j,ie,J,ce),u=J,c=ce;break}case jt.Q:{var W=r[T++],q=r[T++],j=r[T++],ie=r[T++];if(d){var k=g[m++];if(_+k>b){var H=(b-_)/k;Em(u,W,j,H,El),Em(c,q,ie,H,Al),t.quadraticCurveTo(El[1],Al[1],El[2],Al[2]);break e}_+=k}t.quadraticCurveTo(W,q,j,ie),u=j,c=ie;break}case jt.A:var ye=r[T++],we=r[T++],Ne=r[T++],ke=r[T++],je=r[T++],He=r[T++],We=r[T++],le=!r[T++],Te=Ne>ke?Ne:ke,_e=ba(Ne-ke)>.001,xe=je+He,Ee=!1;if(d){var k=g[m++];_+k>b&&(xe=je+He*(b-_)/k,Ee=!0),_+=k}if(_e&&t.ellipse?t.ellipse(ye,we,Ne,ke,We,je,xe,le):t.arc(ye,we,Te,je,xe,le),Ee)break e;D&&(s=Ml(je)*Ne+ye,l=Rl(je)*ke+we),u=Ml(xe)*Ne+ye,c=Rl(xe)*ke+we;break;case jt.R:s=u=r[T],l=c=r[T+1],f=r[T++],p=r[T++];var De=r[T++],F=r[T++];if(d){var k=g[m++];if(_+k>b){var B=b-_;t.moveTo(f,p),t.lineTo(f+_1(B,De),p),B-=De,B>0&&t.lineTo(f+De,p+_1(B,F)),B-=F,B>0&&t.lineTo(f+w1(De-B,0),p+F),B-=De,B>0&&t.lineTo(f,p+w1(F-B,0));break e}_+=k}t.rect(f,p,De,F);break;case jt.Z:if(d){var k=g[m++];if(_+k>b){var H=(b-_)/k;t.lineTo(u*(1-H)+s*H,c*(1-H)+l*H);break e}_+=k}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=jt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function ju(e,t,n,r,i,o,a){if(i===0)return!1;var s=i,l=0,u=e;if(a>t+s&&a>r+s||ae+s&&o>n+s||ot+f&&c>r+f&&c>o+f&&c>s+f||ce+f&&u>n+f&&u>i+f&&u>a+f||ut+u&&l>r+u&&l>o+u||le+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=Gf);var p=Math.atan2(l,s);return p<0&&(p+=Gf),p>=r&&p<=i||p+Gf>=r&&p+Gf<=i}function Dl(e,t,n,r,i,o){if(o>t&&o>r||oi?s:0}var vs=yu.CMD,Il=Math.PI*2,iJ=1e-4;function oJ(e,t){return Math.abs(e-t)t&&u>r&&u>o&&u>s||u1&&aJ(),d=lr(t,r,o,s,zi[0]),p>1&&(g=lr(t,r,o,s,zi[1]))),p===2?_t&&s>r&&s>o||s=0&&u<=1){for(var c=0,f=qr(t,r,o,u),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Pr[0]=-l,Pr[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Il-1e-4){r=0,i=Il;var c=o?1:-1;return a>=Pr[0]+e&&a<=Pr[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=Il,i+=Il);for(var p=0,d=0;d<2;d++){var g=Pr[d];if(g+e>a){var y=Math.atan2(s,g),c=o?1:-1;y<0&&(y=Il+y),(y>=r&&y<=i||y+Il>=r&&y+Il<=i)&&(y>Math.PI/2&&y1&&(n||(s+=Dl(l,u,c,f,r,i))),_&&(l=o[g],u=o[g+1],c=l,f=u),y){case vs.M:c=o[g++],f=o[g++],l=c,u=f;break;case vs.L:if(n){if(ju(l,u,o[g],o[g+1],t,r,i))return!0}else s+=Dl(l,u,o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case vs.C:if(n){if(tJ(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],t,r,i))return!0}else s+=sJ(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case vs.Q:if(n){if(nJ(l,u,o[g++],o[g++],o[g],o[g+1],t,r,i))return!0}else s+=lJ(l,u,o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case vs.A:var m=o[g++],b=o[g++],S=o[g++],x=o[g++],E=o[g++],T=o[g++];g+=1;var A=!!(1-o[g++]);p=Math.cos(E)*S+m,d=Math.sin(E)*x+b,_?(c=p,f=d):s+=Dl(l,u,p,d,r,i);var D=(r-m)*x/S+m;if(n){if(rJ(m,b,x,E,E+T,A,t,D,i))return!0}else s+=uJ(m,b,x,E,E+T,A,D,i);l=Math.cos(E+T)*S+m,u=Math.sin(E+T)*x+b;break;case vs.R:c=l=o[g++],f=u=o[g++];var P=o[g++],O=o[g++];if(p=c+P,d=f+O,n){if(ju(c,f,p,f,t,r,i)||ju(p,f,p,d,t,r,i)||ju(p,d,c,d,t,r,i)||ju(c,d,c,f,t,r,i))return!0}else s+=Dl(p,f,p,d,r,i),s+=Dl(c,d,c,f,r,i);break;case vs.Z:if(n){if(ju(l,u,c,f,t,r,i))return!0}else s+=Dl(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!oJ(u,f)&&(s+=Dl(l,u,c,f,r,i)||0),s!==0}function cJ(e,t,n){return hN(e,0,!1,t,n)}function fJ(e,t,n,r){return hN(e,t,!0,n,r)}var dN=nn({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},cu),hJ={style:nn({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},$0.style)},x1=Md.concat(["invisible","culling","z","z2","zlevel","parent"]),pn=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){n.buildPath(l,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Ob:r>.2?UQ:kb}else if(n)return kb}return Ob},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(qe(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=Am(n,0)0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&cc)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),n=a.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.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 n},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect(),a=this.style;if(n=i[0],r=i[1],o.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),fJ(s,l/u,n,r)))return!0}if(this.hasFill())return cJ(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=cc,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:Pe(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&cc)},t.prototype.createStyle=function(n){return L0(dN,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Pe({},this.shape))},t.prototype._applyStateObj=function(n,r,i,o,a,s){e.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),u;if(r&&r.shape?a?o?u=r.shape:(u=Pe({},i.shape),Pe(u,r.shape)):(u=Pe({},o?this.shape:i.shape),Pe(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=Pe({},this.shape);for(var c={},f=Cn(u),p=0;p0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return L0(dJ,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var i=Bx(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var o=n.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(Zd);Rm.prototype.type="tspan";var pJ=nn({x:0,y:0},cu),vJ={style:nn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},$0.style)};function gJ(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ol=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return L0(pJ,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=gJ(r.image)?r.image:this.__image;if(!o)return 0;var a=n==="width"?"height":"width",s=r[a];return s==null?o[n]:o[n]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return vJ},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Zt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Zd);ol.prototype.type="image";function mJ(e,t){var n=t.x,r=t.y,i=t.width,o=t.height,a=t.r,s,l,u,c;i<0&&(n=n+i,i=-i),o<0&&(r=r+o,o=-o),typeof a=="number"?s=l=u=c=a:a instanceof Array?a.length===1?s=l=u=c=a[0]:a.length===2?(s=u=a[0],l=c=a[1]):a.length===3?(s=a[0],l=c=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],c=a[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>o&&(f=l+u,l*=o/f,u*=o/f),s+c>o&&(f=s+c,s*=o/f,c*=o/f),e.moveTo(n+s,r),e.lineTo(n+i-l,r),l!==0&&e.arc(n+i-l,r+l,l,-Math.PI/2,0),e.lineTo(n+i,r+o-u),u!==0&&e.arc(n+i-u,r+o-u,u,0,Math.PI/2),e.lineTo(n+c,r+o),c!==0&&e.arc(n+c,r+o-c,c,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var pc=Math.round;function pN(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s&&(pc(r*2)===pc(i*2)&&(e.x1=e.x2=nu(r,s,!0)),pc(o*2)===pc(a*2)&&(e.y1=e.y2=nu(o,s,!0))),e}}function vN(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s&&(e.x=nu(r,s,!0),e.y=nu(i,s,!0),e.width=Math.max(nu(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(nu(i+a,s,!1)-e.y,a===0?0:1)),e}}function nu(e,t,n){if(!t)return e;var r=pc(e*2);return(r+pc(t))%2===0?r/2:(r+(n?1:-1))/2}var yJ=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),_J={},cr=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new yJ},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=vN(_J,r,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,o=r.y,a=r.width,s=r.height;r.r?mJ(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(pn);cr.prototype.type="rect";var XM={fill:"#000"},KM=2,wJ={style:nn({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},$0.style)},ri=function(e){Ve(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=XM,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,H=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),te=a.calculatedLineHeight,W=0;W=0&&(W=T[te],W.align==="right");)this._placeToken(W,n,D,m,H,"right",S),P-=W.width,H-=W.width,te--;for(k+=(o-(k-_)-(b-H)-P)/2;O<=te;)W=T[O],this._placeToken(W,n,D,m,k+W.width/2,"center",S),k+=W.width,O++;m+=D}},t.prototype._placeToken=function(n,r,i,o,a,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=o+i/2;c==="top"?f=o+n.height/2:c==="bottom"&&(f=o+i-n.height/2);var p=!n.isLineHolder&&C1(u);p&&this._renderBackground(u,r,s==="right"?a-n.width:s==="center"?a-n.width/2:a,f-n.height/2,n.width,n.height);var d=!!u.backgroundColor,g=n.textPadding;g&&(a=nR(a,s,g),f-=n.height/2-g[0]-n.innerHeight/2);var y=this._getOrCreateChild(Rm),_=y.createStyle();y.useStyle(_);var m=this._defaultStyle,b=!1,S=0,x=tR("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,m.fill)),E=eR("stroke"in u?u.stroke:"stroke"in r?r.stroke:!d&&!l&&(!m.autoStroke||b)?(S=KM,m.stroke):null),T=u.textShadowBlur>0||r.textShadowBlur>0;_.text=n.text,_.x=a,_.y=f,T&&(_.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,_.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",_.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,_.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),_.textAlign=s,_.textBaseline="middle",_.font=n.font||gu,_.opacity=Lg(u.opacity,r.opacity,1),QM(_,u),E&&(_.lineWidth=Lg(u.lineWidth,r.lineWidth,S),_.lineDash=Ot(u.lineDash,r.lineDash),_.lineDashOffset=r.lineDashOffset||0,_.stroke=E),x&&(_.fill=x);var A=n.contentWidth,D=n.contentHeight;y.setBoundingRect(new Zt(mh(_.x,A,_.textAlign),uc(_.y,D,_.textBaseline),A,D))},t.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,p=l&&!f,d=n.borderRadius,g=this,y,_;if(p||n.lineHeight||u&&c){y=this._getOrCreateChild(cr),y.useStyle(y.createStyle()),y.style.fill=null;var m=y.shape;m.x=i,m.y=o,m.width=a,m.height=s,m.r=d,y.dirtyShape()}if(p){var b=y.style;b.fill=l||null,b.fillOpacity=Ot(n.fillOpacity,1)}else if(f){_=this._getOrCreateChild(ol),_.onload=function(){g.dirtyStyle()};var S=_.style;S.image=l.image,S.x=i,S.y=o,S.width=a,S.height=s}if(u&&c){var b=y.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ot(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var x=(y||_).style;x.shadowBlur=n.shadowBlur||0,x.shadowColor=n.shadowColor||"transparent",x.shadowOffsetX=n.shadowOffsetX||0,x.shadowOffsetY=n.shadowOffsetY||0,x.opacity=Lg(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return CJ(n)&&(r=[n.fontStyle,n.fontWeight,xJ(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Wo(r)||n.textFont||n.font},t}(Zd),bJ={left:!0,right:1,center:1},SJ={top:1,bottom:1,middle:1},ZM=["fontStyle","fontWeight","fontSize","fontFamily"];function xJ(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Dx+"px":e+"px"}function QM(e,t){for(var n=0;n0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function kr(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 qe(e)?EJ(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Wn(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),gN),e=(+e).toFixed(t),n?e:+e}function ka(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return AJ(e)}function AJ(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function MJ(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function RJ(e,t){var n=Math.max(ka(e),ka(t)),r=e+t;return n>gN?r:Wn(r,n)}function mN(e){var t=Math.PI*2;return(e%t+t)%t}function Dm(e){return e>-iR&&e=10&&t++,t}function yN(e,t){var n=zx(e),r=Math.pow(10,n),i=e/r,o;return i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10,e=o*r,n>=-20?+e.toFixed(n<0?-n:0):e}function Im(e){var t=parseFloat(e);return t==e&&(t!==0||!qe(e)||e.indexOf("x")<=0)?t:NaN}function PJ(e){return!isNaN(Im(e))}function _N(){return Math.round(Math.random()*9)}function wN(e,t){return t===0?e:wN(t,e%t)}function aR(e,t){return e==null?t:t==null?e:e*t/wN(e,t)}function Xr(e){throw new Error(e)}function sR(e,t,n){return(t-e)*n+e}var bN="series\0",LJ="\0_ec_\0";function Nr(e){return e instanceof Array?e:e==null?[]:[e]}function lR(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r=0,o=!1;if(e instanceof pn){var a=CN(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(qu(s)||qu(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=Pe({},r),u=Pe({},u),u.fill=s):!qu(u.fill)&&qu(s)?(o=!0,r=Pe({},r),u=Pe({},u),u.fill=VM(s)):!qu(u.stroke)&&qu(l)&&(o||(r=Pe({},r),u=Pe({},u)),u.stroke=VM(l)),r.style=u}}if(r&&r.z2==null){o||(r=Pe({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??XJ)}return r}function tee(e,t,n){if(n&&n.z2==null){n=Pe({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??KJ)}return n}function nee(e,t,n){var r=an(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:JJ(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=Pe({},n),a=Pe({opacity:r?i:o.opacity*.1},a),n.style=a),n}function E1(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return eee(this,e,t,n);if(e==="blur")return nee(this,e,n);if(e==="select")return tee(this,e,n)}return n}function ree(e){e.stateProxy=E1;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=E1),n&&(n.stateProxy=E1)}function vR(e,t){!IN(e,t)&&!e.__highByOuter&&Ka(e,TN)}function gR(e,t){!IN(e,t)&&!e.__highByOuter&&Ka(e,EN)}function Pm(e,t){e.__highByOuter|=1<<(t||0),Ka(e,TN)}function Lm(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ka(e,EN)}function iee(e){Ka(e,qx)}function MN(e){Ka(e,AN)}function RN(e){Ka(e,ZJ)}function DN(e){Ka(e,QJ)}function IN(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function PN(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=Yx(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){AN(u)}),s&&n.push(o)),a.isBlured=!1}),G(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function $b(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var f=0;f0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function Vb(e,t,n){LN(e,!0),Ka(e,ree),fee(e,t,n)}function cee(e){LN(e,!1)}function Hb(e,t,n,r){r?cee(e):Vb(e,t,n)}function fee(e,t,n){var r=fn(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var yR=["emphasis","blur","select"],hee={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function _R(e,t,n,r){n=n||"itemStyle";for(var i=0;i1&&(a*=A1(g),s*=A1(g));var y=(i===o?-1:1)*A1((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,_=y*a*d/s,m=y*-s*p/a,b=(e+n)/2+Pv(f)*_-Iv(f)*m,S=(t+r)/2+Iv(f)*_+Pv(f)*m,x=xR([1,0],[(p-_)/a,(d-m)/s]),E=[(p-_)/a,(d-m)/s],T=[(-1*p-_)/a,(-1*d-m)/s],A=xR(E,T);if(Gb(E,T)<=-1&&(A=Wf),Gb(E,T)>=1&&(A=0),A<0){var D=Math.round(A/Wf*1e6)/1e6;A=Wf*2+D%2*Wf}c.addData(u,b,S,a,s,x,A,f,o)}var yee=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,_ee=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function wee(e){var t=new yu;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=yu.CMD,l=e.match(yee);if(!l)return t;for(var u=0;u=0&&(i.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=an(this._children,n);return i>=0&&this.replaceAt(r,i),this},t.prototype.replaceAt=function(n,r){var i=this._children,o=i[r];if(n&&n!==this&&n.parent!==this&&n!==o){i[r]=n,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,i=this._children,o=an(i,n);return o<0?this:(i.splice(o,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;iW*W+q*q&&(D=O,P=k),{cx:D,cy:P,x0:-c,y0:-f,x1:D*(i/E-1),y1:P*(i/E-1)}}function Mee(e){var t;if(ze(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Ree(e,t){var n,r=wh(t.r,0),i=wh(t.r0||0,0),o=r>0,a=i>0;if(!(!o&&!a)){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,p=!!t.clockwise,d=TR(u-l),g=d>M1&&d%M1;if(g>uo&&(d=g),!(r>uo))e.moveTo(c,f);else if(d>M1-uo)e.moveTo(c+r*Ku(l),f+r*Pl(l)),e.arc(c,f,r,l,u,!p),i>uo&&(e.moveTo(c+i*Ku(u),f+i*Pl(u)),e.arc(c,f,i,u,l,p));else{var y=void 0,_=void 0,m=void 0,b=void 0,S=void 0,x=void 0,E=void 0,T=void 0,A=void 0,D=void 0,P=void 0,O=void 0,k=void 0,H=void 0,te=void 0,W=void 0,q=r*Ku(l),j=r*Pl(l),ie=i*Ku(u),J=i*Pl(u),ce=d>uo;if(ce){var ye=t.cornerRadius;ye&&(n=Mee(ye),y=n[0],_=n[1],m=n[2],b=n[3]);var we=TR(r-i)/2;if(S=$o(we,m),x=$o(we,b),E=$o(we,y),T=$o(we,_),P=A=wh(S,x),O=D=wh(E,T),(A>uo||D>uo)&&(k=r*Ku(u),H=r*Pl(u),te=i*Ku(l),W=i*Pl(l),duo){var _e=$o(m,P),xe=$o(b,P),Ee=Lv(te,W,q,j,r,_e,p),De=Lv(k,H,ie,J,r,xe,p);e.moveTo(c+Ee.cx+Ee.x0,f+Ee.cy+Ee.y0),P0&&e.arc(c+Ee.cx,f+Ee.cy,_e,vr(Ee.y0,Ee.x0),vr(Ee.y1,Ee.x1),!p),e.arc(c,f,r,vr(Ee.cy+Ee.y1,Ee.cx+Ee.x1),vr(De.cy+De.y1,De.cx+De.x1),!p),xe>0&&e.arc(c+De.cx,f+De.cy,xe,vr(De.y1,De.x1),vr(De.y0,De.x0),!p))}else e.moveTo(c+q,f+j),e.arc(c,f,r,l,u,!p);if(!(i>uo)||!ce)e.lineTo(c+ie,f+J);else if(O>uo){var _e=$o(y,O),xe=$o(_,O),Ee=Lv(ie,J,k,H,i,-xe,p),De=Lv(q,j,te,W,i,-_e,p);e.lineTo(c+Ee.cx+Ee.x0,f+Ee.cy+Ee.y0),O0&&e.arc(c+Ee.cx,f+Ee.cy,xe,vr(Ee.y0,Ee.x0),vr(Ee.y1,Ee.x1),!p),e.arc(c,f,i,vr(Ee.cy+Ee.y1,Ee.cx+Ee.x1),vr(De.cy+De.y1,De.cx+De.x1),p),_e>0&&e.arc(c+De.cx,f+De.cy,_e,vr(De.y1,De.x1),vr(De.y0,De.x0),!p))}else e.lineTo(c+ie,f+J),e.arc(c,f,i,u,l,p)}e.closePath()}}}var Dee=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}(),z0=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Dee},t.prototype.buildPath=function(n,r){Ree(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(pn);z0.prototype.type="sector";var Iee=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Zx=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Iee},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.PI*2;n.moveTo(i+r.r,o),n.arc(i,o,r.r,0,a,!1),n.moveTo(i+r.r0,o),n.arc(i,o,r.r0,0,a,!0)},t}(pn);Zx.prototype.type="ring";function Pee(e,t,n,r){var i=[],o=[],a=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var p=0,d=e.length;p=2){if(r){var o=Pee(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[s*2],u=o[s*2+1],c=i[(s+1)%a];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;sOl[1]){if(s=!1,o)return s;var c=Math.abs(Ol[0]-Ll[1]),f=Math.abs(Ll[0]-Ol[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,p=c.delay,d=c.easing,g={duration:f,delay:p||0,easing:d,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};s?t.animateFrom(n,g):t.animateTo(n,g)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function Xs(e,t,n,r,i,o){tC("update",e,t,n,r,i,o)}function ep(e,t,n,r,i,o){tC("enter",e,t,n,r,i,o)}function Qh(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function MR(e){return!e.isGroup}function nte(e){return e.shape!=null}function GN(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){MR(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return nte(a)&&(s.shape=Pe({},a.shape)),s}var o=r(e);t.traverse(function(a){if(MR(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Xs(a,l,n,fn(a).dataIndex)}}})}function rte(e,t){return ct(e,function(n){var r=n[0];r=Nm(r,t.x),r=Fm(r,t.x+t.width);var i=n[1];return i=Nm(i,t.y),i=Fm(i,t.y+t.height),[r,i]})}function ite(e,t){var n=Nm(e.x,t.x),r=Fm(e.x+e.width,t.x+t.width),i=Nm(e.y,t.y),o=Fm(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function iC(e,t,n){var r=Pe({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),nn(i,n),new ol(r)):nC(e.replace("path://",""),r,n,"center")}function ote(e,t,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var _=R1(d,g,c,f)/p;return!(_<0||_>1)}function R1(e,t,n,r){return e*r-n*t}function ate(e){return e<=1e-6&&e>=-1e-6}function oC(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=qe(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&G(Cn(l),function(c){qc(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=fn(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:nn({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function RR(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function aC(e,t){if(e)if(ze(e))for(var n=0;n1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,a)}else u===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},i={},o=[],a=[];this._initIndexMap(t,r,o,"_oldKeyGetter"),this._initIndexMap(n,i,a,"_newKeyGetter");for(var s=0;s1&&p===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&p>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&p===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&p>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var d=0;d1)for(var s=0;sy&&(y=S)}d[0]=g,d[1]=y}},i=function(){return this._data?this._data.length/this._dimSize:0};BR=(t={},t[ii+"_"+Va]={pure:!0,appendData:o},t[ii+"_"+lf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[aa]={pure:!0,appendData:o},t[Za]={pure:!0,appendData:function(a){var s=this._data;G(a,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[eo]={appendData:o},t[Us]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;si?-this._resultLT:0},e}(),j0="undefined",Ote=typeof Uint32Array===j0?Array:Uint32Array,kte=typeof Uint16Array===j0?Array:Uint16Array,sF=typeof Int32Array===j0?Array:Int32Array,zR=typeof Float64Array===j0?Array:Float64Array,lF={float:zR,int:sF,ordinal:Array,number:Array,time:zR},O1;function jf(e){return e>65535?Ote:kte}function Zu(){return[1/0,-1/0]}function Nte(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function GR(e,t,n,r,i){var o=lF[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u_[1]&&(_[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=ct(a,function(b){return b.property}),c=0;cm[1]&&(m[1]=_)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)o=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(t,n,r){var i=this._chunks,o=i[t],a=[];if(!o)return a;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=g,l=d,u=0),d===l&&(a[u++]=c))}return a.length=u,a},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){t=new r(i);for(var o=0;o=f&&b<=p||isNaN(b))&&(l[u++]=y),y++}g=!0}else if(o===2){for(var _=d[i[0]],S=d[i[1]],x=t[i[1]][0],E=t[i[1]][1],m=0;m=f&&b<=p||isNaN(b))&&(T>=x&&T<=E||isNaN(T))&&(l[u++]=y),y++}g=!0}}if(!g)if(o===1)for(var m=0;m=f&&b<=p||isNaN(b))&&(l[u++]=A)}else for(var m=0;mt[O][1])&&(D=!1)}D&&(l[u++]=n.getRawIndex(m))}return um[1]&&(m[1]=_)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),i=r._chunks,o=i[t],a=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,p,d=new(jf(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));d[s++]=u;for(var g=1;gc&&(c=f,p=x)}k>0&&kc-g&&(l=c-g,s.length=l);for(var y=0;yf[1]&&(f[1]=m),p[d++]=b}return o._count=d,o._indices=p,o._updateGetRawIdx(),o},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,i=this._chunks,o=0,a=this.count();ol&&(l=f)}return a=[s,l],this._extent[t]=a,a},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,o=0;o=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,i,o){return Vg(n[o],this._dimensions[o])}O1={arrayRows:t,objectRows:function(n,r,i,o){return Vg(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return Vg(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}}(),e}(),Fte=Kn(),$te={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},uF=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=hF(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Ot(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=nF(this.source),r=!dF(t),i="",o=[],a=0,s=0;a30}var qf=it,gs=ct,Bte=typeof Int32Array>"u"?Array:Int32Array,Vte="e\0\0",WR=-1,Hte=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Ute=["_approximateExtent"],YR,Nv,Xf,Kf,k1,Fv,N1,zte=function(){function e(t,n){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 r,i=!1;cF(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var o={},a=[],s={},l=!1,u={},c=0;c=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===eo;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var o=i[n];return o==null&&(o=this.getVisual(n),ze(o)?o=o.slice():qf(o)&&(o=Pe({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,qf(n)?Pe(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){qf(t)?Pe(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?Pe(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;qJ(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){G(this._graphicEls,function(r,i){r&&t&&t.call(n,r,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:gs(this.dimensions,this._getDimInfo,this),this.hostModel)),k1(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];wt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(Ox(arguments)))})},e.internalField=function(){YR=function(t){var n=t._invertedIndicesMap;G(n,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=n[i]=new Bte(a.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[n]=l}}}(),e}();function Gte(e,t){uC(e)||(e=eF(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Rt(),o=[],a=Yte(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&dF(a),l=r===e.dimensionsDefine,u=l?hF(e):fF(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var f=Rt(c),p=new sF(a),d=0;d0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function Yte(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return G(t,function(o){var a;it(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function jte(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var F1={},fC=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];G(F1,function(i,o){var a=i.create(t,n);r=r.concat(a||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){G(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){F1[t]=n},e.get=function(t){return F1[t]},e}(),qte=function(){function e(t){this.coordSysDims=[],this.axisMap=Rt(),this.categoryAxisMap=Rt(),this.coordSysName=t}return e}();function Xte(e){var t=e.get("coordinateSystem"),n=new qte(t),r=Kte[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Kte={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",yo).models[0],o=e.getReferringComponents("yAxis",yo).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Qu(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),Qu(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",yo).models[0];t.coordSysDims=["single"],n.set("single",i),Qu(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",yo).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Qu(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),Qu(a)&&(r.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();G(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),Qu(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Qu(e){return e.get("type")==="category"}function Zte(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;Qte(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,p;if(G(o,function(b,S){qe(b)&&(o[S]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!i||i===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,p="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,g=c.type,y=0;G(o,function(b){b.coordDim===d&&y++});var _={name:f,coordDim:d,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},m={name:p,coordDim:p,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(_.storeDimIndex=s.ensureCalculationDimension(p,g),m.storeDimIndex=s.ensureCalculationDimension(f,g)),a.appendCalculationDimension(_),a.appendCalculationDimension(m)):(o.push(_),o.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:p,stackResultDimension:f}}function Qte(e){return!cF(e.schema)}function Id(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Jte(e,t){return Id(e,t)?e.getCalculationInfo("stackResultDimension"):t}function ene(e,t){var n=e.get("coordinateSystem"),r=fC.get(n),i;return t&&t.coordSysDims&&(i=ct(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=Ite(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function tne(e,t,n){var r,i;return n&&G(e,function(o,a){var s=o.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function nne(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;i=r.getSource(),o=i.sourceFormat===eo;var a=Xte(t),s=ene(t,a),l=n.useEncodeDefaulter,u=wt(l)?l:l?tr(wte,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=Gte(i,c),p=tne(f.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(f),g=Zte(t,{schema:f,store:d}),y=new zte(f,t);y.setCalculationInfo(g);var _=p!=null&&rne(i)?function(m,b,S,x){return x===p?S:this.defaultDimValueGetter(m,b,S,x)}:null;return y.hasItemOption=!1,y.initData(o?i:d,null,_),y}function rne(e){if(e.sourceFormat===eo){var t=ine(e.data||[]);return!ze(Qd(t))}}function ine(e){for(var t=0;t=0&&s.push(l)}),s}}function lne(e,t){return Kt(Kt({},e,!0),t,!0)}var une=Math.log(2);function qb(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function hne(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,p=c.left,d=c.top;a.push(p,d),l=l&&o&&p===o[f]&&d===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?jR(s,a):jR(a,s))}function pF(e){return e.nodeName.toUpperCase()==="CANVAS"}var dne=/([&<>"'])/g,pne={"&":"&","<":"<",">":">",'"':""","'":"'"};function _i(e){return e==null?"":(e+"").replace(dne,function(t,n){return pne[n]})}const vne={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:". "}}}},gne={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 $m="ZH",hC="EN",kc=hC,Hg={},dC={},vF=vt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||kc).toUpperCase();return e.indexOf($m)>-1?$m:kc}():kc;function gF(e,t){e=e.toUpperCase(),dC[e]=new On(t),Hg[e]=t}function mne(e){if(qe(e)){var t=Hg[e.toUpperCase()]||{};return e===$m||e===hC?Nt(t):Kt(Nt(t),Nt(Hg[kc]),!1)}else return Kt(Nt(e),Nt(Hg[kc]),!1)}function yne(e){return dC[e]}function _ne(){return dC[kc]}gF(hC,vne);gF($m,gne);var pC=1e3,vC=pC*60,Jh=vC*60,qi=Jh*24,XR=qi*365,bh={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}"},$v="{yyyy}-{MM}-{dd}",KR={year:"{yyyy}",month:"{yyyy}-{MM}",day:$v,hour:$v+" "+bh.hour,minute:$v+" "+bh.minute,second:$v+" "+bh.second,millisecond:bh.none},B1=["year","month","day","hour","minute","second","millisecond"],mF=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ms(e,t){return e+="","0000".substr(0,t-e.length)+e}function Nc(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 wne(e){return e===Nc(e)}function bne(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function X0(e,t,n,r){var i=ja(e),o=i[gC(n)](),a=i[Fc(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[K0(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Pd(n)](),f=(c-1)%12+1,p=i[Z0(n)](),d=i[Q0(n)](),g=i[J0(n)](),y=c>=12?"pm":"am",_=y.toUpperCase(),m=r instanceof On?r:yne(r||vF)||_ne(),b=m.getModel("time"),S=b.get("month"),x=b.get("monthAbbr"),E=b.get("dayOfWeek"),T=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,y+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,ms(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,ms(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ms(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,E[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ms(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ms(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,ms(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,ms(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,ms(g,3)).replace(/{S}/g,g+"")}function Sne(e,t,n,r,i){var o=null;if(qe(n))o=n;else if(wt(n))o=n(e.value,t,{level:e.level});else{var a=Pe({},bh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ze(o)){var f=e.level==null?0:e.level>=0?e.level:o.length+e.level;f=Math.min(f,o.length-1),o=o[f]}}return X0(new Date(e.value),o,i,r)}function yF(e,t){var n=ja(e),r=n[Fc(t)]()+1,i=n[K0(t)](),o=n[Pd(t)](),a=n[Z0(t)](),s=n[Q0(t)](),l=n[J0(t)](),u=l===0,c=u&&s===0,f=c&&a===0,p=f&&o===0,d=p&&i===1,g=d&&r===1;return g?"year":d?"month":p?"day":f?"hour":c?"minute":u?"second":"millisecond"}function ZR(e,t,n){var r=Tn(e)?ja(e):e;switch(t=t||yF(e,n),t){case"year":return r[gC(n)]();case"half-year":return r[Fc(n)]()>=6?1:0;case"quarter":return Math.floor((r[Fc(n)]()+1)/4);case"month":return r[Fc(n)]();case"day":return r[K0(n)]();case"half-day":return r[Pd(n)]()/24;case"hour":return r[Pd(n)]();case"minute":return r[Z0(n)]();case"second":return r[Q0(n)]();case"millisecond":return r[J0(n)]()}}function gC(e){return e?"getUTCFullYear":"getFullYear"}function Fc(e){return e?"getUTCMonth":"getMonth"}function K0(e){return e?"getUTCDate":"getDate"}function Pd(e){return e?"getUTCHours":"getHours"}function Z0(e){return e?"getUTCMinutes":"getMinutes"}function Q0(e){return e?"getUTCSeconds":"getSeconds"}function J0(e){return e?"getUTCMilliseconds":"getMilliseconds"}function xne(e){return e?"setUTCFullYear":"setFullYear"}function _F(e){return e?"setUTCMonth":"setMonth"}function wF(e){return e?"setUTCDate":"setDate"}function bF(e){return e?"setUTCHours":"setHours"}function SF(e){return e?"setUTCMinutes":"setMinutes"}function xF(e){return e?"setUTCSeconds":"setSeconds"}function CF(e){return e?"setUTCMilliseconds":"setMilliseconds"}function TF(e){if(!PJ(e))return qe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function EF(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var ey=Wk;function Kb(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Wo(c)?c:"-"}function o(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var a=t==="time",s=e instanceof Date;if(a||s){var l=a?ja(e):e;if(isNaN(+l)){if(s)return"-"}else return X0(l,r,n)}if(t==="ordinal")return xb(e)?i(e):Tn(e)&&o(e)?e+"":"-";var u=Im(e);return o(u)?TF(u):xb(e)?i(e):typeof e=="boolean"?e+"":"-"}var QR=["a","b","c","d","e","f","g"],V1=function(e,t){return"{"+e+(t??"")+"}"};function AF(e,t,n){ze(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function wu(e,t){return t=t||"transparent",qe(e)?e:it(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var Ug=G,Tne=["left","right","top","bottom","width","height"],Bv=[["width","left","right"],["height","top","bottom"]];function mC(e,t,n,r,i){var o=0,a=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),p=f&&f.getBoundingRect(),d,g;if(e==="horizontal"){var y=c.width+(p?-p.x+c.x:0);d=o+y,d>r||l.newline?(o=0,d=y,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var _=c.height+(p?-p.y+c.y:0);g=a+_,g>i||l.newline?(o+=s+n,a=0,g=_,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=d+n:a=g+n)})}var ed=mC;tr(mC,"vertical");tr(mC,"horizontal");function Bm(e,t,n){n=ey(n||0);var r=t.width,i=t.height,o=kr(e.left,r),a=kr(e.top,i),s=kr(e.right,r),l=kr(e.bottom,i),u=kr(e.width,r),c=kr(e.height,i),f=n[2]+n[0],p=n[1]+n[3],d=e.aspect;switch(isNaN(u)&&(u=r-s-p-o),isNaN(c)&&(c=i-l-f-a),d!=null&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=r-s-u-p),isNaN(a)&&(a=i-l-c-f),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-p;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-f;break}o=o||0,a=a||0,isNaN(u)&&(u=r-p-o-(s||0)),isNaN(c)&&(c=i-f-a-(l||0));var g=new Zt(o+n[3],a+n[0],u,c);return g.margin=n,g}function Ld(e){var t=e.layoutMode||e.constructor.layoutMode;return it(t)?t:t?{type:t}:null}function Zc(e,t,n){var r=n&&n.ignoreSize;!ze(r)&&(r=[r,r]);var i=a(Bv[0],0),o=a(Bv[1],1);u(Bv[0],e,i),u(Bv[1],e,o);function a(c,f){var p={},d=0,g={},y=0,_=2;if(Ug(c,function(S){g[S]=e[S]}),Ug(c,function(S){s(t,S)&&(p[S]=g[S]=t[S]),l(p,S)&&d++,l(g,S)&&y++}),r[f])return l(t,c[1])?g[c[2]]=null:l(t,c[2])&&(g[c[1]]=null),g;if(y===_||!d)return g;if(d>=_)return p;for(var m=0;m=0;l--)s=Kt(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return Jd(this.ecModel,n,{index:this.get(i,!0),id:this.get(o,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(On);Kk(on,On);O0(on);ane(on);sne(on,Mne);function Mne(e){var t=[];return G(on.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=ct(t,function(n){return Yo(n).main}),e!=="dataset"&&an(t,"dataset")<=0&&t.unshift("dataset"),t}var JR=Kn();Kn();var yC=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=Nr(this.get("color",!0)),o=this.get("colorLayer",!0);return Dne(this,JR,i,o,t,n,r)},e.prototype.clearColorPalette=function(){Ine(this,JR)},e}();function Rne(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function Dne(e,t,n,r,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=a==null||!r?n:Rne(r,a);if(c=c||n,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function Ine(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Pne=/\{@(.+?)\}/g,Lne=function(){function e(){}return e.prototype.getDataParams=function(t,n){var r=this.getData(n),i=this.getRawValue(t,n),o=r.getRawIndex(t),a=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),u=l&&l[r.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,p=f==="series",d=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,i,o,a){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(a&&(l.value=a.interpolatedValue),i!=null&&ze(l.value)&&(l.value=l.value[i]),!o){var u=s.getItemModel(t);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(wt(o))return l.status=n,l.dimensionIndex=i,o(l);if(qe(o)){var c=AF(o,l);return c.replace(Pne,function(f,p){var d=p.length,g=p;g.charAt(0)==="["&&g.charAt(d-1)==="]"&&(g=+g.slice(1,d-1));var y=Kc(s,t,g);if(a&&ze(a.interpolatedValue)){var _=s.getDimensionIndex(g);_>=0&&(y=a.interpolatedValue[_])}return y!=null?y+"":""})}},e.prototype.getRawValue=function(t,n){return Kc(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function eD(e){var t,n;return it(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function td(e){return new One(e)}var One=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 n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");function c(b){return!(b>=1)&&(b=1),b}var f;(this._dirty||o==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var p=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,g=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(f||d1&&r>0?s:a}};return o;function a(){return t=e?null:l9e10&&(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,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(Vv(t)){var a=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,o=[c._getVersionSign()]}else s=a.get("data",!0),l=ni(s)?Us:eo,o=[];var f=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},d=Ot(f.seriesLayoutBy,p.seriesLayoutBy)||null,g=Ot(f.sourceHeader,p.sourceHeader),y=Ot(f.dimensions,p.dimensions),_=d!==p.seriesLayoutBy||!!g!=!!p.sourceHeader||y;i=_?[Yb(s,{seriesLayoutBy:d,sourceHeader:g,dimensions:y},l)]:[]}else{var m=t;if(r){var b=this._applyTransform(n);i=b.sourceList,o=b.upstreamSignList}else{var S=m.get("source",!0);i=[Yb(S,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(i,o)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(i!=null){var o="";t.length!==1&&nD(o)}var a,s=[],l=[];return G(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&nD(f),s.push(c),l.push(u._getVersionSign())}),r?a=Une(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[xte(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var mQ=af(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function yQ(e){return gQ(e)?!!mQ[e]:!0}function nN(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=0;fn:i+c+d>n){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=p,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=d)):g?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d));continue}c+=d,g?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p)}return!o.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),o.length===1&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}function sf(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function _Q(e){return[e[0],e[1]]}function RM(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function wQ(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function bQ(e){return Math.sqrt(SQ(e))}function SQ(e){return e[0]*e[0]+e[1]*e[1]}function o1(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function xQ(e,t){var n=bQ(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Ab(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var CQ=Ab;function TQ(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Lc=TQ;function Ki(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function hc(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function dc(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var DM=kx,IM=5e-5;function xl(e){return e>IM||e<-IM}var Cl=[],Gu=[],a1=Ic(),s1=Math.abs,Vx=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 xl(this.rotation)||xl(this.x)||xl(this.y)||xl(this.scaleX-1)||xl(this.scaleY-1)||xl(this.skewX)||xl(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(DM(r),this.invTransform=null);return}r=r||Ic(),n?this.getLocalTransform(r):DM(r),t&&(n?Pc(r,t,r):lQ(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Cl);var r=Cl[0]<0?-1:1,i=Cl[1]<0?-1:1,o=((Cl[0]-r)*n+r)/Cl[0]||0,a=((Cl[1]-i)*n+i)/Cl[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||Ic(),Fx(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),o=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ic(),Pc(Gu,t.invTransform,n),n=Gu);var r=this.originX,i=this.originY;(r||i)&&(a1[4]=r,a1[5]=i,Pc(Gu,n,a1),Gu[4]-=r,Gu[5]-=i,n=Gu),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],i=this.invTransform;return i&&Ki(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&Ki(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&s1(t[0]-1)>1e-10&&s1(t[3]-1)>1e-10?Math.sqrt(s1(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){EQ(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,p=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var g=r+s,y=i+l;n[4]=-g*o-p*y*a,n[5]=-y*a-d*g*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=d*o,n[2]=p*a,u&&Nx(n,n,u),n[4]+=r+c,n[5]+=i+f,n},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}(),Rd=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function EQ(e,t){for(var n=0;n-Cm&&eCm||e<-Cm}function lr(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function LM(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function Tm(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,f=s*l-9*a*u,p=l*l-3*s*u,d=0;if(Ns(c)&&Ns(f))if(Ns(s))o[0]=0;else{var g=-l/s;g>=0&&g<=1&&(o[d++]=g)}else{var y=f*f-4*c*p;if(Ns(y)){var _=f/c,g=-s/a+_,m=-_/2;g>=0&&g<=1&&(o[d++]=g),m>=0&&m<=1&&(o[d++]=m)}else if(y>0){var b=Vs(y),S=c*s+1.5*a*(-f+b),x=c*s+1.5*a*(-f-b);S<0?S=-bv(-S,Sv):S=bv(S,Sv),x<0?x=-bv(-x,Sv):x=bv(x,Sv);var g=(-s-(S+x))/(3*a);g>=0&&g<=1&&(o[d++]=g)}else{var E=(2*c*s-3*a*f)/(2*Vs(c*c*c)),T=Math.acos(E)/3,A=Vs(c),D=Math.cos(T),g=(-s-2*A*D)/(3*a),m=(-s+A*(D+PM*Math.sin(T)))/(3*a),P=(-s+A*(D-PM*Math.sin(T)))/(3*a);g>=0&&g<=1&&(o[d++]=g),m>=0&&m<=1&&(o[d++]=m),P>=0&&P<=1&&(o[d++]=P)}}return d}function oN(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Ns(a)){if(iN(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Ns(c))i[0]=-o/(2*a);else if(c>0){var f=Vs(c),u=(-o+f)/(2*a),p=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function Em(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,f=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=r}function AQ(e,t,n,r,i,o,a,s,l,u,c){var f,p=.005,d=1/0,g,y,_,m;Uo[0]=l,Uo[1]=u;for(var b=0;b<1;b+=.05)Gi[0]=lr(e,n,i,a,b),Gi[1]=lr(t,r,o,s,b),_=Lc(Uo,Gi),_=0&&_=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Ns(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Vs(c),u=(-a+f)/(2*o),p=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function aN(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Am(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function DQ(e,t,n,r,i,o,a,s,l){var u,c=.005,f=1/0;Uo[0]=a,Uo[1]=s;for(var p=0;p<1;p+=.05){Gi[0]=qr(e,n,i,p),Gi[1]=qr(t,r,o,p);var d=Lc(Uo,Gi);d=0&&d=1?1:Tm(0,r,o,1,l,s)&&lr(0,i,a,1,s[0])}}}var LQ=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||Jr,this.ondestroy=t.ondestroy||Jr,this.onrestart=t.onrestart||Jr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=t-this._startTime-this._pausedTime,o=i/r;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=i%r;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=wt(t)?t:Yh[t]||sN(t)},e}(),kM={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 Hs(e){return e=Math.round(e),e<0?0:e>255?255:e}function Mb(e){return e<0?0:e>1?1:e}function l1(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Hs(parseFloat(t)/100*255):Hs(parseInt(t,10))}function jh(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Mb(parseFloat(t)/100):Mb(parseFloat(t))}function u1(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function xv(e,t,n){return e+(t-e)*n}function $i(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Rb(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var lN=new Zd(20),Cv=null;function Wu(e,t){Cv&&Rb(Cv,t),Cv=lN.put(e,Cv||t.slice())}function Ba(e,t){if(e){t=t||[];var n=lN.get(e);if(n)return Rb(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in kM)return Rb(t,kM[r]),Wu(e,t),t;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(r.slice(1,4),16);if(!(o>=0&&o<=4095)){$i(t,0,0,0,1);return}return $i(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Wu(e,t),t}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){$i(t,0,0,0,1);return}return $i(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),Wu(e,t),t}return}var a=r.indexOf("("),s=r.indexOf(")");if(a!==-1&&s+1===i){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?$i(t,+u[0],+u[1],+u[2],1):$i(t,0,0,0,1);c=jh(u.pop());case"rgb":if(u.length>=3)return $i(t,l1(u[0]),l1(u[1]),l1(u[2]),u.length===3?c:jh(u[3])),Wu(e,t),t;$i(t,0,0,0,1);return;case"hsla":if(u.length!==4){$i(t,0,0,0,1);return}return u[3]=jh(u[3]),NM(u,t),Wu(e,t),t;case"hsl":if(u.length!==3){$i(t,0,0,0,1);return}return NM(u,t),Wu(e,t),t;default:return}}$i(t,0,0,0,1)}}function NM(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=jh(e[1]),i=jh(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return t=t||[],$i(t,Hs(u1(a,o,n+1/3)*255),Hs(u1(a,o,n)*255),Hs(u1(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function FM(e,t){var n=Ba(e);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-t)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return N0(n,n.length===4?"rgba":"rgb")}}function OQ(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=Ba(t[i]),s=Ba(t[o]),l=r-i,u=N0([Hs(xv(a[0],s[0],l)),Hs(xv(a[1],s[1],l)),Hs(xv(a[2],s[2],l)),Mb(xv(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function N0(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function Mm(e,t){var n=Ba(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var $M=new Zd(100);function BM(e){if(qe(e)){var t=$M.get(e);return t||(t=FM(e,-.1),$M.put(e,t)),t}else if(P0(e)){var n=Pe({},e);return n.colorStops=ct(e.colorStops,function(r){return{offset:r.offset,color:FM(r.color,-.1)}}),n}return e}function kQ(e){return e.type==="linear"}function NQ(e){return e.type==="radial"}(function(){return vt.hasGlobalWindow&&wt(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Db=Array.prototype.slice;function Ea(e,t,n){return(t-e)*n+e}function c1(e,t,n,r){for(var i=t.length,o=0;or?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=HM,l=n;if(ti(n)){var u=VQ(n);s=u,(u===1&&!Tn(n[0])||u===2&&!Tn(n[0][0]))&&(a=!0)}else if(Tn(n)&&!xm(n))s=Ev;else if(qe(n))if(!isNaN(+n))s=Ev;else{var c=Ba(n);c&&(l=c,s=yh)}else if(P0(n)){var f=Pe({},l);f.colorStops=ct(n.colorStops,function(d){return{offset:d.offset,color:Ba(d.color)}}),kQ(n)?s=Ib:NQ(n)&&(s=Pb),l=f}o===0?this.valType=s:(s!==this.valType||s===HM)&&(a=!0),this.discrete=this.discrete||a;var p={time:t,value:l,rawValue:n,percent:0};return r&&(p.easing=r,p.easingFunc=wt(r)?r:Yh[r]||sN(r)),i.push(p),p},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(y,_){return y.time-_.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=Av(i),u=UM(i),c=0;c=0&&!(a[c].percent<=n);c--);c=p(c,s-2)}else{for(c=f;cn);c++);c=p(c-1,s-2)}g=a[c+1],d=a[c]}if(d&&g){this._lastFr=c,this._lastFrP=n;var _=g.percent-d.percent,m=_===0?1:p((n-d.percent)/_,1);g.easingFunc&&(m=g.easingFunc(m));var b=r?this._additiveValue:u?Uf:t[l];if((Av(o)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=m<1?d.rawValue:g.rawValue;else if(Av(o))o===Fg?c1(b,d[i],g[i],m):FQ(b,d[i],g[i],m);else if(UM(o)){var S=d[i],x=g[i],E=o===Ib;t[l]={type:E?"linear":"radial",x:Ea(S.x,x.x,m),y:Ea(S.y,x.y,m),colorStops:ct(S.colorStops,function(A,D){var P=x.colorStops[D];return{offset:Ea(A.offset,P.offset,m),color:Ng(c1([],A.color,P.color,m))}}),global:x.global},E?(t[l].x2=Ea(S.x2,x.x2,m),t[l].y2=Ea(S.y2,x.y2,m)):t[l].r=Ea(S.r,x.r,m)}else if(u)c1(b,d[i],g[i],m),r||(t[l]=Ng(b));else{var T=Ea(d[i],g[i],m);r?this._additiveValue=T:t[l]=T}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,i=this._additiveValue;n===Ev?t[r]=t[r]+i:n===yh?(Ba(t[r],Uf),Tv(Uf,Uf,i,1),t[r]=Ng(Uf)):n===Fg?Tv(t[r],t[r],i,1):n===uN&&VM(t[r],t[r],i,1)},e}(),Hx=function(){function e(t,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&i){Px("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}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,n,r){return this.whenWithKeys(t,n,Cn(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var o=this._tracks,a=0;a0&&l.addKeyframe(0,kg(u),i),this._trackKeys.push(s)}l.addKeyframe(t,kg(n[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 n=t.length,r=0;r0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}(),oa=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!t)return this;var a=this._$eventProcessor;n!=null&&a&&a.normalizeQuery&&(n=a.normalizeQuery(n)),o[t]||(o[t]=[]);for(var s=0;s=0:r.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,b=void 0,S=void 0;y&&this.canBeInsideText()?(m=r.insideFill,b=r.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(m),S=!0)):(m=r.outsideFill,b=r.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(m),S=!0)),m=m||"#000",(m!==_.fill||b!==_.stroke||S!==_.autoStroke||a!==_.align||s!==_.verticalAlign)&&(l=!0,_.fill=m,_.stroke=b,_.autoStroke=S,_.align=a,_.verticalAlign=s,n.setDefaultTextStyle(_)),n.__dirty|=_i,l&&n.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()?kb:Ob},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Ba(n);r||(r=[255,255,255,1]);for(var i=r[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*i+(o?0:255)*(1-i);return r[3]=1,N0(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},Pe(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(it(t))for(var r=t,i=Cn(r),o=0;o0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(f1,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===f1,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(an(s,t)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!o){Px("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,p=this._textGuide;return f&&f.useState(t,n,r,c),p&&p.useState(t,n,r,c),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_i),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var i=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l0,g);var y=this._textContent,_=this._textGuide;y&&y.useStates(t,n,p),_&&_.useStates(t,n,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_i)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),o=an(i,t),a=an(i,n)>=0;o>=0?a?i.splice(o,1):i[o]=n:r&&!a&&i.push(n),this.useStates(i)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,i=0;i=0&&o.splice(a,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,o=[],a=0;a0&&n.during&&o[0].during(function(g,y){n.during(y)});for(var p=0;p0||i.force&&!a.length){var D=void 0,P=void 0,O=void 0;if(s){P={},p&&(D={});for(var x=0;x1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(Mv[0]=y1(i)*n+e,Mv[1]=m1(i)*r+t,Rv[0]=y1(o)*n+e,Rv[1]=m1(o)*r+t,u(s,Mv,Rv),c(l,Mv,Rv),i=i%Tl,i<0&&(i=i+Tl),o=o%Tl,o<0&&(o=o+Tl),i>o&&!a?o+=Tl:ii&&(Dv[0]=y1(d)*n+e,Dv[1]=m1(d)*r+t,u(s,Dv,s),c(l,Dv,l))}var jt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},El=[],Al=[],ko=[],ps=[],No=[],Fo=[],_1=Math.min,w1=Math.max,Ml=Math.cos,Rl=Math.sin,ba=Math.abs,Fb=Math.PI,xs=Fb*2,b1=typeof Float32Array<"u",zf=[];function S1(e){var t=Math.round(e/Fb*1e8)/1e8;return t%2*Fb}function eJ(e,t){var n=S1(e[0]);n<0&&(n+=xs);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=xs?i=n+xs:t&&n-i>=xs?i=n-xs:!t&&n>i?i=n+(xs-S1(n-i)):t&&n0&&(this._ux=ba(r/Rm/t)||0,this._uy=ba(r/Rm/n)||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,n){return this._drawPendingPt(),this.addData(jt.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=ba(t-this._xi),i=ba(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(jt.L,t,n),this._ctx&&o&&this._ctx.lineTo(t,n),o)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var a=r*r+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,n,r,i,o,a){return this._drawPendingPt(),this.addData(jt.C,t,n,r,i,o,a),this._ctx&&this._ctx.bezierCurveTo(t,n,r,i,o,a),this._xi=o,this._yi=a,this},e.prototype.quadraticCurveTo=function(t,n,r,i){return this._drawPendingPt(),this.addData(jt.Q,t,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,i),this._xi=r,this._yi=i,this},e.prototype.arc=function(t,n,r,i,o,a){this._drawPendingPt(),zf[0]=i,zf[1]=o,eJ(zf,a),i=zf[0],o=zf[1];var s=o-i;return this.addData(jt.A,t,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,r,i,o,a),this._xi=Ml(o)*r+t,this._yi=Rl(o)*r+n,this},e.prototype.arcTo=function(t,n,r,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,i,o),this},e.prototype.rect=function(t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,i),this.addData(jt.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(jt.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,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 n=t.length;!(this.data&&this.data.length===n)&&b1&&(this.data=new Float32Array(n));for(var r=0;rc.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=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ko[0]=ko[1]=No[0]=No[1]=Number.MAX_VALUE,ps[0]=ps[1]=Fo[0]=Fo[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,o=0,a;for(a=0;ar||ba(S)>i||p===n-1)&&(y=Math.sqrt(b*b+S*S),o=_,a=m);break}case jt.C:{var x=t[p++],E=t[p++],_=t[p++],m=t[p++],T=t[p++],A=t[p++];y=MQ(o,a,x,E,_,m,T,A,10),o=T,a=A;break}case jt.Q:{var x=t[p++],E=t[p++],_=t[p++],m=t[p++];y=IQ(o,a,x,E,_,m,10),o=_,a=m;break}case jt.A:var D=t[p++],P=t[p++],O=t[p++],k=t[p++],H=t[p++],te=t[p++],W=te+H;p+=1,g&&(s=Ml(H)*O+D,l=Rl(H)*k+P),y=w1(O,k)*_1(xs,Math.abs(te)),o=Ml(W)*O+D,a=Rl(W)*k+P;break;case jt.R:{s=o=t[p++],l=a=t[p++];var q=t[p++],j=t[p++];y=q*2+j*2;break}case jt.Z:{var b=s-o,S=l-a;y=Math.sqrt(b*b+S*S),o=s,a=l;break}}y>=0&&(u[f++]=y,c+=y)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,i=this._ux,o=this._uy,a=this._len,s,l,u,c,f,p,d=n<1,g,y,_=0,m=0,b,S=0,x,E;if(!(d&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,y=this._pathLen,b=n*y,!b)))e:for(var T=0;T0&&(t.lineTo(x,E),S=0),A){case jt.M:s=u=r[T++],l=c=r[T++],t.moveTo(u,c);break;case jt.L:{f=r[T++],p=r[T++];var P=ba(f-u),O=ba(p-c);if(P>i||O>o){if(d){var k=g[m++];if(_+k>b){var H=(b-_)/k;t.lineTo(u*(1-H)+f*H,c*(1-H)+p*H);break e}_+=k}t.lineTo(f,p),u=f,c=p,S=0}else{var te=P*P+O*O;te>S&&(x=f,E=p,S=te)}break}case jt.C:{var W=r[T++],q=r[T++],j=r[T++],ie=r[T++],J=r[T++],ce=r[T++];if(d){var k=g[m++];if(_+k>b){var H=(b-_)/k;Em(u,W,j,J,H,El),Em(c,q,ie,ce,H,Al),t.bezierCurveTo(El[1],Al[1],El[2],Al[2],El[3],Al[3]);break e}_+=k}t.bezierCurveTo(W,q,j,ie,J,ce),u=J,c=ce;break}case jt.Q:{var W=r[T++],q=r[T++],j=r[T++],ie=r[T++];if(d){var k=g[m++];if(_+k>b){var H=(b-_)/k;Am(u,W,j,H,El),Am(c,q,ie,H,Al),t.quadraticCurveTo(El[1],Al[1],El[2],Al[2]);break e}_+=k}t.quadraticCurveTo(W,q,j,ie),u=j,c=ie;break}case jt.A:var ye=r[T++],we=r[T++],Ne=r[T++],ke=r[T++],je=r[T++],He=r[T++],We=r[T++],le=!r[T++],Te=Ne>ke?Ne:ke,_e=ba(Ne-ke)>.001,xe=je+He,Ee=!1;if(d){var k=g[m++];_+k>b&&(xe=je+He*(b-_)/k,Ee=!0),_+=k}if(_e&&t.ellipse?t.ellipse(ye,we,Ne,ke,We,je,xe,le):t.arc(ye,we,Te,je,xe,le),Ee)break e;D&&(s=Ml(je)*Ne+ye,l=Rl(je)*ke+we),u=Ml(xe)*Ne+ye,c=Rl(xe)*ke+we;break;case jt.R:s=u=r[T],l=c=r[T+1],f=r[T++],p=r[T++];var De=r[T++],N=r[T++];if(d){var k=g[m++];if(_+k>b){var B=b-_;t.moveTo(f,p),t.lineTo(f+_1(B,De),p),B-=De,B>0&&t.lineTo(f+De,p+_1(B,N)),B-=N,B>0&&t.lineTo(f+w1(De-B,0),p+N),B-=De,B>0&&t.lineTo(f,p+w1(N-B,0));break e}_+=k}t.rect(f,p,De,N);break;case jt.Z:if(d){var k=g[m++];if(_+k>b){var H=(b-_)/k;t.lineTo(u*(1-H)+s*H,c*(1-H)+l*H);break e}_+=k}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=jt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function ju(e,t,n,r,i,o,a){if(i===0)return!1;var s=i,l=0,u=e;if(a>t+s&&a>r+s||ae+s&&o>n+s||ot+f&&c>r+f&&c>o+f&&c>s+f||ce+f&&u>n+f&&u>i+f&&u>a+f||ut+u&&l>r+u&&l>o+u||le+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=Gf);var p=Math.atan2(l,s);return p<0&&(p+=Gf),p>=r&&p<=i||p+Gf>=r&&p+Gf<=i}function Dl(e,t,n,r,i,o){if(o>t&&o>r||oi?s:0}var vs=yu.CMD,Il=Math.PI*2,iJ=1e-4;function oJ(e,t){return Math.abs(e-t)t&&u>r&&u>o&&u>s||u1&&aJ(),d=lr(t,r,o,s,Ui[0]),p>1&&(g=lr(t,r,o,s,Ui[1]))),p===2?_t&&s>r&&s>o||s=0&&u<=1){for(var c=0,f=qr(t,r,o,u),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Pr[0]=-l,Pr[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Il-1e-4){r=0,i=Il;var c=o?1:-1;return a>=Pr[0]+e&&a<=Pr[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=Il,i+=Il);for(var p=0,d=0;d<2;d++){var g=Pr[d];if(g+e>a){var y=Math.atan2(s,g),c=o?1:-1;y<0&&(y=Il+y),(y>=r&&y<=i||y+Il>=r&&y+Il<=i)&&(y>Math.PI/2&&y1&&(n||(s+=Dl(l,u,c,f,r,i))),_&&(l=o[g],u=o[g+1],c=l,f=u),y){case vs.M:c=o[g++],f=o[g++],l=c,u=f;break;case vs.L:if(n){if(ju(l,u,o[g],o[g+1],t,r,i))return!0}else s+=Dl(l,u,o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case vs.C:if(n){if(tJ(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],t,r,i))return!0}else s+=sJ(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case vs.Q:if(n){if(nJ(l,u,o[g++],o[g++],o[g],o[g+1],t,r,i))return!0}else s+=lJ(l,u,o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case vs.A:var m=o[g++],b=o[g++],S=o[g++],x=o[g++],E=o[g++],T=o[g++];g+=1;var A=!!(1-o[g++]);p=Math.cos(E)*S+m,d=Math.sin(E)*x+b,_?(c=p,f=d):s+=Dl(l,u,p,d,r,i);var D=(r-m)*x/S+m;if(n){if(rJ(m,b,x,E,E+T,A,t,D,i))return!0}else s+=uJ(m,b,x,E,E+T,A,D,i);l=Math.cos(E+T)*S+m,u=Math.sin(E+T)*x+b;break;case vs.R:c=l=o[g++],f=u=o[g++];var P=o[g++],O=o[g++];if(p=c+P,d=f+O,n){if(ju(c,f,p,f,t,r,i)||ju(p,f,p,d,t,r,i)||ju(p,d,c,d,t,r,i)||ju(c,d,c,f,t,r,i))return!0}else s+=Dl(p,f,p,d,r,i),s+=Dl(c,d,c,f,r,i);break;case vs.Z:if(n){if(ju(l,u,c,f,t,r,i))return!0}else s+=Dl(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!oJ(u,f)&&(s+=Dl(l,u,c,f,r,i)||0),s!==0}function cJ(e,t,n){return hN(e,0,!1,t,n)}function fJ(e,t,n,r){return hN(e,t,!0,n,r)}var dN=nn({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},cu),hJ={style:nn({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},$0.style)},x1=Rd.concat(["invisible","culling","z","z2","zlevel","parent"]),pn=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){n.buildPath(l,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Ob:r>.2?UQ:kb}else if(n)return kb}return Ob},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(qe(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=Mm(n,0)0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&cc)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),n=a.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.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 n},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect(),a=this.style;if(n=i[0],r=i[1],o.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),fJ(s,l/u,n,r)))return!0}if(this.hasFill())return cJ(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=cc,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:Pe(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&cc)},t.prototype.createStyle=function(n){return L0(dN,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Pe({},this.shape))},t.prototype._applyStateObj=function(n,r,i,o,a,s){e.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),u;if(r&&r.shape?a?o?u=r.shape:(u=Pe({},i.shape),Pe(u,r.shape)):(u=Pe({},o?this.shape:i.shape),Pe(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=Pe({},this.shape);for(var c={},f=Cn(u),p=0;p0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return L0(dJ,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var i=$x(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var o=n.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(Qd);Dm.prototype.type="tspan";var pJ=nn({x:0,y:0},cu),vJ={style:nn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},$0.style)};function gJ(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ol=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return L0(pJ,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=gJ(r.image)?r.image:this.__image;if(!o)return 0;var a=n==="width"?"height":"width",s=r[a];return s==null?o[n]:o[n]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return vJ},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Zt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Qd);ol.prototype.type="image";function mJ(e,t){var n=t.x,r=t.y,i=t.width,o=t.height,a=t.r,s,l,u,c;i<0&&(n=n+i,i=-i),o<0&&(r=r+o,o=-o),typeof a=="number"?s=l=u=c=a:a instanceof Array?a.length===1?s=l=u=c=a[0]:a.length===2?(s=u=a[0],l=c=a[1]):a.length===3?(s=a[0],l=c=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],c=a[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>o&&(f=l+u,l*=o/f,u*=o/f),s+c>o&&(f=s+c,s*=o/f,c*=o/f),e.moveTo(n+s,r),e.lineTo(n+i-l,r),l!==0&&e.arc(n+i-l,r+l,l,-Math.PI/2,0),e.lineTo(n+i,r+o-u),u!==0&&e.arc(n+i-u,r+o-u,u,0,Math.PI/2),e.lineTo(n+c,r+o),c!==0&&e.arc(n+c,r+o-c,c,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var pc=Math.round;function pN(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s&&(pc(r*2)===pc(i*2)&&(e.x1=e.x2=nu(r,s,!0)),pc(o*2)===pc(a*2)&&(e.y1=e.y2=nu(o,s,!0))),e}}function vN(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s&&(e.x=nu(r,s,!0),e.y=nu(i,s,!0),e.width=Math.max(nu(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(nu(i+a,s,!1)-e.y,a===0?0:1)),e}}function nu(e,t,n){if(!t)return e;var r=pc(e*2);return(r+pc(t))%2===0?r/2:(r+(n?1:-1))/2}var yJ=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),_J={},cr=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new yJ},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=vN(_J,r,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,o=r.y,a=r.width,s=r.height;r.r?mJ(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(pn);cr.prototype.type="rect";var qM={fill:"#000"},XM=2,wJ={style:nn({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},$0.style)},ri=function(e){Ve(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=qM,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,H=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),te=a.calculatedLineHeight,W=0;W=0&&(W=T[te],W.align==="right");)this._placeToken(W,n,D,m,H,"right",S),P-=W.width,H-=W.width,te--;for(k+=(o-(k-_)-(b-H)-P)/2;O<=te;)W=T[O],this._placeToken(W,n,D,m,k+W.width/2,"center",S),k+=W.width,O++;m+=D}},t.prototype._placeToken=function(n,r,i,o,a,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=o+i/2;c==="top"?f=o+n.height/2:c==="bottom"&&(f=o+i-n.height/2);var p=!n.isLineHolder&&C1(u);p&&this._renderBackground(u,r,s==="right"?a-n.width:s==="center"?a-n.width/2:a,f-n.height/2,n.width,n.height);var d=!!u.backgroundColor,g=n.textPadding;g&&(a=tR(a,s,g),f-=n.height/2-g[0]-n.innerHeight/2);var y=this._getOrCreateChild(Dm),_=y.createStyle();y.useStyle(_);var m=this._defaultStyle,b=!1,S=0,x=eR("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,m.fill)),E=JM("stroke"in u?u.stroke:"stroke"in r?r.stroke:!d&&!l&&(!m.autoStroke||b)?(S=XM,m.stroke):null),T=u.textShadowBlur>0||r.textShadowBlur>0;_.text=n.text,_.x=a,_.y=f,T&&(_.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,_.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",_.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,_.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),_.textAlign=s,_.textBaseline="middle",_.font=n.font||gu,_.opacity=Og(u.opacity,r.opacity,1),ZM(_,u),E&&(_.lineWidth=Og(u.lineWidth,r.lineWidth,S),_.lineDash=Ot(u.lineDash,r.lineDash),_.lineDashOffset=r.lineDashOffset||0,_.stroke=E),x&&(_.fill=x);var A=n.contentWidth,D=n.contentHeight;y.setBoundingRect(new Zt(mh(_.x,A,_.textAlign),uc(_.y,D,_.textBaseline),A,D))},t.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,p=l&&!f,d=n.borderRadius,g=this,y,_;if(p||n.lineHeight||u&&c){y=this._getOrCreateChild(cr),y.useStyle(y.createStyle()),y.style.fill=null;var m=y.shape;m.x=i,m.y=o,m.width=a,m.height=s,m.r=d,y.dirtyShape()}if(p){var b=y.style;b.fill=l||null,b.fillOpacity=Ot(n.fillOpacity,1)}else if(f){_=this._getOrCreateChild(ol),_.onload=function(){g.dirtyStyle()};var S=_.style;S.image=l.image,S.x=i,S.y=o,S.width=a,S.height=s}if(u&&c){var b=y.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ot(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var x=(y||_).style;x.shadowBlur=n.shadowBlur||0,x.shadowColor=n.shadowColor||"transparent",x.shadowOffsetX=n.shadowOffsetX||0,x.shadowOffsetY=n.shadowOffsetY||0,x.opacity=Og(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return CJ(n)&&(r=[n.fontStyle,n.fontWeight,xJ(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Wo(r)||n.textFont||n.font},t}(Qd),bJ={left:!0,right:1,center:1},SJ={top:1,bottom:1,middle:1},KM=["fontStyle","fontWeight","fontSize","fontFamily"];function xJ(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Rx+"px":e+"px"}function ZM(e,t){for(var n=0;n0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function kr(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 qe(e)?EJ(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Wn(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),gN),e=(+e).toFixed(t),n?e:+e}function ka(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return AJ(e)}function AJ(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function MJ(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function RJ(e,t){var n=Math.max(ka(e),ka(t)),r=e+t;return n>gN?r:Wn(r,n)}function mN(e){var t=Math.PI*2;return(e%t+t)%t}function Im(e){return e>-rR&&e=10&&t++,t}function yN(e,t){var n=Ux(e),r=Math.pow(10,n),i=e/r,o;return i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10,e=o*r,n>=-20?+e.toFixed(n<0?-n:0):e}function Pm(e){var t=parseFloat(e);return t==e&&(t!==0||!qe(e)||e.indexOf("x")<=0)?t:NaN}function PJ(e){return!isNaN(Pm(e))}function _N(){return Math.round(Math.random()*9)}function wN(e,t){return t===0?e:wN(t,e%t)}function oR(e,t){return e==null?t:t==null?e:e*t/wN(e,t)}function Xr(e){throw new Error(e)}function aR(e,t,n){return(t-e)*n+e}var bN="series\0",LJ="\0_ec_\0";function Nr(e){return e instanceof Array?e:e==null?[]:[e]}function sR(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r=0,o=!1;if(e instanceof pn){var a=CN(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(qu(s)||qu(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=Pe({},r),u=Pe({},u),u.fill=s):!qu(u.fill)&&qu(s)?(o=!0,r=Pe({},r),u=Pe({},u),u.fill=BM(s)):!qu(u.stroke)&&qu(l)&&(o||(r=Pe({},r),u=Pe({},u)),u.stroke=BM(l)),r.style=u}}if(r&&r.z2==null){o||(r=Pe({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??XJ)}return r}function tee(e,t,n){if(n&&n.z2==null){n=Pe({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??KJ)}return n}function nee(e,t,n){var r=an(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:JJ(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=Pe({},n),a=Pe({opacity:r?i:o.opacity*.1},a),n.style=a),n}function E1(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return eee(this,e,t,n);if(e==="blur")return nee(this,e,n);if(e==="select")return tee(this,e,n)}return n}function ree(e){e.stateProxy=E1;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=E1),n&&(n.stateProxy=E1)}function pR(e,t){!IN(e,t)&&!e.__highByOuter&&Ka(e,TN)}function vR(e,t){!IN(e,t)&&!e.__highByOuter&&Ka(e,EN)}function Lm(e,t){e.__highByOuter|=1<<(t||0),Ka(e,TN)}function Om(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ka(e,EN)}function iee(e){Ka(e,jx)}function MN(e){Ka(e,AN)}function RN(e){Ka(e,ZJ)}function DN(e){Ka(e,QJ)}function IN(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function PN(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=Wx(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){AN(u)}),s&&n.push(o)),a.isBlured=!1}),G(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function $b(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var f=0;f0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function Vb(e,t,n){LN(e,!0),Ka(e,ree),fee(e,t,n)}function cee(e){LN(e,!1)}function Hb(e,t,n,r){r?cee(e):Vb(e,t,n)}function fee(e,t,n){var r=fn(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var mR=["emphasis","blur","select"],hee={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function yR(e,t,n,r){n=n||"itemStyle";for(var i=0;i1&&(a*=A1(g),s*=A1(g));var y=(i===o?-1:1)*A1((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,_=y*a*d/s,m=y*-s*p/a,b=(e+n)/2+Lv(f)*_-Pv(f)*m,S=(t+r)/2+Pv(f)*_+Lv(f)*m,x=SR([1,0],[(p-_)/a,(d-m)/s]),E=[(p-_)/a,(d-m)/s],T=[(-1*p-_)/a,(-1*d-m)/s],A=SR(E,T);if(Gb(E,T)<=-1&&(A=Wf),Gb(E,T)>=1&&(A=0),A<0){var D=Math.round(A/Wf*1e6)/1e6;A=Wf*2+D%2*Wf}c.addData(u,b,S,a,s,x,A,f,o)}var yee=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,_ee=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function wee(e){var t=new yu;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=yu.CMD,l=e.match(yee);if(!l)return t;for(var u=0;u=0&&(i.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=an(this._children,n);return i>=0&&this.replaceAt(r,i),this},t.prototype.replaceAt=function(n,r){var i=this._children,o=i[r];if(n&&n!==this&&n.parent!==this&&n!==o){i[r]=n,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,i=this._children,o=an(i,n);return o<0?this:(i.splice(o,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;iW*W+q*q&&(D=O,P=k),{cx:D,cy:P,x0:-c,y0:-f,x1:D*(i/E-1),y1:P*(i/E-1)}}function Mee(e){var t;if(ze(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Ree(e,t){var n,r=wh(t.r,0),i=wh(t.r0||0,0),o=r>0,a=i>0;if(!(!o&&!a)){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,p=!!t.clockwise,d=CR(u-l),g=d>M1&&d%M1;if(g>lo&&(d=g),!(r>lo))e.moveTo(c,f);else if(d>M1-lo)e.moveTo(c+r*Ku(l),f+r*Pl(l)),e.arc(c,f,r,l,u,!p),i>lo&&(e.moveTo(c+i*Ku(u),f+i*Pl(u)),e.arc(c,f,i,u,l,p));else{var y=void 0,_=void 0,m=void 0,b=void 0,S=void 0,x=void 0,E=void 0,T=void 0,A=void 0,D=void 0,P=void 0,O=void 0,k=void 0,H=void 0,te=void 0,W=void 0,q=r*Ku(l),j=r*Pl(l),ie=i*Ku(u),J=i*Pl(u),ce=d>lo;if(ce){var ye=t.cornerRadius;ye&&(n=Mee(ye),y=n[0],_=n[1],m=n[2],b=n[3]);var we=CR(r-i)/2;if(S=$o(we,m),x=$o(we,b),E=$o(we,y),T=$o(we,_),P=A=wh(S,x),O=D=wh(E,T),(A>lo||D>lo)&&(k=r*Ku(u),H=r*Pl(u),te=i*Ku(l),W=i*Pl(l),dlo){var _e=$o(m,P),xe=$o(b,P),Ee=Ov(te,W,q,j,r,_e,p),De=Ov(k,H,ie,J,r,xe,p);e.moveTo(c+Ee.cx+Ee.x0,f+Ee.cy+Ee.y0),P0&&e.arc(c+Ee.cx,f+Ee.cy,_e,vr(Ee.y0,Ee.x0),vr(Ee.y1,Ee.x1),!p),e.arc(c,f,r,vr(Ee.cy+Ee.y1,Ee.cx+Ee.x1),vr(De.cy+De.y1,De.cx+De.x1),!p),xe>0&&e.arc(c+De.cx,f+De.cy,xe,vr(De.y1,De.x1),vr(De.y0,De.x0),!p))}else e.moveTo(c+q,f+j),e.arc(c,f,r,l,u,!p);if(!(i>lo)||!ce)e.lineTo(c+ie,f+J);else if(O>lo){var _e=$o(y,O),xe=$o(_,O),Ee=Ov(ie,J,k,H,i,-xe,p),De=Ov(q,j,te,W,i,-_e,p);e.lineTo(c+Ee.cx+Ee.x0,f+Ee.cy+Ee.y0),O0&&e.arc(c+Ee.cx,f+Ee.cy,xe,vr(Ee.y0,Ee.x0),vr(Ee.y1,Ee.x1),!p),e.arc(c,f,i,vr(Ee.cy+Ee.y1,Ee.cx+Ee.x1),vr(De.cy+De.y1,De.cx+De.x1),p),_e>0&&e.arc(c+De.cx,f+De.cy,_e,vr(De.y1,De.x1),vr(De.y0,De.x0),!p))}else e.lineTo(c+ie,f+J),e.arc(c,f,i,u,l,p)}e.closePath()}}}var Dee=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}(),z0=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Dee},t.prototype.buildPath=function(n,r){Ree(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(pn);z0.prototype.type="sector";var Iee=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Kx=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Iee},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.PI*2;n.moveTo(i+r.r,o),n.arc(i,o,r.r,0,a,!1),n.moveTo(i+r.r0,o),n.arc(i,o,r.r0,0,a,!0)},t}(pn);Kx.prototype.type="ring";function Pee(e,t,n,r){var i=[],o=[],a=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var p=0,d=e.length;p=2){if(r){var o=Pee(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[s*2],u=o[s*2+1],c=i[(s+1)%a];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;sOl[1]){if(s=!1,o)return s;var c=Math.abs(Ol[0]-Ll[1]),f=Math.abs(Ll[0]-Ol[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,p=c.delay,d=c.easing,g={duration:f,delay:p||0,easing:d,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};s?t.animateFrom(n,g):t.animateTo(n,g)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function Xs(e,t,n,r,i,o){eC("update",e,t,n,r,i,o)}function tp(e,t,n,r,i,o){eC("enter",e,t,n,r,i,o)}function Qh(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function AR(e){return!e.isGroup}function nte(e){return e.shape!=null}function GN(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){AR(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return nte(a)&&(s.shape=Pe({},a.shape)),s}var o=r(e);t.traverse(function(a){if(AR(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Xs(a,l,n,fn(a).dataIndex)}}})}function rte(e,t){return ct(e,function(n){var r=n[0];r=Fm(r,t.x),r=$m(r,t.x+t.width);var i=n[1];return i=Fm(i,t.y),i=$m(i,t.y+t.height),[r,i]})}function ite(e,t){var n=Fm(e.x,t.x),r=$m(e.x+e.width,t.x+t.width),i=Fm(e.y,t.y),o=$m(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function rC(e,t,n){var r=Pe({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),nn(i,n),new ol(r)):tC(e.replace("path://",""),r,n,"center")}function ote(e,t,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var _=R1(d,g,c,f)/p;return!(_<0||_>1)}function R1(e,t,n,r){return e*r-n*t}function ate(e){return e<=1e-6&&e>=-1e-6}function iC(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=qe(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&G(Cn(l),function(c){qc(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=fn(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:nn({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function MR(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function oC(e,t){if(e)if(ze(e))for(var n=0;n1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,a)}else u===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},i={},o=[],a=[];this._initIndexMap(t,r,o,"_oldKeyGetter"),this._initIndexMap(n,i,a,"_newKeyGetter");for(var s=0;s1&&p===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&p>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&p===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&p>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var d=0;d1)for(var s=0;sy&&(y=S)}d[0]=g,d[1]=y}},i=function(){return this._data?this._data.length/this._dimSize:0};$R=(t={},t[ii+"_"+Va]={pure:!0,appendData:o},t[ii+"_"+lf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[aa]={pure:!0,appendData:o},t[Za]={pure:!0,appendData:function(a){var s=this._data;G(a,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ji]={appendData:o},t[Us]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;si?-this._resultLT:0},e}(),j0="undefined",Ote=typeof Uint32Array===j0?Array:Uint32Array,kte=typeof Uint16Array===j0?Array:Uint16Array,sF=typeof Int32Array===j0?Array:Int32Array,UR=typeof Float64Array===j0?Array:Float64Array,lF={float:UR,int:sF,ordinal:Array,number:Array,time:UR},O1;function jf(e){return e>65535?Ote:kte}function Zu(){return[1/0,-1/0]}function Nte(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function zR(e,t,n,r,i){var o=lF[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u_[1]&&(_[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=ct(a,function(b){return b.property}),c=0;cm[1]&&(m[1]=_)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)o=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(t,n,r){var i=this._chunks,o=i[t],a=[];if(!o)return a;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=g,l=d,u=0),d===l&&(a[u++]=c))}return a.length=u,a},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){t=new r(i);for(var o=0;o=f&&b<=p||isNaN(b))&&(l[u++]=y),y++}g=!0}else if(o===2){for(var _=d[i[0]],S=d[i[1]],x=t[i[1]][0],E=t[i[1]][1],m=0;m=f&&b<=p||isNaN(b))&&(T>=x&&T<=E||isNaN(T))&&(l[u++]=y),y++}g=!0}}if(!g)if(o===1)for(var m=0;m=f&&b<=p||isNaN(b))&&(l[u++]=A)}else for(var m=0;mt[O][1])&&(D=!1)}D&&(l[u++]=n.getRawIndex(m))}return um[1]&&(m[1]=_)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),i=r._chunks,o=i[t],a=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,p,d=new(jf(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));d[s++]=u;for(var g=1;gc&&(c=f,p=x)}k>0&&kc-g&&(l=c-g,s.length=l);for(var y=0;yf[1]&&(f[1]=m),p[d++]=b}return o._count=d,o._indices=p,o._updateGetRawIdx(),o},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,i=this._chunks,o=0,a=this.count();ol&&(l=f)}return a=[s,l],this._extent[t]=a,a},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,o=0;o=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,i,o){return Hg(n[o],this._dimensions[o])}O1={arrayRows:t,objectRows:function(n,r,i,o){return Hg(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return Hg(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}}(),e}(),Fte=Kn(),$te={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},uF=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=hF(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Ot(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=nF(this.source),r=!dF(t),i="",o=[],a=0,s=0;a30}var qf=it,gs=ct,Bte=typeof Int32Array>"u"?Array:Int32Array,Vte="e\0\0",GR=-1,Hte=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Ute=["_approximateExtent"],WR,Fv,Xf,Kf,k1,$v,N1,zte=function(){function e(t,n){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 r,i=!1;cF(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var o={},a=[],s={},l=!1,u={},c=0;c=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===Ji;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var o=i[n];return o==null&&(o=this.getVisual(n),ze(o)?o=o.slice():qf(o)&&(o=Pe({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,qf(n)?Pe(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){qf(t)?Pe(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?Pe(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;qJ(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){G(this._graphicEls,function(r,i){r&&t&&t.call(n,r,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:gs(this.dimensions,this._getDimInfo,this),this.hostModel)),k1(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];wt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(Lx(arguments)))})},e.internalField=function(){WR=function(t){var n=t._invertedIndicesMap;G(n,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=n[i]=new Bte(a.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[n]=l}}}(),e}();function Gte(e,t){lC(e)||(e=eF(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Mt(),o=[],a=Yte(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&dF(a),l=r===e.dimensionsDefine,u=l?hF(e):fF(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var f=Mt(c),p=new sF(a),d=0;d0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function Yte(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return G(t,function(o){var a;it(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function jte(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var F1={},cC=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];G(F1,function(i,o){var a=i.create(t,n);r=r.concat(a||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){G(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){F1[t]=n},e.get=function(t){return F1[t]},e}(),qte=function(){function e(t){this.coordSysDims=[],this.axisMap=Mt(),this.categoryAxisMap=Mt(),this.coordSysName=t}return e}();function Xte(e){var t=e.get("coordinateSystem"),n=new qte(t),r=Kte[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Kte={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",yo).models[0],o=e.getReferringComponents("yAxis",yo).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Qu(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),Qu(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",yo).models[0];t.coordSysDims=["single"],n.set("single",i),Qu(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",yo).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Qu(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),Qu(a)&&(r.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();G(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),Qu(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Qu(e){return e.get("type")==="category"}function Zte(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;Qte(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,p;if(G(o,function(b,S){qe(b)&&(o[S]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!i||i===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,p="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,g=c.type,y=0;G(o,function(b){b.coordDim===d&&y++});var _={name:f,coordDim:d,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},m={name:p,coordDim:p,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(_.storeDimIndex=s.ensureCalculationDimension(p,g),m.storeDimIndex=s.ensureCalculationDimension(f,g)),a.appendCalculationDimension(_),a.appendCalculationDimension(m)):(o.push(_),o.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:p,stackResultDimension:f}}function Qte(e){return!cF(e.schema)}function Pd(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Jte(e,t){return Pd(e,t)?e.getCalculationInfo("stackResultDimension"):t}function ene(e,t){var n=e.get("coordinateSystem"),r=cC.get(n),i;return t&&t.coordSysDims&&(i=ct(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=Ite(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function tne(e,t,n){var r,i;return n&&G(e,function(o,a){var s=o.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function nne(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;i=r.getSource(),o=i.sourceFormat===Ji;var a=Xte(t),s=ene(t,a),l=n.useEncodeDefaulter,u=wt(l)?l:l?tr(wte,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=Gte(i,c),p=tne(f.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(f),g=Zte(t,{schema:f,store:d}),y=new zte(f,t);y.setCalculationInfo(g);var _=p!=null&&rne(i)?function(m,b,S,x){return x===p?S:this.defaultDimValueGetter(m,b,S,x)}:null;return y.hasItemOption=!1,y.initData(o?i:d,null,_),y}function rne(e){if(e.sourceFormat===Ji){var t=ine(e.data||[]);return!ze(Jd(t))}}function ine(e){for(var t=0;t=0&&s.push(l)}),s}}function lne(e,t){return Kt(Kt({},e,!0),t,!0)}var une=Math.log(2);function qb(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function hne(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,p=c.left,d=c.top;a.push(p,d),l=l&&o&&p===o[f]&&d===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?YR(s,a):YR(a,s))}function pF(e){return e.nodeName.toUpperCase()==="CANVAS"}var dne=/([&<>"'])/g,pne={"&":"&","<":"<",">":">",'"':""","'":"'"};function yi(e){return e==null?"":(e+"").replace(dne,function(t,n){return pne[n]})}const vne={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:". "}}}},gne={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 Bm="ZH",fC="EN",kc=fC,Ug={},hC={},vF=vt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||kc).toUpperCase();return e.indexOf(Bm)>-1?Bm:kc}():kc;function gF(e,t){e=e.toUpperCase(),hC[e]=new On(t),Ug[e]=t}function mne(e){if(qe(e)){var t=Ug[e.toUpperCase()]||{};return e===Bm||e===fC?Nt(t):Kt(Nt(t),Nt(Ug[kc]),!1)}else return Kt(Nt(e),Nt(Ug[kc]),!1)}function yne(e){return hC[e]}function _ne(){return hC[kc]}gF(fC,vne);gF(Bm,gne);var dC=1e3,pC=dC*60,Jh=pC*60,ji=Jh*24,qR=ji*365,bh={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}"},Bv="{yyyy}-{MM}-{dd}",XR={year:"{yyyy}",month:"{yyyy}-{MM}",day:Bv,hour:Bv+" "+bh.hour,minute:Bv+" "+bh.minute,second:Bv+" "+bh.second,millisecond:bh.none},B1=["year","month","day","hour","minute","second","millisecond"],mF=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ms(e,t){return e+="","0000".substr(0,t-e.length)+e}function Nc(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 wne(e){return e===Nc(e)}function bne(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function X0(e,t,n,r){var i=ja(e),o=i[vC(n)](),a=i[Fc(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[K0(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Ld(n)](),f=(c-1)%12+1,p=i[Z0(n)](),d=i[Q0(n)](),g=i[J0(n)](),y=c>=12?"pm":"am",_=y.toUpperCase(),m=r instanceof On?r:yne(r||vF)||_ne(),b=m.getModel("time"),S=b.get("month"),x=b.get("monthAbbr"),E=b.get("dayOfWeek"),T=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,y+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,ms(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,ms(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ms(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,E[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ms(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ms(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,ms(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,ms(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,ms(g,3)).replace(/{S}/g,g+"")}function Sne(e,t,n,r,i){var o=null;if(qe(n))o=n;else if(wt(n))o=n(e.value,t,{level:e.level});else{var a=Pe({},bh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ze(o)){var f=e.level==null?0:e.level>=0?e.level:o.length+e.level;f=Math.min(f,o.length-1),o=o[f]}}return X0(new Date(e.value),o,i,r)}function yF(e,t){var n=ja(e),r=n[Fc(t)]()+1,i=n[K0(t)](),o=n[Ld(t)](),a=n[Z0(t)](),s=n[Q0(t)](),l=n[J0(t)](),u=l===0,c=u&&s===0,f=c&&a===0,p=f&&o===0,d=p&&i===1,g=d&&r===1;return g?"year":d?"month":p?"day":f?"hour":c?"minute":u?"second":"millisecond"}function KR(e,t,n){var r=Tn(e)?ja(e):e;switch(t=t||yF(e,n),t){case"year":return r[vC(n)]();case"half-year":return r[Fc(n)]()>=6?1:0;case"quarter":return Math.floor((r[Fc(n)]()+1)/4);case"month":return r[Fc(n)]();case"day":return r[K0(n)]();case"half-day":return r[Ld(n)]()/24;case"hour":return r[Ld(n)]();case"minute":return r[Z0(n)]();case"second":return r[Q0(n)]();case"millisecond":return r[J0(n)]()}}function vC(e){return e?"getUTCFullYear":"getFullYear"}function Fc(e){return e?"getUTCMonth":"getMonth"}function K0(e){return e?"getUTCDate":"getDate"}function Ld(e){return e?"getUTCHours":"getHours"}function Z0(e){return e?"getUTCMinutes":"getMinutes"}function Q0(e){return e?"getUTCSeconds":"getSeconds"}function J0(e){return e?"getUTCMilliseconds":"getMilliseconds"}function xne(e){return e?"setUTCFullYear":"setFullYear"}function _F(e){return e?"setUTCMonth":"setMonth"}function wF(e){return e?"setUTCDate":"setDate"}function bF(e){return e?"setUTCHours":"setHours"}function SF(e){return e?"setUTCMinutes":"setMinutes"}function xF(e){return e?"setUTCSeconds":"setSeconds"}function CF(e){return e?"setUTCMilliseconds":"setMilliseconds"}function TF(e){if(!PJ(e))return qe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function EF(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var ey=Wk;function Kb(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Wo(c)?c:"-"}function o(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var a=t==="time",s=e instanceof Date;if(a||s){var l=a?ja(e):e;if(isNaN(+l)){if(s)return"-"}else return X0(l,r,n)}if(t==="ordinal")return xb(e)?i(e):Tn(e)&&o(e)?e+"":"-";var u=Pm(e);return o(u)?TF(u):xb(e)?i(e):typeof e=="boolean"?e+"":"-"}var ZR=["a","b","c","d","e","f","g"],V1=function(e,t){return"{"+e+(t??"")+"}"};function AF(e,t,n){ze(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function wu(e,t){return t=t||"transparent",qe(e)?e:it(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var zg=G,Tne=["left","right","top","bottom","width","height"],Vv=[["width","left","right"],["height","top","bottom"]];function gC(e,t,n,r,i){var o=0,a=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),p=f&&f.getBoundingRect(),d,g;if(e==="horizontal"){var y=c.width+(p?-p.x+c.x:0);d=o+y,d>r||l.newline?(o=0,d=y,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var _=c.height+(p?-p.y+c.y:0);g=a+_,g>i||l.newline?(o+=s+n,a=0,g=_,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=d+n:a=g+n)})}var ed=gC;tr(gC,"vertical");tr(gC,"horizontal");function Vm(e,t,n){n=ey(n||0);var r=t.width,i=t.height,o=kr(e.left,r),a=kr(e.top,i),s=kr(e.right,r),l=kr(e.bottom,i),u=kr(e.width,r),c=kr(e.height,i),f=n[2]+n[0],p=n[1]+n[3],d=e.aspect;switch(isNaN(u)&&(u=r-s-p-o),isNaN(c)&&(c=i-l-f-a),d!=null&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=r-s-u-p),isNaN(a)&&(a=i-l-c-f),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-p;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-f;break}o=o||0,a=a||0,isNaN(u)&&(u=r-p-o-(s||0)),isNaN(c)&&(c=i-f-a-(l||0));var g=new Zt(o+n[3],a+n[0],u,c);return g.margin=n,g}function Od(e){var t=e.layoutMode||e.constructor.layoutMode;return it(t)?t:t?{type:t}:null}function Zc(e,t,n){var r=n&&n.ignoreSize;!ze(r)&&(r=[r,r]);var i=a(Vv[0],0),o=a(Vv[1],1);u(Vv[0],e,i),u(Vv[1],e,o);function a(c,f){var p={},d=0,g={},y=0,_=2;if(zg(c,function(S){g[S]=e[S]}),zg(c,function(S){s(t,S)&&(p[S]=g[S]=t[S]),l(p,S)&&d++,l(g,S)&&y++}),r[f])return l(t,c[1])?g[c[2]]=null:l(t,c[2])&&(g[c[1]]=null),g;if(y===_||!d)return g;if(d>=_)return p;for(var m=0;m=0;l--)s=Kt(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return ep(this.ecModel,n,{index:this.get(i,!0),id:this.get(o,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(On);Kk(on,On);O0(on);ane(on);sne(on,Mne);function Mne(e){var t=[];return G(on.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=ct(t,function(n){return Yo(n).main}),e!=="dataset"&&an(t,"dataset")<=0&&t.unshift("dataset"),t}var QR=Kn();Kn();var mC=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=Nr(this.get("color",!0)),o=this.get("colorLayer",!0);return Dne(this,QR,i,o,t,n,r)},e.prototype.clearColorPalette=function(){Ine(this,QR)},e}();function Rne(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function Dne(e,t,n,r,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=a==null||!r?n:Rne(r,a);if(c=c||n,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function Ine(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Pne=/\{@(.+?)\}/g,Lne=function(){function e(){}return e.prototype.getDataParams=function(t,n){var r=this.getData(n),i=this.getRawValue(t,n),o=r.getRawIndex(t),a=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),u=l&&l[r.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,p=f==="series",d=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,i,o,a){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(a&&(l.value=a.interpolatedValue),i!=null&&ze(l.value)&&(l.value=l.value[i]),!o){var u=s.getItemModel(t);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(wt(o))return l.status=n,l.dimensionIndex=i,o(l);if(qe(o)){var c=AF(o,l);return c.replace(Pne,function(f,p){var d=p.length,g=p;g.charAt(0)==="["&&g.charAt(d-1)==="]"&&(g=+g.slice(1,d-1));var y=Kc(s,t,g);if(a&&ze(a.interpolatedValue)){var _=s.getDimensionIndex(g);_>=0&&(y=a.interpolatedValue[_])}return y!=null?y+"":""})}},e.prototype.getRawValue=function(t,n){return Kc(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function JR(e){var t,n;return it(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function td(e){return new One(e)}var One=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 n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");function c(b){return!(b>=1)&&(b=1),b}var f;(this._dirty||o==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var p=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,g=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(f||d1&&r>0?s:a}};return o;function a(){return t=e?null:l9e10&&(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,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(Hv(t)){var a=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,o=[c._getVersionSign()]}else s=a.get("data",!0),l=ni(s)?Us:Ji,o=[];var f=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},d=Ot(f.seriesLayoutBy,p.seriesLayoutBy)||null,g=Ot(f.sourceHeader,p.sourceHeader),y=Ot(f.dimensions,p.dimensions),_=d!==p.seriesLayoutBy||!!g!=!!p.sourceHeader||y;i=_?[Yb(s,{seriesLayoutBy:d,sourceHeader:g,dimensions:y},l)]:[]}else{var m=t;if(r){var b=this._applyTransform(n);i=b.sourceList,o=b.upstreamSignList}else{var S=m.get("source",!0);i=[Yb(S,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(i,o)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(i!=null){var o="";t.length!==1&&tD(o)}var a,s=[],l=[];return G(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&tD(f),s.push(c),l.push(u._getVersionSign())}),r?a=Une(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[xte(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n1||n>0&&!e.noHeader;return G(e.blocks,function(i){var o=PF(i);o>=t&&(t=o+ +(r&&(!o||Zb(i)&&!i.noHeader)))}),t}return 0}function jne(e,t,n,r){var i=t.noHeader,o=Xne(PF(t)),a=[],s=t.blocks||[];Ya(!s||ze(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(qc(u,l)){var c=new Lte(u[l],null);s.sort(function(g,y){return c.evaluate(g.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}G(s,function(g,y){var _=t.valueFormatter,m=IF(g)(_?Pe(Pe({},e),{valueFormatter:_}):e,g,y>0?o.html:0,r);m!=null&&a.push(m)});var f=e.renderMode==="richText"?a.join(o.richText):Qb(a.join(""),i?n:o.html);if(i)return f;var p=Kb(t.header,"ordinal",e.useUTC),d=DF(r,e.renderMode).nameStyle;return e.renderMode==="richText"?LF(e,p,d)+o.richText+f:Qb('
'+_i(p)+"
"+f,n)}function qne(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(x){return x=ze(x)?x:[x],ct(x,function(E,T){return Kb(E,ze(d)?d[T]:d,u)})};if(!(o&&a)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),p=o?"":Kb(l,"ordinal",u),d=t.valueType,g=a?[]:c(t.value,t.dataIndex),y=!s||!o,_=!s&&o,m=DF(r,i),b=m.nameStyle,S=m.valueStyle;return i==="richText"?(s?"":f)+(o?"":LF(e,p,b))+(a?"":Qne(e,g,y,_,S)):Qb((s?"":f)+(o?"":Kne(p,!s,b))+(a?"":Zne(g,y,_,S)),n)}}function rD(e,t,n,r,i,o){if(e){var a=IF(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function Xne(e){return{html:Wne[e],richText:Yne[e]}}function Qb(e,t){var n='
',r="margin: "+t+"px 0 0";return'
'+e+n+"
"}function Kne(e,t,n){var r=t?"margin-left:2px":"";return''+_i(e)+""}function Zne(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=ze(e)?e:[e],''+ct(e,function(a){return _i(a)}).join("  ")+""}function LF(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Qne(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ze(t)?t.join(" "):t,o)}function Jne(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return wu(r)}function OF(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var H1=function(){function e(){this.richTextStyles={},this._nextStyleNameId=_N()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var i=r==="richText"?this._generateStyleName():null,o=Cne({color:n,type:t,renderMode:r,markerId:i});return qe(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};ze(n)?G(n,function(o){return Pe(r,o)}):Pe(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e}();function ere(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(n),l=ze(s),u=Jne(t,n),c,f,p,d;if(a>1||l&&!a){var g=tre(s,t,n,o,u);c=g.inlineValues,f=g.inlineValueTypes,p=g.blocks,d=g.inlineValues[0]}else if(a){var y=i.getDimensionInfo(o[0]);d=c=Kc(i,n,o[0]),f=y.type}else d=c=l?s[0]:s;var _=Gx(t),m=_&&t.name||"",b=i.getName(n),S=r?m:b;return Od("section",{header:m,noHeader:r||!_,sortParam:d,blocks:[Od("nameValue",{markerType:"item",markerColor:u,name:S,noName:!Wo(S),value:c,valueType:f,dataIndex:n})].concat(p||[])})}function tre(e,t,n,r,i){var o=t.getData(),a=af(e,function(f,p,d){var g=o.getDimensionInfo(d);return f=f||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];r.length?G(r,function(f){c(Kc(o,n,f),f)}):G(e,c);function c(f,p){var d=o.getDimensionInfo(p);!d||d.otherDims.tooltip===!1||(a?u.push(Od("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 ys=Kn();function Hv(e,t){return e.getName(t)||e.getId(t)}var nre="__universalTransitionEnabled",Ks=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=td({count:ire,reset:ore}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=ys(this).sourceManager=new Gne(this);o.prepareSource();var a=this.getInitialData(n,i);oD(a,this),this.dataTask.context.data=a,ys(this).dataBeforeProcessed=a,iD(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Ld(this),o=i?ty(n):{},a=this.subType;on.hasClass(a)&&(a+="Series"),Kt(n,r.getTheme().get(this.subType)),Kt(n,this.getDefaultOption()),lR(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&Zc(n,o,i)},t.prototype.mergeOption=function(n,r){n=Kt(this.option,n,!0),this.fillDataTextStyle(n.data);var i=Ld(this);i&&Zc(this.option,n,i);var o=ys(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);oD(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,ys(this).dataBeforeProcessed=a,iD(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!ni(n))for(var r=["show"],i=0;ithis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=yC.prototype.getColorFromPalette.call(this,n,r,i);return a||(a=o.getColorFromPalette(n,r,i)),a},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(r);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(a)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[Hv(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[nre])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var i,o,a=this.option,s=a.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){it(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c0&&this._innerSelect(n,r)}},t.registerClass=function(n){return on.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}(on);ia(Ks,Lne);ia(Ks,yC);Kk(Ks,on);function iD(e){var t=e.name;Gx(e)||(e.name=rre(e)||t)}function rre(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return G(n,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function ire(e){return e.model.getRawData().count()}function ore(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),are}function are(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function oD(e,t){G(GZ(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,tr(sre,t))})}function sre(e,t){var n=Jb(e);return n&&n.setOutputEnd((t||this).count()),t}function Jb(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var lre=pn.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),ure=pn.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),cre=pn.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,f=Math.sin(u),p=Math.cos(u),d=a*.6,g=a*.7;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(n+c-f*d,l+s+p*d,n,r-g,n,r),e.bezierCurveTo(n,r-g,n-c+f*d,l+s+p*d,n-c,l+s),e.closePath()}}),fre=pn.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),hre={line:qs,rect:cr,roundRect:cr,square:cr,circle:U0,diamond:ure,pin:cre,arrow:fre,triangle:lre},dre={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},eS={};G(hre,function(e,t){eS[t]=new e});var pre=pn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Jk(e,t,n),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!=="none"){var i=eS[r];i||(r="rect",i=eS[r]),dre[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function vre(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function Qc(e,t,n,r,i,o,a){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=HN(e.slice(8),new Zt(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=nC(e.slice(7),{},new Zt(t,n,r,i),a?"center":"cover"):l=new pre({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=vre,o&&l.setColor(o),l}function gre(e){return ze(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function kF(e,t){if(e!=null)return ze(e)||(e=[e,e]),[kr(e[0],t[0])||0,kr(Ot(e[1],e[0]),t[1])||0]}var mre=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n){return nne(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new Sr,i=Qc("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(i),i.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=n.itemHeight*.8,u=Qc(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(u),u.setStyle(n.itemStyle);var c=n.iconRotate==="inherit"?a:n.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},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}(Ks);function NF(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=Kc(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a=0&&r.push(t[o])}return r.join(" ")}var wC=function(e){Ve(t,e);function t(n,r,i,o){var a=e.call(this)||this;return a.updateData(n,r,i,o),a}return t.prototype._createSymbol=function(n,r,i,o,a){this.removeAll();var s=Qc(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=_re,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Pm(this.childAt(0))},t.prototype.downplay=function(){Lm(this.childAt(0))},t.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},t.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},t.prototype.updateData=function(n,r,i,o){this.silent=!1;var a=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=a!==this._symbolType,c=o&&o.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,n,r,l,f)}else{var p=this.childAt(0);p.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(d):Xs(p,d,s,r),Yee(p)}if(this._updateCommon(n,r,l,i,o),u){var p=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,ep(p,d,s,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,i,o,a){var s=this.childAt(0),l=n.hostModel,u,c,f,p,d,g,y,_,m;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,p=o.focus,d=o.blurScope,y=o.labelStatesModels,_=o.hoverScale,m=o.cursorStyle,g=o.emphasisDisabled),!o||n.hasItemOption){var b=o&&o.itemModel?o.itemModel:n.getItemModel(r),S=b.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),p=S.get("focus"),d=S.get("blurScope"),g=S.get("disabled"),y=lC(b),_=S.getShallow("scale"),m=b.getShallow("cursor")}var x=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var E=kF(n.getItemVisual(r,"symbolOffset"),i);E&&(s.x=E[0],s.y=E[1]),m&&s.attr("cursor",m);var T=n.getItemVisual(r,"style"),A=T.fill;if(s instanceof ol){var D=s.style;s.useStyle(Pe({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},T))}else s.__isEmptyBrush?s.useStyle(Pe({},T)):s.useStyle(T),s.style.decal=null,s.setColor(A,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var P=n.getItemVisual(r,"liftZ"),O=this._z2;P!=null?O==null&&(this._z2=s.z2,s.z2+=P):O!=null&&(s.z2=O,this._z2=null);var k=a&&a.useNameLabel;sC(s,y,{labelFetcher:l,labelDataIndex:r,defaultText:H,inheritColor:A,defaultOpacity:T.opacity});function H(q){return k?n.getName(q):NF(n,q)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var te=s.ensureState("emphasis");te.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var W=_==null||_===!0?Math.max(1.1,3/this._sizeY):isFinite(_)&&_>0?+_:1;te.scaleX=this._sizeX*W,te.scaleY=this._sizeY*W,this.setSymbolScale(1),Hb(this,p,d,g)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=fn(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&km(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();km(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return gre(n.getItemVisual(r,"symbolSize"))},t}(Sr);function _re(e,t){this.parent.drift(e,t)}function U1(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function aD(e){return e!=null&&!it(e)&&(e={isIgnore:e}),e||{}}function sD(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:lC(t),cursorStyle:t.get("cursor")}}var wre=function(){function e(t){this.group=new Sr,this._SymbolCtor=t||wC}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=aD(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=sD(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};o||r.removeAll(),t.diff(o).add(function(f){var p=c(f);if(U1(t,p,f,n)){var d=new a(t,f,l,u);d.setPosition(p),t.setItemGraphicEl(f,d),r.add(d)}}).update(function(f,p){var d=o.getItemGraphicEl(p),g=c(f);if(!U1(t,g,f,n)){r.remove(d);return}var y=t.getItemVisual(f,"symbol")||"circle",_=d&&d.getSymbolType&&d.getSymbolType();if(!d||_&&_!==y)r.remove(d),d=new a(t,f,l,u),d.setPosition(g);else{d.updateData(t,f,l,u);var m={x:g[0],y:g[1]};s?d.attr(m):Xs(d,m,i)}r.add(d),t.setItemGraphicEl(f,d)}).remove(function(f){var p=o.getItemGraphicEl(f);p&&p.fadeOut(function(){r.remove(p)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var o=t._getSymbolPoint(i);r.setPosition(o),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=sD(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=aD(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o0?n=r[0]:r[1]<0&&(n=r[1]),n}function $F(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var BF=typeof Float32Array<"u",Sre=BF?Float32Array:Array;function vc(e){return ze(e)?BF?new Float32Array(e):e:new Sre(e)}function xre(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function Cre(e,t,n,r,i,o,a,s){for(var l=xre(e,t),u=[],c=[],f=[],p=[],d=[],g=[],y=[],_=FF(i,t,a),m=e.getLayout("points")||[],b=t.getLayout("points")||[],S=0;S=i||y<0)break;if(hu(m,b)){if(l){y+=o;continue}break}if(y===n)e[o>0?"moveTo":"lineTo"](m,b),f=m,p=b;else{var S=m-u,x=b-c;if(S*S+x*x<.5){y+=o;continue}if(a>0){for(var E=y+o,T=t[E*2],A=t[E*2+1];T===m&&A===b&&_=r||hu(T,A))d=m,g=b;else{O=T-u,k=A-c;var W=m-u,q=T-m,j=b-c,ie=A-b,J=void 0,ce=void 0;if(s==="x"){J=Math.abs(W),ce=Math.abs(q);var ye=O>0?1:-1;d=m-ye*J*a,g=b,H=m+ye*ce*a,te=b}else if(s==="y"){J=Math.abs(j),ce=Math.abs(ie);var we=k>0?1:-1;d=m,g=b-we*J*a,H=m,te=b+we*ce*a}else J=Math.sqrt(W*W+j*j),ce=Math.sqrt(q*q+ie*ie),P=ce/(ce+J),d=m-O*a*(1-P),g=b-k*a*(1-P),H=m+O*a*P,te=b+k*a*P,H=_s(H,ws(T,m)),te=_s(te,ws(A,b)),H=ws(H,_s(T,m)),te=ws(te,_s(A,b)),O=H-m,k=te-b,d=m-O*J/ce,g=b-k*J/ce,d=_s(d,ws(u,m)),g=_s(g,ws(c,b)),d=ws(d,_s(u,m)),g=ws(g,_s(c,b)),O=m-d,k=b-g,H=m+O*ce/J,te=b+k*ce/J}e.bezierCurveTo(f,p,d,g,m,b),f=H,p=te}else e.lineTo(m,b)}u=m,c=b,y+=o}return _}var VF=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Tre=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new VF},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&hu(i[a*2-2],i[a*2-1]);a--);for(;o=0){var x=u?(g-l)*S+l:(d-s)*S+s;return u?[n,x]:[x,n]}s=d,l=g;break;case a.C:d=o[f++],g=o[f++],y=o[f++],_=o[f++],m=o[f++],b=o[f++];var E=u?Cm(s,d,y,m,n,c):Cm(l,g,_,b,n,c);if(E>0)for(var T=0;T=0){var x=u?lr(l,g,_,b,A):lr(s,d,y,m,A);return u?[n,x]:[x,n]}}s=m,l=b;break}}},t}(pn),Ere=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(VF),Are=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new Ere},t.prototype.buildPath=function(n,r){var i=r.points,o=r.stackedOnPoints,a=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&hu(i[s*2-2],i[s*2-1]);s--);for(;at){o?n.push(a(o,l,t)):i&&n.push(a(i,l,0),a(i,l,t));break}else i&&(n.push(a(i,l,0)),i=null),n.push(l),o=l}return n}function Fre(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=r[a];break}}if(o){var l=t.getAxis(i),u=ct(o.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var p=Nre(u,i==="x"?n.getWidth():n.getHeight()),d=p.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 g=10,y=p[0].coord-g,_=p[d-1].coord+g,m=_-y;if(m<.001)return"transparent";G(p,function(S){S.offset=(S.coord-y)/m}),p.push({offset:d?p[d-1].offset:.5,color:f[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:f[0]||"transparent"});var b=new VN(0,0,0,0,p,!0);return b[i]=y,b[i+"2"]=_,b}}}function $re(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&Bre(o,t))){var a=t.mapDimension(o.dim),s={};return G(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function Bre(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}function Vre(e,t){return isNaN(e)||isNaN(t)}function Hre(e){for(var t=e.length/2;t>0&&Vre(e[t*2-2],e[t*2-1]);t--);return t-1}function pD(e,t){return[e[t*2],e[t*2+1]]}function Ure(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,u=0;u=t||o>=t&&a<=t){l=u;break}s=u,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function zF(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var ye=y.getState("emphasis").style;ye.lineWidth=+y.style.lineWidth+1}fn(y).seriesIndex=n.seriesIndex,Hb(y,ie,J,ce);var we=dD(n.get("smooth")),Ne=n.get("smoothMonotone");if(y.setShape({smooth:we,smoothMonotone:Ne,connectNulls:D}),_){var ke=l.getCalculationInfo("stackedOnSeries"),je=0;_.useStyle(nn(c.getAreaStyle(),{fill:te,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ke&&(je=dD(ke.get("smooth"))),_.setShape({smooth:we,stackedOnSmooth:je,smoothMonotone:Ne,connectNulls:D}),_R(_,n,"areaStyle"),fn(_).seriesIndex=n.seriesIndex,Hb(_,ie,J,ce)}var He=function(We){o._changePolyState(We)};l.eachItemGraphicEl(function(We){We&&(We.onHoverStateChange=He)}),this._polyline.onHoverStateChange=He,this._data=l,this._coordSys=a,this._stackedOnPoints=T,this._points=f,this._step=k,this._valueOrigin=x,n.get("triggerLineEvent")&&(this.packEventData(n,y),_&&this.packEventData(n,_))},t.prototype.packEventData=function(n,r){fn(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,i,o){var a=n.getData(),s=_u(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.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 p=n.get("zlevel")||0,d=n.get("z")||0;u=new wC(a,s),u.x=c,u.y=f,u.setZ(p,d);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=p,g.z=d,g.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Xo.prototype.highlight.call(this,n,r,i,o)},t.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=_u(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Xo.prototype.downplay.call(this,n,r,i,o)},t.prototype._changePolyState=function(n){var r=this._polygon;pR(this._polyline,n),r&&pR(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Tre({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Are({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(n,r,i){var o,a,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):r.type==="polar"&&(o=s.dim==="angle",a=!0);var u=n.hostModel,c=u.get("animationDuration");wt(c)&&(c=c(null));var f=u.get("animationDelay")||0,p=wt(f)?f(null):f;n.eachItemGraphicEl(function(d,g){var y=d;if(y){var _=[d.x,d.y],m=void 0,b=void 0,S=void 0;if(i)if(a){var x=i,E=r.pointToCoord(_);o?(m=x.startAngle,b=x.endAngle,S=-E[1]/180*Math.PI):(m=x.r0,b=x.r,S=E[0])}else{var T=i;o?(m=T.x,b=T.x+T.width,S=d.x):(m=T.y+T.height,b=T.y,S=d.y)}var A=b===m?0:(S-m)/(b-m);l&&(A=1-A);var D=wt(f)?f(g):c*A+p,P=y.getSymbolPath(),O=P.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),O&&O.animateFrom({style:{opacity:0}},{duration:300,delay:D}),P.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(zF(n)){var a=n.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ri({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Hre(l);c>=0&&(sC(s,lC(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,p,d){return d!=null?yre(a,d):NF(a,f)},enableTextSetter:!0},zre(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,i,o,a,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var f=i.getLayout("points"),p=i.hostModel,d=p.get("connectNulls"),g=s.get("precision"),y=s.get("distance")||0,_=l.getBaseAxis(),m=_.isHorizontal(),b=_.inverse,S=r.shape,x=b?m?S.x:S.y+S.height:m?S.x+S.width:S.y,E=(m?y:0)*(b?-1:1),T=(m?0:-y)*(b?-1:1),A=m?"x":"y",D=Ure(f,x,A),P=D.range,O=P[1]-P[0],k=void 0;if(O>=1){if(O>1&&!d){var H=pD(f,P[0]);u.attr({x:H[0]+E,y:H[1]+T}),a&&(k=p.getRawValue(P[0]))}else{var H=c.getPointOn(x,A);H&&u.attr({x:H[0]+E,y:H[1]+T});var te=p.getRawValue(P[0]),W=p.getRawValue(P[1]);a&&(k=jJ(i,g,te,W,D.t))}o.lastFrameIndex=P[0]}else{var q=n===1||o.lastFrameIndex>0?P[0]:0,H=pD(f,q);a&&(k=p.getRawValue(q)),u.attr({x:H[0]+E,y:H[1]+T})}if(a){var j=YN(u);typeof j.setLabelText=="function"&&j.setLabelText(k)}}},t.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,p=Cre(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),d=p.current,g=p.stackedOnCurrent,y=p.next,_=p.stackedOnNext;if(a&&(d=bs(p.current,i,a,l),g=bs(p.stackedOnCurrent,i,a,l),y=bs(p.next,i,a,l),_=bs(p.stackedOnNext,i,a,l)),hD(d,y)>3e3||c&&hD(g,_)>3e3){u.stopAnimation(),u.setShape({points:y}),c&&(c.stopAnimation(),c.setShape({points:y,stackedOnPoints:_}));return}u.shape.__points=p.current,u.shape.points=d;var m={shape:{points:y}};p.current!==d&&(m.shape.__points=p.next),u.stopAnimation(),Xs(u,m,f),c&&(c.setShape({points:d,stackedOnPoints:g}),c.stopAnimation(),Xs(c,{shape:{stackedOnPoints:_}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],S=p.status,x=0;xt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;nt&&(t=o,n=i)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},jre=function(e){return Math.round(e.length/2)};function qre(e){return{seriesType:e,reset:function(t,n,r){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),p=Math.abs(c[1]-c[0])*(f||1),d=Math.round(s/p);if(isFinite(d)&&d>1){o==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var g=void 0;qe(o)?g=Yre[o]:wt(o)&&(g=o),g&&t.setData(i.downSample(i.mapDimension(u.dim),1/d,g,jre))}}}}}function Xre(e){e.registerChartView(Gre),e.registerSeriesModel(mre),e.registerLayout(Wre("line")),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,qre("line"))}var Kre="__ec_stack_";function GF(e){return e.get("stack")||Kre+e.seriesIndex}function WF(e){return e.dim+e.index}function Zre(e,t){var n=[];return t.eachSeriesByType(e,function(r){nie(r)&&n.push(r)}),n}function Qre(e){var t={};G(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),p=c.dim+"_"+c.index,d=f.getDimensionIndex(f.mapDimension(c.dim)),g=f.getStore(),y=0,_=g.count();y<_;++y){var m=g.get(d,y);t[p]?t[p].push(m):t[p]=[m]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(l,u){return l-u});for(var o=null,a=1;a0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function Jre(e){var t=Qre(e),n=[];return G(e,function(r){var i=r.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,u=t[l],c=Math.abs(a[1]-a[0]),f=o.scale.getExtent(),p=Math.abs(f[1]-f[0]);s=u?c/p*u:c}else{var d=r.getData();s=Math.abs(a[1]-a[0])/d.count()}var g=kr(r.get("barWidth"),s),y=kr(r.get("barMaxWidth"),s),_=kr(r.get("barMinWidth")||(rie(r)?.5:1),s),m=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:g,barMaxWidth:y,barMinWidth:_,barGap:m,barCategoryGap:b,axisKey:WF(o),stackId:GF(r)})}),eie(n)}function eie(e){var t={};G(e,function(r,i){var o=r.axisKey,a=r.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[o]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var p=r.barMinWidth;p&&(l[u].minWidth=p);var d=r.barGap;d!=null&&(s.gap=d);var g=r.barCategoryGap;g!=null&&(s.categoryGap=g)});var n={};return G(t,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=Cn(o).length;s=Math.max(35-l*4,15)+"%"}var u=kr(s,a),c=kr(r.gap,1),f=r.remainedWidth,p=r.autoWidthCount,d=(f-u)/(p+(p-1)*c);d=Math.max(d,0),G(o,function(m){var b=m.maxWidth,S=m.minWidth;if(m.width){var x=m.width;b&&(x=Math.min(x,b)),S&&(x=Math.max(x,S)),m.width=x,f-=x+c*x,p--}else{var x=d;b&&bx&&(x=S),x!==d&&(m.width=x,f-=x+c*x,p--)}}),d=(f-u)/(p+(p-1)*c),d=Math.max(d,0);var g=0,y;G(o,function(m,b){m.width||(m.width=d),y=m,g+=m.width*(1+c)}),y&&(g-=y.width*c);var _=-g/2;G(o,function(m,b){n[i][b]=n[i][b]||{bandWidth:a,offset:_,width:m.width},_+=m.width*(1+c)})}),n}function tie(e,t,n){if(e&&t){var r=e[WF(t)];return r!=null&&n!=null?r[GF(n)]:r}}function nie(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function rie(e){return e.pipelineContext&&e.pipelineContext.large}var Vm="\0__throttleOriginMethod",vD="\0__throttleRate",gD="\0__throttleType";function YF(e,t,n){var r,i=0,o=0,a=null,s,l,u,c;t=t||0;function f(){o=new Date().getTime(),a=null,e.apply(l,u||[])}var p=function(){for(var d=[],g=0;g=0?f():a=setTimeout(f,-s),i=r};return p.clear=function(){a&&(clearTimeout(a),a=null)},p.debounceNextCall=function(d){c=d},p}function jF(e,t,n,r){var i=e[t];if(i){var o=i[Vm]||i,a=i[gD],s=i[vD];if(s!==n||a!==r){if(n==null||!r)return e[t]=o;i=e[t]=YF(o,n,r==="debounce"),i[Vm]=o,i[gD]=r,i[vD]=n}return i}}function nS(e,t){var n=e[t];n&&n[Vm]&&(n.clear&&n.clear(),e[t]=n[Vm])}function Ju(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=i.selected,c=0;c=0;if(i){var a=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&rS(e,a,t,n)}else{rS(e,t,t,n);var o=cie(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&lie.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function cie(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r!==0?r:n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function fie(e,t,n,r){e.addEventListener(t,n,r)}function hie(e,t,n,r){e.removeEventListener(t,n,r)}var qF=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},die=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var i=t.touches;if(i){for(var o={points:[],touches:[],target:n,event:t},a=0,s=i.length;a1&&r&&r.length>1){var o=yD(r)/yD(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=pie(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},XF="silent";function vie(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:gie}}function gie(){qF(this.event)}var mie=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(oa),Zf=function(){function e(t,n){this.x=t,this.y=n}return e}(),yie=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Y1=new Zt(0,0,0,0),KF=function(e){Ve(t,e);function t(n,r,i,o,a){var s=e.call(this)||this;return s._hovered=new Zf(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new mie,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new sie(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(G(yie,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,o=ZF(this,r,i),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new Zf(r,i):this.findHover(r,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new Zf(0,0)},t.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,i){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var a="on"+r,s=vie(r,n,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(r,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,i){var o=this.storage.getDisplayList(),a=new Zf(n,r);if(_D(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Zt(n-u,r-u,l,l),f=o.length-1;f>=0;f--){var p=o[f];p!==i&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(Y1.copy(p.getBoundingRect()),p.transform&&Y1.applyTransform(p.transform),Y1.intersect(c)&&s.push(p))}if(s.length)for(var d=4,g=Math.PI/12,y=Math.PI*2,_=0;_4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function _ie(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return i?XF:!0}return!1}function _D(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=_ie(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==XF)){t.target=a;break}}}function ZF(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var QF=32,Qf=7;function wie(e){for(var t=0;e>=QF;)t|=e&1,e>>=1;return e+t}function wD(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function bie(e,t,n){for(n--;t>>1,i(o,e[l])<0?s=l:a=l+1;var u=r-a;switch(u){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;u>0;)e[a+u]=e[a+u-1],u--}e[a]=o}}function j1(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function q1(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Sie(e,t){var n=Qf,r,i,o=0,a=[];r=[],i=[];function s(d,g){r[o]=d,i[o]=g,o+=1}function l(){for(;o>1;){var d=o-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(;o>1;){var d=o-2;d>0&&i[d-1]=Qf||A>=Qf);if(D)break;E<0&&(E=0),E+=2}if(n=E,n<1&&(n=1),g===1){for(m=0;m<_;m++)e[x+m]=e[S+m];e[x+_]=a[b]}else{if(g===0)throw new Error;for(m=0;m=0;m--)e[T+m]=e[E+m];e[x]=a[S];return}for(var A=n;;){var D=0,P=0,O=!1;do if(t(a[S],e[b])<0){if(e[x--]=e[b--],D++,P=0,--g===0){O=!0;break}}else if(e[x--]=a[S--],P++,D=0,--_===1){O=!0;break}while((D|P)=0;m--)e[T+m]=e[E+m];if(g===0){O=!0;break}}if(e[x--]=a[S--],--_===1){O=!0;break}if(P=_-j1(e[b],a,0,_,_-1,t),P!==0){for(x-=P,S-=P,_-=P,T=x+1,E=S+1,m=0;m=Qf||P>=Qf);if(O)break;A<0&&(A=0),A+=2}if(n=A,n<1&&(n=1),_===1){for(x-=g,b-=g,T=x+1,E=b+1,m=g-1;m>=0;m--)e[T+m]=e[E+m];e[x]=a[S]}else{if(_===0)throw new Error;for(E=x-(_-1),m=0;m<_;m++)e[E+m]=a[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function zg(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(is&&(l=s),bD(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(i!==0);a.forceMergeRuns()}}var SD=!1;function X1(){SD||(SD=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function xD(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var xie=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=xD}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(X1(),c.z=0),isNaN(c.z2)&&(X1(),c.z2=0),isNaN(c.zlevel)&&(X1(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,n,r);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,n,r)}},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 n=0,r=t.length;n=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}(),Hm;Hm=vt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function gc(){return new Date().getTime()}var Cie=function(e){Ve(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=gc()-this._pausedTime,i=r-this._time,o=this._head;o;){var a=o.next,s=o.step(r,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(Hm(r),!n._paused&&n.update())}Hm(r)},t.prototype.start=function(){this._running||(this._time=gc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=gc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=gc()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var i=new Ux(n,r.loop);return this.addAnimator(i),i},t}(oa),Tie=300,K1=vt.domSupported,Z1=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=ct(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}}(),CD={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},TD=!1;function iS(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Eie(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 Q1(e){e&&(e.zrByTouch=!0)}function Aie(e,t){return Vi(e.dom,new Mie(e,t),!0)}function JF(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Mie=function(){function e(t,n){this.stopPropagation=Jr,this.stopImmediatePropagation=Jr,this.preventDefault=Jr,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),co={mousedown:function(e){e=Vi(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Vi(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=Vi(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Vi(this.dom,e);var t=e.toElement||e.relatedTarget;JF(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){TD=!0,e=Vi(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){TD||(e=Vi(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Vi(this.dom,e),Q1(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),co.mousemove.call(this,e),co.mousedown.call(this,e)},touchmove:function(e){e=Vi(this.dom,e),Q1(e),this.handler.processGesture(e,"change"),co.mousemove.call(this,e)},touchend:function(e){e=Vi(this.dom,e),Q1(e),this.handler.processGesture(e,"end"),co.mouseup.call(this,e),+new Date-+this.__lastTouchMoment1||n>0&&!e.noHeader;return G(e.blocks,function(i){var o=PF(i);o>=t&&(t=o+ +(r&&(!o||Zb(i)&&!i.noHeader)))}),t}return 0}function jne(e,t,n,r){var i=t.noHeader,o=Xne(PF(t)),a=[],s=t.blocks||[];Ya(!s||ze(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(qc(u,l)){var c=new Lte(u[l],null);s.sort(function(g,y){return c.evaluate(g.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}G(s,function(g,y){var _=t.valueFormatter,m=IF(g)(_?Pe(Pe({},e),{valueFormatter:_}):e,g,y>0?o.html:0,r);m!=null&&a.push(m)});var f=e.renderMode==="richText"?a.join(o.richText):Qb(a.join(""),i?n:o.html);if(i)return f;var p=Kb(t.header,"ordinal",e.useUTC),d=DF(r,e.renderMode).nameStyle;return e.renderMode==="richText"?LF(e,p,d)+o.richText+f:Qb('
'+yi(p)+"
"+f,n)}function qne(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(x){return x=ze(x)?x:[x],ct(x,function(E,T){return Kb(E,ze(d)?d[T]:d,u)})};if(!(o&&a)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),p=o?"":Kb(l,"ordinal",u),d=t.valueType,g=a?[]:c(t.value,t.dataIndex),y=!s||!o,_=!s&&o,m=DF(r,i),b=m.nameStyle,S=m.valueStyle;return i==="richText"?(s?"":f)+(o?"":LF(e,p,b))+(a?"":Qne(e,g,y,_,S)):Qb((s?"":f)+(o?"":Kne(p,!s,b))+(a?"":Zne(g,y,_,S)),n)}}function nD(e,t,n,r,i,o){if(e){var a=IF(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function Xne(e){return{html:Wne[e],richText:Yne[e]}}function Qb(e,t){var n='
',r="margin: "+t+"px 0 0";return'
'+e+n+"
"}function Kne(e,t,n){var r=t?"margin-left:2px":"";return''+yi(e)+""}function Zne(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=ze(e)?e:[e],''+ct(e,function(a){return yi(a)}).join("  ")+""}function LF(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Qne(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ze(t)?t.join(" "):t,o)}function Jne(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return wu(r)}function OF(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var H1=function(){function e(){this.richTextStyles={},this._nextStyleNameId=_N()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var i=r==="richText"?this._generateStyleName():null,o=Cne({color:n,type:t,renderMode:r,markerId:i});return qe(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};ze(n)?G(n,function(o){return Pe(r,o)}):Pe(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e}();function ere(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(n),l=ze(s),u=Jne(t,n),c,f,p,d;if(a>1||l&&!a){var g=tre(s,t,n,o,u);c=g.inlineValues,f=g.inlineValueTypes,p=g.blocks,d=g.inlineValues[0]}else if(a){var y=i.getDimensionInfo(o[0]);d=c=Kc(i,n,o[0]),f=y.type}else d=c=l?s[0]:s;var _=zx(t),m=_&&t.name||"",b=i.getName(n),S=r?m:b;return kd("section",{header:m,noHeader:r||!_,sortParam:d,blocks:[kd("nameValue",{markerType:"item",markerColor:u,name:S,noName:!Wo(S),value:c,valueType:f,dataIndex:n})].concat(p||[])})}function tre(e,t,n,r,i){var o=t.getData(),a=af(e,function(f,p,d){var g=o.getDimensionInfo(d);return f=f||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];r.length?G(r,function(f){c(Kc(o,n,f),f)}):G(e,c);function c(f,p){var d=o.getDimensionInfo(p);!d||d.otherDims.tooltip===!1||(a?u.push(kd("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 ys=Kn();function Uv(e,t){return e.getName(t)||e.getId(t)}var nre="__universalTransitionEnabled",Ks=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=td({count:ire,reset:ore}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=ys(this).sourceManager=new Gne(this);o.prepareSource();var a=this.getInitialData(n,i);iD(a,this),this.dataTask.context.data=a,ys(this).dataBeforeProcessed=a,rD(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Od(this),o=i?ty(n):{},a=this.subType;on.hasClass(a)&&(a+="Series"),Kt(n,r.getTheme().get(this.subType)),Kt(n,this.getDefaultOption()),sR(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&Zc(n,o,i)},t.prototype.mergeOption=function(n,r){n=Kt(this.option,n,!0),this.fillDataTextStyle(n.data);var i=Od(this);i&&Zc(this.option,n,i);var o=ys(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);iD(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,ys(this).dataBeforeProcessed=a,rD(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!ni(n))for(var r=["show"],i=0;ithis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=mC.prototype.getColorFromPalette.call(this,n,r,i);return a||(a=o.getColorFromPalette(n,r,i)),a},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(r);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(a)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[Uv(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[nre])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var i,o,a=this.option,s=a.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){it(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c0&&this._innerSelect(n,r)}},t.registerClass=function(n){return on.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}(on);ia(Ks,Lne);ia(Ks,mC);Kk(Ks,on);function rD(e){var t=e.name;zx(e)||(e.name=rre(e)||t)}function rre(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return G(n,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function ire(e){return e.model.getRawData().count()}function ore(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),are}function are(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function iD(e,t){G(GZ(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,tr(sre,t))})}function sre(e,t){var n=Jb(e);return n&&n.setOutputEnd((t||this).count()),t}function Jb(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var lre=pn.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),ure=pn.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),cre=pn.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,f=Math.sin(u),p=Math.cos(u),d=a*.6,g=a*.7;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(n+c-f*d,l+s+p*d,n,r-g,n,r),e.bezierCurveTo(n,r-g,n-c+f*d,l+s+p*d,n-c,l+s),e.closePath()}}),fre=pn.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),hre={line:qs,rect:cr,roundRect:cr,square:cr,circle:U0,diamond:ure,pin:cre,arrow:fre,triangle:lre},dre={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},eS={};G(hre,function(e,t){eS[t]=new e});var pre=pn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Jk(e,t,n),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!=="none"){var i=eS[r];i||(r="rect",i=eS[r]),dre[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function vre(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function Qc(e,t,n,r,i,o,a){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=HN(e.slice(8),new Zt(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=tC(e.slice(7),{},new Zt(t,n,r,i),a?"center":"cover"):l=new pre({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=vre,o&&l.setColor(o),l}function gre(e){return ze(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function kF(e,t){if(e!=null)return ze(e)||(e=[e,e]),[kr(e[0],t[0])||0,kr(Ot(e[1],e[0]),t[1])||0]}var mre=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n){return nne(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new Sr,i=Qc("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(i),i.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=n.itemHeight*.8,u=Qc(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(u),u.setStyle(n.itemStyle);var c=n.iconRotate==="inherit"?a:n.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},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}(Ks);function NF(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=Kc(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a=0&&r.push(t[o])}return r.join(" ")}var _C=function(e){Ve(t,e);function t(n,r,i,o){var a=e.call(this)||this;return a.updateData(n,r,i,o),a}return t.prototype._createSymbol=function(n,r,i,o,a){this.removeAll();var s=Qc(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=_re,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Lm(this.childAt(0))},t.prototype.downplay=function(){Om(this.childAt(0))},t.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},t.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},t.prototype.updateData=function(n,r,i,o){this.silent=!1;var a=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=a!==this._symbolType,c=o&&o.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,n,r,l,f)}else{var p=this.childAt(0);p.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(d):Xs(p,d,s,r),Yee(p)}if(this._updateCommon(n,r,l,i,o),u){var p=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,tp(p,d,s,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,i,o,a){var s=this.childAt(0),l=n.hostModel,u,c,f,p,d,g,y,_,m;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,p=o.focus,d=o.blurScope,y=o.labelStatesModels,_=o.hoverScale,m=o.cursorStyle,g=o.emphasisDisabled),!o||n.hasItemOption){var b=o&&o.itemModel?o.itemModel:n.getItemModel(r),S=b.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),p=S.get("focus"),d=S.get("blurScope"),g=S.get("disabled"),y=sC(b),_=S.getShallow("scale"),m=b.getShallow("cursor")}var x=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var E=kF(n.getItemVisual(r,"symbolOffset"),i);E&&(s.x=E[0],s.y=E[1]),m&&s.attr("cursor",m);var T=n.getItemVisual(r,"style"),A=T.fill;if(s instanceof ol){var D=s.style;s.useStyle(Pe({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},T))}else s.__isEmptyBrush?s.useStyle(Pe({},T)):s.useStyle(T),s.style.decal=null,s.setColor(A,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var P=n.getItemVisual(r,"liftZ"),O=this._z2;P!=null?O==null&&(this._z2=s.z2,s.z2+=P):O!=null&&(s.z2=O,this._z2=null);var k=a&&a.useNameLabel;aC(s,y,{labelFetcher:l,labelDataIndex:r,defaultText:H,inheritColor:A,defaultOpacity:T.opacity});function H(q){return k?n.getName(q):NF(n,q)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var te=s.ensureState("emphasis");te.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var W=_==null||_===!0?Math.max(1.1,3/this._sizeY):isFinite(_)&&_>0?+_:1;te.scaleX=this._sizeX*W,te.scaleY=this._sizeY*W,this.setSymbolScale(1),Hb(this,p,d,g)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=fn(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&Nm(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();Nm(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return gre(n.getItemVisual(r,"symbolSize"))},t}(Sr);function _re(e,t){this.parent.drift(e,t)}function U1(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function oD(e){return e!=null&&!it(e)&&(e={isIgnore:e}),e||{}}function aD(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:sC(t),cursorStyle:t.get("cursor")}}var wre=function(){function e(t){this.group=new Sr,this._SymbolCtor=t||_C}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=oD(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=aD(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};o||r.removeAll(),t.diff(o).add(function(f){var p=c(f);if(U1(t,p,f,n)){var d=new a(t,f,l,u);d.setPosition(p),t.setItemGraphicEl(f,d),r.add(d)}}).update(function(f,p){var d=o.getItemGraphicEl(p),g=c(f);if(!U1(t,g,f,n)){r.remove(d);return}var y=t.getItemVisual(f,"symbol")||"circle",_=d&&d.getSymbolType&&d.getSymbolType();if(!d||_&&_!==y)r.remove(d),d=new a(t,f,l,u),d.setPosition(g);else{d.updateData(t,f,l,u);var m={x:g[0],y:g[1]};s?d.attr(m):Xs(d,m,i)}r.add(d),t.setItemGraphicEl(f,d)}).remove(function(f){var p=o.getItemGraphicEl(f);p&&p.fadeOut(function(){r.remove(p)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var o=t._getSymbolPoint(i);r.setPosition(o),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=aD(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=oD(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o0?n=r[0]:r[1]<0&&(n=r[1]),n}function $F(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var BF=typeof Float32Array<"u",Sre=BF?Float32Array:Array;function vc(e){return ze(e)?BF?new Float32Array(e):e:new Sre(e)}function xre(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function Cre(e,t,n,r,i,o,a,s){for(var l=xre(e,t),u=[],c=[],f=[],p=[],d=[],g=[],y=[],_=FF(i,t,a),m=e.getLayout("points")||[],b=t.getLayout("points")||[],S=0;S=i||y<0)break;if(hu(m,b)){if(l){y+=o;continue}break}if(y===n)e[o>0?"moveTo":"lineTo"](m,b),f=m,p=b;else{var S=m-u,x=b-c;if(S*S+x*x<.5){y+=o;continue}if(a>0){for(var E=y+o,T=t[E*2],A=t[E*2+1];T===m&&A===b&&_=r||hu(T,A))d=m,g=b;else{O=T-u,k=A-c;var W=m-u,q=T-m,j=b-c,ie=A-b,J=void 0,ce=void 0;if(s==="x"){J=Math.abs(W),ce=Math.abs(q);var ye=O>0?1:-1;d=m-ye*J*a,g=b,H=m+ye*ce*a,te=b}else if(s==="y"){J=Math.abs(j),ce=Math.abs(ie);var we=k>0?1:-1;d=m,g=b-we*J*a,H=m,te=b+we*ce*a}else J=Math.sqrt(W*W+j*j),ce=Math.sqrt(q*q+ie*ie),P=ce/(ce+J),d=m-O*a*(1-P),g=b-k*a*(1-P),H=m+O*a*P,te=b+k*a*P,H=_s(H,ws(T,m)),te=_s(te,ws(A,b)),H=ws(H,_s(T,m)),te=ws(te,_s(A,b)),O=H-m,k=te-b,d=m-O*J/ce,g=b-k*J/ce,d=_s(d,ws(u,m)),g=_s(g,ws(c,b)),d=ws(d,_s(u,m)),g=ws(g,_s(c,b)),O=m-d,k=b-g,H=m+O*ce/J,te=b+k*ce/J}e.bezierCurveTo(f,p,d,g,m,b),f=H,p=te}else e.lineTo(m,b)}u=m,c=b,y+=o}return _}var VF=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Tre=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new VF},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&hu(i[a*2-2],i[a*2-1]);a--);for(;o=0){var x=u?(g-l)*S+l:(d-s)*S+s;return u?[n,x]:[x,n]}s=d,l=g;break;case a.C:d=o[f++],g=o[f++],y=o[f++],_=o[f++],m=o[f++],b=o[f++];var E=u?Tm(s,d,y,m,n,c):Tm(l,g,_,b,n,c);if(E>0)for(var T=0;T=0){var x=u?lr(l,g,_,b,A):lr(s,d,y,m,A);return u?[n,x]:[x,n]}}s=m,l=b;break}}},t}(pn),Ere=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(VF),Are=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new Ere},t.prototype.buildPath=function(n,r){var i=r.points,o=r.stackedOnPoints,a=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&hu(i[s*2-2],i[s*2-1]);s--);for(;at){o?n.push(a(o,l,t)):i&&n.push(a(i,l,0),a(i,l,t));break}else i&&(n.push(a(i,l,0)),i=null),n.push(l),o=l}return n}function Fre(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=r[a];break}}if(o){var l=t.getAxis(i),u=ct(o.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var p=Nre(u,i==="x"?n.getWidth():n.getHeight()),d=p.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 g=10,y=p[0].coord-g,_=p[d-1].coord+g,m=_-y;if(m<.001)return"transparent";G(p,function(S){S.offset=(S.coord-y)/m}),p.push({offset:d?p[d-1].offset:.5,color:f[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:f[0]||"transparent"});var b=new VN(0,0,0,0,p,!0);return b[i]=y,b[i+"2"]=_,b}}}function $re(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&Bre(o,t))){var a=t.mapDimension(o.dim),s={};return G(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function Bre(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}function Vre(e,t){return isNaN(e)||isNaN(t)}function Hre(e){for(var t=e.length/2;t>0&&Vre(e[t*2-2],e[t*2-1]);t--);return t-1}function dD(e,t){return[e[t*2],e[t*2+1]]}function Ure(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,u=0;u=t||o>=t&&a<=t){l=u;break}s=u,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function zF(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var ye=y.getState("emphasis").style;ye.lineWidth=+y.style.lineWidth+1}fn(y).seriesIndex=n.seriesIndex,Hb(y,ie,J,ce);var we=hD(n.get("smooth")),Ne=n.get("smoothMonotone");if(y.setShape({smooth:we,smoothMonotone:Ne,connectNulls:D}),_){var ke=l.getCalculationInfo("stackedOnSeries"),je=0;_.useStyle(nn(c.getAreaStyle(),{fill:te,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ke&&(je=hD(ke.get("smooth"))),_.setShape({smooth:we,stackedOnSmooth:je,smoothMonotone:Ne,connectNulls:D}),yR(_,n,"areaStyle"),fn(_).seriesIndex=n.seriesIndex,Hb(_,ie,J,ce)}var He=function(We){o._changePolyState(We)};l.eachItemGraphicEl(function(We){We&&(We.onHoverStateChange=He)}),this._polyline.onHoverStateChange=He,this._data=l,this._coordSys=a,this._stackedOnPoints=T,this._points=f,this._step=k,this._valueOrigin=x,n.get("triggerLineEvent")&&(this.packEventData(n,y),_&&this.packEventData(n,_))},t.prototype.packEventData=function(n,r){fn(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,i,o){var a=n.getData(),s=_u(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.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 p=n.get("zlevel")||0,d=n.get("z")||0;u=new _C(a,s),u.x=c,u.y=f,u.setZ(p,d);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=p,g.z=d,g.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Xo.prototype.highlight.call(this,n,r,i,o)},t.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=_u(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Xo.prototype.downplay.call(this,n,r,i,o)},t.prototype._changePolyState=function(n){var r=this._polygon;dR(this._polyline,n),r&&dR(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Tre({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Are({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(n,r,i){var o,a,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):r.type==="polar"&&(o=s.dim==="angle",a=!0);var u=n.hostModel,c=u.get("animationDuration");wt(c)&&(c=c(null));var f=u.get("animationDelay")||0,p=wt(f)?f(null):f;n.eachItemGraphicEl(function(d,g){var y=d;if(y){var _=[d.x,d.y],m=void 0,b=void 0,S=void 0;if(i)if(a){var x=i,E=r.pointToCoord(_);o?(m=x.startAngle,b=x.endAngle,S=-E[1]/180*Math.PI):(m=x.r0,b=x.r,S=E[0])}else{var T=i;o?(m=T.x,b=T.x+T.width,S=d.x):(m=T.y+T.height,b=T.y,S=d.y)}var A=b===m?0:(S-m)/(b-m);l&&(A=1-A);var D=wt(f)?f(g):c*A+p,P=y.getSymbolPath(),O=P.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),O&&O.animateFrom({style:{opacity:0}},{duration:300,delay:D}),P.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(zF(n)){var a=n.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ri({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Hre(l);c>=0&&(aC(s,sC(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,p,d){return d!=null?yre(a,d):NF(a,f)},enableTextSetter:!0},zre(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,i,o,a,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var f=i.getLayout("points"),p=i.hostModel,d=p.get("connectNulls"),g=s.get("precision"),y=s.get("distance")||0,_=l.getBaseAxis(),m=_.isHorizontal(),b=_.inverse,S=r.shape,x=b?m?S.x:S.y+S.height:m?S.x+S.width:S.y,E=(m?y:0)*(b?-1:1),T=(m?0:-y)*(b?-1:1),A=m?"x":"y",D=Ure(f,x,A),P=D.range,O=P[1]-P[0],k=void 0;if(O>=1){if(O>1&&!d){var H=dD(f,P[0]);u.attr({x:H[0]+E,y:H[1]+T}),a&&(k=p.getRawValue(P[0]))}else{var H=c.getPointOn(x,A);H&&u.attr({x:H[0]+E,y:H[1]+T});var te=p.getRawValue(P[0]),W=p.getRawValue(P[1]);a&&(k=jJ(i,g,te,W,D.t))}o.lastFrameIndex=P[0]}else{var q=n===1||o.lastFrameIndex>0?P[0]:0,H=dD(f,q);a&&(k=p.getRawValue(q)),u.attr({x:H[0]+E,y:H[1]+T})}if(a){var j=YN(u);typeof j.setLabelText=="function"&&j.setLabelText(k)}}},t.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,p=Cre(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),d=p.current,g=p.stackedOnCurrent,y=p.next,_=p.stackedOnNext;if(a&&(d=bs(p.current,i,a,l),g=bs(p.stackedOnCurrent,i,a,l),y=bs(p.next,i,a,l),_=bs(p.stackedOnNext,i,a,l)),fD(d,y)>3e3||c&&fD(g,_)>3e3){u.stopAnimation(),u.setShape({points:y}),c&&(c.stopAnimation(),c.setShape({points:y,stackedOnPoints:_}));return}u.shape.__points=p.current,u.shape.points=d;var m={shape:{points:y}};p.current!==d&&(m.shape.__points=p.next),u.stopAnimation(),Xs(u,m,f),c&&(c.setShape({points:d,stackedOnPoints:g}),c.stopAnimation(),Xs(c,{shape:{stackedOnPoints:_}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],S=p.status,x=0;xt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;nt&&(t=o,n=i)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},jre=function(e){return Math.round(e.length/2)};function qre(e){return{seriesType:e,reset:function(t,n,r){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),p=Math.abs(c[1]-c[0])*(f||1),d=Math.round(s/p);if(isFinite(d)&&d>1){o==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var g=void 0;qe(o)?g=Yre[o]:wt(o)&&(g=o),g&&t.setData(i.downSample(i.mapDimension(u.dim),1/d,g,jre))}}}}}function Xre(e){e.registerChartView(Gre),e.registerSeriesModel(mre),e.registerLayout(Wre("line")),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,qre("line"))}var Kre="__ec_stack_";function GF(e){return e.get("stack")||Kre+e.seriesIndex}function WF(e){return e.dim+e.index}function Zre(e,t){var n=[];return t.eachSeriesByType(e,function(r){nie(r)&&n.push(r)}),n}function Qre(e){var t={};G(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),p=c.dim+"_"+c.index,d=f.getDimensionIndex(f.mapDimension(c.dim)),g=f.getStore(),y=0,_=g.count();y<_;++y){var m=g.get(d,y);t[p]?t[p].push(m):t[p]=[m]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(l,u){return l-u});for(var o=null,a=1;a0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function Jre(e){var t=Qre(e),n=[];return G(e,function(r){var i=r.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,u=t[l],c=Math.abs(a[1]-a[0]),f=o.scale.getExtent(),p=Math.abs(f[1]-f[0]);s=u?c/p*u:c}else{var d=r.getData();s=Math.abs(a[1]-a[0])/d.count()}var g=kr(r.get("barWidth"),s),y=kr(r.get("barMaxWidth"),s),_=kr(r.get("barMinWidth")||(rie(r)?.5:1),s),m=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:g,barMaxWidth:y,barMinWidth:_,barGap:m,barCategoryGap:b,axisKey:WF(o),stackId:GF(r)})}),eie(n)}function eie(e){var t={};G(e,function(r,i){var o=r.axisKey,a=r.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[o]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var p=r.barMinWidth;p&&(l[u].minWidth=p);var d=r.barGap;d!=null&&(s.gap=d);var g=r.barCategoryGap;g!=null&&(s.categoryGap=g)});var n={};return G(t,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=Cn(o).length;s=Math.max(35-l*4,15)+"%"}var u=kr(s,a),c=kr(r.gap,1),f=r.remainedWidth,p=r.autoWidthCount,d=(f-u)/(p+(p-1)*c);d=Math.max(d,0),G(o,function(m){var b=m.maxWidth,S=m.minWidth;if(m.width){var x=m.width;b&&(x=Math.min(x,b)),S&&(x=Math.max(x,S)),m.width=x,f-=x+c*x,p--}else{var x=d;b&&bx&&(x=S),x!==d&&(m.width=x,f-=x+c*x,p--)}}),d=(f-u)/(p+(p-1)*c),d=Math.max(d,0);var g=0,y;G(o,function(m,b){m.width||(m.width=d),y=m,g+=m.width*(1+c)}),y&&(g-=y.width*c);var _=-g/2;G(o,function(m,b){n[i][b]=n[i][b]||{bandWidth:a,offset:_,width:m.width},_+=m.width*(1+c)})}),n}function tie(e,t,n){if(e&&t){var r=e[WF(t)];return r!=null&&n!=null?r[GF(n)]:r}}function nie(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function rie(e){return e.pipelineContext&&e.pipelineContext.large}var Hm="\0__throttleOriginMethod",pD="\0__throttleRate",vD="\0__throttleType";function YF(e,t,n){var r,i=0,o=0,a=null,s,l,u,c;t=t||0;function f(){o=new Date().getTime(),a=null,e.apply(l,u||[])}var p=function(){for(var d=[],g=0;g=0?f():a=setTimeout(f,-s),i=r};return p.clear=function(){a&&(clearTimeout(a),a=null)},p.debounceNextCall=function(d){c=d},p}function jF(e,t,n,r){var i=e[t];if(i){var o=i[Hm]||i,a=i[vD],s=i[pD];if(s!==n||a!==r){if(n==null||!r)return e[t]=o;i=e[t]=YF(o,n,r==="debounce"),i[Hm]=o,i[vD]=r,i[pD]=n}return i}}function nS(e,t){var n=e[t];n&&n[Hm]&&(n.clear&&n.clear(),e[t]=n[Hm])}function Ju(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=i.selected,c=0;c=0;if(i){var a=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&rS(e,a,t,n)}else{rS(e,t,t,n);var o=cie(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&lie.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function cie(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r!==0?r:n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function fie(e,t,n,r){e.addEventListener(t,n,r)}function hie(e,t,n,r){e.removeEventListener(t,n,r)}var qF=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},die=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var i=t.touches;if(i){for(var o={points:[],touches:[],target:n,event:t},a=0,s=i.length;a1&&r&&r.length>1){var o=mD(r)/mD(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=pie(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},XF="silent";function vie(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:gie}}function gie(){qF(this.event)}var mie=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(oa),Zf=function(){function e(t,n){this.x=t,this.y=n}return e}(),yie=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Y1=new Zt(0,0,0,0),KF=function(e){Ve(t,e);function t(n,r,i,o,a){var s=e.call(this)||this;return s._hovered=new Zf(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new mie,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new sie(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(G(yie,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,o=ZF(this,r,i),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new Zf(r,i):this.findHover(r,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new Zf(0,0)},t.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,i){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var a="on"+r,s=vie(r,n,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(r,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,i){var o=this.storage.getDisplayList(),a=new Zf(n,r);if(yD(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Zt(n-u,r-u,l,l),f=o.length-1;f>=0;f--){var p=o[f];p!==i&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(Y1.copy(p.getBoundingRect()),p.transform&&Y1.applyTransform(p.transform),Y1.intersect(c)&&s.push(p))}if(s.length)for(var d=4,g=Math.PI/12,y=Math.PI*2,_=0;_4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function _ie(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return i?XF:!0}return!1}function yD(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=_ie(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==XF)){t.target=a;break}}}function ZF(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var QF=32,Qf=7;function wie(e){for(var t=0;e>=QF;)t|=e&1,e>>=1;return e+t}function _D(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function bie(e,t,n){for(n--;t>>1,i(o,e[l])<0?s=l:a=l+1;var u=r-a;switch(u){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;u>0;)e[a+u]=e[a+u-1],u--}e[a]=o}}function j1(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function q1(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Sie(e,t){var n=Qf,r,i,o=0,a=[];r=[],i=[];function s(d,g){r[o]=d,i[o]=g,o+=1}function l(){for(;o>1;){var d=o-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(;o>1;){var d=o-2;d>0&&i[d-1]=Qf||A>=Qf);if(D)break;E<0&&(E=0),E+=2}if(n=E,n<1&&(n=1),g===1){for(m=0;m<_;m++)e[x+m]=e[S+m];e[x+_]=a[b]}else{if(g===0)throw new Error;for(m=0;m=0;m--)e[T+m]=e[E+m];e[x]=a[S];return}for(var A=n;;){var D=0,P=0,O=!1;do if(t(a[S],e[b])<0){if(e[x--]=e[b--],D++,P=0,--g===0){O=!0;break}}else if(e[x--]=a[S--],P++,D=0,--_===1){O=!0;break}while((D|P)=0;m--)e[T+m]=e[E+m];if(g===0){O=!0;break}}if(e[x--]=a[S--],--_===1){O=!0;break}if(P=_-j1(e[b],a,0,_,_-1,t),P!==0){for(x-=P,S-=P,_-=P,T=x+1,E=S+1,m=0;m=Qf||P>=Qf);if(O)break;A<0&&(A=0),A+=2}if(n=A,n<1&&(n=1),_===1){for(x-=g,b-=g,T=x+1,E=b+1,m=g-1;m>=0;m--)e[T+m]=e[E+m];e[x]=a[S]}else{if(_===0)throw new Error;for(E=x-(_-1),m=0;m<_;m++)e[E+m]=a[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Gg(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(is&&(l=s),wD(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(i!==0);a.forceMergeRuns()}}var bD=!1;function X1(){bD||(bD=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function SD(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var xie=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=SD}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(X1(),c.z=0),isNaN(c.z2)&&(X1(),c.z2=0),isNaN(c.zlevel)&&(X1(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,n,r);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,n,r)}},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 n=0,r=t.length;n=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}(),Um;Um=vt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function gc(){return new Date().getTime()}var Cie=function(e){Ve(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=gc()-this._pausedTime,i=r-this._time,o=this._head;o;){var a=o.next,s=o.step(r,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(Um(r),!n._paused&&n.update())}Um(r)},t.prototype.start=function(){this._running||(this._time=gc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=gc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=gc()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var i=new Hx(n,r.loop);return this.addAnimator(i),i},t}(oa),Tie=300,K1=vt.domSupported,Z1=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=ct(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}}(),xD={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},CD=!1;function iS(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Eie(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 Q1(e){e&&(e.zrByTouch=!0)}function Aie(e,t){return Bi(e.dom,new Mie(e,t),!0)}function JF(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Mie=function(){function e(t,n){this.stopPropagation=Jr,this.stopImmediatePropagation=Jr,this.preventDefault=Jr,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),co={mousedown:function(e){e=Bi(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Bi(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=Bi(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Bi(this.dom,e);var t=e.toElement||e.relatedTarget;JF(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){CD=!0,e=Bi(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){CD||(e=Bi(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Bi(this.dom,e),Q1(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),co.mousemove.call(this,e),co.mousedown.call(this,e)},touchmove:function(e){e=Bi(this.dom,e),Q1(e),this.handler.processGesture(e,"change"),co.mousemove.call(this,e)},touchend:function(e){e=Bi(this.dom,e),Q1(e),this.handler.processGesture(e,"end"),co.mouseup.call(this,e),+new Date-+this.__lastTouchMoment0&&(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,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n=0;l--)o[l]&&!Rd(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[RD],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var o=i[r||0];if(o)return o;if(r==null){for(var a=0;a=t:n==="max"?e<=t:e===t}function qie(e,t){return e.join(",")===t.join(",")}var ao=G,kd=it,LD=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ew(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=LD.length;n=0;_--){var m=e[_];if(s||(g=m.data.rawIndexOf(m.stackedByDimension,d)),g>=0){var b=m.data.getByRawIndex(m.stackResultDimension,g);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&p>=0&&b>0||l==="samesign"&&p<=0&&b<0){p=RJ(p,b),y=b;break}}}return r[0]=p,r[1]=y,r})})}var na=function(){function e(){this.group=new Sr,this.uid=q0("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){},e.prototype.updateLayout=function(t,n,r,i){},e.prototype.updateVisual=function(t,n,r,i){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e}();kx(na);O0(na);var $D=Kn(),BD={itemStyle:Ad(qN,!0),lineStyle:Ad(jN,!0)},ioe={lineStyle:"stroke",itemStyle:"fill"};function o5(e,t){var n=e.visualStyleMapper||BD[t];return n||(console.warn("Unknown style type '"+t+"'."),BD.itemStyle)}function a5(e,t){var n=e.visualDrawType||ioe[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var ooe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=o5(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=a5(e,r),u=a[l],c=wt(u)?u:null,f=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||f){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=p,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||wt(a.fill)?p:a.fill,a.stroke=a.stroke==="auto"||wt(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(d,g){var y=e.getDataParams(g),_=Pe({},a);_[l]=c(y),d.setItemVisual(g,"style",_)}}}},th=new On,aoe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=o5(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){th.option=l[r];var u=i(th),c=a.ensureUniqueItemVisual(s,"style");Pe(c,u),th.option.decal&&(a.setItemVisual(s,"decal",th.option.decal),th.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},soe={performRawSeries:!0,overallReset:function(e){var t=Rt();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,o=t.get(i);o||(o={},t.set(i,o)),$D(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=$D(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=a5(n,s);o.each(function(u){var c=o.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],f=o.getItemVisual(c,"colorFromPalette");if(f){var p=o.ensureUniqueItemVisual(c,"style"),d=r.getName(u)||u+"",g=r.count();p[l]=n.getColorFromPalette(d,a,g)}})}})}},zv=Math.PI;function loe(e,t){t=t||{},nn(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 n=new Sr,r=new cr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new ri({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new cr({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(o);var a;return t.showSpinner&&(a=new G0({shape:{startAngle:-zv/2,endAngle:-zv/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:zv*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:zv*3/2}).delay(300).start("circularInOut"),n.add(a)),n.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&&a.setShape({cx:u,cy:c}),o.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var s5=function(){function e(t,n,r,i){this._stageTaskMap=Rt(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,o=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex,a=o?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),i=t.getData(),o=i.count(),a=r.progressiveEnabled&&n.incrementalPrepareRender&&o>=r.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=Rt();t.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;r.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;G(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";Ya(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,n,r),i.overallReset&&this._createOverallStageTask(i,o,n,r)},this)},e.prototype.prepareView=function(t,n,r,i){var o=t.renderTask,a=o.context;a.model=n,a.ecModel=r,a.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(n,o)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,i){i=i||{};var o=!1,a=this;G(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),f=c.seriesTaskMap,p=c.overallTask;if(p){var d,g=p.agentStubMap;g.each(function(_){s(i,_)&&(_.dirty(),d=!0)}),d&&p.dirty(),a.updatePayload(p,r);var y=a.getPerformArgs(p,i.block);g.each(function(_){_.perform(y)}),p.perform(y)&&(o=!0)}else f&&f.each(function(_,m){s(i,_)&&_.dirty();var b=a.getPerformArgs(_,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(_.context.model),a.updatePayload(_,r),_.perform(b)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,i){var o=this,a=n.seriesTaskMap,s=n.seriesTaskMap=Rt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(f){var p=f.uid,d=s.set(p,a&&a.get(p)||td({plan:doe,reset:poe,count:goe}));d.context={model:f,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(f,d)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||td({reset:uoe});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Rt(),u=t.seriesType,c=t.getTargetSeries,f=!0,p=!1,d="";Ya(!t.createOnAllSeries,d),u?r.eachRawSeriesByType(u,g):c?c(r,i).each(g):(f=!1,G(r.getSeries(),g));function g(y){var _=y.uid,m=l.set(_,s&&s.get(_)||(p=!0,td({reset:coe,onDirty:hoe})));m.context={model:y,overallProgress:f},m.agent=a,m.__block=f,o._pipe(y,m)}p&&a.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},e.wrapStageHandler=function(t,n){return wt(t)&&(t={overallReset:t,seriesType:moe(t)}),t.uid=q0("stageHandler"),n&&(t.visualType=n),t},e}();function uoe(e){e.overallReset(e.ecModel,e.api,e.payload)}function coe(e){return e.overallProgress&&foe}function foe(){this.agent.dirty(),this.getDownstream().dirty()}function hoe(){this.agent&&this.agent.dirty()}function doe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function poe(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?ct(t,function(n,r){return l5(r)}):voe}var voe=l5(0);function l5(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o0&&d===u.length-p.length){var g=u.slice(0,d);g!=="data"&&(n.mainType=g,n[p.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,i,o));function c(f,p,d,g){return f[d]==null||p[g||d]===f[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),aS=["symbol","symbolSize","symbolRotate","symbolOffset"],zD=aS.concat(["symbolKeepAspect"]),woe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a=0&&ru(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function sS(e,t,n){for(var r=t.type==="radial"?Moe(e,t,n):Aoe(e,t,n),i=t.colorStops,o=0;o0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Tn(e)?[e]:ze(e)?e:null}function h5(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Doe(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=ct(n,function(o){return o/i}),r/=i)}return[n,r]}var Ioe=new yu(!0);function zm(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function GD(e){return typeof e=="string"&&e!=="none"}function Gm(e){var t=e.fill;return t!=null&&t!=="none"}function WD(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function YD(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function lS(e,t,n){var r=Qk(t.image,t.__image,n);if(k0(r)){var i=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*WZ),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function Poe(e,t,n,r){var i,o=zm(n),a=Gm(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Ioe,f=t.__dirty;if(!r){var p=n.fill,d=n.stroke,g=a&&!!p.colorStops,y=o&&!!d.colorStops,_=a&&!!p.image,m=o&&!!d.image,b=void 0,S=void 0,x=void 0,E=void 0,T=void 0;(g||y)&&(T=t.getBoundingRect()),g&&(b=f?sS(e,p,T):t.__canvasFillGradient,t.__canvasFillGradient=b),y&&(S=f?sS(e,d,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),_&&(x=f||!t.__canvasFillPattern?lS(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),m&&(E=f||!t.__canvasStrokePattern?lS(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),g?e.fillStyle=b:_&&(x?e.fillStyle=x:a=!1),y?e.strokeStyle=S:m&&(E?e.strokeStyle=E:o=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var D,P;e.setLineDash&&n.lineDash&&(i=h5(t),D=i[0],P=i[1]);var O=!0;(u||f&cc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),O=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),O&&c.rebuildPath(e,l?s:1),D&&(e.setLineDash(D),e.lineDashOffset=P),r||(n.strokeFirst?(o&&YD(e,n),a&&WD(e,n)):(a&&WD(e,n),o&&YD(e,n))),D&&e.setLineDash([])}function Loe(e,t,n){var r=t.__image=Qk(n.image,t.__image,t,t.onload);if(!(!r||!k0(r))){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=a-u,p=s-c;e.drawImage(r,u,c,f,p,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function Ooe(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||gu,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=h5(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(zm(n)&&e.strokeText(i,n.x,n.y),Gm(n)&&e.fillText(i,n.x,n.y)):(Gm(n)&&e.fillText(i,n.x,n.y),zm(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var jD=["shadowBlur","shadowOffsetX","shadowOffsetY"],qD=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function d5(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Zr(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?cu.opacity:a}(r||t.blend!==n.blend)&&(o||(Zr(e,i),o=!0),e.globalCompositeOperation=t.blend||cu.blend);for(var s=0;s0&&n.unfinished);n.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(n,r,i){if(!this[gr]){if(this._disposed){this.id;return}var o,a,s;if(it(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[gr]=!0,!this._model||r){var l=new Gie(this._api),u=this._theme,c=this._model=new SC;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},fS);var f={seriesTransition:s,optionChanged:!0};if(i)this[Wr]={silent:o,updateParams:f},this[gr]=!1,this.getZr().wakeUp();else{try{nc(this),Ss.update.call(this,null,f)}catch(p){throw this[Wr]=null,this[gr]=!1,p}this._ssr||this._zr.flush(),this[Wr]=null,this[gr]=!1,nh.call(this,o),rh.call(this,o)}}},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||vt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(vt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return G(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,o=[],a=this;G(r,function(l){i.eachComponent({mainType:l},function(u){var c=a._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return G(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(uI[i]){var l=s,u=s,c=-s,f=-s,p=[],d=n&&n.pixelRatio||this.getDevicePixelRatio();G(rd,function(S,x){if(S.group===i){var E=r?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(Nt(n)),T=S.getDom().getBoundingClientRect();l=o(T.left,l),u=o(T.top,u),c=a(T.right,c),f=a(T.bottom,f),p.push({dom:E,left:T.left,top:T.top})}}),l*=d,u*=d,c*=d,f*=d;var g=c-l,y=f-u,_=of.createCanvas(),m=AD(_,{renderer:r?"svg":"canvas"});if(m.resize({width:g,height:y}),r){var b="";return G(p,function(S){var x=S.left-l,E=S.top-u;b+=''+S.dom+""}),m.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new cr({shape:{x:0,y:0,width:g,height:y},style:{fill:n.connectedBackgroundColor}})),G(p,function(S){var x=new ol({style:{x:S.left*d-l,y:S.top*d-u,image:S.dom}});m.add(x)}),m.refreshImmediately(),_.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return aw(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return aw(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=T1(i,n);return G(a,function(s,l){l.indexOf("Models")>=0&&G(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(o=o||f.containPoint(r,u))}},this)},this),!!o},t.prototype.getVisual=function(n,r){var i=this._model,o=T1(i,n,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?Soe(s,l,r):xoe(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;G(oae,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&xh(s,function(g){var y=fn(g);if(y&&y.dataIndex!=null){var _=y.dataModel||a.getSeriesByIndex(y.seriesIndex);return l=_&&_.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return l=Pe({},y.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var p=c&&f!=null&&a.getComponent(c,f),d=p&&n[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:d},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),G(nd,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),G(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),iie(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 n=this.getDom();n&&xN(this.getDom(),TC,"");var r=this,i=r._api,o=r._model;G(r._componentsViews,function(a){a.dispose(o,i)}),G(r._chartsViews,function(a){a.dispose(o,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete rd[r.id]},t.prototype.resize=function(n){if(!this[gr]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),o=n&&n.silent;this[Wr]&&(o==null&&(o=this[Wr].silent),i=!0,this[Wr]=null),this[gr]=!0;try{i&&nc(this),Ss.update.call(this,{type:"resize",animation:Pe({duration:0},n&&n.animation)})}catch(a){throw this[gr]=!1,a}this[gr]=!1,nh.call(this,o),rh.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(it(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!hS[n]){var i=hS[n](this._api,r),o=this._zr;this._loadingFX=i,o.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(n){var r=Pe({},n);return r.type=nd[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(it(r)||(r={silent:!!r}),!!Wm[n.type]&&this._model){if(this[gr]){this._pendingActions.push(n);return}var i=r.silent;lw.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&vt.browser.weChat&&this._throttledZrFlush(),nh.call(this,i),rh.call(this,i)}},t.prototype.updateLabelLayout=function(){fo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(r);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){nc=function(f){var p=f._scheduler;p.restorePipelines(f._model),p.prepareStageTasks(),ow(f,!0),ow(f,!1),p.plan()},ow=function(f,p){for(var d=f._model,g=f._scheduler,y=p?f._componentsViews:f._chartsViews,_=p?f._componentsMap:f._chartsMap,m=f._zr,b=f._api,S=0;Sp.get("hoverLayerThreshold")&&!vt.node&&!vt.worker&&p.eachSeries(function(_){if(!_.preventUsingHoverLayer){var m=f._chartsMap[_.__viewId];m.__alive&&m.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function a(f,p){var d=f.get("blendMode")||null;p.eachRendered(function(g){g.isGroup||(g.style.blend=d)})}function s(f,p){if(!f.preventAutoZ){var d=f.get("z")||0,g=f.get("zlevel")||0;p.eachRendered(function(y){return l(y,d,g,-1/0),!0})}}function l(f,p,d,g){var y=f.getTextContent(),_=f.getTextGuideLine(),m=f.isGroup;if(m)for(var b=f.childrenRef(),S=0;S0?{duration:y,delay:d.get("delay"),easing:d.get("easing")}:null;p.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Qh(m))return;if(m instanceof pn&&pee(m),m.__dirty){var b=m.prevStates;b&&m.useStates(b)}if(g){m.stateTransition=_;var S=m.getTextContent(),x=m.getTextGuideLine();S&&(S.stateTransition=_),x&&(x.stateTransition=_)}m.__dirty&&i(m)}})}sI=function(f){return new(function(p){Ve(d,p);function d(){return p!==null&&p.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(g){for(;g;){var y=g.__ecComponentInfo;if(y!=null)return f._model.getComponent(y.mainType,y.index);g=g.parent}},d.prototype.enterEmphasis=function(g,y){Pm(g,y),Fi(f)},d.prototype.leaveEmphasis=function(g,y){Lm(g,y),Fi(f)},d.prototype.enterBlur=function(g){iee(g),Fi(f)},d.prototype.leaveBlur=function(g){MN(g),Fi(f)},d.prototype.enterSelect=function(g){RN(g),Fi(f)},d.prototype.leaveSelect=function(g){DN(g),Fi(f)},d.prototype.getModel=function(){return f.getModel()},d.prototype.getViewOfComponentModel=function(g){return f.getViewOfComponentModel(g)},d.prototype.getViewOfSeriesModel=function(g){return f.getViewOfSeriesModel(g)},d}(n5))(f)},M5=function(f){function p(d,g){for(var y=0;y=0)){cI.push(n);var o=s5.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function O5(e,t){hS[e]=t}function dae(e,t,n){var r=Goe("registerMap");r&&r(e,t,n)}var pae=Hne;Su(xC,ooe);Su(ny,aoe);Su(ny,soe);Su(xC,woe);Su(ny,boe);Su(S5,Uoe);P5(i5);L5(joe,noe);O5("default",loe);uf({type:fu,event:fu,update:fu},Jr);uf({type:Fg,event:Fg,update:Fg},Jr);uf({type:Xh,event:Xh,update:Xh},Jr);uf({type:$g,event:$g,update:$g},Jr);uf({type:Kh,event:Kh,update:Kh},Jr);I5("light",yoe);I5("dark",f5);var fI=[],vae={registerPreprocessor:P5,registerProcessor:L5,registerPostInit:uae,registerPostUpdate:cae,registerUpdateLifecycle:EC,registerAction:uf,registerCoordinateSystem:fae,registerLayout:hae,registerVisual:Su,registerTransform:pae,registerLoading:O5,registerMap:dae,registerImpl:zoe,PRIORITY:nae,ComponentModel:on,ComponentView:na,SeriesModel:Ks,ChartView:Xo,registerComponentModel:function(e){on.registerClass(e)},registerComponentView:function(e){na.registerClass(e)},registerSeriesModel:function(e){Ks.registerClass(e)},registerChartView:function(e){Xo.registerClass(e)},registerSubTypeDefaulter:function(e,t){on.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){kie(e,t)}};function Zs(e){if(ze(e)){G(e,function(t){Zs(t)});return}an(fI,e)>=0||(fI.push(e),wt(e)&&(e={install:e}),e.install(vae))}var gae=function(e){Ve(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}(on),mae=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),dS=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",yo).models[0]},t.type="cartesian2dAxis",t}(on);ia(dS,mae);var k5={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)"]}}},yae=Kt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},k5),MC=Kt({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}}},k5),_ae=Kt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},MC),wae=nn({logBase:10},MC);const bae={category:yae,value:MC,time:_ae,log:wae};var Sae=0,pS=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Sae}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&ct(r,xae);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!qe(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var i=this._getOrCreateMap();return n=i.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,i.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Rt(this.categories))},e}();function xae(e){return it(e)&&e.value!=null?e.value:e+""}var Cae={value:1,category:1,time:1,log:1};function hI(e,t,n,r){G(Cae,function(i,o){var a=Kt(Kt({},bae[o],!0),r,!0),s=function(l){Ve(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var p=Ld(this),d=p?ty(c):{},g=f.getTheme();Kt(c,g.get(o+"Axis")),Kt(c,this.getDefaultOption()),c.type=dI(c),p&&Zc(c,d,p)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=pS.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."+o,u.defaultOption=a,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",dI)}function dI(e){return e.type||(e.data?"category":"value")}var sa=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var n=this._extent;t[0]n[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},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}();O0(sa);function vS(e){return e.type==="interval"||e.type==="log"}function Tae(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=yN(o/t);n!=null&&ar&&(a=i.interval=r);var s=i.intervalPrecision=N5(a),l=i.niceTickExtent=[Wn(Math.ceil(e[0]/a)*a,s),Wn(Math.floor(e[1]/a)*a,s)];return Eae(l,e),i}function cw(e){var t=Math.pow(10,zx(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Wn(n*t)}function N5(e){return ka(e)+2}function pI(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Eae(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),pI(e,0,t),pI(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function ry(e,t){return e>=t[0]&&e<=t[1]}function iy(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function oy(e,t){return e*(t[1]-t[0])+t[0]}var RC=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new pS({})),ze(i)&&(i=new pS({categories:ct(i,function(o){return it(o)?o.value:o})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:qe(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),ry(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),iy(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(oy(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(sa);sa.registerClass(RC);var $l=Wn,cf=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return ry(n,this._extent)},t.prototype.normalize=function(n){return iy(n,this._extent)},t.prototype.scale=function(n){return oy(n,this._extent)},t.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=N5(n)},t.prototype.getTicks=function(n){var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:o[1];return i[1]>c&&(n?s.push({value:$l(c+r,a)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;ao[0]&&d>>1;e[i][1]i&&(this._approxInterval=i);var s=Xv.length,l=Math.min(Aae(Xv,this._approxInterval,0,s),s-1);this._interval=Xv[l][1],this._minLevelUnit=Xv[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return Tn(n)?n:+ja(n)},t.prototype.contain=function(n){return ry(this.parse(n),this._extent)},t.prototype.normalize=function(n){return iy(this.parse(n),this._extent)},t.prototype.scale=function(n){return oy(n,this._extent)},t.type="time",t}(cf),Xv=[["second",pC],["minute",vC],["hour",Jh],["quarter-day",Jh*6],["half-day",Jh*12],["day",qi*1.2],["half-week",qi*3.5],["week",qi*7],["month",qi*31],["quarter",qi*95],["half-year",XR/2],["year",XR]];function Mae(e,t,n,r){var i=ja(t),o=ja(n),a=function(g){return ZR(i,g,r)===ZR(o,g,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},f=function(){return c()&&a("minute")},p=function(){return f()&&a("second")},d=function(){return p()&&a("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 p();case"millisecond":return d()}}function Rae(e,t){return e/=qi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Dae(e){var t=30*qi;return e/=t,e>6?6:e>3?3:e>2?2:1}function Iae(e){return e/=Jh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function vI(e,t){return e/=t?vC:pC,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Pae(e){return yN(e)}function Lae(e,t,n){var r=new Date(e);switch(Nc(t)){case"year":case"month":r[_F(n)](0);case"day":r[wF(n)](1);case"hour":r[bF(n)](0);case"minute":r[SF(n)](0);case"second":r[xF(n)](0),r[CF(n)](0)}return r.getTime()}function Oae(e,t,n,r){var i=1e4,o=mF,a=0;function s(O,k,H,te,W,q,j){for(var ie=new Date(k),J=k,ce=ie[te]();J1&&q===0&&H.unshift({value:H[0].value-J})}}for(var q=0;q=r[0]&&b<=r[1]&&f++)}var S=(r[1]-r[0])/t;if(f>S*1.5&&p>S/1.5||(u.push(_),f>S||e===o[d]))break}c=[]}}}for(var x=Or(ct(u,function(O){return Or(O,function(k){return k.value>=r[0]&&k.value<=r[1]&&!k.notAdd})}),function(O){return O.length>0}),E=[],T=x.length-1,d=0;d0;)o*=10;var s=[Wn(Fae(r[0]/o)*o),Wn(Nae(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){id.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=so(n)/so(this.base),ry(n,this._extent)},t.prototype.normalize=function(n){return n=so(n)/so(this.base),iy(n,this._extent)},t.prototype.scale=function(n){return n=oy(n,this._extent),Kv(this.base,n)},t.type="log",t}(sa),$5=DC.prototype;$5.getMinorTicks=id.getMinorTicks;$5.getLabel=id.getLabel;function Zv(e,t){return kae(e,ka(t))}sa.registerClass(DC);var $ae=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var p=this._determinedMin,d=this._determinedMax;return p!=null&&(s=p,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,n){this[Vae[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=Bae[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),Bae={min:"_determinedMin",max:"_determinedMax"},Vae={min:"_dataMin",max:"_dataMax"};function Hae(e,t,n){var r=e.rawExtentInfo;return r||(r=new $ae(e,t,n),e.rawExtentInfo=r,r)}function Qv(e,t){return t==null?null:Sm(t)?NaN:e.parse(t)}function B5(e,t){var n=e.type,r=Hae(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&n==="time"){var s=Zre("bar",a),l=!1;if(G(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=Jre(s),c=Uae(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Uae(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=tie(r,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;G(a,function(d){s=Math.min(d.offset,s)});var l=-1/0;G(a,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)/o,p=c/f-c;return t+=p*(l/u),e-=p*(s/u),{min:e,max:t}}function mI(e,t){var n=t,r=B5(e,n),i=r.extent,o=n.get("splitNumber");e instanceof DC&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l=a==="interval"||a==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function zae(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new RC({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new F5({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(sa.getClass(t)||cf)}}function Gae(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function ff(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(r){return function(i,o){return e.scale.getFormattedLabel(i,o,r)}}(t):qe(t)?function(r){return function(i){var o=e.scale.getLabel(i),a=r.replace("{value}",o??"");return a}}(t):wt(t)?function(r){return function(i,o){return n!=null&&(o=i.value-n),r(IC(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function IC(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Wae(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof RC?i=n.count():(r=n.getTicks(),i=r.length);var a=e.getLabelModel(),s=ff(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Kae(e){var t=e.getLabelModel().get("customValues");if(t){var n=ff(e);return{labels:H5(e,t).map(function(r){var i={value:r};return{formattedLabel:n(i),rawLabel:e.scale.getLabel(i),tickValue:r}})}}return e.type==="category"?Qae(e):ese(e)}function Zae(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:H5(e,n)}:e.type==="category"?Jae(e,t):{ticks:ct(e.scale.getTicks(),function(r){return r.value})}}function Qae(e){var t=e.getLabelModel(),n=U5(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function U5(e,t){var n=z5(e,"labels"),r=PC(t),i=G5(n,r);if(i)return i;var o,a;return wt(r)?o=j5(e,r):(a=r==="auto"?tse(e):r,o=Y5(e,a)),W5(n,r,{labels:o,labelCategoryInterval:a})}function Jae(e,t){var n=z5(e,"ticks"),r=PC(t),i=G5(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),wt(r))o=j5(e,r,!0);else if(r==="auto"){var s=U5(e,e.getLabelModel());a=s.labelCategoryInterval,o=ct(s.labels,function(l){return l.tickValue})}else a=r,o=Y5(e,a,!0);return W5(n,r,{ticks:o,tickCategoryInterval:a})}function ese(e){var t=e.scale.getTicks(),n=ff(e);return{labels:ct(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function z5(e,t){return $d(e)[t]||($d(e)[t]=[])}function G5(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),p=0,d=0;l<=o[1];l+=s){var g=0,y=0,_=Bx(n({value:l}),t.font,"center","top");g=_.width*1.3,y=_.height*1.3,p=Math.max(p,g,7),d=Math.max(d,y,7)}var m=p/c,b=d/f;isNaN(m)&&(m=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(m,b))),x=$d(e.model),E=e.getExtent(),T=x.lastAutoInterval,A=x.lastTickCount;return T!=null&&A!=null&&Math.abs(T-S)<=1&&Math.abs(A-a)<=1&&T>S&&x.axisExtent0===E[0]&&x.axisExtent1===E[1]?S=T:(x.lastTickCount=a,x.lastAutoInterval=S,x.axisExtent0=E[0],x.axisExtent1=E[1]),S}function rse(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 Y5(e,t,n){var r=ff(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=V5(e),p=a.get("showMinLabel")||f,d=a.get("showMaxLabel")||f;p&&u!==o[0]&&y(o[0]);for(var g=u;g<=o[1];g+=l)y(g);d&&g-l!==o[1]&&y(o[1]);function y(_){var m={value:_};s.push(n?_:{formattedLabel:r(m),rawLabel:i.getLabel(m),tickValue:_})}return s}function j5(e,t,n){var r=e.scale,i=ff(e),o=[];return G(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;t(a.value,s)&&o.push(n?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var _I=[0,1],ise=function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return t>=r&&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 MJ(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(r=r.slice(),wI(r,i.count())),oR(t,_I,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),wI(r,i.count()));var o=oR(t,r,_I,n);return this.scale.scale(o)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=Zae(this,n),i=r.ticks,o=ct(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return ose(this,o,a,t.clamp),o},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=ct(r,function(o){return ct(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return Kae(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,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/r},e.prototype.calculateCategoryInterval=function(){return nse(this)},e}();function wI(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function ose(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o=e.getExtent(),a,s;if(i===1)t[0].coord=o[0],a=t[1]={coord:o[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;G(t,function(d){d.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,a={coord:t[i-1].coord+u*s},t.push(a)}var f=o[0]>o[1];p(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&p(o[0],t[0].coord)&&t.unshift({coord:o[0]}),p(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&p(a.coord,o[1])&&t.push({coord:o[1]});function p(d,g){return d=Wn(d),g=Wn(g),f?d>g:dr[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(ise);function mS(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,g=u==="x"?[f[2]-d,f[3]+d]:[f[0]-d,f[1]+d];if(a){var y=a.toGlobalCoord(a.dataToCoord(0));g[p.onZero]=Math.max(Math.min(y,g[1]),g[0])}o.position=[u==="y"?g[p[l]]:f[0],u==="x"?g[p[l]]:f[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var _={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=_[s],o.labelOffset=a?g[p[s]]-g[p.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Ed(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-m:m,o.z2=1,o}function bI(e){return e.get("coordinateSystem")==="cartesian2d"}function SI(e){var t={xAxisModel:null,yAxisModel:null};return G(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,yo).models[0];t[r]=o}),t}var fw=Math.log;function sse(e,t,n){var r=cf.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=B5(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var p=fw(e.base);u=[fw(u[0])/p,fw(u[1])/p]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:f});var d=r.getExtent.call(e);c&&(u[0]=d[0]),f&&(u[1]=d[1]);var g=r.getInterval.call(e),y=u[0],_=u[1];if(c&&f)g=(_-y)/a;else if(c)for(_=u[0]+g*a;_u[0]&&isFinite(y)&&isFinite(u[0]);)g=cw(g),y=u[1]-g*a;else{var m=e.getTicks().length-1;m>a&&(g=cw(g));var b=g*a;_=Math.ceil(u[1]/g)*g,y=Wn(_-b),y<0&&u[0]>=0?(y=0,_=Wn(b)):_>0&&u[1]<=0&&(_=0,y=-Wn(b))}var S=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(e,y+g*S,_+g*x),r.setInterval.call(e,g),(S||x)&&r.setNiceExtent.call(e,y+g,_-g)}var lse=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=gS,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function i(a){var s,l=Cn(a),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var p=+l[f],d=a[p],g=d.model,y=d.scale;vS(y)&&g.get("alignTicks")&&g.get("interval")==null?c.push(d):(mI(y,g),vS(y)&&(s=d))}c.length&&(s||(s=c.pop(),mI(s.scale,s.model)),G(c,function(_){sse(_.scale,_.model,s.scale)}))}}i(r.x),i(r.y);var o={};G(r.x,function(a){xI(r,"y",a,o)}),G(r.y,function(a){xI(r,"x",a,o)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var i=t.getBoxLayoutParams(),o=!r&&t.get("containLabel"),a=Bm(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(G(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Wae(u);if(c){var f=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);a[f]-=c[f]+p,u.position==="top"?a.y+=c.height+p:u.position==="left"&&(a.x+=c.width+p)}}}),l()),G(this._coordsList,function(u){u.calcAffineTransform()});function l(){G(s,function(u){var c=u.isHorizontal(),f=c?[0,a.width]:[0,a.height],p=u.inverse?1:0;u.setExtent(f[p],f[1-p]),use(u,c?a.x:a.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}it(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i0?"top":"bottom",o="center"):Dm(i-Fs)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),TI={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Zi(s,s,a),Zi(l,l,a));var c=Pe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new qs({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Dd(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var p=t.get(["axisLine","symbol"]);if(p!=null){var d=t.get(["axisLine","symbolSize"]);qe(p)&&(p=[p,p]),(qe(d)||Tn(d))&&(d=[d,d]);var g=kF(t.get(["axisLine","symbolOffset"])||0,d),y=d[0],_=d[1];G([{rotate:e.rotation+Math.PI/2,offset:g[0],r:0},{rotate:e.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,b){if(p[b]!=="none"&&p[b]!=null){var S=Qc(p[b],-y/2,-_/2,y,_,c.stroke,!0),x=m.r+m.offset,E=u?l:s;S.attr({rotation:m.rotate,x:E[0]+x*Math.cos(e.rotation),y:E[1]-x*Math.sin(e.rotation),silent:!0,z2:11}),n.add(S)}})}}},axisTickLabel:function(e,t,n,r){var i=hse(n,r,t,e),o=pse(n,r,t,e);if(fse(t,o,i),dse(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=oie(ct(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));aie(a)}},axisName:function(e,t,n,r){var i=Ed(e.axisName,t.get("name"));if(i){var o=t.get("nameLocation"),a=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[o==="start"?u[0]-c*l:o==="end"?u[1]+c*l:(u[0]+u[1])/2,AI(o)?e.labelOffset+a*l:0],p,d=t.get("nameRotate");d!=null&&(d=d*Fs/180);var g;AI(o)?p=zs.innerTextLayout(e.rotation,d??e.rotation,a):(p=cse(e.rotation,o,d||0,u),g=e.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(p.rotation)),!isFinite(g)&&(g=null)));var y=s.getFont(),_=t.get("nameTruncate",!0)||{},m=_.ellipsis,b=Ed(e.nameTruncateMaxWidth,_.maxWidth,g),S=new ri({x:f[0],y:f[1],rotation:p.rotation,silent:zs.isLabelSilent(t),style:Xc(s,{text:i,font:y,overflow:"truncate",width:b,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(oC({el:S,componentModel:t,itemName:i}),S.__fullText=i,S.anid="name",t.get("triggerEvent")){var x=zs.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,fn(S).eventData=x}r.add(S),S.updateTransform(),n.add(S),S.decomposeTransform()}}};function cse(e,t,n,r){var i=mN(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return Dm(i-Fs/2)?(a=l?"bottom":"top",o="center"):Dm(i-Fs*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",iFs/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function fse(e,t,n){if(!V5(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],f=n[n.length-1],p=n[n.length-2];r===!1?($i(o),$i(u)):EI(o,a)&&(r?($i(a),$i(c)):($i(o),$i(u))),i===!1?($i(s),$i(f)):EI(l,s)&&(i?($i(l),$i(p)):($i(s),$i(f)))}}function $i(e){e&&(e.ignore=!0)}function EI(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=Nx([]);return Fx(i,i,-e.rotation),n.applyTransform(Pc([],i,e.getLocalTransform())),r.applyTransform(Pc([],i,t.getLocalTransform())),n.intersect(r)}}function AI(e){return e==="middle"||e==="center"}function q5(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||e===t}function wse(e){var t=LC(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");a!=null&&(a=r.parse(a));var s=yS(n);o==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),as)return!0;if(a){var l=LC(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,i,o){},e.prototype.createPointerEl=function(t,n,r,i){var o=n.pointer;if(o){var a=Xl(t).pointerEl=new ste[o.type](DI(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=Xl(t).labelEl=new ri(DI(n.label));t.add(o),PI(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Xl(t).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,i){var o=Xl(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),PI(o,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||a==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=iC(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){qF(u.event)},onmousedown:pw(this._onHandleDragMove,this,0,0),drift:pw(this._onHandleDragMove,this),ondragend:pw(this._onHandleDragEnd,this)}),r.add(i)),LI(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ze(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,jF(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){II(this._axisPointerModel,!n&&this._moveAnimation,this._handle,vw(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(vw(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(vw(i)),Xl(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),nS(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e}();function II(e,t,n,r){Q5(Xl(n).lastProp,r)||(Xl(n).lastProp=r,t?Xs(n,r,e):(n.stopAnimation(),n.attr(r)))}function Q5(e,t){if(it(e)&&it(t)){var n=!0;return G(t,function(r,i){n=n&&Q5(e[i],r)}),!!n}else return e===t}function PI(e,t){e[t.get(["label","show"])?"show":"hide"]()}function vw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function LI(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),i!=null&&(o.zlevel=i),o.silent=n)})}function Ise(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function Pse(e,t,n,r,i){var o=n.get("value"),a=J5(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=ey(s.get("padding")||0),u=s.getFont(),c=Bx(a,u),f=i.position,p=c.width+l[1]+l[3],d=c.height+l[0]+l[2],g=i.align;g==="right"&&(f[0]-=p),g==="center"&&(f[0]-=p/2);var y=i.verticalAlign;y==="bottom"&&(f[1]-=d),y==="middle"&&(f[1]-=d/2),Lse(f,p,d,r);var _=s.get("backgroundColor");(!_||_==="auto")&&(_=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Xc(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:_}),z2:10}}function Lse(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function J5(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:IC(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};G(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),qe(a)?o=a.replace("{value}",o):wt(a)&&(o=a(s))}return o}function e3(e,t,n){var r=Ic();return Fx(r,r,n.rotation),Eb(r,r,n.position),rC([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Ose(e,t,n,r,i,o){var a=zs.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Pse(t,r,i,o,{position:e3(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function kse(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Nse(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var Fse=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.grid,u=o.get("type"),c=OI(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var p=Ise(o),d=$se[u](s,f,c);d.style=p,n.graphicKey=d.type,n.pointer=d}var g=mS(l.model,i);Ose(r,n,g,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=mS(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=e3(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),u=OI(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var p=(u[1]+u[0])/2,d=[p,p];d[c]=f[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:d,tooltipOption:g[c]}},t}(Dse);function OI(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var $se={line:function(e,t,n){var r=kse([t,n[0]],[t,n[1]],kI(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:Nse([t-r/2,n[0]],[r,i],kI(e))}}};function kI(e){return e.dim==="x"?0:1}var Bse=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}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}(on),Na=Kn(),Vse=G;function t3(e,t,n){if(!vt.node){var r=t.getZr();Na(r).records||(Na(r).records={}),Hse(r,t);var i=Na(r).records[e]||(Na(r).records[e]={});i.handler=n}}function Hse(e,t){if(Na(e).initialized)return;Na(e).initialized=!0,n("click",tr(NI,"click")),n("mousemove",tr(NI,"mousemove")),n("globalout",zse);function n(r,i){e.on(r,function(o){var a=Gse(t);Vse(Na(e).records,function(s){s&&i(s,o,a.dispatchAction)}),Use(a.pendings,t)})}}function Use(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function zse(e,t,n){e.handler("leave",null,n)}function NI(e,t,n,r){t.handler(e,n,r)}function Gse(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function wS(e,t){if(!vt.node){var n=t.getZr(),r=(Na(n).records||{})[e];r&&(Na(n).records[e]=null)}}var Wse=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=r.getComponent("tooltip"),a=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";t3("axisPointer",i,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){wS("axisPointer",r)},t.prototype.dispose=function(n,r){wS("axisPointer",r)},t.type="axisPointer",t}(na);function n3(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=_u(o,e);if(a==null||a<0||ze(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,p=u.dim,d=f==="x"||f==="radius"?1:0,g=o.mapDimension(p),y=[];y[d]=o.get(g,a),y[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(y)||[]}else n=l.dataToPoint(o.getValues(ct(l.dimensions,function(m){return o.mapDimension(m)}),a))||[];else if(s){var _=s.getBoundingRect().clone();_.applyTransform(s.transform),n=[_.x+_.width/2,_.y+_.height/2]}return{point:n,el:s}}var FI=Kn();function Yse(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Mn(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Yg(i)&&(i=n3({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=Yg(i),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||Yg(i),p={},d={},g={list:[],map:{}},y={showPointer:tr(qse,d),showTooltip:tr(Xse,g)};G(s.coordSysMap,function(m,b){var S=l||m.containPoint(i);G(s.coordSysAxesInfo[b],function(x,E){var T=x.axis,A=Jse(u,x);if(!f&&S&&(!u||A)){var D=A&&A.value;D==null&&!l&&(D=T.pointToData(i)),D!=null&&$I(x,D,y,!1,p)}})});var _={};return G(c,function(m,b){var S=m.linkGroup;S&&!d[b]&&G(S.axesInfo,function(x,E){var T=d[E];if(x!==m&&T){var A=T.value;S.mapper&&(A=m.axis.scale.parse(S.mapper(A,BI(x),BI(m)))),_[m.key]=A}})}),G(_,function(m,b){$I(c[b],m,y,!0,p)}),Kse(d,c,p),Zse(g,i,e,a),Qse(c,a,n),p}}function $I(e,t,n,r,i){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var a=jse(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Pe(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function jse(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return G(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,p;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,e,n);p=d.dataIndices,f=d.nestestValue}else{if(p=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!p.length)return;f=l.getData().get(c[0],p[0])}if(!(f==null||!isFinite(f))){var g=e-f,y=Math.abs(g);y<=a&&((y=0&&s<0)&&(a=y,s=g,i=f,o.length=0),G(p,function(_){o.push({seriesIndex:l.seriesIndex,dataIndexInside:_,dataIndex:l.getData().getRawIndex(_)})}))}}),{payloadBatch:o,snapToValue:i}}function qse(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Xse(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Bd(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:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Kse(e,t,n){var r=n.axesInfo=[];G(t,function(i,o){var a=i.axisPointerModel.option,s=e[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function Zse(e,t,n,r){if(Yg(t)||!e.list.length){r({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Qse(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=FI(r)[i]||{},a=FI(r)[i]={};G(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&G(f.seriesDataIndices,function(p){var d=p.seriesIndex+" | "+p.dataIndex;a[d]=p})});var s=[],l=[];G(o,function(u,c){!a[c]&&l.push(u)}),G(a,function(u,c){!o[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Jse(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function BI(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function Yg(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function r3(e){X5.registerAxisPointerClass("CartesianAxisPointer",Fse),e.registerComponentModel(Bse),e.registerComponentView(Wse),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!ze(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=vse(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Yse)}function ele(e){Zs(Rse),Zs(r3)}function tle(e,t){var n=ey(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new cr({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var nle=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}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}(on);function i3(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function o3(e){if(vt.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=a+i,p=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),d=Math.round(((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-f)/2)*100)/100;s+=";"+o+":-"+d+"px";var g=t+" solid "+i+"px;",y=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"];return'
'}function ule(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=vt.transformSupported?","+OC+r:",left"+r+",top"+r),ole+":"+i}function VI(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!vt.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=vt.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+OC+":"+a+";":[["top",0],["left",0],[a3,a]]}function cle(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),G(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function fle(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=OF(e,"html"),p=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+p),t&&i&&r.push(ule(i,n)),o&&r.push("background-color:"+o),G(["width","color","radius"],function(d){var g="border-"+d,y=EF(g),_=e.get(y);_!=null&&r.push(g+":"+_+(d==="color"?"":"px"))}),r.push(cle(c)),f!=null&&r.push("padding:"+ey(f).join("px ")+"px"),r.join(";")+";"}function HI(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&cne(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var hle=function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,vt.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),o=n.appendTo,a=o&&(qe(o)?document.querySelector(o):Td(o)?o:wt(o)&&o(t.getDom()));HI(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(r),this._api=t,this._container=a;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Vi(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=ile(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,o=this._styleCoord;r.innerHTML?i.cssText=ale+fle(t,!this._firstShow,this._longHide)+VI(o[0],o[1],!0)+("border-color:"+wu(n)+";")+(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,n,r,i,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(qe(o)&&r.get("trigger")==="item"&&!i3(r)&&(s=lle(r,i,o)),qe(t))a.innerHTML=t+s;else if(t){a.innerHTML="",ze(t)||(t=[t]);for(var l=0;l=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(n,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||vt.node||!i.getDom())){var a=GI(o,i);this._ticket="";var s=o.dataByCoordSys,l=_le(o,r,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:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=ple;c.x=o.x,c.y=o.y,c.update(),fn(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,o))return;var f=n3(o,r),p=f.point[0],d=f.point[1];p!=null&&d!=null&&this._tryShow({offsetX:p,offsetY:d,target:f.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(n,r,i,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(GI(o,i))},t.prototype._manuallyAxisShowTip=function(n,r,i,o){var a=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=r.getSeriesByIndex(a);if(u){var c=u.getData(),f=ih([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(n,r){var i=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var a=n.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,n);else if(i){var s=fn(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;xh(i,function(c){if(fn(c).dataIndex!=null)return l=c,!0;if(fn(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(n,l,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=Mn(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=ih([r.tooltipOption],o),l=this._renderMode,u=[],c=Od("section",{blocks:[],noHeader:!0}),f=[],p=new H1;G(n,function(b){G(b.dataByAxis,function(S){var x=i.getComponent(S.axisDim+"Axis",S.axisIndex),E=S.value;if(!(!x||E==null)){var T=J5(E,x.axis,i,S.seriesDataIndices,S.valueLabelOpt),A=Od("section",{header:T,noHeader:!Wo(T),sortBlocks:!0,blocks:[]});c.blocks.push(A),G(S.seriesDataIndices,function(D){var P=i.getSeriesByIndex(D.seriesIndex),O=D.dataIndexInside,k=P.getDataParams(O);if(!(k.dataIndex<0)){k.axisDim=S.axisDim,k.axisIndex=S.axisIndex,k.axisType=S.axisType,k.axisId=S.axisId,k.axisValue=IC(x.axis,{value:E}),k.axisValueLabel=T,k.marker=p.makeTooltipMarker("item",wu(k.color),l);var H=eD(P.formatTooltip(O,!0,null)),te=H.frag;if(te){var W=ih([P],o).get("valueFormatter");A.blocks.push(W?Pe({valueFormatter:W},te):te)}H.text&&f.push(H.text),u.push(k)}})}})}),c.blocks.reverse(),f.reverse();var d=r.position,g=s.get("order"),y=rD(c,p,l,g,i.get("useUTC"),s.get("textStyle"));y&&f.unshift(y);var _=l==="richText"?` +*/var Yg={},e5={};function Pie(e){delete e5[e]}function Lie(e){if(!e)return!1;if(typeof e=="string")return Mm(e,1)0&&(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,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n=0;l--)o[l]&&!Dd(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[MD],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var o=i[r||0];if(o)return o;if(r==null){for(var a=0;a=t:n==="max"?e<=t:e===t}function qie(e,t){return e.join(",")===t.join(",")}var oo=G,Nd=it,PD=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ew(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=PD.length;n=0;_--){var m=e[_];if(s||(g=m.data.rawIndexOf(m.stackedByDimension,d)),g>=0){var b=m.data.getByRawIndex(m.stackResultDimension,g);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&p>=0&&b>0||l==="samesign"&&p<=0&&b<0){p=RJ(p,b),y=b;break}}}return r[0]=p,r[1]=y,r})})}var na=function(){function e(){this.group=new Sr,this.uid=q0("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){},e.prototype.updateLayout=function(t,n,r,i){},e.prototype.updateVisual=function(t,n,r,i){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e}();Ox(na);O0(na);var FD=Kn(),$D={itemStyle:Md(qN,!0),lineStyle:Md(jN,!0)},ioe={lineStyle:"stroke",itemStyle:"fill"};function o5(e,t){var n=e.visualStyleMapper||$D[t];return n||(console.warn("Unknown style type '"+t+"'."),$D.itemStyle)}function a5(e,t){var n=e.visualDrawType||ioe[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var ooe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=o5(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=a5(e,r),u=a[l],c=wt(u)?u:null,f=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||f){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=p,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||wt(a.fill)?p:a.fill,a.stroke=a.stroke==="auto"||wt(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(d,g){var y=e.getDataParams(g),_=Pe({},a);_[l]=c(y),d.setItemVisual(g,"style",_)}}}},th=new On,aoe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=o5(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){th.option=l[r];var u=i(th),c=a.ensureUniqueItemVisual(s,"style");Pe(c,u),th.option.decal&&(a.setItemVisual(s,"decal",th.option.decal),th.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},soe={performRawSeries:!0,overallReset:function(e){var t=Mt();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,o=t.get(i);o||(o={},t.set(i,o)),FD(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=FD(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=a5(n,s);o.each(function(u){var c=o.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],f=o.getItemVisual(c,"colorFromPalette");if(f){var p=o.ensureUniqueItemVisual(c,"style"),d=r.getName(u)||u+"",g=r.count();p[l]=n.getColorFromPalette(d,a,g)}})}})}},Gv=Math.PI;function loe(e,t){t=t||{},nn(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 n=new Sr,r=new cr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new ri({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new cr({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(o);var a;return t.showSpinner&&(a=new G0({shape:{startAngle:-Gv/2,endAngle:-Gv/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:Gv*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:Gv*3/2}).delay(300).start("circularInOut"),n.add(a)),n.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&&a.setShape({cx:u,cy:c}),o.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var s5=function(){function e(t,n,r,i){this._stageTaskMap=Mt(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,o=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex,a=o?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),i=t.getData(),o=i.count(),a=r.progressiveEnabled&&n.incrementalPrepareRender&&o>=r.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=Mt();t.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;r.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;G(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";Ya(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,n,r),i.overallReset&&this._createOverallStageTask(i,o,n,r)},this)},e.prototype.prepareView=function(t,n,r,i){var o=t.renderTask,a=o.context;a.model=n,a.ecModel=r,a.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(n,o)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,i){i=i||{};var o=!1,a=this;G(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),f=c.seriesTaskMap,p=c.overallTask;if(p){var d,g=p.agentStubMap;g.each(function(_){s(i,_)&&(_.dirty(),d=!0)}),d&&p.dirty(),a.updatePayload(p,r);var y=a.getPerformArgs(p,i.block);g.each(function(_){_.perform(y)}),p.perform(y)&&(o=!0)}else f&&f.each(function(_,m){s(i,_)&&_.dirty();var b=a.getPerformArgs(_,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(_.context.model),a.updatePayload(_,r),_.perform(b)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,i){var o=this,a=n.seriesTaskMap,s=n.seriesTaskMap=Mt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(f){var p=f.uid,d=s.set(p,a&&a.get(p)||td({plan:doe,reset:poe,count:goe}));d.context={model:f,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(f,d)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||td({reset:uoe});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Mt(),u=t.seriesType,c=t.getTargetSeries,f=!0,p=!1,d="";Ya(!t.createOnAllSeries,d),u?r.eachRawSeriesByType(u,g):c?c(r,i).each(g):(f=!1,G(r.getSeries(),g));function g(y){var _=y.uid,m=l.set(_,s&&s.get(_)||(p=!0,td({reset:coe,onDirty:hoe})));m.context={model:y,overallProgress:f},m.agent=a,m.__block=f,o._pipe(y,m)}p&&a.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},e.wrapStageHandler=function(t,n){return wt(t)&&(t={overallReset:t,seriesType:moe(t)}),t.uid=q0("stageHandler"),n&&(t.visualType=n),t},e}();function uoe(e){e.overallReset(e.ecModel,e.api,e.payload)}function coe(e){return e.overallProgress&&foe}function foe(){this.agent.dirty(),this.getDownstream().dirty()}function hoe(){this.agent&&this.agent.dirty()}function doe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function poe(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?ct(t,function(n,r){return l5(r)}):voe}var voe=l5(0);function l5(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o0&&d===u.length-p.length){var g=u.slice(0,d);g!=="data"&&(n.mainType=g,n[p.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,i,o));function c(f,p,d,g){return f[d]==null||p[g||d]===f[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),aS=["symbol","symbolSize","symbolRotate","symbolOffset"],UD=aS.concat(["symbolKeepAspect"]),woe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a=0&&ru(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function sS(e,t,n){for(var r=t.type==="radial"?Moe(e,t,n):Aoe(e,t,n),i=t.colorStops,o=0;o0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Tn(e)?[e]:ze(e)?e:null}function h5(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Doe(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=ct(n,function(o){return o/i}),r/=i)}return[n,r]}var Ioe=new yu(!0);function Gm(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function zD(e){return typeof e=="string"&&e!=="none"}function Wm(e){var t=e.fill;return t!=null&&t!=="none"}function GD(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function WD(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function lS(e,t,n){var r=Qk(t.image,t.__image,n);if(k0(r)){var i=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*WZ),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function Poe(e,t,n,r){var i,o=Gm(n),a=Wm(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Ioe,f=t.__dirty;if(!r){var p=n.fill,d=n.stroke,g=a&&!!p.colorStops,y=o&&!!d.colorStops,_=a&&!!p.image,m=o&&!!d.image,b=void 0,S=void 0,x=void 0,E=void 0,T=void 0;(g||y)&&(T=t.getBoundingRect()),g&&(b=f?sS(e,p,T):t.__canvasFillGradient,t.__canvasFillGradient=b),y&&(S=f?sS(e,d,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),_&&(x=f||!t.__canvasFillPattern?lS(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),m&&(E=f||!t.__canvasStrokePattern?lS(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),g?e.fillStyle=b:_&&(x?e.fillStyle=x:a=!1),y?e.strokeStyle=S:m&&(E?e.strokeStyle=E:o=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var D,P;e.setLineDash&&n.lineDash&&(i=h5(t),D=i[0],P=i[1]);var O=!0;(u||f&cc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),O=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),O&&c.rebuildPath(e,l?s:1),D&&(e.setLineDash(D),e.lineDashOffset=P),r||(n.strokeFirst?(o&&WD(e,n),a&&GD(e,n)):(a&&GD(e,n),o&&WD(e,n))),D&&e.setLineDash([])}function Loe(e,t,n){var r=t.__image=Qk(n.image,t.__image,t,t.onload);if(!(!r||!k0(r))){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=a-u,p=s-c;e.drawImage(r,u,c,f,p,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function Ooe(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||gu,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=h5(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(Gm(n)&&e.strokeText(i,n.x,n.y),Wm(n)&&e.fillText(i,n.x,n.y)):(Wm(n)&&e.fillText(i,n.x,n.y),Gm(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var YD=["shadowBlur","shadowOffsetX","shadowOffsetY"],jD=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function d5(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Zr(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?cu.opacity:a}(r||t.blend!==n.blend)&&(o||(Zr(e,i),o=!0),e.globalCompositeOperation=t.blend||cu.blend);for(var s=0;s0&&n.unfinished);n.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(n,r,i){if(!this[gr]){if(this._disposed){this.id;return}var o,a,s;if(it(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[gr]=!0,!this._model||r){var l=new Gie(this._api),u=this._theme,c=this._model=new bC;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},fS);var f={seriesTransition:s,optionChanged:!0};if(i)this[Wr]={silent:o,updateParams:f},this[gr]=!1,this.getZr().wakeUp();else{try{nc(this),Ss.update.call(this,null,f)}catch(p){throw this[Wr]=null,this[gr]=!1,p}this._ssr||this._zr.flush(),this[Wr]=null,this[gr]=!1,nh.call(this,o),rh.call(this,o)}}},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||vt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(vt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return G(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,o=[],a=this;G(r,function(l){i.eachComponent({mainType:l},function(u){var c=a._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return G(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(lI[i]){var l=s,u=s,c=-s,f=-s,p=[],d=n&&n.pixelRatio||this.getDevicePixelRatio();G(rd,function(S,x){if(S.group===i){var E=r?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(Nt(n)),T=S.getDom().getBoundingClientRect();l=o(T.left,l),u=o(T.top,u),c=a(T.right,c),f=a(T.bottom,f),p.push({dom:E,left:T.left,top:T.top})}}),l*=d,u*=d,c*=d,f*=d;var g=c-l,y=f-u,_=of.createCanvas(),m=ED(_,{renderer:r?"svg":"canvas"});if(m.resize({width:g,height:y}),r){var b="";return G(p,function(S){var x=S.left-l,E=S.top-u;b+=''+S.dom+""}),m.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new cr({shape:{x:0,y:0,width:g,height:y},style:{fill:n.connectedBackgroundColor}})),G(p,function(S){var x=new ol({style:{x:S.left*d-l,y:S.top*d-u,image:S.dom}});m.add(x)}),m.refreshImmediately(),_.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return aw(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return aw(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=T1(i,n);return G(a,function(s,l){l.indexOf("Models")>=0&&G(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(o=o||f.containPoint(r,u))}},this)},this),!!o},t.prototype.getVisual=function(n,r){var i=this._model,o=T1(i,n,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?Soe(s,l,r):xoe(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;G(oae,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&xh(s,function(g){var y=fn(g);if(y&&y.dataIndex!=null){var _=y.dataModel||a.getSeriesByIndex(y.seriesIndex);return l=_&&_.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return l=Pe({},y.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var p=c&&f!=null&&a.getComponent(c,f),d=p&&n[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:d},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),G(nd,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),G(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),iie(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 n=this.getDom();n&&xN(this.getDom(),CC,"");var r=this,i=r._api,o=r._model;G(r._componentsViews,function(a){a.dispose(o,i)}),G(r._chartsViews,function(a){a.dispose(o,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete rd[r.id]},t.prototype.resize=function(n){if(!this[gr]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),o=n&&n.silent;this[Wr]&&(o==null&&(o=this[Wr].silent),i=!0,this[Wr]=null),this[gr]=!0;try{i&&nc(this),Ss.update.call(this,{type:"resize",animation:Pe({duration:0},n&&n.animation)})}catch(a){throw this[gr]=!1,a}this[gr]=!1,nh.call(this,o),rh.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(it(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!hS[n]){var i=hS[n](this._api,r),o=this._zr;this._loadingFX=i,o.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(n){var r=Pe({},n);return r.type=nd[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(it(r)||(r={silent:!!r}),!!Ym[n.type]&&this._model){if(this[gr]){this._pendingActions.push(n);return}var i=r.silent;lw.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&vt.browser.weChat&&this._throttledZrFlush(),nh.call(this,i),rh.call(this,i)}},t.prototype.updateLabelLayout=function(){fo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(r);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){nc=function(f){var p=f._scheduler;p.restorePipelines(f._model),p.prepareStageTasks(),ow(f,!0),ow(f,!1),p.plan()},ow=function(f,p){for(var d=f._model,g=f._scheduler,y=p?f._componentsViews:f._chartsViews,_=p?f._componentsMap:f._chartsMap,m=f._zr,b=f._api,S=0;Sp.get("hoverLayerThreshold")&&!vt.node&&!vt.worker&&p.eachSeries(function(_){if(!_.preventUsingHoverLayer){var m=f._chartsMap[_.__viewId];m.__alive&&m.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function a(f,p){var d=f.get("blendMode")||null;p.eachRendered(function(g){g.isGroup||(g.style.blend=d)})}function s(f,p){if(!f.preventAutoZ){var d=f.get("z")||0,g=f.get("zlevel")||0;p.eachRendered(function(y){return l(y,d,g,-1/0),!0})}}function l(f,p,d,g){var y=f.getTextContent(),_=f.getTextGuideLine(),m=f.isGroup;if(m)for(var b=f.childrenRef(),S=0;S0?{duration:y,delay:d.get("delay"),easing:d.get("easing")}:null;p.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Qh(m))return;if(m instanceof pn&&pee(m),m.__dirty){var b=m.prevStates;b&&m.useStates(b)}if(g){m.stateTransition=_;var S=m.getTextContent(),x=m.getTextGuideLine();S&&(S.stateTransition=_),x&&(x.stateTransition=_)}m.__dirty&&i(m)}})}aI=function(f){return new(function(p){Ve(d,p);function d(){return p!==null&&p.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(g){for(;g;){var y=g.__ecComponentInfo;if(y!=null)return f._model.getComponent(y.mainType,y.index);g=g.parent}},d.prototype.enterEmphasis=function(g,y){Lm(g,y),Ni(f)},d.prototype.leaveEmphasis=function(g,y){Om(g,y),Ni(f)},d.prototype.enterBlur=function(g){iee(g),Ni(f)},d.prototype.leaveBlur=function(g){MN(g),Ni(f)},d.prototype.enterSelect=function(g){RN(g),Ni(f)},d.prototype.leaveSelect=function(g){DN(g),Ni(f)},d.prototype.getModel=function(){return f.getModel()},d.prototype.getViewOfComponentModel=function(g){return f.getViewOfComponentModel(g)},d.prototype.getViewOfSeriesModel=function(g){return f.getViewOfSeriesModel(g)},d}(n5))(f)},M5=function(f){function p(d,g){for(var y=0;y=0)){uI.push(n);var o=s5.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function O5(e,t){hS[e]=t}function dae(e,t,n){var r=Goe("registerMap");r&&r(e,t,n)}var pae=Hne;Su(SC,ooe);Su(ny,aoe);Su(ny,soe);Su(SC,woe);Su(ny,boe);Su(S5,Uoe);P5(i5);L5(joe,noe);O5("default",loe);uf({type:fu,event:fu,update:fu},Jr);uf({type:$g,event:$g,update:$g},Jr);uf({type:Xh,event:Xh,update:Xh},Jr);uf({type:Bg,event:Bg,update:Bg},Jr);uf({type:Kh,event:Kh,update:Kh},Jr);I5("light",yoe);I5("dark",f5);var cI=[],vae={registerPreprocessor:P5,registerProcessor:L5,registerPostInit:uae,registerPostUpdate:cae,registerUpdateLifecycle:TC,registerAction:uf,registerCoordinateSystem:fae,registerLayout:hae,registerVisual:Su,registerTransform:pae,registerLoading:O5,registerMap:dae,registerImpl:zoe,PRIORITY:nae,ComponentModel:on,ComponentView:na,SeriesModel:Ks,ChartView:Xo,registerComponentModel:function(e){on.registerClass(e)},registerComponentView:function(e){na.registerClass(e)},registerSeriesModel:function(e){Ks.registerClass(e)},registerChartView:function(e){Xo.registerClass(e)},registerSubTypeDefaulter:function(e,t){on.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){kie(e,t)}};function Zs(e){if(ze(e)){G(e,function(t){Zs(t)});return}an(cI,e)>=0||(cI.push(e),wt(e)&&(e={install:e}),e.install(vae))}var gae=function(e){Ve(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}(on),mae=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),dS=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",yo).models[0]},t.type="cartesian2dAxis",t}(on);ia(dS,mae);var k5={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)"]}}},yae=Kt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},k5),AC=Kt({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}}},k5),_ae=Kt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},AC),wae=nn({logBase:10},AC);const bae={category:yae,value:AC,time:_ae,log:wae};var Sae=0,pS=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Sae}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&ct(r,xae);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!qe(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var i=this._getOrCreateMap();return n=i.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,i.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Mt(this.categories))},e}();function xae(e){return it(e)&&e.value!=null?e.value:e+""}var Cae={value:1,category:1,time:1,log:1};function fI(e,t,n,r){G(Cae,function(i,o){var a=Kt(Kt({},bae[o],!0),r,!0),s=function(l){Ve(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var p=Od(this),d=p?ty(c):{},g=f.getTheme();Kt(c,g.get(o+"Axis")),Kt(c,this.getDefaultOption()),c.type=hI(c),p&&Zc(c,d,p)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=pS.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."+o,u.defaultOption=a,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",hI)}function hI(e){return e.type||(e.data?"category":"value")}var sa=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var n=this._extent;t[0]n[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},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}();O0(sa);function vS(e){return e.type==="interval"||e.type==="log"}function Tae(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=yN(o/t);n!=null&&ar&&(a=i.interval=r);var s=i.intervalPrecision=N5(a),l=i.niceTickExtent=[Wn(Math.ceil(e[0]/a)*a,s),Wn(Math.floor(e[1]/a)*a,s)];return Eae(l,e),i}function cw(e){var t=Math.pow(10,Ux(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Wn(n*t)}function N5(e){return ka(e)+2}function dI(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Eae(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),dI(e,0,t),dI(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function ry(e,t){return e>=t[0]&&e<=t[1]}function iy(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function oy(e,t){return e*(t[1]-t[0])+t[0]}var MC=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new pS({})),ze(i)&&(i=new pS({categories:ct(i,function(o){return it(o)?o.value:o})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:qe(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),ry(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),iy(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(oy(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(sa);sa.registerClass(MC);var $l=Wn,cf=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return ry(n,this._extent)},t.prototype.normalize=function(n){return iy(n,this._extent)},t.prototype.scale=function(n){return oy(n,this._extent)},t.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=N5(n)},t.prototype.getTicks=function(n){var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:o[1];return i[1]>c&&(n?s.push({value:$l(c+r,a)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;ao[0]&&d>>1;e[i][1]i&&(this._approxInterval=i);var s=Kv.length,l=Math.min(Aae(Kv,this._approxInterval,0,s),s-1);this._interval=Kv[l][1],this._minLevelUnit=Kv[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return Tn(n)?n:+ja(n)},t.prototype.contain=function(n){return ry(this.parse(n),this._extent)},t.prototype.normalize=function(n){return iy(this.parse(n),this._extent)},t.prototype.scale=function(n){return oy(n,this._extent)},t.type="time",t}(cf),Kv=[["second",dC],["minute",pC],["hour",Jh],["quarter-day",Jh*6],["half-day",Jh*12],["day",ji*1.2],["half-week",ji*3.5],["week",ji*7],["month",ji*31],["quarter",ji*95],["half-year",qR/2],["year",qR]];function Mae(e,t,n,r){var i=ja(t),o=ja(n),a=function(g){return KR(i,g,r)===KR(o,g,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},f=function(){return c()&&a("minute")},p=function(){return f()&&a("second")},d=function(){return p()&&a("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 p();case"millisecond":return d()}}function Rae(e,t){return e/=ji,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Dae(e){var t=30*ji;return e/=t,e>6?6:e>3?3:e>2?2:1}function Iae(e){return e/=Jh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function pI(e,t){return e/=t?pC:dC,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Pae(e){return yN(e)}function Lae(e,t,n){var r=new Date(e);switch(Nc(t)){case"year":case"month":r[_F(n)](0);case"day":r[wF(n)](1);case"hour":r[bF(n)](0);case"minute":r[SF(n)](0);case"second":r[xF(n)](0),r[CF(n)](0)}return r.getTime()}function Oae(e,t,n,r){var i=1e4,o=mF,a=0;function s(O,k,H,te,W,q,j){for(var ie=new Date(k),J=k,ce=ie[te]();J1&&q===0&&H.unshift({value:H[0].value-J})}}for(var q=0;q=r[0]&&b<=r[1]&&f++)}var S=(r[1]-r[0])/t;if(f>S*1.5&&p>S/1.5||(u.push(_),f>S||e===o[d]))break}c=[]}}}for(var x=Or(ct(u,function(O){return Or(O,function(k){return k.value>=r[0]&&k.value<=r[1]&&!k.notAdd})}),function(O){return O.length>0}),E=[],T=x.length-1,d=0;d0;)o*=10;var s=[Wn(Fae(r[0]/o)*o),Wn(Nae(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){id.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=ao(n)/ao(this.base),ry(n,this._extent)},t.prototype.normalize=function(n){return n=ao(n)/ao(this.base),iy(n,this._extent)},t.prototype.scale=function(n){return n=oy(n,this._extent),Zv(this.base,n)},t.type="log",t}(sa),$5=RC.prototype;$5.getMinorTicks=id.getMinorTicks;$5.getLabel=id.getLabel;function Qv(e,t){return kae(e,ka(t))}sa.registerClass(RC);var $ae=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var p=this._determinedMin,d=this._determinedMax;return p!=null&&(s=p,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,n){this[Vae[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=Bae[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),Bae={min:"_determinedMin",max:"_determinedMax"},Vae={min:"_dataMin",max:"_dataMax"};function Hae(e,t,n){var r=e.rawExtentInfo;return r||(r=new $ae(e,t,n),e.rawExtentInfo=r,r)}function Jv(e,t){return t==null?null:xm(t)?NaN:e.parse(t)}function B5(e,t){var n=e.type,r=Hae(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&n==="time"){var s=Zre("bar",a),l=!1;if(G(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=Jre(s),c=Uae(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Uae(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=tie(r,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;G(a,function(d){s=Math.min(d.offset,s)});var l=-1/0;G(a,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)/o,p=c/f-c;return t+=p*(l/u),e-=p*(s/u),{min:e,max:t}}function gI(e,t){var n=t,r=B5(e,n),i=r.extent,o=n.get("splitNumber");e instanceof RC&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l=a==="interval"||a==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function zae(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new MC({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new F5({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(sa.getClass(t)||cf)}}function Gae(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function ff(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(r){return function(i,o){return e.scale.getFormattedLabel(i,o,r)}}(t):qe(t)?function(r){return function(i){var o=e.scale.getLabel(i),a=r.replace("{value}",o??"");return a}}(t):wt(t)?function(r){return function(i,o){return n!=null&&(o=i.value-n),r(DC(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function DC(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Wae(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof MC?i=n.count():(r=n.getTicks(),i=r.length);var a=e.getLabelModel(),s=ff(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Kae(e){var t=e.getLabelModel().get("customValues");if(t){var n=ff(e);return{labels:H5(e,t).map(function(r){var i={value:r};return{formattedLabel:n(i),rawLabel:e.scale.getLabel(i),tickValue:r}})}}return e.type==="category"?Qae(e):ese(e)}function Zae(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:H5(e,n)}:e.type==="category"?Jae(e,t):{ticks:ct(e.scale.getTicks(),function(r){return r.value})}}function Qae(e){var t=e.getLabelModel(),n=U5(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function U5(e,t){var n=z5(e,"labels"),r=IC(t),i=G5(n,r);if(i)return i;var o,a;return wt(r)?o=j5(e,r):(a=r==="auto"?tse(e):r,o=Y5(e,a)),W5(n,r,{labels:o,labelCategoryInterval:a})}function Jae(e,t){var n=z5(e,"ticks"),r=IC(t),i=G5(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),wt(r))o=j5(e,r,!0);else if(r==="auto"){var s=U5(e,e.getLabelModel());a=s.labelCategoryInterval,o=ct(s.labels,function(l){return l.tickValue})}else a=r,o=Y5(e,a,!0);return W5(n,r,{ticks:o,tickCategoryInterval:a})}function ese(e){var t=e.scale.getTicks(),n=ff(e);return{labels:ct(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function z5(e,t){return Bd(e)[t]||(Bd(e)[t]=[])}function G5(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),p=0,d=0;l<=o[1];l+=s){var g=0,y=0,_=$x(n({value:l}),t.font,"center","top");g=_.width*1.3,y=_.height*1.3,p=Math.max(p,g,7),d=Math.max(d,y,7)}var m=p/c,b=d/f;isNaN(m)&&(m=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(m,b))),x=Bd(e.model),E=e.getExtent(),T=x.lastAutoInterval,A=x.lastTickCount;return T!=null&&A!=null&&Math.abs(T-S)<=1&&Math.abs(A-a)<=1&&T>S&&x.axisExtent0===E[0]&&x.axisExtent1===E[1]?S=T:(x.lastTickCount=a,x.lastAutoInterval=S,x.axisExtent0=E[0],x.axisExtent1=E[1]),S}function rse(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 Y5(e,t,n){var r=ff(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=V5(e),p=a.get("showMinLabel")||f,d=a.get("showMaxLabel")||f;p&&u!==o[0]&&y(o[0]);for(var g=u;g<=o[1];g+=l)y(g);d&&g-l!==o[1]&&y(o[1]);function y(_){var m={value:_};s.push(n?_:{formattedLabel:r(m),rawLabel:i.getLabel(m),tickValue:_})}return s}function j5(e,t,n){var r=e.scale,i=ff(e),o=[];return G(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;t(a.value,s)&&o.push(n?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var yI=[0,1],ise=function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return t>=r&&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 MJ(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(r=r.slice(),_I(r,i.count())),iR(t,yI,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),_I(r,i.count()));var o=iR(t,r,yI,n);return this.scale.scale(o)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=Zae(this,n),i=r.ticks,o=ct(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return ose(this,o,a,t.clamp),o},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=ct(r,function(o){return ct(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return Kae(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,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/r},e.prototype.calculateCategoryInterval=function(){return nse(this)},e}();function _I(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function ose(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o=e.getExtent(),a,s;if(i===1)t[0].coord=o[0],a=t[1]={coord:o[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;G(t,function(d){d.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,a={coord:t[i-1].coord+u*s},t.push(a)}var f=o[0]>o[1];p(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&p(o[0],t[0].coord)&&t.unshift({coord:o[0]}),p(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&p(a.coord,o[1])&&t.push({coord:o[1]});function p(d,g){return d=Wn(d),g=Wn(g),f?d>g:dr[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(ise);function mS(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,g=u==="x"?[f[2]-d,f[3]+d]:[f[0]-d,f[1]+d];if(a){var y=a.toGlobalCoord(a.dataToCoord(0));g[p.onZero]=Math.max(Math.min(y,g[1]),g[0])}o.position=[u==="y"?g[p[l]]:f[0],u==="x"?g[p[l]]:f[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var _={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=_[s],o.labelOffset=a?g[p[s]]-g[p.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Ad(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-m:m,o.z2=1,o}function wI(e){return e.get("coordinateSystem")==="cartesian2d"}function bI(e){var t={xAxisModel:null,yAxisModel:null};return G(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,yo).models[0];t[r]=o}),t}var fw=Math.log;function sse(e,t,n){var r=cf.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=B5(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var p=fw(e.base);u=[fw(u[0])/p,fw(u[1])/p]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:f});var d=r.getExtent.call(e);c&&(u[0]=d[0]),f&&(u[1]=d[1]);var g=r.getInterval.call(e),y=u[0],_=u[1];if(c&&f)g=(_-y)/a;else if(c)for(_=u[0]+g*a;_u[0]&&isFinite(y)&&isFinite(u[0]);)g=cw(g),y=u[1]-g*a;else{var m=e.getTicks().length-1;m>a&&(g=cw(g));var b=g*a;_=Math.ceil(u[1]/g)*g,y=Wn(_-b),y<0&&u[0]>=0?(y=0,_=Wn(b)):_>0&&u[1]<=0&&(_=0,y=-Wn(b))}var S=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(e,y+g*S,_+g*x),r.setInterval.call(e,g),(S||x)&&r.setNiceExtent.call(e,y+g,_-g)}var lse=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=gS,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function i(a){var s,l=Cn(a),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var p=+l[f],d=a[p],g=d.model,y=d.scale;vS(y)&&g.get("alignTicks")&&g.get("interval")==null?c.push(d):(gI(y,g),vS(y)&&(s=d))}c.length&&(s||(s=c.pop(),gI(s.scale,s.model)),G(c,function(_){sse(_.scale,_.model,s.scale)}))}}i(r.x),i(r.y);var o={};G(r.x,function(a){SI(r,"y",a,o)}),G(r.y,function(a){SI(r,"x",a,o)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var i=t.getBoxLayoutParams(),o=!r&&t.get("containLabel"),a=Vm(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(G(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Wae(u);if(c){var f=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);a[f]-=c[f]+p,u.position==="top"?a.y+=c.height+p:u.position==="left"&&(a.x+=c.width+p)}}}),l()),G(this._coordsList,function(u){u.calcAffineTransform()});function l(){G(s,function(u){var c=u.isHorizontal(),f=c?[0,a.width]:[0,a.height],p=u.inverse?1:0;u.setExtent(f[p],f[1-p]),use(u,c?a.x:a.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}it(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i0?"top":"bottom",o="center"):Im(i-Fs)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),CI={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Ki(s,s,a),Ki(l,l,a));var c=Pe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new qs({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Id(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var p=t.get(["axisLine","symbol"]);if(p!=null){var d=t.get(["axisLine","symbolSize"]);qe(p)&&(p=[p,p]),(qe(d)||Tn(d))&&(d=[d,d]);var g=kF(t.get(["axisLine","symbolOffset"])||0,d),y=d[0],_=d[1];G([{rotate:e.rotation+Math.PI/2,offset:g[0],r:0},{rotate:e.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,b){if(p[b]!=="none"&&p[b]!=null){var S=Qc(p[b],-y/2,-_/2,y,_,c.stroke,!0),x=m.r+m.offset,E=u?l:s;S.attr({rotation:m.rotate,x:E[0]+x*Math.cos(e.rotation),y:E[1]-x*Math.sin(e.rotation),silent:!0,z2:11}),n.add(S)}})}}},axisTickLabel:function(e,t,n,r){var i=hse(n,r,t,e),o=pse(n,r,t,e);if(fse(t,o,i),dse(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=oie(ct(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));aie(a)}},axisName:function(e,t,n,r){var i=Ad(e.axisName,t.get("name"));if(i){var o=t.get("nameLocation"),a=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[o==="start"?u[0]-c*l:o==="end"?u[1]+c*l:(u[0]+u[1])/2,EI(o)?e.labelOffset+a*l:0],p,d=t.get("nameRotate");d!=null&&(d=d*Fs/180);var g;EI(o)?p=zs.innerTextLayout(e.rotation,d??e.rotation,a):(p=cse(e.rotation,o,d||0,u),g=e.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(p.rotation)),!isFinite(g)&&(g=null)));var y=s.getFont(),_=t.get("nameTruncate",!0)||{},m=_.ellipsis,b=Ad(e.nameTruncateMaxWidth,_.maxWidth,g),S=new ri({x:f[0],y:f[1],rotation:p.rotation,silent:zs.isLabelSilent(t),style:Xc(s,{text:i,font:y,overflow:"truncate",width:b,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(iC({el:S,componentModel:t,itemName:i}),S.__fullText=i,S.anid="name",t.get("triggerEvent")){var x=zs.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,fn(S).eventData=x}r.add(S),S.updateTransform(),n.add(S),S.decomposeTransform()}}};function cse(e,t,n,r){var i=mN(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return Im(i-Fs/2)?(a=l?"bottom":"top",o="center"):Im(i-Fs*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",iFs/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function fse(e,t,n){if(!V5(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],f=n[n.length-1],p=n[n.length-2];r===!1?(Fi(o),Fi(u)):TI(o,a)&&(r?(Fi(a),Fi(c)):(Fi(o),Fi(u))),i===!1?(Fi(s),Fi(f)):TI(l,s)&&(i?(Fi(l),Fi(p)):(Fi(s),Fi(f)))}}function Fi(e){e&&(e.ignore=!0)}function TI(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=kx([]);return Nx(i,i,-e.rotation),n.applyTransform(Pc([],i,e.getLocalTransform())),r.applyTransform(Pc([],i,t.getLocalTransform())),n.intersect(r)}}function EI(e){return e==="middle"||e==="center"}function q5(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||e===t}function wse(e){var t=PC(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");a!=null&&(a=r.parse(a));var s=yS(n);o==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),as)return!0;if(a){var l=PC(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,i,o){},e.prototype.createPointerEl=function(t,n,r,i){var o=n.pointer;if(o){var a=Xl(t).pointerEl=new ste[o.type](RI(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=Xl(t).labelEl=new ri(RI(n.label));t.add(o),II(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Xl(t).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,i){var o=Xl(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),II(o,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||a==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=rC(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){qF(u.event)},onmousedown:pw(this._onHandleDragMove,this,0,0),drift:pw(this._onHandleDragMove,this),ondragend:pw(this._onHandleDragEnd,this)}),r.add(i)),PI(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ze(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,jF(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){DI(this._axisPointerModel,!n&&this._moveAnimation,this._handle,vw(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(vw(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(vw(i)),Xl(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),nS(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e}();function DI(e,t,n,r){Q5(Xl(n).lastProp,r)||(Xl(n).lastProp=r,t?Xs(n,r,e):(n.stopAnimation(),n.attr(r)))}function Q5(e,t){if(it(e)&&it(t)){var n=!0;return G(t,function(r,i){n=n&&Q5(e[i],r)}),!!n}else return e===t}function II(e,t){e[t.get(["label","show"])?"show":"hide"]()}function vw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function PI(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),i!=null&&(o.zlevel=i),o.silent=n)})}function Ise(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function Pse(e,t,n,r,i){var o=n.get("value"),a=J5(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=ey(s.get("padding")||0),u=s.getFont(),c=$x(a,u),f=i.position,p=c.width+l[1]+l[3],d=c.height+l[0]+l[2],g=i.align;g==="right"&&(f[0]-=p),g==="center"&&(f[0]-=p/2);var y=i.verticalAlign;y==="bottom"&&(f[1]-=d),y==="middle"&&(f[1]-=d/2),Lse(f,p,d,r);var _=s.get("backgroundColor");(!_||_==="auto")&&(_=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Xc(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:_}),z2:10}}function Lse(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function J5(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:DC(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};G(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),qe(a)?o=a.replace("{value}",o):wt(a)&&(o=a(s))}return o}function e3(e,t,n){var r=Ic();return Nx(r,r,n.rotation),Eb(r,r,n.position),nC([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Ose(e,t,n,r,i,o){var a=zs.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Pse(t,r,i,o,{position:e3(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function kse(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Nse(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var Fse=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.grid,u=o.get("type"),c=LI(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var p=Ise(o),d=$se[u](s,f,c);d.style=p,n.graphicKey=d.type,n.pointer=d}var g=mS(l.model,i);Ose(r,n,g,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=mS(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=e3(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),u=LI(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var p=(u[1]+u[0])/2,d=[p,p];d[c]=f[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:d,tooltipOption:g[c]}},t}(Dse);function LI(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var $se={line:function(e,t,n){var r=kse([t,n[0]],[t,n[1]],OI(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:Nse([t-r/2,n[0]],[r,i],OI(e))}}};function OI(e){return e.dim==="x"?0:1}var Bse=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}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}(on),Na=Kn(),Vse=G;function t3(e,t,n){if(!vt.node){var r=t.getZr();Na(r).records||(Na(r).records={}),Hse(r,t);var i=Na(r).records[e]||(Na(r).records[e]={});i.handler=n}}function Hse(e,t){if(Na(e).initialized)return;Na(e).initialized=!0,n("click",tr(kI,"click")),n("mousemove",tr(kI,"mousemove")),n("globalout",zse);function n(r,i){e.on(r,function(o){var a=Gse(t);Vse(Na(e).records,function(s){s&&i(s,o,a.dispatchAction)}),Use(a.pendings,t)})}}function Use(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function zse(e,t,n){e.handler("leave",null,n)}function kI(e,t,n,r){t.handler(e,n,r)}function Gse(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function wS(e,t){if(!vt.node){var n=t.getZr(),r=(Na(n).records||{})[e];r&&(Na(n).records[e]=null)}}var Wse=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=r.getComponent("tooltip"),a=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";t3("axisPointer",i,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){wS("axisPointer",r)},t.prototype.dispose=function(n,r){wS("axisPointer",r)},t.type="axisPointer",t}(na);function n3(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=_u(o,e);if(a==null||a<0||ze(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,p=u.dim,d=f==="x"||f==="radius"?1:0,g=o.mapDimension(p),y=[];y[d]=o.get(g,a),y[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(y)||[]}else n=l.dataToPoint(o.getValues(ct(l.dimensions,function(m){return o.mapDimension(m)}),a))||[];else if(s){var _=s.getBoundingRect().clone();_.applyTransform(s.transform),n=[_.x+_.width/2,_.y+_.height/2]}return{point:n,el:s}}var NI=Kn();function Yse(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Mn(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){jg(i)&&(i=n3({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=jg(i),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||jg(i),p={},d={},g={list:[],map:{}},y={showPointer:tr(qse,d),showTooltip:tr(Xse,g)};G(s.coordSysMap,function(m,b){var S=l||m.containPoint(i);G(s.coordSysAxesInfo[b],function(x,E){var T=x.axis,A=Jse(u,x);if(!f&&S&&(!u||A)){var D=A&&A.value;D==null&&!l&&(D=T.pointToData(i)),D!=null&&FI(x,D,y,!1,p)}})});var _={};return G(c,function(m,b){var S=m.linkGroup;S&&!d[b]&&G(S.axesInfo,function(x,E){var T=d[E];if(x!==m&&T){var A=T.value;S.mapper&&(A=m.axis.scale.parse(S.mapper(A,$I(x),$I(m)))),_[m.key]=A}})}),G(_,function(m,b){FI(c[b],m,y,!0,p)}),Kse(d,c,p),Zse(g,i,e,a),Qse(c,a,n),p}}function FI(e,t,n,r,i){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var a=jse(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Pe(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function jse(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return G(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,p;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,e,n);p=d.dataIndices,f=d.nestestValue}else{if(p=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!p.length)return;f=l.getData().get(c[0],p[0])}if(!(f==null||!isFinite(f))){var g=e-f,y=Math.abs(g);y<=a&&((y=0&&s<0)&&(a=y,s=g,i=f,o.length=0),G(p,function(_){o.push({seriesIndex:l.seriesIndex,dataIndexInside:_,dataIndex:l.getData().getRawIndex(_)})}))}}),{payloadBatch:o,snapToValue:i}}function qse(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Xse(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Vd(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:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Kse(e,t,n){var r=n.axesInfo=[];G(t,function(i,o){var a=i.axisPointerModel.option,s=e[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function Zse(e,t,n,r){if(jg(t)||!e.list.length){r({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Qse(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=NI(r)[i]||{},a=NI(r)[i]={};G(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&G(f.seriesDataIndices,function(p){var d=p.seriesIndex+" | "+p.dataIndex;a[d]=p})});var s=[],l=[];G(o,function(u,c){!a[c]&&l.push(u)}),G(a,function(u,c){!o[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Jse(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function $I(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function jg(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function r3(e){X5.registerAxisPointerClass("CartesianAxisPointer",Fse),e.registerComponentModel(Bse),e.registerComponentView(Wse),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!ze(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=vse(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Yse)}function ele(e){Zs(Rse),Zs(r3)}function tle(e,t){var n=ey(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new cr({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var nle=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}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}(on);function i3(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function o3(e){if(vt.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=a+i,p=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),d=Math.round(((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-f)/2)*100)/100;s+=";"+o+":-"+d+"px";var g=t+" solid "+i+"px;",y=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"];return'
'}function ule(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=vt.transformSupported?","+LC+r:",left"+r+",top"+r),ole+":"+i}function BI(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!vt.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=vt.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+LC+":"+a+";":[["top",0],["left",0],[a3,a]]}function cle(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),G(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function fle(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=OF(e,"html"),p=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+p),t&&i&&r.push(ule(i,n)),o&&r.push("background-color:"+o),G(["width","color","radius"],function(d){var g="border-"+d,y=EF(g),_=e.get(y);_!=null&&r.push(g+":"+_+(d==="color"?"":"px"))}),r.push(cle(c)),f!=null&&r.push("padding:"+ey(f).join("px ")+"px"),r.join(";")+";"}function VI(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&cne(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var hle=function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,vt.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),o=n.appendTo,a=o&&(qe(o)?document.querySelector(o):Ed(o)?o:wt(o)&&o(t.getDom()));VI(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(r),this._api=t,this._container=a;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Bi(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=ile(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,o=this._styleCoord;r.innerHTML?i.cssText=ale+fle(t,!this._firstShow,this._longHide)+BI(o[0],o[1],!0)+("border-color:"+wu(n)+";")+(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,n,r,i,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(qe(o)&&r.get("trigger")==="item"&&!i3(r)&&(s=lle(r,i,o)),qe(t))a.innerHTML=t+s;else if(t){a.innerHTML="",ze(t)||(t=[t]);for(var l=0;l=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(n,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||vt.node||!i.getDom())){var a=zI(o,i);this._ticket="";var s=o.dataByCoordSys,l=_le(o,r,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:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=ple;c.x=o.x,c.y=o.y,c.update(),fn(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,o))return;var f=n3(o,r),p=f.point[0],d=f.point[1];p!=null&&d!=null&&this._tryShow({offsetX:p,offsetY:d,target:f.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(n,r,i,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(zI(o,i))},t.prototype._manuallyAxisShowTip=function(n,r,i,o){var a=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=r.getSeriesByIndex(a);if(u){var c=u.getData(),f=ih([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(n,r){var i=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var a=n.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,n);else if(i){var s=fn(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;xh(i,function(c){if(fn(c).dataIndex!=null)return l=c,!0;if(fn(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(n,l,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=Mn(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=ih([r.tooltipOption],o),l=this._renderMode,u=[],c=kd("section",{blocks:[],noHeader:!0}),f=[],p=new H1;G(n,function(b){G(b.dataByAxis,function(S){var x=i.getComponent(S.axisDim+"Axis",S.axisIndex),E=S.value;if(!(!x||E==null)){var T=J5(E,x.axis,i,S.seriesDataIndices,S.valueLabelOpt),A=kd("section",{header:T,noHeader:!Wo(T),sortBlocks:!0,blocks:[]});c.blocks.push(A),G(S.seriesDataIndices,function(D){var P=i.getSeriesByIndex(D.seriesIndex),O=D.dataIndexInside,k=P.getDataParams(O);if(!(k.dataIndex<0)){k.axisDim=S.axisDim,k.axisIndex=S.axisIndex,k.axisType=S.axisType,k.axisId=S.axisId,k.axisValue=DC(x.axis,{value:E}),k.axisValueLabel=T,k.marker=p.makeTooltipMarker("item",wu(k.color),l);var H=JR(P.formatTooltip(O,!0,null)),te=H.frag;if(te){var W=ih([P],o).get("valueFormatter");A.blocks.push(W?Pe({valueFormatter:W},te):te)}H.text&&f.push(H.text),u.push(k)}})}})}),c.blocks.reverse(),f.reverse();var d=r.position,g=s.get("order"),y=nD(c,p,l,g,i.get("useUTC"),s.get("textStyle"));y&&f.unshift(y);var _=l==="richText"?` -`:"
",m=f.join(_);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",a[0],a[1],d,null,p)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=fn(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,f=a.dataType,p=u.getData(f),d=this._renderMode,g=n.positionDefault,y=ih([p.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),_=y.get("trigger");if(!(_!=null&&_!=="item")){var m=u.getDataParams(c,f),b=new H1;m.marker=b.makeTooltipMarker("item",wu(m.color),d);var S=eD(u.formatTooltip(c,!1,f)),x=y.get("order"),E=y.get("valueFormatter"),T=S.frag,A=T?rD(E?Pe({valueFormatter:E},T):T,b,d,x,o.get("useUTC"),y.get("textStyle")):S.text,D="item_"+u.name+"_"+c;this._showOrMove(y,function(){this._showTooltipContent(y,A,m,D,n.offsetX,n.offsetY,n.position,n.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:p.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=fn(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(qe(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=Nt(l),l.content=_i(l.content));var f=[l],p=this._ecModel.getComponent(a.componentMainType,a.componentIndex);p&&f.push(p),f.push({formatter:l.content});var d=n.positionDefault,g=ih(f,this._tooltipModel,d?{position:d}:null),y=g.get("content"),_=Math.random()+"",m=new H1;this._showOrMove(g,function(){var b=Nt(g.get("formatterParams")||{});this._showTooltipContent(g,y,b,_,n.offsetX,n.offsetY,n.position,r,m)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,i,o,a,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var p=n.get("formatter");l=l||n.get("position");var d=r,g=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),y=g.color;if(p)if(qe(p)){var _=n.ecModel.get("useUTC"),m=ze(i)?i[0]:i,b=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=p,b&&(d=X0(m.axisValue,d,_)),d=AF(d,i,!0)}else if(wt(p)){var S=Mn(function(x,E){x===this._ticket&&(f.setContent(E,c,n,y,l),this._updatePosition(n,l,a,s,f,i,u))},this);this._ticket=o,d=p(i,o,S)}else d=p;f.setContent(d,c,n,y,l),f.show(n,y),this._updatePosition(n,l,a,s,f,i,u)}},t.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||ze(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ze(r))return{color:o||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,i,o,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=a.getSize(),p=n.get("align"),d=n.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),wt(r)&&(r=r([i,o],s,a.el,g,{viewSize:[u,c],contentSize:f.slice()})),ze(r))i=kr(r[0],u),o=kr(r[1],c);else if(it(r)){var y=r;y.width=f[0],y.height=f[1];var _=Bm(y,{width:u,height:c});i=_.x,o=_.y,p=null,d=null}else if(qe(r)&&l){var m=yle(r,g,f,n.get("borderWidth"));i=m[0],o=m[1]}else{var m=gle(i,o,a,u,c,p?null:20,d?null:20);i=m[0],o=m[1]}if(p&&(i-=WI(p)?f[0]/2:p==="right"?f[0]:0),d&&(o-=WI(d)?f[1]/2:d==="bottom"?f[1]:0),i3(n)){var m=mle(i,o,a,u,c);i=m[0],o=m[1]}a.moveTo(i,o)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===n.length;return a&&G(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];a=a&&u.length===f.length,a&&G(u,function(p,d){var g=f[d]||{},y=p.seriesDataIndices||[],_=g.seriesDataIndices||[];a=a&&p.value===g.value&&p.axisType===g.axisType&&p.axisId===g.axisId&&y.length===_.length,a&&G(y,function(m,b){var S=_[b];a=a&&m.seriesIndex===S.seriesIndex&&m.dataIndex===S.dataIndex}),o&&G(p.seriesDataIndices,function(m){var b=m.seriesIndex,S=r[b],x=o[b];S&&x&&x.data!==S.data&&(a=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!a},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){vt.node||!r.getDom()||(nS(this,"_updatePosition"),this._tooltipContent.dispose(),wS("itemTooltip",r))},t.type="tooltip",t}(na);function ih(e,t,n){var r=t.ecModel,i;n?(i=new On(n,r,r),i=new On(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof On&&(a=a.get("tooltip",!0)),qe(a)&&(a={formatter:a}),a&&(i=new On(a,i,r)))}return i}function GI(e,t){return e.dispatchAction||Mn(t.dispatchAction,t)}function gle(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return o!=null&&(e+l+o+2>r?e-=l+o:e+=o),a!=null&&(t+u+a>i?t-=u+a:t+=a),[e,t]}function mle(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function yle(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+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-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function WI(e){return e==="center"||e==="middle"}function _le(e,t,n){var r=Wx(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=Jd(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=n.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var c=fn(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function wle(e){Zs(r3),e.registerComponentModel(nle),e.registerComponentView(vle),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Jr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Jr)}var ble=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},bS=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),ze(r)&&G(r,function(o,a){qe(o)&&(o={type:o}),r[a]=Kt(o,ble(i,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(on),rc=tr,SS=G,Jv=Sr,l3=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new Jv),this.group.add(this._selectorGroup=new Jv),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var a=n.get("align"),s=n.get("orient");(!a||a==="auto")&&(a=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,n,r,i,l,s,u);var c=n.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},p=n.get("padding"),d=Bm(c,f,p),g=this.layoutInner(n,a,d,o,l,u),y=Bm(nn({width:g.width,height:g.height},c),f,p);this.group.x=y.x-g.x,this.group.y=y.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=tle(g,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this.getContentGroup(),c=Rt(),f=r.get("selectedMode"),p=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&p.push(d.id)}),SS(r.getData(),function(d,g){var y=d.get("name");if(!this.newlineDisabled&&(y===""||y===` -`)){var _=new Jv;_.newline=!0,u.add(_);return}var m=i.getSeriesByName(y)[0];if(!c.get(y))if(m){var b=m.getData(),S=b.getVisual("legendLineStyle")||{},x=b.getVisual("legendIcon"),E=b.getVisual("style"),T=this._createItem(m,y,g,d,r,n,S,E,x,f,o);T.on("click",rc(YI,y,null,o,p)).on("mouseover",rc(xS,m.name,null,o,p)).on("mouseout",rc(CS,m.name,null,o,p)),i.ssr&&T.eachChild(function(A){var D=fn(A);D.seriesIndex=m.seriesIndex,D.dataIndex=g,D.ssrType="legend"}),c.set(y,!0)}else i.eachRawSeries(function(A){if(!c.get(y)&&A.legendVisualProvider){var D=A.legendVisualProvider;if(!D.containName(y))return;var P=D.indexOfName(y),O=D.getItemVisual(P,"style"),k=D.getItemVisual(P,"legendIcon"),H=Ba(O.fill);H&&H[3]===0&&(H[3]=.2,O=Pe(Pe({},O),{fill:N0(H,"rgba")}));var te=this._createItem(A,y,g,d,r,n,{},O,k,f,o);te.on("click",rc(YI,null,y,o,p)).on("mouseover",rc(xS,null,y,o,p)).on("mouseout",rc(CS,null,y,o,p)),i.ssr&&te.eachChild(function(W){var q=fn(W);q.seriesIndex=A.seriesIndex,q.dataIndex=g,q.ssrType="legend"}),c.set(y,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();SS(n,function(u){var c=u.type,f=new ri({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var p=r.getModel("selectorLabel"),d=r.getModel(["emphasis","selectorLabel"]);sC(f,{normal:p,emphasis:d},{defaultText:u.title}),Vb(f)})},t.prototype._createItem=function(n,r,i,o,a,s,l,u,c,f,p){var d=n.visualDrawType,g=a.get("itemWidth"),y=a.get("itemHeight"),_=a.isSelected(r),m=o.get("symbolRotate"),b=o.get("symbolKeepAspect"),S=o.get("icon");c=S||c||"roundRect";var x=Sle(c,o,l,u,d,_,p),E=new Jv,T=o.getModel("textStyle");if(wt(n.getLegendIcon)&&(!S||S==="inherit"))E.add(n.getLegendIcon({itemWidth:g,itemHeight:y,icon:c,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:b}));else{var A=S==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;E.add(xle({itemWidth:g,itemHeight:y,icon:c,iconRotate:A,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:b}))}var D=s==="left"?g+5:-5,P=s,O=a.get("formatter"),k=r;qe(O)&&O?k=O.replace("{name}",r??""):wt(O)&&(k=O(r));var H=_?T.getTextColor():o.get("inactiveColor");E.add(new ri({style:Xc(T,{text:k,x:D,y:y/2,fill:H,align:P,verticalAlign:"middle"},{inheritColor:H})}));var te=new cr({shape:E.getBoundingRect(),style:{fill:"transparent"}}),W=o.getModel("tooltip");return W.get("show")&&oC({el:te,componentModel:a,itemName:r,itemTooltipOption:W.option}),E.add(te),E.eachChild(function(q){q.silent=!0}),te.silent=!f,this.getContentGroup().add(E),Vb(E),E.__legendDataIndex=i,E},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ed(n.get("orient"),l,n.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){ed("horizontal",u,n.get("selectorItemGap",!0));var p=u.getBoundingRect(),d=[-p.x,-p.y],g=n.get("selectorButtonGap",!0),y=n.getOrient().index,_=y===0?"width":"height",m=y===0?"height":"width",b=y===0?"y":"x";s==="end"?d[y]+=c[_]+g:f[y]+=p[_]+g,d[1-y]+=c[m]/2-p[m]/2,u.x=d[0],u.y=d[1],l.x=f[0],l.y=f[1];var S={x:0,y:0};return S[_]=c[_]+g+p[_],S[m]=Math.max(c[m],p[m]),S[b]=Math.min(0,p[b]+d[1-y]),S}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}(na);function Sle(e,t,n,r,i,o,a){function s(_,m){_.lineWidth==="auto"&&(_.lineWidth=m.lineWidth>0?2:0),SS(_,function(b,S){_[S]==="inherit"&&(_[S]=m[S])})}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"?r.decal:uS(f,a),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:n).opacity),s(u,r);var p=t.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),!o){var g=t.get("inactiveBorderWidth"),y=u[c];u.lineWidth=g==="auto"?r.lineWidth>0&&y?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function xle(e){var t=e.icon||"roundRect",n=Qc(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function YI(e,t,n,r){CS(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),xS(e,t,n,r)}function u3(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;ri[a],_=[-d.x,-d.y];r||(_[o]=c[u]);var m=[0,0],b=[-g.x,-g.y],S=Ot(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(y){var x=n.get("pageButtonPosition",!0);x==="end"?b[o]+=i[a]-g[a]:m[o]+=g[a]+S}b[1-o]+=d[s]/2-g[s]/2,c.setPosition(_),f.setPosition(m),p.setPosition(b);var E={x:0,y:0};if(E[a]=y?i[a]:d[a],E[s]=Math.max(d[s],g[s]),E[l]=Math.min(0,g[l]+b[1-o]),f.__rectSize=i[a],y){var T={x:0,y:0};T[a]=Math.max(i[a]-g[a]-S,0),T[s]=E[s],f.setClipPath(new cr({shape:T})),f.__rectSize=T[a]}else p.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(n);return A.pageIndex!=null&&Xs(c,{x:A.contentPosition[0],y:A.contentPosition[1]},y?n:null),this._updatePageInfoView(n,A),E},t.prototype._pageGo=function(n,r,i){var o=this._getPageInfo(r)[n];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;G(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",p=r[f]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",p?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),d.cursor=p?"pointer":"default")});var o=i.childOfName("pageText"),a=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;o&&a&&o.setStyle("text",qe(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=gw[a],l=mw[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],p=c.length,d=p?1:0,g={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return g;var y=x(f);g.contentPosition[a]=-y.s;for(var _=u+1,m=y,b=y,S=null;_<=p;++_)S=x(c[_]),(!S&&b.e>m.s+o||S&&!E(S,m.s))&&(b.i>m.i?m=b:m=S,m&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=m.i),++g.pageCount)),b=S;for(var _=u-1,m=y,b=y,S=null;_>=-1;--_)S=x(c[_]),(!S||!E(b,S.s))&&m.i=A&&T.s<=A+o}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(r=s)}),r??o},t.type="legend.scroll",t}(l3);function Mle(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}function Rle(e){Zs(c3),e.registerComponentModel(Ele),e.registerComponentView(Ale),Mle(e)}function Dle(e){Zs(c3),Zs(Rle)}function XI(e,t,n){var r=of.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var yw=function(e){Ve(t,e);function t(n,r,i){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;i=i||Mm,typeof n=="string"?a=XI(n,r,i):it(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(qk(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=i,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=XI("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,r,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,u=new Zt(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(a.length===0){var S=new Zt(0,0,0,0);S.copy(b),a.push(S)}else{for(var x=!1,E=1/0,T=0,A=0;A=s)}}for(var f=this.__startIndex;f15)break}}W.prevElClipPaths&&m.restore()};if(b)if(b.length===0)D=_.__endIndex;else for(var O=d.dpr,k=0;k0&&t>i[0]){for(l=0;lt);l++);s=r[i[l]]}if(i.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(n.dom,u.nextSibling):a.appendChild(n.dom)}else a.firstChild?a.insertBefore(n.dom,a.firstChild):a.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,i=0;i0?eg:0),this._needsManuallyCompositing),c.__builtin__||Lx("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),o=c),i.__dirty&wi&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,p){!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,G(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Kt(r[t],n,!0):r[t]=n;for(var i=0;i{const a=getComputedStyle(n.value),s=getComputedStyle(r.value);let l=a.color,u=a.backgroundColor,c=a.borderColor,f=a.fontFamily,p=s.color,d=s.backgroundColor,g=s.borderBottomColor,y=s.borderTopColor;kt(()=>Ec.value,()=>{const x=getComputedStyle(n.value),E=getComputedStyle(r.value);l=x.color,u=x.backgroundColor,c=x.borderColor,p=E.color,d=E.backgroundColor,g=E.borderBottomColor,y=E.borderTopColor}),kt(()=>Oh.value,()=>{f=getComputedStyle(n.value).fontFamily});const _=Le(()=>({legend:{bottom:0,data:t.data.map(x=>x.name),textStyle:{color:l,fontFamily:f}},grid:{left:60,top:15,right:10,bottom:25},tooltip:{show:!0,trigger:"axis",backgroundColor:u,borderColor:u,confine:!0,textStyle:{color:l,fontFamily:f},formatter:t.toolTipFormatter},xAxis:{type:"category",axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1}},yAxis:{type:"value",splitNumber:4,max:x=>Math.max(x.max,t.min),axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:c}},axisLabel:{align:"left",padding:[0,0,0,-45],formatter:t.labelFormatter,color:l,fontFamily:f}},series:t.data.map((x,E)=>{const T=E===t.data.length-1?p:d,A=E===t.data.length-1?g:y;return{name:x.name,symbol:"none",emphasis:{disabled:!0},data:x.data,areaStyle:{color:A},type:"line",color:T,smooth:!0}})})),m=sae(o.value);m.setOption(_.value),kt(_,()=>{i.value||m==null||m.setOption(_.value)});const{width:b}=u9(o),S=ea.debounce(()=>{m.resize()},100);kt(()=>b.value,()=>{S()})}),(a,s)=>(X(),ae("div",Nle,[N("div",{ref_key:"chart",ref:o,class:"h-full w-full"},null,512),N("span",{class:"hidden border-base-content/10 bg-base-100/70 text-base-content",ref_key:"baseColorRef",ref:n},null,512),N("span",{class:"hidden border-b-primary/10 border-t-info/10 bg-info text-primary",ref_key:"themeColorRef",ref:r},null,512),N("button",{class:"btn btn-ghost btn-xs absolute bottom-0 right-1",onClick:s[0]||(s[0]=l=>i.value=!i.value)},[(X(),_t(Ua(i.value?$(U6):$(H6)),{class:"h-4 w-4"}))])]))}}),f3=lt({__name:"SpeedCharts",setup(e){const{t}=Ga(),n=Le(()=>[{name:t("ulSpeed"),data:vh.value},{name:t("dlSpeed"),data:ph.value}]),r=o=>`${mn(o,{maximumFractionDigits:1,binary:!1})}/s`,i=o=>o.map(a=>ck(a,{binary:!1,suffix:"/s"})).join("");return(o,a)=>(X(),_t(kC,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1e3},null,8,["data"]))}}),Fle={class:"card mx-1 flex flex-col gap-4 py-2 text-xs"},$le={class:"flex flex-col items-center justify-center"},Ble={class:"flex flex-col items-center justify-center"},Vle={class:"flex flex-col items-center justify-center"},Hle={class:"flex flex-col items-center justify-center"},Ule={class:"flex flex-col items-center justify-center"},zle=lt({__name:"VerticalInfos",setup(e){return(t,n)=>(X(),ae("div",Fle,[N("div",$le,[Se($(QL),{class:"h-4 w-4"}),ut(" "+de($(mo).length),1)]),N("div",Ble,[Se($(XL),{class:"h-4 w-4"}),ut(" "+de($(mn)($(hm)))+" ",1),N("span",null,de($(mn)($(Sx)))+"/s ",1)]),N("div",Vle,[Se($(ZL),{class:"h-4 w-4"}),ut(" "+de($(mn)($(dm)))+" ",1),N("span",null,de($(mn)($(xx)))+"/s ",1)]),N("div",Hle,[Se($($6),{class:"h-4 w-4"}),ut(" "+de($(mn)($(bx),{binary:!0})),1)]),N("div",Ule,[N("button",{class:"btn btn-circle btn-xs",onClick:n[0]||(n[0]=r=>au.value=!1)},[Se($(k6),{class:"h-5 w-5"})])])]))}}),Gle={class:"drawer-side z-30"},Wle={class:"menu flex-1 pb-0"},Yle=["onClick"],jle={key:0,class:"card"},qle={class:"card"},Xle=lt({__name:"SideBar",setup(e){const t={[Bt.connections]:Ik,[Bt.logs]:Pk,[Bt.proxies]:Fk,[Bt.rules]:Bk},n=Le(()=>r.name?t[r.name]:null),r=qL(),i=Object.values(Bt).filter(o=>o!==Bt.setup);return(o,a)=>(X(),ae("div",Gle,[a[0]||(a[0]=N("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),N("div",{class:ot($(hn)("scrollbar-hidden flex h-full flex-col gap-2 overflow-x-hidden bg-base-200 p-2 text-base-content !transition-all duration-500",$(au)?"w-18 px-0":"w-[21rem]"))},[N("ul",Wle,[(X(!0),ae(Ye,null,Gt($(i),s=>(X(),ae("li",{key:s},[N("a",{class:ot(s===$(r).name?"active":"inactive"),onClick:()=>$(To).push({name:s})},[(X(),_t(Ua($(aO)[s]),{class:"h-5 w-5"})),$(au)?mt("",!0):(X(),ae(Ye,{key:0},[ut(de(o.$t(s)),1)],64))],10,Yle)]))),128))]),$(au)?(X(),_t(zle,{key:0})):(X(),ae(Ye,{key:1},[$(r).name!==$(Bt).settings?(X(),ae("div",jle,[Se(f3)])):mt("",!0),N("div",qle,[n.value?(X(),_t(Ua(n.value),{key:0})):mt("",!0),Se(AZ)])],64))],2)]))}}),_w=Ie(!1),h3=()=>({isUIUpdateAvailable:_w,checkUIUpdate:async()=>{_w.value=await Pq(),_w.value&&pg.value&&nk()}}),Kle={class:"w-128 drawer md:drawer-open"},Zle={class:"drawer-content fixed bottom-0 flex h-full w-full flex-col overflow-hidden bg-base-200/40 md:relative md:w-auto"},Qle={class:"relative h-0 flex-1"},Jle={class:"flex h-12 w-full items-center justify-center gap-1 p-2"},eue={class:"menu menu-horizontal flex flex-1"},tue=["href"],nue={for:"sidebar"},rue={class:"btn btn-circle drawer-button btn-sm bg-neutral text-neutral-content"},iue=lt({__name:"HomePage",setup(e){const t=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,n={[Bt.connections]:Ik,[Bt.logs]:Pk,[Bt.proxies]:Fk,[Bt.rules]:Bk},r=P6(),i=qL(),o=Object.values(Bt).filter(d=>d!==Bt.setup),a=Le(()=>n[i.name]),s=Ie(),{direction:l}=c9(s,{threshold:15}),u=()=>{const d=i.name;return d===Bt.setup?Bt.proxies:o[(o.indexOf(d)+1)%o.length]},c=()=>{const d=i.name;return d===Bt.setup?Bt.proxies:o[(o.indexOf(d)-1+o.length)%o.length]};kt(l,()=>{l.value==="right"?r.push({name:c()}):l.value==="left"&&r.push({name:u()})});const{proxiesTabShow:f}=D0(),{checkUIUpdate:p}=h3();return kt(xi,()=>{Gh.value=zc.RULES,f.value=pu.PROXIES,Lk(),jc(),bm(),Oq(),bb(),Jq(),p()},{immediate:!0}),(d,g)=>(X(),ae("div",Kle,[g[0]||(g[0]=N("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),Se(Xle),N("div",Zle,[a.value&&$(au)?(X(),_t(Ua(a.value),{key:0,horizontal:!0})):mt("",!0),N("div",Qle,[Se($(JS),{class:"absolute h-full w-full"})]),N("div",{class:ot(`${$(t)?"pb-24":"pb-12"} md:hidden`)},null,2),N("div",{ref_key:"navBarRef",ref:s,class:ot(`fixed bottom-0 z-30 w-full bg-base-200 md:hidden ${$(t)?"h-24 pb-12":"h-12"}`)},[N("div",Jle,[N("ul",eue,[(X(!0),ae(Ye,null,Gt($(o),y=>(X(),ae("li",{key:y,class:"flex-1"},[N("a",{class:ot(["flex items-center justify-center",y===$(i).name?"active":"inactive"]),href:`#${y}`},[(X(),_t(Ua($(aO)[y]),{class:"h-5 w-5"}))],10,tue)]))),128))]),N("label",nue,[N("div",rue,[Se($(N6),{class:"h-4 w-4"})])])])],2)])]))}}),oue={class:"flex flex-col"},aue={key:0,class:"card m-2 flex-row p-2 text-sm"},sue={class:"card mb-1 block p-2 text-sm"},lue={class:"mx-2 text-primary"},uue={class:"ml-2"},cue=lt({__name:"LogsPage",setup(e){const t={[Zl.Error]:"text-error",[Zl.Warning]:"text-warning",[Zl.Info]:"text-info",[Zl.Debug]:"text-accent"},n=Le(()=>ym.value.filter(r=>Dc.value?r.payload.includes(Dc.value)||r.type.includes(Dc.value):!0));return(r,i)=>(X(),ae("div",oue,[n.value.length?mt("",!0):(X(),ae("div",aue,de(r.$t("noContent")),1)),Se(mx,{data:n.value},{default:Gs(({item:o})=>[N("div",sue,[N("span",null,de(o.seq),1),N("span",lue,de($(Zo)(o.time).locale($(Pa)).format("HH:mm:ss")),1),N("span",{class:ot(t[o.type])},de(o.type),3),N("span",uue,de(o.payload),1)])]),_:1},8,["data"])]))}}),d3=e=>{const t=Le({get(){return k_.value[e]},set(i){i?(n.value=!0,Eo(()=>{k_.value[e]=!0})):k_.value[e]=!1}}),n=Ie(t.value);return{showCollapse:t,showContent:n,handlerTransitionEnd:()=>{t.value||(n.value=!1)}}};var jm=function(){return jm=Object.assign||function(e){for(var t,n=1,r=arguments.length;ni.endVal;i.frameVal=s?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),a1?i.options.decimal+f[1]:"",i.options.useGrouping){u="";for(var p=3,d=0,g=0,y=s.length;gwindow.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>o||i>n)&&!t.paused&&t.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(t){var n;if(this.el){var r=this.formattingFn(t);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,r):this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r}},e.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},e.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();const p3=lt({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,n=Ie(),r=Le(()=>M0(t.name));let i=null;tl(()=>{kt(r,(a,s)=>{i?i==null||i.update(a):Eo(()=>{i=new fue(n.value,r.value,{duration:1,separator:"",enableScrollSpy:!1,startVal:s}),i==null||i.update(a)})})}),Gd(()=>{i=null});const o=Le(()=>r.value===Kl?"":r.value(X(),ae("div",{class:ot($(hn)("flex h-4 w-8 items-center justify-center rounded-lg bg-base-100 text-xs",o.value))},[r.value===$(Kl)?(X(),_t($(JL),{key:0,class:"h-3 w-3 text-base-content"})):mt("",!0),At(N("div",{ref_key:"latencyRef",ref:n},de(r.value),513),[[oW,r.value!==$(Kl)]])],2))}});/*! @license DOMPurify 3.2.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.2/LICENSE */const{entries:v3,setPrototypeOf:ZI,isFrozen:hue,getPrototypeOf:due,getOwnPropertyDescriptor:pue}=Object;let{freeze:$r,seal:Ji,create:g3}=Object,{apply:TS,construct:ES}=typeof Reflect<"u"&&Reflect;$r||($r=function(t){return t});Ji||(Ji=function(t){return t});TS||(TS=function(t,n,r){return t.apply(n,r)});ES||(ES=function(t,n){return new t(...n)});const tg=Ai(Array.prototype.forEach),QI=Ai(Array.prototype.pop),ah=Ai(Array.prototype.push),jg=Ai(String.prototype.toLowerCase),ww=Ai(String.prototype.toString),JI=Ai(String.prototype.match),sh=Ai(String.prototype.replace),vue=Ai(String.prototype.indexOf),gue=Ai(String.prototype.trim),ho=Ai(Object.prototype.hasOwnProperty),Er=Ai(RegExp.prototype.test),lh=mue(TypeError);function Ai(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:jg;ZI&&ZI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(hue(t)||(t[r]=o),i=o)}e[i]=!0}return e}function yue(e){for(let t=0;t/gm),xue=Ji(/\${[\w\W]*}/gm),Cue=Ji(/^data-[\-\w.\u00B7-\uFFFF]/),Tue=Ji(/^aria-[\-\w]+$/),m3=Ji(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Eue=Ji(/^(?:\w+script|data):/i),Aue=Ji(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),y3=Ji(/^html$/i),Mue=Ji(/^[a-z][.\w]*(-[.\w]+)+$/i);var iP=Object.freeze({__proto__:null,ARIA_ATTR:Tue,ATTR_WHITESPACE:Aue,CUSTOM_ELEMENT:Mue,DATA_ATTR:Cue,DOCTYPE_NAME:y3,ERB_EXPR:Sue,IS_ALLOWED_URI:m3,IS_SCRIPT_OR_DATA:Eue,MUSTACHE_EXPR:bue,TMPLIT_EXPR:xue});const ch={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Rue=function(){return typeof window>"u"?null:window},Due=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},oP=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function _3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rue();const t=Xe=>_3(Xe);if(t.version="3.2.2",t.removed=[],!e||!e.document||e.document.nodeType!==ch.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:d}=e,g=l.prototype,y=uh(g,"cloneNode"),_=uh(g,"remove"),m=uh(g,"nextSibling"),b=uh(g,"childNodes"),S=uh(g,"parentNode");if(typeof a=="function"){const Xe=n.createElement("template");Xe.content&&Xe.content.ownerDocument&&(n=Xe.content.ownerDocument)}let x,E="";const{implementation:T,createNodeIterator:A,createDocumentFragment:D,getElementsByTagName:P}=n,{importNode:O}=r;let k=oP();t.isSupported=typeof v3=="function"&&typeof S=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:te,TMPLIT_EXPR:W,DATA_ATTR:q,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:ie,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:ce}=iP;let{IS_ALLOWED_URI:ye}=iP,we=null;const Ne=It({},[...eP,...bw,...Sw,...xw,...tP]);let ke=null;const je=It({},[...nP,...Cw,...rP,...ng]);let He=Object.seal(g3(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),We=null,le=null,Te=!0,_e=!0,xe=!1,Ee=!0,De=!1,F=!0,B=!1,ne=!1,me=!1,ue=!1,L=!1,V=!1,Z=!0,oe=!1;const pe="user-content-";let Ce=!0,Y=!1,re={},Me=null;const Be=It({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ft=null;const bt=It({},["audio","video","img","source","image","track"]);let rn=null;const yn=It({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kn="http://www.w3.org/1998/Math/MathML",Rn="http://www.w3.org/2000/svg",Yn="http://www.w3.org/1999/xhtml";let oi=Yn,Nn=!1,Zn=null;const xu=It({},[kn,Rn,Yn],ww);let Cu=It({},["mi","mo","mn","ms","mtext"]),Tu=It({},["annotation-xml"]);const rp=It({},["title","style","font","a","script"]);let Ja=null;const sy=["application/xhtml+xml","text/html"],ly="text/html";let Un=null,es=null;const ip=n.createElement("form"),op=function(K){return K instanceof RegExp||K instanceof Function},hf=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(es&&es===K)){if((!K||typeof K!="object")&&(K={}),K=Wl(K),Ja=sy.indexOf(K.PARSER_MEDIA_TYPE)===-1?ly:K.PARSER_MEDIA_TYPE,Un=Ja==="application/xhtml+xml"?ww:jg,we=ho(K,"ALLOWED_TAGS")?It({},K.ALLOWED_TAGS,Un):Ne,ke=ho(K,"ALLOWED_ATTR")?It({},K.ALLOWED_ATTR,Un):je,Zn=ho(K,"ALLOWED_NAMESPACES")?It({},K.ALLOWED_NAMESPACES,ww):xu,rn=ho(K,"ADD_URI_SAFE_ATTR")?It(Wl(yn),K.ADD_URI_SAFE_ATTR,Un):yn,ft=ho(K,"ADD_DATA_URI_TAGS")?It(Wl(bt),K.ADD_DATA_URI_TAGS,Un):bt,Me=ho(K,"FORBID_CONTENTS")?It({},K.FORBID_CONTENTS,Un):Be,We=ho(K,"FORBID_TAGS")?It({},K.FORBID_TAGS,Un):{},le=ho(K,"FORBID_ATTR")?It({},K.FORBID_ATTR,Un):{},re=ho(K,"USE_PROFILES")?K.USE_PROFILES:!1,Te=K.ALLOW_ARIA_ATTR!==!1,_e=K.ALLOW_DATA_ATTR!==!1,xe=K.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=K.SAFE_FOR_TEMPLATES||!1,F=K.SAFE_FOR_XML!==!1,B=K.WHOLE_DOCUMENT||!1,ue=K.RETURN_DOM||!1,L=K.RETURN_DOM_FRAGMENT||!1,V=K.RETURN_TRUSTED_TYPE||!1,me=K.FORCE_BODY||!1,Z=K.SANITIZE_DOM!==!1,oe=K.SANITIZE_NAMED_PROPS||!1,Ce=K.KEEP_CONTENT!==!1,Y=K.IN_PLACE||!1,ye=K.ALLOWED_URI_REGEXP||m3,oi=K.NAMESPACE||Yn,Cu=K.MATHML_TEXT_INTEGRATION_POINTS||Cu,Tu=K.HTML_INTEGRATION_POINTS||Tu,He=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&op(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(He.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&op(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(He.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(He.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(_e=!1),L&&(ue=!0),re&&(we=It({},tP),ke=[],re.html===!0&&(It(we,eP),It(ke,nP)),re.svg===!0&&(It(we,bw),It(ke,Cw),It(ke,ng)),re.svgFilters===!0&&(It(we,Sw),It(ke,Cw),It(ke,ng)),re.mathMl===!0&&(It(we,xw),It(ke,rP),It(ke,ng))),K.ADD_TAGS&&(we===Ne&&(we=Wl(we)),It(we,K.ADD_TAGS,Un)),K.ADD_ATTR&&(ke===je&&(ke=Wl(ke)),It(ke,K.ADD_ATTR,Un)),K.ADD_URI_SAFE_ATTR&&It(rn,K.ADD_URI_SAFE_ATTR,Un),K.FORBID_CONTENTS&&(Me===Be&&(Me=Wl(Me)),It(Me,K.FORBID_CONTENTS,Un)),Ce&&(we["#text"]=!0),B&&It(we,["html","head","body"]),we.table&&(It(we,["tbody"]),delete We.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw lh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw lh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=K.TRUSTED_TYPES_POLICY,E=x.createHTML("")}else x===void 0&&(x=Due(d,i)),x!==null&&typeof E=="string"&&(E=x.createHTML(""));$r&&$r(K),es=K}},ap=It({},[...bw,...Sw,..._ue]),Eu=It({},[...xw,...wue]),uy=function(K){let Ae=S(K);(!Ae||!Ae.tagName)&&(Ae={namespaceURI:oi,tagName:"template"});const Ue=jg(K.tagName),Jt=jg(Ae.tagName);return Zn[K.namespaceURI]?K.namespaceURI===Rn?Ae.namespaceURI===Yn?Ue==="svg":Ae.namespaceURI===kn?Ue==="svg"&&(Jt==="annotation-xml"||Cu[Jt]):!!ap[Ue]:K.namespaceURI===kn?Ae.namespaceURI===Yn?Ue==="math":Ae.namespaceURI===Rn?Ue==="math"&&Tu[Jt]:!!Eu[Ue]:K.namespaceURI===Yn?Ae.namespaceURI===Rn&&!Tu[Jt]||Ae.namespaceURI===kn&&!Cu[Jt]?!1:!Eu[Ue]&&(rp[Ue]||!ap[Ue]):!!(Ja==="application/xhtml+xml"&&Zn[K.namespaceURI]):!1},Br=function(K){ah(t.removed,{element:K});try{S(K).removeChild(K)}catch{_(K)}},Au=function(K,Ae){try{ah(t.removed,{attribute:Ae.getAttributeNode(K),from:Ae})}catch{ah(t.removed,{attribute:null,from:Ae})}if(Ae.removeAttribute(K),K==="is")if(ue||L)try{Br(Ae)}catch{}else try{Ae.setAttribute(K,"")}catch{}},sp=function(K){let Ae=null,Ue=null;if(me)K=""+K;else{const Dn=JI(K,/^[\r\n\t ]+/);Ue=Dn&&Dn[0]}Ja==="application/xhtml+xml"&&oi===Yn&&(K=''+K+"");const Jt=x?x.createHTML(K):K;if(oi===Yn)try{Ae=new p().parseFromString(Jt,Ja)}catch{}if(!Ae||!Ae.documentElement){Ae=T.createDocument(oi,"template",null);try{Ae.documentElement.innerHTML=Nn?E:Jt}catch{}}const Qn=Ae.body||Ae.documentElement;return K&&Ue&&Qn.insertBefore(n.createTextNode(Ue),Qn.childNodes[0]||null),oi===Yn?P.call(Ae,B?"html":"body")[0]:B?Ae.documentElement:Qn},lp=function(K){return A.call(K.ownerDocument||K,K,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},up=function(K){return K instanceof f&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof c)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},cp=function(K){return typeof s=="function"&&K instanceof s};function to(Xe,K,Ae){tg(Xe,Ue=>{Ue.call(t,K,Ae,es)})}const fp=function(K){let Ae=null;if(to(k.beforeSanitizeElements,K,null),up(K))return Br(K),!0;const Ue=Un(K.nodeName);if(to(k.uponSanitizeElement,K,{tagName:Ue,allowedTags:we}),K.hasChildNodes()&&!cp(K.firstElementChild)&&Er(/<[/\w]/g,K.innerHTML)&&Er(/<[/\w]/g,K.textContent)||K.nodeType===ch.progressingInstruction||F&&K.nodeType===ch.comment&&Er(/<[/\w]/g,K.data))return Br(K),!0;if(!we[Ue]||We[Ue]){if(!We[Ue]&&df(Ue)&&(He.tagNameCheck instanceof RegExp&&Er(He.tagNameCheck,Ue)||He.tagNameCheck instanceof Function&&He.tagNameCheck(Ue)))return!1;if(Ce&&!Me[Ue]){const Jt=S(K)||K.parentNode,Qn=b(K)||K.childNodes;if(Qn&&Jt){const Dn=Qn.length;for(let fr=Dn-1;fr>=0;--fr){const Mi=y(Qn[fr],!0);Mi.__removalCount=(K.__removalCount||0)+1,Jt.insertBefore(Mi,m(K))}}}return Br(K),!0}return K instanceof l&&!uy(K)||(Ue==="noscript"||Ue==="noembed"||Ue==="noframes")&&Er(/<\/no(script|embed|frames)/i,K.innerHTML)?(Br(K),!0):(De&&K.nodeType===ch.text&&(Ae=K.textContent,tg([H,te,W],Jt=>{Ae=sh(Ae,Jt," ")}),K.textContent!==Ae&&(ah(t.removed,{element:K.cloneNode()}),K.textContent=Ae)),to(k.afterSanitizeElements,K,null),!1)},hp=function(K,Ae,Ue){if(Z&&(Ae==="id"||Ae==="name")&&(Ue in n||Ue in ip))return!1;if(!(_e&&!le[Ae]&&Er(q,Ae))){if(!(Te&&Er(j,Ae))){if(!ke[Ae]||le[Ae]){if(!(df(K)&&(He.tagNameCheck instanceof RegExp&&Er(He.tagNameCheck,K)||He.tagNameCheck instanceof Function&&He.tagNameCheck(K))&&(He.attributeNameCheck instanceof RegExp&&Er(He.attributeNameCheck,Ae)||He.attributeNameCheck instanceof Function&&He.attributeNameCheck(Ae))||Ae==="is"&&He.allowCustomizedBuiltInElements&&(He.tagNameCheck instanceof RegExp&&Er(He.tagNameCheck,Ue)||He.tagNameCheck instanceof Function&&He.tagNameCheck(Ue))))return!1}else if(!rn[Ae]){if(!Er(ye,sh(Ue,J,""))){if(!((Ae==="src"||Ae==="xlink:href"||Ae==="href")&&K!=="script"&&vue(Ue,"data:")===0&&ft[K])){if(!(xe&&!Er(ie,sh(Ue,J,"")))){if(Ue)return!1}}}}}}return!0},df=function(K){return K!=="annotation-xml"&&JI(K,ce)},dp=function(K){to(k.beforeSanitizeAttributes,K,null);const{attributes:Ae}=K;if(!Ae)return;const Ue={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let Jt=Ae.length;for(;Jt--;){const Qn=Ae[Jt],{name:Dn,namespaceURI:fr,value:Mi}=Qn,al=Un(Dn);let Jn=Dn==="value"?Mi:gue(Mi);if(Ue.attrName=al,Ue.attrValue=Jn,Ue.keepAttr=!0,Ue.forceKeepAttr=void 0,to(k.uponSanitizeAttribute,K,Ue),Jn=Ue.attrValue,oe&&(al==="id"||al==="name")&&(Au(Dn,K),Jn=pe+Jn),F&&Er(/((--!?|])>)|<\/(style|title)/i,Jn)){Au(Dn,K);continue}if(Ue.forceKeepAttr||(Au(Dn,K),!Ue.keepAttr))continue;if(!Ee&&Er(/\/>/i,Jn)){Au(Dn,K);continue}De&&tg([H,te,W],vf=>{Jn=sh(Jn,vf," ")});const pf=Un(K.nodeName);if(hp(pf,al,Jn)){if(x&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!fr)switch(d.getAttributeType(pf,al)){case"TrustedHTML":{Jn=x.createHTML(Jn);break}case"TrustedScriptURL":{Jn=x.createScriptURL(Jn);break}}try{fr?K.setAttributeNS(fr,Dn,Jn):K.setAttribute(Dn,Jn),up(K)?Br(K):QI(t.removed)}catch{}}}to(k.afterSanitizeAttributes,K,null)},cy=function Xe(K){let Ae=null;const Ue=lp(K);for(to(k.beforeSanitizeShadowDOM,K,null);Ae=Ue.nextNode();)to(k.uponSanitizeShadowNode,Ae,null),!fp(Ae)&&(Ae.content instanceof o&&Xe(Ae.content),dp(Ae));to(k.afterSanitizeShadowDOM,K,null)};return t.sanitize=function(Xe){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ae=null,Ue=null,Jt=null,Qn=null;if(Nn=!Xe,Nn&&(Xe=""),typeof Xe!="string"&&!cp(Xe))if(typeof Xe.toString=="function"){if(Xe=Xe.toString(),typeof Xe!="string")throw lh("dirty is not a string, aborting")}else throw lh("toString is not a function");if(!t.isSupported)return Xe;if(ne||hf(K),t.removed=[],typeof Xe=="string"&&(Y=!1),Y){if(Xe.nodeName){const Mi=Un(Xe.nodeName);if(!we[Mi]||We[Mi])throw lh("root node is forbidden and cannot be sanitized in-place")}}else if(Xe instanceof s)Ae=sp(""),Ue=Ae.ownerDocument.importNode(Xe,!0),Ue.nodeType===ch.element&&Ue.nodeName==="BODY"||Ue.nodeName==="HTML"?Ae=Ue:Ae.appendChild(Ue);else{if(!ue&&!De&&!B&&Xe.indexOf("<")===-1)return x&&V?x.createHTML(Xe):Xe;if(Ae=sp(Xe),!Ae)return ue?null:V?E:""}Ae&&me&&Br(Ae.firstChild);const Dn=lp(Y?Xe:Ae);for(;Jt=Dn.nextNode();)fp(Jt)||(Jt.content instanceof o&&cy(Jt.content),dp(Jt));if(Y)return Xe;if(ue){if(L)for(Qn=D.call(Ae.ownerDocument);Ae.firstChild;)Qn.appendChild(Ae.firstChild);else Qn=Ae;return(ke.shadowroot||ke.shadowrootmode)&&(Qn=O.call(r,Qn,!0)),Qn}let fr=B?Ae.outerHTML:Ae.innerHTML;return B&&we["!doctype"]&&Ae.ownerDocument&&Ae.ownerDocument.doctype&&Ae.ownerDocument.doctype.name&&Er(y3,Ae.ownerDocument.doctype.name)&&(fr=" -`+fr),De&&tg([H,te,W],Mi=>{fr=sh(fr,Mi," ")}),x&&V?x.createHTML(fr):fr},t.setConfig=function(){let Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};hf(Xe),ne=!0},t.clearConfig=function(){es=null,ne=!1},t.isValidAttribute=function(Xe,K,Ae){es||hf({});const Ue=Un(Xe),Jt=Un(K);return hp(Ue,Jt,Ae)},t.addHook=function(Xe,K){typeof K=="function"&&ah(k[Xe],K)},t.removeHook=function(Xe){return QI(k[Xe])},t.removeHooks=function(Xe){k[Xe]=[]},t.removeAllHooks=function(){k=oP()},t}var Iue=_3();const Pue=["innerHTML"],Lue=["src"],aP="data:image/svg+xml,",w3=lt({__name:"ProxyIcon",props:{icon:{},fill:{}},setup(e){const t=e,n=Le(()=>t.icon.startsWith(aP)),r=Le(()=>{if(n.value)return Iue.sanitize(t.icon.replace(aP,""))});return(i,o)=>n.value?(X(),ae("div",{key:0,class:ot(["h-5 w-5",i.fill||"fill-primary"]),innerHTML:r.value},null,10,Pue)):(X(),ae("img",{key:1,class:"w-5",src:i.icon},null,8,Lue))}}),Oue=["data-tip"],kue=lt({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,n=Ie(null),r=Ie(!1),i=()=>{if(n.value){const{scrollWidth:f,clientWidth:p}=n.value;r.value=f>p}},o=Le(()=>Wa.value[t.name]),a=Ie(!1),s=f=>(f=f.toLowerCase(),f=f.replace("shadowsocks","ss"),f=f.replace("hysteria","hy"),f=f.replace("wireguard","wg"),f),l=Le(()=>{const f=s(o.value.type);return o.value.udp?`${f} | udp`:f}),u=Le(()=>oX.value&&$h.value),c=async()=>{if(!a.value){a.value=!0;try{await Kq(t.name),a.value=!1}catch{a.value=!1}}};return(f,p)=>(X(),ae("div",{ref:"cardRef",class:ot($(hn)("relative flex min-h-9 cursor-pointer flex-wrap items-center justify-end gap-1 rounded-md bg-base-200 p-2",f.active?"bg-primary text-primary-content":"sm:hover:bg-base-300",r.value&&"tooltip tooltip-bottom")),"data-tip":o.value.name,onMouseenter:i},[o.value.icon?(X(),_t(w3,{key:0,icon:o.value.icon,fill:f.active?"fill-primary-content":"fill-base-content"},null,8,["icon","fill"])):mt("",!0),N("div",{class:ot($(hn)("flex-1 whitespace-nowrap text-xs md:text-sm",$(Bh)&&"truncate",u.value&&"pr-6")),ref_key:"nameRef",ref:n},de(o.value.name),3),N("span",{class:ot(`text-xs tracking-tight ${u.value?"absolute bottom-0 right-0 scale-75":""}`)},de(l.value),3),Se(p3,{class:ot([a.value?"animate-pulse":"",u.value?"absolute right-2 top-1":""]),name:o.value.name,onClick:KS(c,["stop"])},null,8,["class","name"])],42,Oue))}}),b3=Rx(kue,[["__scopeId","data-v-b674cfe7"]]),Nue=lt({__name:"ProxyNodeGrid",setup(e){const{hasTwoColumns:t}=D0();return(n,r)=>(X(),ae("div",{class:ot($(hn)("grid gap-2",$(Bh)&&"max-h-96 overflow-y-auto",$($h)?"grid-cols-2":"grid-cols-1",$(au)?$(t)?"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-5 2xl:grid-cols-6 3xl:grid-cols-7":$(t)?"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 2xl:grid-cols-5 3xl:grid-cols-6"))},[fL(n.$slots,"default",{},void 0,!0)],2))}}),S3=Rx(Nue,[["__scopeId","data-v-0e9bb0cd"]]),Fue={key:0,class:"flex flex-wrap gap-1 pt-2"},$ue={key:0,class:"h-2 w-2 rounded-full bg-white"},Bue={key:1,class:"flex items-center gap-2 py-2"},Vue={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},x3=lt({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,n=Le(()=>Vh.value===_d.DOTS||Vh.value===_d.AUTO&&t.nodes.length<20),r=Le(()=>t.nodes.map(u=>({latency:M0(u),name:u}))),i=u=>u===Kl?"bg-gray-500":ur.value.filter(u=>u.latencyKl).length),a=Le(()=>r.value.filter(u=>u.latency>=Os.value&&u.latencyr.value.filter(u=>u.latency>=Da.value).length),l=Le(()=>r.value.filter(u=>u.latency===Kl).length);return(u,c)=>n.value?(X(),ae("div",Fue,[(X(!0),ae(Ye,null,Gt(r.value,f=>(X(),ae("div",{key:f.name,class:ot(["flex h-4 w-4 items-center justify-center rounded-full",i(f.latency)])},[u.now===f.name?(X(),ae("div",$ue)):mt("",!0)],2))),128))])):(X(),ae("div",Bue,[N("div",Vue,[N("div",{class:ot(i($(Os)-1)),style:vo({width:`${o.value*100/u.nodes.length}%`})},null,6),N("div",{class:ot(i($(Da)-1)),style:vo({width:`${a.value*100/u.nodes.length}%`})},null,6),N("div",{class:ot(i($(Da)+1)),style:vo({width:`${s.value*100/u.nodes.length}%`})},null,6),N("div",{class:ot(i($(Kl))),style:vo({width:`${l.value*100/u.nodes.length}%`})},null,6)])]))}}),Hue={class:"collapse-title pr-4"},Uue={class:"flex items-center gap-2 pr-6"},zue={class:"flex flex-1 items-center gap-1"},Gue={class:"text-lg font-medium"},Wue={key:1,class:"text-sm"},Yue={class:"flex items-center gap-2 text-xs text-slate-500"},jue={class:"flex-1"},que={class:"shrink-0"},Xue=lt({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,{showCollapse:n,showContent:r,handlerTransitionEnd:i}=d3(t.name),o=Le(()=>Wa.value[t.name]),a=Le(()=>lk(o.value.all??[])),s=Ie(!1),l=async()=>{if(!s.value){s.value=!0;try{await Zq(t.name),s.value=!1}catch{s.value=!1}}},u=Le(()=>mo.value.filter(f=>f.chains.includes(t.name)).reduce((f,p)=>f+p.downloadSpeed,0));return(c,f)=>{var p;return X(),ae("div",{class:ot(`collapse collapse-arrow ${$(n)?"collapse-open":"collapse-close"}`)},[N("div",Hue,[N("div",Uue,[N("div",zue,[o.value.icon?(X(),_t(w3,{key:0,icon:o.value.icon},null,8,["icon"])):mt("",!0),N("span",Gue,de(o.value.name),1),o.value.now?(X(),ae("span",Wue," -> "+de(o.value.now),1)):mt("",!0)]),Se(p3,{class:ot($(hn)("z-10 bg-base-200/40",s.value?"animate-pulse":"")),name:o.value.now,onClick:KS(l,["stop"])},null,8,["class","name"])]),N("div",Yue,[N("div",jue,de(o.value.type)+" ("+de((p=o.value.all)==null?void 0:p.length)+")",1),N("div",que,de($(mn)(u.value))+"/s",1)]),$(n)?mt("",!0):(X(),_t(x3,{key:0,nodes:a.value,now:o.value.now},null,8,["nodes","now"]))]),At(N("input",{type:"checkbox","onUpdate:modelValue":f[0]||(f[0]=d=>Ze(n)?n.value=d:null)},null,512),[[mi,$(n)]]),N("div",{class:"collapse-content flex flex-col gap-2 max-sm:px-2",onAnimationend:f[1]||(f[1]=(...d)=>$(i)&&$(i)(...d))},[$(r)?(X(),_t(S3,{key:0},{default:Gs(()=>[(X(!0),ae(Ye,null,Gt(a.value,d=>(X(),_t(b3,{key:d,name:d,active:d===o.value.now,onClick:g=>$(Xq)(o.value.name,d)},null,8,["name","active","onClick"]))),128))]),_:1})):mt("",!0)],32)],2)}}}),Kue={class:"collapse-title"},Zue={class:"flex items-center gap-2"},Que={class:"text-lg font-medium sm:text-xl"},Jue={class:"text-sm"},ece={class:"flex gap-2"},tce=["value"],nce={class:"flex flex-col sm:flex-row sm:gap-4"},rce={class:"text-sm text-slate-500"},ice={class:"text-sm text-slate-500"},oce={class:"text-sm text-slate-500"},ace=lt({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,{showCollapse:n,showContent:r,handlerTransitionEnd:i}=d3(t.name),o=d=>{const{Download:g=0,Upload:y=0,Total:_=0,Expire:m=0}=d,b=mn(_,{binary:!0}),S=mn(g+y,{binary:!0}),x=ea.toFinite(((g+y)/_*100).toFixed(2));return{total:b,used:S,percentage:x,expirePrefix:()=>{const{t:A}=Ga();return A("expire")},expireStr:()=>{const{t:A}=Ga();return m===0?A("noExpire"):Zo(m*1e3).format("YYYY-MM-DD")}}},a=Le(()=>Mc.value.find(d=>d.name===t.name)),s=Le(()=>lk(a.value.proxies.map(d=>d.name))),l=Le(()=>a.value.subscriptionInfo?o(a.value.subscriptionInfo):null),u=Ie(!1),c=Ie(!1),f=async()=>{if(!c.value){c.value=!0;try{await _q(t.name),await jc(),c.value=!1}catch{c.value=!1}}},p=async()=>{if(!u.value){u.value=!0;try{await ek(t.name),await jc(),u.value=!1}catch{u.value=!1}}};return(d,g)=>(X(),ae("div",{class:ot(`collapse collapse-arrow ${$(n)?"collapse-open":"collapse-close"}`)},[N("div",Kue,[N("div",Zue,[N("div",Que,[ut(de(a.value.name)+" ",1),N("span",Jue," ("+de(a.value.proxies.length)+") ",1)]),g[2]||(g[2]=N("div",{class:"flex-1"},null,-1)),N("div",ece,[N("button",{class:ot($(hn)("btn btn-circle btn-xs z-30",c.value?"animate-pulse":"")),onClick:f},[Se($(JL),{class:"h-4 w-4"})],2),N("button",{class:ot($(hn)("btn btn-circle btn-xs z-30",u.value?"animate-spin":"")),onClick:p},[Se($(KL),{class:"h-4 w-4"})],2)])]),l.value?(X(),ae("progress",{key:0,class:"progress",value:l.value.percentage,max:"100"},null,8,tce)):mt("",!0),N("div",nce,[l.value?(X(),ae(Ye,{key:0},[N("div",rce,de(l.value.used)+" / "+de(l.value.total)+" ( "+de(l.value.percentage)+"% ) ",1),N("div",ice,de(l.value.expirePrefix())+": "+de(l.value.expireStr()),1)],64)):mt("",!0),N("div",oce,de(d.$t("updated"))+" "+de($(R0)(a.value.updatedAt)),1)]),$(n)?mt("",!0):(X(),_t(x3,{key:1,nodes:s.value},null,8,["nodes"]))]),At(N("input",{type:"checkbox","onUpdate:modelValue":g[0]||(g[0]=y=>Ze(n)?n.value=y:null)},null,512),[[mi,$(n)]]),N("div",{class:"collapse-content flex flex-col gap-2 max-sm:px-2",onTransitionend:g[1]||(g[1]=(...y)=>$(i)&&$(i)(...y))},[$(r)?(X(),_t(S3,{key:0},{default:Gs(()=>[(X(!0),ae(Ye,null,Gt(s.value,y=>(X(),_t(b3,{key:y,name:y},null,8,["name"]))),128))]),_:1})):mt("",!0)],32)],2))}}),sce={class:"overflow-y-auto p-2"},lce={key:0,class:"grid grid-cols-2 gap-1"},uce={key:1,class:"grid grid-cols-1 gap-1"},cce=lt({__name:"ProxiesPage",setup(e){const{proxiesTabShow:t,renderGroups:n}=D0(),r=Le(()=>t.value===pu.PROVIDER?ace:Xue),i=(o,a)=>o.filter((s,l)=>l%2===a);return(o,a)=>(X(),ae("div",sce,[$(sk)&&$(kh)&&$(n).length>1?(X(),ae("div",lce,[(X(),ae(Ye,null,Gt([0,1],s=>N("div",{key:s,class:"flex flex-1 flex-col gap-1"},[(X(!0),ae(Ye,null,Gt(i($(n),s),l=>(X(),_t(Ua(r.value),{key:l,name:l},null,8,["name"]))),128))])),64))])):(X(),ae("div",uce,[(X(!0),ae(Ye,null,Gt($(n),s=>(X(),_t(Ua(r.value),{key:s,name:s},null,8,["name"]))),128))]))]))}}),fce={class:"card mb-1 block p-2 text-sm"},hce={class:"mr-1"},dce={key:0,class:"mr-1"},pce={class:"text-primary"},vce=lt({__name:"RuleCard",props:{rule:{}},setup(e){return(t,n)=>(X(),ae("div",fce,[N("span",hce,de(t.rule.type),1),t.rule.payload?(X(),ae("span",dce,": "+de(t.rule.payload),1)):mt("",!0),n[0]||(n[0]=N("span",{class:"mr-1"},"->",-1)),N("span",pce,de(t.rule.proxy),1)]))}}),gce={class:"card w-full flex-row items-center gap-2 p-1 px-2 text-sm"},mce={class:"flex flex-1 flex-col sm:flex-row"},yce={class:"w-48 flex-1 text-primary"},_ce={class:"flex gap-1"},wce=lt({__name:"RuleProvider",props:{ruleProvider:{}},setup(e){const t=Ie(!1),n=e,r=async()=>{t.value||(t.value=!0,await tk(n.ruleProvider.name),bm(),t.value=!1)};return(i,o)=>(X(),ae("div",gce,[N("div",mce,[N("div",yce,de(i.ruleProvider.name)+" ("+de(i.ruleProvider.ruleCount)+") ",1),N("div",_ce,[N("span",null,de(i.ruleProvider.behavior),1),N("span",null,de(i.ruleProvider.vehicleType),1),N("span",null,de(i.$t("updated"))+" "+de($(R0)(i.ruleProvider.updatedAt)),1)])]),N("button",{class:ot($(hn)("btn btn-circle btn-xs",t.value?"animate-spin":"")),onClick:r},[Se($(KL),{class:"h-4 w-4"})],2)]))}}),bce={key:0,class:"flex flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},Sce=lt({__name:"RulesPage",setup(e){return(t,n)=>$(Gh)===$(zc).PROVIDER?(X(),ae("div",bce,[(X(!0),ae(Ye,null,Gt($(wm),r=>(X(),_t(wce,{key:r.name,ruleProvider:r},null,8,["ruleProvider"]))),128))])):(X(),_t(mx,{key:1,data:$($k)},{default:Gs(({item:r})=>[(X(),_t(vce,{key:r.payload,rule:r},null,8,["rule"]))]),_:1},8,["data"]))}}),xce={class:"join w-96 max-sm:w-full"},Cce={class:"max-h-96 overflow-y-auto"},Tce=lt({__name:"DnsQuery",setup(e){const t=xo({name:"",type:"A"}),n=Ie([]),r=async()=>{const{data:i}=await Aq(t);n.value=i.Answer};return(i,o)=>(X(),ae(Ye,null,[N("form",xce,[Se(Mx,{modelValue:t.name,"onUpdate:modelValue":o[0]||(o[0]=a=>t.name=a),type:"text",name:"name",placeholder:"Domain Name"},null,8,["modelValue"]),At(N("select",{"onUpdate:modelValue":o[1]||(o[1]=a=>t.type=a),class:"join-item select select-bordered select-sm"},o[2]||(o[2]=[N("option",{value:"A"},"A",-1),N("option",{value:"AAAA"},"AAAA",-1),N("option",{value:"MX"},"MX",-1)]),512),[[wo,t.type]]),N("button",{class:"btn join-item btn-sm",onClick:r},de(i.$t("DNSQuery")),1)]),N("div",Cce,[(X(!0),ae(Ye,null,Gt(n.value,a=>(X(),ae("div",{class:"flex gap-1",key:a.data},[N("div",null,de(a.name),1),o[3]||(o[3]=ut(" : ")),N("div",null,de(a.data),1)]))),128))])],64))}}),Ece={class:"flex items-center gap-2"},Ace=["value","label"],C3=lt({__name:"LanguageSelect",setup(e){const t={[$a.EN_US]:"English",[$a.ZH_CN]:"简体中文"};return(n,r)=>(X(),ae("div",Ece,[ut(de(n.$t("language"))+": ",1),At(N("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":r[0]||(r[0]=i=>Ze(Pa)?Pa.value=i:null),onChange:r[1]||(r[1]=()=>$(fx).global.locale=$(Pa))},[(X(!0),ae(Ye,null,Gt(Object.values($($a)),i=>(X(),ae("option",{key:i,value:i,label:t[i]||i},null,8,Ace))),128))],544),[[wo,$(Pa)]])]))}}),Mce={class:"flex flex-col gap-2 p-2"},Rce=["onUpdate:modelValue"],Dce=["onClick"],Ice={class:"flex w-full items-center gap-2"},Pce=lt({__name:"SourceIPLabels",setup(e){const t=Le(()=>Object.keys(yi.value)),n=xo({ip:"",label:""}),r=()=>{yi.value[n.ip]=n.label,n.ip="",n.label=""},i=o=>{Reflect.deleteProperty(yi.value,o),yi.value={...yi.value}};return(o,a)=>(X(),ae(Ye,null,[N("div",null,de(o.$t("sourceIPLabels"))+":",1),N("div",Mce,[(X(!0),ae(Ye,null,Gt(t.value,s=>(X(),ae("div",{key:s,class:"flex items-center gap-2"},[ut(de(s)+" -> ",1),At(N("input",{type:"text",class:"input input-xs input-bordered w-24","onUpdate:modelValue":l=>$(yi)[s]=l},null,8,Rce),[[Kr,$(yi)[s]]]),N("button",{class:"btn btn-circle btn-xs",onClick:()=>i(s)},[Se($(tO),{class:"h-4 w-4"})],8,Dce)]))),128)),N("div",Ice,[a[2]||(a[2]=ut(" IP: ")),At(N("input",{type:"text",class:"input input-xs input-bordered w-44","onUpdate:modelValue":a[0]||(a[0]=s=>n.ip=s)},null,512),[[Kr,n.ip]]),At(N("input",{type:"text",class:"input input-xs input-bordered w-20","onUpdate:modelValue":a[1]||(a[1]=s=>n.label=s)},null,512),[[Kr,n.label]]),N("button",{class:"btn btn-circle btn-xs",onClick:r},[Se($(iO),{class:"h-4 w-4"})])])])],64))}});var Lce=Object.defineProperty,qm=Object.getOwnPropertySymbols,T3=Object.prototype.hasOwnProperty,E3=Object.prototype.propertyIsEnumerable,sP=(e,t,n)=>t in e?Lce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mc=(e,t)=>{for(var n in t||(t={}))T3.call(t,n)&&sP(e,n,t[n]);if(qm)for(var n of qm(t))E3.call(t,n)&&sP(e,n,t[n]);return e},A3=(e,t)=>{var n={};for(var r in e)T3.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&qm)for(var r of qm(e))t.indexOf(r)<0&&E3.call(e,r)&&(n[r]=e[r]);return n};const M3="[vue-draggable-plus]: ";function Oce(e){console.warn(M3+e)}function kce(e){console.error(M3+e)}function lP(e,t,n){return n>=0&&nn?n.toUpperCase():"")}function Fce(e){return Object.keys(e).reduce((t,n)=>(typeof e[n]<"u"&&(t[Nce(n)]=e[n]),t),{})}function uP(e,t){return Array.isArray(e)&&e.splice(t,1),e}function cP(e,t,n){return Array.isArray(e)&&e.splice(t,0,n),e}function $ce(e){return typeof e>"u"}function Bce(e){return typeof e=="string"}function fP(e,t,n){const r=e.children[n];e.insertBefore(t,r)}function Tw(e){e.parentNode&&e.parentNode.removeChild(e)}function Vce(e,t=document){var n;let r=null;return typeof(t==null?void 0:t.querySelector)=="function"?r=(n=t==null?void 0:t.querySelector)==null?void 0:n.call(t,e):r=document.querySelector(e),r||Oce(`Element not found: ${e}`),r}function Hce(e,t,n=null){return function(...r){return e.apply(n,r),t.apply(n,r)}}function Uce(e,t){const n=mc({},e);return Object.keys(t).forEach(r=>{n[r]?n[r]=Hce(e[r],t[r]):n[r]=t[r]}),n}function zce(e){return e instanceof HTMLElement}function hP(e,t){Object.keys(e).forEach(n=>{t(n,e[n])})}function Gce(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}const Wce=Object.assign;/**! +`:"
",m=f.join(_);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",a[0],a[1],d,null,p)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=fn(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,f=a.dataType,p=u.getData(f),d=this._renderMode,g=n.positionDefault,y=ih([p.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),_=y.get("trigger");if(!(_!=null&&_!=="item")){var m=u.getDataParams(c,f),b=new H1;m.marker=b.makeTooltipMarker("item",wu(m.color),d);var S=JR(u.formatTooltip(c,!1,f)),x=y.get("order"),E=y.get("valueFormatter"),T=S.frag,A=T?nD(E?Pe({valueFormatter:E},T):T,b,d,x,o.get("useUTC"),y.get("textStyle")):S.text,D="item_"+u.name+"_"+c;this._showOrMove(y,function(){this._showTooltipContent(y,A,m,D,n.offsetX,n.offsetY,n.position,n.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:p.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=fn(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(qe(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=Nt(l),l.content=yi(l.content));var f=[l],p=this._ecModel.getComponent(a.componentMainType,a.componentIndex);p&&f.push(p),f.push({formatter:l.content});var d=n.positionDefault,g=ih(f,this._tooltipModel,d?{position:d}:null),y=g.get("content"),_=Math.random()+"",m=new H1;this._showOrMove(g,function(){var b=Nt(g.get("formatterParams")||{});this._showTooltipContent(g,y,b,_,n.offsetX,n.offsetY,n.position,r,m)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,i,o,a,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var p=n.get("formatter");l=l||n.get("position");var d=r,g=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),y=g.color;if(p)if(qe(p)){var _=n.ecModel.get("useUTC"),m=ze(i)?i[0]:i,b=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=p,b&&(d=X0(m.axisValue,d,_)),d=AF(d,i,!0)}else if(wt(p)){var S=Mn(function(x,E){x===this._ticket&&(f.setContent(E,c,n,y,l),this._updatePosition(n,l,a,s,f,i,u))},this);this._ticket=o,d=p(i,o,S)}else d=p;f.setContent(d,c,n,y,l),f.show(n,y),this._updatePosition(n,l,a,s,f,i,u)}},t.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||ze(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ze(r))return{color:o||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,i,o,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=a.getSize(),p=n.get("align"),d=n.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),wt(r)&&(r=r([i,o],s,a.el,g,{viewSize:[u,c],contentSize:f.slice()})),ze(r))i=kr(r[0],u),o=kr(r[1],c);else if(it(r)){var y=r;y.width=f[0],y.height=f[1];var _=Vm(y,{width:u,height:c});i=_.x,o=_.y,p=null,d=null}else if(qe(r)&&l){var m=yle(r,g,f,n.get("borderWidth"));i=m[0],o=m[1]}else{var m=gle(i,o,a,u,c,p?null:20,d?null:20);i=m[0],o=m[1]}if(p&&(i-=GI(p)?f[0]/2:p==="right"?f[0]:0),d&&(o-=GI(d)?f[1]/2:d==="bottom"?f[1]:0),i3(n)){var m=mle(i,o,a,u,c);i=m[0],o=m[1]}a.moveTo(i,o)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===n.length;return a&&G(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];a=a&&u.length===f.length,a&&G(u,function(p,d){var g=f[d]||{},y=p.seriesDataIndices||[],_=g.seriesDataIndices||[];a=a&&p.value===g.value&&p.axisType===g.axisType&&p.axisId===g.axisId&&y.length===_.length,a&&G(y,function(m,b){var S=_[b];a=a&&m.seriesIndex===S.seriesIndex&&m.dataIndex===S.dataIndex}),o&&G(p.seriesDataIndices,function(m){var b=m.seriesIndex,S=r[b],x=o[b];S&&x&&x.data!==S.data&&(a=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!a},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){vt.node||!r.getDom()||(nS(this,"_updatePosition"),this._tooltipContent.dispose(),wS("itemTooltip",r))},t.type="tooltip",t}(na);function ih(e,t,n){var r=t.ecModel,i;n?(i=new On(n,r,r),i=new On(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof On&&(a=a.get("tooltip",!0)),qe(a)&&(a={formatter:a}),a&&(i=new On(a,i,r)))}return i}function zI(e,t){return e.dispatchAction||Mn(t.dispatchAction,t)}function gle(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return o!=null&&(e+l+o+2>r?e-=l+o:e+=o),a!=null&&(t+u+a>i?t-=u+a:t+=a),[e,t]}function mle(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function yle(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+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-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function GI(e){return e==="center"||e==="middle"}function _le(e,t,n){var r=Gx(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=ep(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=n.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var c=fn(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function wle(e){Zs(r3),e.registerComponentModel(nle),e.registerComponentView(vle),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Jr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Jr)}var ble=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},bS=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),ze(r)&&G(r,function(o,a){qe(o)&&(o={type:o}),r[a]=Kt(o,ble(i,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(on),rc=tr,SS=G,eg=Sr,l3=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new eg),this.group.add(this._selectorGroup=new eg),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var a=n.get("align"),s=n.get("orient");(!a||a==="auto")&&(a=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,n,r,i,l,s,u);var c=n.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},p=n.get("padding"),d=Vm(c,f,p),g=this.layoutInner(n,a,d,o,l,u),y=Vm(nn({width:g.width,height:g.height},c),f,p);this.group.x=y.x-g.x,this.group.y=y.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=tle(g,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this.getContentGroup(),c=Mt(),f=r.get("selectedMode"),p=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&p.push(d.id)}),SS(r.getData(),function(d,g){var y=d.get("name");if(!this.newlineDisabled&&(y===""||y===` +`)){var _=new eg;_.newline=!0,u.add(_);return}var m=i.getSeriesByName(y)[0];if(!c.get(y))if(m){var b=m.getData(),S=b.getVisual("legendLineStyle")||{},x=b.getVisual("legendIcon"),E=b.getVisual("style"),T=this._createItem(m,y,g,d,r,n,S,E,x,f,o);T.on("click",rc(WI,y,null,o,p)).on("mouseover",rc(xS,m.name,null,o,p)).on("mouseout",rc(CS,m.name,null,o,p)),i.ssr&&T.eachChild(function(A){var D=fn(A);D.seriesIndex=m.seriesIndex,D.dataIndex=g,D.ssrType="legend"}),c.set(y,!0)}else i.eachRawSeries(function(A){if(!c.get(y)&&A.legendVisualProvider){var D=A.legendVisualProvider;if(!D.containName(y))return;var P=D.indexOfName(y),O=D.getItemVisual(P,"style"),k=D.getItemVisual(P,"legendIcon"),H=Ba(O.fill);H&&H[3]===0&&(H[3]=.2,O=Pe(Pe({},O),{fill:N0(H,"rgba")}));var te=this._createItem(A,y,g,d,r,n,{},O,k,f,o);te.on("click",rc(WI,null,y,o,p)).on("mouseover",rc(xS,null,y,o,p)).on("mouseout",rc(CS,null,y,o,p)),i.ssr&&te.eachChild(function(W){var q=fn(W);q.seriesIndex=A.seriesIndex,q.dataIndex=g,q.ssrType="legend"}),c.set(y,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();SS(n,function(u){var c=u.type,f=new ri({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var p=r.getModel("selectorLabel"),d=r.getModel(["emphasis","selectorLabel"]);aC(f,{normal:p,emphasis:d},{defaultText:u.title}),Vb(f)})},t.prototype._createItem=function(n,r,i,o,a,s,l,u,c,f,p){var d=n.visualDrawType,g=a.get("itemWidth"),y=a.get("itemHeight"),_=a.isSelected(r),m=o.get("symbolRotate"),b=o.get("symbolKeepAspect"),S=o.get("icon");c=S||c||"roundRect";var x=Sle(c,o,l,u,d,_,p),E=new eg,T=o.getModel("textStyle");if(wt(n.getLegendIcon)&&(!S||S==="inherit"))E.add(n.getLegendIcon({itemWidth:g,itemHeight:y,icon:c,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:b}));else{var A=S==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;E.add(xle({itemWidth:g,itemHeight:y,icon:c,iconRotate:A,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:b}))}var D=s==="left"?g+5:-5,P=s,O=a.get("formatter"),k=r;qe(O)&&O?k=O.replace("{name}",r??""):wt(O)&&(k=O(r));var H=_?T.getTextColor():o.get("inactiveColor");E.add(new ri({style:Xc(T,{text:k,x:D,y:y/2,fill:H,align:P,verticalAlign:"middle"},{inheritColor:H})}));var te=new cr({shape:E.getBoundingRect(),style:{fill:"transparent"}}),W=o.getModel("tooltip");return W.get("show")&&iC({el:te,componentModel:a,itemName:r,itemTooltipOption:W.option}),E.add(te),E.eachChild(function(q){q.silent=!0}),te.silent=!f,this.getContentGroup().add(E),Vb(E),E.__legendDataIndex=i,E},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ed(n.get("orient"),l,n.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){ed("horizontal",u,n.get("selectorItemGap",!0));var p=u.getBoundingRect(),d=[-p.x,-p.y],g=n.get("selectorButtonGap",!0),y=n.getOrient().index,_=y===0?"width":"height",m=y===0?"height":"width",b=y===0?"y":"x";s==="end"?d[y]+=c[_]+g:f[y]+=p[_]+g,d[1-y]+=c[m]/2-p[m]/2,u.x=d[0],u.y=d[1],l.x=f[0],l.y=f[1];var S={x:0,y:0};return S[_]=c[_]+g+p[_],S[m]=Math.max(c[m],p[m]),S[b]=Math.min(0,p[b]+d[1-y]),S}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}(na);function Sle(e,t,n,r,i,o,a){function s(_,m){_.lineWidth==="auto"&&(_.lineWidth=m.lineWidth>0?2:0),SS(_,function(b,S){_[S]==="inherit"&&(_[S]=m[S])})}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"?r.decal:uS(f,a),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:n).opacity),s(u,r);var p=t.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),!o){var g=t.get("inactiveBorderWidth"),y=u[c];u.lineWidth=g==="auto"?r.lineWidth>0&&y?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function xle(e){var t=e.icon||"roundRect",n=Qc(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function WI(e,t,n,r){CS(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),xS(e,t,n,r)}function u3(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;ri[a],_=[-d.x,-d.y];r||(_[o]=c[u]);var m=[0,0],b=[-g.x,-g.y],S=Ot(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(y){var x=n.get("pageButtonPosition",!0);x==="end"?b[o]+=i[a]-g[a]:m[o]+=g[a]+S}b[1-o]+=d[s]/2-g[s]/2,c.setPosition(_),f.setPosition(m),p.setPosition(b);var E={x:0,y:0};if(E[a]=y?i[a]:d[a],E[s]=Math.max(d[s],g[s]),E[l]=Math.min(0,g[l]+b[1-o]),f.__rectSize=i[a],y){var T={x:0,y:0};T[a]=Math.max(i[a]-g[a]-S,0),T[s]=E[s],f.setClipPath(new cr({shape:T})),f.__rectSize=T[a]}else p.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(n);return A.pageIndex!=null&&Xs(c,{x:A.contentPosition[0],y:A.contentPosition[1]},y?n:null),this._updatePageInfoView(n,A),E},t.prototype._pageGo=function(n,r,i){var o=this._getPageInfo(r)[n];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;G(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",p=r[f]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",p?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),d.cursor=p?"pointer":"default")});var o=i.childOfName("pageText"),a=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;o&&a&&o.setStyle("text",qe(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=gw[a],l=mw[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],p=c.length,d=p?1:0,g={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return g;var y=x(f);g.contentPosition[a]=-y.s;for(var _=u+1,m=y,b=y,S=null;_<=p;++_)S=x(c[_]),(!S&&b.e>m.s+o||S&&!E(S,m.s))&&(b.i>m.i?m=b:m=S,m&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=m.i),++g.pageCount)),b=S;for(var _=u-1,m=y,b=y,S=null;_>=-1;--_)S=x(c[_]),(!S||!E(b,S.s))&&m.i=A&&T.s<=A+o}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(r=s)}),r??o},t.type="legend.scroll",t}(l3);function Mle(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}function Rle(e){Zs(c3),e.registerComponentModel(Ele),e.registerComponentView(Ale),Mle(e)}function Dle(e){Zs(c3),Zs(Rle)}function qI(e,t,n){var r=of.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var yw=function(e){Ve(t,e);function t(n,r,i){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;i=i||Rm,typeof n=="string"?a=qI(n,r,i):it(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(qk(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=i,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=qI("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,r,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,u=new Zt(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(a.length===0){var S=new Zt(0,0,0,0);S.copy(b),a.push(S)}else{for(var x=!1,E=1/0,T=0,A=0;A=s)}}for(var f=this.__startIndex;f15)break}}W.prevElClipPaths&&m.restore()};if(b)if(b.length===0)D=_.__endIndex;else for(var O=d.dpr,k=0;k0&&t>i[0]){for(l=0;lt);l++);s=r[i[l]]}if(i.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(n.dom,u.nextSibling):a.appendChild(n.dom)}else a.firstChild?a.insertBefore(n.dom,a.firstChild):a.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,i=0;i0?tg:0),this._needsManuallyCompositing),c.__builtin__||Px("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),o=c),i.__dirty&_i&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,p){!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,G(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Kt(r[t],n,!0):r[t]=n;for(var i=0;i{const a=getComputedStyle(n.value),s=getComputedStyle(r.value);let l=a.color,u=a.backgroundColor,c=a.borderColor,f=a.fontFamily,p=s.color,d=s.backgroundColor,g=s.borderBottomColor,y=s.borderTopColor;kt(()=>Ec.value,()=>{const x=getComputedStyle(n.value),E=getComputedStyle(r.value);l=x.color,u=x.backgroundColor,c=x.borderColor,p=E.color,d=E.backgroundColor,g=E.borderBottomColor,y=E.borderTopColor}),kt(()=>Oh.value,()=>{f=getComputedStyle(n.value).fontFamily});const _=Le(()=>({legend:{bottom:0,data:t.data.map(x=>x.name),textStyle:{color:l,fontFamily:f}},grid:{left:60,top:15,right:10,bottom:25},tooltip:{show:!0,trigger:"axis",backgroundColor:u,borderColor:u,confine:!0,textStyle:{color:l,fontFamily:f},formatter:t.toolTipFormatter},xAxis:{type:"category",axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1}},yAxis:{type:"value",splitNumber:4,max:x=>Math.max(x.max,t.min),axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:c}},axisLabel:{align:"left",padding:[0,0,0,-45],formatter:t.labelFormatter,color:l,fontFamily:f}},series:t.data.map((x,E)=>{const T=E===t.data.length-1?p:d,A=E===t.data.length-1?g:y;return{name:x.name,symbol:"none",emphasis:{disabled:!0},data:x.data,areaStyle:{color:A},type:"line",color:T,smooth:!0}})})),m=sae(o.value);m.setOption(_.value),kt(_,()=>{i.value||m==null||m.setOption(_.value)});const{width:b}=u9(o),S=ea.debounce(()=>{m.resize()},100);kt(()=>b.value,()=>{S()})}),(a,s)=>(X(),ae("div",Nle,[F("div",{ref_key:"chart",ref:o,class:"h-full w-full"},null,512),F("span",{class:"hidden border-base-content/10 bg-base-100/70 text-base-content",ref_key:"baseColorRef",ref:n},null,512),F("span",{class:"hidden border-b-primary/10 border-t-info/10 bg-info text-primary",ref_key:"themeColorRef",ref:r},null,512),F("button",{class:"btn btn-ghost btn-xs absolute bottom-0 right-1",onClick:s[0]||(s[0]=l=>i.value=!i.value)},[(X(),_t(Ua(i.value?$(U6):$(H6)),{class:"h-4 w-4"}))])]))}}),f3=lt({__name:"SpeedCharts",setup(e){const{t}=Ga(),n=Le(()=>[{name:t("ulSpeed"),data:vh.value},{name:t("dlSpeed"),data:ph.value}]),r=o=>`${mn(o,{maximumFractionDigits:1,binary:!1})}/s`,i=o=>o.map(a=>ck(a,{binary:!1,suffix:"/s"})).join("");return(o,a)=>(X(),_t(OC,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1e3},null,8,["data"]))}}),Fle={class:"card mx-1 flex flex-col gap-4 py-2 text-xs"},$le={class:"flex flex-col items-center justify-center"},Ble={class:"flex flex-col items-center justify-center"},Vle={class:"flex flex-col items-center justify-center"},Hle={class:"flex flex-col items-center justify-center"},Ule={class:"flex flex-col items-center justify-center"},zle=lt({__name:"VerticalInfos",setup(e){return(t,n)=>(X(),ae("div",Fle,[F("div",$le,[Se($(ZL),{class:"h-4 w-4"}),ut(" "+de($(mo).length),1)]),F("div",Ble,[Se($(qL),{class:"h-4 w-4"}),ut(" "+de($(mn)($(dm)))+" ",1),F("span",null,de($(mn)($(bx)))+"/s ",1)]),F("div",Vle,[Se($(KL),{class:"h-4 w-4"}),ut(" "+de($(mn)($(pm)))+" ",1),F("span",null,de($(mn)($(Sx)))+"/s ",1)]),F("div",Hle,[Se($($6),{class:"h-4 w-4"}),ut(" "+de($(mn)($(_x),{binary:!0})),1)]),F("div",Ule,[F("button",{class:"btn btn-circle btn-xs",onClick:n[0]||(n[0]=r=>au.value=!1)},[Se($(k6),{class:"h-5 w-5"})])])]))}}),Gle={class:"drawer-side z-30"},Wle={class:"menu flex-1 pb-0"},Yle=["onClick"],jle={key:0,class:"card"},qle={class:"card"},Xle=lt({__name:"SideBar",setup(e){const t={[Bt.connections]:Ik,[Bt.logs]:Pk,[Bt.proxies]:Fk,[Bt.rules]:Bk},n=Le(()=>r.name?t[r.name]:null),r=jL(),i=Object.values(Bt).filter(o=>o!==Bt.setup);return(o,a)=>(X(),ae("div",Gle,[a[0]||(a[0]=F("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),F("div",{class:ot($(hn)("scrollbar-hidden flex h-full flex-col gap-2 overflow-x-hidden bg-base-200 p-2 text-base-content !transition-all duration-500",$(au)?"w-18 px-0":"w-[21rem]"))},[F("ul",Wle,[(X(!0),ae(Ye,null,Gt($(i),s=>(X(),ae("li",{key:s},[F("a",{class:ot(s===$(r).name?"active":"inactive"),onClick:()=>$(To).push({name:s})},[(X(),_t(Ua($(oO)[s]),{class:"h-5 w-5"})),$(au)?mt("",!0):(X(),ae(Ye,{key:0},[ut(de(o.$t(s)),1)],64))],10,Yle)]))),128))]),$(au)?(X(),_t(zle,{key:0})):(X(),ae(Ye,{key:1},[$(r).name!==$(Bt).settings?(X(),ae("div",jle,[Se(f3)])):mt("",!0),F("div",qle,[n.value?(X(),_t(Ua(n.value),{key:0})):mt("",!0),Se(AZ)])],64))],2)]))}}),_w=Ie(!1),h3=()=>({isUIUpdateAvailable:_w,checkUIUpdate:async()=>{_w.value=await Pq(),_w.value&&vg.value&&nk()}}),Kle={class:"w-128 drawer md:drawer-open"},Zle={class:"drawer-content fixed bottom-0 flex h-full w-full flex-col overflow-hidden bg-base-200/40 md:relative md:w-auto"},Qle={class:"relative h-0 flex-1"},Jle={class:"flex h-12 w-full items-center justify-center gap-1 p-2"},eue={class:"menu menu-horizontal flex flex-1"},tue=["href"],nue={for:"sidebar"},rue={class:"btn btn-circle drawer-button btn-sm bg-neutral text-neutral-content"},iue=lt({__name:"HomePage",setup(e){const t=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,n={[Bt.connections]:Ik,[Bt.logs]:Pk,[Bt.proxies]:Fk,[Bt.rules]:Bk},r=P6(),i=jL(),o=Object.values(Bt).filter(d=>d!==Bt.setup),a=Le(()=>n[i.name]),s=Ie(),{direction:l}=c9(s,{threshold:15}),u=()=>{const d=i.name;return d===Bt.setup?Bt.proxies:o[(o.indexOf(d)+1)%o.length]},c=()=>{const d=i.name;return d===Bt.setup?Bt.proxies:o[(o.indexOf(d)-1+o.length)%o.length]};kt(l,()=>{l.value==="right"?r.push({name:c()}):l.value==="left"&&r.push({name:u()})});const{proxiesTabShow:f}=D0(),{checkUIUpdate:p}=h3();return kt(Si,()=>{Gh.value=zc.RULES,f.value=pu.PROXIES,Lk(),jc(),Sm(),Oq(),bb(),Jq(),p()},{immediate:!0}),(d,g)=>(X(),ae("div",Kle,[g[0]||(g[0]=F("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),Se(Xle),F("div",Zle,[a.value&&$(au)?(X(),_t(Ua(a.value),{key:0,horizontal:!0})):mt("",!0),F("div",Qle,[Se($(JS),{class:"absolute h-full w-full"})]),F("div",{class:ot(`${$(t)?"pb-24":"pb-12"} md:hidden`)},null,2),F("div",{ref_key:"navBarRef",ref:s,class:ot(`fixed bottom-0 z-30 w-full bg-base-200 md:hidden ${$(t)?"h-24 pb-12":"h-12"}`)},[F("div",Jle,[F("ul",eue,[(X(!0),ae(Ye,null,Gt($(o),y=>(X(),ae("li",{key:y,class:"flex-1"},[F("a",{class:ot(["flex items-center justify-center",y===$(i).name?"active":"inactive"]),href:`#${y}`},[(X(),_t(Ua($(oO)[y]),{class:"h-5 w-5"}))],10,tue)]))),128))]),F("label",nue,[F("div",rue,[Se($(N6),{class:"h-4 w-4"})])])])],2)])]))}}),oue={class:"flex flex-col"},aue={key:0,class:"card m-2 flex-row p-2 text-sm"},sue={class:"card mb-1 block p-2 text-sm"},lue={class:"mx-2 text-primary"},uue={class:"ml-2"},cue=lt({__name:"LogsPage",setup(e){const t={[Zl.Error]:"text-error",[Zl.Warning]:"text-warning",[Zl.Info]:"text-info",[Zl.Debug]:"text-accent"},n=Le(()=>_m.value.filter(r=>Dc.value?r.payload.includes(Dc.value)||r.type.includes(Dc.value):!0));return(r,i)=>(X(),ae("div",oue,[n.value.length?mt("",!0):(X(),ae("div",aue,de(r.$t("noContent")),1)),Se(gx,{data:n.value},{default:Gs(({item:o})=>[F("div",sue,[F("span",null,de(o.seq),1),F("span",lue,de($(Zo)(o.time).locale($(Pa)).format("HH:mm:ss")),1),F("span",{class:ot(t[o.type])},de(o.type),3),F("span",uue,de(o.payload),1)])]),_:1},8,["data"])]))}}),d3=e=>{const t=Le({get(){return k_.value[e]},set(i){i?(n.value=!0,Eo(()=>{k_.value[e]=!0})):k_.value[e]=!1}}),n=Ie(t.value);return{showCollapse:t,showContent:n,handlerTransitionEnd:()=>{t.value||(n.value=!1)}}};var qm=function(){return qm=Object.assign||function(e){for(var t,n=1,r=arguments.length;ni.endVal;i.frameVal=s?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),a1?i.options.decimal+f[1]:"",i.options.useGrouping){u="";for(var p=3,d=0,g=0,y=s.length;gwindow.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>o||i>n)&&!t.paused&&t.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(t){var n;if(this.el){var r=this.formattingFn(t);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,r):this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r}},e.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},e.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();const p3=lt({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,n=Ie(),r=Le(()=>M0(t.name));let i=null;tl(()=>{kt(r,(a,s)=>{i?i==null||i.update(a):Eo(()=>{i=new fue(n.value,r.value,{duration:1,separator:"",enableScrollSpy:!1,startVal:s}),i==null||i.update(a)})})}),Wd(()=>{i=null});const o=Le(()=>r.value===Kl?"":r.value(X(),ae("div",{class:ot($(hn)("flex h-4 w-8 items-center justify-center rounded-lg bg-base-100 text-xs",o.value))},[r.value===$(Kl)?(X(),_t($(QL),{key:0,class:"h-3 w-3 text-base-content"})):mt("",!0),It(F("div",{ref_key:"latencyRef",ref:n},de(r.value),513),[[oW,r.value!==$(Kl)]])],2))}});/*! @license DOMPurify 3.2.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.2/LICENSE */const{entries:v3,setPrototypeOf:KI,isFrozen:hue,getPrototypeOf:due,getOwnPropertyDescriptor:pue}=Object;let{freeze:$r,seal:Qi,create:g3}=Object,{apply:TS,construct:ES}=typeof Reflect<"u"&&Reflect;$r||($r=function(t){return t});Qi||(Qi=function(t){return t});TS||(TS=function(t,n,r){return t.apply(n,r)});ES||(ES=function(t,n){return new t(...n)});const ng=Ei(Array.prototype.forEach),ZI=Ei(Array.prototype.pop),ah=Ei(Array.prototype.push),qg=Ei(String.prototype.toLowerCase),ww=Ei(String.prototype.toString),QI=Ei(String.prototype.match),sh=Ei(String.prototype.replace),vue=Ei(String.prototype.indexOf),gue=Ei(String.prototype.trim),ho=Ei(Object.prototype.hasOwnProperty),Er=Ei(RegExp.prototype.test),lh=mue(TypeError);function Ei(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:qg;KI&&KI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(hue(t)||(t[r]=o),i=o)}e[i]=!0}return e}function yue(e){for(let t=0;t/gm),xue=Qi(/\${[\w\W]*}/gm),Cue=Qi(/^data-[\-\w.\u00B7-\uFFFF]/),Tue=Qi(/^aria-[\-\w]+$/),m3=Qi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Eue=Qi(/^(?:\w+script|data):/i),Aue=Qi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),y3=Qi(/^html$/i),Mue=Qi(/^[a-z][.\w]*(-[.\w]+)+$/i);var rP=Object.freeze({__proto__:null,ARIA_ATTR:Tue,ATTR_WHITESPACE:Aue,CUSTOM_ELEMENT:Mue,DATA_ATTR:Cue,DOCTYPE_NAME:y3,ERB_EXPR:Sue,IS_ALLOWED_URI:m3,IS_SCRIPT_OR_DATA:Eue,MUSTACHE_EXPR:bue,TMPLIT_EXPR:xue});const ch={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Rue=function(){return typeof window>"u"?null:window},Due=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},iP=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function _3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rue();const t=Xe=>_3(Xe);if(t.version="3.2.2",t.removed=[],!e||!e.document||e.document.nodeType!==ch.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:d}=e,g=l.prototype,y=uh(g,"cloneNode"),_=uh(g,"remove"),m=uh(g,"nextSibling"),b=uh(g,"childNodes"),S=uh(g,"parentNode");if(typeof a=="function"){const Xe=n.createElement("template");Xe.content&&Xe.content.ownerDocument&&(n=Xe.content.ownerDocument)}let x,E="";const{implementation:T,createNodeIterator:A,createDocumentFragment:D,getElementsByTagName:P}=n,{importNode:O}=r;let k=iP();t.isSupported=typeof v3=="function"&&typeof S=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:te,TMPLIT_EXPR:W,DATA_ATTR:q,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:ie,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:ce}=rP;let{IS_ALLOWED_URI:ye}=rP,we=null;const Ne=Dt({},[...JI,...bw,...Sw,...xw,...eP]);let ke=null;const je=Dt({},[...tP,...Cw,...nP,...rg]);let He=Object.seal(g3(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),We=null,le=null,Te=!0,_e=!0,xe=!1,Ee=!0,De=!1,N=!0,B=!1,ne=!1,me=!1,ue=!1,L=!1,V=!1,Z=!0,oe=!1;const pe="user-content-";let Ce=!0,Y=!1,re={},Me=null;const Be=Dt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ft=null;const bt=Dt({},["audio","video","img","source","image","track"]);let rn=null;const yn=Dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kn="http://www.w3.org/1998/Math/MathML",Rn="http://www.w3.org/2000/svg",Yn="http://www.w3.org/1999/xhtml";let oi=Yn,Nn=!1,Zn=null;const xu=Dt({},[kn,Rn,Yn],ww);let Cu=Dt({},["mi","mo","mn","ms","mtext"]),Tu=Dt({},["annotation-xml"]);const ip=Dt({},["title","style","font","a","script"]);let Ja=null;const sy=["application/xhtml+xml","text/html"],ly="text/html";let Un=null,es=null;const op=n.createElement("form"),ap=function(K){return K instanceof RegExp||K instanceof Function},hf=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(es&&es===K)){if((!K||typeof K!="object")&&(K={}),K=Wl(K),Ja=sy.indexOf(K.PARSER_MEDIA_TYPE)===-1?ly:K.PARSER_MEDIA_TYPE,Un=Ja==="application/xhtml+xml"?ww:qg,we=ho(K,"ALLOWED_TAGS")?Dt({},K.ALLOWED_TAGS,Un):Ne,ke=ho(K,"ALLOWED_ATTR")?Dt({},K.ALLOWED_ATTR,Un):je,Zn=ho(K,"ALLOWED_NAMESPACES")?Dt({},K.ALLOWED_NAMESPACES,ww):xu,rn=ho(K,"ADD_URI_SAFE_ATTR")?Dt(Wl(yn),K.ADD_URI_SAFE_ATTR,Un):yn,ft=ho(K,"ADD_DATA_URI_TAGS")?Dt(Wl(bt),K.ADD_DATA_URI_TAGS,Un):bt,Me=ho(K,"FORBID_CONTENTS")?Dt({},K.FORBID_CONTENTS,Un):Be,We=ho(K,"FORBID_TAGS")?Dt({},K.FORBID_TAGS,Un):{},le=ho(K,"FORBID_ATTR")?Dt({},K.FORBID_ATTR,Un):{},re=ho(K,"USE_PROFILES")?K.USE_PROFILES:!1,Te=K.ALLOW_ARIA_ATTR!==!1,_e=K.ALLOW_DATA_ATTR!==!1,xe=K.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=K.SAFE_FOR_TEMPLATES||!1,N=K.SAFE_FOR_XML!==!1,B=K.WHOLE_DOCUMENT||!1,ue=K.RETURN_DOM||!1,L=K.RETURN_DOM_FRAGMENT||!1,V=K.RETURN_TRUSTED_TYPE||!1,me=K.FORCE_BODY||!1,Z=K.SANITIZE_DOM!==!1,oe=K.SANITIZE_NAMED_PROPS||!1,Ce=K.KEEP_CONTENT!==!1,Y=K.IN_PLACE||!1,ye=K.ALLOWED_URI_REGEXP||m3,oi=K.NAMESPACE||Yn,Cu=K.MATHML_TEXT_INTEGRATION_POINTS||Cu,Tu=K.HTML_INTEGRATION_POINTS||Tu,He=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&ap(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(He.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&ap(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(He.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(He.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(_e=!1),L&&(ue=!0),re&&(we=Dt({},eP),ke=[],re.html===!0&&(Dt(we,JI),Dt(ke,tP)),re.svg===!0&&(Dt(we,bw),Dt(ke,Cw),Dt(ke,rg)),re.svgFilters===!0&&(Dt(we,Sw),Dt(ke,Cw),Dt(ke,rg)),re.mathMl===!0&&(Dt(we,xw),Dt(ke,nP),Dt(ke,rg))),K.ADD_TAGS&&(we===Ne&&(we=Wl(we)),Dt(we,K.ADD_TAGS,Un)),K.ADD_ATTR&&(ke===je&&(ke=Wl(ke)),Dt(ke,K.ADD_ATTR,Un)),K.ADD_URI_SAFE_ATTR&&Dt(rn,K.ADD_URI_SAFE_ATTR,Un),K.FORBID_CONTENTS&&(Me===Be&&(Me=Wl(Me)),Dt(Me,K.FORBID_CONTENTS,Un)),Ce&&(we["#text"]=!0),B&&Dt(we,["html","head","body"]),we.table&&(Dt(we,["tbody"]),delete We.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw lh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw lh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=K.TRUSTED_TYPES_POLICY,E=x.createHTML("")}else x===void 0&&(x=Due(d,i)),x!==null&&typeof E=="string"&&(E=x.createHTML(""));$r&&$r(K),es=K}},sp=Dt({},[...bw,...Sw,..._ue]),Eu=Dt({},[...xw,...wue]),uy=function(K){let Ae=S(K);(!Ae||!Ae.tagName)&&(Ae={namespaceURI:oi,tagName:"template"});const Ue=qg(K.tagName),Jt=qg(Ae.tagName);return Zn[K.namespaceURI]?K.namespaceURI===Rn?Ae.namespaceURI===Yn?Ue==="svg":Ae.namespaceURI===kn?Ue==="svg"&&(Jt==="annotation-xml"||Cu[Jt]):!!sp[Ue]:K.namespaceURI===kn?Ae.namespaceURI===Yn?Ue==="math":Ae.namespaceURI===Rn?Ue==="math"&&Tu[Jt]:!!Eu[Ue]:K.namespaceURI===Yn?Ae.namespaceURI===Rn&&!Tu[Jt]||Ae.namespaceURI===kn&&!Cu[Jt]?!1:!Eu[Ue]&&(ip[Ue]||!sp[Ue]):!!(Ja==="application/xhtml+xml"&&Zn[K.namespaceURI]):!1},Br=function(K){ah(t.removed,{element:K});try{S(K).removeChild(K)}catch{_(K)}},Au=function(K,Ae){try{ah(t.removed,{attribute:Ae.getAttributeNode(K),from:Ae})}catch{ah(t.removed,{attribute:null,from:Ae})}if(Ae.removeAttribute(K),K==="is")if(ue||L)try{Br(Ae)}catch{}else try{Ae.setAttribute(K,"")}catch{}},lp=function(K){let Ae=null,Ue=null;if(me)K=""+K;else{const Dn=QI(K,/^[\r\n\t ]+/);Ue=Dn&&Dn[0]}Ja==="application/xhtml+xml"&&oi===Yn&&(K=''+K+"");const Jt=x?x.createHTML(K):K;if(oi===Yn)try{Ae=new p().parseFromString(Jt,Ja)}catch{}if(!Ae||!Ae.documentElement){Ae=T.createDocument(oi,"template",null);try{Ae.documentElement.innerHTML=Nn?E:Jt}catch{}}const Qn=Ae.body||Ae.documentElement;return K&&Ue&&Qn.insertBefore(n.createTextNode(Ue),Qn.childNodes[0]||null),oi===Yn?P.call(Ae,B?"html":"body")[0]:B?Ae.documentElement:Qn},up=function(K){return A.call(K.ownerDocument||K,K,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},cp=function(K){return K instanceof f&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof c)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},fp=function(K){return typeof s=="function"&&K instanceof s};function eo(Xe,K,Ae){ng(Xe,Ue=>{Ue.call(t,K,Ae,es)})}const hp=function(K){let Ae=null;if(eo(k.beforeSanitizeElements,K,null),cp(K))return Br(K),!0;const Ue=Un(K.nodeName);if(eo(k.uponSanitizeElement,K,{tagName:Ue,allowedTags:we}),K.hasChildNodes()&&!fp(K.firstElementChild)&&Er(/<[/\w]/g,K.innerHTML)&&Er(/<[/\w]/g,K.textContent)||K.nodeType===ch.progressingInstruction||N&&K.nodeType===ch.comment&&Er(/<[/\w]/g,K.data))return Br(K),!0;if(!we[Ue]||We[Ue]){if(!We[Ue]&&df(Ue)&&(He.tagNameCheck instanceof RegExp&&Er(He.tagNameCheck,Ue)||He.tagNameCheck instanceof Function&&He.tagNameCheck(Ue)))return!1;if(Ce&&!Me[Ue]){const Jt=S(K)||K.parentNode,Qn=b(K)||K.childNodes;if(Qn&&Jt){const Dn=Qn.length;for(let fr=Dn-1;fr>=0;--fr){const Ai=y(Qn[fr],!0);Ai.__removalCount=(K.__removalCount||0)+1,Jt.insertBefore(Ai,m(K))}}}return Br(K),!0}return K instanceof l&&!uy(K)||(Ue==="noscript"||Ue==="noembed"||Ue==="noframes")&&Er(/<\/no(script|embed|frames)/i,K.innerHTML)?(Br(K),!0):(De&&K.nodeType===ch.text&&(Ae=K.textContent,ng([H,te,W],Jt=>{Ae=sh(Ae,Jt," ")}),K.textContent!==Ae&&(ah(t.removed,{element:K.cloneNode()}),K.textContent=Ae)),eo(k.afterSanitizeElements,K,null),!1)},dp=function(K,Ae,Ue){if(Z&&(Ae==="id"||Ae==="name")&&(Ue in n||Ue in op))return!1;if(!(_e&&!le[Ae]&&Er(q,Ae))){if(!(Te&&Er(j,Ae))){if(!ke[Ae]||le[Ae]){if(!(df(K)&&(He.tagNameCheck instanceof RegExp&&Er(He.tagNameCheck,K)||He.tagNameCheck instanceof Function&&He.tagNameCheck(K))&&(He.attributeNameCheck instanceof RegExp&&Er(He.attributeNameCheck,Ae)||He.attributeNameCheck instanceof Function&&He.attributeNameCheck(Ae))||Ae==="is"&&He.allowCustomizedBuiltInElements&&(He.tagNameCheck instanceof RegExp&&Er(He.tagNameCheck,Ue)||He.tagNameCheck instanceof Function&&He.tagNameCheck(Ue))))return!1}else if(!rn[Ae]){if(!Er(ye,sh(Ue,J,""))){if(!((Ae==="src"||Ae==="xlink:href"||Ae==="href")&&K!=="script"&&vue(Ue,"data:")===0&&ft[K])){if(!(xe&&!Er(ie,sh(Ue,J,"")))){if(Ue)return!1}}}}}}return!0},df=function(K){return K!=="annotation-xml"&&QI(K,ce)},pp=function(K){eo(k.beforeSanitizeAttributes,K,null);const{attributes:Ae}=K;if(!Ae)return;const Ue={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let Jt=Ae.length;for(;Jt--;){const Qn=Ae[Jt],{name:Dn,namespaceURI:fr,value:Ai}=Qn,al=Un(Dn);let Jn=Dn==="value"?Ai:gue(Ai);if(Ue.attrName=al,Ue.attrValue=Jn,Ue.keepAttr=!0,Ue.forceKeepAttr=void 0,eo(k.uponSanitizeAttribute,K,Ue),Jn=Ue.attrValue,oe&&(al==="id"||al==="name")&&(Au(Dn,K),Jn=pe+Jn),N&&Er(/((--!?|])>)|<\/(style|title)/i,Jn)){Au(Dn,K);continue}if(Ue.forceKeepAttr||(Au(Dn,K),!Ue.keepAttr))continue;if(!Ee&&Er(/\/>/i,Jn)){Au(Dn,K);continue}De&&ng([H,te,W],vf=>{Jn=sh(Jn,vf," ")});const pf=Un(K.nodeName);if(dp(pf,al,Jn)){if(x&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!fr)switch(d.getAttributeType(pf,al)){case"TrustedHTML":{Jn=x.createHTML(Jn);break}case"TrustedScriptURL":{Jn=x.createScriptURL(Jn);break}}try{fr?K.setAttributeNS(fr,Dn,Jn):K.setAttribute(Dn,Jn),cp(K)?Br(K):ZI(t.removed)}catch{}}}eo(k.afterSanitizeAttributes,K,null)},cy=function Xe(K){let Ae=null;const Ue=up(K);for(eo(k.beforeSanitizeShadowDOM,K,null);Ae=Ue.nextNode();)eo(k.uponSanitizeShadowNode,Ae,null),!hp(Ae)&&(Ae.content instanceof o&&Xe(Ae.content),pp(Ae));eo(k.afterSanitizeShadowDOM,K,null)};return t.sanitize=function(Xe){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ae=null,Ue=null,Jt=null,Qn=null;if(Nn=!Xe,Nn&&(Xe=""),typeof Xe!="string"&&!fp(Xe))if(typeof Xe.toString=="function"){if(Xe=Xe.toString(),typeof Xe!="string")throw lh("dirty is not a string, aborting")}else throw lh("toString is not a function");if(!t.isSupported)return Xe;if(ne||hf(K),t.removed=[],typeof Xe=="string"&&(Y=!1),Y){if(Xe.nodeName){const Ai=Un(Xe.nodeName);if(!we[Ai]||We[Ai])throw lh("root node is forbidden and cannot be sanitized in-place")}}else if(Xe instanceof s)Ae=lp(""),Ue=Ae.ownerDocument.importNode(Xe,!0),Ue.nodeType===ch.element&&Ue.nodeName==="BODY"||Ue.nodeName==="HTML"?Ae=Ue:Ae.appendChild(Ue);else{if(!ue&&!De&&!B&&Xe.indexOf("<")===-1)return x&&V?x.createHTML(Xe):Xe;if(Ae=lp(Xe),!Ae)return ue?null:V?E:""}Ae&&me&&Br(Ae.firstChild);const Dn=up(Y?Xe:Ae);for(;Jt=Dn.nextNode();)hp(Jt)||(Jt.content instanceof o&&cy(Jt.content),pp(Jt));if(Y)return Xe;if(ue){if(L)for(Qn=D.call(Ae.ownerDocument);Ae.firstChild;)Qn.appendChild(Ae.firstChild);else Qn=Ae;return(ke.shadowroot||ke.shadowrootmode)&&(Qn=O.call(r,Qn,!0)),Qn}let fr=B?Ae.outerHTML:Ae.innerHTML;return B&&we["!doctype"]&&Ae.ownerDocument&&Ae.ownerDocument.doctype&&Ae.ownerDocument.doctype.name&&Er(y3,Ae.ownerDocument.doctype.name)&&(fr=" +`+fr),De&&ng([H,te,W],Ai=>{fr=sh(fr,Ai," ")}),x&&V?x.createHTML(fr):fr},t.setConfig=function(){let Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};hf(Xe),ne=!0},t.clearConfig=function(){es=null,ne=!1},t.isValidAttribute=function(Xe,K,Ae){es||hf({});const Ue=Un(Xe),Jt=Un(K);return dp(Ue,Jt,Ae)},t.addHook=function(Xe,K){typeof K=="function"&&ah(k[Xe],K)},t.removeHook=function(Xe){return ZI(k[Xe])},t.removeHooks=function(Xe){k[Xe]=[]},t.removeAllHooks=function(){k=iP()},t}var Iue=_3();const Pue=["innerHTML"],Lue=["src"],oP="data:image/svg+xml,",w3=lt({__name:"ProxyIcon",props:{icon:{},fill:{}},setup(e){const t=e,n=Le(()=>t.icon.startsWith(oP)),r=Le(()=>{if(n.value)return Iue.sanitize(t.icon.replace(oP,""))});return(i,o)=>n.value?(X(),ae("div",{key:0,class:ot(["h-5 w-5",i.fill||"fill-primary"]),innerHTML:r.value},null,10,Pue)):(X(),ae("img",{key:1,class:"w-5",src:i.icon},null,8,Lue))}}),Oue=["data-tip"],kue=lt({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,n=Ie(null),r=Ie(!1),i=()=>{if(n.value){const{scrollWidth:f,clientWidth:p}=n.value;r.value=f>p}},o=Le(()=>Wa.value[t.name]),a=Ie(!1),s=f=>(f=f.toLowerCase(),f=f.replace("shadowsocks","ss"),f=f.replace("hysteria","hy"),f=f.replace("wireguard","wg"),f),l=Le(()=>{const f=s(o.value.type);return o.value.udp?`${f} | udp`:f}),u=Le(()=>oX.value&&$h.value),c=async()=>{if(!a.value){a.value=!0;try{await Kq(t.name),a.value=!1}catch{a.value=!1}}};return(f,p)=>(X(),ae("div",{ref:"cardRef",class:ot($(hn)("relative flex min-h-9 cursor-pointer flex-wrap items-center justify-end gap-1 rounded-md bg-base-200 p-2",f.active?"bg-primary text-primary-content":"sm:hover:bg-base-300",r.value&&"tooltip tooltip-bottom")),"data-tip":o.value.name,onMouseenter:i},[o.value.icon?(X(),_t(w3,{key:0,icon:o.value.icon,fill:f.active?"fill-primary-content":"fill-base-content"},null,8,["icon","fill"])):mt("",!0),F("div",{class:ot($(hn)("flex-1 whitespace-nowrap text-xs md:text-sm",$(Bh)&&"truncate",u.value&&"pr-6")),ref_key:"nameRef",ref:n},de(o.value.name),3),F("span",{class:ot(`text-xs tracking-tight ${u.value?"absolute bottom-0 right-0 scale-75":""}`)},de(l.value),3),Se(p3,{class:ot([a.value?"animate-pulse":"",u.value?"absolute right-2 top-1":""]),name:o.value.name,onClick:KS(c,["stop"])},null,8,["class","name"])],42,Oue))}}),b3=Mx(kue,[["__scopeId","data-v-b674cfe7"]]),Nue=lt({__name:"ProxyNodeGrid",setup(e){const{hasTwoColumns:t}=D0();return(n,r)=>(X(),ae("div",{class:ot($(hn)("grid gap-2",$(Bh)&&"max-h-96 overflow-y-auto",$($h)?"grid-cols-2":"grid-cols-1",$(au)?$(t)?"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-5 2xl:grid-cols-6 3xl:grid-cols-7":$(t)?"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 2xl:grid-cols-5 3xl:grid-cols-6"))},[cL(n.$slots,"default",{},void 0,!0)],2))}}),S3=Mx(Nue,[["__scopeId","data-v-0e9bb0cd"]]),Fue={key:0,class:"flex flex-wrap gap-1 pt-2"},$ue={key:0,class:"h-2 w-2 rounded-full bg-white"},Bue={key:1,class:"flex items-center gap-2 py-2"},Vue={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},x3=lt({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,n=Le(()=>Vh.value===_d.DOTS||Vh.value===_d.AUTO&&t.nodes.length<20),r=Le(()=>t.nodes.map(u=>({latency:M0(u),name:u}))),i=u=>u===Kl?"bg-gray-500":ur.value.filter(u=>u.latencyKl).length),a=Le(()=>r.value.filter(u=>u.latency>=Os.value&&u.latencyr.value.filter(u=>u.latency>=Da.value).length),l=Le(()=>r.value.filter(u=>u.latency===Kl).length);return(u,c)=>n.value?(X(),ae("div",Fue,[(X(!0),ae(Ye,null,Gt(r.value,f=>(X(),ae("div",{key:f.name,class:ot(["flex h-4 w-4 items-center justify-center rounded-full",i(f.latency)])},[u.now===f.name?(X(),ae("div",$ue)):mt("",!0)],2))),128))])):(X(),ae("div",Bue,[F("div",Vue,[F("div",{class:ot(i($(Os)-1)),style:vo({width:`${o.value*100/u.nodes.length}%`})},null,6),F("div",{class:ot(i($(Da)-1)),style:vo({width:`${a.value*100/u.nodes.length}%`})},null,6),F("div",{class:ot(i($(Da)+1)),style:vo({width:`${s.value*100/u.nodes.length}%`})},null,6),F("div",{class:ot(i($(Kl))),style:vo({width:`${l.value*100/u.nodes.length}%`})},null,6)])]))}}),Hue={class:"flex items-center gap-2 pr-6"},Uue={class:"flex flex-1 items-center gap-1"},zue={class:"text-lg font-medium"},Gue={key:1,class:"text-sm"},Wue={class:"flex items-center gap-2 text-xs text-slate-500"},Yue={class:"flex-1"},jue={class:"shrink-0"},que=lt({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,{showCollapse:n,showContent:r,handlerTransitionEnd:i}=d3(t.name),o=Le(()=>Wa.value[t.name]),a=Le(()=>lk(o.value.all??[])),s=Ie(!1),l=async()=>{if(!s.value){s.value=!0;try{await Zq(t.name),s.value=!1}catch{s.value=!1}}},u=Le(()=>mo.value.filter(f=>f.chains.includes(t.name)).reduce((f,p)=>f+p.downloadSpeed,0));return(c,f)=>{var p;return X(),ae("div",{class:ot(`collapse collapse-arrow ${$(n)?"collapse-open":"collapse-close"}`)},[F("div",{class:"collapse-title cursor-pointer pr-4",onClick:f[0]||(f[0]=d=>n.value=!$(n))},[F("div",Hue,[F("div",Uue,[o.value.icon?(X(),_t(w3,{key:0,icon:o.value.icon},null,8,["icon"])):mt("",!0),F("span",zue,de(o.value.name),1),o.value.now?(X(),ae("span",Gue," -> "+de(o.value.now),1)):mt("",!0)]),Se(p3,{class:ot($(hn)("z-10 bg-base-200/40",s.value?"animate-pulse":"")),name:o.value.now,onClick:KS(l,["stop"])},null,8,["class","name"])]),F("div",Wue,[F("div",Yue,de(o.value.type)+" ("+de((p=o.value.all)==null?void 0:p.length)+")",1),F("div",jue,de($(mn)(u.value))+"/s",1)]),$(r)?mt("",!0):(X(),_t(x3,{key:0,nodes:a.value,now:o.value.now},null,8,["nodes","now"]))]),F("div",{class:"collapse-content flex flex-col gap-2 max-sm:px-2",onTransitionend:f[1]||(f[1]=(...d)=>$(i)&&$(i)(...d))},[$(r)?(X(),_t(S3,{key:0},{default:Gs(()=>[(X(!0),ae(Ye,null,Gt(a.value,d=>(X(),_t(b3,{key:d,name:d,active:d===o.value.now,onClick:g=>$(Xq)(o.value.name,d)},null,8,["name","active","onClick"]))),128))]),_:1})):mt("",!0)],32)],2)}}}),Xue={class:"flex items-center gap-2"},Kue={class:"text-lg font-medium sm:text-xl"},Zue={class:"text-sm"},Que={class:"flex gap-2"},Jue=["value"],ece={class:"flex flex-col sm:flex-row sm:gap-4"},tce={class:"text-sm text-slate-500"},nce={class:"text-sm text-slate-500"},rce={class:"text-sm text-slate-500"},ice=lt({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,{showCollapse:n,showContent:r,handlerTransitionEnd:i}=d3(t.name),o=d=>{const{Download:g=0,Upload:y=0,Total:_=0,Expire:m=0}=d,b=mn(_,{binary:!0}),S=mn(g+y,{binary:!0}),x=ea.toFinite(((g+y)/_*100).toFixed(2));return{total:b,used:S,percentage:x,expirePrefix:()=>{const{t:A}=Ga();return A("expire")},expireStr:()=>{const{t:A}=Ga();return m===0?A("noExpire"):Zo(m*1e3).format("YYYY-MM-DD")}}},a=Le(()=>Mc.value.find(d=>d.name===t.name)),s=Le(()=>lk(a.value.proxies.map(d=>d.name))),l=Le(()=>a.value.subscriptionInfo?o(a.value.subscriptionInfo):null),u=Ie(!1),c=Ie(!1),f=async()=>{if(!c.value){c.value=!0;try{await _q(t.name),await jc(),c.value=!1}catch{c.value=!1}}},p=async()=>{if(!u.value){u.value=!0;try{await ek(t.name),await jc(),u.value=!1}catch{u.value=!1}}};return(d,g)=>(X(),ae("div",{class:ot(`collapse collapse-arrow ${$(n)?"collapse-open":"collapse-close"}`)},[F("div",{class:"collapse-title cursor-pointer",onClick:g[0]||(g[0]=y=>n.value=!$(n))},[F("div",Xue,[F("div",Kue,[ut(de(a.value.name)+" ",1),F("span",Zue," ("+de(a.value.proxies.length)+") ",1)]),g[2]||(g[2]=F("div",{class:"flex-1"},null,-1)),F("div",Que,[F("button",{class:ot($(hn)("btn btn-circle btn-xs z-30",c.value?"animate-pulse":"")),onClick:f},[Se($(QL),{class:"h-4 w-4"})],2),F("button",{class:ot($(hn)("btn btn-circle btn-xs z-30",u.value?"animate-spin":"")),onClick:p},[Se($(XL),{class:"h-4 w-4"})],2)])]),l.value?(X(),ae("progress",{key:0,class:"progress",value:l.value.percentage,max:"100"},null,8,Jue)):mt("",!0),F("div",ece,[l.value?(X(),ae(Ye,{key:0},[F("div",tce,de(l.value.used)+" / "+de(l.value.total)+" ( "+de(l.value.percentage)+"% ) ",1),F("div",nce,de(l.value.expirePrefix())+": "+de(l.value.expireStr()),1)],64)):mt("",!0),F("div",rce,de(d.$t("updated"))+" "+de($(R0)(a.value.updatedAt)),1)]),$(r)?mt("",!0):(X(),_t(x3,{key:1,nodes:s.value},null,8,["nodes"]))]),F("div",{class:"collapse-content flex flex-col gap-2 max-sm:px-2",onTransitionend:g[1]||(g[1]=(...y)=>$(i)&&$(i)(...y))},[$(r)?(X(),_t(S3,{key:0},{default:Gs(()=>[(X(!0),ae(Ye,null,Gt(s.value,y=>(X(),_t(b3,{key:y,name:y},null,8,["name"]))),128))]),_:1})):mt("",!0)],32)],2))}}),oce={class:"overflow-y-auto p-2"},ace={key:0,class:"grid grid-cols-2 gap-1"},sce={key:1,class:"grid grid-cols-1 gap-1"},lce=lt({__name:"ProxiesPage",setup(e){const{proxiesTabShow:t,renderGroups:n}=D0(),r=Le(()=>t.value===pu.PROVIDER?ice:que),i=(o,a)=>o.filter((s,l)=>l%2===a);return(o,a)=>(X(),ae("div",oce,[$(sk)&&$(kh)&&$(n).length>1?(X(),ae("div",ace,[(X(),ae(Ye,null,Gt([0,1],s=>F("div",{key:s,class:"flex flex-1 flex-col gap-1"},[(X(!0),ae(Ye,null,Gt(i($(n),s),l=>(X(),_t(Ua(r.value),{key:l,name:l},null,8,["name"]))),128))])),64))])):(X(),ae("div",sce,[(X(!0),ae(Ye,null,Gt($(n),s=>(X(),_t(Ua(r.value),{key:s,name:s},null,8,["name"]))),128))]))]))}}),uce={class:"card mb-1 block p-2 text-sm"},cce={class:"mr-1"},fce={key:0,class:"mr-1"},hce={class:"text-primary"},dce=lt({__name:"RuleCard",props:{rule:{}},setup(e){return(t,n)=>(X(),ae("div",uce,[F("span",cce,de(t.rule.type),1),t.rule.payload?(X(),ae("span",fce,": "+de(t.rule.payload),1)):mt("",!0),n[0]||(n[0]=F("span",{class:"mr-1"},"->",-1)),F("span",hce,de(t.rule.proxy),1)]))}}),pce={class:"card w-full flex-row items-center gap-2 p-1 px-2 text-sm"},vce={class:"flex flex-1 flex-col sm:flex-row"},gce={class:"w-48 flex-1 text-primary"},mce={class:"flex gap-1"},yce=lt({__name:"RuleProvider",props:{ruleProvider:{}},setup(e){const t=Ie(!1),n=e,r=async()=>{t.value||(t.value=!0,await tk(n.ruleProvider.name),Sm(),t.value=!1)};return(i,o)=>(X(),ae("div",pce,[F("div",vce,[F("div",gce,de(i.ruleProvider.name)+" ("+de(i.ruleProvider.ruleCount)+") ",1),F("div",mce,[F("span",null,de(i.ruleProvider.behavior),1),F("span",null,de(i.ruleProvider.vehicleType),1),F("span",null,de(i.$t("updated"))+" "+de($(R0)(i.ruleProvider.updatedAt)),1)])]),F("button",{class:ot($(hn)("btn btn-circle btn-xs",t.value?"animate-spin":"")),onClick:r},[Se($(XL),{class:"h-4 w-4"})],2)]))}}),_ce={key:0,class:"flex flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},wce=lt({__name:"RulesPage",setup(e){return(t,n)=>$(Gh)===$(zc).PROVIDER?(X(),ae("div",_ce,[(X(!0),ae(Ye,null,Gt($(bm),r=>(X(),_t(yce,{key:r.name,ruleProvider:r},null,8,["ruleProvider"]))),128))])):(X(),_t(gx,{key:1,data:$($k)},{default:Gs(({item:r})=>[(X(),_t(dce,{key:r.payload,rule:r},null,8,["rule"]))]),_:1},8,["data"]))}}),bce={class:"join w-96 max-sm:w-full"},Sce={class:"max-h-96 overflow-y-auto"},xce=lt({__name:"DnsQuery",setup(e){const t=xo({name:"www.google.com",type:"A"}),n=Ie([]),r=async()=>{const{data:i}=await Aq(t);n.value=i.Answer};return(i,o)=>(X(),ae(Ye,null,[F("div",bce,[Se(Ax,{modelValue:t.name,"onUpdate:modelValue":o[0]||(o[0]=a=>t.name=a),type:"text",name:"name",placeholder:"Domain Name"},null,8,["modelValue"]),It(F("select",{"onUpdate:modelValue":o[1]||(o[1]=a=>t.type=a),class:"join-item select select-bordered select-sm"},o[2]||(o[2]=[F("option",{value:"A"},"A",-1),F("option",{value:"AAAA"},"AAAA",-1),F("option",{value:"MX"},"MX",-1)]),512),[[wo,t.type]]),F("button",{class:"btn join-item btn-sm",onClick:r},de(i.$t("DNSQuery")),1)]),F("div",Sce,[(X(!0),ae(Ye,null,Gt(n.value,a=>(X(),ae("div",{class:"flex gap-1",key:a.data},[F("div",null,de(a.name),1),o[3]||(o[3]=ut(" : ")),F("div",null,de(a.data),1)]))),128))])],64))}}),Cce={class:"flex items-center gap-2"},Tce=["value","label"],C3=lt({__name:"LanguageSelect",setup(e){const t={[$a.EN_US]:"English",[$a.ZH_CN]:"简体中文"};return(n,r)=>(X(),ae("div",Cce,[ut(de(n.$t("language"))+": ",1),It(F("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":r[0]||(r[0]=i=>Qe(Pa)?Pa.value=i:null),onChange:r[1]||(r[1]=()=>$(fx).global.locale=$(Pa))},[(X(!0),ae(Ye,null,Gt(Object.values($($a)),i=>(X(),ae("option",{key:i,value:i,label:t[i]||i},null,8,Tce))),128))],544),[[wo,$(Pa)]])]))}}),Ece={class:"flex flex-col gap-2 p-2"},Ace=["onUpdate:modelValue"],Mce=["onClick"],Rce={class:"flex w-full items-center gap-2"},Dce=lt({__name:"SourceIPLabels",setup(e){const t=Le(()=>Object.keys(mi.value)),n=xo({ip:"",label:""}),r=()=>{mi.value[n.ip]=n.label,n.ip="",n.label=""},i=o=>{Reflect.deleteProperty(mi.value,o),mi.value={...mi.value}};return(o,a)=>(X(),ae(Ye,null,[F("div",null,de(o.$t("sourceIPLabels"))+":",1),F("div",Ece,[(X(!0),ae(Ye,null,Gt(t.value,s=>(X(),ae("div",{key:s,class:"flex items-center gap-2"},[ut(de(s)+" -> ",1),It(F("input",{type:"text",class:"input input-xs input-bordered w-24","onUpdate:modelValue":l=>$(mi)[s]=l},null,8,Ace),[[Kr,$(mi)[s]]]),F("button",{class:"btn btn-circle btn-xs",onClick:()=>i(s)},[Se($(eO),{class:"h-4 w-4"})],8,Mce)]))),128)),F("div",Rce,[a[2]||(a[2]=ut(" IP: ")),It(F("input",{type:"text",class:"input input-xs input-bordered w-44","onUpdate:modelValue":a[0]||(a[0]=s=>n.ip=s)},null,512),[[Kr,n.ip]]),It(F("input",{type:"text",class:"input input-xs input-bordered w-20","onUpdate:modelValue":a[1]||(a[1]=s=>n.label=s)},null,512),[[Kr,n.label]]),F("button",{class:"btn btn-circle btn-xs",onClick:r},[Se($(rO),{class:"h-4 w-4"})])])])],64))}});var Ice=Object.defineProperty,Xm=Object.getOwnPropertySymbols,T3=Object.prototype.hasOwnProperty,E3=Object.prototype.propertyIsEnumerable,aP=(e,t,n)=>t in e?Ice(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mc=(e,t)=>{for(var n in t||(t={}))T3.call(t,n)&&aP(e,n,t[n]);if(Xm)for(var n of Xm(t))E3.call(t,n)&&aP(e,n,t[n]);return e},A3=(e,t)=>{var n={};for(var r in e)T3.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Xm)for(var r of Xm(e))t.indexOf(r)<0&&E3.call(e,r)&&(n[r]=e[r]);return n};const M3="[vue-draggable-plus]: ";function Pce(e){console.warn(M3+e)}function Lce(e){console.error(M3+e)}function sP(e,t,n){return n>=0&&nn?n.toUpperCase():"")}function kce(e){return Object.keys(e).reduce((t,n)=>(typeof e[n]<"u"&&(t[Oce(n)]=e[n]),t),{})}function lP(e,t){return Array.isArray(e)&&e.splice(t,1),e}function uP(e,t,n){return Array.isArray(e)&&e.splice(t,0,n),e}function Nce(e){return typeof e>"u"}function Fce(e){return typeof e=="string"}function cP(e,t,n){const r=e.children[n];e.insertBefore(t,r)}function Tw(e){e.parentNode&&e.parentNode.removeChild(e)}function $ce(e,t=document){var n;let r=null;return typeof(t==null?void 0:t.querySelector)=="function"?r=(n=t==null?void 0:t.querySelector)==null?void 0:n.call(t,e):r=document.querySelector(e),r||Pce(`Element not found: ${e}`),r}function Bce(e,t,n=null){return function(...r){return e.apply(n,r),t.apply(n,r)}}function Vce(e,t){const n=mc({},e);return Object.keys(t).forEach(r=>{n[r]?n[r]=Bce(e[r],t[r]):n[r]=t[r]}),n}function Hce(e){return e instanceof HTMLElement}function fP(e,t){Object.keys(e).forEach(n=>{t(n,e[n])})}function Uce(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}const zce=Object.assign;/**! * Sortable 1.15.2 * @author RubaXa * @author owenm * @license MIT - */function dP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function qce(e,t){if(e==null)return{};var n=jce(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var Xce="1.15.2";function Ha(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Qa=Ha(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),tp=Ha(/Edge/i),pP=Ha(/firefox/i),od=Ha(/safari/i)&&!Ha(/chrome/i)&&!Ha(/android/i),R3=Ha(/iP(ad|od|hone)/i),D3=Ha(/chrome/i)&&Ha(/android/i),I3={capture:!1,passive:!1};function Ut(e,t,n){e.addEventListener(t,n,!Qa&&I3)}function Ft(e,t,n){e.removeEventListener(t,n,!Qa&&I3)}function Xm(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 Kce(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function po(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Xm(e,t):Xm(e,t))||r&&e===n)return e;if(e===n)break}while(e=Kce(e))}return null}var vP=/\s+/g;function di(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(vP," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(vP," ")}}function at(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function $c(e,t){var n="";if(typeof e=="string")n=e;else do{var r=at(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function P3(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i=o,!a)return r;if(r===Ko())break;r=$s(r,!1)}return!1}function Jc(e,t,n,r){for(var i=0,o=0,a=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=qce(n,ife);np.pluginEvent.bind(st)(e,t,ra({dragEl:Re,parentEl:Pn,ghostEl:dt,rootEl:xn,nextEl:Yl,lastDownEl:Xg,cloneEl:An,cloneHidden:Ps,dragStarted:Ch,putSortable:sr,activeSortable:st.active,originalEvent:r,oldIndex:yc,oldDraggableIndex:sd,newIndex:gi,newDraggableIndex:Ms,hideGhostForTarget:V3,unhideGhostForTarget:H3,cloneNowHidden:function(){Ps=!0},cloneNowShown:function(){Ps=!1},dispatchSortableEvent:function(o){Rr({sortable:t,name:o,originalEvent:r})}},i))};function Rr(e){rfe(ra({putSortable:sr,cloneEl:An,targetEl:Re,rootEl:xn,oldIndex:yc,oldDraggableIndex:sd,newIndex:gi,newDraggableIndex:Ms},e))}var Re,Pn,dt,xn,Yl,Xg,An,Ps,yc,gi,sd,Ms,rg,sr,fc=!1,Km=!1,Zm=[],Vl,lo,Mw,Rw,yP,_P,Ch,oc,ld,ud=!1,ig=!1,Kg,mr,Dw=[],AS=!1,Qm=[],ay=typeof document<"u",og=R3,wP=tp||Qa?"cssFloat":"float",ofe=ay&&!D3&&!R3&&"draggable"in document.createElement("div"),F3=function(){if(ay){if(Qa)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),$3=function(e,t){var n=at(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Jc(e,0,t),o=Jc(e,1,t),a=i&&at(i),s=o&&at(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Gn(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Gn(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&a.float!=="none"){var c=a.float==="left"?"left":"right";return o&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=r&&n[wP]==="none"||o&&n[wP]==="none"&&l+u>r)?"vertical":"horizontal"},afe=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2},sfe=function(e,t){var n;return Zm.some(function(r){var i=r[bi].options.emptyInsertThreshold;if(!(!i||NC(r))){var o=Gn(r),a=e>=o.left-i&&e<=o.right+i,s=t>=o.top-i&&t<=o.bottom+i;if(a&&s)return n=r}}),n},B3=function(e){function t(i,o){return function(a,s,l,u){var c=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(i==null&&(o||c))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return t(i(a,s,l,u),o)(a,s,l,u);var f=(o?a:s).options.group.name;return i===!0||typeof i=="string"&&i===f||i.join&&i.indexOf(f)>-1}}var n={},r=e.group;(!r||qg(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},V3=function(){!F3&&dt&&at(dt,"display","none")},H3=function(){!F3&&dt&&at(dt,"display","")};ay&&!D3&&document.addEventListener("click",function(e){if(Km)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Km=!1,!1},!0);var Hl=function(e){if(Re){e=e.touches?e.touches[0]:e;var t=sfe(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[bi]._onDragOver(n)}}},lfe=function(e){Re&&Re.parentNode[bi]._isOutsideThisEl(e.target)};function st(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=qa({},t),e[bi]=this;var n={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 $3(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(o,a){o.setData("Text",a.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:st.supportPointer!==!1&&"PointerEvent"in window&&!od,emptyInsertThreshold:5};np.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);B3(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:ofe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Ut(e,"pointerdown",this._onTapStart):(Ut(e,"mousedown",this._onTapStart),Ut(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ut(e,"dragover",this),Ut(e,"dragenter",this)),Zm.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),qa(this,efe())}st.prototype={constructor:st,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(oc=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,Re):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(gfe(n),!Re&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||r.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&od&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=po(s,r.draggable,n,!1),!(s&&s.animated)&&Xg!==s)){if(yc=Ui(s),sd=Ui(s,r.draggable),typeof u=="function"){if(u.call(this,e,s,this)){Rr({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Yr("filter",t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=po(l,c.trim(),n,!1),c)return Rr({sortable:t,rootEl:c,name:"filter",targetEl:s,fromEl:n,toEl:n}),Yr("filter",t,{evt:e}),!0}),u)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!po(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,o=r.options,a=i.ownerDocument,s;if(n&&!Re&&n.parentNode===i){var l=Gn(n);if(xn=i,Re=n,Pn=Re.parentNode,Yl=Re.nextSibling,Xg=n,rg=o.group,st.dragged=Re,Vl={target:Re,clientX:(t||e).clientX,clientY:(t||e).clientY},yP=Vl.clientX-l.left,_P=Vl.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Re.style["will-change"]="all",s=function(){if(Yr("delayEnded",r,{evt:e}),st.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!pP&&r.nativeDraggable&&(Re.draggable=!0),r._triggerDragStart(e,t),Rr({sortable:r,name:"choose",originalEvent:e}),di(Re,o.chosenClass,!0)},o.ignore.split(",").forEach(function(u){P3(Re,u.trim(),Iw)}),Ut(a,"dragover",Hl),Ut(a,"mousemove",Hl),Ut(a,"touchmove",Hl),Ut(a,"mouseup",r._onDrop),Ut(a,"touchend",r._onDrop),Ut(a,"touchcancel",r._onDrop),pP&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Re.draggable=!0),Yr("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(tp||Qa))){if(st.eventCanceled){this._onDrop();return}Ut(a,"mouseup",r._disableDelayedDrag),Ut(a,"touchend",r._disableDelayedDrag),Ut(a,"touchcancel",r._disableDelayedDrag),Ut(a,"mousemove",r._delayedDragTouchMoveHandler),Ut(a,"touchmove",r._delayedDragTouchMoveHandler),o.supportPointer&&Ut(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,o.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(){Re&&Iw(Re),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ft(e,"mouseup",this._disableDelayedDrag),Ft(e,"touchend",this._disableDelayedDrag),Ft(e,"touchcancel",this._disableDelayedDrag),Ft(e,"mousemove",this._delayedDragTouchMoveHandler),Ft(e,"touchmove",this._delayedDragTouchMoveHandler),Ft(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?Ut(document,"pointermove",this._onTouchMove):t?Ut(document,"touchmove",this._onTouchMove):Ut(document,"mousemove",this._onTouchMove):(Ut(Re,"dragend",this),Ut(xn,"dragstart",this._onDragStart));try{document.selection?Zg(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(fc=!1,xn&&Re){Yr("dragStarted",this,{evt:t}),this.nativeDraggable&&Ut(document,"dragover",lfe);var n=this.options;!e&&di(Re,n.dragClass,!1),di(Re,n.ghostClass,!0),st.active=this,e&&this._appendGhost(),Rr({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(lo){this._lastX=lo.clientX,this._lastY=lo.clientY,V3();for(var e=document.elementFromPoint(lo.clientX,lo.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(lo.clientX,lo.clientY),e!==t);)t=e;if(Re.parentNode[bi]._isOutsideThisEl(e),t)do{if(t[bi]){var n=void 0;if(n=t[bi]._onDragOver({clientX:lo.clientX,clientY:lo.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);H3()}},_onTouchMove:function(e){if(Vl){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=dt&&$c(dt,!0),a=dt&&o&&o.a,s=dt&&o&&o.d,l=og&&mr&&mP(mr),u=(i.clientX-Vl.clientX+r.x)/(a||1)+(l?l[0]-Dw[0]:0)/(a||1),c=(i.clientY-Vl.clientY+r.y)/(s||1)+(l?l[1]-Dw[1]:0)/(s||1);if(!st.active&&!fc){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(Rr({rootEl:Pn,name:"add",toEl:Pn,fromEl:xn,originalEvent:e}),Rr({sortable:this,name:"remove",toEl:Pn,originalEvent:e}),Rr({rootEl:Pn,name:"sort",toEl:Pn,fromEl:xn,originalEvent:e}),Rr({sortable:this,name:"sort",toEl:Pn,originalEvent:e})),sr&&sr.save()):gi!==yc&&gi>=0&&(Rr({sortable:this,name:"update",toEl:Pn,originalEvent:e}),Rr({sortable:this,name:"sort",toEl:Pn,originalEvent:e})),st.active&&((gi==null||gi===-1)&&(gi=yc,Ms=sd),Rr({sortable:this,name:"end",toEl:Pn,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Yr("nulling",this),xn=Re=Pn=dt=Yl=An=Xg=Ps=Vl=lo=Ch=gi=Ms=yc=sd=oc=ld=sr=rg=st.dragged=st.ghost=st.clone=st.active=null,Qm.forEach(function(e){e.checked=!0}),Qm.length=Mw=Rw=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Re&&(this._onDragOver(e),ufe(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,o=this.options;ri.right+o||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+o||e.clientX>r.right&&e.clientY>r.top}function dfe(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,p=!1;if(!a){if(s&&Kgc+u*o/2:lf-Kg)return-ld}else if(l>c+u*(1-i)/2&&lf-u*o/2)?l>c+u/2?1:-1:0}function pfe(e){return Ui(Re){if(q&&(i==null?void 0:i.length)!==H.childNodes.length)return k.insertBefore(q,j.nextSibling),!0;const J=H.childNodes[ie];q=H==null?void 0:H.replaceChild(j,J)})}}catch(q){te=q}finally{i=null}Eo(()=>{if(SP(),te)throw te})}const m={onUpdate:y,onStart:p,onAdd:d,onRemove:g,onEnd:_};function b(D){const P=$(o);return D||(D=Bce(P)?Vce(P,r==null?void 0:r.$el):P),D&&!zce(D)&&(D=D.$el),D||kce("Root element not found"),D}function S(){var D;const P=(D=$(s))!=null?D:{},O=A3(P,["immediate","clone"]);return hP(O,(k,H)=>{Gce(k)&&(O[k]=(te,...W)=>{const q=bfe();return Wce(te,q),H(te,...W)})}),Uce(a===null?{}:m,O)}const x=D=>{D=b(D),l&&E.destroy(),l=new st(D,S())};kt(()=>s,()=>{l&&hP(S(),(D,P)=>{l==null||l.option(D,P)})},{deep:!0});const E={option:(D,P)=>l==null?void 0:l.option(D,P),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)},T=()=>E==null?void 0:E.option("disabled",!0),A=()=>E==null?void 0:E.option("disabled",!1);return wfe(()=>{u&&x()}),_fe(E.destroy),mc({start:x,pause:T,resume:A},E)}const IS=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],xfe=["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",...IS.map(e=>`on${e.replace(/^\S/,t=>t.toUpperCase())}`)],CP=lt({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:xfe,emits:["update:modelValue",...IS],setup(e,{slots:t,emit:n,expose:r,attrs:i}){const o=IS.reduce((c,f)=>{const p=`on${f.replace(/^\S/,d=>d.toUpperCase())}`;return c[p]=(...d)=>n(f,...d),c},{}),a=Le(()=>{const c=H8(e),f=A3(c,["modelValue"]),p=Object.entries(f).reduce((d,[g,y])=>{const _=$(y);return _!==void 0&&(d[g]=_),d},{});return mc(mc({},o),Fce(mc(mc({},i),p)))}),s=Le({get:()=>e.modelValue,set:c=>n("update:modelValue",c)}),l=Ie(),u=xo(Sfe(e.target||l,s,a));return r(u),()=>{var c;return zo(e.tag||"div",{ref:l},(c=t==null?void 0:t.default)==null?void 0:c.call(t,u))}}}),Cfe={class:"flex rounded lg:flex-col"},Tfe=lt({__name:"TableSettings",setup(e){const t=Ie(Object.values($t).filter(n=>!jl.value.includes(n)));return(n,r)=>(X(),ae(Ye,null,[N("div",null,de(n.$t("customTableColumns"))+":",1),N("div",Cfe,[Se($(CP),{class:"flex flex-1 flex-col gap-2 bg-base-200 p-2 lg:flex-row",modelValue:$(jl),"onUpdate:modelValue":r[0]||(r[0]=i=>Ze(jl)?jl.value=i:null),animation:150,group:"list",ghostClass:"ghost"},{default:Gs(()=>[(X(!0),ae(Ye,null,Gt($(jl),i=>(X(),ae("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},de(n.$t(i)),1))),128))]),_:1},8,["modelValue"]),Se($(CP),{class:"flex flex-1 flex-col gap-2 p-2 lg:flex-row",modelValue:t.value,"onUpdate:modelValue":r[1]||(r[1]=i=>t.value=i),animation:150,group:"list",ghostClass:"ghost"},{default:Gs(()=>[(X(!0),ae(Ye,null,Gt(t.value,i=>(X(),ae("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},de(n.$t(i)),1))),128))]),_:1},8,["modelValue"])])],64))}}),Efe=lt({__name:"ConnectionsCharts",setup(e){const{t}=Ga(),n=Le(()=>[{name:t("connections"),data:Dg.value}]),r=o=>` ${o}`,i=o=>o.map(a=>{if(!(a.data.name=0)&&(n[i]=e[i]);return n}function Yce(e,t){if(e==null)return{};var n=Wce(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var jce="1.15.2";function Ha(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Qa=Ha(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),np=Ha(/Edge/i),dP=Ha(/firefox/i),od=Ha(/safari/i)&&!Ha(/chrome/i)&&!Ha(/android/i),R3=Ha(/iP(ad|od|hone)/i),D3=Ha(/chrome/i)&&Ha(/android/i),I3={capture:!1,passive:!1};function Ut(e,t,n){e.addEventListener(t,n,!Qa&&I3)}function Ft(e,t,n){e.removeEventListener(t,n,!Qa&&I3)}function Km(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 qce(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function po(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Km(e,t):Km(e,t))||r&&e===n)return e;if(e===n)break}while(e=qce(e))}return null}var pP=/\s+/g;function di(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(pP," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(pP," ")}}function at(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function $c(e,t){var n="";if(typeof e=="string")n=e;else do{var r=at(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function P3(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i=o,!a)return r;if(r===Ko())break;r=$s(r,!1)}return!1}function Jc(e,t,n,r){for(var i=0,o=0,a=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=Yce(n,nfe);rp.pluginEvent.bind(st)(e,t,ra({dragEl:Re,parentEl:Pn,ghostEl:dt,rootEl:xn,nextEl:Yl,lastDownEl:Kg,cloneEl:An,cloneHidden:Ps,dragStarted:Ch,putSortable:sr,activeSortable:st.active,originalEvent:r,oldIndex:yc,oldDraggableIndex:sd,newIndex:gi,newDraggableIndex:Ms,hideGhostForTarget:V3,unhideGhostForTarget:H3,cloneNowHidden:function(){Ps=!0},cloneNowShown:function(){Ps=!1},dispatchSortableEvent:function(o){Rr({sortable:t,name:o,originalEvent:r})}},i))};function Rr(e){tfe(ra({putSortable:sr,cloneEl:An,targetEl:Re,rootEl:xn,oldIndex:yc,oldDraggableIndex:sd,newIndex:gi,newDraggableIndex:Ms},e))}var Re,Pn,dt,xn,Yl,Kg,An,Ps,yc,gi,sd,Ms,ig,sr,fc=!1,Zm=!1,Qm=[],Vl,so,Mw,Rw,mP,yP,Ch,oc,ld,ud=!1,og=!1,Zg,mr,Dw=[],AS=!1,Jm=[],ay=typeof document<"u",ag=R3,_P=np||Qa?"cssFloat":"float",rfe=ay&&!D3&&!R3&&"draggable"in document.createElement("div"),F3=function(){if(ay){if(Qa)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),$3=function(e,t){var n=at(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Jc(e,0,t),o=Jc(e,1,t),a=i&&at(i),s=o&&at(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Gn(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Gn(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&a.float!=="none"){var c=a.float==="left"?"left":"right";return o&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=r&&n[_P]==="none"||o&&n[_P]==="none"&&l+u>r)?"vertical":"horizontal"},ife=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2},ofe=function(e,t){var n;return Qm.some(function(r){var i=r[wi].options.emptyInsertThreshold;if(!(!i||kC(r))){var o=Gn(r),a=e>=o.left-i&&e<=o.right+i,s=t>=o.top-i&&t<=o.bottom+i;if(a&&s)return n=r}}),n},B3=function(e){function t(i,o){return function(a,s,l,u){var c=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(i==null&&(o||c))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return t(i(a,s,l,u),o)(a,s,l,u);var f=(o?a:s).options.group.name;return i===!0||typeof i=="string"&&i===f||i.join&&i.indexOf(f)>-1}}var n={},r=e.group;(!r||Xg(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},V3=function(){!F3&&dt&&at(dt,"display","none")},H3=function(){!F3&&dt&&at(dt,"display","")};ay&&!D3&&document.addEventListener("click",function(e){if(Zm)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Zm=!1,!1},!0);var Hl=function(e){if(Re){e=e.touches?e.touches[0]:e;var t=ofe(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[wi]._onDragOver(n)}}},afe=function(e){Re&&Re.parentNode[wi]._isOutsideThisEl(e.target)};function st(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=qa({},t),e[wi]=this;var n={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 $3(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(o,a){o.setData("Text",a.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:st.supportPointer!==!1&&"PointerEvent"in window&&!od,emptyInsertThreshold:5};rp.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);B3(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:rfe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Ut(e,"pointerdown",this._onTapStart):(Ut(e,"mousedown",this._onTapStart),Ut(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ut(e,"dragover",this),Ut(e,"dragenter",this)),Qm.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),qa(this,Qce())}st.prototype={constructor:st,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(oc=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,Re):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(pfe(n),!Re&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||r.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&od&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=po(s,r.draggable,n,!1),!(s&&s.animated)&&Kg!==s)){if(yc=Hi(s),sd=Hi(s,r.draggable),typeof u=="function"){if(u.call(this,e,s,this)){Rr({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Yr("filter",t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=po(l,c.trim(),n,!1),c)return Rr({sortable:t,rootEl:c,name:"filter",targetEl:s,fromEl:n,toEl:n}),Yr("filter",t,{evt:e}),!0}),u)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!po(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,o=r.options,a=i.ownerDocument,s;if(n&&!Re&&n.parentNode===i){var l=Gn(n);if(xn=i,Re=n,Pn=Re.parentNode,Yl=Re.nextSibling,Kg=n,ig=o.group,st.dragged=Re,Vl={target:Re,clientX:(t||e).clientX,clientY:(t||e).clientY},mP=Vl.clientX-l.left,yP=Vl.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Re.style["will-change"]="all",s=function(){if(Yr("delayEnded",r,{evt:e}),st.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!dP&&r.nativeDraggable&&(Re.draggable=!0),r._triggerDragStart(e,t),Rr({sortable:r,name:"choose",originalEvent:e}),di(Re,o.chosenClass,!0)},o.ignore.split(",").forEach(function(u){P3(Re,u.trim(),Iw)}),Ut(a,"dragover",Hl),Ut(a,"mousemove",Hl),Ut(a,"touchmove",Hl),Ut(a,"mouseup",r._onDrop),Ut(a,"touchend",r._onDrop),Ut(a,"touchcancel",r._onDrop),dP&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Re.draggable=!0),Yr("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(np||Qa))){if(st.eventCanceled){this._onDrop();return}Ut(a,"mouseup",r._disableDelayedDrag),Ut(a,"touchend",r._disableDelayedDrag),Ut(a,"touchcancel",r._disableDelayedDrag),Ut(a,"mousemove",r._delayedDragTouchMoveHandler),Ut(a,"touchmove",r._delayedDragTouchMoveHandler),o.supportPointer&&Ut(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,o.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(){Re&&Iw(Re),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ft(e,"mouseup",this._disableDelayedDrag),Ft(e,"touchend",this._disableDelayedDrag),Ft(e,"touchcancel",this._disableDelayedDrag),Ft(e,"mousemove",this._delayedDragTouchMoveHandler),Ft(e,"touchmove",this._delayedDragTouchMoveHandler),Ft(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?Ut(document,"pointermove",this._onTouchMove):t?Ut(document,"touchmove",this._onTouchMove):Ut(document,"mousemove",this._onTouchMove):(Ut(Re,"dragend",this),Ut(xn,"dragstart",this._onDragStart));try{document.selection?Qg(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(fc=!1,xn&&Re){Yr("dragStarted",this,{evt:t}),this.nativeDraggable&&Ut(document,"dragover",afe);var n=this.options;!e&&di(Re,n.dragClass,!1),di(Re,n.ghostClass,!0),st.active=this,e&&this._appendGhost(),Rr({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(so){this._lastX=so.clientX,this._lastY=so.clientY,V3();for(var e=document.elementFromPoint(so.clientX,so.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(so.clientX,so.clientY),e!==t);)t=e;if(Re.parentNode[wi]._isOutsideThisEl(e),t)do{if(t[wi]){var n=void 0;if(n=t[wi]._onDragOver({clientX:so.clientX,clientY:so.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);H3()}},_onTouchMove:function(e){if(Vl){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=dt&&$c(dt,!0),a=dt&&o&&o.a,s=dt&&o&&o.d,l=ag&&mr&&gP(mr),u=(i.clientX-Vl.clientX+r.x)/(a||1)+(l?l[0]-Dw[0]:0)/(a||1),c=(i.clientY-Vl.clientY+r.y)/(s||1)+(l?l[1]-Dw[1]:0)/(s||1);if(!st.active&&!fc){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(Rr({rootEl:Pn,name:"add",toEl:Pn,fromEl:xn,originalEvent:e}),Rr({sortable:this,name:"remove",toEl:Pn,originalEvent:e}),Rr({rootEl:Pn,name:"sort",toEl:Pn,fromEl:xn,originalEvent:e}),Rr({sortable:this,name:"sort",toEl:Pn,originalEvent:e})),sr&&sr.save()):gi!==yc&&gi>=0&&(Rr({sortable:this,name:"update",toEl:Pn,originalEvent:e}),Rr({sortable:this,name:"sort",toEl:Pn,originalEvent:e})),st.active&&((gi==null||gi===-1)&&(gi=yc,Ms=sd),Rr({sortable:this,name:"end",toEl:Pn,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Yr("nulling",this),xn=Re=Pn=dt=Yl=An=Kg=Ps=Vl=so=Ch=gi=Ms=yc=sd=oc=ld=sr=ig=st.dragged=st.ghost=st.clone=st.active=null,Jm.forEach(function(e){e.checked=!0}),Jm.length=Mw=Rw=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Re&&(this._onDragOver(e),sfe(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,o=this.options;ri.right+o||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+o||e.clientX>r.right&&e.clientY>r.top}function ffe(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,p=!1;if(!a){if(s&&Zgc+u*o/2:lf-Zg)return-ld}else if(l>c+u*(1-i)/2&&lf-u*o/2)?l>c+u/2?1:-1:0}function hfe(e){return Hi(Re){if(q&&(i==null?void 0:i.length)!==H.childNodes.length)return k.insertBefore(q,j.nextSibling),!0;const J=H.childNodes[ie];q=H==null?void 0:H.replaceChild(j,J)})}}catch(q){te=q}finally{i=null}Eo(()=>{if(bP(),te)throw te})}const m={onUpdate:y,onStart:p,onAdd:d,onRemove:g,onEnd:_};function b(D){const P=$(o);return D||(D=Fce(P)?$ce(P,r==null?void 0:r.$el):P),D&&!Hce(D)&&(D=D.$el),D||Lce("Root element not found"),D}function S(){var D;const P=(D=$(s))!=null?D:{},O=A3(P,["immediate","clone"]);return fP(O,(k,H)=>{Uce(k)&&(O[k]=(te,...W)=>{const q=_fe();return zce(te,q),H(te,...W)})}),Vce(a===null?{}:m,O)}const x=D=>{D=b(D),l&&E.destroy(),l=new st(D,S())};kt(()=>s,()=>{l&&fP(S(),(D,P)=>{l==null||l.option(D,P)})},{deep:!0});const E={option:(D,P)=>l==null?void 0:l.option(D,P),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)},T=()=>E==null?void 0:E.option("disabled",!0),A=()=>E==null?void 0:E.option("disabled",!1);return yfe(()=>{u&&x()}),mfe(E.destroy),mc({start:x,pause:T,resume:A},E)}const IS=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],bfe=["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",...IS.map(e=>`on${e.replace(/^\S/,t=>t.toUpperCase())}`)],xP=lt({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:bfe,emits:["update:modelValue",...IS],setup(e,{slots:t,emit:n,expose:r,attrs:i}){const o=IS.reduce((c,f)=>{const p=`on${f.replace(/^\S/,d=>d.toUpperCase())}`;return c[p]=(...d)=>n(f,...d),c},{}),a=Le(()=>{const c=H8(e),f=A3(c,["modelValue"]),p=Object.entries(f).reduce((d,[g,y])=>{const _=$(y);return _!==void 0&&(d[g]=_),d},{});return mc(mc({},o),kce(mc(mc({},i),p)))}),s=Le({get:()=>e.modelValue,set:c=>n("update:modelValue",c)}),l=Ie(),u=xo(wfe(e.target||l,s,a));return r(u),()=>{var c;return zo(e.tag||"div",{ref:l},(c=t==null?void 0:t.default)==null?void 0:c.call(t,u))}}}),Sfe={class:"flex rounded lg:flex-col"},xfe=lt({__name:"TableSettings",setup(e){const t=Ie(Object.values($t).filter(n=>!jl.value.includes(n)));return(n,r)=>(X(),ae(Ye,null,[F("div",null,de(n.$t("customTableColumns"))+":",1),F("div",Sfe,[Se($(xP),{class:"flex flex-1 flex-col gap-2 bg-base-200 p-2 lg:flex-row",modelValue:$(jl),"onUpdate:modelValue":r[0]||(r[0]=i=>Qe(jl)?jl.value=i:null),animation:150,group:"list",ghostClass:"ghost"},{default:Gs(()=>[(X(!0),ae(Ye,null,Gt($(jl),i=>(X(),ae("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},de(n.$t(i)),1))),128))]),_:1},8,["modelValue"]),Se($(xP),{class:"flex flex-1 flex-col gap-2 p-2 lg:flex-row",modelValue:t.value,"onUpdate:modelValue":r[1]||(r[1]=i=>t.value=i),animation:150,group:"list",ghostClass:"ghost"},{default:Gs(()=>[(X(!0),ae(Ye,null,Gt(t.value,i=>(X(),ae("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},de(n.$t(i)),1))),128))]),_:1},8,["modelValue"])])],64))}}),Cfe=lt({__name:"ConnectionsCharts",setup(e){const{t}=Ga(),n=Le(()=>[{name:t("connections"),data:Ig.value}]),r=o=>` ${o}`,i=o=>o.map(a=>{if(!(a.data.name
${a.seriesName} (${Zo(a.data.name).format("HH:mm:ss")}): ${a.data.value} `}).join(` -`);return(o,a)=>(X(),_t(kC,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100},null,8,["data"]))}}),Afe=lt({__name:"MemoryCharts",setup(e){const{t}=Ga(),n=Le(()=>[{name:t("memoryUsage"),data:dh.value}]),r=o=>`${mn(o,{maximumFractionDigits:1,binary:!0})}`,i=o=>ck(o[0],{binary:!0,suffix:""});return(o,a)=>(X(),_t(kC,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1024*1024},null,8,["data"]))}}),Mfe={class:"grid grid-cols-1 gap-2 overflow-y-auto p-2"},Rfe={class:"card card-compact"},Dfe={class:"card-title px-4 pt-4 text-primary"},Ife={class:"indicator"},Pfe={key:0,class:"indicator-item flex"},Lfe={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},Ofe={class:"card-body gap-4"},kfe={class:"flex items-center gap-2"},Nfe=["value"],Ffe={class:"flex items-center gap-2"},$fe=["value","label"],Bfe={key:0,class:"flex items-center gap-2"},Vfe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},Hfe={class:"card card-compact"},Ufe={class:"card-title px-4 pt-4"},zfe={class:"card-body gap-4"},Gfe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},Wfe={class:"card flex items-center justify-start bg-base-200/40 p-4"},Yfe={class:"card card-compact"},jfe={class:"card-title px-4 pt-4"},qfe={class:"card-body gap-4"},Xfe={key:0,class:"flex items-center gap-2"},Kfe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},Zfe={class:"indicator w-full"},Qfe={key:0,class:"indicator-item flex"},Jfe={class:"card card-compact"},ehe={class:"card-title px-4 pt-4"},the={class:"card-body grid grid-cols-1 gap-2 lg:grid-cols-2"},nhe={class:"flex items-center gap-2"},rhe=["value"],ihe={class:"flex items-center gap-2"},ohe={class:"flex items-center gap-2"},ahe={class:"flex items-center gap-2 max-sm:hidden"},she={class:"flex items-center gap-2 sm:hidden"},lhe={class:"flex w-full items-center gap-2"},uhe={class:"shrink-0"},che={class:"flex w-full items-center gap-2"},fhe={class:"shrink-0"},hhe={class:"flex items-center gap-2"},dhe={class:"shrink-0"},phe={class:"flex items-center gap-2"},vhe={class:"shrink-0"},ghe={key:0,class:"flex items-center gap-2"},mhe={class:"card card-compact"},yhe={class:"card-title px-4 pt-4"},_he={class:"card-body"},whe={class:"flex items-center gap-2"},bhe={key:0,class:"flex items-center gap-2 max-sm:hidden"},She={class:"card card-compact"},xhe={class:"card-title px-4 pt-4"},Che={class:"card-body"},The={class:"flex items-center gap-2"},Ehe=lt({__name:"SettingsPage",setup(e){const{isUIUpdateAvailable:t}=h3(),n=Ie(!1),r=async()=>{if(!n.value){n.value=!0;try{await Eq(),n.value=!1}catch{n.value=!1}}},i=Ie(!1),o=async()=>{if(!i.value){i.value=!0;try{await Tq(),i.value=!1}catch{i.value=!1}}},a=Ie(!1),s=async()=>{if(!a.value){a.value=!0;try{await nk(),a.value=!1}catch{a.value=!1}}},l=Ie(!1),u=async()=>{if(!l.value){l.value=!0;try{await Cq(),l.value=!1}catch{l.value=!1}}},c=async()=>{var g;await Ok({tun:{enable:(g=Go.value)==null?void 0:g.tun.enable}})},f=["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"],p=()=>{const g={};for(const b in localStorage)(b.startsWith("config/")||b.startsWith("setup/"))&&(g[b]=localStorage.getItem(b));const y=new Blob([JSON.stringify(g,null,2)],{type:"application/json"}),_=URL.createObjectURL(y),m=document.createElement("a");m.href=_,m.download="zashboard-settings",m.click(),URL.revokeObjectURL(_)},d=()=>{const g=document.createElement("input");g.type="file",g.accept=".json",g.onchange=async()=>{var m;const y=(m=g.files)==null?void 0:m[0];if(!y)return;const _=new FileReader;_.onload=async()=>{const b=JSON.parse(_.result);for(const S in b)localStorage.setItem(S,b[S]);location.reload()},_.readAsText(y)},g.click()};return(g,y)=>{var _;return X(),ae("div",Mfe,[N("div",Rfe,[N("div",Dfe,[N("div",Ife,[$(t)?(X(),ae("span",Pfe,y[18]||(y[18]=[N("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),N("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):mt("",!0),N("a",Lfe,"zashboard v"+de($(gx)),1)])]),N("div",Ofe,[N("div",kfe,[ut(de(g.$t("theme"))+": ",1),At(N("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":y[0]||(y[0]=m=>Ze(Ec)?Ec.value=m:null)},[(X(),ae(Ye,null,Gt(f,m=>N("option",{key:m,value:m},de(m),9,Nfe)),64))],512),[[wo,$(Ec)]])]),Se(C3),N("div",Ffe,[ut(de(g.$t("fonts"))+": ",1),At(N("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":y[1]||(y[1]=m=>Ze(Oh)?Oh.value=m:null)},[(X(!0),ae(Ye,null,Gt(Object.values($(Ds)),m=>(X(),ae("option",{key:m,value:m,label:m},null,8,$fe))),128))],512),[[wo,$(Oh)]])]),$(Ia)?mt("",!0):(X(),ae("div",Bfe,[ut(de(g.$t("autoUpgrade"))+": ",1),At(N("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[2]||(y[2]=m=>Ze(pg)?pg.value=m:null)},null,512),[[mi,$(pg)]])])),N("div",Vfe,[$(Ia)?mt("",!0):(X(),ae(Ye,{key:0},[N("button",{class:ot($(hn)("btn btn-primary btn-xs sm:btn-sm",a.value?"animate-pulse":"")),onClick:s},de(g.$t("upgradeUI")),3),y[19]||(y[19]=N("div",{class:"sm:hidden"},null,-1))],64)),N("button",{class:"btn btn-xs sm:btn-sm",onClick:p},de(g.$t("exportSettings")),1),N("button",{class:"btn btn-xs sm:btn-sm",onClick:d},de(g.$t("importSettings")),1)])])]),N("div",Hfe,[N("div",Ufe,de(g.$t("statistics")),1),N("div",zfe,[N("div",Gfe,[N("div",Wfe,[Se(Hk,{class:"h-20 w-full"})]),Se(f3),Se(Afe),Se(Efe)])])]),N("div",Yfe,[N("div",jfe,de(g.$t("backend")),1),N("div",qfe,[Se(Tce),y[21]||(y[21]=N("div",{class:"divider"},null,-1)),Se(Vk),!$(Ia)&&((_=$(Go))!=null&&_.tun)?(X(),ae("div",Xfe,[ut(de(g.$t("tunMode"))+": ",1),At(N("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[3]||(y[3]=m=>$(Go).tun.enable=m),onChange:c},null,544),[[mi,$(Go).tun.enable]])])):mt("",!0),N("div",Kfe,[$(Ia)?mt("",!0):(X(),ae(Ye,{key:0},[N("div",Zfe,[$(JO)?(X(),ae("span",Qfe,y[20]||(y[20]=[N("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),N("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):mt("",!0),N("button",{class:ot($(hn)("btn btn-primary btn-xs flex-1 sm:btn-sm",i.value?"animate-pulse":"")),onClick:o},de(g.$t("upgradeCore")),3)]),N("button",{class:ot($(hn)("btn btn-xs sm:btn-sm",n.value?"animate-pulse":"")),onClick:r},de(g.$t("restartCore")),3)],64)),N("button",{class:ot($(hn)("btn btn-xs sm:btn-sm",l.value?"animate-pulse":"")),onClick:u},de(g.$t("reloadConfigs")),3),N("button",{class:"btn btn-xs sm:btn-sm",onClick:y[4]||(y[4]=(...m)=>$(aM)&&$(aM)(...m))},de(g.$t("flushFakeIP")),1)])])]),N("div",Jfe,[N("div",ehe,de(g.$t("proxies")),1),N("div",the,[N("div",nhe,[ut(de(g.$t("proxyPreviewType"))+": ",1),At(N("select",{class:"select select-bordered select-sm","onUpdate:modelValue":y[5]||(y[5]=m=>Ze(Vh)?Vh.value=m:null)},[(X(!0),ae(Ye,null,Gt(Object.values($(_d)),m=>(X(),ae("option",{key:m,value:m},de(g.$t(m)),9,rhe))),128))],512),[[wo,$(Vh)]])]),N("div",ihe,[ut(de(g.$t("truncateProxyName"))+": ",1),At(N("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[6]||(y[6]=m=>Ze(Bh)?Bh.value=m:null)},null,512),[[mi,$(Bh)]])]),N("div",ohe,[ut(de(g.$t("automaticDisconnection"))+": ",1),At(N("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[7]||(y[7]=m=>Ze(mg)?mg.value=m:null)},null,512),[[mi,$(mg)]])]),N("div",ahe,[ut(de(g.$t("twoColumnProxyGroup"))+": ",1),At(N("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[8]||(y[8]=m=>Ze(kh)?kh.value=m:null)},null,512),[[mi,$(kh)]])]),N("div",she,[ut(de(g.$t("twoColumnNodeForMobile"))+": ",1),At(N("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[9]||(y[9]=m=>Ze($h)?$h.value=m:null)},null,512),[[mi,$($h)]])]),N("div",lhe,[N("span",uhe,de(g.$t("speedtestUrl"))+": ",1),At(N("input",{type:"text",class:"input input-sm input-bordered w-60 max-sm:flex-1 sm:w-96","onUpdate:modelValue":y[10]||(y[10]=m=>Ze(Nh)?Nh.value=m:null)},null,512),[[Kr,$(Nh)]])]),N("div",che,[N("span",fhe,de(g.$t("speedtestTimeout"))+": ",1),At(N("input",{type:"text",class:"input input-sm input-bordered w-20","onUpdate:modelValue":y[11]||(y[11]=m=>Ze(Fh)?Fh.value=m:null)},null,512),[[Kr,$(Fh)]])]),N("div",hhe,[N("span",dhe,de(g.$t("lowLatencyDesc"))+": ",1),At(N("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":y[12]||(y[12]=m=>Ze(Os)?Os.value=m:null)},null,512),[[Kr,$(Os)]])]),N("div",phe,[N("span",vhe,de(g.$t("mediumLatencyDesc"))+": ",1),At(N("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":y[13]||(y[13]=m=>Ze(Da)?Da.value=m:null)},null,512),[[Kr,$(Da)]])]),$(Ia)?(X(),ae("div",ghe,[ut(de(g.$t("showGlobalProxy"))+": ",1),At(N("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[14]||(y[14]=m=>Ze(vg)?vg.value=m:null)},null,512),[[mi,$(vg)]])])):mt("",!0)])]),N("div",mhe,[N("div",yhe,de(g.$t("connections")),1),N("div",_he,[N("div",whe,[ut(de(g.$t("connectionStyle"))+": "+de(g.$t("table"))+" ",1),At(N("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[15]||(y[15]=m=>Ze(Ql)?Ql.value=m:null)},null,512),[[mi,$(Ql)]]),ut(" "+de(g.$t("card")),1)]),$(Ql)?(X(),ae("div",bhe,[ut(de(g.$t("compactCard"))+": ",1),At(N("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[16]||(y[16]=m=>Ze(_g)?_g.value=m:null)},null,512),[[mi,$(_g)]])])):(X(),_t(Tfe,{key:1})),y[22]||(y[22]=N("div",{class:"divider"},null,-1)),Se(Pce)])]),N("div",She,[N("div",xhe,de(g.$t("logs")),1),N("div",Che,[N("div",The,[ut(de(g.$t("logRetentionLimit"))+": ",1),At(N("input",{class:"input input-sm input-bordered w-20",type:"number",max:"9999","onUpdate:modelValue":y[17]||(y[17]=m=>Ze(wg)?wg.value=m:null)},null,512),[[Kr,$(wg)]])])])])])}}}),Ahe={key:0,class:"toast toast-start toast-top max-w-64 whitespace-normal text-sm"},Mhe={class:"breaks-all alert alert-warning w-72 whitespace-normal"},Rhe={href:"https://github.com/Zephyruso/zashboard/blob/main/README.md",target:"_blank"},Dhe={class:"absolute bottom-4 right-4"},Ihe={class:"card w-64 gap-2 px-6 py-2 sm:gap-4"},Phe={class:"text-2xl font-semibold"},Lhe={class:"form-control"},Ohe={class:"label"},khe={class:"label-text"},Nhe={class:"form-control"},Fhe={class:"label"},$he={class:"label-text"},Bhe={class:"form-control"},Vhe={class:"label"},Hhe={class:"label-text"},Uhe={class:"form-control"},zhe={class:"label flex items-center justify-start gap-1"},Ghe={class:"label-text"},Whe=["data-tip"],Yhe={class:"form-control"},jhe={class:"label"},qhe={class:"label-text"},Xhe={class:"flex flex-col gap-2"},Khe=["onClick"],Zhe=["onClick"],Qhe=lt({__name:"SetupPage",setup(e){var l,u;const t=xo({protocol:"http",host:"127.0.0.1",port:9090,secondaryPath:"",password:""}),{tipContent:n,tipShowModel:r,showTip:i}=MO(),o=c=>{xi.value=c,To.push({name:Bt.proxies})},a=async(c,f=!1)=>{const{protocol:p,host:d,port:g,password:y,secondaryPath:_}=c;if(!p||!d||!g){alert("Please fill in all the fields.");return}window.location.protocol==="https:"&&p==="http"&&!f&&i("protocolTips");try{const m=await fetch(`${p}://${d}:${g}${_}/version`,{method:"GET",headers:{Authorization:`Bearer ${y}`}});if(m.status!==200){f||alert(m.statusText);return}const{version:b,message:S}=await m.json();if(!b){f||alert(S);return}LY(c),To.push({name:Bt.proxies})}catch(m){f||alert(m)}},s=new URLSearchParams(window.location.search||((u=(l=location.hash.match(/\?.*$/))==null?void 0:l[0])==null?void 0:u.replace("?","")));return s.has("hostname")?a({protocol:s.get("http")?"http":s.get("https")?"https":window.location.protocol.replace(":",""),secondaryPath:s.get("secondaryPath")||"",host:s.get("hostname"),port:Number(s.get("port")),password:s.get("secret")}):Ys.value.length===0&&a(t,!0),(c,f)=>(X(),ae("div",{class:"flex h-full w-full items-center justify-center bg-base-200/40",onKeydown:f[6]||(f[6]=xW(p=>a(t),["enter"]))},[$(r)?(X(),ae("div",Ahe,[N("div",Mhe,[N("a",Rhe,de(c.$t($(n))),1)])])):mt("",!0),N("div",Dhe,[Se(C3)]),N("div",Ihe,[N("h1",Phe,de(c.$t("setup")),1),N("div",Lhe,[N("label",Ohe,[N("span",khe,de(c.$t("protocol")),1)]),At(N("select",{class:"select select-bordered select-sm w-full","onUpdate:modelValue":f[0]||(f[0]=p=>t.protocol=p)},f[7]||(f[7]=[N("option",{value:"http"},"HTTP",-1),N("option",{value:"https"},"HTTPS",-1)]),512),[[wo,t.protocol]])]),N("div",Nhe,[N("label",Fhe,[N("span",$he,de(c.$t("host")),1)]),At(N("input",{type:"text",class:"input input-sm input-bordered w-full",name:"username",autocomplete:"username","onUpdate:modelValue":f[1]||(f[1]=p=>t.host=p)},null,512),[[Kr,t.host]])]),N("div",Bhe,[N("label",Vhe,[N("span",Hhe,de(c.$t("port")),1)]),At(N("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":f[2]||(f[2]=p=>t.port=p)},null,512),[[Kr,t.port]])]),N("div",Uhe,[N("label",zhe,[N("span",Ghe,de(c.$t("secondaryPath")),1),N("span",{class:"tooltip","data-tip":c.$t("secondaryPathTip")},[Se($(oO),{class:"h-4 w-4"})],8,Whe)]),At(N("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":f[3]||(f[3]=p=>t.secondaryPath=p)},null,512),[[Kr,t.secondaryPath]])]),N("div",Yhe,[N("label",jhe,[N("span",qhe,de(c.$t("password")),1)]),At(N("input",{type:"password",class:"input input-sm input-bordered w-full","onUpdate:modelValue":f[4]||(f[4]=p=>t.password=p)},null,512),[[Kr,t.password]])]),N("button",{class:"btn btn-primary btn-sm w-full",onClick:f[5]||(f[5]=p=>a(t))},de(c.$t("submit")),1),N("div",Xhe,[(X(!0),ae(Ye,null,Gt($(Ys),p=>(X(),ae("div",{key:p.uuid,class:"flex items-center gap-2"},[N("button",{class:"btn btn-xs flex-1",onClick:d=>o(p.uuid)},de(p.protocol)+"://"+de(p.host)+":"+de(p.port)+de(p.secondaryPath),9,Khe),N("button",{class:"btn btn-circle btn-xs",onClick:()=>$(AO)(p.uuid)},[Se($(tO),{class:"h-4 w-4"})],8,Zhe)]))),128))])])],32))}}),To=D6({history:a6("./"),routes:[{path:"/",redirect:Bt.proxies,component:iue,children:[{path:"proxies",name:Bt.proxies,component:cce},{path:"connections",name:Bt.connections,component:jK},{path:"logs",name:Bt.logs,component:cue},{path:"rules",name:Bt.rules,component:Sce},{path:"settings",name:Bt.settings,component:Ehe}]},{path:"/setup",name:Bt.setup,component:Qhe},{path:"/:catchAll(.*)",redirect:Bt.proxies}]}),TP=h9("zashboard"),W3=e=>{typeof e=="string"&&Ho.value?TP.value=`zashboard | ${fx.global.t(e)}`:TP.value="zashboard"};To.beforeEach(e=>{!Ho.value&&e.name!==Bt.setup&&To.push({name:Bt.setup})});To.afterEach(e=>{W3(e.name)});kt(Pa,()=>{W3(To.currentRoute.value.name)});const BC=EW(v9);Zo.extend(r8);BC.use(To);BC.use(fx);BC.mount("#app"); +`);return(o,a)=>(X(),_t(OC,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100},null,8,["data"]))}}),Tfe=lt({__name:"MemoryCharts",setup(e){const{t}=Ga(),n=Le(()=>[{name:t("memoryUsage"),data:dh.value}]),r=o=>`${mn(o,{maximumFractionDigits:1,binary:!0})}`,i=o=>ck(o[0],{binary:!0,suffix:""});return(o,a)=>(X(),_t(OC,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1024*1024},null,8,["data"]))}}),Efe={class:"grid grid-cols-1 gap-2 overflow-y-auto p-2"},Afe={class:"card card-compact"},Mfe={class:"card-title px-4 pt-4 text-primary"},Rfe={class:"indicator"},Dfe={key:0,class:"indicator-item flex"},Ife={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},Pfe={class:"card-body gap-4"},Lfe={class:"flex items-center gap-2"},Ofe=["value"],kfe={class:"flex items-center gap-2"},Nfe=["value","label"],Ffe={key:0,class:"flex items-center gap-2"},$fe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},Bfe={class:"card card-compact"},Vfe={class:"card-title px-4 pt-4"},Hfe={class:"card-body gap-4"},Ufe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},zfe={class:"card flex items-center justify-start bg-base-200/40 p-4"},Gfe={class:"card card-compact"},Wfe={class:"card-title px-4 pt-4"},Yfe={class:"card-body gap-4"},jfe={key:0,class:"flex items-center gap-2"},qfe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},Xfe={class:"indicator w-full"},Kfe={key:0,class:"indicator-item flex"},Zfe={class:"card card-compact"},Qfe={class:"card-title px-4 pt-4"},Jfe={class:"card-body grid grid-cols-1 gap-2 lg:grid-cols-2"},ehe={class:"flex items-center gap-2"},the=["value"],nhe={class:"flex items-center gap-2"},rhe={class:"flex items-center gap-2"},ihe={class:"flex items-center gap-2 max-sm:hidden"},ohe={class:"flex items-center gap-2 sm:hidden"},ahe={class:"flex w-full items-center gap-2"},she={class:"shrink-0"},lhe={class:"flex w-full items-center gap-2"},uhe={class:"shrink-0"},che={class:"flex items-center gap-2"},fhe={class:"shrink-0"},hhe={class:"flex items-center gap-2"},dhe={class:"shrink-0"},phe={key:0,class:"flex items-center gap-2"},vhe={class:"card card-compact"},ghe={class:"card-title px-4 pt-4"},mhe={class:"card-body"},yhe={class:"flex items-center gap-2"},_he={key:0,class:"flex items-center gap-2 max-sm:hidden"},whe={class:"card card-compact"},bhe={class:"card-title px-4 pt-4"},She={class:"card-body"},xhe={class:"flex items-center gap-2"},Che=lt({__name:"SettingsPage",setup(e){const{isUIUpdateAvailable:t}=h3(),n=Ie(!1),r=async()=>{if(!n.value){n.value=!0;try{await Eq(),n.value=!1}catch{n.value=!1}}},i=Ie(!1),o=async()=>{if(!i.value){i.value=!0;try{await Tq(),i.value=!1}catch{i.value=!1}}},a=Ie(!1),s=async()=>{if(!a.value){a.value=!0;try{await nk(),a.value=!1}catch{a.value=!1}}},l=Ie(!1),u=async()=>{if(!l.value){l.value=!0;try{await Cq(),l.value=!1}catch{l.value=!1}}},c=async()=>{var g;await Ok({tun:{enable:(g=Go.value)==null?void 0:g.tun.enable}})},f=["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"],p=()=>{const g={};for(const b in localStorage)(b.startsWith("config/")||b.startsWith("setup/"))&&(g[b]=localStorage.getItem(b));const y=new Blob([JSON.stringify(g,null,2)],{type:"application/json"}),_=URL.createObjectURL(y),m=document.createElement("a");m.href=_,m.download="zashboard-settings",m.click(),URL.revokeObjectURL(_)},d=()=>{const g=document.createElement("input");g.type="file",g.accept=".json",g.onchange=async()=>{var m;const y=(m=g.files)==null?void 0:m[0];if(!y)return;const _=new FileReader;_.onload=async()=>{const b=JSON.parse(_.result);for(const S in b)localStorage.setItem(S,b[S]);location.reload()},_.readAsText(y)},g.click()};return(g,y)=>{var _;return X(),ae("div",Efe,[F("div",Afe,[F("div",Mfe,[F("div",Rfe,[$(t)?(X(),ae("span",Dfe,y[18]||(y[18]=[F("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),F("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):mt("",!0),F("a",Ife,"zashboard v"+de($(JO)),1)])]),F("div",Pfe,[F("div",Lfe,[ut(de(g.$t("theme"))+": ",1),It(F("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":y[0]||(y[0]=m=>Qe(Ec)?Ec.value=m:null)},[(X(),ae(Ye,null,Gt(f,m=>F("option",{key:m,value:m},de(m),9,Ofe)),64))],512),[[wo,$(Ec)]])]),Se(C3),F("div",kfe,[ut(de(g.$t("fonts"))+": ",1),It(F("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":y[1]||(y[1]=m=>Qe(Oh)?Oh.value=m:null)},[(X(!0),ae(Ye,null,Gt(Object.values($(Ds)),m=>(X(),ae("option",{key:m,value:m,label:m},null,8,Nfe))),128))],512),[[wo,$(Oh)]])]),$(Ia)?mt("",!0):(X(),ae("div",Ffe,[ut(de(g.$t("autoUpgrade"))+": ",1),It(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[2]||(y[2]=m=>Qe(vg)?vg.value=m:null)},null,512),[[uo,$(vg)]])])),F("div",$fe,[$(Ia)?mt("",!0):(X(),ae(Ye,{key:0},[F("button",{class:ot($(hn)("btn btn-primary btn-xs sm:btn-sm",a.value?"animate-pulse":"")),onClick:s},de(g.$t("upgradeUI")),3),y[19]||(y[19]=F("div",{class:"sm:hidden"},null,-1))],64)),F("button",{class:"btn btn-xs sm:btn-sm",onClick:p},de(g.$t("exportSettings")),1),F("button",{class:"btn btn-xs sm:btn-sm",onClick:d},de(g.$t("importSettings")),1)])])]),F("div",Bfe,[F("div",Vfe,de(g.$t("statistics")),1),F("div",Hfe,[F("div",Ufe,[F("div",zfe,[Se(Hk,{class:"h-20 w-full"})]),Se(f3),Se(Tfe),Se(Cfe)])])]),F("div",Gfe,[F("div",Wfe,de(g.$t("backend")),1),F("div",Yfe,[Se(xce),y[21]||(y[21]=F("div",{class:"divider"},null,-1)),Se(Vk),!$(Ia)&&((_=$(Go))!=null&&_.tun)?(X(),ae("div",jfe,[ut(de(g.$t("tunMode"))+": ",1),It(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[3]||(y[3]=m=>$(Go).tun.enable=m),onChange:c},null,544),[[uo,$(Go).tun.enable]])])):mt("",!0),F("div",qfe,[$(Ia)?mt("",!0):(X(),ae(Ye,{key:0},[F("div",Xfe,[$(QO)?(X(),ae("span",Kfe,y[20]||(y[20]=[F("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),F("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):mt("",!0),F("button",{class:ot($(hn)("btn btn-primary btn-xs flex-1 sm:btn-sm",i.value?"animate-pulse":"")),onClick:o},de(g.$t("upgradeCore")),3)]),F("button",{class:ot($(hn)("btn btn-xs sm:btn-sm",n.value?"animate-pulse":"")),onClick:r},de(g.$t("restartCore")),3)],64)),F("button",{class:ot($(hn)("btn btn-xs sm:btn-sm",l.value?"animate-pulse":"")),onClick:u},de(g.$t("reloadConfigs")),3),F("button",{class:"btn btn-xs sm:btn-sm",onClick:y[4]||(y[4]=(...m)=>$(oM)&&$(oM)(...m))},de(g.$t("flushFakeIP")),1)])])]),F("div",Zfe,[F("div",Qfe,de(g.$t("proxies")),1),F("div",Jfe,[F("div",ehe,[ut(de(g.$t("proxyPreviewType"))+": ",1),It(F("select",{class:"select select-bordered select-sm","onUpdate:modelValue":y[5]||(y[5]=m=>Qe(Vh)?Vh.value=m:null)},[(X(!0),ae(Ye,null,Gt(Object.values($(_d)),m=>(X(),ae("option",{key:m,value:m},de(g.$t(m)),9,the))),128))],512),[[wo,$(Vh)]])]),F("div",nhe,[ut(de(g.$t("truncateProxyName"))+": ",1),It(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[6]||(y[6]=m=>Qe(Bh)?Bh.value=m:null)},null,512),[[uo,$(Bh)]])]),F("div",rhe,[ut(de(g.$t("automaticDisconnection"))+": ",1),It(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[7]||(y[7]=m=>Qe(yg)?yg.value=m:null)},null,512),[[uo,$(yg)]])]),F("div",ihe,[ut(de(g.$t("twoColumnProxyGroup"))+": ",1),It(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[8]||(y[8]=m=>Qe(kh)?kh.value=m:null)},null,512),[[uo,$(kh)]])]),F("div",ohe,[ut(de(g.$t("twoColumnNodeForMobile"))+": ",1),It(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[9]||(y[9]=m=>Qe($h)?$h.value=m:null)},null,512),[[uo,$($h)]])]),F("div",ahe,[F("span",she,de(g.$t("speedtestUrl"))+": ",1),It(F("input",{type:"text",class:"input input-sm input-bordered w-60 max-sm:flex-1 sm:w-96","onUpdate:modelValue":y[10]||(y[10]=m=>Qe(Nh)?Nh.value=m:null)},null,512),[[Kr,$(Nh)]])]),F("div",lhe,[F("span",uhe,de(g.$t("speedtestTimeout"))+": ",1),It(F("input",{type:"text",class:"input input-sm input-bordered w-20","onUpdate:modelValue":y[11]||(y[11]=m=>Qe(Fh)?Fh.value=m:null)},null,512),[[Kr,$(Fh)]])]),F("div",che,[F("span",fhe,de(g.$t("lowLatencyDesc"))+": ",1),It(F("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":y[12]||(y[12]=m=>Qe(Os)?Os.value=m:null)},null,512),[[Kr,$(Os)]])]),F("div",hhe,[F("span",dhe,de(g.$t("mediumLatencyDesc"))+": ",1),It(F("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":y[13]||(y[13]=m=>Qe(Da)?Da.value=m:null)},null,512),[[Kr,$(Da)]])]),$(Ia)?(X(),ae("div",phe,[ut(de(g.$t("showGlobalProxy"))+": ",1),It(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[14]||(y[14]=m=>Qe(gg)?gg.value=m:null)},null,512),[[uo,$(gg)]])])):mt("",!0)])]),F("div",vhe,[F("div",ghe,de(g.$t("connections")),1),F("div",mhe,[F("div",yhe,[ut(de(g.$t("connectionStyle"))+": "+de(g.$t("table"))+" ",1),It(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[15]||(y[15]=m=>Qe(Ql)?Ql.value=m:null)},null,512),[[uo,$(Ql)]]),ut(" "+de(g.$t("card")),1)]),$(Ql)?(X(),ae("div",_he,[ut(de(g.$t("compactCard"))+": ",1),It(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[16]||(y[16]=m=>Qe(wg)?wg.value=m:null)},null,512),[[uo,$(wg)]])])):(X(),_t(xfe,{key:1})),y[22]||(y[22]=F("div",{class:"divider"},null,-1)),Se(Dce)])]),F("div",whe,[F("div",bhe,de(g.$t("logs")),1),F("div",She,[F("div",xhe,[ut(de(g.$t("logRetentionLimit"))+": ",1),It(F("input",{class:"input input-sm input-bordered w-20",type:"number",max:"9999","onUpdate:modelValue":y[17]||(y[17]=m=>Qe(bg)?bg.value=m:null)},null,512),[[Kr,$(bg)]])])])])])}}}),The={key:0,class:"toast toast-start toast-top max-w-64 whitespace-normal text-sm"},Ehe={class:"breaks-all alert alert-warning w-72 whitespace-normal"},Ahe={href:"https://github.com/Zephyruso/zashboard/blob/main/README.md",target:"_blank"},Mhe={class:"absolute bottom-4 right-4"},Rhe={class:"card w-64 gap-2 px-6 py-2 sm:gap-4"},Dhe={class:"text-2xl font-semibold"},Ihe={class:"form-control"},Phe={class:"label"},Lhe={class:"label-text"},Ohe={class:"form-control"},khe={class:"label"},Nhe={class:"label-text"},Fhe={class:"form-control"},$he={class:"label"},Bhe={class:"label-text"},Vhe={class:"form-control"},Hhe={class:"label flex items-center justify-start gap-1"},Uhe={class:"label-text"},zhe=["data-tip"],Ghe={class:"form-control"},Whe={class:"label"},Yhe={class:"label-text"},jhe={class:"flex flex-col gap-2"},qhe=["onClick"],Xhe=["onClick"],Khe=lt({__name:"SetupPage",setup(e){var l,u;const t=xo({protocol:"http",host:"127.0.0.1",port:9090,secondaryPath:"",password:""}),{tipContent:n,tipShowModel:r,showTip:i}=AO(),o=c=>{Si.value=c,To.push({name:Bt.proxies})},a=async(c,f=!1)=>{const{protocol:p,host:d,port:g,password:y,secondaryPath:_}=c;if(!p||!d||!g){alert("Please fill in all the fields.");return}window.location.protocol==="https:"&&p==="http"&&!f&&i("protocolTips");try{const m=await fetch(`${p}://${d}:${g}${_}/version`,{method:"GET",headers:{Authorization:`Bearer ${y}`}});if(m.status!==200){f||alert(m.statusText);return}const{version:b,message:S}=await m.json();if(!b){f||alert(S);return}LY(c),To.push({name:Bt.proxies})}catch(m){f||alert(m)}},s=new URLSearchParams(window.location.search||((u=(l=location.hash.match(/\?.*$/))==null?void 0:l[0])==null?void 0:u.replace("?","")));return s.has("hostname")?a({protocol:s.get("http")?"http":s.get("https")?"https":window.location.protocol.replace(":",""),secondaryPath:s.get("secondaryPath")||"",host:s.get("hostname"),port:Number(s.get("port")),password:s.get("secret")}):Ys.value.length===0&&a(t,!0),(c,f)=>(X(),ae("div",{class:"flex h-full w-full items-center justify-center bg-base-200/40",onKeydown:f[6]||(f[6]=xW(p=>a(t),["enter"]))},[$(r)?(X(),ae("div",The,[F("div",Ehe,[F("a",Ahe,de(c.$t($(n))),1)])])):mt("",!0),F("div",Mhe,[Se(C3)]),F("div",Rhe,[F("h1",Dhe,de(c.$t("setup")),1),F("div",Ihe,[F("label",Phe,[F("span",Lhe,de(c.$t("protocol")),1)]),It(F("select",{class:"select select-bordered select-sm w-full","onUpdate:modelValue":f[0]||(f[0]=p=>t.protocol=p)},f[7]||(f[7]=[F("option",{value:"http"},"HTTP",-1),F("option",{value:"https"},"HTTPS",-1)]),512),[[wo,t.protocol]])]),F("div",Ohe,[F("label",khe,[F("span",Nhe,de(c.$t("host")),1)]),It(F("input",{type:"text",class:"input input-sm input-bordered w-full",name:"username",autocomplete:"username","onUpdate:modelValue":f[1]||(f[1]=p=>t.host=p)},null,512),[[Kr,t.host]])]),F("div",Fhe,[F("label",$he,[F("span",Bhe,de(c.$t("port")),1)]),It(F("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":f[2]||(f[2]=p=>t.port=p)},null,512),[[Kr,t.port]])]),F("div",Vhe,[F("label",Hhe,[F("span",Uhe,de(c.$t("secondaryPath")),1),F("span",{class:"tooltip","data-tip":c.$t("secondaryPathTip")},[Se($(iO),{class:"h-4 w-4"})],8,zhe)]),It(F("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":f[3]||(f[3]=p=>t.secondaryPath=p)},null,512),[[Kr,t.secondaryPath]])]),F("div",Ghe,[F("label",Whe,[F("span",Yhe,de(c.$t("password")),1)]),It(F("input",{type:"password",class:"input input-sm input-bordered w-full","onUpdate:modelValue":f[4]||(f[4]=p=>t.password=p)},null,512),[[Kr,t.password]])]),F("button",{class:"btn btn-primary btn-sm w-full",onClick:f[5]||(f[5]=p=>a(t))},de(c.$t("submit")),1),F("div",jhe,[(X(!0),ae(Ye,null,Gt($(Ys),p=>(X(),ae("div",{key:p.uuid,class:"flex items-center gap-2"},[F("button",{class:"btn btn-xs flex-1",onClick:d=>o(p.uuid)},de(p.protocol)+"://"+de(p.host)+":"+de(p.port)+de(p.secondaryPath),9,qhe),F("button",{class:"btn btn-circle btn-xs",onClick:()=>$(EO)(p.uuid)},[Se($(eO),{class:"h-4 w-4"})],8,Xhe)]))),128))])])],32))}}),To=D6({history:a6("./"),routes:[{path:"/",redirect:Bt.proxies,component:iue,children:[{path:"proxies",name:Bt.proxies,component:lce},{path:"connections",name:Bt.connections,component:jK},{path:"logs",name:Bt.logs,component:cue},{path:"rules",name:Bt.rules,component:wce},{path:"settings",name:Bt.settings,component:Che}]},{path:"/setup",name:Bt.setup,component:Khe},{path:"/:catchAll(.*)",redirect:Bt.proxies}]}),CP=h9("zashboard"),W3=e=>{typeof e=="string"&&Ho.value?CP.value=`zashboard | ${fx.global.t(e)}`:CP.value="zashboard"};To.beforeEach(e=>{!Ho.value&&e.name!==Bt.setup&&To.push({name:Bt.setup})});To.afterEach(e=>{W3(e.name)});kt(Pa,()=>{W3(To.currentRoute.value.name)});const $C=EW(v9);Zo.extend(r8);$C.use(To);$C.use(fx);$C.mount("#app"); diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/index.html b/luci-app-nekobox/root/etc/neko/ui/zashboard/index.html index 5623c6a6a..6f4e07944 100644 --- a/luci-app-nekobox/root/etc/neko/ui/zashboard/index.html +++ b/luci-app-nekobox/root/etc/neko/ui/zashboard/index.html @@ -48,7 +48,7 @@ onload="this.media='all'" href="https://unpkg.com/subsetted-fonts@latest/PingFangSC-Regular\PingFangSC-Regular.css" /> - + diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/sw.js b/luci-app-nekobox/root/etc/neko/ui/zashboard/sw.js index c69910c41..f6614d8b8 100644 --- a/luci-app-nekobox/root/etc/neko/ui/zashboard/sw.js +++ b/luci-app-nekobox/root/etc/neko/ui/zashboard/sw.js @@ -1 +1 @@ -if(!self.define){let e,i={};const s=(s,n)=>(s=new URL(s+".js",n).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(n,r)=>{const f=e||("document"in self?document.currentScript.src:"")||location.href;if(i[f])return;let o={};const t=e=>s(e,f),c={module:{uri:f},exports:o,require:t};i[f]=Promise.all(n.map((e=>c[e]||t(e)))).then((e=>(r(...e),o)))}}define(["./workbox-3e8df8c8"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-BxIFQ89r.css",revision:null},{url:"assets/index-C1iuVV9q.js",revision:null},{url:"index.html",revision:"28767b615484191159e70268009f21c7"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"favicon.svg",revision:"7f1c4521acc10694fefef8f72dd2ea5f"},{url:"pwa-192x192.png",revision:"021df52501f4357c03eebd808f40dc6a"},{url:"pwa-512x512.png",revision:"d2f759aaabcb2c44ff52b27fde3de6e0"},{url:"pwa-maskable-192x192.png",revision:"7cd11dc5f0490b349d23eef5591d10e5"},{url:"pwa-maskable-512x512.png",revision:"8c97dc367a85a5a1eba523b24f79d03b"},{url:"manifest.webmanifest",revision:"c452912633990899ffe790f985ad0db9"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,i={};const s=(s,n)=>(s=new URL(s+".js",n).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(n,r)=>{const f=e||("document"in self?document.currentScript.src:"")||location.href;if(i[f])return;let c={};const o=e=>s(e,f),t={module:{uri:f},exports:c,require:o};i[f]=Promise.all(n.map((e=>t[e]||o(e)))).then((e=>(r(...e),c)))}}define(["./workbox-3e8df8c8"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-BxIFQ89r.css",revision:null},{url:"assets/index-BYS07YVA.js",revision:null},{url:"index.html",revision:"b23b3aa969e6cf15ccc448aea2f17294"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"favicon.svg",revision:"7f1c4521acc10694fefef8f72dd2ea5f"},{url:"pwa-192x192.png",revision:"021df52501f4357c03eebd808f40dc6a"},{url:"pwa-512x512.png",revision:"d2f759aaabcb2c44ff52b27fde3de6e0"},{url:"pwa-maskable-192x192.png",revision:"7cd11dc5f0490b349d23eef5591d10e5"},{url:"pwa-maskable-512x512.png",revision:"8c97dc367a85a5a1eba523b24f79d03b"},{url:"manifest.webmanifest",revision:"c452912633990899ffe790f985ad0db9"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/version.txt b/luci-app-nekobox/root/etc/neko/ui/zashboard/version.txt index a14f562a0..2a9beeb58 100644 --- a/luci-app-nekobox/root/etc/neko/ui/zashboard/version.txt +++ b/luci-app-nekobox/root/etc/neko/ui/zashboard/version.txt @@ -1 +1 @@ -v1.29.2 \ No newline at end of file +v1.29.3 \ No newline at end of file diff --git a/qbittorrent/Makefile b/qbittorrent/Makefile index e6aa2709c..a2c0b4953 100644 --- a/qbittorrent/Makefile +++ b/qbittorrent/Makefile @@ -7,12 +7,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=qbittorrent -PKG_VERSION:=5.0.2 +PKG_VERSION:=5.0.3 PKG_RELEASE=1 PKG_SOURCE:=qBittorrent-release-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/qbittorrent/qBittorrent/tar.gz/release-$(PKG_VERSION)? -PKG_HASH:=ba46f7ac0c530ab6ba81fdce6f4488393cd67dd1a9d823660e26081773569274 +PKG_HASH:=12dc7228b6fd1f0c184e0fd58836797b9f01fd7da89c9ff65795a031eb571759 PKG_BUILD_DIR:=$(BUILD_DIR)/qBittorrent-release-$(PKG_VERSION)