diff --git a/assets/index-BnAfod4A.js b/assets/index-Cezemszr.js similarity index 59% rename from assets/index-BnAfod4A.js rename to assets/index-Cezemszr.js index e2ef50c3..d651b2c3 100644 --- a/assets/index-BnAfod4A.js +++ b/assets/index-Cezemszr.js @@ -1,84 +1,84 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-C1eCP44A.css","./MiSans-VF-tRsyHePl.css","./SarasaUiSC-Regular-DAQC5TvS.css","./PingFangSC-Regular-CdqjaR4Y.css"])))=>i.map(i=>d[i]); -(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)}})();const aK="modulepreload",sK=function(e,t){return new URL(e,t).href},_D={},uy=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(u=>{if(u=sK(u,r),u in _D)return;_D[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let v=a.length-1;v>=0;v--){const m=a[v];if(m.href===u&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":aK,c||(h.as="script"),h.crossOrigin="",h.href=u,l&&h.setAttribute("nonce",l),document.head.appendChild(h),c)return new Promise((v,m)=>{h.addEventListener("load",v),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};var cy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ib(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var N0={exports:{}},lK=N0.exports,bD;function YA(){return bD||(bD=1,function(e,t){(function(n,r){e.exports=r()})(lK,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",v="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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(F){var z=["th","st","nd","rd"],B=F%100;return"["+F+(z[(B-20)%10]||z[B]||z[0])+"]"}},w=function(F,z,B){var Y=String(F);return!Y||Y.length>=z?F:""+Array(z+1-Y.length).join(B)+F},S={s:w,z:function(F){var z=-F.utcOffset(),B=Math.abs(z),Y=Math.floor(B/60),j=B%60;return(z<=0?"+":"-")+w(Y,2,"0")+":"+w(j,2,"0")},m:function F(z,B){if(z.date()1)return F(ge[0])}else{var ve=z.name;T[ve]=z,j=ve}return!Y&&j&&(E=j),j||!Y&&E},R=function(F,z){if(P(F))return F.clone();var B=typeof z=="object"?z:{};return B.date=F,B.args=arguments,new M(B)},O=S;O.l=I,O.i=P,O.w=function(F,z){return R(F,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var M=function(){function F(B){this.$L=I(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[A]=!0}var z=F.prototype;return z.parse=function(B){this.$d=function(Y){var j=Y.date,ae=Y.utc;if(j===null)return new Date(NaN);if(O.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var ge=j.match(y);if(ge){var ve=ge[2]-1||0,De=(ge[7]||"0").substring(0,3);return ae?new Date(Date.UTC(ge[1],ve,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,De)):new Date(ge[1],ve,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,De)}}return new Date(j)}(B),this.init()},z.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},z.$utils=function(){return O},z.isValid=function(){return this.$d.toString()!==m},z.isSame=function(B,Y){var j=R(B);return this.startOf(Y)<=j&&j<=this.endOf(Y)},z.isAfter=function(B,Y){return R(B)=2&&_%10<=4&&(_%100<10||_%100>=20)?b[1]:b[2])}var f=function(v,m){return u.test(m)?o[v.month()]:a[v.month()]};f.s=a,f.f=o;var d=function(v,m){return u.test(m)?s[v.month()]:l[v.month()]};d.s=l,d.f=s;var h={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:f,monthsShort:d,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:c,mm:c,h:"час",hh:c,d:"день",dd:c,M:"месяц",MM:c,y:"год",yy:c},ordinal:function(v){return v},meridiem:function(v){return v<4?"ночи":v<12?"утра":v<17?"дня":"вечера"}};return i.default.locale(h,null,!0),h})}(k0)),k0.exports}fK();var F0={exports:{}},dK=F0.exports,wD;function hK(){return wD||(wD=1,function(e,t){(function(n,r){e.exports=r(YA())})(dK,function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,s){return s==="W"?a+"周":a+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(a,s){var l=100*a+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})}(F0)),F0.exports}hK();var $0={exports:{}},pK=$0.exports,xD;function vK(){return xD||(xD=1,function(e,t){(function(n,r){e.exports=r()})(pK,function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(u,c,f,d){return o.fromToBase(u,c,f,d)}i.en.relativeTime=a,o.fromToBase=function(u,c,f,d,h){for(var v,m,y,_=f.$locale().relativeTime||a,b=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=b.length,S=0;S0,T<=E.r||!E.r){T<=1&&S>0&&(E=b[S-1]);var A=_[E.l];h&&(T=h(""+T)),m=typeof A=="string"?A.replace("%d",T):A(T,c,E.l,y);break}}if(c)return m;var P=y?_.future:_.past;return typeof P=="function"?P(m):P.replace("%s",m)},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)}}})}($0)),$0.exports}var gK=vK();const mK=Bg(gK);/** +(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)}})();const uK="modulepreload",cK=function(e,t){return new URL(e,t).href},SD={},fy=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(u=>{if(u=cK(u,r),u in SD)return;SD[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let v=a.length-1;v>=0;v--){const m=a[v];if(m.href===u&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":uK,c||(h.as="script"),h.crossOrigin="",h.href=u,l&&h.setAttribute("nonce",l),document.head.appendChild(h),c)return new Promise((v,m)=>{h.addEventListener("load",v),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};var dy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ug(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ab(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var F0={exports:{}},fK=F0.exports,wD;function KA(){return wD||(wD=1,function(e,t){(function(n,r){e.exports=r()})(fK,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",v="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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(F){var z=["th","st","nd","rd"],B=F%100;return"["+F+(z[(B-20)%10]||z[B]||z[0])+"]"}},w=function(F,z,B){var Y=String(F);return!Y||Y.length>=z?F:""+Array(z+1-Y.length).join(B)+F},S={s:w,z:function(F){var z=-F.utcOffset(),B=Math.abs(z),Y=Math.floor(B/60),j=B%60;return(z<=0?"+":"-")+w(Y,2,"0")+":"+w(j,2,"0")},m:function F(z,B){if(z.date()1)return F(ge[0])}else{var ve=z.name;E[ve]=z,j=ve}return!Y&&j&&(T=j),j||!Y&&T},R=function(F,z){if(P(F))return F.clone();var B=typeof z=="object"?z:{};return B.date=F,B.args=arguments,new M(B)},O=S;O.l=I,O.i=P,O.w=function(F,z){return R(F,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var M=function(){function F(B){this.$L=I(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[A]=!0}var z=F.prototype;return z.parse=function(B){this.$d=function(Y){var j=Y.date,se=Y.utc;if(j===null)return new Date(NaN);if(O.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var ge=j.match(y);if(ge){var ve=ge[2]-1||0,De=(ge[7]||"0").substring(0,3);return se?new Date(Date.UTC(ge[1],ve,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,De)):new Date(ge[1],ve,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,De)}}return new Date(j)}(B),this.init()},z.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},z.$utils=function(){return O},z.isValid=function(){return this.$d.toString()!==m},z.isSame=function(B,Y){var j=R(B);return this.startOf(Y)<=j&&j<=this.endOf(Y)},z.isAfter=function(B,Y){return R(B)=2&&_%10<=4&&(_%100<10||_%100>=20)?b[1]:b[2])}var f=function(v,m){return u.test(m)?o[v.month()]:a[v.month()]};f.s=a,f.f=o;var d=function(v,m){return u.test(m)?s[v.month()]:l[v.month()]};d.s=l,d.f=s;var h={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:f,monthsShort:d,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:c,mm:c,h:"час",hh:c,d:"день",dd:c,M:"месяц",MM:c,y:"год",yy:c},ordinal:function(v){return v},meridiem:function(v){return v<4?"ночи":v<12?"утра":v<17?"дня":"вечера"}};return i.default.locale(h,null,!0),h})}($0)),$0.exports}pK();var B0={exports:{}},vK=B0.exports,TD;function gK(){return TD||(TD=1,function(e,t){(function(n,r){e.exports=r(KA())})(vK,function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,s){return s==="W"?a+"周":a+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(a,s){var l=100*a+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})}(B0)),B0.exports}gK();var V0={exports:{}},mK=V0.exports,ED;function yK(){return ED||(ED=1,function(e,t){(function(n,r){e.exports=r()})(mK,function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(u,c,f,d){return o.fromToBase(u,c,f,d)}i.en.relativeTime=a,o.fromToBase=function(u,c,f,d,h){for(var v,m,y,_=f.$locale().relativeTime||a,b=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=b.length,S=0;S0,E<=T.r||!T.r){E<=1&&S>0&&(T=b[S-1]);var A=_[T.l];h&&(E=h(""+E)),m=typeof A=="string"?A.replace("%d",E):A(E,c,T.l,y);break}}if(c)return m;var P=y?_.future:_.past;return typeof P=="function"?P(m):P.replace("%s",m)},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)}}})}(V0)),V0.exports}var _K=yK();const bK=Ug(_K);/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Nr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Jt={},Hc=[],Lr=()=>{},xd=()=>!1,Du=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ob=e=>e.startsWith("onUpdate:"),Qt=Object.assign,ab=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yK=Object.prototype.hasOwnProperty,cn=(e,t)=>yK.call(e,t),Je=Array.isArray,Gc=e=>Ef(e)==="[object Map]",Mu=e=>Ef(e)==="[object Set]",RE=e=>Ef(e)==="[object Date]",D5=e=>Ef(e)==="[object RegExp]",bt=e=>typeof e=="function",At=e=>typeof e=="string",Ii=e=>typeof e=="symbol",vn=e=>e!==null&&typeof e=="object",sb=e=>(vn(e)||bt(e))&&bt(e.then)&&bt(e.catch),XA=Object.prototype.toString,Ef=e=>XA.call(e),M5=e=>Ef(e).slice(8,-1),Vg=e=>Ef(e)==="[object Object]",lb=e=>At(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qs=Nr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),L5=Nr("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),ub=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_K=/-(\w)/g,Bn=ub(e=>e.replace(_K,(t,n)=>n?n.toUpperCase():"")),bK=/\B([A-Z])/g,ai=ub(e=>e.replace(bK,"-$1").toLowerCase()),Lu=ub(e=>e.charAt(0).toUpperCase()+e.slice(1)),zc=ub(e=>e?`on${Lu(e)}`:""),ri=(e,t)=>!Object.is(e,t),Wc=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Wv=e=>{const t=parseFloat(e);return isNaN(t)?e:t},jv=e=>{const t=At(e)?Number(e):NaN;return isNaN(t)?e:t};let TD;const Ug=()=>TD||(TD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),SK=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function wK(e){return SK.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function xK(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const TK={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},EK={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},CK={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},AK={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},IK={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},RK="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",ZA=Nr(RK),PK=ZA,ED=2;function N5(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let r=e.split(/(\r?\n)/);const i=r.filter((s,l)=>l%2===1);r=r.filter((s,l)=>l%2===0);let o=0;const a=[];for(let s=0;s=t){for(let l=s-ED;l<=s+ED||n>o;l++){if(l<0||l>=r.length)continue;const u=l+1;a.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}| ${r[l]}`);const c=r[l].length,f=i[l]&&i[l].length||0;if(l===s){const d=t-(o-(c+f)),h=Math.max(1,n>o?c-d:n-t);a.push(" | "+" ".repeat(d)+"^".repeat(h))}else if(l>s){if(n>o){const d=Math.max(Math.min(n-o,c),1);a.push(" | "+"^".repeat(d))}o+=c+f}}break}return a.join(` -`)}function Gr(e){if(Je(e)){const t={};for(let n=0;n{if(n){const r=n.split(DK);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function LK(e){if(!e)return"";if(At(e))return e;let t="";for(const n in e){const r=e[n];if(At(r)||typeof r=="number"){const i=n.startsWith("--")?n:ai(n);t+=`${i}:${r};`}}return t}function rt(e){let t="";if(At(e))t=e;else if(Je(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,nx={};function UK(e){if(nx.hasOwnProperty(e))return nx[e];const t=VK.test(e);return t&&console.error(`unsafe attribute name: ${e}`),nx[e]=!t}const HK={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},GK=Nr("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),zK=Nr("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),WK=Nr("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function jK(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const YK=/["'&<>]/;function XK(e){const t=""+e,n=YK.exec(t);if(!n)return t;let r="",i,o,a=0;for(o=n.index;o||--!>|?@[\\\]^`{|}~]/g;function qK(e,t){return e.replace(G5,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function JK(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&ral(n,t))}const z5=e=>!!(e&&e.__v_isRef===!0),oe=e=>At(e)?e:e==null?"":Je(e)||vn(e)&&(e.toString===XA||!bt(e.toString))?z5(e)?oe(e.value):JSON.stringify(e,W5,2):String(e),W5=(e,t)=>z5(t)?W5(e,t.value):Gc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[rx(r,o)+" =>"]=i,n),{})}:Mu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rx(n))}:Ii(t)?rx(t):vn(t)&&!Je(t)&&!Vg(t)?String(t):t,rx=(e,t="")=>{var n;return Ii(e)?`Symbol(${(n=e.description)!=null?n:t})`:e},QK=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Hc,EMPTY_OBJ:Jt,NO:xd,NOOP:Lr,PatchFlagNames:EK,PatchFlags:TK,ShapeFlags:CK,SlotFlags:AK,camelize:Bn,capitalize:Lu,cssVarNameEscapeSymbolsRE:G5,def:KA,escapeHtml:XK,escapeHtmlComment:ZK,extend:Qt,genCacheKey:xK,genPropsAccessExp:wK,generateCodeFrame:N5,getEscapedCssVarName:qK,getGlobalThis:Ug,hasChanged:ri,hasOwn:cn,hyphenate:ai,includeBooleanAttr:JA,invokeArrayFns:Wc,isArray:Je,isBooleanAttr:BK,isBuiltInDirective:L5,isDate:RE,isFunction:bt,isGloballyAllowed:ZA,isGloballyWhitelisted:PK,isHTMLTag:F5,isIntegerKey:lb,isKnownHtmlAttr:GK,isKnownMathMLAttr:WK,isKnownSvgAttr:zK,isMap:Gc,isMathMLTag:B5,isModelListener:ob,isObject:vn,isOn:Du,isPlainObject:Vg,isPromise:sb,isRegExp:D5,isRenderableAttrValue:jK,isReservedProp:Qs,isSSRSafeAttrName:UK,isSVGTag:$5,isSet:Mu,isSpecialBooleanAttr:H5,isString:At,isSymbol:Ii,isVoidTag:V5,looseEqual:al,looseIndexOf:Hg,looseToNumber:Wv,makeMap:Nr,normalizeClass:rt,normalizeProps:k5,normalizeStyle:Gr,objectToString:XA,parseStringStyle:qA,propsToAttrMap:HK,remove:ab,slotFlagsText:IK,stringifyStyle:LK,toDisplayString:oe,toHandlerKey:zc,toNumber:jv,toRawType:M5,toTypeString:Ef},Symbol.toStringTag,{value:"Module"}));/** +**//*! #__NO_SIDE_EFFECTS__ */function Nr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Jt={},Hc=[],Lr=()=>{},xd=()=>!1,Du=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),sb=e=>e.startsWith("onUpdate:"),Qt=Object.assign,lb=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},SK=Object.prototype.hasOwnProperty,cn=(e,t)=>SK.call(e,t),Je=Array.isArray,Gc=e=>Ef(e)==="[object Map]",Mu=e=>Ef(e)==="[object Set]",OE=e=>Ef(e)==="[object Date]",L5=e=>Ef(e)==="[object RegExp]",bt=e=>typeof e=="function",At=e=>typeof e=="string",Ri=e=>typeof e=="symbol",vn=e=>e!==null&&typeof e=="object",ub=e=>(vn(e)||bt(e))&&bt(e.then)&&bt(e.catch),ZA=Object.prototype.toString,Ef=e=>ZA.call(e),N5=e=>Ef(e).slice(8,-1),Hg=e=>Ef(e)==="[object Object]",cb=e=>At(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qs=Nr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),k5=Nr("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),fb=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},wK=/-(\w)/g,Bn=fb(e=>e.replace(wK,(t,n)=>n?n.toUpperCase():"")),xK=/\B([A-Z])/g,ai=fb(e=>e.replace(xK,"-$1").toLowerCase()),Lu=fb(e=>e.charAt(0).toUpperCase()+e.slice(1)),zc=fb(e=>e?`on${Lu(e)}`:""),ri=(e,t)=>!Object.is(e,t),Wc=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},jv=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Yv=e=>{const t=At(e)?Number(e):NaN;return isNaN(t)?e:t};let CD;const Gg=()=>CD||(CD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),TK=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function EK(e){return TK.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function CK(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const AK={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},IK={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},RK={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},PK={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},OK={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},DK="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",JA=Nr(DK),MK=JA,AD=2;function F5(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let r=e.split(/(\r?\n)/);const i=r.filter((s,l)=>l%2===1);r=r.filter((s,l)=>l%2===0);let o=0;const a=[];for(let s=0;s=t){for(let l=s-AD;l<=s+AD||n>o;l++){if(l<0||l>=r.length)continue;const u=l+1;a.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}| ${r[l]}`);const c=r[l].length,f=i[l]&&i[l].length||0;if(l===s){const d=t-(o-(c+f)),h=Math.max(1,n>o?c-d:n-t);a.push(" | "+" ".repeat(d)+"^".repeat(h))}else if(l>s){if(n>o){const d=Math.max(Math.min(n-o,c),1);a.push(" | "+"^".repeat(d))}o+=c+f}}break}return a.join(` +`)}function Gr(e){if(Je(e)){const t={};for(let n=0;n{if(n){const r=n.split(NK);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function FK(e){if(!e)return"";if(At(e))return e;let t="";for(const n in e){const r=e[n];if(At(r)||typeof r=="number"){const i=n.startsWith("--")?n:ai(n);t+=`${i}:${r};`}}return t}function rt(e){let t="";if(At(e))t=e;else if(Je(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,ix={};function zK(e){if(ix.hasOwnProperty(e))return ix[e];const t=GK.test(e);return t&&console.error(`unsafe attribute name: ${e}`),ix[e]=!t}const WK={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},jK=Nr("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),YK=Nr("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),XK=Nr("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function KK(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const ZK=/["'&<>]/;function qK(e){const t=""+e,n=ZK.exec(t);if(!n)return t;let r="",i,o,a=0;for(o=n.index;o||--!>|?@[\\\]^`{|}~]/g;function eZ(e,t){return e.replace(W5,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function tZ(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&ral(n,t))}const j5=e=>!!(e&&e.__v_isRef===!0),re=e=>At(e)?e:e==null?"":Je(e)||vn(e)&&(e.toString===ZA||!bt(e.toString))?j5(e)?re(e.value):JSON.stringify(e,Y5,2):String(e),Y5=(e,t)=>j5(t)?Y5(e,t.value):Gc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[ox(r,o)+" =>"]=i,n),{})}:Mu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ox(n))}:Ri(t)?ox(t):vn(t)&&!Je(t)&&!Hg(t)?String(t):t,ox=(e,t="")=>{var n;return Ri(e)?`Symbol(${(n=e.description)!=null?n:t})`:e},nZ=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Hc,EMPTY_OBJ:Jt,NO:xd,NOOP:Lr,PatchFlagNames:IK,PatchFlags:AK,ShapeFlags:RK,SlotFlags:PK,camelize:Bn,capitalize:Lu,cssVarNameEscapeSymbolsRE:W5,def:qA,escapeHtml:qK,escapeHtmlComment:QK,extend:Qt,genCacheKey:CK,genPropsAccessExp:EK,generateCodeFrame:F5,getEscapedCssVarName:eZ,getGlobalThis:Gg,hasChanged:ri,hasOwn:cn,hyphenate:ai,includeBooleanAttr:eI,invokeArrayFns:Wc,isArray:Je,isBooleanAttr:HK,isBuiltInDirective:k5,isDate:OE,isFunction:bt,isGloballyAllowed:JA,isGloballyWhitelisted:MK,isHTMLTag:B5,isIntegerKey:cb,isKnownHtmlAttr:jK,isKnownMathMLAttr:XK,isKnownSvgAttr:YK,isMap:Gc,isMathMLTag:U5,isModelListener:sb,isObject:vn,isOn:Du,isPlainObject:Hg,isPromise:ub,isRegExp:L5,isRenderableAttrValue:KK,isReservedProp:Qs,isSSRSafeAttrName:zK,isSVGTag:V5,isSet:Mu,isSpecialBooleanAttr:z5,isString:At,isSymbol:Ri,isVoidTag:H5,looseEqual:al,looseIndexOf:zg,looseToNumber:jv,makeMap:Nr,normalizeClass:rt,normalizeProps:$5,normalizeStyle:Gr,objectToString:ZA,parseStringStyle:QA,propsToAttrMap:WK,remove:lb,slotFlagsText:OK,stringifyStyle:FK,toDisplayString:re,toHandlerKey:zc,toNumber:Yv,toRawType:N5,toTypeString:Ef},Symbol.toStringTag,{value:"Module"}));/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Si;class QA{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Si,!t&&Si&&(this.index=(Si.scopes||(Si.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(rv){let t=rv;for(rv=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;nv;){let t=nv;for(nv=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 K5(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Z5(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),iI(r),eZ(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function PE(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(q5(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function q5(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Xv))return;e.globalVersion=Xv;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!PE(e)){e.flags&=-3;return}const n=$n,r=Oa;$n=e,Oa=!0;try{K5(e);const i=e.fn(e._value);(t.version===0||ri(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{$n=n,Oa=r,Z5(e),e.flags&=-3}}function iI(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)iI(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function eZ(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function tZ(e,t){e.effect instanceof Yv&&(e=e.effect.fn);const n=new Yv(e);t&&Qt(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function nZ(e){e.effect.stop()}let Oa=!0;const J5=[];function Nu(){J5.push(Oa),Oa=!1}function ku(){const e=J5.pop();Oa=e===void 0?!0:e}function CD(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=$n;$n=void 0;try{t()}finally{$n=n}}}let Xv=0;class rZ{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 cb{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(!$n||!Oa||$n===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$n)n=this.activeLink=new rZ($n,this),$n.deps?(n.prevDep=$n.depsTail,$n.depsTail.nextDep=n,$n.depsTail=n):$n.deps=$n.depsTail=n,Q5(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=$n.depsTail,n.nextDep=void 0,$n.depsTail.nextDep=n,$n.depsTail=n,$n.deps===n&&($n.deps=r)}return n}trigger(t){this.version++,Xv++,this.notify(t)}notify(t){nI();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{rI()}}}function Q5(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)Q5(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const z_=new WeakMap,jc=Symbol(""),OE=Symbol(""),Kv=Symbol("");function ii(e,t,n){if(Oa&&$n){let r=z_.get(e);r||z_.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new cb),i.map=r,i.key=n),i.track()}}function zs(e,t,n,r,i,o){const a=z_.get(e);if(!a){Xv++;return}const s=l=>{l&&l.trigger()};if(nI(),t==="clear")a.forEach(s);else{const l=Je(e),u=l&&lb(n);if(l&&n==="length"){const c=Number(r);a.forEach((f,d)=>{(d==="length"||d===Kv||!Ii(d)&&d>=c)&&s(f)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(Kv)),t){case"add":l?u&&s(a.get("length")):(s(a.get(jc)),Gc(e)&&s(a.get(OE)));break;case"delete":l||(s(a.get(jc)),Gc(e)&&s(a.get(OE)));break;case"set":Gc(e)&&s(a.get(jc));break}}rI()}function iZ(e,t){const n=z_.get(e);return n&&n.get(t)}function jf(e){const t=an(e);return t===e?t:(ii(t,"iterate",Kv),xo(e)?t:t.map(oi))}function fb(e){return ii(e=an(e),"iterate",Kv),e}const oZ={__proto__:null,[Symbol.iterator](){return ox(this,Symbol.iterator,oi)},concat(...e){return jf(this).concat(...e.map(t=>Je(t)?jf(t):t))},entries(){return ox(this,"entries",e=>(e[1]=oi(e[1]),e))},every(e,t){return Rs(this,"every",e,t,void 0,arguments)},filter(e,t){return Rs(this,"filter",e,t,n=>n.map(oi),arguments)},find(e,t){return Rs(this,"find",e,t,oi,arguments)},findIndex(e,t){return Rs(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Rs(this,"findLast",e,t,oi,arguments)},findLastIndex(e,t){return Rs(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Rs(this,"forEach",e,t,void 0,arguments)},includes(...e){return ax(this,"includes",e)},indexOf(...e){return ax(this,"indexOf",e)},join(e){return jf(this).join(e)},lastIndexOf(...e){return ax(this,"lastIndexOf",e)},map(e,t){return Rs(this,"map",e,t,void 0,arguments)},pop(){return Qh(this,"pop")},push(...e){return Qh(this,"push",e)},reduce(e,...t){return AD(this,"reduce",e,t)},reduceRight(e,...t){return AD(this,"reduceRight",e,t)},shift(){return Qh(this,"shift")},some(e,t){return Rs(this,"some",e,t,void 0,arguments)},splice(...e){return Qh(this,"splice",e)},toReversed(){return jf(this).toReversed()},toSorted(e){return jf(this).toSorted(e)},toSpliced(...e){return jf(this).toSpliced(...e)},unshift(...e){return Qh(this,"unshift",e)},values(){return ox(this,"values",oi)}};function ox(e,t,n){const r=fb(e),i=r[t]();return r!==e&&!xo(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const aZ=Array.prototype;function Rs(e,t,n,r,i,o){const a=fb(e),s=a!==e&&!xo(e),l=a[t];if(l!==aZ[t]){const f=l.apply(e,o);return s?oi(f):f}let u=n;a!==e&&(s?u=function(f,d){return n.call(this,oi(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(a,u,r);return s&&i?i(c):c}function AD(e,t,n,r){const i=fb(e);let o=n;return i!==e&&(xo(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,oi(s),l,e)}),i[t](o,...r)}function ax(e,t,n){const r=an(e);ii(r,"iterate",Kv);const i=r[t](...n);return(i===-1||i===!1)&&pb(n[0])?(n[0]=an(n[0]),r[t](...n)):i}function Qh(e,t,n=[]){Nu(),nI();const r=an(e)[t].apply(e,n);return rI(),ku(),r}const sZ=Nr("__proto__,__v_isRef,__isVue"),e$=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ii));function lZ(e){Ii(e)||(e=String(e));const t=an(this);return ii(t,"has",e),t.hasOwnProperty(e)}class t${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?s$:a$:o?o$:i$).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Je(t);if(!i){let l;if(a&&(l=oZ[n]))return l;if(n==="hasOwnProperty")return lZ}const s=Reflect.get(t,n,ut(t)?t:r);return(Ii(n)?e$.has(n):sZ(n))||(i||ii(t,"get",n),o)?s:ut(s)?a&&lb(n)?s:s.value:vn(s)?i?Gg(s):La(s):s}}class n$ extends t${constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];if(!this._isShallow){const l=wu(o);if(!xo(r)&&!wu(r)&&(o=an(o),r=an(r)),!Je(t)&&ut(o)&&!ut(r))return l?!1:(o.value=r,!0)}const a=Je(t)&&lb(n)?Number(n)e,fy=e=>Reflect.getPrototypeOf(e);function hZ(e,t,n){return function(...r){const i=this.__v_raw,o=an(i),a=Gc(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=i[e](...r),c=n?DE:t?ME:oi;return!t&&ii(o,"iterate",l?OE:jc),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function dy(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function pZ(e,t){const n={get(i){const o=this.__v_raw,a=an(o),s=an(i);e||(ri(i,s)&&ii(a,"get",i),ii(a,"get",s));const{has:l}=fy(a),u=t?DE:e?ME:oi;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&&ii(an(i),"iterate",jc),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,a=an(o),s=an(i);return e||(ri(i,s)&&ii(a,"has",i),ii(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=an(s),u=t?DE:e?ME:oi;return!e&&ii(l,"iterate",jc),s.forEach((c,f)=>i.call(o,u(c),u(f),a))}};return Qt(n,e?{add:dy("add"),set:dy("set"),delete:dy("delete"),clear:dy("clear")}:{add(i){!t&&!xo(i)&&!wu(i)&&(i=an(i));const o=an(this);return fy(o).has.call(o,i)||(o.add(i),zs(o,"add",i,i)),this},set(i,o){!t&&!xo(o)&&!wu(o)&&(o=an(o));const a=an(this),{has:s,get:l}=fy(a);let u=s.call(a,i);u||(i=an(i),u=s.call(a,i));const c=l.call(a,i);return a.set(i,o),u?ri(o,c)&&zs(a,"set",i,o):zs(a,"add",i,o),this},delete(i){const o=an(this),{has:a,get:s}=fy(o);let l=a.call(o,i);l||(i=an(i),l=a.call(o,i)),s&&s.call(o,i);const u=o.delete(i);return l&&zs(o,"delete",i,void 0),u},clear(){const i=an(this),o=i.size!==0,a=i.clear();return o&&zs(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=hZ(i,e,t)}),n}function db(e,t){const n=pZ(e,t);return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(cn(n,i)&&i in r?n:r,i,o)}const vZ={get:db(!1,!1)},gZ={get:db(!1,!0)},mZ={get:db(!0,!1)},yZ={get:db(!0,!0)},i$=new WeakMap,o$=new WeakMap,a$=new WeakMap,s$=new WeakMap;function _Z(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bZ(e){return e.__v_skip||!Object.isExtensible(e)?0:_Z(M5(e))}function La(e){return wu(e)?e:hb(e,!1,uZ,vZ,i$)}function oI(e){return hb(e,!1,fZ,gZ,o$)}function Gg(e){return hb(e,!0,cZ,mZ,a$)}function SZ(e){return hb(e,!0,dZ,yZ,s$)}function hb(e,t,n,r,i){if(!vn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=bZ(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function hu(e){return wu(e)?hu(e.__v_raw):!!(e&&e.__v_isReactive)}function wu(e){return!!(e&&e.__v_isReadonly)}function xo(e){return!!(e&&e.__v_isShallow)}function pb(e){return e?!!e.__v_raw:!1}function an(e){const t=e&&e.__v_raw;return t?an(t):e}function l$(e){return!cn(e,"__v_skip")&&Object.isExtensible(e)&&KA(e,"__v_skip",!0),e}const oi=e=>vn(e)?La(e):e,ME=e=>vn(e)?Gg(e):e;function ut(e){return e?e.__v_isRef===!0:!1}function Fe(e){return u$(e,!1)}function Cf(e){return u$(e,!0)}function u$(e,t){return ut(e)?e:new wZ(e,t)}class wZ{constructor(t,n){this.dep=new cb,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:an(t),this._value=n?t:oi(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||xo(t)||wu(t);t=r?t:an(t),ri(t,n)&&(this._rawValue=t,this._value=r?t:oi(t),this.dep.trigger())}}function LE(e){e.dep&&e.dep.trigger()}function N(e){return ut(e)?e.value:e}function xZ(e){return bt(e)?e():N(e)}const TZ={get:(e,t,n)=>t==="__v_raw"?e:N(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ut(i)&&!ut(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function aI(e){return hu(e)?e:new Proxy(e,TZ)}class EZ{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new cb,{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 sI(e){return new EZ(e)}function CZ(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=f$(e,n);return t}class AZ{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 iZ(an(this._object),this._key)}}class IZ{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 c$(e,t,n){return ut(e)?e:bt(e)?new IZ(e):vn(e)&&arguments.length>1?f$(e,t,n):Fe(e)}function f$(e,t,n){const r=e[t];return ut(r)?r:new AZ(e,t,n)}class RZ{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new cb(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Xv-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&$n!==this)return X5(this,!0),!0}get value(){const t=this.dep.track();return q5(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function PZ(e,t,n=!1){let r,i;return bt(e)?r=e:(r=e.get,i=e.set),new RZ(r,i,n)}const OZ={GET:"get",HAS:"has",ITERATE:"iterate"},DZ={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},hy={},W_=new WeakMap;let Xl;function MZ(){return Xl}function d$(e,t=!1,n=Xl){if(n){let r=W_.get(n);r||W_.set(n,r=[]),r.push(e)}}function LZ(e,t,n=Jt){const{immediate:r,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=n,u=S=>i?S:xo(S)||i===!1||i===0?Ws(S,1):Ws(S);let c,f,d,h,v=!1,m=!1;if(ut(e)?(f=()=>e.value,v=xo(e)):hu(e)?(f=()=>u(e),v=!0):Je(e)?(m=!0,v=e.some(S=>hu(S)||xo(S)),f=()=>e.map(S=>{if(ut(S))return S.value;if(hu(S))return u(S);if(bt(S))return l?l(S,2):S()})):bt(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Nu();try{d()}finally{ku()}}const S=Xl;Xl=c;try{return l?l(e,3,[h]):e(h)}finally{Xl=S}}:f=Lr,t&&i){const S=f,E=i===!0?1/0:i;f=()=>Ws(S(),E)}const y=eI(),_=()=>{c.stop(),y&&y.active&&ab(y.effects,c)};if(o&&t){const S=t;t=(...E)=>{S(...E),_()}}let b=m?new Array(e.length).fill(hy):hy;const w=S=>{if(!(!(c.flags&1)||!c.dirty&&!S))if(t){const E=c.run();if(i||v||(m?E.some((T,A)=>ri(T,b[A])):ri(E,b))){d&&d();const T=Xl;Xl=c;try{const A=[E,b===hy?void 0:m&&b[0]===hy?[]:b,h];l?l(t,3,A):t(...A),b=E}finally{Xl=T}}}else c.run()};return s&&s(w),c=new Yv(f),c.scheduler=a?()=>a(w,!1):w,h=S=>d$(S,!1,c),d=c.onStop=()=>{const S=W_.get(c);if(S){if(l)l(S,4);else for(const E of S)E();W_.delete(c)}},t?r?w(!0):b=c.run():a?a(w.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function Ws(e,t=1/0,n){if(t<=0||!vn(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ut(e))Ws(e.value,t,n);else if(Je(e))for(let r=0;r{Ws(r,t,n)});else if(Vg(e)){for(const r in e)Ws(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ws(e[r],t,n)}return e}/** +**/let wi;class tI{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=wi,!t&&wi&&(this.index=(wi.scopes||(wi.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(rv){let t=rv;for(rv=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;nv;){let t=nv;for(nv=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 q5(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function J5(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),aI(r),rZ(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function DE(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Q5(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Q5(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kv))return;e.globalVersion=Kv;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!DE(e)){e.flags&=-3;return}const n=$n,r=Oa;$n=e,Oa=!0;try{q5(e);const i=e.fn(e._value);(t.version===0||ri(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{$n=n,Oa=r,J5(e),e.flags&=-3}}function aI(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)aI(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function rZ(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function iZ(e,t){e.effect instanceof Xv&&(e=e.effect.fn);const n=new Xv(e);t&&Qt(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function oZ(e){e.effect.stop()}let Oa=!0;const e$=[];function Nu(){e$.push(Oa),Oa=!1}function ku(){const e=e$.pop();Oa=e===void 0?!0:e}function ID(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=$n;$n=void 0;try{t()}finally{$n=n}}}let Kv=0;class aZ{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 db{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(!$n||!Oa||$n===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$n)n=this.activeLink=new aZ($n,this),$n.deps?(n.prevDep=$n.depsTail,$n.depsTail.nextDep=n,$n.depsTail=n):$n.deps=$n.depsTail=n,t$(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=$n.depsTail,n.nextDep=void 0,$n.depsTail.nextDep=n,$n.depsTail=n,$n.deps===n&&($n.deps=r)}return n}trigger(t){this.version++,Kv++,this.notify(t)}notify(t){iI();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{oI()}}}function t$(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)t$(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const j_=new WeakMap,jc=Symbol(""),ME=Symbol(""),Zv=Symbol("");function ii(e,t,n){if(Oa&&$n){let r=j_.get(e);r||j_.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new db),i.map=r,i.key=n),i.track()}}function zs(e,t,n,r,i,o){const a=j_.get(e);if(!a){Kv++;return}const s=l=>{l&&l.trigger()};if(iI(),t==="clear")a.forEach(s);else{const l=Je(e),u=l&&cb(n);if(l&&n==="length"){const c=Number(r);a.forEach((f,d)=>{(d==="length"||d===Zv||!Ri(d)&&d>=c)&&s(f)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(Zv)),t){case"add":l?u&&s(a.get("length")):(s(a.get(jc)),Gc(e)&&s(a.get(ME)));break;case"delete":l||(s(a.get(jc)),Gc(e)&&s(a.get(ME)));break;case"set":Gc(e)&&s(a.get(jc));break}}oI()}function sZ(e,t){const n=j_.get(e);return n&&n.get(t)}function jf(e){const t=sn(e);return t===e?t:(ii(t,"iterate",Zv),xo(e)?t:t.map(oi))}function hb(e){return ii(e=sn(e),"iterate",Zv),e}const lZ={__proto__:null,[Symbol.iterator](){return sx(this,Symbol.iterator,oi)},concat(...e){return jf(this).concat(...e.map(t=>Je(t)?jf(t):t))},entries(){return sx(this,"entries",e=>(e[1]=oi(e[1]),e))},every(e,t){return Rs(this,"every",e,t,void 0,arguments)},filter(e,t){return Rs(this,"filter",e,t,n=>n.map(oi),arguments)},find(e,t){return Rs(this,"find",e,t,oi,arguments)},findIndex(e,t){return Rs(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Rs(this,"findLast",e,t,oi,arguments)},findLastIndex(e,t){return Rs(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Rs(this,"forEach",e,t,void 0,arguments)},includes(...e){return lx(this,"includes",e)},indexOf(...e){return lx(this,"indexOf",e)},join(e){return jf(this).join(e)},lastIndexOf(...e){return lx(this,"lastIndexOf",e)},map(e,t){return Rs(this,"map",e,t,void 0,arguments)},pop(){return Qh(this,"pop")},push(...e){return Qh(this,"push",e)},reduce(e,...t){return RD(this,"reduce",e,t)},reduceRight(e,...t){return RD(this,"reduceRight",e,t)},shift(){return Qh(this,"shift")},some(e,t){return Rs(this,"some",e,t,void 0,arguments)},splice(...e){return Qh(this,"splice",e)},toReversed(){return jf(this).toReversed()},toSorted(e){return jf(this).toSorted(e)},toSpliced(...e){return jf(this).toSpliced(...e)},unshift(...e){return Qh(this,"unshift",e)},values(){return sx(this,"values",oi)}};function sx(e,t,n){const r=hb(e),i=r[t]();return r!==e&&!xo(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const uZ=Array.prototype;function Rs(e,t,n,r,i,o){const a=hb(e),s=a!==e&&!xo(e),l=a[t];if(l!==uZ[t]){const f=l.apply(e,o);return s?oi(f):f}let u=n;a!==e&&(s?u=function(f,d){return n.call(this,oi(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(a,u,r);return s&&i?i(c):c}function RD(e,t,n,r){const i=hb(e);let o=n;return i!==e&&(xo(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,oi(s),l,e)}),i[t](o,...r)}function lx(e,t,n){const r=sn(e);ii(r,"iterate",Zv);const i=r[t](...n);return(i===-1||i===!1)&&gb(n[0])?(n[0]=sn(n[0]),r[t](...n)):i}function Qh(e,t,n=[]){Nu(),iI();const r=sn(e)[t].apply(e,n);return oI(),ku(),r}const cZ=Nr("__proto__,__v_isRef,__isVue"),n$=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ri));function fZ(e){Ri(e)||(e=String(e));const t=sn(this);return ii(t,"has",e),t.hasOwnProperty(e)}class r${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?u$:l$:o?s$:a$).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Je(t);if(!i){let l;if(a&&(l=lZ[n]))return l;if(n==="hasOwnProperty")return fZ}const s=Reflect.get(t,n,st(t)?t:r);return(Ri(n)?n$.has(n):cZ(n))||(i||ii(t,"get",n),o)?s:st(s)?a&&cb(n)?s:s.value:vn(s)?i?Wg(s):La(s):s}}class i$ extends r${constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];if(!this._isShallow){const l=wu(o);if(!xo(r)&&!wu(r)&&(o=sn(o),r=sn(r)),!Je(t)&&st(o)&&!st(r))return l?!1:(o.value=r,!0)}const a=Je(t)&&cb(n)?Number(n)e,hy=e=>Reflect.getPrototypeOf(e);function gZ(e,t,n){return function(...r){const i=this.__v_raw,o=sn(i),a=Gc(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=i[e](...r),c=n?LE:t?NE:oi;return!t&&ii(o,"iterate",l?ME:jc),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function py(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mZ(e,t){const n={get(i){const o=this.__v_raw,a=sn(o),s=sn(i);e||(ri(i,s)&&ii(a,"get",i),ii(a,"get",s));const{has:l}=hy(a),u=t?LE:e?NE:oi;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&&ii(sn(i),"iterate",jc),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,a=sn(o),s=sn(i);return e||(ri(i,s)&&ii(a,"has",i),ii(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=sn(s),u=t?LE:e?NE:oi;return!e&&ii(l,"iterate",jc),s.forEach((c,f)=>i.call(o,u(c),u(f),a))}};return Qt(n,e?{add:py("add"),set:py("set"),delete:py("delete"),clear:py("clear")}:{add(i){!t&&!xo(i)&&!wu(i)&&(i=sn(i));const o=sn(this);return hy(o).has.call(o,i)||(o.add(i),zs(o,"add",i,i)),this},set(i,o){!t&&!xo(o)&&!wu(o)&&(o=sn(o));const a=sn(this),{has:s,get:l}=hy(a);let u=s.call(a,i);u||(i=sn(i),u=s.call(a,i));const c=l.call(a,i);return a.set(i,o),u?ri(o,c)&&zs(a,"set",i,o):zs(a,"add",i,o),this},delete(i){const o=sn(this),{has:a,get:s}=hy(o);let l=a.call(o,i);l||(i=sn(i),l=a.call(o,i)),s&&s.call(o,i);const u=o.delete(i);return l&&zs(o,"delete",i,void 0),u},clear(){const i=sn(this),o=i.size!==0,a=i.clear();return o&&zs(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=gZ(i,e,t)}),n}function pb(e,t){const n=mZ(e,t);return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(cn(n,i)&&i in r?n:r,i,o)}const yZ={get:pb(!1,!1)},_Z={get:pb(!1,!0)},bZ={get:pb(!0,!1)},SZ={get:pb(!0,!0)},a$=new WeakMap,s$=new WeakMap,l$=new WeakMap,u$=new WeakMap;function wZ(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xZ(e){return e.__v_skip||!Object.isExtensible(e)?0:wZ(N5(e))}function La(e){return wu(e)?e:vb(e,!1,dZ,yZ,a$)}function sI(e){return vb(e,!1,pZ,_Z,s$)}function Wg(e){return vb(e,!0,hZ,bZ,l$)}function TZ(e){return vb(e,!0,vZ,SZ,u$)}function vb(e,t,n,r,i){if(!vn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=xZ(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function hu(e){return wu(e)?hu(e.__v_raw):!!(e&&e.__v_isReactive)}function wu(e){return!!(e&&e.__v_isReadonly)}function xo(e){return!!(e&&e.__v_isShallow)}function gb(e){return e?!!e.__v_raw:!1}function sn(e){const t=e&&e.__v_raw;return t?sn(t):e}function c$(e){return!cn(e,"__v_skip")&&Object.isExtensible(e)&&qA(e,"__v_skip",!0),e}const oi=e=>vn(e)?La(e):e,NE=e=>vn(e)?Wg(e):e;function st(e){return e?e.__v_isRef===!0:!1}function Fe(e){return f$(e,!1)}function Cf(e){return f$(e,!0)}function f$(e,t){return st(e)?e:new EZ(e,t)}class EZ{constructor(t,n){this.dep=new db,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:sn(t),this._value=n?t:oi(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||xo(t)||wu(t);t=r?t:sn(t),ri(t,n)&&(this._rawValue=t,this._value=r?t:oi(t),this.dep.trigger())}}function kE(e){e.dep&&e.dep.trigger()}function N(e){return st(e)?e.value:e}function CZ(e){return bt(e)?e():N(e)}const AZ={get:(e,t,n)=>t==="__v_raw"?e:N(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return st(i)&&!st(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function lI(e){return hu(e)?e:new Proxy(e,AZ)}class IZ{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new db,{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 uI(e){return new IZ(e)}function RZ(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=h$(e,n);return t}class PZ{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 sZ(sn(this._object),this._key)}}class OZ{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 d$(e,t,n){return st(e)?e:bt(e)?new OZ(e):vn(e)&&arguments.length>1?h$(e,t,n):Fe(e)}function h$(e,t,n){const r=e[t];return st(r)?r:new PZ(e,t,n)}class DZ{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new db(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kv-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&$n!==this)return Z5(this,!0),!0}get value(){const t=this.dep.track();return Q5(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function MZ(e,t,n=!1){let r,i;return bt(e)?r=e:(r=e.get,i=e.set),new DZ(r,i,n)}const LZ={GET:"get",HAS:"has",ITERATE:"iterate"},NZ={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},vy={},Y_=new WeakMap;let Xl;function kZ(){return Xl}function p$(e,t=!1,n=Xl){if(n){let r=Y_.get(n);r||Y_.set(n,r=[]),r.push(e)}}function FZ(e,t,n=Jt){const{immediate:r,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=n,u=S=>i?S:xo(S)||i===!1||i===0?Ws(S,1):Ws(S);let c,f,d,h,v=!1,m=!1;if(st(e)?(f=()=>e.value,v=xo(e)):hu(e)?(f=()=>u(e),v=!0):Je(e)?(m=!0,v=e.some(S=>hu(S)||xo(S)),f=()=>e.map(S=>{if(st(S))return S.value;if(hu(S))return u(S);if(bt(S))return l?l(S,2):S()})):bt(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Nu();try{d()}finally{ku()}}const S=Xl;Xl=c;try{return l?l(e,3,[h]):e(h)}finally{Xl=S}}:f=Lr,t&&i){const S=f,T=i===!0?1/0:i;f=()=>Ws(S(),T)}const y=nI(),_=()=>{c.stop(),y&&y.active&&lb(y.effects,c)};if(o&&t){const S=t;t=(...T)=>{S(...T),_()}}let b=m?new Array(e.length).fill(vy):vy;const w=S=>{if(!(!(c.flags&1)||!c.dirty&&!S))if(t){const T=c.run();if(i||v||(m?T.some((E,A)=>ri(E,b[A])):ri(T,b))){d&&d();const E=Xl;Xl=c;try{const A=[T,b===vy?void 0:m&&b[0]===vy?[]:b,h];l?l(t,3,A):t(...A),b=T}finally{Xl=E}}}else c.run()};return s&&s(w),c=new Xv(f),c.scheduler=a?()=>a(w,!1):w,h=S=>p$(S,!1,c),d=c.onStop=()=>{const S=Y_.get(c);if(S){if(l)l(S,4);else for(const T of S)T();Y_.delete(c)}},t?r?w(!0):b=c.run():a?a(w.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function Ws(e,t=1/0,n){if(t<=0||!vn(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,st(e))Ws(e.value,t,n);else if(Je(e))for(let r=0;r{Ws(r,t,n)});else if(Hg(e)){for(const r in e)Ws(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ws(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const h$=[];function NZ(e){h$.push(e)}function kZ(){h$.pop()}function FZ(e,t){}const $Z={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},BZ={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function bh(e,t,n,r){try{return r?e(...r):e()}catch(i){Af(i,t,n)}}function ia(e,t,n,r){if(bt(e)){const i=bh(e,t,n,r);return i&&sb(i)&&i.catch(o=>{Af(o,t,n)}),i}if(Je(e)){const i=[];for(let o=0;o>>1,i=xi[r],o=qv(i);o=qv(n)?xi.push(e):xi.splice(UZ(t),0,e),e.flags|=1,v$()}}function v$(){j_||(j_=p$.then(g$))}function Zv(e){Je(e)?Dd.push(...e):Kl&&e.id===-1?Kl.splice(pd+1,0,e):e.flags&1||(Dd.push(e),e.flags|=1),v$()}function ID(e,t,n=Za+1){for(;nqv(n)-qv(r));if(Dd.length=0,Kl){Kl.push(...t);return}for(Kl=t,pd=0;pde.id==null?e.flags&2?-1:1/0:e.id;function g$(e){try{for(Za=0;Zavd.emit(i,...o)),py=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{m$(o,t)}),setTimeout(()=>{vd||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,py=[])},3e3)):py=[]}let Er=null,vb=null;function Jv(e){const t=Er;return Er=e,vb=e&&e.type.__scopeId||null,t}function HZ(e){vb=e}function GZ(){vb=null}const zZ=e=>Mr;function Mr(e,t=Er,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&HE(-1);const o=Jv(t);let a;try{a=e(...i)}finally{Jv(o),r._d&&HE(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function _t(e,t){if(Er===null)return e;const n=Yg(Er),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,iv=e=>e&&(e.disabled||e.disabled===""),RD=e=>e&&(e.defer||e.defer===""),PD=e=>typeof SVGElement<"u"&&e instanceof SVGElement,OD=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,NE=(e,t)=>{const n=e&&e.to;return At(n)?t?t(n):null:n},b$={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:m,createComment:y}}=u,_=iv(t.props);let{shapeFlag:b,children:w,dynamicChildren:S}=t;if(e==null){const E=t.el=m(""),T=t.anchor=m("");h(E,n,r),h(T,n,r);const A=(I,R)=>{b&16&&(i&&i.isCE&&(i.ce._teleportTarget=I),c(w,I,R,i,o,a,s,l))},P=()=>{const I=t.target=NE(t.props,v),R=S$(I,t,m,h);I&&(a!=="svg"&&PD(I)?a="svg":a!=="mathml"&&OD(I)&&(a="mathml"),_||(A(I,R),B0(t,!1)))};_&&(A(n,T),B0(t,!0)),RD(t.props)?xr(()=>{P(),t.el.__isMounted=!0},o):P()}else{if(RD(t.props)&&!e.el.__isMounted){xr(()=>{b$.process(e,t,n,r,i,o,a,s,l,u),delete e.el.__isMounted},o);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,T=t.target=e.target,A=t.targetAnchor=e.targetAnchor,P=iv(e.props),I=P?n:T,R=P?E:A;if(a==="svg"||PD(T)?a="svg":(a==="mathml"||OD(T))&&(a="mathml"),S?(d(e.dynamicChildren,S,I,i,o,a,s),_I(e,t,!0)):l||f(e,t,I,R,i,o,a,s,!1),_)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):vy(t,n,E,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const O=t.target=NE(t.props,v);O&&vy(t,O,null,u,0)}else P&&vy(t,T,A,u,1);B0(t,_)}},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(i(u),i(c)),o&&i(l),a&16){const h=o||!iv(d);for(let v=0;v{e.isMounted=!0}),Wg(()=>{e.isUnmounting=!0}),e}const Bo=[Function,Array],cI={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Bo,onEnter:Bo,onAfterEnter:Bo,onEnterCancelled:Bo,onBeforeLeave:Bo,onLeave:Bo,onAfterLeave:Bo,onLeaveCancelled:Bo,onBeforeAppear:Bo,onAppear:Bo,onAfterAppear:Bo,onAppearCancelled:Bo},w$=e=>{const t=e.subTree;return t.component?w$(t.component):t},YZ={name:"BaseTransition",props:cI,setup(e,{slots:t}){const n=br(),r=uI();return()=>{const i=t.default&&gb(t.default(),!0);if(!i||!i.length)return;const o=x$(i),a=an(e),{mode:s}=a;if(r.isLeaving)return sx(o);const l=DD(o);if(!l)return sx(o);let u=Xd(l,a,r,n,f=>u=f);l.type!==yr&&sl(l,u);let c=n.subTree&&DD(n.subTree);if(c&&c.type!==yr&&!Aa(l,c)&&w$(n).type!==yr){let f=Xd(c,a,r,n);if(sl(c,f),s==="out-in"&&l.type!==yr)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},sx(o);s==="in-out"&&l.type!==yr?f.delayLeave=(d,h,v)=>{const m=E$(r,c);m[String(c.key)]=c,d[Zl]=()=>{h(),d[Zl]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function x$(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==yr){t=n;break}}return t}const T$=YZ;function E$(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Xd(e,t,n,r,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:y,onAppear:_,onAfterAppear:b,onAppearCancelled:w}=t,S=String(e.key),E=E$(n,e),T=(I,R)=>{I&&ia(I,r,9,R)},A=(I,R)=>{const O=R[1];T(I,R),Je(I)?I.every(M=>M.length<=1)&&O():I.length<=1&&O()},P={mode:a,persisted:s,beforeEnter(I){let R=l;if(!n.isMounted)if(o)R=y||l;else return;I[Zl]&&I[Zl](!0);const O=E[S];O&&Aa(e,O)&&O.el[Zl]&&O.el[Zl](),T(R,[I])},enter(I){let R=u,O=c,M=f;if(!n.isMounted)if(o)R=_||u,O=b||c,M=w||f;else return;let $=!1;const F=I[gy]=z=>{$||($=!0,z?T(M,[I]):T(O,[I]),P.delayedLeave&&P.delayedLeave(),I[gy]=void 0)};R?A(R,[I,F]):F()},leave(I,R){const O=String(e.key);if(I[gy]&&I[gy](!0),n.isUnmounting)return R();T(d,[I]);let M=!1;const $=I[Zl]=F=>{M||(M=!0,R(),F?T(m,[I]):T(v,[I]),I[Zl]=void 0,E[O]===e&&delete E[O])};E[O]=e,h?A(h,[I,$]):$()},clone(I){const R=Xd(I,t,n,r,i);return i&&i(R),R}};return P}function sx(e){if(zg(e))return e=ls(e),e.children=null,e}function DD(e){if(!zg(e))return _$(e.type)&&e.children?x$(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&bt(n.default))return n.default()}}function sl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,sl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gb(e,t=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;on.value,set:o=>n.value=o})}return n}function Qv(e,t,n,r,i=!1){if(Je(e)){e.forEach((v,m)=>Qv(v,t&&(Je(t)?t[m]:t),n,r,i));return}if(pu(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Qv(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Yg(r.component):r.el,a=i?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Jt?s.refs={}:s.refs,f=s.setupState,d=an(f),h=f===Jt?()=>!1:v=>cn(d,v);if(u!=null&&u!==l&&(At(u)?(c[u]=null,h(u)&&(f[u]=null)):ut(u)&&(u.value=null)),bt(l))bh(l,s,12,[a,c]);else{const v=At(l),m=ut(l);if(v||m){const y=()=>{if(e.f){const _=v?h(l)?f[l]:c[l]:l.value;i?Je(_)&&ab(_,o):Je(_)?_.includes(o)||_.push(o):v?(c[l]=[o],h(l)&&(f[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else v?(c[l]=a,h(l)&&(f[l]=a)):m&&(l.value=a,e.k&&(c[e.k]=a))};a?(y.id=-1,xr(y,n)):y()}}}let MD=!1;const Yf=()=>{MD||(console.error("Hydration completed but contains mismatches."),MD=!0)},ZZ=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",qZ=e=>e.namespaceURI.includes("MathML"),my=e=>{if(e.nodeType===1){if(ZZ(e))return"svg";if(qZ(e))return"mathml"}},Td=e=>e.nodeType===8;function JZ(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:u}}=e,c=(w,S)=>{if(!S.hasChildNodes()){n(null,w,S),Y_(),S._vnode=w;return}f(S.firstChild,w,null,null,null),Y_(),S._vnode=w},f=(w,S,E,T,A,P=!1)=>{P=P||!!S.dynamicChildren;const I=Td(w)&&w.data==="[",R=()=>m(w,S,E,T,A,I),{type:O,ref:M,shapeFlag:$,patchFlag:F}=S;let z=w.nodeType;S.el=w,F===-2&&(P=!1,S.dynamicChildren=null);let B=null;switch(O){case el:z!==3?S.children===""?(l(S.el=i(""),a(w),w),B=w):B=R():(w.data!==S.children&&(Yf(),w.data=S.children),B=o(w));break;case yr:b(w)?(B=o(w),_(S.el=w.content.firstChild,w,E)):z!==8||I?B=R():B=o(w);break;case Xc:if(I&&(w=o(w),z=w.nodeType),z===1||z===3){B=w;const Y=!S.children.length;for(let j=0;j{P=P||!!S.dynamicChildren;const{type:I,props:R,patchFlag:O,shapeFlag:M,dirs:$,transition:F}=S,z=I==="input"||I==="option";if(z||O!==-1){$&&qa(S,null,E,"created");let B=!1;if(b(w)){B=Z$(null,F)&&E&&E.vnode.props&&E.vnode.props.appear;const j=w.content.firstChild;B&&F.beforeEnter(j),_(j,w,E),S.el=w=j}if(M&16&&!(R&&(R.innerHTML||R.textContent))){let j=h(w.firstChild,S,w,E,T,A,P);for(;j;){yy(w,1)||Yf();const ae=j;j=j.nextSibling,s(ae)}}else if(M&8){let j=S.children;j[0]===` -`&&(w.tagName==="PRE"||w.tagName==="TEXTAREA")&&(j=j.slice(1)),w.textContent!==j&&(yy(w,0)||Yf(),w.textContent=S.children)}if(R){if(z||!P||O&48){const j=w.tagName.includes("-");for(const ae in R)(z&&(ae.endsWith("value")||ae==="indeterminate")||Du(ae)&&!Qs(ae)||ae[0]==="."||j)&&r(w,ae,null,R[ae],void 0,E)}else if(R.onClick)r(w,"onClick",null,R.onClick,void 0,E);else if(O&4&&hu(R.style))for(const j in R.style)R.style[j]}let Y;(Y=R&&R.onVnodeBeforeMount)&&Hi(Y,E,S),$&&qa(S,null,E,"beforeMount"),((Y=R&&R.onVnodeMounted)||$||B)&&o4(()=>{Y&&Hi(Y,E,S),B&&F.enter(w),$&&qa(S,null,E,"mounted")},T)}return w.nextSibling},h=(w,S,E,T,A,P,I)=>{I=I||!!S.dynamicChildren;const R=S.children,O=R.length;for(let M=0;M{const{slotScopeIds:I}=S;I&&(A=A?A.concat(I):I);const R=a(w),O=h(o(w),S,R,E,T,A,P);return O&&Td(O)&&O.data==="]"?o(S.anchor=O):(Yf(),l(S.anchor=u("]"),R,O),O)},m=(w,S,E,T,A,P)=>{if(yy(w.parentElement,1)||Yf(),S.el=null,P){const O=y(w);for(;;){const M=o(w);if(M&&M!==O)s(M);else break}}const I=o(w),R=a(w);return s(w),n(null,S,R,I,E,T,my(R),A),E&&(E.vnode.el=S.el,Sb(E,S.el)),I},y=(w,S="[",E="]")=>{let T=0;for(;w;)if(w=o(w),w&&Td(w)&&(w.data===S&&T++,w.data===E)){if(T===0)return o(w);T--}return w},_=(w,S,E)=>{const T=S.parentNode;T&&T.replaceChild(w,S);let A=E;for(;A;)A.vnode.el===S&&(A.vnode.el=A.subTree.el=w),A=A.parent},b=w=>w.nodeType===1&&w.tagName==="TEMPLATE";return[c,f]}const LD="data-allow-mismatch",QZ={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function yy(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(LD);)e=e.parentElement;const n=e&&e.getAttribute(LD);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(QZ[t])}}const eq=Ug().requestIdleCallback||(e=>setTimeout(e,1)),tq=Ug().cancelIdleCallback||(e=>clearTimeout(e)),nq=(e=1e4)=>t=>{const n=eq(t,{timeout:e});return()=>tq(n)};function rq(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:a}=window;return(t>0&&t0&&r0&&n0&&i(t,n)=>{const r=new IntersectionObserver(i=>{for(const o of i)if(o.isIntersecting){r.disconnect(),t();break}},e);return n(i=>{if(i instanceof Element){if(rq(i))return t(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},oq=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},aq=(e=[])=>(t,n)=>{At(e)&&(e=[e]);let r=!1;const i=a=>{r||(r=!0,o(),t(),a.target.dispatchEvent(new a.constructor(a.type,a)))},o=()=>{n(a=>{for(const s of e)a.removeEventListener(s,i)})};return n(a=>{for(const s of e)a.addEventListener(s,i,{once:!0})}),o};function sq(e,t){if(Td(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Td(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const pu=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function lq(e){bt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:o,timeout:a,suspensible:s=!0,onError:l}=e;let u=null,c,f=0;const d=()=>(f++,u=null,h()),h=()=>{let v;return u||(v=u=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((y,_)=>{l(m,()=>y(d()),()=>_(m),f+1)});throw m}).then(m=>v!==u&&u?u:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return it({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(v,m,y){const _=o?()=>{const b=o(y,w=>sq(v,w));b&&(m.bum||(m.bum=[])).push(b)}:y;c?_():h().then(()=>!m.isUnmounted&&_())},get __asyncResolved(){return c},setup(){const v=Tr;if(fI(v),c)return()=>lx(c,v);const m=w=>{u=null,Af(w,v,13,!r)};if(s&&v.suspense||Kd)return h().then(w=>()=>lx(w,v)).catch(w=>(m(w),()=>r?ye(r,{error:w}):null));const y=Fe(!1),_=Fe(),b=Fe(!!i);return i&&setTimeout(()=>{b.value=!1},i),a!=null&&setTimeout(()=>{if(!y.value&&!_.value){const w=new Error(`Async component timed out after ${a}ms.`);m(w),_.value=w}},a),h().then(()=>{y.value=!0,v.parent&&zg(v.parent.vnode)&&v.parent.update()}).catch(w=>{m(w),_.value=w}),()=>{if(y.value&&c)return lx(c,v);if(_.value&&r)return ye(r,{error:_.value});if(n&&!b.value)return ye(n)}}})}function lx(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,a=ye(e,r,i);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const zg=e=>e.type.__isKeepAlive,uq={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=br(),r=n.ctx;if(!r.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const i=new Map,o=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(b,w,S,E,T)=>{const A=b.component;u(b,w,S,0,s),l(A.vnode,b,w,S,A,s,E,b.slotScopeIds,T),xr(()=>{A.isDeactivated=!1,A.a&&Wc(A.a);const P=b.props&&b.props.onVnodeMounted;P&&Hi(P,A.parent,b)},s)},r.deactivate=b=>{const w=b.component;K_(w.m),K_(w.a),u(b,d,null,1,s),xr(()=>{w.da&&Wc(w.da);const S=b.props&&b.props.onVnodeUnmounted;S&&Hi(S,w.parent,b),w.isDeactivated=!0},s)};function h(b){ux(b),c(b,n,s,!0)}function v(b){i.forEach((w,S)=>{const E=YE(w.type);E&&!b(E)&&m(S)})}function m(b){const w=i.get(b);w&&(!a||!Aa(w,a))?h(w):a&&ux(a),i.delete(b),o.delete(b)}Yt(()=>[e.include,e.exclude],([b,w])=>{b&&v(S=>$p(b,S)),w&&v(S=>!$p(w,S))},{flush:"post",deep:!0});let y=null;const _=()=>{y!=null&&(Z_(n.subTree.type)?xr(()=>{i.set(y,_y(n.subTree))},n.subTree.suspense):i.set(y,_y(n.subTree)))};return Ro(_),yb(_),Wg(()=>{i.forEach(b=>{const{subTree:w,suspense:S}=n,E=_y(w);if(b.type===E.type&&b.key===E.key){ux(E);const T=E.component.da;T&&xr(T,S);return}h(b)})}),()=>{if(y=null,!t.default)return a=null;const b=t.default(),w=b[0];if(b.length>1)return a=null,b;if(!ll(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return a=null,w;let S=_y(w);if(S.type===yr)return a=null,S;const E=S.type,T=YE(pu(S)?S.type.__asyncResolved||{}:E),{include:A,exclude:P,max:I}=e;if(A&&(!T||!$p(A,T))||P&&T&&$p(P,T))return S.shapeFlag&=-257,a=S,w;const R=S.key==null?E:S.key,O=i.get(R);return S.el&&(S=ls(S),w.shapeFlag&128&&(w.ssContent=S)),y=R,O?(S.el=O.el,S.component=O.component,S.transition&&sl(S,S.transition),S.shapeFlag|=512,o.delete(R),o.add(R)):(o.add(R),I&&o.size>parseInt(I,10)&&m(o.values().next().value)),S.shapeFlag|=256,a=S,Z_(w.type)?w:S}}},cq=uq;function $p(e,t){return Je(e)?e.some(n=>$p(n,t)):At(e)?e.split(",").includes(t):D5(e)?(e.lastIndex=0,e.test(t)):!1}function C$(e,t){I$(e,"a",t)}function A$(e,t){I$(e,"da",t)}function I$(e,t,n=Tr){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(mb(t,r,n),n){let i=n.parent;for(;i&&i.parent;)zg(i.parent.vnode)&&fq(r,t,n,i),i=i.parent}}function fq(e,t,n,r){const i=mb(t,e,r,!0);Sh(()=>{ab(r[t],i)},n)}function ux(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function _y(e){return e.shapeFlag&128?e.ssContent:e}function mb(e,t,n=Tr,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Nu();const s=uf(n),l=ia(t,n,e,a);return s(),ku(),l});return r?i.unshift(o):i.push(o),o}}const gl=e=>(t,n=Tr)=>{(!Kd||e==="sp")&&mb(e,(...r)=>t(...r),n)},R$=gl("bm"),Ro=gl("m"),dI=gl("bu"),yb=gl("u"),Wg=gl("bum"),Sh=gl("um"),P$=gl("sp"),O$=gl("rtg"),D$=gl("rtc");function M$(e,t=Tr){mb("ec",e,t)}const hI="components",dq="directives";function hq(e,t){return pI(hI,e,!0,t)||e}const L$=Symbol.for("v-ndc");function ss(e){return At(e)?pI(hI,e,!1)||e:e||L$}function pq(e){return pI(dq,e)}function pI(e,t,n=!0,r=!1){const i=Er||Tr;if(i){const o=i.type;if(e===hI){const s=YE(o,!1);if(s&&(s===t||s===Bn(t)||s===Lu(Bn(t))))return o}const a=ND(i[e]||o[e],t)||ND(i.appContext[e],t);return!a&&r?o:a}}function ND(e,t){return e&&(e[t]||e[Bn(t)]||e[Lu(Bn(t))])}function ln(e,t,n,r){let i;const o=n&&n[r],a=Je(e);if(a||At(e)){const s=a&&hu(e);let l=!1;s&&(l=!xo(e),e=fb(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;l{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return e}function Md(e,t,n={},r,i){if(Er.ce||Er.parent&&pu(Er.parent)&&Er.parent.ce)return t!=="default"&&(n.name=t),K(),Ot(qe,null,[ye("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),K();const a=o&&vI(o(n)),s=n.key||a&&a.key,l=Ot(qe,{key:(s&&!Ii(s)?s:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function vI(e){return e.some(t=>ll(t)?!(t.type===yr||t.type===qe&&!vI(t.children)):!0)?e:null}function gq(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:zc(r)]=e[r];return n}const kE=e=>e?d4(e)?Yg(e):kE(e.parent):null,ov=Qt(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=>kE(e.parent),$root:e=>kE(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>gI(e),$forceUpdate:e=>e.f||(e.f=()=>{lI(e.update)}),$nextTick:e=>e.n||(e.n=vs.bind(e.proxy)),$watch:e=>jq.bind(e)}),cx=(e,t)=>e!==Jt&&!e.__isScriptSetup&&cn(e,t),FE={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 h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(cx(r,t))return a[t]=1,r[t];if(i!==Jt&&cn(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&cn(u,t))return a[t]=3,o[t];if(n!==Jt&&cn(n,t))return a[t]=4,n[t];$E&&(a[t]=0)}}const c=ov[t];let f,d;if(c)return t==="$attrs"&&ii(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Jt&&cn(n,t))return a[t]=4,n[t];if(d=l.config.globalProperties,cn(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return cx(i,t)?(i[t]=n,!0):r!==Jt&&cn(r,t)?(r[t]=n,!0):cn(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!==Jt&&cn(e,a)||cx(t,a)||(s=o[0])&&cn(s,a)||cn(r,a)||cn(ov,a)||cn(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:cn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},mq=Qt({},FE,{get(e,t){if(t!==Symbol.unscopables)return FE.get(e,t,e)},has(e,t){return t[0]!=="_"&&!ZA(t)}});function yq(){return null}function _q(){return null}function bq(e){}function Sq(e){}function wq(){return null}function xq(){}function Tq(e,t){return null}function Eq(){return N$().slots}function Cq(){return N$().attrs}function N$(){const e=br();return e.setupContext||(e.setupContext=v4(e))}function eg(e){return Je(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Aq(e,t){const n=eg(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?Je(i)||bt(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function Iq(e,t){return!e||!t?e||t:Je(e)&&Je(t)?e.concat(t):Qt({},eg(e),eg(t))}function Rq(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Pq(e){const t=br();let n=e();return zE(),sb(n)&&(n=n.catch(r=>{throw uf(t),r})),[n,()=>uf(t)]}let $E=!0;function Oq(e){const t=gI(e),n=e.proxy,r=e.ctx;$E=!1,t.beforeCreate&&kD(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:m,deactivated:y,beforeDestroy:_,beforeUnmount:b,destroyed:w,unmounted:S,render:E,renderTracked:T,renderTriggered:A,errorCaptured:P,serverPrefetch:I,expose:R,inheritAttrs:O,components:M,directives:$,filters:F}=t;if(u&&Dq(u,r,null),a)for(const Y in a){const j=a[Y];bt(j)&&(r[Y]=j.bind(n))}if(i){const Y=i.call(n,n);vn(Y)&&(e.data=La(Y))}if($E=!0,o)for(const Y in o){const j=o[Y],ae=bt(j)?j.bind(n,n):bt(j.get)?j.get.bind(n,n):Lr,ge=!bt(j)&&bt(j.set)?j.set.bind(n):Lr,ve=Ve({get:ae,set:ge});Object.defineProperty(r,Y,{enumerable:!0,configurable:!0,get:()=>ve.value,set:De=>ve.value=De})}if(s)for(const Y in s)k$(s[Y],r,n,Y);if(l){const Y=bt(l)?l.call(n):l;Reflect.ownKeys(Y).forEach(j=>{av(j,Y[j])})}c&&kD(c,e,"c");function B(Y,j){Je(j)?j.forEach(ae=>Y(ae.bind(n))):j&&Y(j.bind(n))}if(B(R$,f),B(Ro,d),B(dI,h),B(yb,v),B(C$,m),B(A$,y),B(M$,P),B(D$,T),B(O$,A),B(Wg,b),B(Sh,S),B(P$,I),Je(R))if(R.length){const Y=e.exposed||(e.exposed={});R.forEach(j=>{Object.defineProperty(Y,j,{get:()=>n[j],set:ae=>n[j]=ae})})}else e.exposed||(e.exposed={});E&&e.render===Lr&&(e.render=E),O!=null&&(e.inheritAttrs=O),M&&(e.components=M),$&&(e.directives=$),I&&fI(e)}function Dq(e,t,n=Lr){Je(e)&&(e=BE(e));for(const r in e){const i=e[r];let o;vn(i)?"default"in i?o=qi(i.from||r,i.default,!0):o=qi(i.from||r):o=qi(i),ut(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function kD(e,t,n){ia(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function k$(e,t,n,r){let i=r.includes(".")?t4(n,r):()=>n[r];if(At(e)){const o=t[e];bt(o)&&Yt(i,o)}else if(bt(e))Yt(i,e.bind(n));else if(vn(e))if(Je(e))e.forEach(o=>k$(o,t,n,r));else{const o=bt(e.handler)?e.handler.bind(n):t[e.handler];bt(o)&&Yt(i,o,e)}}function gI(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=>X_(l,u,a,!0)),X_(l,t,a)),vn(t)&&o.set(t,l),l}function X_(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&X_(e,o,n,!0),i&&i.forEach(a=>X_(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=Mq[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const Mq={data:FD,props:$D,emits:$D,methods:Bp,computed:Bp,beforeCreate:yi,created:yi,beforeMount:yi,mounted:yi,beforeUpdate:yi,updated:yi,beforeDestroy:yi,beforeUnmount:yi,destroyed:yi,unmounted:yi,activated:yi,deactivated:yi,errorCaptured:yi,serverPrefetch:yi,components:Bp,directives:Bp,watch:Nq,provide:FD,inject:Lq};function FD(e,t){return t?e?function(){return Qt(bt(e)?e.call(this,this):e,bt(t)?t.call(this,this):t)}:t:e}function Lq(e,t){return Bp(BE(e),BE(t))}function BE(e){if(Je(e)){const t={};for(let n=0;n1)return n&&bt(t)?t.call(r&&r.proxy):t}}function mI(){return!!(Tr||Er||Yc)}const $$={},B$=()=>Object.create($$),V$=e=>Object.getPrototypeOf(e)===$$;function $q(e,t,n,r=!1){const i={},o=B$();e.propsDefaults=Object.create(null),U$(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:oI(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Bq(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=an(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[d,h]=H$(f,t,!0);Qt(a,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return vn(e)&&r.set(e,Hc),Hc;if(Je(o))for(let c=0;ce[0]==="_"||e==="$stable",yI=e=>Je(e)?e.map(Wi):[Wi(e)],Uq=(e,t,n)=>{if(t._n)return t;const r=Mr((...i)=>yI(t(...i)),n);return r._c=!1,r},z$=(e,t,n)=>{const r=e._ctx;for(const i in e){if(G$(i))continue;const o=e[i];if(bt(o))t[i]=Uq(i,o,r);else if(o!=null){const a=yI(o);t[i]=()=>a}}},W$=(e,t)=>{const n=yI(t);e.slots.default=()=>n},j$=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Hq=(e,t,n)=>{const r=e.slots=B$();if(e.vnode.shapeFlag&32){const i=t._;i?(j$(r,t,n),n&&KA(r,"_",i,!0)):z$(t,r)}else t&&W$(e,t)},Gq=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=Jt;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:j$(i,t,n):(o=!t.$stable,z$(t,i)),a=t}else t&&(W$(e,t),a={default:1});if(o)for(const s in i)!G$(s)&&a[s]==null&&delete i[s]},xr=o4;function Y$(e){return K$(e)}function X$(e){return K$(e,JZ)}function K$(e,t){const n=Ug();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=Lr,insertStaticContent:v}=e,m=(H,G,le,we=null,pe=null,U=null,W=void 0,q=null,fe=!!G.dynamicChildren)=>{if(H===G)return;H&&!Aa(H,G)&&(we=ce(H),De(H,pe,U,!0),H=null),G.patchFlag===-2&&(fe=!1,G.dynamicChildren=null);const{type:_e,ref:Pe,shapeFlag:Z}=G;switch(_e){case el:y(H,G,le,we);break;case yr:_(H,G,le,we);break;case Xc:H==null&&b(G,le,we,W);break;case qe:M(H,G,le,we,pe,U,W,q,fe);break;default:Z&1?E(H,G,le,we,pe,U,W,q,fe):Z&6?$(H,G,le,we,pe,U,W,q,fe):(Z&64||Z&128)&&_e.process(H,G,le,we,pe,U,W,q,fe,Te)}Pe!=null&&pe&&Qv(Pe,H&&H.ref,U,G||H,!G)},y=(H,G,le,we)=>{if(H==null)r(G.el=s(G.children),le,we);else{const pe=G.el=H.el;G.children!==H.children&&u(pe,G.children)}},_=(H,G,le,we)=>{H==null?r(G.el=l(G.children||""),le,we):G.el=H.el},b=(H,G,le,we)=>{[H.el,H.anchor]=v(H.children,G,le,we,H.el,H.anchor)},w=({el:H,anchor:G},le,we)=>{let pe;for(;H&&H!==G;)pe=d(H),r(H,le,we),H=pe;r(G,le,we)},S=({el:H,anchor:G})=>{let le;for(;H&&H!==G;)le=d(H),i(H),H=le;i(G)},E=(H,G,le,we,pe,U,W,q,fe)=>{G.type==="svg"?W="svg":G.type==="math"&&(W="mathml"),H==null?T(G,le,we,pe,U,W,q,fe):I(H,G,pe,U,W,q,fe)},T=(H,G,le,we,pe,U,W,q)=>{let fe,_e;const{props:Pe,shapeFlag:Z,transition:de,dirs:Be}=H;if(fe=H.el=a(H.type,U,Pe&&Pe.is,Pe),Z&8?c(fe,H.children):Z&16&&P(H.children,fe,null,we,pe,fx(H,U),W,q),Be&&qa(H,null,we,"created"),A(fe,H,H.scopeId,W,we),Pe){for(const ht in Pe)ht!=="value"&&!Qs(ht)&&o(fe,ht,null,Pe[ht],U,we);"value"in Pe&&o(fe,"value",null,Pe.value,U),(_e=Pe.onVnodeBeforeMount)&&Hi(_e,we,H)}Be&&qa(H,null,we,"beforeMount");const Xe=Z$(pe,de);Xe&&de.beforeEnter(fe),r(fe,G,le),((_e=Pe&&Pe.onVnodeMounted)||Xe||Be)&&xr(()=>{_e&&Hi(_e,we,H),Xe&&de.enter(fe),Be&&qa(H,null,we,"mounted")},pe)},A=(H,G,le,we,pe)=>{if(le&&h(H,le),we)for(let U=0;U{for(let _e=fe;_e{const q=G.el=H.el;let{patchFlag:fe,dynamicChildren:_e,dirs:Pe}=G;fe|=H.patchFlag&16;const Z=H.props||Jt,de=G.props||Jt;let Be;if(le&&Ju(le,!1),(Be=de.onVnodeBeforeUpdate)&&Hi(Be,le,G,H),Pe&&qa(G,H,le,"beforeUpdate"),le&&Ju(le,!0),(Z.innerHTML&&de.innerHTML==null||Z.textContent&&de.textContent==null)&&c(q,""),_e?R(H.dynamicChildren,_e,q,le,we,fx(G,pe),U):W||j(H,G,q,null,le,we,fx(G,pe),U,!1),fe>0){if(fe&16)O(q,Z,de,le,pe);else if(fe&2&&Z.class!==de.class&&o(q,"class",null,de.class,pe),fe&4&&o(q,"style",Z.style,de.style,pe),fe&8){const Xe=G.dynamicProps;for(let ht=0;ht{Be&&Hi(Be,le,G,H),Pe&&qa(G,H,le,"updated")},we)},R=(H,G,le,we,pe,U,W)=>{for(let q=0;q{if(G!==le){if(G!==Jt)for(const U in G)!Qs(U)&&!(U in le)&&o(H,U,G[U],null,pe,we);for(const U in le){if(Qs(U))continue;const W=le[U],q=G[U];W!==q&&U!=="value"&&o(H,U,q,W,pe,we)}"value"in le&&o(H,"value",G.value,le.value,pe)}},M=(H,G,le,we,pe,U,W,q,fe)=>{const _e=G.el=H?H.el:s(""),Pe=G.anchor=H?H.anchor:s("");let{patchFlag:Z,dynamicChildren:de,slotScopeIds:Be}=G;Be&&(q=q?q.concat(Be):Be),H==null?(r(_e,le,we),r(Pe,le,we),P(G.children||[],le,Pe,pe,U,W,q,fe)):Z>0&&Z&64&&de&&H.dynamicChildren?(R(H.dynamicChildren,de,le,pe,U,W,q),(G.key!=null||pe&&G===pe.subTree)&&_I(H,G,!0)):j(H,G,le,Pe,pe,U,W,q,fe)},$=(H,G,le,we,pe,U,W,q,fe)=>{G.slotScopeIds=q,H==null?G.shapeFlag&512?pe.ctx.activate(G,le,we,W,fe):F(G,le,we,pe,U,W,fe):z(H,G,fe)},F=(H,G,le,we,pe,U,W)=>{const q=H.component=f4(H,we,pe);if(zg(H)&&(q.ctx.renderer=Te),h4(q,!1,W),q.asyncDep){if(pe&&pe.registerDep(q,B,W),!H.el){const fe=q.subTree=ye(yr);_(null,fe,G,le)}}else B(q,H,G,le,pe,U,W)},z=(H,G,le)=>{const we=G.component=H.component;if(Jq(H,G,le))if(we.asyncDep&&!we.asyncResolved){Y(we,G,le);return}else we.next=G,we.update();else G.el=H.el,we.vnode=G},B=(H,G,le,we,pe,U,W)=>{const q=()=>{if(H.isMounted){let{next:Z,bu:de,u:Be,parent:Xe,vnode:ht}=H;{const He=q$(H);if(He){Z&&(Z.el=ht.el,Y(H,Z,W)),He.asyncDep.then(()=>{H.isUnmounted||q()});return}}let ee=Z,re;Ju(H,!1),Z?(Z.el=ht.el,Y(H,Z,W)):Z=ht,de&&Wc(de),(re=Z.props&&Z.props.onVnodeBeforeUpdate)&&Hi(re,Xe,Z,ht),Ju(H,!0);const he=V0(H),Ee=H.subTree;H.subTree=he,m(Ee,he,f(Ee.el),ce(Ee),H,pe,U),Z.el=he.el,ee===null&&Sb(H,he.el),Be&&xr(Be,pe),(re=Z.props&&Z.props.onVnodeUpdated)&&xr(()=>Hi(re,Xe,Z,ht),pe)}else{let Z;const{el:de,props:Be}=G,{bm:Xe,m:ht,parent:ee,root:re,type:he}=H,Ee=pu(G);if(Ju(H,!1),Xe&&Wc(Xe),!Ee&&(Z=Be&&Be.onVnodeBeforeMount)&&Hi(Z,ee,G),Ju(H,!0),de&&$e){const He=()=>{H.subTree=V0(H),$e(de,H.subTree,H,pe,null)};Ee&&he.__asyncHydrate?he.__asyncHydrate(de,H,He):He()}else{re.ce&&re.ce._injectChildStyle(he);const He=H.subTree=V0(H);m(null,He,le,we,H,pe,U),G.el=He.el}if(ht&&xr(ht,pe),!Ee&&(Z=Be&&Be.onVnodeMounted)){const He=G;xr(()=>Hi(Z,ee,He),pe)}(G.shapeFlag&256||ee&&pu(ee.vnode)&&ee.vnode.shapeFlag&256)&&H.a&&xr(H.a,pe),H.isMounted=!0,G=le=we=null}};H.scope.on();const fe=H.effect=new Yv(q);H.scope.off();const _e=H.update=fe.run.bind(fe),Pe=H.job=fe.runIfDirty.bind(fe);Pe.i=H,Pe.id=H.uid,fe.scheduler=()=>lI(Pe),Ju(H,!0),_e()},Y=(H,G,le)=>{G.component=H;const we=H.vnode.props;H.vnode=G,H.next=null,Bq(H,G.props,we,le),Gq(H,G.children,le),Nu(),ID(H),ku()},j=(H,G,le,we,pe,U,W,q,fe=!1)=>{const _e=H&&H.children,Pe=H?H.shapeFlag:0,Z=G.children,{patchFlag:de,shapeFlag:Be}=G;if(de>0){if(de&128){ge(_e,Z,le,we,pe,U,W,q,fe);return}else if(de&256){ae(_e,Z,le,we,pe,U,W,q,fe);return}}Be&8?(Pe&16&&je(_e,pe,U),Z!==_e&&c(le,Z)):Pe&16?Be&16?ge(_e,Z,le,we,pe,U,W,q,fe):je(_e,pe,U,!0):(Pe&8&&c(le,""),Be&16&&P(Z,le,we,pe,U,W,q,fe))},ae=(H,G,le,we,pe,U,W,q,fe)=>{H=H||Hc,G=G||Hc;const _e=H.length,Pe=G.length,Z=Math.min(_e,Pe);let de;for(de=0;dePe?je(H,pe,U,!0,!1,Z):P(G,le,we,pe,U,W,q,fe,Z)},ge=(H,G,le,we,pe,U,W,q,fe)=>{let _e=0;const Pe=G.length;let Z=H.length-1,de=Pe-1;for(;_e<=Z&&_e<=de;){const Be=H[_e],Xe=G[_e]=fe?ql(G[_e]):Wi(G[_e]);if(Aa(Be,Xe))m(Be,Xe,le,null,pe,U,W,q,fe);else break;_e++}for(;_e<=Z&&_e<=de;){const Be=H[Z],Xe=G[de]=fe?ql(G[de]):Wi(G[de]);if(Aa(Be,Xe))m(Be,Xe,le,null,pe,U,W,q,fe);else break;Z--,de--}if(_e>Z){if(_e<=de){const Be=de+1,Xe=Bede)for(;_e<=Z;)De(H[_e],pe,U,!0),_e++;else{const Be=_e,Xe=_e,ht=new Map;for(_e=Xe;_e<=de;_e++){const ke=G[_e]=fe?ql(G[_e]):Wi(G[_e]);ke.key!=null&&ht.set(ke.key,_e)}let ee,re=0;const he=de-Xe+1;let Ee=!1,He=0;const ne=new Array(he);for(_e=0;_e=he){De(ke,pe,U,!0);continue}let Qe;if(ke.key!=null)Qe=ht.get(ke.key);else for(ee=Xe;ee<=de;ee++)if(ne[ee-Xe]===0&&Aa(ke,G[ee])){Qe=ee;break}Qe===void 0?De(ke,pe,U,!0):(ne[Qe-Xe]=_e+1,Qe>=He?He=Qe:Ee=!0,m(ke,G[Qe],le,null,pe,U,W,q,fe),re++)}const Ae=Ee?zq(ne):Hc;for(ee=Ae.length-1,_e=he-1;_e>=0;_e--){const ke=Xe+_e,Qe=G[ke],Ge=ke+1{const{el:U,type:W,transition:q,children:fe,shapeFlag:_e}=H;if(_e&6){ve(H.component.subTree,G,le,we);return}if(_e&128){H.suspense.move(G,le,we);return}if(_e&64){W.move(H,G,le,Te);return}if(W===qe){r(U,G,le);for(let Z=0;Zq.enter(U),pe);else{const{leave:Z,delayLeave:de,afterLeave:Be}=q,Xe=()=>r(U,G,le),ht=()=>{Z(U,()=>{Xe(),Be&&Be()})};de?de(U,Xe,ht):ht()}else r(U,G,le)},De=(H,G,le,we=!1,pe=!1)=>{const{type:U,props:W,ref:q,children:fe,dynamicChildren:_e,shapeFlag:Pe,patchFlag:Z,dirs:de,cacheIndex:Be}=H;if(Z===-2&&(pe=!1),q!=null&&Qv(q,null,le,H,!0),Be!=null&&(G.renderCache[Be]=void 0),Pe&256){G.ctx.deactivate(H);return}const Xe=Pe&1&&de,ht=!pu(H);let ee;if(ht&&(ee=W&&W.onVnodeBeforeUnmount)&&Hi(ee,G,H),Pe&6)Me(H.component,le,we);else{if(Pe&128){H.suspense.unmount(le,we);return}Xe&&qa(H,null,G,"beforeUnmount"),Pe&64?H.type.remove(H,G,le,Te,we):_e&&!_e.hasOnce&&(U!==qe||Z>0&&Z&64)?je(_e,G,le,!1,!0):(U===qe&&Z&384||!pe&&Pe&16)&&je(fe,G,le),we&&Ne(H)}(ht&&(ee=W&&W.onVnodeUnmounted)||Xe)&&xr(()=>{ee&&Hi(ee,G,H),Xe&&qa(H,null,G,"unmounted")},le)},Ne=H=>{const{type:G,el:le,anchor:we,transition:pe}=H;if(G===qe){ze(le,we);return}if(G===Xc){S(H);return}const U=()=>{i(le),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if(H.shapeFlag&1&&pe&&!pe.persisted){const{leave:W,delayLeave:q}=pe,fe=()=>W(le,U);q?q(H.el,U,fe):fe()}else U()},ze=(H,G)=>{let le;for(;H!==G;)le=d(H),i(H),H=le;i(G)},Me=(H,G,le)=>{const{bum:we,scope:pe,job:U,subTree:W,um:q,m:fe,a:_e}=H;K_(fe),K_(_e),we&&Wc(we),pe.stop(),U&&(U.flags|=8,De(W,H,G,le)),q&&xr(q,G),xr(()=>{H.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},je=(H,G,le,we=!1,pe=!1,U=0)=>{for(let W=U;W{if(H.shapeFlag&6)return ce(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const G=d(H.anchor||H.el),le=G&&G[y$];return le?d(le):G};let Ce=!1;const Se=(H,G,le)=>{H==null?G._vnode&&De(G._vnode,null,null,!0):m(G._vnode||null,H,G,null,null,null,le),G._vnode=H,Ce||(Ce=!0,ID(),Y_(),Ce=!1)},Te={p:m,um:De,m:ve,r:Ne,mt:F,mc:P,pc:j,pbc:R,n:ce,o:e};let Oe,$e;return t&&([Oe,$e]=t(Te)),{render:Se,hydrate:Oe,createApp:Fq(Se,Oe)}}function fx({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 Ju({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Z$(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _I(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 q$(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:q$(t)}function K_(e){if(e)for(let t=0;tqi(J$);function _b(e,t){return jg(e,null,t)}function Wq(e,t){return jg(e,null,{flush:"post"})}function e4(e,t){return jg(e,null,{flush:"sync"})}function Yt(e,t,n){return jg(e,t,n)}function jg(e,t,n=Jt){const{immediate:r,deep:i,flush:o,once:a}=n,s=Qt({},n),l=t&&r||!t&&o!=="post";let u;if(Kd){if(o==="sync"){const h=Q$();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Lr,h.resume=Lr,h.pause=Lr,h}}const c=Tr;s.call=(h,v,m)=>ia(h,c,v,m);let f=!1;o==="post"?s.scheduler=h=>{xr(h,c&&c.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(h,v)=>{v?h():lI(h)}),s.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=LZ(e,t,s);return Kd&&(u?u.push(d):l&&d()),d}function jq(e,t,n){const r=this.proxy,i=At(e)?e.includes(".")?t4(r,e):()=>r[e]:e.bind(r,r);let o;bt(t)?o=t:(o=t.handler,n=t);const a=uf(this),s=jg(i,o.bind(r),n);return a(),s}function t4(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{let c,f=Jt,d;return e4(()=>{const h=e[i];ri(c,h)&&(c=h,u())}),{get(){return l(),n.get?n.get(c):c},set(h){const v=n.set?n.set(h):h;if(!ri(v,c)&&!(f!==Jt&&ri(h,f)))return;const m=r.vnode.props;m&&(t in m||i in m||o in m)&&(`onUpdate:${t}`in m||`onUpdate:${i}`in m||`onUpdate:${o}`in m)||(c=h,u()),r.emit(`update:${t}`,v),ri(h,v)&&ri(h,f)&&!ri(v,d)&&u(),f=h,d=v}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||Jt:s,done:!1}:{done:!0}}}},s}const n4=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Bn(t)}Modifiers`]||e[`${ai(t)}Modifiers`];function Xq(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Jt;let i=n;const o=t.startsWith("update:"),a=o&&n4(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>At(c)?c.trim():c)),a.number&&(i=n.map(Wv)));let s,l=r[s=zc(t)]||r[s=zc(Bn(t))];!l&&o&&(l=r[s=zc(ai(t))]),l&&ia(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,ia(u,e,6,i)}}function r4(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(!bt(e)){const l=u=>{const c=r4(u,t,!0);c&&(s=!0,Qt(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(vn(e)&&r.set(e,null),null):(Je(o)?o.forEach(l=>a[l]=null):Qt(a,o),vn(e)&&r.set(e,a),a)}function bb(e,t){return!e||!Du(t)?!1:(t=t.slice(2).replace(/Once$/,""),cn(e,t[0].toLowerCase()+t.slice(1))||cn(e,ai(t))||cn(e,t))}function V0(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:d,setupState:h,ctx:v,inheritAttrs:m}=e,y=Jv(e);let _,b;try{if(n.shapeFlag&4){const S=i||r,E=S;_=Wi(u.call(E,S,c,f,h,d,v)),b=s}else{const S=t;_=Wi(S.length>1?S(f,{attrs:s,slots:a,emit:l}):S(f,null)),b=t.props?s:Zq(s)}}catch(S){sv.length=0,Af(S,e,1),_=ye(yr)}let w=_;if(b&&m!==!1){const S=Object.keys(b),{shapeFlag:E}=w;S.length&&E&7&&(o&&S.some(ob)&&(b=qq(b,o)),w=ls(w,b,!1,!0))}return n.dirs&&(w=ls(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&sl(w,n.transition),_=w,Jv(y),_}function Kq(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||Du(n))&&((t||(t={}))[n]=e[n]);return t},qq=(e,t)=>{const n={};for(const r in e)(!ob(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Jq(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?VD(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;let UE=0;const Qq={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,u){if(e==null)tJ(t,n,r,i,o,a,s,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}nJ(e,t,n,r,i,a,s,l,u)}},hydrate:rJ,normalize:iJ},eJ=Qq;function tg(e,t){const n=e.props&&e.props[t];bt(n)&&n()}function tJ(e,t,n,r,i,o,a,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=i4(e,i,r,t,f,n,o,a,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,a),d.deps>0?(tg(e,"onPending"),tg(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,a),Ld(d,e.ssFallback)):d.resolve(!1,!0)}function nJ(e,t,n,r,i,o,a,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:v,pendingBranch:m,isInFallback:y,isHydrating:_}=f;if(m)f.pendingBranch=d,Aa(d,m)?(l(m,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():y&&(_||(l(v,h,n,r,i,null,o,a,s),Ld(f,h)))):(f.pendingId=UE++,_?(f.isHydrating=!1,f.activeBranch=m):u(m,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),y?(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():(l(v,h,n,r,i,null,o,a,s),Ld(f,h))):v&&Aa(d,v)?(l(v,d,n,r,i,f,o,a,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0&&f.resolve()));else if(v&&Aa(d,v))l(v,d,n,r,i,f,o,a,s),Ld(f,d);else if(tg(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=UE++,l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:w}=f;b>0?setTimeout(()=>{f.pendingId===w&&f.fallback(h)},b):b===0&&f.fallback(h)}}function i4(e,t,n,r,i,o,a,s,l,u,c=!1){const{p:f,m:d,um:h,n:v,o:{parentNode:m,remove:y}}=u;let _;const b=oJ(e);b&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const w=e.props?jv(e.props.timeout):void 0,S=o,E={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:UE++,timeout:typeof w=="number"?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(T=!1,A=!1){const{vnode:P,activeBranch:I,pendingBranch:R,pendingId:O,effects:M,parentComponent:$,container:F}=E;let z=!1;E.isHydrating?E.isHydrating=!1:T||(z=I&&R.transition&&R.transition.mode==="out-in",z&&(I.transition.afterLeave=()=>{O===E.pendingId&&(d(R,F,o===S?v(I):o,0),Zv(M))}),I&&(m(I.el)===F&&(o=v(I)),h(I,$,E,!0)),z||d(R,F,o,0)),Ld(E,R),E.pendingBranch=null,E.isInFallback=!1;let B=E.parent,Y=!1;for(;B;){if(B.pendingBranch){B.effects.push(...M),Y=!0;break}B=B.parent}!Y&&!z&&Zv(M),E.effects=[],b&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!A&&t.resolve()),tg(P,"onResolve")},fallback(T){if(!E.pendingBranch)return;const{vnode:A,activeBranch:P,parentComponent:I,container:R,namespace:O}=E;tg(A,"onFallback");const M=v(P),$=()=>{E.isInFallback&&(f(null,T,R,M,I,null,O,s,l),Ld(E,T))},F=T.transition&&T.transition.mode==="out-in";F&&(P.transition.afterLeave=$),E.isInFallback=!0,h(P,I,null,!0),F||$()},move(T,A,P){E.activeBranch&&d(E.activeBranch,T,A,P),E.container=T},next(){return E.activeBranch&&v(E.activeBranch)},registerDep(T,A,P){const I=!!E.pendingBranch;I&&E.deps++;const R=T.vnode.el;T.asyncDep.catch(O=>{Af(O,T,0)}).then(O=>{if(T.isUnmounted||E.isUnmounted||E.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:M}=T;WE(T,O,!1),R&&(M.el=R);const $=!R&&T.subTree.el;A(T,M,m(R||T.subTree.el),R?null:v(T.subTree),E,a,P),$&&y($),Sb(T,M.el),I&&--E.deps===0&&E.resolve()})},unmount(T,A){E.isUnmounted=!0,E.activeBranch&&h(E.activeBranch,n,T,A),E.pendingBranch&&h(E.pendingBranch,n,T,A)}};return E}function rJ(e,t,n,r,i,o,a,s,l){const u=t.suspense=i4(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,a);return u.deps===0&&u.resolve(!1,!0),c}function iJ(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=UD(r?n.default:n),e.ssFallback=r?UD(n.fallback):ye(yr)}function UD(e){let t;if(bt(e)){const n=lf&&e._c;n&&(e._d=!1,K()),e=e(),n&&(e._d=!0,t=ui,a4())}return Je(e)&&(e=Kq(e)),e=Wi(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function o4(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):Zv(e)}function Ld(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Sb(r,i))}function oJ(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const qe=Symbol.for("v-fgt"),el=Symbol.for("v-txt"),yr=Symbol.for("v-cmt"),Xc=Symbol.for("v-stc"),sv=[];let ui=null;function K(e=!1){sv.push(ui=e?null:[])}function a4(){sv.pop(),ui=sv[sv.length-1]||null}let lf=1;function HE(e,t=!1){lf+=e,e<0&&ui&&t&&(ui.hasOnce=!0)}function s4(e){return e.dynamicChildren=lf>0?ui||Hc:null,a4(),lf>0&&ui&&ui.push(e),e}function se(e,t,n,r,i,o){return s4(L(e,t,n,r,i,o,!0))}function Ot(e,t,n,r,i){return s4(ye(e,t,n,r,i,!0))}function ll(e){return e?e.__v_isVNode===!0:!1}function Aa(e,t){return e.type===t.type&&e.key===t.key}function aJ(e){}const l4=({key:e})=>e??null,U0=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?At(e)||ut(e)||bt(e)?{i:Er,r:e,k:t,f:!!n}:e:null);function L(e,t=null,n=null,r=0,i=null,o=e===qe?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&l4(t),ref:t&&U0(t),scopeId:vb,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:Er};return s?(bI(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=At(n)?8:16),lf>0&&!a&&ui&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&ui.push(l),l}const ye=sJ;function sJ(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===L$)&&(e=yr),ll(e)){const s=ls(e,t,!0);return n&&bI(s,n),lf>0&&!o&&ui&&(s.shapeFlag&6?ui[ui.indexOf(e)]=s:ui.push(s)),s.patchFlag=-2,s}if(vJ(e)&&(e=e.__vccOpts),t){t=u4(t);let{class:s,style:l}=t;s&&!At(s)&&(t.class=rt(s)),vn(l)&&(pb(l)&&!Je(l)&&(l=Qt({},l)),t.style=Gr(l))}const a=At(e)?1:Z_(e)?128:_$(e)?64:vn(e)?4:bt(e)?2:0;return L(e,t,n,r,i,a,o,!0)}function u4(e){return e?pb(e)||V$(e)?Qt({},e):e:null}function ls(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?c4(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&l4(u),ref:t&&t.ref?n&&o?Je(o)?o.concat(U0(t)):[o,U0(t)]:U0(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!==qe?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&&ls(e.ssContent),ssFallback:e.ssFallback&&ls(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&sl(c,l.clone(c)),c}function ft(e=" ",t=0){return ye(el,null,e,t)}function lJ(e,t){const n=ye(Xc,null,e);return n.staticCount=t,n}function mt(e="",t=!1){return t?(K(),Ot(yr,null,e)):ye(yr,null,e)}function Wi(e){return e==null||typeof e=="boolean"?ye(yr):Je(e)?ye(qe,null,e.slice()):ll(e)?ql(e):ye(el,null,String(e))}function ql(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ls(e)}function bI(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),bI(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!V$(t)?t._ctx=Er:i===3&&Er&&(Er.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else bt(t)?(t={default:t,_ctx:Er},n=32):(t=String(t),r&64?(n=16,t=[ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function c4(...e){const t={};for(let n=0;nTr||Er;let q_,GE;{const e=Ug(),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)}};q_=t("__VUE_INSTANCE_SETTERS__",n=>Tr=n),GE=t("__VUE_SSR_SETTERS__",n=>Kd=n)}const uf=e=>{const t=Tr;return q_(e),e.scope.on(),()=>{e.scope.off(),q_(t)}},zE=()=>{Tr&&Tr.scope.off(),q_(null)};function d4(e){return e.vnode.shapeFlag&4}let Kd=!1;function h4(e,t=!1,n=!1){t&&GE(t);const{props:r,children:i}=e.vnode,o=d4(e);$q(e,r,o,t),Hq(e,i,n);const a=o?fJ(e,t):void 0;return t&&GE(!1),a}function fJ(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,FE);const{setup:r}=n;if(r){Nu();const i=e.setupContext=r.length>1?v4(e):null,o=uf(e),a=bh(r,e,0,[e.props,i]),s=sb(a);if(ku(),o(),(s||e.sp)&&!pu(e)&&fI(e),s){if(a.then(zE,zE),t)return a.then(l=>{WE(e,l,t)}).catch(l=>{Af(l,e,0)});e.asyncDep=a}else WE(e,a,t)}else p4(e,t)}function WE(e,t,n){bt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vn(t)&&(e.setupState=aI(t)),p4(e,n)}let J_,jE;function dJ(e){J_=e,jE=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,mq))}}const hJ=()=>!J_;function p4(e,t,n){const r=e.type;if(!e.render){if(!t&&J_&&!r.render){const i=r.template||gI(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Qt(Qt({isCustomElement:o,delimiters:s},a),l);r.render=J_(i,u)}}e.render=r.render||Lr,jE&&jE(e)}{const i=uf(e);Nu();try{Oq(e)}finally{ku(),i()}}}const pJ={get(e,t){return ii(e,"get",""),e[t]}};function v4(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,pJ),slots:e.slots,emit:e.emit,expose:t}}function Yg(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(aI(l$(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ov)return ov[n](e)},has(t,n){return n in t||n in ov}})):e.proxy}function YE(e,t=!0){return bt(e)?e.displayName||e.name:e.name||t&&e.__name}function vJ(e){return bt(e)&&"__vccOpts"in e}const Ve=(e,t)=>PZ(e,t,Kd);function zi(e,t,n){const r=arguments.length;return r===2?vn(t)&&!Je(t)?ll(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ll(n)&&(n=[n]),ye(e,t,n))}function gJ(){}function mJ(e,t,n,r){const i=n[r];if(i&&g4(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function g4(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&ui&&ui.push(e),!0}const m4="3.5.13",yJ=Lr,_J=BZ,bJ=vd,SJ=m$,wJ={createComponentInstance:f4,setupComponent:h4,renderComponentRoot:V0,setCurrentRenderingInstance:Jv,isVNode:ll,normalizeVNode:Wi,getComponentPublicInstance:Yg,ensureValidVNode:vI,pushWarningContext:NZ,popWarningContext:kZ},xJ=wJ,TJ=null,EJ=null,CJ=null;/** +**/const v$=[];function $Z(e){v$.push(e)}function BZ(){v$.pop()}function VZ(e,t){}const UZ={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},HZ={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function bh(e,t,n,r){try{return r?e(...r):e()}catch(i){Af(i,t,n)}}function ia(e,t,n,r){if(bt(e)){const i=bh(e,t,n,r);return i&&ub(i)&&i.catch(o=>{Af(o,t,n)}),i}if(Je(e)){const i=[];for(let o=0;o>>1,i=Ti[r],o=Jv(i);o=Jv(n)?Ti.push(e):Ti.splice(zZ(t),0,e),e.flags|=1,m$()}}function m$(){X_||(X_=g$.then(y$))}function qv(e){Je(e)?Dd.push(...e):Kl&&e.id===-1?Kl.splice(pd+1,0,e):e.flags&1||(Dd.push(e),e.flags|=1),m$()}function PD(e,t,n=Za+1){for(;nJv(n)-Jv(r));if(Dd.length=0,Kl){Kl.push(...t);return}for(Kl=t,pd=0;pde.id==null?e.flags&2?-1:1/0:e.id;function y$(e){try{for(Za=0;Zavd.emit(i,...o)),gy=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{_$(o,t)}),setTimeout(()=>{vd||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,gy=[])},3e3)):gy=[]}let Er=null,mb=null;function Qv(e){const t=Er;return Er=e,mb=e&&e.type.__scopeId||null,t}function WZ(e){mb=e}function jZ(){mb=null}const YZ=e=>Mr;function Mr(e,t=Er,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&zE(-1);const o=Qv(t);let a;try{a=e(...i)}finally{Qv(o),r._d&&zE(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function yt(e,t){if(Er===null)return e;const n=Kg(Er),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,iv=e=>e&&(e.disabled||e.disabled===""),OD=e=>e&&(e.defer||e.defer===""),DD=e=>typeof SVGElement<"u"&&e instanceof SVGElement,MD=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,FE=(e,t)=>{const n=e&&e.to;return At(n)?t?t(n):null:n},w$={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:m,createComment:y}}=u,_=iv(t.props);let{shapeFlag:b,children:w,dynamicChildren:S}=t;if(e==null){const T=t.el=m(""),E=t.anchor=m("");h(T,n,r),h(E,n,r);const A=(I,R)=>{b&16&&(i&&i.isCE&&(i.ce._teleportTarget=I),c(w,I,R,i,o,a,s,l))},P=()=>{const I=t.target=FE(t.props,v),R=x$(I,t,m,h);I&&(a!=="svg"&&DD(I)?a="svg":a!=="mathml"&&MD(I)&&(a="mathml"),_||(A(I,R),U0(t,!1)))};_&&(A(n,E),U0(t,!0)),OD(t.props)?xr(()=>{P(),t.el.__isMounted=!0},o):P()}else{if(OD(t.props)&&!e.el.__isMounted){xr(()=>{w$.process(e,t,n,r,i,o,a,s,l,u),delete e.el.__isMounted},o);return}t.el=e.el,t.targetStart=e.targetStart;const T=t.anchor=e.anchor,E=t.target=e.target,A=t.targetAnchor=e.targetAnchor,P=iv(e.props),I=P?n:E,R=P?T:A;if(a==="svg"||DD(E)?a="svg":(a==="mathml"||MD(E))&&(a="mathml"),S?(d(e.dynamicChildren,S,I,i,o,a,s),SI(e,t,!0)):l||f(e,t,I,R,i,o,a,s,!1),_)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):my(t,n,T,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const O=t.target=FE(t.props,v);O&&my(t,O,null,u,0)}else P&&my(t,E,A,u,1);U0(t,_)}},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(i(u),i(c)),o&&i(l),a&16){const h=o||!iv(d);for(let v=0;v{e.isMounted=!0}),Yg(()=>{e.isUnmounting=!0}),e}const Bo=[Function,Array],dI={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Bo,onEnter:Bo,onAfterEnter:Bo,onEnterCancelled:Bo,onBeforeLeave:Bo,onLeave:Bo,onAfterLeave:Bo,onLeaveCancelled:Bo,onBeforeAppear:Bo,onAppear:Bo,onAfterAppear:Bo,onAppearCancelled:Bo},T$=e=>{const t=e.subTree;return t.component?T$(t.component):t},ZZ={name:"BaseTransition",props:dI,setup(e,{slots:t}){const n=br(),r=fI();return()=>{const i=t.default&&yb(t.default(),!0);if(!i||!i.length)return;const o=E$(i),a=sn(e),{mode:s}=a;if(r.isLeaving)return ux(o);const l=LD(o);if(!l)return ux(o);let u=Xd(l,a,r,n,f=>u=f);l.type!==yr&&sl(l,u);let c=n.subTree&&LD(n.subTree);if(c&&c.type!==yr&&!Aa(l,c)&&T$(n).type!==yr){let f=Xd(c,a,r,n);if(sl(c,f),s==="out-in"&&l.type!==yr)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},ux(o);s==="in-out"&&l.type!==yr?f.delayLeave=(d,h,v)=>{const m=A$(r,c);m[String(c.key)]=c,d[Zl]=()=>{h(),d[Zl]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function E$(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==yr){t=n;break}}return t}const C$=ZZ;function A$(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Xd(e,t,n,r,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:y,onAppear:_,onAfterAppear:b,onAppearCancelled:w}=t,S=String(e.key),T=A$(n,e),E=(I,R)=>{I&&ia(I,r,9,R)},A=(I,R)=>{const O=R[1];E(I,R),Je(I)?I.every(M=>M.length<=1)&&O():I.length<=1&&O()},P={mode:a,persisted:s,beforeEnter(I){let R=l;if(!n.isMounted)if(o)R=y||l;else return;I[Zl]&&I[Zl](!0);const O=T[S];O&&Aa(e,O)&&O.el[Zl]&&O.el[Zl](),E(R,[I])},enter(I){let R=u,O=c,M=f;if(!n.isMounted)if(o)R=_||u,O=b||c,M=w||f;else return;let $=!1;const F=I[yy]=z=>{$||($=!0,z?E(M,[I]):E(O,[I]),P.delayedLeave&&P.delayedLeave(),I[yy]=void 0)};R?A(R,[I,F]):F()},leave(I,R){const O=String(e.key);if(I[yy]&&I[yy](!0),n.isUnmounting)return R();E(d,[I]);let M=!1;const $=I[Zl]=F=>{M||(M=!0,R(),F?E(m,[I]):E(v,[I]),I[Zl]=void 0,T[O]===e&&delete T[O])};T[O]=e,h?A(h,[I,$]):$()},clone(I){const R=Xd(I,t,n,r,i);return i&&i(R),R}};return P}function ux(e){if(jg(e))return e=ls(e),e.children=null,e}function LD(e){if(!jg(e))return S$(e.type)&&e.children?E$(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&bt(n.default))return n.default()}}function sl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,sl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function yb(e,t=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;on.value,set:o=>n.value=o})}return n}function eg(e,t,n,r,i=!1){if(Je(e)){e.forEach((v,m)=>eg(v,t&&(Je(t)?t[m]:t),n,r,i));return}if(pu(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&eg(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Kg(r.component):r.el,a=i?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Jt?s.refs={}:s.refs,f=s.setupState,d=sn(f),h=f===Jt?()=>!1:v=>cn(d,v);if(u!=null&&u!==l&&(At(u)?(c[u]=null,h(u)&&(f[u]=null)):st(u)&&(u.value=null)),bt(l))bh(l,s,12,[a,c]);else{const v=At(l),m=st(l);if(v||m){const y=()=>{if(e.f){const _=v?h(l)?f[l]:c[l]:l.value;i?Je(_)&&lb(_,o):Je(_)?_.includes(o)||_.push(o):v?(c[l]=[o],h(l)&&(f[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else v?(c[l]=a,h(l)&&(f[l]=a)):m&&(l.value=a,e.k&&(c[e.k]=a))};a?(y.id=-1,xr(y,n)):y()}}}let ND=!1;const Yf=()=>{ND||(console.error("Hydration completed but contains mismatches."),ND=!0)},QZ=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",eq=e=>e.namespaceURI.includes("MathML"),_y=e=>{if(e.nodeType===1){if(QZ(e))return"svg";if(eq(e))return"mathml"}},Td=e=>e.nodeType===8;function tq(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:u}}=e,c=(w,S)=>{if(!S.hasChildNodes()){n(null,w,S),K_(),S._vnode=w;return}f(S.firstChild,w,null,null,null),K_(),S._vnode=w},f=(w,S,T,E,A,P=!1)=>{P=P||!!S.dynamicChildren;const I=Td(w)&&w.data==="[",R=()=>m(w,S,T,E,A,I),{type:O,ref:M,shapeFlag:$,patchFlag:F}=S;let z=w.nodeType;S.el=w,F===-2&&(P=!1,S.dynamicChildren=null);let B=null;switch(O){case el:z!==3?S.children===""?(l(S.el=i(""),a(w),w),B=w):B=R():(w.data!==S.children&&(Yf(),w.data=S.children),B=o(w));break;case yr:b(w)?(B=o(w),_(S.el=w.content.firstChild,w,T)):z!==8||I?B=R():B=o(w);break;case Xc:if(I&&(w=o(w),z=w.nodeType),z===1||z===3){B=w;const Y=!S.children.length;for(let j=0;j{P=P||!!S.dynamicChildren;const{type:I,props:R,patchFlag:O,shapeFlag:M,dirs:$,transition:F}=S,z=I==="input"||I==="option";if(z||O!==-1){$&&qa(S,null,T,"created");let B=!1;if(b(w)){B=J$(null,F)&&T&&T.vnode.props&&T.vnode.props.appear;const j=w.content.firstChild;B&&F.beforeEnter(j),_(j,w,T),S.el=w=j}if(M&16&&!(R&&(R.innerHTML||R.textContent))){let j=h(w.firstChild,S,w,T,E,A,P);for(;j;){by(w,1)||Yf();const se=j;j=j.nextSibling,s(se)}}else if(M&8){let j=S.children;j[0]===` +`&&(w.tagName==="PRE"||w.tagName==="TEXTAREA")&&(j=j.slice(1)),w.textContent!==j&&(by(w,0)||Yf(),w.textContent=S.children)}if(R){if(z||!P||O&48){const j=w.tagName.includes("-");for(const se in R)(z&&(se.endsWith("value")||se==="indeterminate")||Du(se)&&!Qs(se)||se[0]==="."||j)&&r(w,se,null,R[se],void 0,T)}else if(R.onClick)r(w,"onClick",null,R.onClick,void 0,T);else if(O&4&&hu(R.style))for(const j in R.style)R.style[j]}let Y;(Y=R&&R.onVnodeBeforeMount)&&Hi(Y,T,S),$&&qa(S,null,T,"beforeMount"),((Y=R&&R.onVnodeMounted)||$||B)&&s4(()=>{Y&&Hi(Y,T,S),B&&F.enter(w),$&&qa(S,null,T,"mounted")},E)}return w.nextSibling},h=(w,S,T,E,A,P,I)=>{I=I||!!S.dynamicChildren;const R=S.children,O=R.length;for(let M=0;M{const{slotScopeIds:I}=S;I&&(A=A?A.concat(I):I);const R=a(w),O=h(o(w),S,R,T,E,A,P);return O&&Td(O)&&O.data==="]"?o(S.anchor=O):(Yf(),l(S.anchor=u("]"),R,O),O)},m=(w,S,T,E,A,P)=>{if(by(w.parentElement,1)||Yf(),S.el=null,P){const O=y(w);for(;;){const M=o(w);if(M&&M!==O)s(M);else break}}const I=o(w),R=a(w);return s(w),n(null,S,R,I,T,E,_y(R),A),T&&(T.vnode.el=S.el,xb(T,S.el)),I},y=(w,S="[",T="]")=>{let E=0;for(;w;)if(w=o(w),w&&Td(w)&&(w.data===S&&E++,w.data===T)){if(E===0)return o(w);E--}return w},_=(w,S,T)=>{const E=S.parentNode;E&&E.replaceChild(w,S);let A=T;for(;A;)A.vnode.el===S&&(A.vnode.el=A.subTree.el=w),A=A.parent},b=w=>w.nodeType===1&&w.tagName==="TEMPLATE";return[c,f]}const kD="data-allow-mismatch",nq={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function by(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(kD);)e=e.parentElement;const n=e&&e.getAttribute(kD);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(nq[t])}}const rq=Gg().requestIdleCallback||(e=>setTimeout(e,1)),iq=Gg().cancelIdleCallback||(e=>clearTimeout(e)),oq=(e=1e4)=>t=>{const n=rq(t,{timeout:e});return()=>iq(n)};function aq(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:a}=window;return(t>0&&t0&&r0&&n0&&i(t,n)=>{const r=new IntersectionObserver(i=>{for(const o of i)if(o.isIntersecting){r.disconnect(),t();break}},e);return n(i=>{if(i instanceof Element){if(aq(i))return t(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},lq=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},uq=(e=[])=>(t,n)=>{At(e)&&(e=[e]);let r=!1;const i=a=>{r||(r=!0,o(),t(),a.target.dispatchEvent(new a.constructor(a.type,a)))},o=()=>{n(a=>{for(const s of e)a.removeEventListener(s,i)})};return n(a=>{for(const s of e)a.addEventListener(s,i,{once:!0})}),o};function cq(e,t){if(Td(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Td(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const pu=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function fq(e){bt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:o,timeout:a,suspensible:s=!0,onError:l}=e;let u=null,c,f=0;const d=()=>(f++,u=null,h()),h=()=>{let v;return u||(v=u=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((y,_)=>{l(m,()=>y(d()),()=>_(m),f+1)});throw m}).then(m=>v!==u&&u?u:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return it({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(v,m,y){const _=o?()=>{const b=o(y,w=>cq(v,w));b&&(m.bum||(m.bum=[])).push(b)}:y;c?_():h().then(()=>!m.isUnmounted&&_())},get __asyncResolved(){return c},setup(){const v=Tr;if(hI(v),c)return()=>cx(c,v);const m=w=>{u=null,Af(w,v,13,!r)};if(s&&v.suspense||Kd)return h().then(w=>()=>cx(w,v)).catch(w=>(m(w),()=>r?ye(r,{error:w}):null));const y=Fe(!1),_=Fe(),b=Fe(!!i);return i&&setTimeout(()=>{b.value=!1},i),a!=null&&setTimeout(()=>{if(!y.value&&!_.value){const w=new Error(`Async component timed out after ${a}ms.`);m(w),_.value=w}},a),h().then(()=>{y.value=!0,v.parent&&jg(v.parent.vnode)&&v.parent.update()}).catch(w=>{m(w),_.value=w}),()=>{if(y.value&&c)return cx(c,v);if(_.value&&r)return ye(r,{error:_.value});if(n&&!b.value)return ye(n)}}})}function cx(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,a=ye(e,r,i);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const jg=e=>e.type.__isKeepAlive,dq={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=br(),r=n.ctx;if(!r.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const i=new Map,o=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(b,w,S,T,E)=>{const A=b.component;u(b,w,S,0,s),l(A.vnode,b,w,S,A,s,T,b.slotScopeIds,E),xr(()=>{A.isDeactivated=!1,A.a&&Wc(A.a);const P=b.props&&b.props.onVnodeMounted;P&&Hi(P,A.parent,b)},s)},r.deactivate=b=>{const w=b.component;q_(w.m),q_(w.a),u(b,d,null,1,s),xr(()=>{w.da&&Wc(w.da);const S=b.props&&b.props.onVnodeUnmounted;S&&Hi(S,w.parent,b),w.isDeactivated=!0},s)};function h(b){fx(b),c(b,n,s,!0)}function v(b){i.forEach((w,S)=>{const T=KE(w.type);T&&!b(T)&&m(S)})}function m(b){const w=i.get(b);w&&(!a||!Aa(w,a))?h(w):a&&fx(a),i.delete(b),o.delete(b)}Yt(()=>[e.include,e.exclude],([b,w])=>{b&&v(S=>$p(b,S)),w&&v(S=>!$p(w,S))},{flush:"post",deep:!0});let y=null;const _=()=>{y!=null&&(J_(n.subTree.type)?xr(()=>{i.set(y,Sy(n.subTree))},n.subTree.suspense):i.set(y,Sy(n.subTree)))};return Ro(_),bb(_),Yg(()=>{i.forEach(b=>{const{subTree:w,suspense:S}=n,T=Sy(w);if(b.type===T.type&&b.key===T.key){fx(T);const E=T.component.da;E&&xr(E,S);return}h(b)})}),()=>{if(y=null,!t.default)return a=null;const b=t.default(),w=b[0];if(b.length>1)return a=null,b;if(!ll(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return a=null,w;let S=Sy(w);if(S.type===yr)return a=null,S;const T=S.type,E=KE(pu(S)?S.type.__asyncResolved||{}:T),{include:A,exclude:P,max:I}=e;if(A&&(!E||!$p(A,E))||P&&E&&$p(P,E))return S.shapeFlag&=-257,a=S,w;const R=S.key==null?T:S.key,O=i.get(R);return S.el&&(S=ls(S),w.shapeFlag&128&&(w.ssContent=S)),y=R,O?(S.el=O.el,S.component=O.component,S.transition&&sl(S,S.transition),S.shapeFlag|=512,o.delete(R),o.add(R)):(o.add(R),I&&o.size>parseInt(I,10)&&m(o.values().next().value)),S.shapeFlag|=256,a=S,J_(w.type)?w:S}}},hq=dq;function $p(e,t){return Je(e)?e.some(n=>$p(n,t)):At(e)?e.split(",").includes(t):L5(e)?(e.lastIndex=0,e.test(t)):!1}function I$(e,t){P$(e,"a",t)}function R$(e,t){P$(e,"da",t)}function P$(e,t,n=Tr){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(_b(t,r,n),n){let i=n.parent;for(;i&&i.parent;)jg(i.parent.vnode)&&pq(r,t,n,i),i=i.parent}}function pq(e,t,n,r){const i=_b(t,e,r,!0);Sh(()=>{lb(r[t],i)},n)}function fx(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Sy(e){return e.shapeFlag&128?e.ssContent:e}function _b(e,t,n=Tr,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Nu();const s=uf(n),l=ia(t,n,e,a);return s(),ku(),l});return r?i.unshift(o):i.push(o),o}}const gl=e=>(t,n=Tr)=>{(!Kd||e==="sp")&&_b(e,(...r)=>t(...r),n)},O$=gl("bm"),Ro=gl("m"),pI=gl("bu"),bb=gl("u"),Yg=gl("bum"),Sh=gl("um"),D$=gl("sp"),M$=gl("rtg"),L$=gl("rtc");function N$(e,t=Tr){_b("ec",e,t)}const vI="components",vq="directives";function gq(e,t){return gI(vI,e,!0,t)||e}const k$=Symbol.for("v-ndc");function ss(e){return At(e)?gI(vI,e,!1)||e:e||k$}function mq(e){return gI(vq,e)}function gI(e,t,n=!0,r=!1){const i=Er||Tr;if(i){const o=i.type;if(e===vI){const s=KE(o,!1);if(s&&(s===t||s===Bn(t)||s===Lu(Bn(t))))return o}const a=FD(i[e]||o[e],t)||FD(i.appContext[e],t);return!a&&r?o:a}}function FD(e,t){return e&&(e[t]||e[Bn(t)]||e[Lu(Bn(t))])}function on(e,t,n,r){let i;const o=n&&n[r],a=Je(e);if(a||At(e)){const s=a&&hu(e);let l=!1;s&&(l=!xo(e),e=hb(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;l{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return e}function Md(e,t,n={},r,i){if(Er.ce||Er.parent&&pu(Er.parent)&&Er.parent.ce)return t!=="default"&&(n.name=t),K(),Ot(qe,null,[ye("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),K();const a=o&&mI(o(n)),s=n.key||a&&a.key,l=Ot(qe,{key:(s&&!Ri(s)?s:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function mI(e){return e.some(t=>ll(t)?!(t.type===yr||t.type===qe&&!mI(t.children)):!0)?e:null}function _q(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:zc(r)]=e[r];return n}const $E=e=>e?p4(e)?Kg(e):$E(e.parent):null,ov=Qt(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=>$E(e.parent),$root:e=>$E(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>yI(e),$forceUpdate:e=>e.f||(e.f=()=>{cI(e.update)}),$nextTick:e=>e.n||(e.n=vs.bind(e.proxy)),$watch:e=>Kq.bind(e)}),dx=(e,t)=>e!==Jt&&!e.__isScriptSetup&&cn(e,t),BE={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 h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(dx(r,t))return a[t]=1,r[t];if(i!==Jt&&cn(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&cn(u,t))return a[t]=3,o[t];if(n!==Jt&&cn(n,t))return a[t]=4,n[t];VE&&(a[t]=0)}}const c=ov[t];let f,d;if(c)return t==="$attrs"&&ii(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Jt&&cn(n,t))return a[t]=4,n[t];if(d=l.config.globalProperties,cn(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return dx(i,t)?(i[t]=n,!0):r!==Jt&&cn(r,t)?(r[t]=n,!0):cn(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!==Jt&&cn(e,a)||dx(t,a)||(s=o[0])&&cn(s,a)||cn(r,a)||cn(ov,a)||cn(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:cn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},bq=Qt({},BE,{get(e,t){if(t!==Symbol.unscopables)return BE.get(e,t,e)},has(e,t){return t[0]!=="_"&&!JA(t)}});function Sq(){return null}function wq(){return null}function xq(e){}function Tq(e){}function Eq(){return null}function Cq(){}function Aq(e,t){return null}function Iq(){return F$().slots}function Rq(){return F$().attrs}function F$(){const e=br();return e.setupContext||(e.setupContext=m4(e))}function tg(e){return Je(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Pq(e,t){const n=tg(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?Je(i)||bt(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function Oq(e,t){return!e||!t?e||t:Je(e)&&Je(t)?e.concat(t):Qt({},tg(e),tg(t))}function Dq(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Mq(e){const t=br();let n=e();return jE(),ub(n)&&(n=n.catch(r=>{throw uf(t),r})),[n,()=>uf(t)]}let VE=!0;function Lq(e){const t=yI(e),n=e.proxy,r=e.ctx;VE=!1,t.beforeCreate&&$D(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:m,deactivated:y,beforeDestroy:_,beforeUnmount:b,destroyed:w,unmounted:S,render:T,renderTracked:E,renderTriggered:A,errorCaptured:P,serverPrefetch:I,expose:R,inheritAttrs:O,components:M,directives:$,filters:F}=t;if(u&&Nq(u,r,null),a)for(const Y in a){const j=a[Y];bt(j)&&(r[Y]=j.bind(n))}if(i){const Y=i.call(n,n);vn(Y)&&(e.data=La(Y))}if(VE=!0,o)for(const Y in o){const j=o[Y],se=bt(j)?j.bind(n,n):bt(j.get)?j.get.bind(n,n):Lr,ge=!bt(j)&&bt(j.set)?j.set.bind(n):Lr,ve=Ve({get:se,set:ge});Object.defineProperty(r,Y,{enumerable:!0,configurable:!0,get:()=>ve.value,set:De=>ve.value=De})}if(s)for(const Y in s)$$(s[Y],r,n,Y);if(l){const Y=bt(l)?l.call(n):l;Reflect.ownKeys(Y).forEach(j=>{av(j,Y[j])})}c&&$D(c,e,"c");function B(Y,j){Je(j)?j.forEach(se=>Y(se.bind(n))):j&&Y(j.bind(n))}if(B(O$,f),B(Ro,d),B(pI,h),B(bb,v),B(I$,m),B(R$,y),B(N$,P),B(L$,E),B(M$,A),B(Yg,b),B(Sh,S),B(D$,I),Je(R))if(R.length){const Y=e.exposed||(e.exposed={});R.forEach(j=>{Object.defineProperty(Y,j,{get:()=>n[j],set:se=>n[j]=se})})}else e.exposed||(e.exposed={});T&&e.render===Lr&&(e.render=T),O!=null&&(e.inheritAttrs=O),M&&(e.components=M),$&&(e.directives=$),I&&hI(e)}function Nq(e,t,n=Lr){Je(e)&&(e=UE(e));for(const r in e){const i=e[r];let o;vn(i)?"default"in i?o=qi(i.from||r,i.default,!0):o=qi(i.from||r):o=qi(i),st(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function $D(e,t,n){ia(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function $$(e,t,n,r){let i=r.includes(".")?r4(n,r):()=>n[r];if(At(e)){const o=t[e];bt(o)&&Yt(i,o)}else if(bt(e))Yt(i,e.bind(n));else if(vn(e))if(Je(e))e.forEach(o=>$$(o,t,n,r));else{const o=bt(e.handler)?e.handler.bind(n):t[e.handler];bt(o)&&Yt(i,o,e)}}function yI(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=>Z_(l,u,a,!0)),Z_(l,t,a)),vn(t)&&o.set(t,l),l}function Z_(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&Z_(e,o,n,!0),i&&i.forEach(a=>Z_(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=kq[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const kq={data:BD,props:VD,emits:VD,methods:Bp,computed:Bp,beforeCreate:_i,created:_i,beforeMount:_i,mounted:_i,beforeUpdate:_i,updated:_i,beforeDestroy:_i,beforeUnmount:_i,destroyed:_i,unmounted:_i,activated:_i,deactivated:_i,errorCaptured:_i,serverPrefetch:_i,components:Bp,directives:Bp,watch:$q,provide:BD,inject:Fq};function BD(e,t){return t?e?function(){return Qt(bt(e)?e.call(this,this):e,bt(t)?t.call(this,this):t)}:t:e}function Fq(e,t){return Bp(UE(e),UE(t))}function UE(e){if(Je(e)){const t={};for(let n=0;n1)return n&&bt(t)?t.call(r&&r.proxy):t}}function _I(){return!!(Tr||Er||Yc)}const V$={},U$=()=>Object.create(V$),H$=e=>Object.getPrototypeOf(e)===V$;function Uq(e,t,n,r=!1){const i={},o=U$();e.propsDefaults=Object.create(null),G$(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:sI(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Hq(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=sn(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[d,h]=z$(f,t,!0);Qt(a,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return vn(e)&&r.set(e,Hc),Hc;if(Je(o))for(let c=0;ce[0]==="_"||e==="$stable",bI=e=>Je(e)?e.map(Wi):[Wi(e)],zq=(e,t,n)=>{if(t._n)return t;const r=Mr((...i)=>bI(t(...i)),n);return r._c=!1,r},j$=(e,t,n)=>{const r=e._ctx;for(const i in e){if(W$(i))continue;const o=e[i];if(bt(o))t[i]=zq(i,o,r);else if(o!=null){const a=bI(o);t[i]=()=>a}}},Y$=(e,t)=>{const n=bI(t);e.slots.default=()=>n},X$=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Wq=(e,t,n)=>{const r=e.slots=U$();if(e.vnode.shapeFlag&32){const i=t._;i?(X$(r,t,n),n&&qA(r,"_",i,!0)):j$(t,r)}else t&&Y$(e,t)},jq=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=Jt;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:X$(i,t,n):(o=!t.$stable,j$(t,i)),a=t}else t&&(Y$(e,t),a={default:1});if(o)for(const s in i)!W$(s)&&a[s]==null&&delete i[s]},xr=s4;function K$(e){return q$(e)}function Z$(e){return q$(e,tq)}function q$(e,t){const n=Gg();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=Lr,insertStaticContent:v}=e,m=(H,G,le,we=null,pe=null,U=null,W=void 0,q=null,fe=!!G.dynamicChildren)=>{if(H===G)return;H&&!Aa(H,G)&&(we=ce(H),De(H,pe,U,!0),H=null),G.patchFlag===-2&&(fe=!1,G.dynamicChildren=null);const{type:_e,ref:Pe,shapeFlag:Z}=G;switch(_e){case el:y(H,G,le,we);break;case yr:_(H,G,le,we);break;case Xc:H==null&&b(G,le,we,W);break;case qe:M(H,G,le,we,pe,U,W,q,fe);break;default:Z&1?T(H,G,le,we,pe,U,W,q,fe):Z&6?$(H,G,le,we,pe,U,W,q,fe):(Z&64||Z&128)&&_e.process(H,G,le,we,pe,U,W,q,fe,Te)}Pe!=null&&pe&&eg(Pe,H&&H.ref,U,G||H,!G)},y=(H,G,le,we)=>{if(H==null)r(G.el=s(G.children),le,we);else{const pe=G.el=H.el;G.children!==H.children&&u(pe,G.children)}},_=(H,G,le,we)=>{H==null?r(G.el=l(G.children||""),le,we):G.el=H.el},b=(H,G,le,we)=>{[H.el,H.anchor]=v(H.children,G,le,we,H.el,H.anchor)},w=({el:H,anchor:G},le,we)=>{let pe;for(;H&&H!==G;)pe=d(H),r(H,le,we),H=pe;r(G,le,we)},S=({el:H,anchor:G})=>{let le;for(;H&&H!==G;)le=d(H),i(H),H=le;i(G)},T=(H,G,le,we,pe,U,W,q,fe)=>{G.type==="svg"?W="svg":G.type==="math"&&(W="mathml"),H==null?E(G,le,we,pe,U,W,q,fe):I(H,G,pe,U,W,q,fe)},E=(H,G,le,we,pe,U,W,q)=>{let fe,_e;const{props:Pe,shapeFlag:Z,transition:de,dirs:Be}=H;if(fe=H.el=a(H.type,U,Pe&&Pe.is,Pe),Z&8?c(fe,H.children):Z&16&&P(H.children,fe,null,we,pe,hx(H,U),W,q),Be&&qa(H,null,we,"created"),A(fe,H,H.scopeId,W,we),Pe){for(const ht in Pe)ht!=="value"&&!Qs(ht)&&o(fe,ht,null,Pe[ht],U,we);"value"in Pe&&o(fe,"value",null,Pe.value,U),(_e=Pe.onVnodeBeforeMount)&&Hi(_e,we,H)}Be&&qa(H,null,we,"beforeMount");const Xe=J$(pe,de);Xe&&de.beforeEnter(fe),r(fe,G,le),((_e=Pe&&Pe.onVnodeMounted)||Xe||Be)&&xr(()=>{_e&&Hi(_e,we,H),Xe&&de.enter(fe),Be&&qa(H,null,we,"mounted")},pe)},A=(H,G,le,we,pe)=>{if(le&&h(H,le),we)for(let U=0;U{for(let _e=fe;_e{const q=G.el=H.el;let{patchFlag:fe,dynamicChildren:_e,dirs:Pe}=G;fe|=H.patchFlag&16;const Z=H.props||Jt,de=G.props||Jt;let Be;if(le&&Ju(le,!1),(Be=de.onVnodeBeforeUpdate)&&Hi(Be,le,G,H),Pe&&qa(G,H,le,"beforeUpdate"),le&&Ju(le,!0),(Z.innerHTML&&de.innerHTML==null||Z.textContent&&de.textContent==null)&&c(q,""),_e?R(H.dynamicChildren,_e,q,le,we,hx(G,pe),U):W||j(H,G,q,null,le,we,hx(G,pe),U,!1),fe>0){if(fe&16)O(q,Z,de,le,pe);else if(fe&2&&Z.class!==de.class&&o(q,"class",null,de.class,pe),fe&4&&o(q,"style",Z.style,de.style,pe),fe&8){const Xe=G.dynamicProps;for(let ht=0;ht{Be&&Hi(Be,le,G,H),Pe&&qa(G,H,le,"updated")},we)},R=(H,G,le,we,pe,U,W)=>{for(let q=0;q{if(G!==le){if(G!==Jt)for(const U in G)!Qs(U)&&!(U in le)&&o(H,U,G[U],null,pe,we);for(const U in le){if(Qs(U))continue;const W=le[U],q=G[U];W!==q&&U!=="value"&&o(H,U,q,W,pe,we)}"value"in le&&o(H,"value",G.value,le.value,pe)}},M=(H,G,le,we,pe,U,W,q,fe)=>{const _e=G.el=H?H.el:s(""),Pe=G.anchor=H?H.anchor:s("");let{patchFlag:Z,dynamicChildren:de,slotScopeIds:Be}=G;Be&&(q=q?q.concat(Be):Be),H==null?(r(_e,le,we),r(Pe,le,we),P(G.children||[],le,Pe,pe,U,W,q,fe)):Z>0&&Z&64&&de&&H.dynamicChildren?(R(H.dynamicChildren,de,le,pe,U,W,q),(G.key!=null||pe&&G===pe.subTree)&&SI(H,G,!0)):j(H,G,le,Pe,pe,U,W,q,fe)},$=(H,G,le,we,pe,U,W,q,fe)=>{G.slotScopeIds=q,H==null?G.shapeFlag&512?pe.ctx.activate(G,le,we,W,fe):F(G,le,we,pe,U,W,fe):z(H,G,fe)},F=(H,G,le,we,pe,U,W)=>{const q=H.component=h4(H,we,pe);if(jg(H)&&(q.ctx.renderer=Te),v4(q,!1,W),q.asyncDep){if(pe&&pe.registerDep(q,B,W),!H.el){const fe=q.subTree=ye(yr);_(null,fe,G,le)}}else B(q,H,G,le,pe,U,W)},z=(H,G,le)=>{const we=G.component=H.component;if(tJ(H,G,le))if(we.asyncDep&&!we.asyncResolved){Y(we,G,le);return}else we.next=G,we.update();else G.el=H.el,we.vnode=G},B=(H,G,le,we,pe,U,W)=>{const q=()=>{if(H.isMounted){let{next:Z,bu:de,u:Be,parent:Xe,vnode:ht}=H;{const He=Q$(H);if(He){Z&&(Z.el=ht.el,Y(H,Z,W)),He.asyncDep.then(()=>{H.isUnmounted||q()});return}}let ee=Z,ie;Ju(H,!1),Z?(Z.el=ht.el,Y(H,Z,W)):Z=ht,de&&Wc(de),(ie=Z.props&&Z.props.onVnodeBeforeUpdate)&&Hi(ie,Xe,Z,ht),Ju(H,!0);const he=H0(H),Ee=H.subTree;H.subTree=he,m(Ee,he,f(Ee.el),ce(Ee),H,pe,U),Z.el=he.el,ee===null&&xb(H,he.el),Be&&xr(Be,pe),(ie=Z.props&&Z.props.onVnodeUpdated)&&xr(()=>Hi(ie,Xe,Z,ht),pe)}else{let Z;const{el:de,props:Be}=G,{bm:Xe,m:ht,parent:ee,root:ie,type:he}=H,Ee=pu(G);if(Ju(H,!1),Xe&&Wc(Xe),!Ee&&(Z=Be&&Be.onVnodeBeforeMount)&&Hi(Z,ee,G),Ju(H,!0),de&&$e){const He=()=>{H.subTree=H0(H),$e(de,H.subTree,H,pe,null)};Ee&&he.__asyncHydrate?he.__asyncHydrate(de,H,He):He()}else{ie.ce&&ie.ce._injectChildStyle(he);const He=H.subTree=H0(H);m(null,He,le,we,H,pe,U),G.el=He.el}if(ht&&xr(ht,pe),!Ee&&(Z=Be&&Be.onVnodeMounted)){const He=G;xr(()=>Hi(Z,ee,He),pe)}(G.shapeFlag&256||ee&&pu(ee.vnode)&&ee.vnode.shapeFlag&256)&&H.a&&xr(H.a,pe),H.isMounted=!0,G=le=we=null}};H.scope.on();const fe=H.effect=new Xv(q);H.scope.off();const _e=H.update=fe.run.bind(fe),Pe=H.job=fe.runIfDirty.bind(fe);Pe.i=H,Pe.id=H.uid,fe.scheduler=()=>cI(Pe),Ju(H,!0),_e()},Y=(H,G,le)=>{G.component=H;const we=H.vnode.props;H.vnode=G,H.next=null,Hq(H,G.props,we,le),jq(H,G.children,le),Nu(),PD(H),ku()},j=(H,G,le,we,pe,U,W,q,fe=!1)=>{const _e=H&&H.children,Pe=H?H.shapeFlag:0,Z=G.children,{patchFlag:de,shapeFlag:Be}=G;if(de>0){if(de&128){ge(_e,Z,le,we,pe,U,W,q,fe);return}else if(de&256){se(_e,Z,le,we,pe,U,W,q,fe);return}}Be&8?(Pe&16&&je(_e,pe,U),Z!==_e&&c(le,Z)):Pe&16?Be&16?ge(_e,Z,le,we,pe,U,W,q,fe):je(_e,pe,U,!0):(Pe&8&&c(le,""),Be&16&&P(Z,le,we,pe,U,W,q,fe))},se=(H,G,le,we,pe,U,W,q,fe)=>{H=H||Hc,G=G||Hc;const _e=H.length,Pe=G.length,Z=Math.min(_e,Pe);let de;for(de=0;dePe?je(H,pe,U,!0,!1,Z):P(G,le,we,pe,U,W,q,fe,Z)},ge=(H,G,le,we,pe,U,W,q,fe)=>{let _e=0;const Pe=G.length;let Z=H.length-1,de=Pe-1;for(;_e<=Z&&_e<=de;){const Be=H[_e],Xe=G[_e]=fe?ql(G[_e]):Wi(G[_e]);if(Aa(Be,Xe))m(Be,Xe,le,null,pe,U,W,q,fe);else break;_e++}for(;_e<=Z&&_e<=de;){const Be=H[Z],Xe=G[de]=fe?ql(G[de]):Wi(G[de]);if(Aa(Be,Xe))m(Be,Xe,le,null,pe,U,W,q,fe);else break;Z--,de--}if(_e>Z){if(_e<=de){const Be=de+1,Xe=Bede)for(;_e<=Z;)De(H[_e],pe,U,!0),_e++;else{const Be=_e,Xe=_e,ht=new Map;for(_e=Xe;_e<=de;_e++){const ke=G[_e]=fe?ql(G[_e]):Wi(G[_e]);ke.key!=null&&ht.set(ke.key,_e)}let ee,ie=0;const he=de-Xe+1;let Ee=!1,He=0;const ne=new Array(he);for(_e=0;_e=he){De(ke,pe,U,!0);continue}let Qe;if(ke.key!=null)Qe=ht.get(ke.key);else for(ee=Xe;ee<=de;ee++)if(ne[ee-Xe]===0&&Aa(ke,G[ee])){Qe=ee;break}Qe===void 0?De(ke,pe,U,!0):(ne[Qe-Xe]=_e+1,Qe>=He?He=Qe:Ee=!0,m(ke,G[Qe],le,null,pe,U,W,q,fe),ie++)}const Ae=Ee?Yq(ne):Hc;for(ee=Ae.length-1,_e=he-1;_e>=0;_e--){const ke=Xe+_e,Qe=G[ke],Ge=ke+1{const{el:U,type:W,transition:q,children:fe,shapeFlag:_e}=H;if(_e&6){ve(H.component.subTree,G,le,we);return}if(_e&128){H.suspense.move(G,le,we);return}if(_e&64){W.move(H,G,le,Te);return}if(W===qe){r(U,G,le);for(let Z=0;Zq.enter(U),pe);else{const{leave:Z,delayLeave:de,afterLeave:Be}=q,Xe=()=>r(U,G,le),ht=()=>{Z(U,()=>{Xe(),Be&&Be()})};de?de(U,Xe,ht):ht()}else r(U,G,le)},De=(H,G,le,we=!1,pe=!1)=>{const{type:U,props:W,ref:q,children:fe,dynamicChildren:_e,shapeFlag:Pe,patchFlag:Z,dirs:de,cacheIndex:Be}=H;if(Z===-2&&(pe=!1),q!=null&&eg(q,null,le,H,!0),Be!=null&&(G.renderCache[Be]=void 0),Pe&256){G.ctx.deactivate(H);return}const Xe=Pe&1&&de,ht=!pu(H);let ee;if(ht&&(ee=W&&W.onVnodeBeforeUnmount)&&Hi(ee,G,H),Pe&6)Me(H.component,le,we);else{if(Pe&128){H.suspense.unmount(le,we);return}Xe&&qa(H,null,G,"beforeUnmount"),Pe&64?H.type.remove(H,G,le,Te,we):_e&&!_e.hasOnce&&(U!==qe||Z>0&&Z&64)?je(_e,G,le,!1,!0):(U===qe&&Z&384||!pe&&Pe&16)&&je(fe,G,le),we&&Ne(H)}(ht&&(ee=W&&W.onVnodeUnmounted)||Xe)&&xr(()=>{ee&&Hi(ee,G,H),Xe&&qa(H,null,G,"unmounted")},le)},Ne=H=>{const{type:G,el:le,anchor:we,transition:pe}=H;if(G===qe){ze(le,we);return}if(G===Xc){S(H);return}const U=()=>{i(le),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if(H.shapeFlag&1&&pe&&!pe.persisted){const{leave:W,delayLeave:q}=pe,fe=()=>W(le,U);q?q(H.el,U,fe):fe()}else U()},ze=(H,G)=>{let le;for(;H!==G;)le=d(H),i(H),H=le;i(G)},Me=(H,G,le)=>{const{bum:we,scope:pe,job:U,subTree:W,um:q,m:fe,a:_e}=H;q_(fe),q_(_e),we&&Wc(we),pe.stop(),U&&(U.flags|=8,De(W,H,G,le)),q&&xr(q,G),xr(()=>{H.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},je=(H,G,le,we=!1,pe=!1,U=0)=>{for(let W=U;W{if(H.shapeFlag&6)return ce(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const G=d(H.anchor||H.el),le=G&&G[b$];return le?d(le):G};let Ce=!1;const Se=(H,G,le)=>{H==null?G._vnode&&De(G._vnode,null,null,!0):m(G._vnode||null,H,G,null,null,null,le),G._vnode=H,Ce||(Ce=!0,PD(),K_(),Ce=!1)},Te={p:m,um:De,m:ve,r:Ne,mt:F,mc:P,pc:j,pbc:R,n:ce,o:e};let Oe,$e;return t&&([Oe,$e]=t(Te)),{render:Se,hydrate:Oe,createApp:Vq(Se,Oe)}}function hx({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 Ju({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function J$(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function SI(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 Q$(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Q$(t)}function q_(e){if(e)for(let t=0;tqi(e4);function Sb(e,t){return Xg(e,null,t)}function Xq(e,t){return Xg(e,null,{flush:"post"})}function n4(e,t){return Xg(e,null,{flush:"sync"})}function Yt(e,t,n){return Xg(e,t,n)}function Xg(e,t,n=Jt){const{immediate:r,deep:i,flush:o,once:a}=n,s=Qt({},n),l=t&&r||!t&&o!=="post";let u;if(Kd){if(o==="sync"){const h=t4();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Lr,h.resume=Lr,h.pause=Lr,h}}const c=Tr;s.call=(h,v,m)=>ia(h,c,v,m);let f=!1;o==="post"?s.scheduler=h=>{xr(h,c&&c.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(h,v)=>{v?h():cI(h)}),s.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=FZ(e,t,s);return Kd&&(u?u.push(d):l&&d()),d}function Kq(e,t,n){const r=this.proxy,i=At(e)?e.includes(".")?r4(r,e):()=>r[e]:e.bind(r,r);let o;bt(t)?o=t:(o=t.handler,n=t);const a=uf(this),s=Xg(i,o.bind(r),n);return a(),s}function r4(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{let c,f=Jt,d;return n4(()=>{const h=e[i];ri(c,h)&&(c=h,u())}),{get(){return l(),n.get?n.get(c):c},set(h){const v=n.set?n.set(h):h;if(!ri(v,c)&&!(f!==Jt&&ri(h,f)))return;const m=r.vnode.props;m&&(t in m||i in m||o in m)&&(`onUpdate:${t}`in m||`onUpdate:${i}`in m||`onUpdate:${o}`in m)||(c=h,u()),r.emit(`update:${t}`,v),ri(h,v)&&ri(h,f)&&!ri(v,d)&&u(),f=h,d=v}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||Jt:s,done:!1}:{done:!0}}}},s}const i4=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Bn(t)}Modifiers`]||e[`${ai(t)}Modifiers`];function qq(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Jt;let i=n;const o=t.startsWith("update:"),a=o&&i4(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>At(c)?c.trim():c)),a.number&&(i=n.map(jv)));let s,l=r[s=zc(t)]||r[s=zc(Bn(t))];!l&&o&&(l=r[s=zc(ai(t))]),l&&ia(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,ia(u,e,6,i)}}function o4(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(!bt(e)){const l=u=>{const c=o4(u,t,!0);c&&(s=!0,Qt(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(vn(e)&&r.set(e,null),null):(Je(o)?o.forEach(l=>a[l]=null):Qt(a,o),vn(e)&&r.set(e,a),a)}function wb(e,t){return!e||!Du(t)?!1:(t=t.slice(2).replace(/Once$/,""),cn(e,t[0].toLowerCase()+t.slice(1))||cn(e,ai(t))||cn(e,t))}function H0(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:d,setupState:h,ctx:v,inheritAttrs:m}=e,y=Qv(e);let _,b;try{if(n.shapeFlag&4){const S=i||r,T=S;_=Wi(u.call(T,S,c,f,h,d,v)),b=s}else{const S=t;_=Wi(S.length>1?S(f,{attrs:s,slots:a,emit:l}):S(f,null)),b=t.props?s:Qq(s)}}catch(S){sv.length=0,Af(S,e,1),_=ye(yr)}let w=_;if(b&&m!==!1){const S=Object.keys(b),{shapeFlag:T}=w;S.length&&T&7&&(o&&S.some(sb)&&(b=eJ(b,o)),w=ls(w,b,!1,!0))}return n.dirs&&(w=ls(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&sl(w,n.transition),_=w,Qv(y),_}function Jq(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||Du(n))&&((t||(t={}))[n]=e[n]);return t},eJ=(e,t)=>{const n={};for(const r in e)(!sb(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function tJ(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?HD(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;let GE=0;const nJ={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,u){if(e==null)iJ(t,n,r,i,o,a,s,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}oJ(e,t,n,r,i,a,s,l,u)}},hydrate:aJ,normalize:sJ},rJ=nJ;function ng(e,t){const n=e.props&&e.props[t];bt(n)&&n()}function iJ(e,t,n,r,i,o,a,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=a4(e,i,r,t,f,n,o,a,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,a),d.deps>0?(ng(e,"onPending"),ng(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,a),Ld(d,e.ssFallback)):d.resolve(!1,!0)}function oJ(e,t,n,r,i,o,a,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:v,pendingBranch:m,isInFallback:y,isHydrating:_}=f;if(m)f.pendingBranch=d,Aa(d,m)?(l(m,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():y&&(_||(l(v,h,n,r,i,null,o,a,s),Ld(f,h)))):(f.pendingId=GE++,_?(f.isHydrating=!1,f.activeBranch=m):u(m,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),y?(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():(l(v,h,n,r,i,null,o,a,s),Ld(f,h))):v&&Aa(d,v)?(l(v,d,n,r,i,f,o,a,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0&&f.resolve()));else if(v&&Aa(d,v))l(v,d,n,r,i,f,o,a,s),Ld(f,d);else if(ng(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=GE++,l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:w}=f;b>0?setTimeout(()=>{f.pendingId===w&&f.fallback(h)},b):b===0&&f.fallback(h)}}function a4(e,t,n,r,i,o,a,s,l,u,c=!1){const{p:f,m:d,um:h,n:v,o:{parentNode:m,remove:y}}=u;let _;const b=lJ(e);b&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const w=e.props?Yv(e.props.timeout):void 0,S=o,T={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:GE++,timeout:typeof w=="number"?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(E=!1,A=!1){const{vnode:P,activeBranch:I,pendingBranch:R,pendingId:O,effects:M,parentComponent:$,container:F}=T;let z=!1;T.isHydrating?T.isHydrating=!1:E||(z=I&&R.transition&&R.transition.mode==="out-in",z&&(I.transition.afterLeave=()=>{O===T.pendingId&&(d(R,F,o===S?v(I):o,0),qv(M))}),I&&(m(I.el)===F&&(o=v(I)),h(I,$,T,!0)),z||d(R,F,o,0)),Ld(T,R),T.pendingBranch=null,T.isInFallback=!1;let B=T.parent,Y=!1;for(;B;){if(B.pendingBranch){B.effects.push(...M),Y=!0;break}B=B.parent}!Y&&!z&&qv(M),T.effects=[],b&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!A&&t.resolve()),ng(P,"onResolve")},fallback(E){if(!T.pendingBranch)return;const{vnode:A,activeBranch:P,parentComponent:I,container:R,namespace:O}=T;ng(A,"onFallback");const M=v(P),$=()=>{T.isInFallback&&(f(null,E,R,M,I,null,O,s,l),Ld(T,E))},F=E.transition&&E.transition.mode==="out-in";F&&(P.transition.afterLeave=$),T.isInFallback=!0,h(P,I,null,!0),F||$()},move(E,A,P){T.activeBranch&&d(T.activeBranch,E,A,P),T.container=E},next(){return T.activeBranch&&v(T.activeBranch)},registerDep(E,A,P){const I=!!T.pendingBranch;I&&T.deps++;const R=E.vnode.el;E.asyncDep.catch(O=>{Af(O,E,0)}).then(O=>{if(E.isUnmounted||T.isUnmounted||T.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:M}=E;YE(E,O,!1),R&&(M.el=R);const $=!R&&E.subTree.el;A(E,M,m(R||E.subTree.el),R?null:v(E.subTree),T,a,P),$&&y($),xb(E,M.el),I&&--T.deps===0&&T.resolve()})},unmount(E,A){T.isUnmounted=!0,T.activeBranch&&h(T.activeBranch,n,E,A),T.pendingBranch&&h(T.pendingBranch,n,E,A)}};return T}function aJ(e,t,n,r,i,o,a,s,l){const u=t.suspense=a4(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,a);return u.deps===0&&u.resolve(!1,!0),c}function sJ(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=GD(r?n.default:n),e.ssFallback=r?GD(n.fallback):ye(yr)}function GD(e){let t;if(bt(e)){const n=lf&&e._c;n&&(e._d=!1,K()),e=e(),n&&(e._d=!0,t=ui,l4())}return Je(e)&&(e=Jq(e)),e=Wi(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function s4(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):qv(e)}function Ld(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,xb(r,i))}function lJ(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const qe=Symbol.for("v-fgt"),el=Symbol.for("v-txt"),yr=Symbol.for("v-cmt"),Xc=Symbol.for("v-stc"),sv=[];let ui=null;function K(e=!1){sv.push(ui=e?null:[])}function l4(){sv.pop(),ui=sv[sv.length-1]||null}let lf=1;function zE(e,t=!1){lf+=e,e<0&&ui&&t&&(ui.hasOnce=!0)}function u4(e){return e.dynamicChildren=lf>0?ui||Hc:null,l4(),lf>0&&ui&&ui.push(e),e}function ae(e,t,n,r,i,o){return u4(L(e,t,n,r,i,o,!0))}function Ot(e,t,n,r,i){return u4(ye(e,t,n,r,i,!0))}function ll(e){return e?e.__v_isVNode===!0:!1}function Aa(e,t){return e.type===t.type&&e.key===t.key}function uJ(e){}const c4=({key:e})=>e??null,G0=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?At(e)||st(e)||bt(e)?{i:Er,r:e,k:t,f:!!n}:e:null);function L(e,t=null,n=null,r=0,i=null,o=e===qe?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&c4(t),ref:t&&G0(t),scopeId:mb,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:Er};return s?(wI(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=At(n)?8:16),lf>0&&!a&&ui&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&ui.push(l),l}const ye=cJ;function cJ(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===k$)&&(e=yr),ll(e)){const s=ls(e,t,!0);return n&&wI(s,n),lf>0&&!o&&ui&&(s.shapeFlag&6?ui[ui.indexOf(e)]=s:ui.push(s)),s.patchFlag=-2,s}if(yJ(e)&&(e=e.__vccOpts),t){t=f4(t);let{class:s,style:l}=t;s&&!At(s)&&(t.class=rt(s)),vn(l)&&(gb(l)&&!Je(l)&&(l=Qt({},l)),t.style=Gr(l))}const a=At(e)?1:J_(e)?128:S$(e)?64:vn(e)?4:bt(e)?2:0;return L(e,t,n,r,i,a,o,!0)}function f4(e){return e?gb(e)||H$(e)?Qt({},e):e:null}function ls(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?d4(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&c4(u),ref:t&&t.ref?n&&o?Je(o)?o.concat(G0(t)):[o,G0(t)]:G0(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!==qe?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&&ls(e.ssContent),ssFallback:e.ssFallback&&ls(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&sl(c,l.clone(c)),c}function ft(e=" ",t=0){return ye(el,null,e,t)}function fJ(e,t){const n=ye(Xc,null,e);return n.staticCount=t,n}function mt(e="",t=!1){return t?(K(),Ot(yr,null,e)):ye(yr,null,e)}function Wi(e){return e==null||typeof e=="boolean"?ye(yr):Je(e)?ye(qe,null,e.slice()):ll(e)?ql(e):ye(el,null,String(e))}function ql(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ls(e)}function wI(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),wI(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!H$(t)?t._ctx=Er:i===3&&Er&&(Er.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else bt(t)?(t={default:t,_ctx:Er},n=32):(t=String(t),r&64?(n=16,t=[ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function d4(...e){const t={};for(let n=0;nTr||Er;let Q_,WE;{const e=Gg(),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)}};Q_=t("__VUE_INSTANCE_SETTERS__",n=>Tr=n),WE=t("__VUE_SSR_SETTERS__",n=>Kd=n)}const uf=e=>{const t=Tr;return Q_(e),e.scope.on(),()=>{e.scope.off(),Q_(t)}},jE=()=>{Tr&&Tr.scope.off(),Q_(null)};function p4(e){return e.vnode.shapeFlag&4}let Kd=!1;function v4(e,t=!1,n=!1){t&&WE(t);const{props:r,children:i}=e.vnode,o=p4(e);Uq(e,r,o,t),Wq(e,i,n);const a=o?pJ(e,t):void 0;return t&&WE(!1),a}function pJ(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,BE);const{setup:r}=n;if(r){Nu();const i=e.setupContext=r.length>1?m4(e):null,o=uf(e),a=bh(r,e,0,[e.props,i]),s=ub(a);if(ku(),o(),(s||e.sp)&&!pu(e)&&hI(e),s){if(a.then(jE,jE),t)return a.then(l=>{YE(e,l,t)}).catch(l=>{Af(l,e,0)});e.asyncDep=a}else YE(e,a,t)}else g4(e,t)}function YE(e,t,n){bt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vn(t)&&(e.setupState=lI(t)),g4(e,n)}let e1,XE;function vJ(e){e1=e,XE=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,bq))}}const gJ=()=>!e1;function g4(e,t,n){const r=e.type;if(!e.render){if(!t&&e1&&!r.render){const i=r.template||yI(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Qt(Qt({isCustomElement:o,delimiters:s},a),l);r.render=e1(i,u)}}e.render=r.render||Lr,XE&&XE(e)}{const i=uf(e);Nu();try{Lq(e)}finally{ku(),i()}}}const mJ={get(e,t){return ii(e,"get",""),e[t]}};function m4(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,mJ),slots:e.slots,emit:e.emit,expose:t}}function Kg(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(lI(c$(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ov)return ov[n](e)},has(t,n){return n in t||n in ov}})):e.proxy}function KE(e,t=!0){return bt(e)?e.displayName||e.name:e.name||t&&e.__name}function yJ(e){return bt(e)&&"__vccOpts"in e}const Ve=(e,t)=>MZ(e,t,Kd);function zi(e,t,n){const r=arguments.length;return r===2?vn(t)&&!Je(t)?ll(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ll(n)&&(n=[n]),ye(e,t,n))}function _J(){}function bJ(e,t,n,r){const i=n[r];if(i&&y4(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function y4(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&ui&&ui.push(e),!0}const _4="3.5.13",SJ=Lr,wJ=HZ,xJ=vd,TJ=_$,EJ={createComponentInstance:h4,setupComponent:v4,renderComponentRoot:H0,setCurrentRenderingInstance:Qv,isVNode:ll,normalizeVNode:Wi,getComponentPublicInstance:Kg,ensureValidVNode:mI,pushWarningContext:$Z,popWarningContext:BZ},CJ=EJ,AJ=null,IJ=null,RJ=null;/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let XE;const HD=typeof window<"u"&&window.trustedTypes;if(HD)try{XE=HD.createPolicy("vue",{createHTML:e=>e})}catch{}const y4=XE?e=>XE.createHTML(e):e=>e,AJ="http://www.w3.org/2000/svg",IJ="http://www.w3.org/1998/Math/MathML",Bs=typeof document<"u"?document:null,GD=Bs&&Bs.createElement("template"),RJ={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"?Bs.createElementNS(AJ,e):t==="mathml"?Bs.createElementNS(IJ,e):n?Bs.createElement(e,{is:n}):Bs.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Bs.createTextNode(e),createComment:e=>Bs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bs.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{GD.innerHTML=y4(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const s=GD.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]}},Pl="transition",ep="animation",Zd=Symbol("_vtc"),_4={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},b4=Qt({},cI,_4),PJ=e=>(e.displayName="Transition",e.props=b4,e),OJ=PJ((e,{slots:t})=>zi(T$,S4(e),t)),Qu=(e,t=[])=>{Je(e)?e.forEach(n=>n(...t)):e&&e(...t)},zD=e=>e?Je(e)?e.some(t=>t.length>1):e.length>1:!1;function S4(e){const t={};for(const M in e)M in _4||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=DJ(i),m=v&&v[0],y=v&&v[1],{onBeforeEnter:_,onEnter:b,onEnterCancelled:w,onLeave:S,onLeaveCancelled:E,onBeforeAppear:T=_,onAppear:A=b,onAppearCancelled:P=w}=t,I=(M,$,F,z)=>{M._enterCancelled=z,Wl(M,$?c:s),Wl(M,$?u:a),F&&F()},R=(M,$)=>{M._isLeaving=!1,Wl(M,f),Wl(M,h),Wl(M,d),$&&$()},O=M=>($,F)=>{const z=M?A:b,B=()=>I($,M,F);Qu(z,[$,B]),WD(()=>{Wl($,M?l:o),Ka($,M?c:s),zD(z)||jD($,r,m,B)})};return Qt(t,{onBeforeEnter(M){Qu(_,[M]),Ka(M,o),Ka(M,a)},onBeforeAppear(M){Qu(T,[M]),Ka(M,l),Ka(M,u)},onEnter:O(!1),onAppear:O(!0),onLeave(M,$){M._isLeaving=!0;const F=()=>R(M,$);Ka(M,f),M._enterCancelled?(Ka(M,d),KE()):(KE(),Ka(M,d)),WD(()=>{M._isLeaving&&(Wl(M,f),Ka(M,h),zD(S)||jD(M,r,y,F))}),Qu(S,[M,F])},onEnterCancelled(M){I(M,!1,void 0,!0),Qu(w,[M])},onAppearCancelled(M){I(M,!0,void 0,!0),Qu(P,[M])},onLeaveCancelled(M){R(M),Qu(E,[M])}})}function DJ(e){if(e==null)return null;if(vn(e))return[dx(e.enter),dx(e.leave)];{const t=dx(e);return[t,t]}}function dx(e){return jv(e)}function Ka(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Zd]||(e[Zd]=new Set)).add(t)}function Wl(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Zd];n&&(n.delete(t),n.size||(e[Zd]=void 0))}function WD(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let MJ=0;function jD(e,t,n,r){const i=e._endId=++MJ,o=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=w4(e,t);if(!a)return r();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,d),o()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[v]||"").split(", "),i=r(`${Pl}Delay`),o=r(`${Pl}Duration`),a=YD(i,o),s=r(`${ep}Delay`),l=r(`${ep}Duration`),u=YD(s,l);let c=null,f=0,d=0;t===Pl?a>0&&(c=Pl,f=a,d=o.length):t===ep?u>0&&(c=ep,f=u,d=l.length):(f=Math.max(a,u),c=f>0?a>u?Pl:ep:null,d=c?c===Pl?o.length:l.length:0);const h=c===Pl&&/\b(transform|all)(,|$)/.test(r(`${Pl}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function YD(e,t){for(;e.lengthXD(n)+XD(e[r])))}function XD(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function KE(){return document.body.offsetHeight}function LJ(e,t,n){const r=e[Zd];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Q_=Symbol("_vod"),x4=Symbol("_vsh"),SI={beforeMount(e,{value:t},{transition:n}){e[Q_]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tp(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),tp(e,!0),r.enter(e)):r.leave(e,()=>{tp(e,!1)}):tp(e,t))},beforeUnmount(e,{value:t}){tp(e,t)}};function tp(e,t){e.style.display=t?e[Q_]:"none",e[x4]=!t}function NJ(){SI.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const T4=Symbol("");function kJ(e){const t=br();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>e1(o,i))},r=()=>{const i=e(t.proxy);t.ce?e1(t.ce,i):ZE(t.subTree,i),n(i)};dI(()=>{Zv(r)}),Ro(()=>{Yt(r,Lr,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),Sh(()=>i.disconnect())})}function ZE(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ZE(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)e1(e.el,t);else if(e.type===qe)e.children.forEach(n=>ZE(n,t));else if(e.type===Xc){let{el:n,anchor:r}=e;for(;n&&(e1(n,t),n!==r);)n=n.nextSibling}}function e1(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t)n.setProperty(`--${i}`,t[i]),r+=`--${i}: ${t[i]};`;n[T4]=r}}const FJ=/(^|;)\s*display\s*:/;function $J(e,t,n){const r=e.style,i=At(n);let o=!1;if(n&&!i){if(t)if(At(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&H0(r,s,"")}else for(const a in t)n[a]==null&&H0(r,a,"");for(const a in n)a==="display"&&(o=!0),H0(r,a,n[a])}else if(i){if(t!==n){const a=r[T4];a&&(n+=";"+a),r.cssText=n,o=FJ.test(n)}}else t&&e.removeAttribute("style");Q_ in e&&(e[Q_]=o?r.display:"",e[x4]&&(r.display="none"))}const KD=/\s*!important$/;function H0(e,t,n){if(Je(n))n.forEach(r=>H0(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=BJ(e,t);KD.test(n)?e.setProperty(ai(r),n.replace(KD,""),"important"):e[r]=n}}const ZD=["Webkit","Moz","ms"],hx={};function BJ(e,t){const n=hx[t];if(n)return n;let r=Bn(t);if(r!=="filter"&&r in e)return hx[t]=r;r=Lu(r);for(let i=0;ipx||(GJ.then(()=>px=0),px=Date.now());function WJ(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ia(jJ(r,n.value),t,5,[r])};return n.value=e,n.attached=zJ(),n}function jJ(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 nM=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,YJ=(e,t,n,r,i,o)=>{const a=i==="svg";t==="class"?LJ(e,r,a):t==="style"?$J(e,n,r):Du(t)?ob(t)||UJ(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):XJ(e,t,r,a))?(QD(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&JD(e,t,r,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!At(r))?QD(e,Bn(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),JD(e,t,r,a))};function XJ(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&nM(t)&&bt(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 nM(t)&&At(n)?!1:t in e}const rM={};/*! #__NO_SIDE_EFFECTS__ */function E4(e,t,n){const r=it(e,t);Vg(r)&&Qt(r,t);class i extends wb{constructor(a){super(r,a,n)}}return i.def=r,i}/*! #__NO_SIDE_EFFECTS__ */const KJ=(e,t)=>E4(e,t,F4),ZJ=typeof HTMLElement<"u"?HTMLElement:class{};class wb extends ZJ{constructor(t,n={},r=n1){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==n1?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof wb){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,vs(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r{for(const i of r)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:a}=r;let s;if(o&&!Je(o))for(const l in o){const u=o[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=jv(this._props[l])),(s||(s=Object.create(null)))[Bn(l)]=!0)}this._numberProps=s,i&&this._resolveProps(r),this.shadowRoot&&this._applyStyles(a),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>t(this._def=r,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)cn(this,r)||Object.defineProperty(this,r,{get:()=>N(n[r])})}_resolveProps(t){const{props:n}=t,r=Je(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i]);for(const i of r.map(Bn))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):rM;const i=Bn(t);n&&this._numberProps&&this._numberProps[i]&&(r=jv(r)),this._setProp(i,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!1){if(n!==this._props[t]&&(n===rM?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),r)){const o=this._ob;o&&o.disconnect(),n===!0?this.setAttribute(ai(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ai(t),n+""):n||this.removeAttribute(ai(t)),o&&o.observe(this,{attributes:!0})}}_update(){k4(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=ye(this._def,Qt(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const i=(o,a)=>{this.dispatchEvent(new CustomEvent(o,Vg(a[0])?Qt({detail:a},a[0]):{detail:a}))};r.emit=(o,...a)=>{i(o,a),ai(o)!==o&&i(ai(o),a)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let i=t.length-1;i>=0;i--){const o=document.createElement("style");r&&o.setAttribute("nonce",r),o.textContent=t[i],this.shadowRoot.prepend(o)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let r=0;r(delete e.props.mode,e),eQ=QJ({name:"TransitionGroup",props:Qt({},b4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=br(),r=uI();let i,o;return yb(()=>{if(!i.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!oQ(i[0].el,n.vnode.el,a))return;i.forEach(nQ),i.forEach(rQ);const s=i.filter(iQ);KE(),s.forEach(l=>{const u=l.el,c=u.style;Ka(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[t1]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[t1]=null,Wl(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=an(e),s=S4(a);let l=a.tag||qe;if(i=[],o)for(let u=0;u{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:a}=w4(r);return o.removeChild(r),a}const xu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Je(t)?n=>Wc(t,n):t};function aQ(e){e.target.composing=!0}function oM(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ea=Symbol("_assign"),Qn={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[ea]=xu(i);const o=r||i.props&&i.props.type==="number";js(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),o&&(s=Wv(s)),e[ea](s)}),n&&js(e,"change",()=>{e.value=e.value.trim()}),t||(js(e,"compositionstart",aQ),js(e,"compositionend",oM),js(e,"change",oM))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[ea]=xu(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?Wv(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))}},gr={deep:!0,created(e,t,n){e[ea]=xu(n),js(e,"change",()=>{const r=e._modelValue,i=qd(e),o=e.checked,a=e[ea];if(Je(r)){const s=Hg(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(Mu(r)){const s=new Set(r);o?s.add(i):s.delete(i),a(s)}else a(R4(e,o))})},mounted:aM,beforeUpdate(e,t,n){e[ea]=xu(n),aM(e,t,n)}};function aM(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(Je(t))i=Hg(t,r.props.value)>-1;else if(Mu(t))i=t.has(r.props.value);else{if(t===n)return;i=al(t,R4(e,!0))}e.checked!==i&&(e.checked=i)}const wI={created(e,{value:t},n){e.checked=al(t,n.props.value),e[ea]=xu(n),js(e,"change",()=>{e[ea](qd(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ea]=xu(r),t!==n&&(e.checked=al(t,r.props.value))}},Ri={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Mu(t);js(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?Wv(qd(a)):qd(a));e[ea](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,vs(()=>{e._assigning=!1})}),e[ea]=xu(r)},mounted(e,{value:t}){sM(e,t)},beforeUpdate(e,t,n){e[ea]=xu(n)},updated(e,{value:t}){e._assigning||sM(e,t)}};function sM(e,t){const n=e.multiple,r=Je(t);if(!(n&&!r&&!Mu(t))){for(let i=0,o=e.options.length;iString(u)===String(s)):a.selected=Hg(t,s)>-1}else a.selected=t.has(s);else if(al(qd(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function qd(e){return"_value"in e?e._value:e.value}function R4(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const P4={created(e,t,n){by(e,t,n,null,"created")},mounted(e,t,n){by(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){by(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){by(e,t,n,r,"updated")}};function O4(e,t){switch(e){case"SELECT":return Ri;case"TEXTAREA":return Qn;default:switch(t){case"checkbox":return gr;case"radio":return wI;default:return Qn}}}function by(e,t,n,r,i){const a=O4(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function sQ(){Qn.getSSRProps=({value:e})=>({value:e}),wI.getSSRProps=({value:e},t)=>{if(t.props&&al(t.props.value,e))return{checked:!0}},gr.getSSRProps=({value:e},t)=>{if(Je(e)){if(t.props&&Hg(e,t.props.value)>-1)return{checked:!0}}else if(Mu(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},P4.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=O4(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const lQ=["ctrl","shift","alt","meta"],uQ={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)=>lQ.some(n=>e[`${n}Key`]&&!t.includes(n))},cf=(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=ai(i.key);if(t.some(a=>a===o||cQ[a]===o))return e(i)})},M4=Qt({patchProp:YJ},RJ);let lv,lM=!1;function L4(){return lv||(lv=Y$(M4))}function N4(){return lv=lM?lv:X$(M4),lM=!0,lv}const k4=(...e)=>{L4().render(...e)},fQ=(...e)=>{N4().hydrate(...e)},n1=(...e)=>{const t=L4().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=B4(r);if(!i)return;const o=t._component;!bt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=n(i,!1,$4(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t},F4=(...e)=>{const t=N4().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=B4(r);if(i)return n(i,!0,$4(i))},t};function $4(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function B4(e){return At(e)?document.querySelector(e):e}let uM=!1;const dQ=()=>{uM||(uM=!0,sQ(),NJ())},hQ=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:T$,BaseTransitionPropsValidators:cI,Comment:yr,DeprecationTypes:CJ,EffectScope:QA,ErrorCodes:$Z,ErrorTypeStrings:_J,Fragment:qe,KeepAlive:cq,ReactiveEffect:Yv,Static:Xc,Suspense:eJ,Teleport:jZ,Text:el,TrackOpTypes:OZ,Transition:OJ,TransitionGroup:tQ,TriggerOpTypes:DZ,VueElement:wb,assertNumber:FZ,callWithAsyncErrorHandling:ia,callWithErrorHandling:bh,camelize:Bn,capitalize:Lu,cloneVNode:ls,compatUtils:EJ,computed:Ve,createApp:n1,createBlock:Ot,createCommentVNode:mt,createElementBlock:se,createElementVNode:L,createHydrationRenderer:X$,createPropsRestProxy:Rq,createRenderer:Y$,createSSRApp:F4,createSlots:vq,createStaticVNode:lJ,createTextVNode:ft,createVNode:ye,customRef:sI,defineAsyncComponent:lq,defineComponent:it,defineCustomElement:E4,defineEmits:_q,defineExpose:bq,defineModel:xq,defineOptions:Sq,defineProps:yq,defineSSRCustomElement:KJ,defineSlots:wq,devtools:bJ,effect:tZ,effectScope:j5,getCurrentInstance:br,getCurrentScope:eI,getCurrentWatcher:MZ,getTransitionRawChildren:gb,guardReactiveProps:u4,h:zi,handleError:Af,hasInjectionContext:mI,hydrate:fQ,hydrateOnIdle:nq,hydrateOnInteraction:aq,hydrateOnMediaQuery:oq,hydrateOnVisible:iq,initCustomFormatter:gJ,initDirectivesForSSR:dQ,inject:qi,isMemoSame:g4,isProxy:pb,isReactive:hu,isReadonly:wu,isRef:ut,isRuntimeOnly:hJ,isShallow:xo,isVNode:ll,markRaw:l$,mergeDefaults:Aq,mergeModels:Iq,mergeProps:c4,nextTick:vs,normalizeClass:rt,normalizeProps:k5,normalizeStyle:Gr,onActivated:C$,onBeforeMount:R$,onBeforeUnmount:Wg,onBeforeUpdate:dI,onDeactivated:A$,onErrorCaptured:M$,onMounted:Ro,onRenderTracked:D$,onRenderTriggered:O$,onScopeDispose:tI,onServerPrefetch:P$,onUnmounted:Sh,onUpdated:yb,onWatcherCleanup:d$,openBlock:K,popScopeId:GZ,provide:av,proxyRefs:aI,pushScopeId:HZ,queuePostFlushCb:Zv,reactive:La,readonly:Gg,ref:Fe,registerRuntimeCompiler:dJ,render:k4,renderList:ln,renderSlot:Md,resolveComponent:hq,resolveDirective:pq,resolveDynamicComponent:ss,resolveFilter:TJ,resolveTransitionHooks:Xd,setBlockTracking:HE,setDevtoolsHook:SJ,setTransitionHooks:sl,shallowReactive:oI,shallowReadonly:SZ,shallowRef:Cf,ssrContextKey:J$,ssrUtils:xJ,stop:nZ,toDisplayString:oe,toHandlerKey:zc,toHandlers:gq,toRaw:an,toRef:c$,toRefs:CZ,toValue:xZ,transformVNodeArgs:aJ,triggerRef:LE,unref:N,useAttrs:Cq,useCssModule:JJ,useCssVars:kJ,useHost:C4,useId:XZ,useModel:Yq,useSSRContext:Q$,useShadowRoot:qJ,useSlots:Eq,useTemplateRef:KZ,useTransitionState:uI,vModelCheckbox:gr,vModelDynamic:P4,vModelRadio:wI,vModelSelect:Ri,vModelText:Qn,vShow:SI,version:m4,warn:yJ,watch:Yt,watchEffect:_b,watchPostEffect:Wq,watchSyncEffect:e4,withAsyncContext:Pq,withCtx:Mr,withDefaults:Tq,withDirectives:_t,withKeys:D4,withMemo:mJ,withModifiers:cf,withScopeId:zZ},Symbol.toStringTag,{value:"Module"}));function xb(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 pQ(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function vQ(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 V4(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 ff(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 Xg(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 gQ(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function U4(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 Tb(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 mQ(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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"}),L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function yQ(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 cM(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 7.5-2.25-1.313M21 7.5v2.25m0-2.25-2.25 1.313M3 7.5l2.25-1.313M3 7.5l2.25 1.313M3 7.5v2.25m9 3 2.25-1.313M12 12.75l-2.25-1.313M12 12.75V15m0 6.75 2.25-1.313M12 21.75V19.5m0 2.25-2.25-1.313m0-16.875L12 2.25l2.25 1.313M21 14.25v2.25l-2.25 1.313m-13.5 0L3 16.5v-2.25"})])}function _Q(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 bQ(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 H4(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 fM(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 dM(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 xI(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 SQ(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 G4(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function wQ(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),L("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 z4(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 xQ(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function W4(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function j4(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("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 TQ(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.098 19.902a3.75 3.75 0 0 0 5.304 0l6.401-6.402M6.75 21A3.75 3.75 0 0 1 3 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 0 0 3.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88c.438-.439 1.15-.439 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75v-.008Z"})])}function EQ(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Eb(e,t){return K(),se("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}/*! +**/let ZE;const zD=typeof window<"u"&&window.trustedTypes;if(zD)try{ZE=zD.createPolicy("vue",{createHTML:e=>e})}catch{}const b4=ZE?e=>ZE.createHTML(e):e=>e,PJ="http://www.w3.org/2000/svg",OJ="http://www.w3.org/1998/Math/MathML",Bs=typeof document<"u"?document:null,WD=Bs&&Bs.createElement("template"),DJ={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"?Bs.createElementNS(PJ,e):t==="mathml"?Bs.createElementNS(OJ,e):n?Bs.createElement(e,{is:n}):Bs.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Bs.createTextNode(e),createComment:e=>Bs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bs.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{WD.innerHTML=b4(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const s=WD.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]}},Pl="transition",ep="animation",Zd=Symbol("_vtc"),S4={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},w4=Qt({},dI,S4),MJ=e=>(e.displayName="Transition",e.props=w4,e),LJ=MJ((e,{slots:t})=>zi(C$,x4(e),t)),Qu=(e,t=[])=>{Je(e)?e.forEach(n=>n(...t)):e&&e(...t)},jD=e=>e?Je(e)?e.some(t=>t.length>1):e.length>1:!1;function x4(e){const t={};for(const M in e)M in S4||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=NJ(i),m=v&&v[0],y=v&&v[1],{onBeforeEnter:_,onEnter:b,onEnterCancelled:w,onLeave:S,onLeaveCancelled:T,onBeforeAppear:E=_,onAppear:A=b,onAppearCancelled:P=w}=t,I=(M,$,F,z)=>{M._enterCancelled=z,Wl(M,$?c:s),Wl(M,$?u:a),F&&F()},R=(M,$)=>{M._isLeaving=!1,Wl(M,f),Wl(M,h),Wl(M,d),$&&$()},O=M=>($,F)=>{const z=M?A:b,B=()=>I($,M,F);Qu(z,[$,B]),YD(()=>{Wl($,M?l:o),Ka($,M?c:s),jD(z)||XD($,r,m,B)})};return Qt(t,{onBeforeEnter(M){Qu(_,[M]),Ka(M,o),Ka(M,a)},onBeforeAppear(M){Qu(E,[M]),Ka(M,l),Ka(M,u)},onEnter:O(!1),onAppear:O(!0),onLeave(M,$){M._isLeaving=!0;const F=()=>R(M,$);Ka(M,f),M._enterCancelled?(Ka(M,d),qE()):(qE(),Ka(M,d)),YD(()=>{M._isLeaving&&(Wl(M,f),Ka(M,h),jD(S)||XD(M,r,y,F))}),Qu(S,[M,F])},onEnterCancelled(M){I(M,!1,void 0,!0),Qu(w,[M])},onAppearCancelled(M){I(M,!0,void 0,!0),Qu(P,[M])},onLeaveCancelled(M){R(M),Qu(T,[M])}})}function NJ(e){if(e==null)return null;if(vn(e))return[px(e.enter),px(e.leave)];{const t=px(e);return[t,t]}}function px(e){return Yv(e)}function Ka(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Zd]||(e[Zd]=new Set)).add(t)}function Wl(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Zd];n&&(n.delete(t),n.size||(e[Zd]=void 0))}function YD(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let kJ=0;function XD(e,t,n,r){const i=e._endId=++kJ,o=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=T4(e,t);if(!a)return r();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,d),o()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[v]||"").split(", "),i=r(`${Pl}Delay`),o=r(`${Pl}Duration`),a=KD(i,o),s=r(`${ep}Delay`),l=r(`${ep}Duration`),u=KD(s,l);let c=null,f=0,d=0;t===Pl?a>0&&(c=Pl,f=a,d=o.length):t===ep?u>0&&(c=ep,f=u,d=l.length):(f=Math.max(a,u),c=f>0?a>u?Pl:ep:null,d=c?c===Pl?o.length:l.length:0);const h=c===Pl&&/\b(transform|all)(,|$)/.test(r(`${Pl}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function KD(e,t){for(;e.lengthZD(n)+ZD(e[r])))}function ZD(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function qE(){return document.body.offsetHeight}function FJ(e,t,n){const r=e[Zd];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const t1=Symbol("_vod"),E4=Symbol("_vsh"),xI={beforeMount(e,{value:t},{transition:n}){e[t1]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tp(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),tp(e,!0),r.enter(e)):r.leave(e,()=>{tp(e,!1)}):tp(e,t))},beforeUnmount(e,{value:t}){tp(e,t)}};function tp(e,t){e.style.display=t?e[t1]:"none",e[E4]=!t}function $J(){xI.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const C4=Symbol("");function BJ(e){const t=br();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>n1(o,i))},r=()=>{const i=e(t.proxy);t.ce?n1(t.ce,i):JE(t.subTree,i),n(i)};pI(()=>{qv(r)}),Ro(()=>{Yt(r,Lr,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),Sh(()=>i.disconnect())})}function JE(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{JE(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)n1(e.el,t);else if(e.type===qe)e.children.forEach(n=>JE(n,t));else if(e.type===Xc){let{el:n,anchor:r}=e;for(;n&&(n1(n,t),n!==r);)n=n.nextSibling}}function n1(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t)n.setProperty(`--${i}`,t[i]),r+=`--${i}: ${t[i]};`;n[C4]=r}}const VJ=/(^|;)\s*display\s*:/;function UJ(e,t,n){const r=e.style,i=At(n);let o=!1;if(n&&!i){if(t)if(At(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&z0(r,s,"")}else for(const a in t)n[a]==null&&z0(r,a,"");for(const a in n)a==="display"&&(o=!0),z0(r,a,n[a])}else if(i){if(t!==n){const a=r[C4];a&&(n+=";"+a),r.cssText=n,o=VJ.test(n)}}else t&&e.removeAttribute("style");t1 in e&&(e[t1]=o?r.display:"",e[E4]&&(r.display="none"))}const qD=/\s*!important$/;function z0(e,t,n){if(Je(n))n.forEach(r=>z0(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=HJ(e,t);qD.test(n)?e.setProperty(ai(r),n.replace(qD,""),"important"):e[r]=n}}const JD=["Webkit","Moz","ms"],vx={};function HJ(e,t){const n=vx[t];if(n)return n;let r=Bn(t);if(r!=="filter"&&r in e)return vx[t]=r;r=Lu(r);for(let i=0;igx||(jJ.then(()=>gx=0),gx=Date.now());function XJ(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ia(KJ(r,n.value),t,5,[r])};return n.value=e,n.attached=YJ(),n}function KJ(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 iM=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ZJ=(e,t,n,r,i,o)=>{const a=i==="svg";t==="class"?FJ(e,r,a):t==="style"?UJ(e,n,r):Du(t)?sb(t)||zJ(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qJ(e,t,r,a))?(tM(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&eM(e,t,r,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!At(r))?tM(e,Bn(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),eM(e,t,r,a))};function qJ(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&iM(t)&&bt(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 iM(t)&&At(n)?!1:t in e}const oM={};/*! #__NO_SIDE_EFFECTS__ */function A4(e,t,n){const r=it(e,t);Hg(r)&&Qt(r,t);class i extends Tb{constructor(a){super(r,a,n)}}return i.def=r,i}/*! #__NO_SIDE_EFFECTS__ */const JJ=(e,t)=>A4(e,t,B4),QJ=typeof HTMLElement<"u"?HTMLElement:class{};class Tb extends QJ{constructor(t,n={},r=i1){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==i1?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Tb){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,vs(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r{for(const i of r)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:a}=r;let s;if(o&&!Je(o))for(const l in o){const u=o[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Yv(this._props[l])),(s||(s=Object.create(null)))[Bn(l)]=!0)}this._numberProps=s,i&&this._resolveProps(r),this.shadowRoot&&this._applyStyles(a),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>t(this._def=r,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)cn(this,r)||Object.defineProperty(this,r,{get:()=>N(n[r])})}_resolveProps(t){const{props:n}=t,r=Je(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i]);for(const i of r.map(Bn))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):oM;const i=Bn(t);n&&this._numberProps&&this._numberProps[i]&&(r=Yv(r)),this._setProp(i,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!1){if(n!==this._props[t]&&(n===oM?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),r)){const o=this._ob;o&&o.disconnect(),n===!0?this.setAttribute(ai(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ai(t),n+""):n||this.removeAttribute(ai(t)),o&&o.observe(this,{attributes:!0})}}_update(){$4(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=ye(this._def,Qt(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const i=(o,a)=>{this.dispatchEvent(new CustomEvent(o,Hg(a[0])?Qt({detail:a},a[0]):{detail:a}))};r.emit=(o,...a)=>{i(o,a),ai(o)!==o&&i(ai(o),a)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let i=t.length-1;i>=0;i--){const o=document.createElement("style");r&&o.setAttribute("nonce",r),o.textContent=t[i],this.shadowRoot.prepend(o)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let r=0;r(delete e.props.mode,e),rQ=nQ({name:"TransitionGroup",props:Qt({},w4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=br(),r=fI();let i,o;return bb(()=>{if(!i.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!lQ(i[0].el,n.vnode.el,a))return;i.forEach(oQ),i.forEach(aQ);const s=i.filter(sQ);qE(),s.forEach(l=>{const u=l.el,c=u.style;Ka(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[r1]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[r1]=null,Wl(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=sn(e),s=x4(a);let l=a.tag||qe;if(i=[],o)for(let u=0;u{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:a}=T4(r);return o.removeChild(r),a}const xu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Je(t)?n=>Wc(t,n):t};function uQ(e){e.target.composing=!0}function sM(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ea=Symbol("_assign"),Qn={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[ea]=xu(i);const o=r||i.props&&i.props.type==="number";js(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),o&&(s=jv(s)),e[ea](s)}),n&&js(e,"change",()=>{e.value=e.value.trim()}),t||(js(e,"compositionstart",uQ),js(e,"compositionend",sM),js(e,"change",sM))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[ea]=xu(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?jv(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))}},gr={deep:!0,created(e,t,n){e[ea]=xu(n),js(e,"change",()=>{const r=e._modelValue,i=qd(e),o=e.checked,a=e[ea];if(Je(r)){const s=zg(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(Mu(r)){const s=new Set(r);o?s.add(i):s.delete(i),a(s)}else a(O4(e,o))})},mounted:lM,beforeUpdate(e,t,n){e[ea]=xu(n),lM(e,t,n)}};function lM(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(Je(t))i=zg(t,r.props.value)>-1;else if(Mu(t))i=t.has(r.props.value);else{if(t===n)return;i=al(t,O4(e,!0))}e.checked!==i&&(e.checked=i)}const TI={created(e,{value:t},n){e.checked=al(t,n.props.value),e[ea]=xu(n),js(e,"change",()=>{e[ea](qd(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ea]=xu(r),t!==n&&(e.checked=al(t,r.props.value))}},hi={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Mu(t);js(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?jv(qd(a)):qd(a));e[ea](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,vs(()=>{e._assigning=!1})}),e[ea]=xu(r)},mounted(e,{value:t}){uM(e,t)},beforeUpdate(e,t,n){e[ea]=xu(n)},updated(e,{value:t}){e._assigning||uM(e,t)}};function uM(e,t){const n=e.multiple,r=Je(t);if(!(n&&!r&&!Mu(t))){for(let i=0,o=e.options.length;iString(u)===String(s)):a.selected=zg(t,s)>-1}else a.selected=t.has(s);else if(al(qd(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function qd(e){return"_value"in e?e._value:e.value}function O4(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const D4={created(e,t,n){wy(e,t,n,null,"created")},mounted(e,t,n){wy(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){wy(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){wy(e,t,n,r,"updated")}};function M4(e,t){switch(e){case"SELECT":return hi;case"TEXTAREA":return Qn;default:switch(t){case"checkbox":return gr;case"radio":return TI;default:return Qn}}}function wy(e,t,n,r,i){const a=M4(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function cQ(){Qn.getSSRProps=({value:e})=>({value:e}),TI.getSSRProps=({value:e},t)=>{if(t.props&&al(t.props.value,e))return{checked:!0}},gr.getSSRProps=({value:e},t)=>{if(Je(e)){if(t.props&&zg(e,t.props.value)>-1)return{checked:!0}}else if(Mu(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},D4.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=M4(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const fQ=["ctrl","shift","alt","meta"],dQ={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)=>fQ.some(n=>e[`${n}Key`]&&!t.includes(n))},cf=(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=ai(i.key);if(t.some(a=>a===o||hQ[a]===o))return e(i)})},N4=Qt({patchProp:ZJ},DJ);let lv,cM=!1;function k4(){return lv||(lv=K$(N4))}function F4(){return lv=cM?lv:Z$(N4),cM=!0,lv}const $4=(...e)=>{k4().render(...e)},pQ=(...e)=>{F4().hydrate(...e)},i1=(...e)=>{const t=k4().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=U4(r);if(!i)return;const o=t._component;!bt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=n(i,!1,V4(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t},B4=(...e)=>{const t=F4().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=U4(r);if(i)return n(i,!0,V4(i))},t};function V4(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function U4(e){return At(e)?document.querySelector(e):e}let fM=!1;const vQ=()=>{fM||(fM=!0,cQ(),$J())},gQ=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:C$,BaseTransitionPropsValidators:dI,Comment:yr,DeprecationTypes:RJ,EffectScope:tI,ErrorCodes:UZ,ErrorTypeStrings:wJ,Fragment:qe,KeepAlive:hq,ReactiveEffect:Xv,Static:Xc,Suspense:rJ,Teleport:KZ,Text:el,TrackOpTypes:LZ,Transition:LJ,TransitionGroup:iQ,TriggerOpTypes:NZ,VueElement:Tb,assertNumber:VZ,callWithAsyncErrorHandling:ia,callWithErrorHandling:bh,camelize:Bn,capitalize:Lu,cloneVNode:ls,compatUtils:IJ,computed:Ve,createApp:i1,createBlock:Ot,createCommentVNode:mt,createElementBlock:ae,createElementVNode:L,createHydrationRenderer:Z$,createPropsRestProxy:Dq,createRenderer:K$,createSSRApp:B4,createSlots:yq,createStaticVNode:fJ,createTextVNode:ft,createVNode:ye,customRef:uI,defineAsyncComponent:fq,defineComponent:it,defineCustomElement:A4,defineEmits:wq,defineExpose:xq,defineModel:Cq,defineOptions:Tq,defineProps:Sq,defineSSRCustomElement:JJ,defineSlots:Eq,devtools:xJ,effect:iZ,effectScope:X5,getCurrentInstance:br,getCurrentScope:nI,getCurrentWatcher:kZ,getTransitionRawChildren:yb,guardReactiveProps:f4,h:zi,handleError:Af,hasInjectionContext:_I,hydrate:pQ,hydrateOnIdle:oq,hydrateOnInteraction:uq,hydrateOnMediaQuery:lq,hydrateOnVisible:sq,initCustomFormatter:_J,initDirectivesForSSR:vQ,inject:qi,isMemoSame:y4,isProxy:gb,isReactive:hu,isReadonly:wu,isRef:st,isRuntimeOnly:gJ,isShallow:xo,isVNode:ll,markRaw:c$,mergeDefaults:Pq,mergeModels:Oq,mergeProps:d4,nextTick:vs,normalizeClass:rt,normalizeProps:$5,normalizeStyle:Gr,onActivated:I$,onBeforeMount:O$,onBeforeUnmount:Yg,onBeforeUpdate:pI,onDeactivated:R$,onErrorCaptured:N$,onMounted:Ro,onRenderTracked:L$,onRenderTriggered:M$,onScopeDispose:rI,onServerPrefetch:D$,onUnmounted:Sh,onUpdated:bb,onWatcherCleanup:p$,openBlock:K,popScopeId:jZ,provide:av,proxyRefs:lI,pushScopeId:WZ,queuePostFlushCb:qv,reactive:La,readonly:Wg,ref:Fe,registerRuntimeCompiler:vJ,render:$4,renderList:on,renderSlot:Md,resolveComponent:gq,resolveDirective:mq,resolveDynamicComponent:ss,resolveFilter:AJ,resolveTransitionHooks:Xd,setBlockTracking:zE,setDevtoolsHook:TJ,setTransitionHooks:sl,shallowReactive:sI,shallowReadonly:TZ,shallowRef:Cf,ssrContextKey:e4,ssrUtils:CJ,stop:oZ,toDisplayString:re,toHandlerKey:zc,toHandlers:_q,toRaw:sn,toRef:d$,toRefs:RZ,toValue:CZ,transformVNodeArgs:uJ,triggerRef:kE,unref:N,useAttrs:Rq,useCssModule:tQ,useCssVars:BJ,useHost:I4,useId:qZ,useModel:Zq,useSSRContext:t4,useShadowRoot:eQ,useSlots:Iq,useTemplateRef:JZ,useTransitionState:fI,vModelCheckbox:gr,vModelDynamic:D4,vModelRadio:TI,vModelSelect:hi,vModelText:Qn,vShow:xI,version:_4,warn:SJ,watch:Yt,watchEffect:Sb,watchPostEffect:Xq,watchSyncEffect:n4,withAsyncContext:Mq,withCtx:Mr,withDefaults:Aq,withDirectives:yt,withKeys:L4,withMemo:bJ,withModifiers:cf,withScopeId:YZ},Symbol.toStringTag,{value:"Module"}));function Eb(e,t){return K(),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"},[L("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 mQ(e,t){return K(),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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function H4(e,t){return K(),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"},[L("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 G4(e,t){return K(),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"},[L("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 ff(e,t){return K(),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"},[L("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 Zg(e,t){return K(),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"},[L("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 yQ(e,t){return K(),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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function z4(e,t){return K(),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"},[L("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 Cb(e,t){return K(),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"},[L("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 _Q(e,t){return K(),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"},[L("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"}),L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function bQ(e,t){return K(),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"},[L("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 dM(e,t){return K(),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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 7.5-2.25-1.313M21 7.5v2.25m0-2.25-2.25 1.313M3 7.5l2.25-1.313M3 7.5l2.25 1.313M3 7.5v2.25m9 3 2.25-1.313M12 12.75l-2.25-1.313M12 12.75V15m0 6.75 2.25-1.313M12 21.75V19.5m0 2.25-2.25-1.313m0-16.875L12 2.25l2.25 1.313M21 14.25v2.25l-2.25 1.313m-13.5 0L3 16.5v-2.25"})])}function SQ(e,t){return K(),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"},[L("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 wQ(e,t){return K(),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"},[L("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 W4(e,t){return K(),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"},[L("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 hM(e,t){return K(),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"},[L("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 pM(e,t){return K(),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"},[L("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 EI(e,t){return K(),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"},[L("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 xQ(e,t){return K(),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"},[L("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 j4(e,t){return K(),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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function TQ(e,t){return K(),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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),L("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 Y4(e,t){return K(),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"},[L("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 EQ(e,t){return K(),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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function X4(e,t){return K(),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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function K4(e,t){return K(),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"},[L("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 CQ(e,t){return K(),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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.098 19.902a3.75 3.75 0 0 0 5.304 0l6.401-6.402M6.75 21A3.75 3.75 0 0 1 3 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 0 0 3.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88c.438-.439 1.15-.439 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75v-.008Z"})])}function AQ(e,t){return K(),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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Ab(e,t){return K(),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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}/*! * vue-router v4.5.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const gd=typeof document<"u";function Y4(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function CQ(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Y4(e.default)}const yn=Object.assign;function vx(e,t){const n={};for(const r in t){const i=t[r];n[r]=Na(i)?i.map(e):e(i)}return n}const uv=()=>{},Na=Array.isArray,X4=/#/g,AQ=/&/g,IQ=/\//g,RQ=/=/g,PQ=/\?/g,K4=/\+/g,OQ=/%5B/g,DQ=/%5D/g,Z4=/%5E/g,MQ=/%60/g,q4=/%7B/g,LQ=/%7C/g,J4=/%7D/g,NQ=/%20/g;function TI(e){return encodeURI(""+e).replace(LQ,"|").replace(OQ,"[").replace(DQ,"]")}function kQ(e){return TI(e).replace(q4,"{").replace(J4,"}").replace(Z4,"^")}function qE(e){return TI(e).replace(K4,"%2B").replace(NQ,"+").replace(X4,"%23").replace(AQ,"%26").replace(MQ,"`").replace(q4,"{").replace(J4,"}").replace(Z4,"^")}function FQ(e){return qE(e).replace(RQ,"%3D")}function $Q(e){return TI(e).replace(X4,"%23").replace(PQ,"%3F")}function BQ(e){return e==null?"":$Q(e).replace(IQ,"%2F")}function ng(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const VQ=/\/$/,UQ=e=>e.replace(VQ,"");function gx(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=WQ(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:ng(a)}}function HQ(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function hM(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function GQ(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Jd(t.matched[r],n.matched[i])&&Q4(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Jd(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Q4(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!zQ(e[n],t[n]))return!1;return!0}function zQ(e,t){return Na(e)?pM(e,t):Na(t)?pM(t,e):e===t}function pM(e,t){return Na(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function WQ(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 Ol={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rg;(function(e){e.pop="pop",e.push="push"})(rg||(rg={}));var cv;(function(e){e.back="back",e.forward="forward",e.unknown=""})(cv||(cv={}));function jQ(e){if(!e)if(gd){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),UQ(e)}const YQ=/^[^#]+#/;function XQ(e,t){return e.replace(YQ,"#")+t}function KQ(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 Cb=()=>({left:window.scrollX,top:window.scrollY});function ZQ(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=KQ(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 vM(e,t){return(history.state?history.state.position-t:-1)+e}const JE=new Map;function qQ(e,t){JE.set(e,t)}function JQ(e){const t=JE.get(e);return JE.delete(e),t}let QQ=()=>location.protocol+"//"+location.host;function eB(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),hM(l,"")}return hM(n,e)+r+i}function eee(e,t,n,r){let i=[],o=[],a=null;const s=({state:d})=>{const h=eB(e,location),v=n.value,m=t.value;let y=0;if(d){if(n.value=h,t.value=d,a&&a===v){a=null;return}y=m?d.position-m.position:0}else r(h);i.forEach(_=>{_(n.value,v,{delta:y,type:rg.pop,direction:y?y>0?cv.forward:cv.back:cv.unknown})})};function l(){a=n.value}function u(d){i.push(d);const h=()=>{const v=i.indexOf(d);v>-1&&i.splice(v,1)};return o.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(yn({},d.state,{scroll:Cb()}),"")}function f(){for(const d of o)d();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 gM(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Cb():null}}function tee(e){const{history:t,location:n}=window,r={value:eB(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("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:QQ()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),i.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function a(l,u){const c=yn({},t.state,gM(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=yn({},i.value,t.state,{forward:l,scroll:Cb()});o(c.current,c,!0);const f=yn({},gM(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 nee(e){e=jQ(e);const t=tee(e),n=eee(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const i=yn({location:"",base:e,go:r,createHref:XQ.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 ree(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nee(e)}function iee(e){return typeof e=="string"||e&&typeof e=="object"}function tB(e){return typeof e=="string"||typeof e=="symbol"}const nB=Symbol("");var mM;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(mM||(mM={}));function Qd(e,t){return yn(new Error,{type:e,[nB]:!0},t)}function Ps(e,t){return e instanceof Error&&nB in e&&(t==null||!!(e.type&t))}const yM="[^/]+?",oee={sensitive:!1,strict:!1,start:!0,end:!0},aee=/[.+*?^${}()[\]/\\]/g;function see(e,t){const n=yn({},oee,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 rB(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const uee={type:0,value:""},cee=/[a-zA-Z0-9_]/;function fee(e){if(!e)return[[]];if(e==="/")return[[uee]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}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 d(){u+=l}for(;s{a(w)}:uv}function a(f){if(tB(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,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 d=gee(f,n);n.splice(d,0,f),f.record.name&&!wM(f)&&r.set(f.record.name,f)}function u(f,d){let h,v={},m,y;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw Qd(1,{location:f});y=h.record.name,v=yn(bM(d.params,h.keys.filter(w=>!w.optional).concat(h.parent?h.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),f.params&&bM(f.params,h.keys.map(w=>w.name))),m=h.stringify(v)}else if(f.path!=null)m=f.path,h=n.find(w=>w.re.test(m)),h&&(v=h.parse(m),y=h.record.name);else{if(h=d.name?r.get(d.name):n.find(w=>w.re.test(d.path)),!h)throw Qd(1,{location:f,currentLocation:d});y=h.record.name,v=yn({},d.params,f.params),m=h.stringify(v)}const _=[];let b=h;for(;b;)_.unshift(b.record),b=b.parent;return{name:y,path:m,params:v,matched:_,meta:vee(_)}}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 bM(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function SM(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:pee(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 pee(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 wM(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vee(e){return e.reduce((t,n)=>yn(t,n.meta),{})}function xM(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function gee(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;rB(e,t[o])<0?r=o:n=o+1}const i=mee(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function mee(e){let t=e;for(;t=t.parent;)if(iB(t)&&rB(e,t)===0)return t}function iB({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function yee(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&qE(o)):[r&&qE(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function _ee(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Na(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const bee=Symbol(""),EM=Symbol(""),Ab=Symbol(""),EI=Symbol(""),QE=Symbol("");function np(){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 Jl(e,t,n,r,i,o=a=>a()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=d=>{d===!1?l(Qd(4,{from:n,to:t})):d instanceof Error?l(d):iee(d)?l(Qd(2,{from:t,to:d})):(a&&r.enterCallbacks[i]===a&&typeof d=="function"&&a.push(d),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(d=>l(d))})}function mx(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(Y4(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Jl(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=CQ(c)?c.default:c;a.mods[s]=c,a.components[s]=f;const h=(f.__vccOpts||f)[t];return h&&Jl(h,n,r,a,s,i)()}))}}return o}function CM(e){const t=qi(Ab),n=qi(EI),r=Ve(()=>{const l=N(e.to);return t.resolve(l)}),i=Ve(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Jd.bind(null,c));if(d>-1)return d;const h=AM(l[u-2]);return u>1&&AM(c)===h&&f[f.length-1].path!==h?f.findIndex(Jd.bind(null,l[u-2])):d}),o=Ve(()=>i.value>-1&&Eee(n.params,r.value.params)),a=Ve(()=>i.value>-1&&i.value===n.matched.length-1&&Q4(n.params,r.value.params));function s(l={}){if(Tee(l)){const u=t[N(e.replace)?"replace":"push"](N(e.to)).catch(uv);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Ve(()=>r.value.href),isActive:o,isExactActive:a,navigate:s}}function See(e){return e.length===1?e[0]:e}const wee=it({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:CM,setup(e,{slots:t}){const n=La(CM(e)),{options:r}=qi(Ab),i=Ve(()=>({[IM(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[IM(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&See(t.default(n));return e.custom?o:zi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),xee=wee;function Tee(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 Eee(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(!Na(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function AM(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const IM=(e,t,n)=>e??t??n,Cee=it({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=qi(QE),i=Ve(()=>e.route||r.value),o=qi(EM,0),a=Ve(()=>{let u=N(o);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=Ve(()=>i.value.matched[a.value]);av(EM,Ve(()=>a.value+1)),av(bee,s),av(QE,i);const l=Fe();return Yt(()=>[l.value,s.value,e.name],([u,c,f],[d,h,v])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!Jd(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return RM(n.default,{Component:d,route:u});const h=f.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,y=zi(d,yn({},v,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return RM(n.default,{Component:y,route:u})||y}}});function RM(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const CI=Cee;function Aee(e){const t=hee(e.routes,e),n=e.parseQuery||yee,r=e.stringifyQuery||TM,i=e.history,o=np(),a=np(),s=np(),l=Cf(Ol);let u=Ol;gd&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=vx.bind(null,ce=>""+ce),f=vx.bind(null,BQ),d=vx.bind(null,ng);function h(ce,Ce){let Se,Te;return tB(ce)?(Se=t.getRecordMatcher(ce),Te=Ce):Te=ce,t.addRoute(Te,Se)}function v(ce){const Ce=t.getRecordMatcher(ce);Ce&&t.removeRoute(Ce)}function m(){return t.getRoutes().map(ce=>ce.record)}function y(ce){return!!t.getRecordMatcher(ce)}function _(ce,Ce){if(Ce=yn({},Ce||l.value),typeof ce=="string"){const G=gx(n,ce,Ce.path),le=t.resolve({path:G.path},Ce),we=i.createHref(G.fullPath);return yn(G,le,{params:d(le.params),hash:ng(G.hash),redirectedFrom:void 0,href:we})}let Se;if(ce.path!=null)Se=yn({},ce,{path:gx(n,ce.path,Ce.path).path});else{const G=yn({},ce.params);for(const le in G)G[le]==null&&delete G[le];Se=yn({},ce,{params:f(G)}),Ce.params=f(Ce.params)}const Te=t.resolve(Se,Ce),Oe=ce.hash||"";Te.params=c(d(Te.params));const $e=HQ(r,yn({},ce,{hash:kQ(Oe),path:Te.path})),H=i.createHref($e);return yn({fullPath:$e,hash:Oe,query:r===TM?_ee(ce.query):ce.query||{}},Te,{redirectedFrom:void 0,href:H})}function b(ce){return typeof ce=="string"?gx(n,ce,l.value.path):yn({},ce)}function w(ce,Ce){if(u!==ce)return Qd(8,{from:Ce,to:ce})}function S(ce){return A(ce)}function E(ce){return S(yn(b(ce),{replace:!0}))}function T(ce){const Ce=ce.matched[ce.matched.length-1];if(Ce&&Ce.redirect){const{redirect:Se}=Ce;let Te=typeof Se=="function"?Se(ce):Se;return typeof Te=="string"&&(Te=Te.includes("?")||Te.includes("#")?Te=b(Te):{path:Te},Te.params={}),yn({query:ce.query,hash:ce.hash,params:Te.path!=null?{}:ce.params},Te)}}function A(ce,Ce){const Se=u=_(ce),Te=l.value,Oe=ce.state,$e=ce.force,H=ce.replace===!0,G=T(Se);if(G)return A(yn(b(G),{state:typeof G=="object"?yn({},Oe,G.state):Oe,force:$e,replace:H}),Ce||Se);const le=Se;le.redirectedFrom=Ce;let we;return!$e&&GQ(r,Te,Se)&&(we=Qd(16,{to:le,from:Te}),ve(Te,Te,!0,!1)),(we?Promise.resolve(we):R(le,Te)).catch(pe=>Ps(pe)?Ps(pe,2)?pe:ge(pe):j(pe,le,Te)).then(pe=>{if(pe){if(Ps(pe,2))return A(yn({replace:H},b(pe.to),{state:typeof pe.to=="object"?yn({},Oe,pe.to.state):Oe,force:$e}),Ce||le)}else pe=M(le,Te,!0,H,Oe);return O(le,Te,pe),pe})}function P(ce,Ce){const Se=w(ce,Ce);return Se?Promise.reject(Se):Promise.resolve()}function I(ce){const Ce=ze.values().next().value;return Ce&&typeof Ce.runWithContext=="function"?Ce.runWithContext(ce):ce()}function R(ce,Ce){let Se;const[Te,Oe,$e]=Iee(ce,Ce);Se=mx(Te.reverse(),"beforeRouteLeave",ce,Ce);for(const G of Te)G.leaveGuards.forEach(le=>{Se.push(Jl(le,ce,Ce))});const H=P.bind(null,ce,Ce);return Se.push(H),je(Se).then(()=>{Se=[];for(const G of o.list())Se.push(Jl(G,ce,Ce));return Se.push(H),je(Se)}).then(()=>{Se=mx(Oe,"beforeRouteUpdate",ce,Ce);for(const G of Oe)G.updateGuards.forEach(le=>{Se.push(Jl(le,ce,Ce))});return Se.push(H),je(Se)}).then(()=>{Se=[];for(const G of $e)if(G.beforeEnter)if(Na(G.beforeEnter))for(const le of G.beforeEnter)Se.push(Jl(le,ce,Ce));else Se.push(Jl(G.beforeEnter,ce,Ce));return Se.push(H),je(Se)}).then(()=>(ce.matched.forEach(G=>G.enterCallbacks={}),Se=mx($e,"beforeRouteEnter",ce,Ce,I),Se.push(H),je(Se))).then(()=>{Se=[];for(const G of a.list())Se.push(Jl(G,ce,Ce));return Se.push(H),je(Se)}).catch(G=>Ps(G,8)?G:Promise.reject(G))}function O(ce,Ce,Se){s.list().forEach(Te=>I(()=>Te(ce,Ce,Se)))}function M(ce,Ce,Se,Te,Oe){const $e=w(ce,Ce);if($e)return $e;const H=Ce===Ol,G=gd?history.state:{};Se&&(Te||H?i.replace(ce.fullPath,yn({scroll:H&&G&&G.scroll},Oe)):i.push(ce.fullPath,Oe)),l.value=ce,ve(ce,Ce,Se,H),ge()}let $;function F(){$||($=i.listen((ce,Ce,Se)=>{if(!Me.listening)return;const Te=_(ce),Oe=T(Te);if(Oe){A(yn(Oe,{replace:!0,force:!0}),Te).catch(uv);return}u=Te;const $e=l.value;gd&&qQ(vM($e.fullPath,Se.delta),Cb()),R(Te,$e).catch(H=>Ps(H,12)?H:Ps(H,2)?(A(yn(b(H.to),{force:!0}),Te).then(G=>{Ps(G,20)&&!Se.delta&&Se.type===rg.pop&&i.go(-1,!1)}).catch(uv),Promise.reject()):(Se.delta&&i.go(-Se.delta,!1),j(H,Te,$e))).then(H=>{H=H||M(Te,$e,!1),H&&(Se.delta&&!Ps(H,8)?i.go(-Se.delta,!1):Se.type===rg.pop&&Ps(H,20)&&i.go(-1,!1)),O(Te,$e,H)}).catch(uv)}))}let z=np(),B=np(),Y;function j(ce,Ce,Se){ge(ce);const Te=B.list();return Te.length?Te.forEach(Oe=>Oe(ce,Ce,Se)):console.error(ce),Promise.reject(ce)}function ae(){return Y&&l.value!==Ol?Promise.resolve():new Promise((ce,Ce)=>{z.add([ce,Ce])})}function ge(ce){return Y||(Y=!ce,F(),z.list().forEach(([Ce,Se])=>ce?Se(ce):Ce()),z.reset()),ce}function ve(ce,Ce,Se,Te){const{scrollBehavior:Oe}=e;if(!gd||!Oe)return Promise.resolve();const $e=!Se&&JQ(vM(ce.fullPath,0))||(Te||!Se)&&history.state&&history.state.scroll||null;return vs().then(()=>Oe(ce,Ce,$e)).then(H=>H&&ZQ(H)).catch(H=>j(H,ce,Ce))}const De=ce=>i.go(ce);let Ne;const ze=new Set,Me={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:m,resolve:_,options:e,push:S,replace:E,go:De,back:()=>De(-1),forward:()=>De(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:B.add,isReady:ae,install(ce){const Ce=this;ce.component("RouterLink",xee),ce.component("RouterView",CI),ce.config.globalProperties.$router=Ce,Object.defineProperty(ce.config.globalProperties,"$route",{enumerable:!0,get:()=>N(l)}),gd&&!Ne&&l.value===Ol&&(Ne=!0,S(i.location).catch(Oe=>{}));const Se={};for(const Oe in Ol)Object.defineProperty(Se,Oe,{get:()=>l.value[Oe],enumerable:!0});ce.provide(Ab,Ce),ce.provide(EI,oI(Se)),ce.provide(QE,l);const Te=ce.unmount;ze.add(ce),ce.unmount=function(){ze.delete(ce),ze.size<1&&(u=Ol,$&&$(),$=null,l.value=Ol,Ne=!1,Y=!1),Te()}}};function je(ce){return ce.reduce((Ce,Se)=>Ce.then(()=>I(Se)),Promise.resolve())}return Me}function Iee(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;aJd(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>Jd(u,l))||i.push(l))}return[n,r,i]}function Ree(){return qi(Ab)}function oB(e){return qi(EI)}/*! + */const gd=typeof document<"u";function Z4(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function IQ(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Z4(e.default)}const yn=Object.assign;function mx(e,t){const n={};for(const r in t){const i=t[r];n[r]=Na(i)?i.map(e):e(i)}return n}const uv=()=>{},Na=Array.isArray,q4=/#/g,RQ=/&/g,PQ=/\//g,OQ=/=/g,DQ=/\?/g,J4=/\+/g,MQ=/%5B/g,LQ=/%5D/g,Q4=/%5E/g,NQ=/%60/g,eB=/%7B/g,kQ=/%7C/g,tB=/%7D/g,FQ=/%20/g;function CI(e){return encodeURI(""+e).replace(kQ,"|").replace(MQ,"[").replace(LQ,"]")}function $Q(e){return CI(e).replace(eB,"{").replace(tB,"}").replace(Q4,"^")}function QE(e){return CI(e).replace(J4,"%2B").replace(FQ,"+").replace(q4,"%23").replace(RQ,"%26").replace(NQ,"`").replace(eB,"{").replace(tB,"}").replace(Q4,"^")}function BQ(e){return QE(e).replace(OQ,"%3D")}function VQ(e){return CI(e).replace(q4,"%23").replace(DQ,"%3F")}function UQ(e){return e==null?"":VQ(e).replace(PQ,"%2F")}function rg(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const HQ=/\/$/,GQ=e=>e.replace(HQ,"");function yx(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=YQ(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:rg(a)}}function zQ(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function vM(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function WQ(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Jd(t.matched[r],n.matched[i])&&nB(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Jd(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nB(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!jQ(e[n],t[n]))return!1;return!0}function jQ(e,t){return Na(e)?gM(e,t):Na(t)?gM(t,e):e===t}function gM(e,t){return Na(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function YQ(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 Ol={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ig;(function(e){e.pop="pop",e.push="push"})(ig||(ig={}));var cv;(function(e){e.back="back",e.forward="forward",e.unknown=""})(cv||(cv={}));function XQ(e){if(!e)if(gd){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),GQ(e)}const KQ=/^[^#]+#/;function ZQ(e,t){return e.replace(KQ,"#")+t}function qQ(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 Ib=()=>({left:window.scrollX,top:window.scrollY});function JQ(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=qQ(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 mM(e,t){return(history.state?history.state.position-t:-1)+e}const eC=new Map;function QQ(e,t){eC.set(e,t)}function eee(e){const t=eC.get(e);return eC.delete(e),t}let tee=()=>location.protocol+"//"+location.host;function rB(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),vM(l,"")}return vM(n,e)+r+i}function nee(e,t,n,r){let i=[],o=[],a=null;const s=({state:d})=>{const h=rB(e,location),v=n.value,m=t.value;let y=0;if(d){if(n.value=h,t.value=d,a&&a===v){a=null;return}y=m?d.position-m.position:0}else r(h);i.forEach(_=>{_(n.value,v,{delta:y,type:ig.pop,direction:y?y>0?cv.forward:cv.back:cv.unknown})})};function l(){a=n.value}function u(d){i.push(d);const h=()=>{const v=i.indexOf(d);v>-1&&i.splice(v,1)};return o.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(yn({},d.state,{scroll:Ib()}),"")}function f(){for(const d of o)d();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 yM(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Ib():null}}function ree(e){const{history:t,location:n}=window,r={value:rB(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("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:tee()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),i.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function a(l,u){const c=yn({},t.state,yM(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=yn({},i.value,t.state,{forward:l,scroll:Ib()});o(c.current,c,!0);const f=yn({},yM(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 iee(e){e=XQ(e);const t=ree(e),n=nee(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const i=yn({location:"",base:e,go:r,createHref:ZQ.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 oee(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),iee(e)}function aee(e){return typeof e=="string"||e&&typeof e=="object"}function iB(e){return typeof e=="string"||typeof e=="symbol"}const oB=Symbol("");var _M;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_M||(_M={}));function Qd(e,t){return yn(new Error,{type:e,[oB]:!0},t)}function Ps(e,t){return e instanceof Error&&oB in e&&(t==null||!!(e.type&t))}const bM="[^/]+?",see={sensitive:!1,strict:!1,start:!0,end:!0},lee=/[.+*?^${}()[\]/\\]/g;function uee(e,t){const n=yn({},see,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 aB(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const fee={type:0,value:""},dee=/[a-zA-Z0-9_]/;function hee(e){if(!e)return[[]];if(e==="/")return[[fee]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}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 d(){u+=l}for(;s{a(w)}:uv}function a(f){if(iB(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,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 d=yee(f,n);n.splice(d,0,f),f.record.name&&!TM(f)&&r.set(f.record.name,f)}function u(f,d){let h,v={},m,y;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw Qd(1,{location:f});y=h.record.name,v=yn(wM(d.params,h.keys.filter(w=>!w.optional).concat(h.parent?h.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),f.params&&wM(f.params,h.keys.map(w=>w.name))),m=h.stringify(v)}else if(f.path!=null)m=f.path,h=n.find(w=>w.re.test(m)),h&&(v=h.parse(m),y=h.record.name);else{if(h=d.name?r.get(d.name):n.find(w=>w.re.test(d.path)),!h)throw Qd(1,{location:f,currentLocation:d});y=h.record.name,v=yn({},d.params,f.params),m=h.stringify(v)}const _=[];let b=h;for(;b;)_.unshift(b.record),b=b.parent;return{name:y,path:m,params:v,matched:_,meta:mee(_)}}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 wM(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function xM(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:gee(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 gee(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 TM(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mee(e){return e.reduce((t,n)=>yn(t,n.meta),{})}function EM(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function yee(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;aB(e,t[o])<0?r=o:n=o+1}const i=_ee(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function _ee(e){let t=e;for(;t=t.parent;)if(sB(t)&&aB(e,t)===0)return t}function sB({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bee(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&QE(o)):[r&&QE(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function See(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Na(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const wee=Symbol(""),AM=Symbol(""),Rb=Symbol(""),AI=Symbol(""),tC=Symbol("");function np(){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 Jl(e,t,n,r,i,o=a=>a()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=d=>{d===!1?l(Qd(4,{from:n,to:t})):d instanceof Error?l(d):aee(d)?l(Qd(2,{from:t,to:d})):(a&&r.enterCallbacks[i]===a&&typeof d=="function"&&a.push(d),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(d=>l(d))})}function _x(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(Z4(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Jl(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=IQ(c)?c.default:c;a.mods[s]=c,a.components[s]=f;const h=(f.__vccOpts||f)[t];return h&&Jl(h,n,r,a,s,i)()}))}}return o}function IM(e){const t=qi(Rb),n=qi(AI),r=Ve(()=>{const l=N(e.to);return t.resolve(l)}),i=Ve(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Jd.bind(null,c));if(d>-1)return d;const h=RM(l[u-2]);return u>1&&RM(c)===h&&f[f.length-1].path!==h?f.findIndex(Jd.bind(null,l[u-2])):d}),o=Ve(()=>i.value>-1&&Aee(n.params,r.value.params)),a=Ve(()=>i.value>-1&&i.value===n.matched.length-1&&nB(n.params,r.value.params));function s(l={}){if(Cee(l)){const u=t[N(e.replace)?"replace":"push"](N(e.to)).catch(uv);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Ve(()=>r.value.href),isActive:o,isExactActive:a,navigate:s}}function xee(e){return e.length===1?e[0]:e}const Tee=it({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:IM,setup(e,{slots:t}){const n=La(IM(e)),{options:r}=qi(Rb),i=Ve(()=>({[PM(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[PM(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&xee(t.default(n));return e.custom?o:zi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),Eee=Tee;function Cee(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 Aee(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(!Na(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function RM(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const PM=(e,t,n)=>e??t??n,Iee=it({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=qi(tC),i=Ve(()=>e.route||r.value),o=qi(AM,0),a=Ve(()=>{let u=N(o);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=Ve(()=>i.value.matched[a.value]);av(AM,Ve(()=>a.value+1)),av(wee,s),av(tC,i);const l=Fe();return Yt(()=>[l.value,s.value,e.name],([u,c,f],[d,h,v])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!Jd(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return OM(n.default,{Component:d,route:u});const h=f.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,y=zi(d,yn({},v,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return OM(n.default,{Component:y,route:u})||y}}});function OM(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const II=Iee;function Ree(e){const t=vee(e.routes,e),n=e.parseQuery||bee,r=e.stringifyQuery||CM,i=e.history,o=np(),a=np(),s=np(),l=Cf(Ol);let u=Ol;gd&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=mx.bind(null,ce=>""+ce),f=mx.bind(null,UQ),d=mx.bind(null,rg);function h(ce,Ce){let Se,Te;return iB(ce)?(Se=t.getRecordMatcher(ce),Te=Ce):Te=ce,t.addRoute(Te,Se)}function v(ce){const Ce=t.getRecordMatcher(ce);Ce&&t.removeRoute(Ce)}function m(){return t.getRoutes().map(ce=>ce.record)}function y(ce){return!!t.getRecordMatcher(ce)}function _(ce,Ce){if(Ce=yn({},Ce||l.value),typeof ce=="string"){const G=yx(n,ce,Ce.path),le=t.resolve({path:G.path},Ce),we=i.createHref(G.fullPath);return yn(G,le,{params:d(le.params),hash:rg(G.hash),redirectedFrom:void 0,href:we})}let Se;if(ce.path!=null)Se=yn({},ce,{path:yx(n,ce.path,Ce.path).path});else{const G=yn({},ce.params);for(const le in G)G[le]==null&&delete G[le];Se=yn({},ce,{params:f(G)}),Ce.params=f(Ce.params)}const Te=t.resolve(Se,Ce),Oe=ce.hash||"";Te.params=c(d(Te.params));const $e=zQ(r,yn({},ce,{hash:$Q(Oe),path:Te.path})),H=i.createHref($e);return yn({fullPath:$e,hash:Oe,query:r===CM?See(ce.query):ce.query||{}},Te,{redirectedFrom:void 0,href:H})}function b(ce){return typeof ce=="string"?yx(n,ce,l.value.path):yn({},ce)}function w(ce,Ce){if(u!==ce)return Qd(8,{from:Ce,to:ce})}function S(ce){return A(ce)}function T(ce){return S(yn(b(ce),{replace:!0}))}function E(ce){const Ce=ce.matched[ce.matched.length-1];if(Ce&&Ce.redirect){const{redirect:Se}=Ce;let Te=typeof Se=="function"?Se(ce):Se;return typeof Te=="string"&&(Te=Te.includes("?")||Te.includes("#")?Te=b(Te):{path:Te},Te.params={}),yn({query:ce.query,hash:ce.hash,params:Te.path!=null?{}:ce.params},Te)}}function A(ce,Ce){const Se=u=_(ce),Te=l.value,Oe=ce.state,$e=ce.force,H=ce.replace===!0,G=E(Se);if(G)return A(yn(b(G),{state:typeof G=="object"?yn({},Oe,G.state):Oe,force:$e,replace:H}),Ce||Se);const le=Se;le.redirectedFrom=Ce;let we;return!$e&&WQ(r,Te,Se)&&(we=Qd(16,{to:le,from:Te}),ve(Te,Te,!0,!1)),(we?Promise.resolve(we):R(le,Te)).catch(pe=>Ps(pe)?Ps(pe,2)?pe:ge(pe):j(pe,le,Te)).then(pe=>{if(pe){if(Ps(pe,2))return A(yn({replace:H},b(pe.to),{state:typeof pe.to=="object"?yn({},Oe,pe.to.state):Oe,force:$e}),Ce||le)}else pe=M(le,Te,!0,H,Oe);return O(le,Te,pe),pe})}function P(ce,Ce){const Se=w(ce,Ce);return Se?Promise.reject(Se):Promise.resolve()}function I(ce){const Ce=ze.values().next().value;return Ce&&typeof Ce.runWithContext=="function"?Ce.runWithContext(ce):ce()}function R(ce,Ce){let Se;const[Te,Oe,$e]=Pee(ce,Ce);Se=_x(Te.reverse(),"beforeRouteLeave",ce,Ce);for(const G of Te)G.leaveGuards.forEach(le=>{Se.push(Jl(le,ce,Ce))});const H=P.bind(null,ce,Ce);return Se.push(H),je(Se).then(()=>{Se=[];for(const G of o.list())Se.push(Jl(G,ce,Ce));return Se.push(H),je(Se)}).then(()=>{Se=_x(Oe,"beforeRouteUpdate",ce,Ce);for(const G of Oe)G.updateGuards.forEach(le=>{Se.push(Jl(le,ce,Ce))});return Se.push(H),je(Se)}).then(()=>{Se=[];for(const G of $e)if(G.beforeEnter)if(Na(G.beforeEnter))for(const le of G.beforeEnter)Se.push(Jl(le,ce,Ce));else Se.push(Jl(G.beforeEnter,ce,Ce));return Se.push(H),je(Se)}).then(()=>(ce.matched.forEach(G=>G.enterCallbacks={}),Se=_x($e,"beforeRouteEnter",ce,Ce,I),Se.push(H),je(Se))).then(()=>{Se=[];for(const G of a.list())Se.push(Jl(G,ce,Ce));return Se.push(H),je(Se)}).catch(G=>Ps(G,8)?G:Promise.reject(G))}function O(ce,Ce,Se){s.list().forEach(Te=>I(()=>Te(ce,Ce,Se)))}function M(ce,Ce,Se,Te,Oe){const $e=w(ce,Ce);if($e)return $e;const H=Ce===Ol,G=gd?history.state:{};Se&&(Te||H?i.replace(ce.fullPath,yn({scroll:H&&G&&G.scroll},Oe)):i.push(ce.fullPath,Oe)),l.value=ce,ve(ce,Ce,Se,H),ge()}let $;function F(){$||($=i.listen((ce,Ce,Se)=>{if(!Me.listening)return;const Te=_(ce),Oe=E(Te);if(Oe){A(yn(Oe,{replace:!0,force:!0}),Te).catch(uv);return}u=Te;const $e=l.value;gd&&QQ(mM($e.fullPath,Se.delta),Ib()),R(Te,$e).catch(H=>Ps(H,12)?H:Ps(H,2)?(A(yn(b(H.to),{force:!0}),Te).then(G=>{Ps(G,20)&&!Se.delta&&Se.type===ig.pop&&i.go(-1,!1)}).catch(uv),Promise.reject()):(Se.delta&&i.go(-Se.delta,!1),j(H,Te,$e))).then(H=>{H=H||M(Te,$e,!1),H&&(Se.delta&&!Ps(H,8)?i.go(-Se.delta,!1):Se.type===ig.pop&&Ps(H,20)&&i.go(-1,!1)),O(Te,$e,H)}).catch(uv)}))}let z=np(),B=np(),Y;function j(ce,Ce,Se){ge(ce);const Te=B.list();return Te.length?Te.forEach(Oe=>Oe(ce,Ce,Se)):console.error(ce),Promise.reject(ce)}function se(){return Y&&l.value!==Ol?Promise.resolve():new Promise((ce,Ce)=>{z.add([ce,Ce])})}function ge(ce){return Y||(Y=!ce,F(),z.list().forEach(([Ce,Se])=>ce?Se(ce):Ce()),z.reset()),ce}function ve(ce,Ce,Se,Te){const{scrollBehavior:Oe}=e;if(!gd||!Oe)return Promise.resolve();const $e=!Se&&eee(mM(ce.fullPath,0))||(Te||!Se)&&history.state&&history.state.scroll||null;return vs().then(()=>Oe(ce,Ce,$e)).then(H=>H&&JQ(H)).catch(H=>j(H,ce,Ce))}const De=ce=>i.go(ce);let Ne;const ze=new Set,Me={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:m,resolve:_,options:e,push:S,replace:T,go:De,back:()=>De(-1),forward:()=>De(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:B.add,isReady:se,install(ce){const Ce=this;ce.component("RouterLink",Eee),ce.component("RouterView",II),ce.config.globalProperties.$router=Ce,Object.defineProperty(ce.config.globalProperties,"$route",{enumerable:!0,get:()=>N(l)}),gd&&!Ne&&l.value===Ol&&(Ne=!0,S(i.location).catch(Oe=>{}));const Se={};for(const Oe in Ol)Object.defineProperty(Se,Oe,{get:()=>l.value[Oe],enumerable:!0});ce.provide(Rb,Ce),ce.provide(AI,sI(Se)),ce.provide(tC,l);const Te=ce.unmount;ze.add(ce),ce.unmount=function(){ze.delete(ce),ze.size<1&&(u=Ol,$&&$(),$=null,l.value=Ol,Ne=!1,Y=!1),Te()}}};function je(ce){return ce.reduce((Ce,Se)=>Ce.then(()=>I(Se)),Promise.resolve())}return Me}function Pee(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;aJd(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>Jd(u,l))||i.push(l))}return[n,r,i]}function Oee(){return qi(Rb)}function lB(e){return qi(AI)}/*! * shared v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */const r1=typeof window<"u",Fu=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Pee=(e,t,n)=>Oee({l:e,k:t,s:n}),Oee=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),hr=e=>typeof e=="number"&&isFinite(e),Dee=e=>AI(e)==="[object Date]",eh=e=>AI(e)==="[object RegExp]",Ib=e=>jt(e)&&Object.keys(e).length===0,Cr=Object.assign,Mee=Object.create,Rn=(e=null)=>Mee(e);let PM;const Dc=()=>PM||(PM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Rn());function OM(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const Lee=Object.prototype.hasOwnProperty;function Ia(e,t){return Lee.call(e,t)}const ar=Array.isArray,Hn=e=>typeof e=="function",tt=e=>typeof e=="string",fn=e=>typeof e=="boolean",pn=e=>e!==null&&typeof e=="object",Nee=e=>pn(e)&&Hn(e.then)&&Hn(e.catch),aB=Object.prototype.toString,AI=e=>aB.call(e),jt=e=>AI(e)==="[object Object]",kee=e=>e==null?"":ar(e)||jt(e)&&e.toString===aB?JSON.stringify(e,null,2):String(e);function II(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function Fee(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Sy=e=>!pn(e)||ar(e);function G0(e,t){if(Sy(e)||Sy(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__"&&(pn(r[o])&&!pn(i[o])&&(i[o]=Array.isArray(r[o])?[]:Rn()),Sy(i[o])||Sy(r[o])?i[o]=r[o]:n.push({src:r[o],des:i[o]}))})}}/*! + */const o1=typeof window<"u",Fu=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Dee=(e,t,n)=>Mee({l:e,k:t,s:n}),Mee=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),hr=e=>typeof e=="number"&&isFinite(e),Lee=e=>RI(e)==="[object Date]",eh=e=>RI(e)==="[object RegExp]",Pb=e=>jt(e)&&Object.keys(e).length===0,Cr=Object.assign,Nee=Object.create,Rn=(e=null)=>Nee(e);let DM;const Dc=()=>DM||(DM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Rn());function MM(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const kee=Object.prototype.hasOwnProperty;function Ia(e,t){return kee.call(e,t)}const ar=Array.isArray,Hn=e=>typeof e=="function",tt=e=>typeof e=="string",fn=e=>typeof e=="boolean",pn=e=>e!==null&&typeof e=="object",Fee=e=>pn(e)&&Hn(e.then)&&Hn(e.catch),uB=Object.prototype.toString,RI=e=>uB.call(e),jt=e=>RI(e)==="[object Object]",$ee=e=>e==null?"":ar(e)||jt(e)&&e.toString===uB?JSON.stringify(e,null,2):String(e);function PI(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function Bee(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const xy=e=>!pn(e)||ar(e);function W0(e,t){if(xy(e)||xy(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__"&&(pn(r[o])&&!pn(i[o])&&(i[o]=Array.isArray(r[o])?[]:Rn()),xy(i[o])||xy(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 $ee(e,t,n){return{line:e,column:t,offset:n}}function eC(e,t,n){return{start:e,end:t}}const xn={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},Bee=17;function Rb(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 Vee(e){throw e}const Os=" ",Uee="\r",bi=` -`,Hee="\u2028",Gee="\u2029";function zee(e){const t=e;let n=0,r=1,i=1,o=0;const a=A=>t[A]===Uee&&t[A+1]===bi,s=A=>t[A]===bi,l=A=>t[A]===Gee,u=A=>t[A]===Hee,c=A=>a(A)||s(A)||l(A)||u(A),f=()=>n,d=()=>r,h=()=>i,v=()=>o,m=A=>a(A)||l(A)||u(A)?bi:t[A],y=()=>m(n),_=()=>m(n+o);function b(){return o=0,c(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function w(){return a(n+o)&&o++,o++,t[n+o]}function S(){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:d,column:h,peekOffset:v,charAt:m,currentChar:y,currentPeek:_,next:b,peek:w,reset:S,resetPeek:E,skipToPeek:T}}const Dl=void 0,Wee=".",DM="'",jee="tokenizer";function Yee(e,t={}){const n=t.location!==!1,r=zee(e),i=()=>r.index(),o=()=>$ee(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(U,W,q,...fe){const _e=u();if(W.column+=q,W.offset+=q,c){const Pe=n?eC(_e.startLoc,W):null,Z=Rb(U,Pe,{domain:jee,args:fe});c(Z)}}function d(U,W,q){U.endLoc=o(),U.currentType=W;const fe={type:W};return n&&(fe.loc=eC(U.startLoc,U.endLoc)),q!=null&&(fe.value=q),fe}const h=U=>d(U,13);function v(U,W){return U.currentChar()===W?(U.next(),W):(f(xn.EXPECTED_TOKEN,o(),0,W),"")}function m(U){let W="";for(;U.currentPeek()===Os||U.currentPeek()===bi;)W+=U.currentPeek(),U.peek();return W}function y(U){const W=m(U);return U.skipToPeek(),W}function _(U){if(U===Dl)return!1;const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W===95}function b(U){if(U===Dl)return!1;const W=U.charCodeAt(0);return W>=48&&W<=57}function w(U,W){const{currentType:q}=W;if(q!==2)return!1;m(U);const fe=_(U.currentPeek());return U.resetPeek(),fe}function S(U,W){const{currentType:q}=W;if(q!==2)return!1;m(U);const fe=U.currentPeek()==="-"?U.peek():U.currentPeek(),_e=b(fe);return U.resetPeek(),_e}function E(U,W){const{currentType:q}=W;if(q!==2)return!1;m(U);const fe=U.currentPeek()===DM;return U.resetPeek(),fe}function T(U,W){const{currentType:q}=W;if(q!==7)return!1;m(U);const fe=U.currentPeek()===".";return U.resetPeek(),fe}function A(U,W){const{currentType:q}=W;if(q!==8)return!1;m(U);const fe=_(U.currentPeek());return U.resetPeek(),fe}function P(U,W){const{currentType:q}=W;if(!(q===7||q===11))return!1;m(U);const fe=U.currentPeek()===":";return U.resetPeek(),fe}function I(U,W){const{currentType:q}=W;if(q!==9)return!1;const fe=()=>{const Pe=U.currentPeek();return Pe==="{"?_(U.peek()):Pe==="@"||Pe==="|"||Pe===":"||Pe==="."||Pe===Os||!Pe?!1:Pe===bi?(U.peek(),fe()):O(U,!1)},_e=fe();return U.resetPeek(),_e}function R(U){m(U);const W=U.currentPeek()==="|";return U.resetPeek(),W}function O(U,W=!0){const q=(_e=!1,Pe="")=>{const Z=U.currentPeek();return Z==="{"||Z==="@"||!Z?_e:Z==="|"?!(Pe===Os||Pe===bi):Z===Os?(U.peek(),q(!0,Os)):Z===bi?(U.peek(),q(!0,bi)):!0},fe=q();return W&&U.resetPeek(),fe}function M(U,W){const q=U.currentChar();return q===Dl?Dl:W(q)?(U.next(),q):null}function $(U){const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36}function F(U){return M(U,$)}function z(U){const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36||W===45}function B(U){return M(U,z)}function Y(U){const W=U.charCodeAt(0);return W>=48&&W<=57}function j(U){return M(U,Y)}function ae(U){const W=U.charCodeAt(0);return W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102}function ge(U){return M(U,ae)}function ve(U){let W="",q="";for(;W=j(U);)q+=W;return q}function De(U){let W="";for(;;){const q=U.currentChar();if(q==="{"||q==="}"||q==="@"||q==="|"||!q)break;if(q===Os||q===bi)if(O(U))W+=q,U.next();else{if(R(U))break;W+=q,U.next()}else W+=q,U.next()}return W}function Ne(U){y(U);let W="",q="";for(;W=B(U);)q+=W;return U.currentChar()===Dl&&f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),q}function ze(U){y(U);let W="";return U.currentChar()==="-"?(U.next(),W+=`-${ve(U)}`):W+=ve(U),U.currentChar()===Dl&&f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),W}function Me(U){return U!==DM&&U!==bi}function je(U){y(U),v(U,"'");let W="",q="";for(;W=M(U,Me);)W==="\\"?q+=ce(U):q+=W;const fe=U.currentChar();return fe===bi||fe===Dl?(f(xn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),fe===bi&&(U.next(),v(U,"'")),q):(v(U,"'"),q)}function ce(U){const W=U.currentChar();switch(W){case"\\":case"'":return U.next(),`\\${W}`;case"u":return Ce(U,W,4);case"U":return Ce(U,W,6);default:return f(xn.UNKNOWN_ESCAPE_SEQUENCE,o(),0,W),""}}function Ce(U,W,q){v(U,W);let fe="";for(let _e=0;_e{const fe=U.currentChar();return fe==="{"||fe==="@"||fe==="|"||fe==="("||fe===")"||!fe||fe===Os?q:(q+=fe,U.next(),W(q))};return W("")}function H(U){y(U);const W=v(U,"|");return y(U),W}function G(U,W){let q=null;switch(U.currentChar()){case"{":return W.braceNest>=1&&f(xn.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),U.next(),q=d(W,2,"{"),y(U),W.braceNest++,q;case"}":return W.braceNest>0&&W.currentType===2&&f(xn.EMPTY_PLACEHOLDER,o(),0),U.next(),q=d(W,3,"}"),W.braceNest--,W.braceNest>0&&y(U),W.inLinked&&W.braceNest===0&&(W.inLinked=!1),q;case"@":return W.braceNest>0&&f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),q=le(U,W)||h(W),W.braceNest=0,q;default:{let _e=!0,Pe=!0,Z=!0;if(R(U))return W.braceNest>0&&f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),q=d(W,1,H(U)),W.braceNest=0,W.inLinked=!1,q;if(W.braceNest>0&&(W.currentType===4||W.currentType===5||W.currentType===6))return f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),W.braceNest=0,we(U,W);if(_e=w(U,W))return q=d(W,4,Ne(U)),y(U),q;if(Pe=S(U,W))return q=d(W,5,ze(U)),y(U),q;if(Z=E(U,W))return q=d(W,6,je(U)),y(U),q;if(!_e&&!Pe&&!Z)return q=d(W,12,Te(U)),f(xn.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,q.value),y(U),q;break}}return q}function le(U,W){const{currentType:q}=W;let fe=null;const _e=U.currentChar();switch((q===7||q===8||q===11||q===9)&&(_e===bi||_e===Os)&&f(xn.INVALID_LINKED_FORMAT,o(),0),_e){case"@":return U.next(),fe=d(W,7,"@"),W.inLinked=!0,fe;case".":return y(U),U.next(),d(W,8,".");case":":return y(U),U.next(),d(W,9,":");default:return R(U)?(fe=d(W,1,H(U)),W.braceNest=0,W.inLinked=!1,fe):T(U,W)||P(U,W)?(y(U),le(U,W)):A(U,W)?(y(U),d(W,11,Oe(U))):I(U,W)?(y(U),_e==="{"?G(U,W)||fe:d(W,10,$e(U))):(q===7&&f(xn.INVALID_LINKED_FORMAT,o(),0),W.braceNest=0,W.inLinked=!1,we(U,W))}}function we(U,W){let q={type:13};if(W.braceNest>0)return G(U,W)||h(W);if(W.inLinked)return le(U,W)||h(W);switch(U.currentChar()){case"{":return G(U,W)||h(W);case"}":return f(xn.UNBALANCED_CLOSING_BRACE,o(),0),U.next(),d(W,3,"}");case"@":return le(U,W)||h(W);default:{if(R(U))return q=d(W,1,H(U)),W.braceNest=0,W.inLinked=!1,q;if(O(U))return d(W,0,De(U));break}}return q}function pe(){const{currentType:U,offset:W,startLoc:q,endLoc:fe}=l;return l.lastType=U,l.lastOffset=W,l.lastStartLoc=q,l.lastEndLoc=fe,l.offset=i(),l.startLoc=o(),r.currentChar()===Dl?d(l,13):we(r,l)}return{nextToken:pe,currentOffset:i,currentPosition:o,context:u}}const Xee="parser",Kee=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Zee(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 qee(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,b,w,S,...E){const T=_.currentPosition();if(T.offset+=S,T.column+=S,n){const A=t?eC(w,T):null,P=Rb(b,A,{domain:Xee,args:E});n(P)}}function i(_,b,w){const S={type:_};return t&&(S.start=b,S.end=b,S.loc={start:w,end:w}),S}function o(_,b,w,S){t&&(_.end=b,_.loc&&(_.loc.end=w))}function a(_,b){const w=_.context(),S=i(3,w.offset,w.startLoc);return S.value=b,o(S,_.currentOffset(),_.currentPosition()),S}function s(_,b){const w=_.context(),{lastOffset:S,lastStartLoc:E}=w,T=i(5,S,E);return T.index=parseInt(b,10),_.nextToken(),o(T,_.currentOffset(),_.currentPosition()),T}function l(_,b){const w=_.context(),{lastOffset:S,lastStartLoc:E}=w,T=i(4,S,E);return T.key=b,_.nextToken(),o(T,_.currentOffset(),_.currentPosition()),T}function u(_,b){const w=_.context(),{lastOffset:S,lastStartLoc:E}=w,T=i(9,S,E);return T.value=b.replace(Kee,Zee),_.nextToken(),o(T,_.currentOffset(),_.currentPosition()),T}function c(_){const b=_.nextToken(),w=_.context(),{lastOffset:S,lastStartLoc:E}=w,T=i(8,S,E);return b.type!==11?(r(_,xn.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),T.value="",o(T,S,E),{nextConsumeToken:b,node:T}):(b.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ga(b)),T.value=b.value||"",o(T,_.currentOffset(),_.currentPosition()),{node:T})}function f(_,b){const w=_.context(),S=i(7,w.offset,w.startLoc);return S.value=b,o(S,_.currentOffset(),_.currentPosition()),S}function d(_){const b=_.context(),w=i(6,b.offset,b.startLoc);let S=_.nextToken();if(S.type===8){const E=c(_);w.modifier=E.node,S=E.nextConsumeToken||_.nextToken()}switch(S.type!==9&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(S)),S=_.nextToken(),S.type===2&&(S=_.nextToken()),S.type){case 10:S.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(S)),w.key=f(_,S.value||"");break;case 4:S.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(S)),w.key=l(_,S.value||"");break;case 5:S.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(S)),w.key=s(_,S.value||"");break;case 6:S.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(S)),w.key=u(_,S.value||"");break;default:{r(_,xn.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const E=_.context(),T=i(7,E.offset,E.startLoc);return T.value="",o(T,E.offset,E.startLoc),w.key=T,o(w,E.offset,E.startLoc),{nextConsumeToken:S,node:w}}}return o(w,_.currentOffset(),_.currentPosition()),{node:w}}function h(_){const b=_.context(),w=b.currentType===1?_.currentOffset():b.offset,S=b.currentType===1?b.endLoc:b.startLoc,E=i(2,w,S);E.items=[];let T=null;do{const I=T||_.nextToken();switch(T=null,I.type){case 0:I.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(I)),E.items.push(a(_,I.value||""));break;case 5:I.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(I)),E.items.push(s(_,I.value||""));break;case 4:I.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(I)),E.items.push(l(_,I.value||""));break;case 6:I.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(I)),E.items.push(u(_,I.value||""));break;case 7:{const R=d(_);E.items.push(R.node),T=R.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const A=b.currentType===1?b.lastOffset:_.currentOffset(),P=b.currentType===1?b.lastEndLoc:_.currentPosition();return o(E,A,P),E}function v(_,b,w,S){const E=_.context();let T=S.items.length===0;const A=i(1,b,w);A.cases=[],A.cases.push(S);do{const P=h(_);T||(T=P.items.length===0),A.cases.push(P)}while(E.currentType!==13);return T&&r(_,xn.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),o(A,_.currentOffset(),_.currentPosition()),A}function m(_){const b=_.context(),{offset:w,startLoc:S}=b,E=h(_);return b.currentType===13?E:v(_,w,S,E)}function y(_){const b=Yee(_,Cr({},e)),w=b.context(),S=i(0,w.offset,w.startLoc);return t&&S.loc&&(S.loc.source=_),S.body=m(b),e.onCacheKey&&(S.cacheKey=e.onCacheKey(_)),w.currentType!==13&&r(b,xn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,_[w.offset]||""),o(S,b.currentOffset(),b.currentPosition()),S}return{parse:y}}function Ga(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 Jee(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function MM(e,t){for(let n=0;nLM(n)),e}function LM(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(y,_){s.code+=y}function c(y,_=!0){const b=_?i:"";u(o?b+" ".repeat(y):b)}function f(y=!0){const _=++s.indentLevel;y&&c(_)}function d(y=!0){const _=--s.indentLevel;y&&c(_)}function h(){c(s.indentLevel)}return{context:l,push:u,indent:f,deindent:d,newline:h,helper:y=>`_${y}`,needIndent:()=>s.needIndent}}function nte(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),th(e,t.key),t.modifier?(e.push(", "),th(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function rte(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=tt(t.mode)?t.mode:"normal",r=tt(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=tte(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 { ${II(s.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),th(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 ste(e,t={}){const n=Cr({},t),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,s=qee(n).parse(e);return r?(o&&ete(s),i&&md(s),{ast:s,code:""}):(Qee(s,n),ate(s,n))}/*! + */function Vee(e,t,n){return{line:e,column:t,offset:n}}function nC(e,t,n){return{start:e,end:t}}const xn={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},Uee=17;function Ob(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 Hee(e){throw e}const Os=" ",Gee="\r",Si=` +`,zee="\u2028",Wee="\u2029";function jee(e){const t=e;let n=0,r=1,i=1,o=0;const a=A=>t[A]===Gee&&t[A+1]===Si,s=A=>t[A]===Si,l=A=>t[A]===Wee,u=A=>t[A]===zee,c=A=>a(A)||s(A)||l(A)||u(A),f=()=>n,d=()=>r,h=()=>i,v=()=>o,m=A=>a(A)||l(A)||u(A)?Si:t[A],y=()=>m(n),_=()=>m(n+o);function b(){return o=0,c(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function w(){return a(n+o)&&o++,o++,t[n+o]}function S(){n=0,r=1,i=1,o=0}function T(A=0){o=A}function E(){const A=n+o;for(;A!==n;)b();o=0}return{index:f,line:d,column:h,peekOffset:v,charAt:m,currentChar:y,currentPeek:_,next:b,peek:w,reset:S,resetPeek:T,skipToPeek:E}}const Dl=void 0,Yee=".",LM="'",Xee="tokenizer";function Kee(e,t={}){const n=t.location!==!1,r=jee(e),i=()=>r.index(),o=()=>Vee(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(U,W,q,...fe){const _e=u();if(W.column+=q,W.offset+=q,c){const Pe=n?nC(_e.startLoc,W):null,Z=Ob(U,Pe,{domain:Xee,args:fe});c(Z)}}function d(U,W,q){U.endLoc=o(),U.currentType=W;const fe={type:W};return n&&(fe.loc=nC(U.startLoc,U.endLoc)),q!=null&&(fe.value=q),fe}const h=U=>d(U,13);function v(U,W){return U.currentChar()===W?(U.next(),W):(f(xn.EXPECTED_TOKEN,o(),0,W),"")}function m(U){let W="";for(;U.currentPeek()===Os||U.currentPeek()===Si;)W+=U.currentPeek(),U.peek();return W}function y(U){const W=m(U);return U.skipToPeek(),W}function _(U){if(U===Dl)return!1;const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W===95}function b(U){if(U===Dl)return!1;const W=U.charCodeAt(0);return W>=48&&W<=57}function w(U,W){const{currentType:q}=W;if(q!==2)return!1;m(U);const fe=_(U.currentPeek());return U.resetPeek(),fe}function S(U,W){const{currentType:q}=W;if(q!==2)return!1;m(U);const fe=U.currentPeek()==="-"?U.peek():U.currentPeek(),_e=b(fe);return U.resetPeek(),_e}function T(U,W){const{currentType:q}=W;if(q!==2)return!1;m(U);const fe=U.currentPeek()===LM;return U.resetPeek(),fe}function E(U,W){const{currentType:q}=W;if(q!==7)return!1;m(U);const fe=U.currentPeek()===".";return U.resetPeek(),fe}function A(U,W){const{currentType:q}=W;if(q!==8)return!1;m(U);const fe=_(U.currentPeek());return U.resetPeek(),fe}function P(U,W){const{currentType:q}=W;if(!(q===7||q===11))return!1;m(U);const fe=U.currentPeek()===":";return U.resetPeek(),fe}function I(U,W){const{currentType:q}=W;if(q!==9)return!1;const fe=()=>{const Pe=U.currentPeek();return Pe==="{"?_(U.peek()):Pe==="@"||Pe==="|"||Pe===":"||Pe==="."||Pe===Os||!Pe?!1:Pe===Si?(U.peek(),fe()):O(U,!1)},_e=fe();return U.resetPeek(),_e}function R(U){m(U);const W=U.currentPeek()==="|";return U.resetPeek(),W}function O(U,W=!0){const q=(_e=!1,Pe="")=>{const Z=U.currentPeek();return Z==="{"||Z==="@"||!Z?_e:Z==="|"?!(Pe===Os||Pe===Si):Z===Os?(U.peek(),q(!0,Os)):Z===Si?(U.peek(),q(!0,Si)):!0},fe=q();return W&&U.resetPeek(),fe}function M(U,W){const q=U.currentChar();return q===Dl?Dl:W(q)?(U.next(),q):null}function $(U){const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36}function F(U){return M(U,$)}function z(U){const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36||W===45}function B(U){return M(U,z)}function Y(U){const W=U.charCodeAt(0);return W>=48&&W<=57}function j(U){return M(U,Y)}function se(U){const W=U.charCodeAt(0);return W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102}function ge(U){return M(U,se)}function ve(U){let W="",q="";for(;W=j(U);)q+=W;return q}function De(U){let W="";for(;;){const q=U.currentChar();if(q==="{"||q==="}"||q==="@"||q==="|"||!q)break;if(q===Os||q===Si)if(O(U))W+=q,U.next();else{if(R(U))break;W+=q,U.next()}else W+=q,U.next()}return W}function Ne(U){y(U);let W="",q="";for(;W=B(U);)q+=W;return U.currentChar()===Dl&&f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),q}function ze(U){y(U);let W="";return U.currentChar()==="-"?(U.next(),W+=`-${ve(U)}`):W+=ve(U),U.currentChar()===Dl&&f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),W}function Me(U){return U!==LM&&U!==Si}function je(U){y(U),v(U,"'");let W="",q="";for(;W=M(U,Me);)W==="\\"?q+=ce(U):q+=W;const fe=U.currentChar();return fe===Si||fe===Dl?(f(xn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),fe===Si&&(U.next(),v(U,"'")),q):(v(U,"'"),q)}function ce(U){const W=U.currentChar();switch(W){case"\\":case"'":return U.next(),`\\${W}`;case"u":return Ce(U,W,4);case"U":return Ce(U,W,6);default:return f(xn.UNKNOWN_ESCAPE_SEQUENCE,o(),0,W),""}}function Ce(U,W,q){v(U,W);let fe="";for(let _e=0;_e{const fe=U.currentChar();return fe==="{"||fe==="@"||fe==="|"||fe==="("||fe===")"||!fe||fe===Os?q:(q+=fe,U.next(),W(q))};return W("")}function H(U){y(U);const W=v(U,"|");return y(U),W}function G(U,W){let q=null;switch(U.currentChar()){case"{":return W.braceNest>=1&&f(xn.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),U.next(),q=d(W,2,"{"),y(U),W.braceNest++,q;case"}":return W.braceNest>0&&W.currentType===2&&f(xn.EMPTY_PLACEHOLDER,o(),0),U.next(),q=d(W,3,"}"),W.braceNest--,W.braceNest>0&&y(U),W.inLinked&&W.braceNest===0&&(W.inLinked=!1),q;case"@":return W.braceNest>0&&f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),q=le(U,W)||h(W),W.braceNest=0,q;default:{let _e=!0,Pe=!0,Z=!0;if(R(U))return W.braceNest>0&&f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),q=d(W,1,H(U)),W.braceNest=0,W.inLinked=!1,q;if(W.braceNest>0&&(W.currentType===4||W.currentType===5||W.currentType===6))return f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),W.braceNest=0,we(U,W);if(_e=w(U,W))return q=d(W,4,Ne(U)),y(U),q;if(Pe=S(U,W))return q=d(W,5,ze(U)),y(U),q;if(Z=T(U,W))return q=d(W,6,je(U)),y(U),q;if(!_e&&!Pe&&!Z)return q=d(W,12,Te(U)),f(xn.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,q.value),y(U),q;break}}return q}function le(U,W){const{currentType:q}=W;let fe=null;const _e=U.currentChar();switch((q===7||q===8||q===11||q===9)&&(_e===Si||_e===Os)&&f(xn.INVALID_LINKED_FORMAT,o(),0),_e){case"@":return U.next(),fe=d(W,7,"@"),W.inLinked=!0,fe;case".":return y(U),U.next(),d(W,8,".");case":":return y(U),U.next(),d(W,9,":");default:return R(U)?(fe=d(W,1,H(U)),W.braceNest=0,W.inLinked=!1,fe):E(U,W)||P(U,W)?(y(U),le(U,W)):A(U,W)?(y(U),d(W,11,Oe(U))):I(U,W)?(y(U),_e==="{"?G(U,W)||fe:d(W,10,$e(U))):(q===7&&f(xn.INVALID_LINKED_FORMAT,o(),0),W.braceNest=0,W.inLinked=!1,we(U,W))}}function we(U,W){let q={type:13};if(W.braceNest>0)return G(U,W)||h(W);if(W.inLinked)return le(U,W)||h(W);switch(U.currentChar()){case"{":return G(U,W)||h(W);case"}":return f(xn.UNBALANCED_CLOSING_BRACE,o(),0),U.next(),d(W,3,"}");case"@":return le(U,W)||h(W);default:{if(R(U))return q=d(W,1,H(U)),W.braceNest=0,W.inLinked=!1,q;if(O(U))return d(W,0,De(U));break}}return q}function pe(){const{currentType:U,offset:W,startLoc:q,endLoc:fe}=l;return l.lastType=U,l.lastOffset=W,l.lastStartLoc=q,l.lastEndLoc=fe,l.offset=i(),l.startLoc=o(),r.currentChar()===Dl?d(l,13):we(r,l)}return{nextToken:pe,currentOffset:i,currentPosition:o,context:u}}const Zee="parser",qee=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Jee(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 Qee(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,b,w,S,...T){const E=_.currentPosition();if(E.offset+=S,E.column+=S,n){const A=t?nC(w,E):null,P=Ob(b,A,{domain:Zee,args:T});n(P)}}function i(_,b,w){const S={type:_};return t&&(S.start=b,S.end=b,S.loc={start:w,end:w}),S}function o(_,b,w,S){t&&(_.end=b,_.loc&&(_.loc.end=w))}function a(_,b){const w=_.context(),S=i(3,w.offset,w.startLoc);return S.value=b,o(S,_.currentOffset(),_.currentPosition()),S}function s(_,b){const w=_.context(),{lastOffset:S,lastStartLoc:T}=w,E=i(5,S,T);return E.index=parseInt(b,10),_.nextToken(),o(E,_.currentOffset(),_.currentPosition()),E}function l(_,b){const w=_.context(),{lastOffset:S,lastStartLoc:T}=w,E=i(4,S,T);return E.key=b,_.nextToken(),o(E,_.currentOffset(),_.currentPosition()),E}function u(_,b){const w=_.context(),{lastOffset:S,lastStartLoc:T}=w,E=i(9,S,T);return E.value=b.replace(qee,Jee),_.nextToken(),o(E,_.currentOffset(),_.currentPosition()),E}function c(_){const b=_.nextToken(),w=_.context(),{lastOffset:S,lastStartLoc:T}=w,E=i(8,S,T);return b.type!==11?(r(_,xn.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),E.value="",o(E,S,T),{nextConsumeToken:b,node:E}):(b.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ga(b)),E.value=b.value||"",o(E,_.currentOffset(),_.currentPosition()),{node:E})}function f(_,b){const w=_.context(),S=i(7,w.offset,w.startLoc);return S.value=b,o(S,_.currentOffset(),_.currentPosition()),S}function d(_){const b=_.context(),w=i(6,b.offset,b.startLoc);let S=_.nextToken();if(S.type===8){const T=c(_);w.modifier=T.node,S=T.nextConsumeToken||_.nextToken()}switch(S.type!==9&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(S)),S=_.nextToken(),S.type===2&&(S=_.nextToken()),S.type){case 10:S.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(S)),w.key=f(_,S.value||"");break;case 4:S.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(S)),w.key=l(_,S.value||"");break;case 5:S.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(S)),w.key=s(_,S.value||"");break;case 6:S.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(S)),w.key=u(_,S.value||"");break;default:{r(_,xn.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const T=_.context(),E=i(7,T.offset,T.startLoc);return E.value="",o(E,T.offset,T.startLoc),w.key=E,o(w,T.offset,T.startLoc),{nextConsumeToken:S,node:w}}}return o(w,_.currentOffset(),_.currentPosition()),{node:w}}function h(_){const b=_.context(),w=b.currentType===1?_.currentOffset():b.offset,S=b.currentType===1?b.endLoc:b.startLoc,T=i(2,w,S);T.items=[];let E=null;do{const I=E||_.nextToken();switch(E=null,I.type){case 0:I.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(I)),T.items.push(a(_,I.value||""));break;case 5:I.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(I)),T.items.push(s(_,I.value||""));break;case 4:I.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(I)),T.items.push(l(_,I.value||""));break;case 6:I.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ga(I)),T.items.push(u(_,I.value||""));break;case 7:{const R=d(_);T.items.push(R.node),E=R.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const A=b.currentType===1?b.lastOffset:_.currentOffset(),P=b.currentType===1?b.lastEndLoc:_.currentPosition();return o(T,A,P),T}function v(_,b,w,S){const T=_.context();let E=S.items.length===0;const A=i(1,b,w);A.cases=[],A.cases.push(S);do{const P=h(_);E||(E=P.items.length===0),A.cases.push(P)}while(T.currentType!==13);return E&&r(_,xn.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),o(A,_.currentOffset(),_.currentPosition()),A}function m(_){const b=_.context(),{offset:w,startLoc:S}=b,T=h(_);return b.currentType===13?T:v(_,w,S,T)}function y(_){const b=Kee(_,Cr({},e)),w=b.context(),S=i(0,w.offset,w.startLoc);return t&&S.loc&&(S.loc.source=_),S.body=m(b),e.onCacheKey&&(S.cacheKey=e.onCacheKey(_)),w.currentType!==13&&r(b,xn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,_[w.offset]||""),o(S,b.currentOffset(),b.currentPosition()),S}return{parse:y}}function Ga(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 ete(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function NM(e,t){for(let n=0;nkM(n)),e}function kM(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(y,_){s.code+=y}function c(y,_=!0){const b=_?i:"";u(o?b+" ".repeat(y):b)}function f(y=!0){const _=++s.indentLevel;y&&c(_)}function d(y=!0){const _=--s.indentLevel;y&&c(_)}function h(){c(s.indentLevel)}return{context:l,push:u,indent:f,deindent:d,newline:h,helper:y=>`_${y}`,needIndent:()=>s.needIndent}}function ite(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),th(e,t.key),t.modifier?(e.push(", "),th(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ote(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=tt(t.mode)?t.mode:"normal",r=tt(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=rte(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 { ${PI(s.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),th(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 ute(e,t={}){const n=Cr({},t),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,s=Qee(n).parse(e);return r?(o&&nte(s),i&&md(s),{ast:s,code:""}):(tte(s,n),lte(s,n))}/*! * core-base v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */function lte(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Dc().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Dc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function yx(e){return n=>ute(n,e)}function ute(e,t){const n=fte(t);if(n==null)throw ig(0);if(PI(n)===1){const o=hte(n);return e.plural(o.reduce((a,s)=>[...a,NM(e,s)],[]))}else return NM(e,n)}const cte=["b","body"];function fte(e){return $u(e,cte)}const dte=["c","cases"];function hte(e){return $u(e,dte,[])}function NM(e,t){const n=vte(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=mte(t).reduce((i,o)=>[...i,tC(e,o)],[]);return e.normalize(r)}}const pte=["s","static"];function vte(e){return $u(e,pte)}const gte=["i","items"];function mte(e){return $u(e,gte,[])}function tC(e,t){const n=PI(t);switch(n){case 3:return wy(t,n);case 9:return wy(t,n);case 4:{const r=t;if(Ia(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Ia(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw ig(n)}case 5:{const r=t;if(Ia(r,"i")&&hr(r.i))return e.interpolate(e.list(r.i));if(Ia(r,"index")&&hr(r.index))return e.interpolate(e.list(r.index));throw ig(n)}case 6:{const r=t,i=Ste(r),o=xte(r);return e.linked(tC(e,o),i?tC(e,i):void 0,e.type)}case 7:return wy(t,n);case 8:return wy(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const yte=["t","type"];function PI(e){return $u(e,yte)}const _te=["v","value"];function wy(e,t){const n=$u(e,_te);if(n)return n;throw ig(t)}const bte=["m","modifier"];function Ste(e){return $u(e,bte)}const wte=["k","key"];function xte(e){const t=$u(e,wte);if(t)return t;throw ig(6)}function $u(e,t,n){for(let r=0;re;let xy=Rn();function nh(e){return pn(e)&&PI(e)===0&&(Ia(e,"b")||Ia(e,"body"))}function Ete(e,t={}){let n=!1;const r=t.onError||Vee;return t.onError=i=>{n=!0,r(i)},{...ste(e,t),detectError:n}}function Cte(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&tt(e)){fn(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Tte)(e),i=xy[r];if(i)return i;const{ast:o,detectError:a}=Ete(e,{...t,location:!1,jit:!0}),s=yx(o);return a?s:xy[r]=s}else{const n=e.cacheKey;if(n){const r=xy[n];return r||(xy[n]=yx(e))}else return yx(e)}}let og=null;function Ate(e){og=e}function Ite(e,t,n){og&&og.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Rte=Pte("function:translate");function Pte(e){return t=>og&&og.emit(e,t)}const Ks={INVALID_ARGUMENT:Bee,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},Ote=24;function Zs(e){return Rb(e,null,void 0)}function OI(e,t){return t.locale!=null?kM(t.locale):kM(e.locale)}let _x;function kM(e){if(tt(e))return e;if(Hn(e)){if(e.resolvedOnce&&_x!=null)return _x;if(e.constructor.name==="Function"){const t=e();if(Nee(t))throw Zs(Ks.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _x=t}else throw Zs(Ks.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Zs(Ks.NOT_SUPPORT_LOCALE_TYPE)}function Dte(e,t,n){return[...new Set([n,...ar(t)?t:pn(t)?Object.keys(t):tt(t)?[t]:[n]])]}function sB(e,t,n){const r=tt(n)?n:ag,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;ar(a);)a=FM(o,a,t);const s=ar(t)||!jt(t)?t:t.default?t.default:null;a=tt(s)?[s]:s,ar(a)&&FM(o,a,!1),i.__localeChainCache.set(r,o)}return o}function FM(e,t,n){let r=!0;for(let i=0;i{a===void 0?a=s:a+=s},d[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},d[2]=()=>{d[0](),i++},d[3]=()=>{if(i>0)i--,r=4,d[0]();else{if(i=0,a===void 0||(a=Bte(a),a===!1))return!1;d[1]()}};function h(){const v=e[n+1];if(r===5&&v==="'"||r===6&&v==='"')return n++,s="\\"+v,d[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&h())){if(l=$te(o),f=Bu[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return t}}const $M=new Map;function Ute(e,t){return pn(e)?e[t]:null}function Hte(e,t){if(!pn(e))return null;let n=$M.get(t);if(n||(n=Vte(t),n&&$M.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 zte(){return{upper:(e,t)=>t==="text"&&tt(e)?e.toUpperCase():t==="vnode"&&pn(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&tt(e)?e.toLowerCase():t==="vnode"&&pn(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&tt(e)?VM(e):t==="vnode"&&pn(e)&&"__v_isVNode"in e?VM(e.children):e}}let lB;function Wte(e){lB=e}let uB;function jte(e){uB=e}let cB;function Yte(e){cB=e}let fB=null;const Xte=e=>{fB=e},Kte=()=>fB;let dB=null;const UM=e=>{dB=e},Zte=()=>dB;let HM=0;function qte(e={}){const t=Hn(e.onWarn)?e.onWarn:Fee,n=tt(e.version)?e.version:Gte,r=tt(e.locale)||Hn(e.locale)?e.locale:ag,i=Hn(r)?ag:r,o=ar(e.fallbackLocale)||jt(e.fallbackLocale)||tt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=jt(e.messages)?e.messages:bx(i),s=jt(e.datetimeFormats)?e.datetimeFormats:bx(i),l=jt(e.numberFormats)?e.numberFormats:bx(i),u=Cr(Rn(),e.modifiers,zte()),c=e.pluralRules||Rn(),f=Hn(e.missing)?e.missing:null,d=fn(e.missingWarn)||eh(e.missingWarn)?e.missingWarn:!0,h=fn(e.fallbackWarn)||eh(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,m=!!e.unresolving,y=Hn(e.postTranslation)?e.postTranslation:null,_=jt(e.processor)?e.processor:null,b=fn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,S=Hn(e.messageCompiler)?e.messageCompiler:lB,E=Hn(e.messageResolver)?e.messageResolver:uB||Ute,T=Hn(e.localeFallbacker)?e.localeFallbacker:cB||Dte,A=pn(e.fallbackContext)?e.fallbackContext:void 0,P=e,I=pn(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,R=pn(P.__numberFormatters)?P.__numberFormatters:new Map,O=pn(P.__meta)?P.__meta:{};HM++;const M={version:n,cid:HM,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:h,fallbackFormat:v,unresolving:m,postTranslation:y,processor:_,warnHtmlMessage:b,escapeParameter:w,messageCompiler:S,messageResolver:E,localeFallbacker:T,fallbackContext:A,onWarn:t,__meta:O};return M.datetimeFormats=s,M.numberFormats=l,M.__datetimeFormatters=I,M.__numberFormatters=R,__INTLIFY_PROD_DEVTOOLS__&&Ite(M,n,O),M}const bx=e=>({[e]:Rn()});function DI(e,t,n,r,i){const{missing:o,onWarn:a}=e;if(o!==null){const s=o(e,n,t,i);return tt(s)?s:t}else return t}function rp(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Jte(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Qte(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{hB.includes(l)?a[l]=n[l]:o[l]=n[l]}),tt(r)?o.locale=r:jt(r)&&(a=r),jt(i)&&(a=i),[o.key||"",s,o,a]}function zM(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function WM(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,u,c,f]=rC(...t),d=fn(c.missingWarn)?c.missingWarn:e.missingWarn;fn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,v=OI(e,c),m=a(e,i,v);if(!tt(l)||l==="")return new Intl.NumberFormat(v,f).format(u);let y={},_,b=null;const w="number format";for(let T=0;T{pB.includes(l)?a[l]=n[l]:o[l]=n[l]}),tt(r)?o.locale=r:jt(r)&&(a=r),jt(i)&&(a=i),[o.key||"",s,o,a]}function jM(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const ene=e=>e,tne=e=>"",nne="text",rne=e=>e.length===0?"":II(e),ine=kee;function YM(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function one(e){const t=hr(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(hr(e.named.count)||hr(e.named.n))?hr(e.named.count)?e.named.count:hr(e.named.n)?e.named.n:t:t}function ane(e,t){t.count||(t.count=e),t.n||(t.n=e)}function sne(e={}){const t=e.locale,n=one(e),r=pn(e.pluralRules)&&tt(t)&&Hn(e.pluralRules[t])?e.pluralRules[t]:YM,i=pn(e.pluralRules)&&tt(t)&&Hn(e.pluralRules[t])?YM:void 0,o=_=>_[r(n,_.length,i)],a=e.list||[],s=_=>a[_],l=e.named||Rn();hr(e.pluralIndex)&&ane(n,l);const u=_=>l[_];function c(_,b){const w=Hn(e.messages)?e.messages(_,!!b):pn(e.messages)?e.messages[_]:!1;return w||(e.parent?e.parent.message(_):tne)}const f=_=>e.modifiers?e.modifiers[_]:ene,d=jt(e.processor)&&Hn(e.processor.normalize)?e.processor.normalize:rne,h=jt(e.processor)&&Hn(e.processor.interpolate)?e.processor.interpolate:ine,v=jt(e.processor)&&tt(e.processor.type)?e.processor.type:nne,y={list:s,named:u,plural:o,linked:(_,...b)=>{const[w,S]=b;let E="text",T="";b.length===1?pn(w)?(T=w.modifier||T,E=w.type||E):tt(w)&&(T=w||T):b.length===2&&(tt(w)&&(T=w||T),tt(S)&&(E=S||E));const A=c(_,!0)(y),P=E==="vnode"&&ar(A)&&T?A[0]:A;return T?f(T)(P,E):P},message:c,type:v,interpolate:h,normalize:d,values:Cr(Rn(),a,l)};return y}const XM=()=>"",Yo=e=>Hn(e);function KM(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,u]=iC(...t),c=fn(u.missingWarn)?u.missingWarn:e.missingWarn,f=fn(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=fn(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,v=tt(u.default)||fn(u.default)?fn(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:null,m=n||v!=null&&(tt(v)||Hn(v)),y=OI(e,u);d&&lne(u);let[_,b,w]=h?[l,y,s[y]||Rn()]:vB(e,l,y,a,f,c),S=_,E=l;if(!h&&!(tt(S)||nh(S)||Yo(S))&&m&&(S=v,E=S),!h&&(!(tt(S)||nh(S)||Yo(S))||!tt(b)))return i?Pb:l;let T=!1;const A=()=>{T=!0},P=Yo(S)?S:gB(e,l,b,S,E,A);if(T)return S;const I=fne(e,b,w,u),R=sne(I),O=une(e,P,R),M=r?r(O,l):O;if(__INTLIFY_PROD_DEVTOOLS__){const $={timestamp:Date.now(),key:tt(l)?l:Yo(S)?S.key:"",locale:b||(Yo(S)?S.locale:""),format:tt(S)?S:Yo(S)?S.source:"",message:M};$.meta=Cr({},e.__meta,Kte()||{}),Rte($)}return M}function lne(e){ar(e.list)?e.list=e.list.map(t=>tt(t)?OM(t):t):pn(e.named)&&Object.keys(e.named).forEach(t=>{tt(e.named[t])&&(e.named[t]=OM(e.named[t]))})}function vB(e,t,n,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=Rn(),d,h=null;const v="translate";for(let m=0;mr;return u.locale=n,u.key=t,u}const l=a(r,cne(e,n,i,r,s,o));return l.locale=n,l.key=t,l.source=r,l}function une(e,t,n){return t(n)}function iC(...e){const[t,n,r]=e,i=Rn();if(!tt(t)&&!hr(t)&&!Yo(t)&&!nh(t))throw Zs(Ks.INVALID_ARGUMENT);const o=hr(t)?String(t):(Yo(t),t);return hr(n)?i.plural=n:tt(n)?i.default=n:jt(n)&&!Ib(n)?i.named=n:ar(n)&&(i.list=n),hr(r)?i.plural=r:tt(r)?i.default=r:jt(r)&&Cr(i,r),[o,i]}function cne(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>Pee(t,n,a)}}function fne(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:i,pluralRules:o,messages:(h,v)=>{let m=a(n,h);if(m==null&&(c||v)){const[,,y]=vB(c||e,h,t,s,l,u);m=a(y,h)}if(tt(m)||nh(m)){let y=!1;const b=gB(e,h,t,m,h,()=>{y=!0});return y?XM:b}else return Yo(m)?m:XM}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),hr(r.plural)&&(d.pluralIndex=r.plural),d}lte();/*! + */function cte(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Dc().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Dc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function bx(e){return n=>fte(n,e)}function fte(e,t){const n=hte(t);if(n==null)throw og(0);if(DI(n)===1){const o=vte(n);return e.plural(o.reduce((a,s)=>[...a,FM(e,s)],[]))}else return FM(e,n)}const dte=["b","body"];function hte(e){return $u(e,dte)}const pte=["c","cases"];function vte(e){return $u(e,pte,[])}function FM(e,t){const n=mte(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=_te(t).reduce((i,o)=>[...i,rC(e,o)],[]);return e.normalize(r)}}const gte=["s","static"];function mte(e){return $u(e,gte)}const yte=["i","items"];function _te(e){return $u(e,yte,[])}function rC(e,t){const n=DI(t);switch(n){case 3:return Ty(t,n);case 9:return Ty(t,n);case 4:{const r=t;if(Ia(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Ia(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw og(n)}case 5:{const r=t;if(Ia(r,"i")&&hr(r.i))return e.interpolate(e.list(r.i));if(Ia(r,"index")&&hr(r.index))return e.interpolate(e.list(r.index));throw og(n)}case 6:{const r=t,i=xte(r),o=Ete(r);return e.linked(rC(e,o),i?rC(e,i):void 0,e.type)}case 7:return Ty(t,n);case 8:return Ty(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const bte=["t","type"];function DI(e){return $u(e,bte)}const Ste=["v","value"];function Ty(e,t){const n=$u(e,Ste);if(n)return n;throw og(t)}const wte=["m","modifier"];function xte(e){return $u(e,wte)}const Tte=["k","key"];function Ete(e){const t=$u(e,Tte);if(t)return t;throw og(6)}function $u(e,t,n){for(let r=0;re;let Ey=Rn();function nh(e){return pn(e)&&DI(e)===0&&(Ia(e,"b")||Ia(e,"body"))}function Ate(e,t={}){let n=!1;const r=t.onError||Hee;return t.onError=i=>{n=!0,r(i)},{...ute(e,t),detectError:n}}function Ite(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&tt(e)){fn(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Cte)(e),i=Ey[r];if(i)return i;const{ast:o,detectError:a}=Ate(e,{...t,location:!1,jit:!0}),s=bx(o);return a?s:Ey[r]=s}else{const n=e.cacheKey;if(n){const r=Ey[n];return r||(Ey[n]=bx(e))}else return bx(e)}}let ag=null;function Rte(e){ag=e}function Pte(e,t,n){ag&&ag.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Ote=Dte("function:translate");function Dte(e){return t=>ag&&ag.emit(e,t)}const Ks={INVALID_ARGUMENT:Uee,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Mte=24;function Zs(e){return Ob(e,null,void 0)}function MI(e,t){return t.locale!=null?$M(t.locale):$M(e.locale)}let Sx;function $M(e){if(tt(e))return e;if(Hn(e)){if(e.resolvedOnce&&Sx!=null)return Sx;if(e.constructor.name==="Function"){const t=e();if(Fee(t))throw Zs(Ks.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Sx=t}else throw Zs(Ks.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Zs(Ks.NOT_SUPPORT_LOCALE_TYPE)}function Lte(e,t,n){return[...new Set([n,...ar(t)?t:pn(t)?Object.keys(t):tt(t)?[t]:[n]])]}function cB(e,t,n){const r=tt(n)?n:sg,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;ar(a);)a=BM(o,a,t);const s=ar(t)||!jt(t)?t:t.default?t.default:null;a=tt(s)?[s]:s,ar(a)&&BM(o,a,!1),i.__localeChainCache.set(r,o)}return o}function BM(e,t,n){let r=!0;for(let i=0;i{a===void 0?a=s:a+=s},d[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},d[2]=()=>{d[0](),i++},d[3]=()=>{if(i>0)i--,r=4,d[0]();else{if(i=0,a===void 0||(a=Ute(a),a===!1))return!1;d[1]()}};function h(){const v=e[n+1];if(r===5&&v==="'"||r===6&&v==='"')return n++,s="\\"+v,d[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&h())){if(l=Vte(o),f=Bu[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return t}}const VM=new Map;function Gte(e,t){return pn(e)?e[t]:null}function zte(e,t){if(!pn(e))return null;let n=VM.get(t);if(n||(n=Hte(t),n&&VM.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 jte(){return{upper:(e,t)=>t==="text"&&tt(e)?e.toUpperCase():t==="vnode"&&pn(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&tt(e)?e.toLowerCase():t==="vnode"&&pn(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&tt(e)?HM(e):t==="vnode"&&pn(e)&&"__v_isVNode"in e?HM(e.children):e}}let fB;function Yte(e){fB=e}let dB;function Xte(e){dB=e}let hB;function Kte(e){hB=e}let pB=null;const Zte=e=>{pB=e},qte=()=>pB;let vB=null;const GM=e=>{vB=e},Jte=()=>vB;let zM=0;function Qte(e={}){const t=Hn(e.onWarn)?e.onWarn:Bee,n=tt(e.version)?e.version:Wte,r=tt(e.locale)||Hn(e.locale)?e.locale:sg,i=Hn(r)?sg:r,o=ar(e.fallbackLocale)||jt(e.fallbackLocale)||tt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=jt(e.messages)?e.messages:xx(i),s=jt(e.datetimeFormats)?e.datetimeFormats:xx(i),l=jt(e.numberFormats)?e.numberFormats:xx(i),u=Cr(Rn(),e.modifiers,jte()),c=e.pluralRules||Rn(),f=Hn(e.missing)?e.missing:null,d=fn(e.missingWarn)||eh(e.missingWarn)?e.missingWarn:!0,h=fn(e.fallbackWarn)||eh(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,m=!!e.unresolving,y=Hn(e.postTranslation)?e.postTranslation:null,_=jt(e.processor)?e.processor:null,b=fn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,S=Hn(e.messageCompiler)?e.messageCompiler:fB,T=Hn(e.messageResolver)?e.messageResolver:dB||Gte,E=Hn(e.localeFallbacker)?e.localeFallbacker:hB||Lte,A=pn(e.fallbackContext)?e.fallbackContext:void 0,P=e,I=pn(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,R=pn(P.__numberFormatters)?P.__numberFormatters:new Map,O=pn(P.__meta)?P.__meta:{};zM++;const M={version:n,cid:zM,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:h,fallbackFormat:v,unresolving:m,postTranslation:y,processor:_,warnHtmlMessage:b,escapeParameter:w,messageCompiler:S,messageResolver:T,localeFallbacker:E,fallbackContext:A,onWarn:t,__meta:O};return M.datetimeFormats=s,M.numberFormats=l,M.__datetimeFormatters=I,M.__numberFormatters=R,__INTLIFY_PROD_DEVTOOLS__&&Pte(M,n,O),M}const xx=e=>({[e]:Rn()});function LI(e,t,n,r,i){const{missing:o,onWarn:a}=e;if(o!==null){const s=o(e,n,t,i);return tt(s)?s:t}else return t}function rp(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ene(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function tne(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{gB.includes(l)?a[l]=n[l]:o[l]=n[l]}),tt(r)?o.locale=r:jt(r)&&(a=r),jt(i)&&(a=i),[o.key||"",s,o,a]}function jM(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function YM(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,u,c,f]=oC(...t),d=fn(c.missingWarn)?c.missingWarn:e.missingWarn;fn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,v=MI(e,c),m=a(e,i,v);if(!tt(l)||l==="")return new Intl.NumberFormat(v,f).format(u);let y={},_,b=null;const w="number format";for(let E=0;E{mB.includes(l)?a[l]=n[l]:o[l]=n[l]}),tt(r)?o.locale=r:jt(r)&&(a=r),jt(i)&&(a=i),[o.key||"",s,o,a]}function XM(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const nne=e=>e,rne=e=>"",ine="text",one=e=>e.length===0?"":PI(e),ane=$ee;function KM(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function sne(e){const t=hr(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(hr(e.named.count)||hr(e.named.n))?hr(e.named.count)?e.named.count:hr(e.named.n)?e.named.n:t:t}function lne(e,t){t.count||(t.count=e),t.n||(t.n=e)}function une(e={}){const t=e.locale,n=sne(e),r=pn(e.pluralRules)&&tt(t)&&Hn(e.pluralRules[t])?e.pluralRules[t]:KM,i=pn(e.pluralRules)&&tt(t)&&Hn(e.pluralRules[t])?KM:void 0,o=_=>_[r(n,_.length,i)],a=e.list||[],s=_=>a[_],l=e.named||Rn();hr(e.pluralIndex)&&lne(n,l);const u=_=>l[_];function c(_,b){const w=Hn(e.messages)?e.messages(_,!!b):pn(e.messages)?e.messages[_]:!1;return w||(e.parent?e.parent.message(_):rne)}const f=_=>e.modifiers?e.modifiers[_]:nne,d=jt(e.processor)&&Hn(e.processor.normalize)?e.processor.normalize:one,h=jt(e.processor)&&Hn(e.processor.interpolate)?e.processor.interpolate:ane,v=jt(e.processor)&&tt(e.processor.type)?e.processor.type:ine,y={list:s,named:u,plural:o,linked:(_,...b)=>{const[w,S]=b;let T="text",E="";b.length===1?pn(w)?(E=w.modifier||E,T=w.type||T):tt(w)&&(E=w||E):b.length===2&&(tt(w)&&(E=w||E),tt(S)&&(T=S||T));const A=c(_,!0)(y),P=T==="vnode"&&ar(A)&&E?A[0]:A;return E?f(E)(P,T):P},message:c,type:v,interpolate:h,normalize:d,values:Cr(Rn(),a,l)};return y}const ZM=()=>"",Yo=e=>Hn(e);function qM(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,u]=aC(...t),c=fn(u.missingWarn)?u.missingWarn:e.missingWarn,f=fn(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=fn(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,v=tt(u.default)||fn(u.default)?fn(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:null,m=n||v!=null&&(tt(v)||Hn(v)),y=MI(e,u);d&&cne(u);let[_,b,w]=h?[l,y,s[y]||Rn()]:yB(e,l,y,a,f,c),S=_,T=l;if(!h&&!(tt(S)||nh(S)||Yo(S))&&m&&(S=v,T=S),!h&&(!(tt(S)||nh(S)||Yo(S))||!tt(b)))return i?Db:l;let E=!1;const A=()=>{E=!0},P=Yo(S)?S:_B(e,l,b,S,T,A);if(E)return S;const I=hne(e,b,w,u),R=une(I),O=fne(e,P,R),M=r?r(O,l):O;if(__INTLIFY_PROD_DEVTOOLS__){const $={timestamp:Date.now(),key:tt(l)?l:Yo(S)?S.key:"",locale:b||(Yo(S)?S.locale:""),format:tt(S)?S:Yo(S)?S.source:"",message:M};$.meta=Cr({},e.__meta,qte()||{}),Ote($)}return M}function cne(e){ar(e.list)?e.list=e.list.map(t=>tt(t)?MM(t):t):pn(e.named)&&Object.keys(e.named).forEach(t=>{tt(e.named[t])&&(e.named[t]=MM(e.named[t]))})}function yB(e,t,n,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=Rn(),d,h=null;const v="translate";for(let m=0;mr;return u.locale=n,u.key=t,u}const l=a(r,dne(e,n,i,r,s,o));return l.locale=n,l.key=t,l.source=r,l}function fne(e,t,n){return t(n)}function aC(...e){const[t,n,r]=e,i=Rn();if(!tt(t)&&!hr(t)&&!Yo(t)&&!nh(t))throw Zs(Ks.INVALID_ARGUMENT);const o=hr(t)?String(t):(Yo(t),t);return hr(n)?i.plural=n:tt(n)?i.default=n:jt(n)&&!Pb(n)?i.named=n:ar(n)&&(i.list=n),hr(r)?i.plural=r:tt(r)?i.default=r:jt(r)&&Cr(i,r),[o,i]}function dne(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>Dee(t,n,a)}}function hne(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:i,pluralRules:o,messages:(h,v)=>{let m=a(n,h);if(m==null&&(c||v)){const[,,y]=yB(c||e,h,t,s,l,u);m=a(y,h)}if(tt(m)||nh(m)){let y=!1;const b=_B(e,h,t,m,h,()=>{y=!0});return y?ZM:b}else return Yo(m)?m:ZM}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),hr(r.plural)&&(d.pluralIndex=r.plural),d}cte();/*! * vue-i18n v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */const dne="10.0.5";function hne(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Dc().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Dc().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Dc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Dc().__INTLIFY_PROD_DEVTOOLS__=!1)}const Pi={UNEXPECTED_RETURN_TYPE:Ote,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 no(e,...t){return Rb(e,null,void 0)}const oC=Fu("__translateVNode"),aC=Fu("__datetimeParts"),sC=Fu("__numberParts"),mB=Fu("__setPluralRules"),yB=Fu("__injectWithOption"),lC=Fu("__dispose");function sg(e){if(!pn(e))return e;for(const t in e)if(Ia(e,t))if(!t.includes("."))pn(e[t])&&sg(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]||Rn(),G0(u,a[l])):G0(u,a)}else tt(s)&&G0(JSON.parse(s),a)}),i==null&&o)for(const s in a)Ia(a,s)&&sg(a[s]);return a}function _B(e){return e.type}function bB(e,t,n){let r=pn(t.messages)?t.messages:Rn();"__i18nGlobal"in n&&(r=MI(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(pn(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(pn(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function ZM(e){return ye(el,null,e,0)}const qM="__INTLIFY_META__",JM=()=>[],pne=()=>!1;let QM=0;function eL(e){return(t,n,r,i)=>e(n,r,br()||void 0,i)}const vne=()=>{const e=br();let t=null;return e&&(t=_B(e)[qM])?{[qM]:t}:null};function LI(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,o=r1?Fe:Cf;let a=fn(e.inheritLocale)?e.inheritLocale:!0;const s=o(t&&a?t.locale.value:tt(e.locale)?e.locale:ag),l=o(t&&a?t.fallbackLocale.value:tt(e.fallbackLocale)||ar(e.fallbackLocale)||jt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=o(MI(s.value,e)),c=o(jt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=o(jt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let d=t?t.missingWarn:fn(e.missingWarn)||eh(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:fn(e.fallbackWarn)||eh(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:fn(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,y=Hn(e.missing)?e.missing:null,_=Hn(e.missing)?eL(e.missing):null,b=Hn(e.postTranslation)?e.postTranslation:null,w=t?t.warnHtmlMessage:fn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const E=t?t.modifiers:jt(e.modifiers)?e.modifiers:{};let T=e.pluralRules||t&&t.pluralRules,A;A=(()=>{r&&UM(null);const Z={version:dne,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:E,pluralRules:T,missing:_===null?void 0:_,missingWarn:d,fallbackWarn:h,fallbackFormat:m,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:w,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Z.datetimeFormats=c.value,Z.numberFormats=f.value,Z.__datetimeFormatters=jt(A)?A.__datetimeFormatters:void 0,Z.__numberFormatters=jt(A)?A.__numberFormatters:void 0;const de=qte(Z);return r&&UM(de),de})(),rp(A,s.value,l.value);function I(){return[s.value,l.value,u.value,c.value,f.value]}const R=Ve({get:()=>s.value,set:Z=>{s.value=Z,A.locale=s.value}}),O=Ve({get:()=>l.value,set:Z=>{l.value=Z,A.fallbackLocale=l.value,rp(A,s.value,Z)}}),M=Ve(()=>u.value),$=Ve(()=>c.value),F=Ve(()=>f.value);function z(){return Hn(b)?b:null}function B(Z){b=Z,A.postTranslation=Z}function Y(){return y}function j(Z){Z!==null&&(_=eL(Z)),y=Z,A.missing=_}const ae=(Z,de,Be,Xe,ht,ee)=>{I();let re;try{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=t?Zte():void 0),re=Z(A)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(Be!=="translate exists"&&hr(re)&&re===Pb||Be==="translate exists"&&!re){const[he,Ee]=de();return t&&v?Xe(t):ht(he)}else{if(ee(re))return re;throw no(Pi.UNEXPECTED_RETURN_TYPE)}};function ge(...Z){return ae(de=>Reflect.apply(KM,null,[de,...Z]),()=>iC(...Z),"translate",de=>Reflect.apply(de.t,de,[...Z]),de=>de,de=>tt(de))}function ve(...Z){const[de,Be,Xe]=Z;if(Xe&&!pn(Xe))throw no(Pi.INVALID_ARGUMENT);return ge(de,Be,Cr({resolvedMessage:!0},Xe||{}))}function De(...Z){return ae(de=>Reflect.apply(GM,null,[de,...Z]),()=>nC(...Z),"datetime format",de=>Reflect.apply(de.d,de,[...Z]),()=>BM,de=>tt(de))}function Ne(...Z){return ae(de=>Reflect.apply(WM,null,[de,...Z]),()=>rC(...Z),"number format",de=>Reflect.apply(de.n,de,[...Z]),()=>BM,de=>tt(de))}function ze(Z){return Z.map(de=>tt(de)||hr(de)||fn(de)?ZM(String(de)):de)}const je={normalize:ze,interpolate:Z=>Z,type:"vnode"};function ce(...Z){return ae(de=>{let Be;const Xe=de;try{Xe.processor=je,Be=Reflect.apply(KM,null,[Xe,...Z])}finally{Xe.processor=null}return Be},()=>iC(...Z),"translate",de=>de[oC](...Z),de=>[ZM(de)],de=>ar(de))}function Ce(...Z){return ae(de=>Reflect.apply(WM,null,[de,...Z]),()=>rC(...Z),"number format",de=>de[sC](...Z),JM,de=>tt(de)||ar(de))}function Se(...Z){return ae(de=>Reflect.apply(GM,null,[de,...Z]),()=>nC(...Z),"datetime format",de=>de[aC](...Z),JM,de=>tt(de)||ar(de))}function Te(Z){T=Z,A.pluralRules=T}function Oe(Z,de){return ae(()=>{if(!Z)return!1;const Be=tt(de)?de:s.value,Xe=G(Be),ht=A.messageResolver(Xe,Z);return nh(ht)||Yo(ht)||tt(ht)},()=>[Z],"translate exists",Be=>Reflect.apply(Be.te,Be,[Z,de]),pne,Be=>fn(Be))}function $e(Z){let de=null;const Be=sB(A,l.value,s.value);for(let Xe=0;Xe{a&&(s.value=Z,A.locale=Z,rp(A,s.value,l.value))}),Yt(t.fallbackLocale,Z=>{a&&(l.value=Z,A.fallbackLocale=Z,rp(A,s.value,l.value))}));const Pe={id:QM,locale:R,fallbackLocale:O,get inheritLocale(){return a},set inheritLocale(Z){a=Z,Z&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,rp(A,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:M,get modifiers(){return E},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(Z){d=Z,A.missingWarn=d},get fallbackWarn(){return h},set fallbackWarn(Z){h=Z,A.fallbackWarn=h},get fallbackRoot(){return v},set fallbackRoot(Z){v=Z},get fallbackFormat(){return m},set fallbackFormat(Z){m=Z,A.fallbackFormat=m},get warnHtmlMessage(){return w},set warnHtmlMessage(Z){w=Z,A.warnHtmlMessage=Z},get escapeParameter(){return S},set escapeParameter(Z){S=Z,A.escapeParameter=Z},t:ge,getLocaleMessage:G,setLocaleMessage:le,mergeLocaleMessage:we,getPostTranslationHandler:z,setPostTranslationHandler:B,getMissingHandler:Y,setMissingHandler:j,[mB]:Te};return Pe.datetimeFormats=$,Pe.numberFormats=F,Pe.rt=ve,Pe.te=Oe,Pe.tm=H,Pe.d=De,Pe.n=Ne,Pe.getDateTimeFormat=pe,Pe.setDateTimeFormat=U,Pe.mergeDateTimeFormat=W,Pe.getNumberFormat=q,Pe.setNumberFormat=fe,Pe.mergeNumberFormat=_e,Pe[yB]=n,Pe[oC]=ce,Pe[aC]=Se,Pe[sC]=Ce,Pe}function gne(e){const t=tt(e.locale)?e.locale:ag,n=tt(e.fallbackLocale)||ar(e.fallbackLocale)||jt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Hn(e.missing)?e.missing:void 0,i=fn(e.silentTranslationWarn)||eh(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=fn(e.silentFallbackWarn)||eh(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=fn(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=jt(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Hn(e.postTranslation)?e.postTranslation:void 0,f=tt(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,h=fn(e.sync)?e.sync:!0;let v=e.messages;if(jt(e.sharedMessages)){const E=e.sharedMessages;v=Object.keys(E).reduce((A,P)=>{const I=A[P]||(A[P]={});return Cr(I,E[P]),A},v||{})}const{__i18n:m,__root:y,__injectWithOption:_}=e,b=e.datetimeFormats,w=e.numberFormats,S=e.flatJson;return{locale:t,fallbackLocale:n,messages:v,flatJson:S,datetimeFormats:b,numberFormats:w,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:h,__i18n:m,__root:y,__injectWithOption:_}}function uC(e={}){const t=LI(gne(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 fn(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=fn(i)?!i:i},get silentFallbackWarn(){return fn(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=fn(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(!tt(o))throw no(Pi.INVALID_ARGUMENT);const f=o;return tt(a)?l.locale=a:hr(a)?l.plural=a:ar(a)?u=a:jt(a)&&(c=a),tt(s)?l.locale=s:ar(s)?u=s:jt(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 mne(e,t,n){return{beforeCreate(){const r=br();if(!r)throw no(Pi.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=tL(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=uC(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=tL(e,i);else{this.$i18n=uC({__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&&bB(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=br();if(!r)throw no(Pi.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 tL(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[mB](t.pluralizationRules||e.pluralizationRules);const n=MI(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 NI={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function yne({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===qe?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},Rn())}function SB(){return qe}const _ne=it({name:"i18n-t",props:Cr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>hr(e)||!isNaN(e)}},NI),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||us({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),a=Rn();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=tt(e.plural)?+e.plural:e.plural);const s=yne(t,o),l=i[oC](e.keypath,s,a),u=Cr(Rn(),r),c=tt(e.tag)||pn(e.tag)?e.tag:SB();return zi(c,u,l)}}}),nL=_ne;function bne(e){return ar(e)&&!tt(e[0])}function wB(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const a={part:!0};let s=Rn();e.locale&&(a.locale=e.locale),tt(e.format)?a.key=e.format:pn(e.format)&&(tt(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((d,h)=>n.includes(h)?Cr(Rn(),d,{[h]:e.format[h]}):d,Rn()));const l=r(e.value,a,s);let u=[a.key];ar(l)?u=l.map((d,h)=>{const v=i[d.type],m=v?v({[d.type]:d.value,index:h,parts:l}):[d.value];return bne(m)&&(m[0].key=`${d.type}-${h}`),m}):tt(l)&&(u=[l]);const c=Cr(Rn(),o),f=tt(e.tag)||pn(e.tag)?e.tag:SB();return zi(f,c,u)}}const Sne=it({name:"i18n-n",props:Cr({value:{type:Number,required:!0},format:{type:[String,Object]}},NI),setup(e,t){const n=e.i18n||us({useScope:e.scope,__useComponent:!0});return wB(e,t,pB,(...r)=>n[sC](...r))}}),rL=Sne,wne=it({name:"i18n-d",props:Cr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},NI),setup(e,t){const n=e.i18n||us({useScope:e.scope,__useComponent:!0});return wB(e,t,hB,(...r)=>n[aC](...r))}}),iL=wne;function xne(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 Tne(e){const t=a=>{const{instance:s,value:l}=a;if(!s||!s.$)throw no(Pi.UNEXPECTED_ERROR);const u=xne(e,s.$),c=oL(l);return[Reflect.apply(u.t,u,[...aL(c)]),u]};return{created:(a,s)=>{const[l,u]=t(s);r1&&e.global===u&&(a.__i18nWatcher=Yt(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{r1&&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=oL(s);a.textContent=Reflect.apply(l.t,l,[...aL(u)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function oL(e){if(tt(e))return{path:e};if(jt(e)){if(!("path"in e))throw no(Pi.REQUIRED_VALUE,"path");return e}else throw no(Pi.INVALID_VALUE)}function aL(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,a={},s=r||{};return tt(n)&&(a.locale=n),hr(i)&&(a.plural=i),hr(o)&&(a.plural=o),[t,s,a]}function Ene(e,t,...n){const r=jt(n[0])?n[0]:{};(fn(r.globalInstall)?r.globalInstall:!0)&&([nL.name,"I18nT"].forEach(o=>e.component(o,nL)),[rL.name,"I18nN"].forEach(o=>e.component(o,rL)),[iL.name,"I18nD"].forEach(o=>e.component(o,iL))),e.directive("t",Tne(t))}const Cne=Fu("global-vue-i18n");function Ane(e={},t){const n=__VUE_I18N_LEGACY_API__&&fn(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=fn(e.globalInjection)?e.globalInjection:!0,i=new Map,[o,a]=Ine(e,n),s=Fu("");function l(d){return i.get(d)||null}function u(d,h){i.set(d,h)}function c(d){i.delete(d)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(d,...h){if(d.__VUE_I18N_SYMBOL__=s,d.provide(d.__VUE_I18N_SYMBOL__,f),jt(h[0])){const y=h[0];f.__composerExtend=y.__composerExtend,f.__vueI18nExtend=y.__vueI18nExtend}let v=null;!n&&r&&(v=kne(d,f.global)),__VUE_I18N_FULL_INSTALL__&&Ene(d,f,...h),__VUE_I18N_LEGACY_API__&&n&&d.mixin(mne(a,a.__composer,f));const m=d.unmount;d.unmount=()=>{v&&v(),f.dispose(),m()}},get global(){return a},dispose(){o.stop()},__instances:i,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function us(e={}){const t=br();if(t==null)throw no(Pi.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw no(Pi.NOT_INSTALLED);const n=Rne(t),r=One(n),i=_B(t),o=Pne(e,i);if(o==="global")return bB(r,e,i),r;if(o==="parent"){let l=Dne(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Cr({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=LI(l),a.__composerExtend&&(s[lC]=a.__composerExtend(s)),Lne(a,t,s),a.__setInstance(t,s)}return s}function Ine(e,t,n){const r=j5(),i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>uC(e)):r.run(()=>LI(e));if(i==null)throw no(Pi.UNEXPECTED_ERROR);return[r,i]}function Rne(e){const t=qi(e.isCE?Cne:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw no(e.isCE?Pi.NOT_INSTALLED_WITH_PROVIDE:Pi.UNEXPECTED_ERROR);return t}function Pne(e,t){return Ib(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function One(e){return e.mode==="composition"?e.global:e.global.__composer}function Dne(e,t,n=!1){let r=null;const i=t.root;let o=Mne(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[yB]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function Mne(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Lne(e,t,n){Ro(()=>{},t),Sh(()=>{const r=n;e.__deleteInstance(t);const i=r[lC];i&&(i(),delete r[lC])},t)}const Nne=["locale","fallbackLocale","availableLocales"],sL=["t","rt","d","n","tm","te"];function kne(e,t){const n=Object.create(null);return Nne.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw no(Pi.UNEXPECTED_ERROR);const a=ut(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,sL.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o||!o.value)throw no(Pi.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,o)}),()=>{delete e.config.globalProperties.$i18n,sL.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}hne();Wte(Cte);jte(Hte);Yte(sB);if(__INTLIFY_PROD_DEVTOOLS__){const e=Dc();e.__INTLIFY__=!0,Ate(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Sx=Fe(!1),lL=Fe(),Ob=()=>{const{t:e}=us();return{showTip:(n,r={})=>{Sx.value=!0,lL.value=e(n,r),setTimeout(()=>{Sx.value=!1},1e4)},tipShowModel:Sx,tipContent:lL}},kI="https://ipv6.google.com/generate_204",qo=0;var es=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e.RU_RU="ru-RU",e))(es||{}),tu=(e=>(e.MI_SANS="MiSans",e.SARASA_UI="SarasaUi",e.PING_FANG="PingFang",e.FIRA_SANS="FiraSans",e.SYSTEM_UI="SystemUI",e))(tu||{}),vt=(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))(vt||{}),nu=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(nu||{}),lg=(e=>(e.AUTO="auto",e.DOTS="dots",e.BAR="bar",e))(lg||{}),rh=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(rh||{}),df=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(df||{}),Gi=(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))(Gi||{}),Mc=(e=>(e.ASC="asc",e.DESC="desc",e))(Mc||{}),Gs=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(Gs||{}),Lc=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(Lc||{}),un=(e=>(e.overview="overview",e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e.setup="setup",e))(un||{});const xB={overview:cM,proxies:bQ,connections:U4,rules:TQ,logs:_Q,settings:mQ,setup:cM};var ug=(e=>(e.SMALL="small",e.LARGE="large",e))(ug||{}),Kg=(e=>(e.SMALL="small",e.LARGE="large",e))(Kg||{});function Db(e){return eI()?(tI(e),!0):!1}const xx=new WeakMap,Fne=(...e)=>{var t;const n=e[0],r=(t=br())==null?void 0:t.proxy;if(r==null&&!mI())throw new Error("injectLocal must be called in setup");return r&&xx.has(r)&&n in xx.get(r)?xx.get(r)[n]:qi(...e)};function Tu(e){return typeof e=="function"?e():N(e)}const TB=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $ne=e=>e!=null,Bne=Object.prototype.toString,Vne=e=>Bne.call(e)==="[object Object]",i1=()=>{};function Une(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 EB=e=>e();function Hne(e=EB){const t=Fe(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:Gg(t),pause:n,resume:r,eventFilter:i}}function uL(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function CB(e){return br()}function Gne(...e){if(e.length!==1)return c$(...e);const t=e[0];return typeof t=="function"?Gg(sI(()=>({get:t,set:i1}))):Fe(t)}function zne(e,t,n={}){const{eventFilter:r=EB,...i}=n;return Yt(e,Une(r,t),i)}function Wne(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:a,resume:s,isActive:l}=Hne(r);return{stop:zne(e,t,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function jne(e,t){CB()&&Wg(e,t)}function FI(e,t=!0,n){CB()?Ro(e,n):t?e():vs(e)}const ul=TB?window:void 0,AB=TB?window.document:void 0;function ou(e){var t;const n=Tu(e);return(t=n==null?void 0:n.$el)!=null?t:n}function vu(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=ul):[t,n,r,i]=e,!t)return i1;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,f,d,h)=>(c.addEventListener(f,d,h),()=>c.removeEventListener(f,d,h)),l=Yt(()=>[ou(t),Tu(i)],([c,f])=>{if(a(),!c)return;const d=Vne(f)?{...f}:f;o.push(...n.flatMap(h=>r.map(v=>s(c,h,v,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return Db(u),u}function Yne(){const e=Fe(!1),t=br();return t&&Ro(()=>{e.value=!0},t),e}function $I(e){const t=Yne();return Ve(()=>(t.value,!!e()))}function Xne(e,t,n={}){const{window:r=ul,...i}=n;let o;const a=$I(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Ve(()=>{const d=Tu(e),h=(Array.isArray(d)?d:[d]).map(ou).filter($ne);return new Set(h)}),u=Yt(()=>l.value,d=>{s(),a.value&&d.size&&(o=new MutationObserver(t),d.forEach(h=>o.observe(h,i)))},{immediate:!0,flush:"post"}),c=()=>o==null?void 0:o.takeRecords(),f=()=>{u(),s()};return Db(f),{isSupported:a,stop:f,takeRecords:c}}const Kne=Symbol("vueuse-ssr-width");function Zne(){const e=mI()?Fne(Kne,null):null;return typeof e=="number"?e:void 0}function qne(e,t={}){const{window:n=ul,ssrWidth:r=Zne()}=t,i=$I(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=Fe(typeof r=="number");let a;const s=Fe(!1),l=f=>{s.value=f.matches},u=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",l):a.removeListener(l))},c=_b(()=>{if(o.value){o.value=!i.value;const f=Tu(e).split(",");s.value=f.some(d=>{const h=d.includes("not all"),v=d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),m=d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let y=!!(v||m);return v&&y&&(y=r>=uL(v[1])),m&&y&&(y=r<=uL(m[1])),h?!y:y});return}i.value&&(u(),a=n.matchMedia(Tu(e)),"addEventListener"in a?a.addEventListener("change",l):a.addListener(l),s.value=a.matches)});return Db(()=>{c(),u(),a=void 0}),Ve(()=>s.value)}const Ty=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ey="__vueuse_ssr_handlers__",Jne=Qne();function Qne(){return Ey in Ty||(Ty[Ey]=Ty[Ey]||{}),Ty[Ey]}function ere(e,t){return Jne[e]||t}function tre(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 nre={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()}},cL="vueuse-storage";function kt(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=ul,eventFilter:d,onError:h=R=>{console.error(R)},initOnMounted:v}=r,m=(c?Cf:Fe)(typeof t=="function"?t():t);if(!n)try{n=ere("getDefaultStorage",()=>{var R;return(R=ul)==null?void 0:R.localStorage})()}catch(R){h(R)}if(!n)return m;const y=Tu(t),_=tre(y),b=(i=r.serializer)!=null?i:nre[_],{pause:w,resume:S}=Wne(m,()=>T(m.value),{flush:o,deep:a,eventFilter:d});f&&s&&FI(()=>{n instanceof Storage?vu(f,"storage",P):vu(f,cL,I),v&&P()}),v||P();function E(R,O){if(f){const M={key:e,oldValue:R,newValue:O,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",M):new CustomEvent(cL,{detail:M}))}}function T(R){try{const O=n.getItem(e);if(R==null)E(O,null),n.removeItem(e);else{const M=b.write(R);O!==M&&(n.setItem(e,M),E(O,M))}}catch(O){h(O)}}function A(R){const O=R?R.newValue:n.getItem(e);if(O==null)return l&&y!=null&&n.setItem(e,b.write(y)),y;if(!R&&u){const M=b.read(O);return typeof u=="function"?u(M,y):_==="object"&&!Array.isArray(M)?{...y,...M}:M}else return typeof O!="string"?O:b.read(O)}function P(R){if(!(R&&R.storageArea!==n)){if(R&&R.key==null){m.value=y;return}if(!(R&&R.key!==e)){w();try{(R==null?void 0:R.newValue)!==b.write(m.value)&&(m.value=A(R))}catch(O){h(O)}finally{R?vs(S):S()}}}}function I(R){P(R.detail)}return m}function rre(e={}){const{document:t=AB}=e;if(!t)return Fe("visible");const n=Fe(t.visibilityState);return vu(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function ire(e,t,n={}){const{window:r=ul,...i}=n;let o;const a=$I(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Ve(()=>{const f=Tu(e);return Array.isArray(f)?f.map(d=>ou(d)):[ou(f)]}),u=Yt(l,f=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const d of f)d&&o.observe(d,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return Db(c),{isSupported:a,stop:c}}function ore(e,t={width:0,height:0},n={}){const{window:r=ul,box:i="content-box"}=n,o=Ve(()=>{var f,d;return(d=(f=ou(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),a=Fe(t.width),s=Fe(t.height),{stop:l}=ire(e,([f])=>{const d=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&o.value){const h=ou(e);if(h){const v=h.getBoundingClientRect();a.value=v.width,s.value=v.height}}else if(d){const h=Array.isArray(d)?d:[d];a.value=h.reduce((v,{inlineSize:m})=>v+m,0),s.value=h.reduce((v,{blockSize:m})=>v+m,0)}else a.value=f.contentRect.width,s.value=f.contentRect.height},n);FI(()=>{const f=ou(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=Yt(()=>ou(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 are(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:a=!0,window:s=ul}=t,l=La({x:0,y:0}),u=La({x:0,y:0}),c=Ve(()=>l.x-u.x),f=Ve(()=>l.y-u.y),{max:d,abs:h}=Math,v=Ve(()=>d(h(c.value),h(f.value))>=n),m=Fe(!1),y=Ve(()=>v.value?h(c.value)>h(f.value)?c.value>0?"left":"right":f.value>0?"up":"down":"none"),_=I=>[I.touches[0].clientX,I.touches[0].clientY],b=(I,R)=>{l.x=I,l.y=R},w=(I,R)=>{u.x=I,u.y=R};let S;const E=sre(s==null?void 0:s.document);a?S=E?{passive:!0}:{capture:!1}:S=E?{passive:!1,capture:!0}:{capture:!0};const T=I=>{m.value&&(i==null||i(I,y.value)),m.value=!1},A=[vu(e,"touchstart",I=>{if(I.touches.length!==1)return;const[R,O]=_(I);b(R,O),w(R,O),o==null||o(I)},S),vu(e,"touchmove",I=>{if(I.touches.length!==1)return;const[R,O]=_(I);w(R,O),S.capture&&!S.passive&&Math.abs(c.value)>Math.abs(f.value)&&I.preventDefault(),!m.value&&v.value&&(m.value=!0),m.value&&(r==null||r(I))},S),vu(e,["touchend","touchcancel"],T,S)];return{isPassiveEventSupported:E,isSwiping:m,direction:y,coordsStart:l,coordsEnd:u,lengthX:c,lengthY:f,stop:()=>A.forEach(I=>I())}}function sre(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",i1,n),e.removeEventListener("x",i1),t}function lre(e=null,t={}){var n,r,i;const{document:o=AB,restoreOnUnmount:a=f=>f}=t,s=(n=o==null?void 0:o.title)!=null?n:"",l=Gne((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 d=t.titleTemplate||"%s";return typeof d=="function"?d(f):Tu(d).replace(/%s/g,f)}return Yt(l,(f,d)=>{f!==d&&o&&(o.title=c(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!u&&Xne((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=c(o.title))},{childList:!0}),jne(()=>{if(a){const f=a(s,l.value||"");f!=null&&o&&(o.title=f)}}),l}function ure(e={}){const{window:t=ul,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=e,s=Fe(n),l=Fe(r),u=()=>{if(t)if(a==="outer")s.value=t.outerWidth,l.value=t.outerHeight;else if(a==="visual"&&t.visualViewport){const{width:c,height:f,scale:d}=t.visualViewport;s.value=Math.round(c*d),l.value=Math.round(f*d)}else o?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};if(u(),FI(u),vu("resize",u,{passive:!0}),t&&a==="visual"&&t.visualViewport&&vu(t.visualViewport,"resize",u,{passive:!0}),i){const c=qne("(orientation: portrait)");Yt(c,()=>u())}return{width:s,height:l}}const IB=ure(),cre=Ve(()=>IB.width.value>1280),fre=Ve(()=>IB.width.value<768),BI="background-image",o1="local-image",dre=e=>{const t=window.indexedDB.open("base64",1);t.onupgradeneeded=()=>{t.result.createObjectStore("base64",{keyPath:"key"})},t.onsuccess=()=>{const n=t.result,r=n.transaction("base64","readwrite");r.objectStore("base64").put({key:BI,value:e}),r.oncomplete=()=>{n.close()}}},hre=()=>new Promise(e=>{const t=window.indexedDB.open("base64",1);t.onsuccess=()=>{const n=t.result,o=n.transaction("base64","readonly").objectStore("base64").get(BI);o.onsuccess=()=>{var a;n.close(),e(((a=o.result)==null?void 0:a.value)||"")}}}),pre=()=>{const e=window.indexedDB.open("base64",1);e.onsuccess=()=>{const t=e.result,n=t.transaction("base64","readwrite");n.objectStore("base64").delete(BI),n.oncomplete=()=>{t.close()}}},Nd=kt("config/theme","default"),au=kt("config/language",Object.values(es).includes(navigator.language)?navigator.language:es.EN_US),fL=kt("config/is-sidebar-collapsed",!0),gu=Ve({get:()=>fre.value?!0:fL.value,set:e=>{fL.value=e}}),fv=kt("config/font",tu.MI_SANS),Ca=kt("config/custom-background-image",""),z0=kt("config/dashboard-transparent",90),W0=kt("config/auto-upgrade",!1),j0=kt("config/auto-upgrade-core",!1),yd=kt("config/split-overview-page",!1),ip=kt("config/show-ip-and-connection-info",!0),Y0=kt("config/auto-ip-check",!0),X0=kt("config/auto-connection-check",!0),K0=kt("config/show-global-proxy",!0),Tx=kt("config/collapse-group-map",{}),dv=kt("config/two-columns",!0),hv=kt("config/speedtest-url","http://www.gstatic.com/generate_204"),pv=kt("config/speedtest-timeout",5e3),Z0=kt("config/proxy-sort-type",nu.DEFAULT),q0=kt("config/automatic-disconnection",!0),vv=kt("config/truncate-proxy-name",!0),gv=kt("config/proxy-preview-type",lg.AUTO),J0=kt("config/hide-unavailable-proxies",!1),su=kt("config/low-latency",400),Ys=kt("config/medium-latency",800),Kc=kt("config/ipv6-test",!1),mv=kt("config/proxy-card-size",Kg.LARGE),Q0=kt("config/show-hidden-group",!1),yv=kt("config/icon-size",16),e_=kt("config/icon-margin-right",4),Nc=kt("config/use-connecticon-card",window.innerWidth<640),t_=kt("config/connecticon-table-size",ug.SMALL),Ed=kt("config/connection-table-columns",[vt.Close,vt.Host,vt.Type,vt.Rule,vt.Chains,vt.DlSpeed,vt.UlSpeed,vt.Download,vt.Upload,vt.ConnectTime]),ks=kt("config/connection-card-lines",[[vt.Host,vt.DlSpeed],[vt.Chains,vt.ConnectTime,vt.Details,vt.Close]]),_o=kt("config/source-ip-label-map",{}),n_=kt("config/log-retention-limit",1e3),vre={key:0,class:"toast-sm toast toast-start toast-top z-50 max-w-64 whitespace-normal text-sm"},gre={class:"breaks-all alert alert-warning flex w-72 whitespace-normal p-2"},mre={href:"https://github.com/Zephyruso/zashboard/blob/main/README.md",target:"_blank",class:"flex-1"},yre=it({__name:"App",setup(e){const t=Fe(),{tipContent:n,tipShowModel:r}=Ob(),i={[tu.MI_SANS]:"font-MiSans",[tu.SARASA_UI]:"font-SarasaUI",[tu.PING_FANG]:"font-PingFang",[tu.FIRA_SANS]:"font-FiraSans",[tu.SYSTEM_UI]:"font-SystemUI"},o=Ve(()=>i[fv.value]),a=Ma().format("YYYY-MM-DD"),s=Fe(""),l=async()=>{s.value=await hre()};Yt(()=>Ca.value,()=>{Ca.value.includes(o1)&&l()},{immediate:!0});const u=Ve(()=>Ca.value.includes(o1)?s.value:Ca.value+`?v=${a}`),c=()=>{const f=getComputedStyle(t.value).getPropertyValue("background-color").trim(),d=document.querySelector('meta[name="theme-color"]');d&&d.setAttribute("content",f)};return Ro(()=>{Yt(Nd,()=>{document.body.setAttribute("data-theme",Nd.value),c()},{immediate:!0})}),(f,d)=>(K(),se("div",{ref_key:"app",ref:t,class:rt(`flex h-dvh w-screen overflow-x-hidden bg-base-100 ${o.value} custom-background-${N(z0)} ${N(Ca)&&"custom-background bg-cover"}`),style:Gr(`background-image: url('${u.value}');`)},[ye(N(CI)),N(r)?(K(),se("div",vre,[L("div",gre,[L("a",mre,oe(f.$t(N(n))),1),L("button",{class:"btn btn-circle btn-ghost btn-sm",onClick:d[0]||(d[0]=h=>r.value=!1)},[ye(N(EQ),{class:"w-4 cursor-pointer"})])])])):mt("",!0)],6))}}),_re={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",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",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",customCardLines:"Custom Card Lines",close:"Close",details:"Details",showGlobalProxy:"Show Global Proxy Node",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",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",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",currentBackendUnavailable:"Current backend is unavailable. Try to switch to another backend?",confirm:"Confirm",backendSwitchTo:"Automatic Switch to {backend}",ipv6Test:"IPv6 Test",socksPort:"Socks Port",httpPort:"HTTP Port",mixedPort:"Mixed Port",redirPort:"Redir Port",tproxyPort:"TProxy Port",tableSize:"Table Size",proxyCardSize:"Proxy Card Size",small:"Small",normal:"Normal",large:"Large",autoIPCheckWhenStart:"Auto Check IP When Start",autoConnectionCheckWhenStart:"Auto Check Connection When Start",chinaIP:"China IP",globalIP:"Global IP",networkInfo:"Network Info",autoSwitch:"Auto Switch",customBackgroundURL:"Custom Background URL",splitOverviewPage:"Split Overview Page",showHiddenGroup:"Show Hidden Group",showIPAndConnectionInfo:"Show IP and Connection Info",transparent:"Transparent",iconSize:"Icon Size",iconMarginRight:"Icon Margin Right",allowLan:"Allow Lan"},bre={setup:"Настройка",overview:"Обзор",proxies:"Прокси",rules:"Правила",connections:"Подключения",logs:"Журнал",protocol:"Протокол",host:"Хост",port:"Порт",password:"Пароль",submit:"Отправить",cancel:"Отмена",download:"Загружено",upload:"Отправлено",downloadSpeed:"Скорость загрузки",uploadSpeed:"Скорость отдачи",memoryUsage:"Память",version:"Версия",quickFilter:"Быстрый фильтр",noContent:"Нет содержимого",flushFakeIP:"Очистить Fake IP",chains:"Цепочки",sortBy:"Сортировать по",rule:"Правило",sourceIP:"Исходный IP",activeConnections:"Активные",closedConnections:"Закрытые",logLevel:"Уровень журнала",twoColumnProxyGroup:"Группа прокси в два столбца",type:"Тип",process:"Процесс",connectTime:"Время",sourcePort:"Исходный порт",destination:"Назначение",inboundUser:"Входящий пользователь",dl:"Загр",ul:"Отдч",dlSpeed:"Загрузка",ulSpeed:"Отдача",settings:"Настройки",speedtestUrl:"URL теста скорости",speedtestTimeout:"Таймаут теста скорости",connectionStyle:"Стиль подключения",card:"Карточка",table:"Таблица",customTableColumns:"Пользовательские столбцы таблицы",customCardLines:"Пользовательские строчки карточки",close:"Закрыть",details:"Детали",showGlobalProxy:"Показать глобальный прокси-узел",theme:"Тема",proxyProvider:"Провайдер прокси",ruleProvider:"Провайдер правил",expire:"Истекает",noExpire:"Нет",updated:"Обновлено",upgradeUI:"Обновить панель",updateAllProviders:"Обновить все провайдеры",reloadConfigs:"Перезагрузить конфигурации",mode:"Режим",proxySortType:"Тип сортировки прокси",defaultsort:"По конфигурациям",nameasc:"Имя по возрастанию",namedesc:"Имя по убыванию",latencydesc:"Задержка по убыванию",latencyasc:"Задержка по возрастанию",language:"Язык",automaticDisconnection:"Автоматическое отключение",backend:"Бэкенд",tunMode:"Режим Tun",upgradeCore:"Обновить ядро",truncateProxyName:"Усечение имени прокси",sourceIPLabels:"Метки исходного IP",proxyPreviewType:"Тип предварительного просмотра прокси",auto:"Авто",dots:"Точки",bar:"Полоса",exportSettings:"Экспорт настроек",importSettings:"Импорт настроек",hideUnavailable:"Скрыть недоступные",protocolTips:"Вы пытаетесь подключиться к http-бэкенду, но панель управления обслуживается через https. Это может вызвать ошибку подключения. Пожалуйста, разрешите небезопасный контент в настройках браузера. Настройки находятся слева от адресной строки.",global:"Глобальный",direct:"Прямой",quickFilterTip:"Быстрая фильтрация позволяет одним щелчком исключать подключения, соответствующие цепочкам прокси, хосту или IP-адресам назначения с использованием регулярных выражений.",lowLatencyDesc:"Желтый порог",mediumLatencyDesc:"Красный порог",fonts:"Шрифты",unauthorizedTip:"Не авторизован, пожалуйста, войдите снова.",restartCore:"Перезапустить ядро",autoUpgrade:"Автоматическое обновление",secondaryPath:"Дополнительный путь",secondaryPathTip:'Если присутствует, начните с "/", в противном случае оставьте пустым.',logRetentionLimit:"Лимит хранения журнала",DNSQuery:"DNS-запрос",currentBackendUnavailable:"Текущий бэкенд недоступен. Попробуйте переключиться на другой бэкенд?",confirm:"Подтвердить",backendSwitchTo:"Автоматическое переключение на {backend}",ipv6Test:"IPv6-тест",socksPort:"Порт Socks",httpPort:"Порт HTTP",mixedPort:"Порт Mixed",redirPort:"Порт Redir",tproxyPort:"Порт TProxy",tableSize:"Размер таблицы",proxyCardSize:"Размер карточки прокси",small:"Маленький",normal:"Нормальный",large:"Большой",autoIPCheckWhenStart:"Автоматическая проверка IP при запуске",autoConnectionCheckWhenStart:"Автоматическая проверка соединений при запуске",chinaIP:"IP для Китая",globalIP:"Мировой IP",networkInfo:"Информация о сети",autoSwitch:"Автоматическое",customBackgroundURL:"Пользовательский URL фона",splitOverviewPage:"Разделить страницу с обзором",showHiddenGroup:"Показать скрытые группы",showIPAndConnectionInfo:"Показать IP и информацию о соединениях",transparent:"Прозрачность",iconSize:"Размер иконки",iconMarginRight:"Отступ правой иконки",allowLan:"Разрешить локальную сеть"},Sre={setup:"配置",overview:"概览",proxies:"代理",rules:"规则",connections:"连接",logs:"日志",protocol:"协议",host:"主机",port:"端口",password:"密码",submit:"提交",cancel:"取消",download:"下载",upload:"上传",downloadSpeed:"下载速度",uploadSpeed:"上传速度",memoryUsage:"内存使用",version:"版本",quickFilter:"快速过滤",noContent:"无内容",flushFakeIP:"清空Fake IP",chains:"代理链",sortBy:"排序方式",rule:"规则",sourceIP:"源IP",activeConnections:"活跃连接",closedConnections:"已关闭连接",logLevel:"日志等级",twoColumnProxyGroup:"双列显示代理组",type:"类型",process:"进程",connectTime:"连接时间",sourcePort:"源端口",destination:"目标",inboundUser:"入站用户",dl:"下载",ul:"上传",dlSpeed:"下载速度",ulSpeed:"上传速度",settings:"设置",speedtestUrl:"测速地址",speedtestTimeout:"测速超时",connectionStyle:"连接样式",card:"卡片",table:"表格",customTableColumns:"自定义表格列",customCardLines:"自定义卡片行",close:"关闭",details:"详情",showGlobalProxy:"显示全局代理节点",theme:"主题",proxyProvider:"代理提供商",ruleProvider:"规则提供商",expire:"到期时间",noExpire:"不限时",updated:"更新于",upgradeUI:"更新面板",updateAllProviders:"更新所有提供商",reloadConfigs:"重载配置",mode:"模式",proxySortType:"代理排序方式",defaultsort:"按配置排序",nameasc:"按名称升序",namedesc:"按名称降序",latencydesc:"按延迟降序",latencyasc:"按延迟升序",language:"语言",automaticDisconnection:"自动断开连接",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:"字体",unauthorizedTip:"未授权,请重新登录",restartCore:"重启核心",autoUpgrade:"自动更新",secondaryPath:"二级路径",secondaryPathTip:"如果有的话以/开头,没有则留空不填",logRetentionLimit:"日志保留条数",DNSQuery:"DNS 查询",currentBackendUnavailable:"当前后端不可用,尝试切换到其他后端?",confirm:"确定",backendSwitchTo:"自动切换到{backend}",ipv6Test:"IPv6 测试",socksPort:"Socks 端口",httpPort:"HTTP 端口",mixedPort:"Mixed 端口",redirPort:"Redir 端口",tproxyPort:"TProxy 端口",tableSize:"表格尺寸",proxyCardSize:"节点卡片尺寸",small:"小",normal:"正常",large:"大",autoIPCheckWhenStart:"自动检查 IP",autoConnectionCheckWhenStart:"自动检查连接",chinaIP:"中国大陆 IP",globalIP:"全球 IP",networkInfo:"网络信息",autoSwitch:"自动切换",customBackgroundURL:"自定义背景 URL",splitOverviewPage:"分离概览页",showHiddenGroup:"显示隐藏分组",showIPAndConnectionInfo:"显示 IP 和连接信息",transparent:"透明度",iconSize:"图标尺寸",iconMarginRight:"图标间距",allowLan:"允许局域网"},VI=Ane({locale:au.value,messages:{[es.EN_US]:_re,[es.ZH_CN]:Sre,[es.RU_RU]:bre}});var Vp={exports:{}};/** + */const pne="10.0.5";function vne(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Dc().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Dc().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Dc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Dc().__INTLIFY_PROD_DEVTOOLS__=!1)}const Pi={UNEXPECTED_RETURN_TYPE:Mte,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function no(e,...t){return Ob(e,null,void 0)}const sC=Fu("__translateVNode"),lC=Fu("__datetimeParts"),uC=Fu("__numberParts"),bB=Fu("__setPluralRules"),SB=Fu("__injectWithOption"),cC=Fu("__dispose");function lg(e){if(!pn(e))return e;for(const t in e)if(Ia(e,t))if(!t.includes("."))pn(e[t])&&lg(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]||Rn(),W0(u,a[l])):W0(u,a)}else tt(s)&&W0(JSON.parse(s),a)}),i==null&&o)for(const s in a)Ia(a,s)&&lg(a[s]);return a}function wB(e){return e.type}function xB(e,t,n){let r=pn(t.messages)?t.messages:Rn();"__i18nGlobal"in n&&(r=NI(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(pn(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(pn(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function JM(e){return ye(el,null,e,0)}const QM="__INTLIFY_META__",eL=()=>[],gne=()=>!1;let tL=0;function nL(e){return(t,n,r,i)=>e(n,r,br()||void 0,i)}const mne=()=>{const e=br();let t=null;return e&&(t=wB(e)[QM])?{[QM]:t}:null};function kI(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,o=o1?Fe:Cf;let a=fn(e.inheritLocale)?e.inheritLocale:!0;const s=o(t&&a?t.locale.value:tt(e.locale)?e.locale:sg),l=o(t&&a?t.fallbackLocale.value:tt(e.fallbackLocale)||ar(e.fallbackLocale)||jt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=o(NI(s.value,e)),c=o(jt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=o(jt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let d=t?t.missingWarn:fn(e.missingWarn)||eh(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:fn(e.fallbackWarn)||eh(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:fn(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,y=Hn(e.missing)?e.missing:null,_=Hn(e.missing)?nL(e.missing):null,b=Hn(e.postTranslation)?e.postTranslation:null,w=t?t.warnHtmlMessage:fn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const T=t?t.modifiers:jt(e.modifiers)?e.modifiers:{};let E=e.pluralRules||t&&t.pluralRules,A;A=(()=>{r&&GM(null);const Z={version:pne,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:T,pluralRules:E,missing:_===null?void 0:_,missingWarn:d,fallbackWarn:h,fallbackFormat:m,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:w,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Z.datetimeFormats=c.value,Z.numberFormats=f.value,Z.__datetimeFormatters=jt(A)?A.__datetimeFormatters:void 0,Z.__numberFormatters=jt(A)?A.__numberFormatters:void 0;const de=Qte(Z);return r&&GM(de),de})(),rp(A,s.value,l.value);function I(){return[s.value,l.value,u.value,c.value,f.value]}const R=Ve({get:()=>s.value,set:Z=>{s.value=Z,A.locale=s.value}}),O=Ve({get:()=>l.value,set:Z=>{l.value=Z,A.fallbackLocale=l.value,rp(A,s.value,Z)}}),M=Ve(()=>u.value),$=Ve(()=>c.value),F=Ve(()=>f.value);function z(){return Hn(b)?b:null}function B(Z){b=Z,A.postTranslation=Z}function Y(){return y}function j(Z){Z!==null&&(_=nL(Z)),y=Z,A.missing=_}const se=(Z,de,Be,Xe,ht,ee)=>{I();let ie;try{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=t?Jte():void 0),ie=Z(A)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(Be!=="translate exists"&&hr(ie)&&ie===Db||Be==="translate exists"&&!ie){const[he,Ee]=de();return t&&v?Xe(t):ht(he)}else{if(ee(ie))return ie;throw no(Pi.UNEXPECTED_RETURN_TYPE)}};function ge(...Z){return se(de=>Reflect.apply(qM,null,[de,...Z]),()=>aC(...Z),"translate",de=>Reflect.apply(de.t,de,[...Z]),de=>de,de=>tt(de))}function ve(...Z){const[de,Be,Xe]=Z;if(Xe&&!pn(Xe))throw no(Pi.INVALID_ARGUMENT);return ge(de,Be,Cr({resolvedMessage:!0},Xe||{}))}function De(...Z){return se(de=>Reflect.apply(WM,null,[de,...Z]),()=>iC(...Z),"datetime format",de=>Reflect.apply(de.d,de,[...Z]),()=>UM,de=>tt(de))}function Ne(...Z){return se(de=>Reflect.apply(YM,null,[de,...Z]),()=>oC(...Z),"number format",de=>Reflect.apply(de.n,de,[...Z]),()=>UM,de=>tt(de))}function ze(Z){return Z.map(de=>tt(de)||hr(de)||fn(de)?JM(String(de)):de)}const je={normalize:ze,interpolate:Z=>Z,type:"vnode"};function ce(...Z){return se(de=>{let Be;const Xe=de;try{Xe.processor=je,Be=Reflect.apply(qM,null,[Xe,...Z])}finally{Xe.processor=null}return Be},()=>aC(...Z),"translate",de=>de[sC](...Z),de=>[JM(de)],de=>ar(de))}function Ce(...Z){return se(de=>Reflect.apply(YM,null,[de,...Z]),()=>oC(...Z),"number format",de=>de[uC](...Z),eL,de=>tt(de)||ar(de))}function Se(...Z){return se(de=>Reflect.apply(WM,null,[de,...Z]),()=>iC(...Z),"datetime format",de=>de[lC](...Z),eL,de=>tt(de)||ar(de))}function Te(Z){E=Z,A.pluralRules=E}function Oe(Z,de){return se(()=>{if(!Z)return!1;const Be=tt(de)?de:s.value,Xe=G(Be),ht=A.messageResolver(Xe,Z);return nh(ht)||Yo(ht)||tt(ht)},()=>[Z],"translate exists",Be=>Reflect.apply(Be.te,Be,[Z,de]),gne,Be=>fn(Be))}function $e(Z){let de=null;const Be=cB(A,l.value,s.value);for(let Xe=0;Xe{a&&(s.value=Z,A.locale=Z,rp(A,s.value,l.value))}),Yt(t.fallbackLocale,Z=>{a&&(l.value=Z,A.fallbackLocale=Z,rp(A,s.value,l.value))}));const Pe={id:tL,locale:R,fallbackLocale:O,get inheritLocale(){return a},set inheritLocale(Z){a=Z,Z&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,rp(A,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:M,get modifiers(){return T},get pluralRules(){return E||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(Z){d=Z,A.missingWarn=d},get fallbackWarn(){return h},set fallbackWarn(Z){h=Z,A.fallbackWarn=h},get fallbackRoot(){return v},set fallbackRoot(Z){v=Z},get fallbackFormat(){return m},set fallbackFormat(Z){m=Z,A.fallbackFormat=m},get warnHtmlMessage(){return w},set warnHtmlMessage(Z){w=Z,A.warnHtmlMessage=Z},get escapeParameter(){return S},set escapeParameter(Z){S=Z,A.escapeParameter=Z},t:ge,getLocaleMessage:G,setLocaleMessage:le,mergeLocaleMessage:we,getPostTranslationHandler:z,setPostTranslationHandler:B,getMissingHandler:Y,setMissingHandler:j,[bB]:Te};return Pe.datetimeFormats=$,Pe.numberFormats=F,Pe.rt=ve,Pe.te=Oe,Pe.tm=H,Pe.d=De,Pe.n=Ne,Pe.getDateTimeFormat=pe,Pe.setDateTimeFormat=U,Pe.mergeDateTimeFormat=W,Pe.getNumberFormat=q,Pe.setNumberFormat=fe,Pe.mergeNumberFormat=_e,Pe[SB]=n,Pe[sC]=ce,Pe[lC]=Se,Pe[uC]=Ce,Pe}function yne(e){const t=tt(e.locale)?e.locale:sg,n=tt(e.fallbackLocale)||ar(e.fallbackLocale)||jt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Hn(e.missing)?e.missing:void 0,i=fn(e.silentTranslationWarn)||eh(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=fn(e.silentFallbackWarn)||eh(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=fn(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=jt(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Hn(e.postTranslation)?e.postTranslation:void 0,f=tt(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,h=fn(e.sync)?e.sync:!0;let v=e.messages;if(jt(e.sharedMessages)){const T=e.sharedMessages;v=Object.keys(T).reduce((A,P)=>{const I=A[P]||(A[P]={});return Cr(I,T[P]),A},v||{})}const{__i18n:m,__root:y,__injectWithOption:_}=e,b=e.datetimeFormats,w=e.numberFormats,S=e.flatJson;return{locale:t,fallbackLocale:n,messages:v,flatJson:S,datetimeFormats:b,numberFormats:w,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:h,__i18n:m,__root:y,__injectWithOption:_}}function fC(e={}){const t=kI(yne(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 fn(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=fn(i)?!i:i},get silentFallbackWarn(){return fn(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=fn(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(!tt(o))throw no(Pi.INVALID_ARGUMENT);const f=o;return tt(a)?l.locale=a:hr(a)?l.plural=a:ar(a)?u=a:jt(a)&&(c=a),tt(s)?l.locale=s:ar(s)?u=s:jt(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 _ne(e,t,n){return{beforeCreate(){const r=br();if(!r)throw no(Pi.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=rL(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=fC(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=rL(e,i);else{this.$i18n=fC({__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&&xB(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=br();if(!r)throw no(Pi.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 rL(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[bB](t.pluralizationRules||e.pluralizationRules);const n=NI(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 FI={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function bne({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===qe?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},Rn())}function TB(){return qe}const Sne=it({name:"i18n-t",props:Cr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>hr(e)||!isNaN(e)}},FI),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||us({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),a=Rn();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=tt(e.plural)?+e.plural:e.plural);const s=bne(t,o),l=i[sC](e.keypath,s,a),u=Cr(Rn(),r),c=tt(e.tag)||pn(e.tag)?e.tag:TB();return zi(c,u,l)}}}),iL=Sne;function wne(e){return ar(e)&&!tt(e[0])}function EB(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const a={part:!0};let s=Rn();e.locale&&(a.locale=e.locale),tt(e.format)?a.key=e.format:pn(e.format)&&(tt(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((d,h)=>n.includes(h)?Cr(Rn(),d,{[h]:e.format[h]}):d,Rn()));const l=r(e.value,a,s);let u=[a.key];ar(l)?u=l.map((d,h)=>{const v=i[d.type],m=v?v({[d.type]:d.value,index:h,parts:l}):[d.value];return wne(m)&&(m[0].key=`${d.type}-${h}`),m}):tt(l)&&(u=[l]);const c=Cr(Rn(),o),f=tt(e.tag)||pn(e.tag)?e.tag:TB();return zi(f,c,u)}}const xne=it({name:"i18n-n",props:Cr({value:{type:Number,required:!0},format:{type:[String,Object]}},FI),setup(e,t){const n=e.i18n||us({useScope:e.scope,__useComponent:!0});return EB(e,t,mB,(...r)=>n[uC](...r))}}),oL=xne,Tne=it({name:"i18n-d",props:Cr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},FI),setup(e,t){const n=e.i18n||us({useScope:e.scope,__useComponent:!0});return EB(e,t,gB,(...r)=>n[lC](...r))}}),aL=Tne;function Ene(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 Cne(e){const t=a=>{const{instance:s,value:l}=a;if(!s||!s.$)throw no(Pi.UNEXPECTED_ERROR);const u=Ene(e,s.$),c=sL(l);return[Reflect.apply(u.t,u,[...lL(c)]),u]};return{created:(a,s)=>{const[l,u]=t(s);o1&&e.global===u&&(a.__i18nWatcher=Yt(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{o1&&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=sL(s);a.textContent=Reflect.apply(l.t,l,[...lL(u)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function sL(e){if(tt(e))return{path:e};if(jt(e)){if(!("path"in e))throw no(Pi.REQUIRED_VALUE,"path");return e}else throw no(Pi.INVALID_VALUE)}function lL(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,a={},s=r||{};return tt(n)&&(a.locale=n),hr(i)&&(a.plural=i),hr(o)&&(a.plural=o),[t,s,a]}function Ane(e,t,...n){const r=jt(n[0])?n[0]:{};(fn(r.globalInstall)?r.globalInstall:!0)&&([iL.name,"I18nT"].forEach(o=>e.component(o,iL)),[oL.name,"I18nN"].forEach(o=>e.component(o,oL)),[aL.name,"I18nD"].forEach(o=>e.component(o,aL))),e.directive("t",Cne(t))}const Ine=Fu("global-vue-i18n");function Rne(e={},t){const n=__VUE_I18N_LEGACY_API__&&fn(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=fn(e.globalInjection)?e.globalInjection:!0,i=new Map,[o,a]=Pne(e,n),s=Fu("");function l(d){return i.get(d)||null}function u(d,h){i.set(d,h)}function c(d){i.delete(d)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(d,...h){if(d.__VUE_I18N_SYMBOL__=s,d.provide(d.__VUE_I18N_SYMBOL__,f),jt(h[0])){const y=h[0];f.__composerExtend=y.__composerExtend,f.__vueI18nExtend=y.__vueI18nExtend}let v=null;!n&&r&&(v=$ne(d,f.global)),__VUE_I18N_FULL_INSTALL__&&Ane(d,f,...h),__VUE_I18N_LEGACY_API__&&n&&d.mixin(_ne(a,a.__composer,f));const m=d.unmount;d.unmount=()=>{v&&v(),f.dispose(),m()}},get global(){return a},dispose(){o.stop()},__instances:i,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function us(e={}){const t=br();if(t==null)throw no(Pi.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw no(Pi.NOT_INSTALLED);const n=One(t),r=Mne(n),i=wB(t),o=Dne(e,i);if(o==="global")return xB(r,e,i),r;if(o==="parent"){let l=Lne(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Cr({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=kI(l),a.__composerExtend&&(s[cC]=a.__composerExtend(s)),kne(a,t,s),a.__setInstance(t,s)}return s}function Pne(e,t,n){const r=X5(),i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>fC(e)):r.run(()=>kI(e));if(i==null)throw no(Pi.UNEXPECTED_ERROR);return[r,i]}function One(e){const t=qi(e.isCE?Ine:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw no(e.isCE?Pi.NOT_INSTALLED_WITH_PROVIDE:Pi.UNEXPECTED_ERROR);return t}function Dne(e,t){return Pb(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Mne(e){return e.mode==="composition"?e.global:e.global.__composer}function Lne(e,t,n=!1){let r=null;const i=t.root;let o=Nne(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[SB]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function Nne(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function kne(e,t,n){Ro(()=>{},t),Sh(()=>{const r=n;e.__deleteInstance(t);const i=r[cC];i&&(i(),delete r[cC])},t)}const Fne=["locale","fallbackLocale","availableLocales"],uL=["t","rt","d","n","tm","te"];function $ne(e,t){const n=Object.create(null);return Fne.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw no(Pi.UNEXPECTED_ERROR);const a=st(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,uL.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o||!o.value)throw no(Pi.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,o)}),()=>{delete e.config.globalProperties.$i18n,uL.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}vne();Yte(Ite);Xte(zte);Kte(cB);if(__INTLIFY_PROD_DEVTOOLS__){const e=Dc();e.__INTLIFY__=!0,Rte(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Tx=Fe(!1),cL=Fe(),Mb=()=>{const{t:e}=us();return{showTip:(n,r={})=>{Tx.value=!0,cL.value=e(n,r),setTimeout(()=>{Tx.value=!1},1e4)},tipShowModel:Tx,tipContent:cL}},$I="https://ipv6.google.com/generate_204",qo=0;var es=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e.RU_RU="ru-RU",e))(es||{}),tu=(e=>(e.MI_SANS="MiSans",e.SARASA_UI="SarasaUi",e.PING_FANG="PingFang",e.FIRA_SANS="FiraSans",e.SYSTEM_UI="SystemUI",e))(tu||{}),vt=(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))(vt||{}),nu=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(nu||{}),ug=(e=>(e.AUTO="auto",e.DOTS="dots",e.BAR="bar",e))(ug||{}),rh=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(rh||{}),df=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(df||{}),Gi=(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))(Gi||{}),Mc=(e=>(e.ASC="asc",e.DESC="desc",e))(Mc||{}),Gs=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(Gs||{}),Lc=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(Lc||{}),un=(e=>(e.overview="overview",e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e.setup="setup",e))(un||{});const CB={overview:dM,proxies:wQ,connections:z4,rules:CQ,logs:SQ,settings:_Q,setup:dM};var cg=(e=>(e.SMALL="small",e.LARGE="large",e))(cg||{}),qg=(e=>(e.SMALL="small",e.LARGE="large",e))(qg||{}),fg=(e=>(e.NORMAL="normal",e.REVERSE="reverse",e))(fg||{});function Lb(e){return nI()?(rI(e),!0):!1}const Ex=new WeakMap,Bne=(...e)=>{var t;const n=e[0],r=(t=br())==null?void 0:t.proxy;if(r==null&&!_I())throw new Error("injectLocal must be called in setup");return r&&Ex.has(r)&&n in Ex.get(r)?Ex.get(r)[n]:qi(...e)};function Tu(e){return typeof e=="function"?e():N(e)}const AB=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Vne=e=>e!=null,Une=Object.prototype.toString,Hne=e=>Une.call(e)==="[object Object]",a1=()=>{};function Gne(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 IB=e=>e();function zne(e=IB){const t=Fe(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:Wg(t),pause:n,resume:r,eventFilter:i}}function fL(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function RB(e){return br()}function Wne(...e){if(e.length!==1)return d$(...e);const t=e[0];return typeof t=="function"?Wg(uI(()=>({get:t,set:a1}))):Fe(t)}function jne(e,t,n={}){const{eventFilter:r=IB,...i}=n;return Yt(e,Gne(r,t),i)}function Yne(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:a,resume:s,isActive:l}=zne(r);return{stop:jne(e,t,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function Xne(e,t){RB()&&Yg(e,t)}function BI(e,t=!0,n){RB()?Ro(e,n):t?e():vs(e)}const ul=AB?window:void 0,PB=AB?window.document:void 0;function ou(e){var t;const n=Tu(e);return(t=n==null?void 0:n.$el)!=null?t:n}function vu(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=ul):[t,n,r,i]=e,!t)return a1;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,f,d,h)=>(c.addEventListener(f,d,h),()=>c.removeEventListener(f,d,h)),l=Yt(()=>[ou(t),Tu(i)],([c,f])=>{if(a(),!c)return;const d=Hne(f)?{...f}:f;o.push(...n.flatMap(h=>r.map(v=>s(c,h,v,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return Lb(u),u}function Kne(){const e=Fe(!1),t=br();return t&&Ro(()=>{e.value=!0},t),e}function VI(e){const t=Kne();return Ve(()=>(t.value,!!e()))}function Zne(e,t,n={}){const{window:r=ul,...i}=n;let o;const a=VI(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Ve(()=>{const d=Tu(e),h=(Array.isArray(d)?d:[d]).map(ou).filter(Vne);return new Set(h)}),u=Yt(()=>l.value,d=>{s(),a.value&&d.size&&(o=new MutationObserver(t),d.forEach(h=>o.observe(h,i)))},{immediate:!0,flush:"post"}),c=()=>o==null?void 0:o.takeRecords(),f=()=>{u(),s()};return Lb(f),{isSupported:a,stop:f,takeRecords:c}}const qne=Symbol("vueuse-ssr-width");function Jne(){const e=_I()?Bne(qne,null):null;return typeof e=="number"?e:void 0}function Qne(e,t={}){const{window:n=ul,ssrWidth:r=Jne()}=t,i=VI(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=Fe(typeof r=="number");let a;const s=Fe(!1),l=f=>{s.value=f.matches},u=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",l):a.removeListener(l))},c=Sb(()=>{if(o.value){o.value=!i.value;const f=Tu(e).split(",");s.value=f.some(d=>{const h=d.includes("not all"),v=d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),m=d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let y=!!(v||m);return v&&y&&(y=r>=fL(v[1])),m&&y&&(y=r<=fL(m[1])),h?!y:y});return}i.value&&(u(),a=n.matchMedia(Tu(e)),"addEventListener"in a?a.addEventListener("change",l):a.addListener(l),s.value=a.matches)});return Lb(()=>{c(),u(),a=void 0}),Ve(()=>s.value)}const Cy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ay="__vueuse_ssr_handlers__",ere=tre();function tre(){return Ay in Cy||(Cy[Ay]=Cy[Ay]||{}),Cy[Ay]}function nre(e,t){return ere[e]||t}function rre(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 ire={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()}},dL="vueuse-storage";function Mt(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=ul,eventFilter:d,onError:h=R=>{console.error(R)},initOnMounted:v}=r,m=(c?Cf:Fe)(typeof t=="function"?t():t);if(!n)try{n=nre("getDefaultStorage",()=>{var R;return(R=ul)==null?void 0:R.localStorage})()}catch(R){h(R)}if(!n)return m;const y=Tu(t),_=rre(y),b=(i=r.serializer)!=null?i:ire[_],{pause:w,resume:S}=Yne(m,()=>E(m.value),{flush:o,deep:a,eventFilter:d});f&&s&&BI(()=>{n instanceof Storage?vu(f,"storage",P):vu(f,dL,I),v&&P()}),v||P();function T(R,O){if(f){const M={key:e,oldValue:R,newValue:O,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",M):new CustomEvent(dL,{detail:M}))}}function E(R){try{const O=n.getItem(e);if(R==null)T(O,null),n.removeItem(e);else{const M=b.write(R);O!==M&&(n.setItem(e,M),T(O,M))}}catch(O){h(O)}}function A(R){const O=R?R.newValue:n.getItem(e);if(O==null)return l&&y!=null&&n.setItem(e,b.write(y)),y;if(!R&&u){const M=b.read(O);return typeof u=="function"?u(M,y):_==="object"&&!Array.isArray(M)?{...y,...M}:M}else return typeof O!="string"?O:b.read(O)}function P(R){if(!(R&&R.storageArea!==n)){if(R&&R.key==null){m.value=y;return}if(!(R&&R.key!==e)){w();try{(R==null?void 0:R.newValue)!==b.write(m.value)&&(m.value=A(R))}catch(O){h(O)}finally{R?vs(S):S()}}}}function I(R){P(R.detail)}return m}function ore(e={}){const{document:t=PB}=e;if(!t)return Fe("visible");const n=Fe(t.visibilityState);return vu(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function are(e,t,n={}){const{window:r=ul,...i}=n;let o;const a=VI(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Ve(()=>{const f=Tu(e);return Array.isArray(f)?f.map(d=>ou(d)):[ou(f)]}),u=Yt(l,f=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const d of f)d&&o.observe(d,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return Lb(c),{isSupported:a,stop:c}}function sre(e,t={width:0,height:0},n={}){const{window:r=ul,box:i="content-box"}=n,o=Ve(()=>{var f,d;return(d=(f=ou(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),a=Fe(t.width),s=Fe(t.height),{stop:l}=are(e,([f])=>{const d=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&o.value){const h=ou(e);if(h){const v=h.getBoundingClientRect();a.value=v.width,s.value=v.height}}else if(d){const h=Array.isArray(d)?d:[d];a.value=h.reduce((v,{inlineSize:m})=>v+m,0),s.value=h.reduce((v,{blockSize:m})=>v+m,0)}else a.value=f.contentRect.width,s.value=f.contentRect.height},n);BI(()=>{const f=ou(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=Yt(()=>ou(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 lre(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:a=!0,window:s=ul}=t,l=La({x:0,y:0}),u=La({x:0,y:0}),c=Ve(()=>l.x-u.x),f=Ve(()=>l.y-u.y),{max:d,abs:h}=Math,v=Ve(()=>d(h(c.value),h(f.value))>=n),m=Fe(!1),y=Ve(()=>v.value?h(c.value)>h(f.value)?c.value>0?"left":"right":f.value>0?"up":"down":"none"),_=I=>[I.touches[0].clientX,I.touches[0].clientY],b=(I,R)=>{l.x=I,l.y=R},w=(I,R)=>{u.x=I,u.y=R};let S;const T=ure(s==null?void 0:s.document);a?S=T?{passive:!0}:{capture:!1}:S=T?{passive:!1,capture:!0}:{capture:!0};const E=I=>{m.value&&(i==null||i(I,y.value)),m.value=!1},A=[vu(e,"touchstart",I=>{if(I.touches.length!==1)return;const[R,O]=_(I);b(R,O),w(R,O),o==null||o(I)},S),vu(e,"touchmove",I=>{if(I.touches.length!==1)return;const[R,O]=_(I);w(R,O),S.capture&&!S.passive&&Math.abs(c.value)>Math.abs(f.value)&&I.preventDefault(),!m.value&&v.value&&(m.value=!0),m.value&&(r==null||r(I))},S),vu(e,["touchend","touchcancel"],E,S)];return{isPassiveEventSupported:T,isSwiping:m,direction:y,coordsStart:l,coordsEnd:u,lengthX:c,lengthY:f,stop:()=>A.forEach(I=>I())}}function ure(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",a1,n),e.removeEventListener("x",a1),t}function cre(e=null,t={}){var n,r,i;const{document:o=PB,restoreOnUnmount:a=f=>f}=t,s=(n=o==null?void 0:o.title)!=null?n:"",l=Wne((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 d=t.titleTemplate||"%s";return typeof d=="function"?d(f):Tu(d).replace(/%s/g,f)}return Yt(l,(f,d)=>{f!==d&&o&&(o.title=c(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!u&&Zne((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=c(o.title))},{childList:!0}),Xne(()=>{if(a){const f=a(s,l.value||"");f!=null&&o&&(o.title=f)}}),l}function fre(e={}){const{window:t=ul,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=e,s=Fe(n),l=Fe(r),u=()=>{if(t)if(a==="outer")s.value=t.outerWidth,l.value=t.outerHeight;else if(a==="visual"&&t.visualViewport){const{width:c,height:f,scale:d}=t.visualViewport;s.value=Math.round(c*d),l.value=Math.round(f*d)}else o?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};if(u(),BI(u),vu("resize",u,{passive:!0}),t&&a==="visual"&&t.visualViewport&&vu(t.visualViewport,"resize",u,{passive:!0}),i){const c=Qne("(orientation: portrait)");Yt(c,()=>u())}return{width:s,height:l}}const OB=fre(),dre=Ve(()=>OB.width.value>1280),hre=Ve(()=>OB.width.value<768),UI="background-image",s1="local-image",pre=e=>{const t=window.indexedDB.open("base64",1);t.onupgradeneeded=()=>{t.result.createObjectStore("base64",{keyPath:"key"})},t.onsuccess=()=>{const n=t.result,r=n.transaction("base64","readwrite");r.objectStore("base64").put({key:UI,value:e}),r.oncomplete=()=>{n.close()}}},vre=()=>new Promise(e=>{const t=window.indexedDB.open("base64",1);t.onsuccess=()=>{const n=t.result,o=n.transaction("base64","readonly").objectStore("base64").get(UI);o.onsuccess=()=>{var a;n.close(),e(((a=o.result)==null?void 0:a.value)||"")}}}),gre=()=>{const e=window.indexedDB.open("base64",1);e.onsuccess=()=>{const t=e.result,n=t.transaction("base64","readwrite");n.objectStore("base64").delete(UI),n.oncomplete=()=>{t.close()}}},Nd=Mt("config/theme","default"),au=Mt("config/language",Object.values(es).includes(navigator.language)?navigator.language:es.EN_US),hL=Mt("config/is-sidebar-collapsed",!0),gu=Ve({get:()=>hre.value?!0:hL.value,set:e=>{hL.value=e}}),fv=Mt("config/font",tu.MI_SANS),Ca=Mt("config/custom-background-image",""),j0=Mt("config/dashboard-transparent",90),Y0=Mt("config/auto-upgrade",!1),X0=Mt("config/auto-upgrade-core",!1),yd=Mt("config/split-overview-page",!1),ip=Mt("config/show-ip-and-connection-info",!0),K0=Mt("config/auto-ip-check",!0),Z0=Mt("config/auto-connection-check",!0),q0=Mt("config/show-global-proxy",!0),Cx=Mt("config/collapse-group-map",{}),dv=Mt("config/two-columns",!0),hv=Mt("config/speedtest-url","http://www.gstatic.com/generate_204"),pv=Mt("config/speedtest-timeout",5e3),J0=Mt("config/proxy-sort-type",nu.DEFAULT),Q0=Mt("config/automatic-disconnection",!0),vv=Mt("config/truncate-proxy-name",!0),gv=Mt("config/proxy-preview-type",ug.AUTO),e_=Mt("config/hide-unavailable-proxies",!1),su=Mt("config/low-latency",400),Ys=Mt("config/medium-latency",800),Kc=Mt("config/ipv6-test",!1),mv=Mt("config/proxy-card-size",qg.LARGE),t_=Mt("config/show-hidden-group",!1),yv=Mt("config/icon-size",16),n_=Mt("config/icon-margin-right",4),Nc=Mt("config/use-connecticon-card",window.innerWidth<640),_v=Mt("config/proxy-chain-direction",fg.NORMAL),r_=Mt("config/connecticon-table-size",cg.SMALL),Ed=Mt("config/connection-table-columns",[vt.Close,vt.Host,vt.Type,vt.Rule,vt.Chains,vt.DlSpeed,vt.UlSpeed,vt.Download,vt.Upload,vt.ConnectTime]),ks=Mt("config/connection-card-lines",[[vt.Host,vt.DlSpeed],[vt.Chains,vt.ConnectTime,vt.Details,vt.Close]]),_o=Mt("config/source-ip-label-map",{}),i_=Mt("config/log-retention-limit",1e3),mre={key:0,class:"toast-sm toast toast-start toast-top z-50 max-w-64 whitespace-normal text-sm"},yre={class:"breaks-all alert alert-warning flex w-72 whitespace-normal p-2"},_re={href:"https://github.com/Zephyruso/zashboard/blob/main/README.md",target:"_blank",class:"flex-1"},bre=it({__name:"App",setup(e){const t=Fe(),{tipContent:n,tipShowModel:r}=Mb(),i={[tu.MI_SANS]:"font-MiSans",[tu.SARASA_UI]:"font-SarasaUI",[tu.PING_FANG]:"font-PingFang",[tu.FIRA_SANS]:"font-FiraSans",[tu.SYSTEM_UI]:"font-SystemUI"},o=Ve(()=>i[fv.value]),a=Ma().format("YYYY-MM-DD"),s=Fe(""),l=async()=>{s.value=await vre()};Yt(()=>Ca.value,()=>{Ca.value.includes(s1)&&l()},{immediate:!0});const u=Ve(()=>Ca.value.includes(s1)?s.value:Ca.value+`?v=${a}`),c=()=>{const f=getComputedStyle(t.value).getPropertyValue("background-color").trim(),d=document.querySelector('meta[name="theme-color"]');d&&d.setAttribute("content",f)};return Ro(()=>{Yt(Nd,()=>{document.body.setAttribute("data-theme",Nd.value),c()},{immediate:!0})}),(f,d)=>(K(),ae("div",{ref_key:"app",ref:t,class:rt(`flex h-dvh w-screen overflow-x-hidden bg-base-100 ${o.value} custom-background-${N(j0)} ${N(Ca)&&"custom-background bg-cover"}`),style:Gr(`background-image: url('${u.value}');`)},[ye(N(II)),N(r)?(K(),ae("div",mre,[L("div",yre,[L("a",_re,re(f.$t(N(n))),1),L("button",{class:"btn btn-circle btn-ghost btn-sm",onClick:d[0]||(d[0]=h=>r.value=!1)},[ye(N(AQ),{class:"w-4 cursor-pointer"})])])])):mt("",!0)],6))}}),Sre={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",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",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",customCardLines:"Custom Card Lines",close:"Close",details:"Details",showGlobalProxy:"Show Global Proxy Node",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",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",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",currentBackendUnavailable:"Current backend is unavailable. Try to switch to another backend?",confirm:"Confirm",backendSwitchTo:"Automatic Switch to {backend}",ipv6Test:"IPv6 Test",socksPort:"Socks Port",httpPort:"HTTP Port",mixedPort:"Mixed Port",redirPort:"Redir Port",tproxyPort:"TProxy Port",tableSize:"Table Size",proxyCardSize:"Proxy Card Size",small:"Small",normal:"Normal",large:"Large",autoIPCheckWhenStart:"Auto Check IP When Start",autoConnectionCheckWhenStart:"Auto Check Connection When Start",chinaIP:"China IP",globalIP:"Global IP",networkInfo:"Network Info",autoSwitch:"Auto Switch",customBackgroundURL:"Custom Background URL",splitOverviewPage:"Split Overview Page",showHiddenGroup:"Show Hidden Group",showIPAndConnectionInfo:"Show IP and Connection Info",transparent:"Transparent",iconSize:"Icon Size",iconMarginRight:"Icon Margin Right",allowLan:"Allow Lan",proxyChainDirection:"Proxy Chain Direction",reverse:"Reverse"},wre={setup:"Настройка",overview:"Обзор",proxies:"Прокси",rules:"Правила",connections:"Подключения",logs:"Журнал",protocol:"Протокол",host:"Хост",port:"Порт",password:"Пароль",submit:"Отправить",cancel:"Отмена",download:"Загружено",upload:"Отправлено",downloadSpeed:"Скорость загрузки",uploadSpeed:"Скорость отдачи",memoryUsage:"Память",version:"Версия",quickFilter:"Быстрый фильтр",noContent:"Нет содержимого",flushFakeIP:"Очистить Fake IP",chains:"Цепочки",sortBy:"Сортировать по",rule:"Правило",sourceIP:"Исходный IP",activeConnections:"Активные",closedConnections:"Закрытые",logLevel:"Уровень журнала",twoColumnProxyGroup:"Группа прокси в два столбца",type:"Тип",process:"Процесс",connectTime:"Время",sourcePort:"Исходный порт",destination:"Назначение",inboundUser:"Входящий пользователь",dl:"Загр",ul:"Отдч",dlSpeed:"Загрузка",ulSpeed:"Отдача",settings:"Настройки",speedtestUrl:"URL теста скорости",speedtestTimeout:"Таймаут теста скорости",connectionStyle:"Стиль подключения",card:"Карточка",table:"Таблица",customTableColumns:"Пользовательские столбцы таблицы",customCardLines:"Пользовательские строчки карточки",close:"Закрыть",details:"Детали",showGlobalProxy:"Показать глобальный прокси-узел",theme:"Тема",proxyProvider:"Провайдер прокси",ruleProvider:"Провайдер правил",expire:"Истекает",noExpire:"Нет",updated:"Обновлено",upgradeUI:"Обновить панель",updateAllProviders:"Обновить все провайдеры",reloadConfigs:"Перезагрузить конфигурации",mode:"Режим",proxySortType:"Тип сортировки прокси",defaultsort:"По конфигурациям",nameasc:"Имя по возрастанию",namedesc:"Имя по убыванию",latencydesc:"Задержка по убыванию",latencyasc:"Задержка по возрастанию",language:"Язык",automaticDisconnection:"Автоматическое отключение",backend:"Бэкенд",tunMode:"Режим Tun",upgradeCore:"Обновить ядро",truncateProxyName:"Усечение имени прокси",sourceIPLabels:"Метки исходного IP",proxyPreviewType:"Тип предварительного просмотра прокси",auto:"Авто",dots:"Точки",bar:"Полоса",exportSettings:"Экспорт настроек",importSettings:"Импорт настроек",hideUnavailable:"Скрыть недоступные",protocolTips:"Вы пытаетесь подключиться к http-бэкенду, но панель управления обслуживается через https. Это может вызвать ошибку подключения. Пожалуйста, разрешите небезопасный контент в настройках браузера. Настройки находятся слева от адресной строки.",global:"Глобальный",direct:"Прямой",quickFilterTip:"Быстрая фильтрация позволяет одним щелчком исключать подключения, соответствующие цепочкам прокси, хосту или IP-адресам назначения с использованием регулярных выражений.",lowLatencyDesc:"Желтый порог",mediumLatencyDesc:"Красный порог",fonts:"Шрифты",unauthorizedTip:"Не авторизован, пожалуйста, войдите снова.",restartCore:"Перезапустить ядро",autoUpgrade:"Автоматическое обновление",secondaryPath:"Дополнительный путь",secondaryPathTip:'Если присутствует, начните с "/", в противном случае оставьте пустым.',logRetentionLimit:"Лимит хранения журнала",DNSQuery:"DNS-запрос",currentBackendUnavailable:"Текущий бэкенд недоступен. Попробуйте переключиться на другой бэкенд?",confirm:"Подтвердить",backendSwitchTo:"Автоматическое переключение на {backend}",ipv6Test:"IPv6-тест",socksPort:"Порт Socks",httpPort:"Порт HTTP",mixedPort:"Порт Mixed",redirPort:"Порт Redir",tproxyPort:"Порт TProxy",tableSize:"Размер таблицы",proxyCardSize:"Размер карточки прокси",small:"Маленький",normal:"Нормальный",large:"Большой",autoIPCheckWhenStart:"Автоматическая проверка IP при запуске",autoConnectionCheckWhenStart:"Автоматическая проверка соединений при запуске",chinaIP:"IP для Китая",globalIP:"Мировой IP",networkInfo:"Информация о сети",autoSwitch:"Автоматическое",customBackgroundURL:"Пользовательский URL фона",splitOverviewPage:"Разделить страницу с обзором",showHiddenGroup:"Показать скрытые группы",showIPAndConnectionInfo:"Показать IP и информацию о соединениях",transparent:"Прозрачность",iconSize:"Размер иконки",iconMarginRight:"Отступ правой иконки",allowLan:"Разрешить локальную сеть",proxyChainDirection:"Направление цепочки прокси",reverse:"Обратное"},xre={setup:"配置",overview:"概览",proxies:"代理",rules:"规则",connections:"连接",logs:"日志",protocol:"协议",host:"主机",port:"端口",password:"密码",submit:"提交",cancel:"取消",download:"下载",upload:"上传",downloadSpeed:"下载速度",uploadSpeed:"上传速度",memoryUsage:"内存使用",version:"版本",quickFilter:"快速过滤",noContent:"无内容",flushFakeIP:"清空Fake IP",chains:"代理链",sortBy:"排序方式",rule:"规则",sourceIP:"源IP",activeConnections:"活跃连接",closedConnections:"已关闭连接",logLevel:"日志等级",twoColumnProxyGroup:"双列显示代理组",type:"类型",process:"进程",connectTime:"连接时间",sourcePort:"源端口",destination:"目标",inboundUser:"入站用户",dl:"下载",ul:"上传",dlSpeed:"下载速度",ulSpeed:"上传速度",settings:"设置",speedtestUrl:"测速地址",speedtestTimeout:"测速超时",connectionStyle:"连接样式",card:"卡片",table:"表格",customTableColumns:"自定义表格列",customCardLines:"自定义卡片行",close:"关闭",details:"详情",showGlobalProxy:"显示全局代理节点",theme:"主题",proxyProvider:"代理提供商",ruleProvider:"规则提供商",expire:"到期时间",noExpire:"不限时",updated:"更新于",upgradeUI:"更新面板",updateAllProviders:"更新所有提供商",reloadConfigs:"重载配置",mode:"模式",proxySortType:"代理排序方式",defaultsort:"按配置排序",nameasc:"按名称升序",namedesc:"按名称降序",latencydesc:"按延迟降序",latencyasc:"按延迟升序",language:"语言",automaticDisconnection:"自动断开连接",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:"字体",unauthorizedTip:"未授权,请重新登录",restartCore:"重启核心",autoUpgrade:"自动更新",secondaryPath:"二级路径",secondaryPathTip:"如果有的话以/开头,没有则留空不填",logRetentionLimit:"日志保留条数",DNSQuery:"DNS 查询",currentBackendUnavailable:"当前后端不可用,尝试切换到其他后端?",confirm:"确定",backendSwitchTo:"自动切换到{backend}",ipv6Test:"IPv6 测试",socksPort:"Socks 端口",httpPort:"HTTP 端口",mixedPort:"Mixed 端口",redirPort:"Redir 端口",tproxyPort:"TProxy 端口",tableSize:"表格尺寸",proxyCardSize:"节点卡片尺寸",small:"小",normal:"正常",large:"大",autoIPCheckWhenStart:"自动检查 IP",autoConnectionCheckWhenStart:"自动检查连接",chinaIP:"中国大陆 IP",globalIP:"全球 IP",networkInfo:"网络信息",autoSwitch:"自动切换",customBackgroundURL:"自定义背景 URL",splitOverviewPage:"分离概览页",showHiddenGroup:"显示隐藏分组",showIPAndConnectionInfo:"显示 IP 和连接信息",transparent:"透明度",iconSize:"图标尺寸",iconMarginRight:"图标间距",allowLan:"允许局域网",proxyChainDirection:"代理链方向",reverse:"反向"},HI=Rne({locale:au.value,messages:{[es.EN_US]:Sre,[es.ZH_CN]:xre,[es.RU_RU]:wre}});var Vp={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 wre=Vp.exports,dL;function xre(){return dL||(dL=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,d=2,h=4,v=1,m=2,y=1,_=2,b=4,w=8,S=16,E=32,T=64,A=128,P=256,I=512,R=30,O="...",M=800,$=16,F=1,z=2,B=3,Y=1/0,j=9007199254740991,ae=17976931348623157e292,ge=NaN,ve=4294967295,De=ve-1,Ne=ve>>>1,ze=[["ary",A],["bind",y],["bindKey",_],["curry",w],["curryRight",S],["flip",I],["partial",E],["partialRight",T],["rearg",P]],Me="[object Arguments]",je="[object Array]",ce="[object AsyncFunction]",Ce="[object Boolean]",Se="[object Date]",Te="[object DOMException]",Oe="[object Error]",$e="[object Function]",H="[object GeneratorFunction]",G="[object Map]",le="[object Number]",we="[object Null]",pe="[object Object]",U="[object Promise]",W="[object Proxy]",q="[object RegExp]",fe="[object Set]",_e="[object String]",Pe="[object Symbol]",Z="[object Undefined]",de="[object WeakMap]",Be="[object WeakSet]",Xe="[object ArrayBuffer]",ht="[object DataView]",ee="[object Float32Array]",re="[object Float64Array]",he="[object Int8Array]",Ee="[object Int16Array]",He="[object Int32Array]",ne="[object Uint8Array]",Ae="[object Uint8ClampedArray]",ke="[object Uint16Array]",Qe="[object Uint32Array]",Ge=/\b__p \+= '';/g,We=/\b(__p \+=) '' \+/g,et=/(__e\(.*?\)|\b__t\)) \+\n'';/g,It=/&(?:amp|lt|gt|quot|#39);/g,Pt=/[&<>"']/g,Nn=RegExp(It.source),ca=RegExp(Pt.source),Pn=/<%-([\s\S]+?)%>/g,pr=/<%([\s\S]+?)%>/g,Rf=/<%=([\s\S]+?)%>/g,bl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ba=/^\w*$/,gm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pf=/[\\^$.*+?()[\]{}|]/g,zS=RegExp(Pf.source),Di=/^\s+/,Of=/\s/,mm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ym=/\{\n\/\* \[wrapped with (.+)\] \*/,Lh=/,? & /,_m=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fa=/[()=,{}\[\]\/\s]/,bm=/\\(\\)?/g,Sm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nh=/\w*$/,wm=/^[-+]0x[0-9a-f]+$/i,WS=/^0b[01]+$/i,pt=/^\[object .+?Constructor\]$/,te=/^0o[0-7]+$/i,Ue=/^(?:0|[1-9]\d*)$/,at=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sn=/($^)/,Rr=/['\n\r\u2028\u2029\\]/g,er="\\ud800-\\udfff",Wr="\\u0300-\\u036f",Po="\\ufe20-\\ufe2f",Hu="\\u20d0-\\u20ff",Pr=Wr+Po+Hu,kh="\\u2700-\\u27bf",Fh="a-z\\xdf-\\xf6\\xf8-\\xff",nz="\\xac\\xb1\\xd7\\xf7",rz="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",iz="\\u2000-\\u206f",oz=" \\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",qP="A-Z\\xc0-\\xd6\\xd8-\\xde",JP="\\ufe0e\\ufe0f",QP=nz+rz+iz+oz,jS="['’]",az="["+er+"]",eO="["+QP+"]",xm="["+Pr+"]",tO="\\d+",sz="["+kh+"]",nO="["+Fh+"]",rO="[^"+er+QP+tO+kh+Fh+qP+"]",YS="\\ud83c[\\udffb-\\udfff]",lz="(?:"+xm+"|"+YS+")",iO="[^"+er+"]",XS="(?:\\ud83c[\\udde6-\\uddff]){2}",KS="[\\ud800-\\udbff][\\udc00-\\udfff]",Df="["+qP+"]",oO="\\u200d",aO="(?:"+nO+"|"+rO+")",uz="(?:"+Df+"|"+rO+")",sO="(?:"+jS+"(?:d|ll|m|re|s|t|ve))?",lO="(?:"+jS+"(?:D|LL|M|RE|S|T|VE))?",uO=lz+"?",cO="["+JP+"]?",cz="(?:"+oO+"(?:"+[iO,XS,KS].join("|")+")"+cO+uO+")*",fz="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dz="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",fO=cO+uO+cz,hz="(?:"+[sz,XS,KS].join("|")+")"+fO,pz="(?:"+[iO+xm+"?",xm,XS,KS,az].join("|")+")",vz=RegExp(jS,"g"),gz=RegExp(xm,"g"),ZS=RegExp(YS+"(?="+YS+")|"+pz+fO,"g"),mz=RegExp([Df+"?"+nO+"+"+sO+"(?="+[eO,Df,"$"].join("|")+")",uz+"+"+lO+"(?="+[eO,Df+aO,"$"].join("|")+")",Df+"?"+aO+"+"+sO,Df+"+"+lO,dz,fz,tO,hz].join("|"),"g"),yz=RegExp("["+oO+er+Pr+JP+"]"),_z=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bz=["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"],Sz=-1,Vn={};Vn[ee]=Vn[re]=Vn[he]=Vn[Ee]=Vn[He]=Vn[ne]=Vn[Ae]=Vn[ke]=Vn[Qe]=!0,Vn[Me]=Vn[je]=Vn[Xe]=Vn[Ce]=Vn[ht]=Vn[Se]=Vn[Oe]=Vn[$e]=Vn[G]=Vn[le]=Vn[pe]=Vn[q]=Vn[fe]=Vn[_e]=Vn[de]=!1;var kn={};kn[Me]=kn[je]=kn[Xe]=kn[ht]=kn[Ce]=kn[Se]=kn[ee]=kn[re]=kn[he]=kn[Ee]=kn[He]=kn[G]=kn[le]=kn[pe]=kn[q]=kn[fe]=kn[_e]=kn[Pe]=kn[ne]=kn[Ae]=kn[ke]=kn[Qe]=!0,kn[Oe]=kn[$e]=kn[de]=!1;var wz={À:"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"},xz={"&":"&","<":"<",">":">",'"':""","'":"'"},Tz={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ez={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cz=parseFloat,Az=parseInt,dO=typeof cy=="object"&&cy&&cy.Object===Object&&cy,Iz=typeof self=="object"&&self&&self.Object===Object&&self,kr=dO||Iz||Function("return this")(),qS=t&&!t.nodeType&&t,Gu=qS&&!0&&e&&!e.nodeType&&e,hO=Gu&&Gu.exports===qS,JS=hO&&dO.process,Oo=function(){try{var ie=Gu&&Gu.require&&Gu.require("util").types;return ie||JS&&JS.binding&&JS.binding("util")}catch{}}(),pO=Oo&&Oo.isArrayBuffer,vO=Oo&&Oo.isDate,gO=Oo&&Oo.isMap,mO=Oo&&Oo.isRegExp,yO=Oo&&Oo.isSet,_O=Oo&&Oo.isTypedArray;function so(ie,xe,me){switch(me.length){case 0:return ie.call(xe);case 1:return ie.call(xe,me[0]);case 2:return ie.call(xe,me[0],me[1]);case 3:return ie.call(xe,me[0],me[1],me[2])}return ie.apply(xe,me)}function Rz(ie,xe,me,nt){for(var Mt=-1,dn=ie==null?0:ie.length;++Mt-1}function QS(ie,xe,me){for(var nt=-1,Mt=ie==null?0:ie.length;++nt-1;);return me}function AO(ie,xe){for(var me=ie.length;me--&&Mf(xe,ie[me],0)>-1;);return me}function $z(ie,xe){for(var me=ie.length,nt=0;me--;)ie[me]===xe&&++nt;return nt}var Bz=rw(wz),Vz=rw(xz);function Uz(ie){return"\\"+Ez[ie]}function Hz(ie,xe){return ie==null?n:ie[xe]}function Lf(ie){return yz.test(ie)}function Gz(ie){return _z.test(ie)}function zz(ie){for(var xe,me=[];!(xe=ie.next()).done;)me.push(xe.value);return me}function sw(ie){var xe=-1,me=Array(ie.size);return ie.forEach(function(nt,Mt){me[++xe]=[Mt,nt]}),me}function IO(ie,xe){return function(me){return ie(xe(me))}}function xl(ie,xe){for(var me=-1,nt=ie.length,Mt=0,dn=[];++me-1}function OW(p,g){var x=this.__data__,C=Um(x,p);return C<0?(++this.size,x.push([p,g])):x[C][1]=g,this}bs.prototype.clear=AW,bs.prototype.delete=IW,bs.prototype.get=RW,bs.prototype.has=PW,bs.prototype.set=OW;function Ss(p){var g=-1,x=p==null?0:p.length;for(this.clear();++g=g?p:g)),p}function No(p,g,x,C,D,V){var X,J=g&f,ue=g&d,Ie=g&h;if(x&&(X=D?x(p,C,D,V):x(p)),X!==n)return X;if(!qn(p))return p;var Re=Ft(p);if(Re){if(X=N9(p),!J)return Mi(p,X)}else{var Le=Yr(p),Ze=Le==$e||Le==H;if(Rl(p))return c2(p,J);if(Le==pe||Le==Me||Ze&&!D){if(X=ue||Ze?{}:R2(p),!J)return ue?T9(p,YW(X,p)):x9(p,VO(X,p))}else{if(!kn[Le])return D?p:{};X=k9(p,Le,J)}}V||(V=new ha);var ct=V.get(p);if(ct)return ct;V.set(p,X),iD(p)?p.forEach(function(wt){X.add(No(wt,g,x,wt,p,V))}):nD(p)&&p.forEach(function(wt,Zt){X.set(Zt,No(wt,g,x,Zt,p,V))});var St=Ie?ue?Mw:Dw:ue?Ni:Or,zt=Re?n:St(p);return Do(zt||p,function(wt,Zt){zt&&(Zt=wt,wt=p[Zt]),zh(X,Zt,No(wt,g,x,Zt,p,V))}),X}function XW(p){var g=Or(p);return function(x){return UO(x,p,g)}}function UO(p,g,x){var C=x.length;if(p==null)return!C;for(p=On(p);C--;){var D=x[C],V=g[D],X=p[D];if(X===n&&!(D in p)||!V(X))return!1}return!0}function HO(p,g,x){if(typeof p!="function")throw new Mo(a);return qh(function(){p.apply(n,x)},g)}function Wh(p,g,x,C){var D=-1,V=Tm,X=!0,J=p.length,ue=[],Ie=g.length;if(!J)return ue;x&&(g=zn(g,lo(x))),C?(V=QS,X=!1):g.length>=i&&(V=$h,X=!1,g=new ju(g));e:for(;++DD?0:D+x),C=C===n||C>D?D:Ut(C),C<0&&(C+=D),C=x>C?0:aD(C);x0&&x(J)?g>1?Fr(J,g-1,x,C,D):wl(D,J):C||(D[D.length]=J)}return D}var pw=g2(),WO=g2(!0);function Va(p,g){return p&&pw(p,g,Or)}function vw(p,g){return p&&WO(p,g,Or)}function Gm(p,g){return Sl(g,function(x){return Cs(p[x])})}function Xu(p,g){g=Al(g,p);for(var x=0,C=g.length;p!=null&&xg}function qW(p,g){return p!=null&&wn.call(p,g)}function JW(p,g){return p!=null&&g in On(p)}function QW(p,g,x){return p>=jr(g,x)&&p=120&&Re.length>=120)?new ju(X&&Re):n}Re=p[0];var Le=-1,Ze=J[0];e:for(;++Le-1;)J!==p&&Lm.call(J,ue,1),Lm.call(p,ue,1);return p}function n2(p,g){for(var x=p?g.length:0,C=x-1;x--;){var D=g[x];if(x==C||D!==V){var V=D;Es(D)?Lm.call(p,D,1):Ew(p,D)}}return p}function ww(p,g){return p+Fm(kO()*(g-p+1))}function d9(p,g,x,C){for(var D=-1,V=wr(km((g-p)/(x||1)),0),X=me(V);V--;)X[C?V:++D]=p,p+=x;return X}function xw(p,g){var x="";if(!p||g<1||g>j)return x;do g%2&&(x+=p),g=Fm(g/2),g&&(p+=p);while(g);return x}function Wt(p,g){return Vw(D2(p,g,ki),p+"")}function h9(p){return BO(Wf(p))}function p9(p,g){var x=Wf(p);return ey(x,Yu(g,0,x.length))}function Xh(p,g,x,C){if(!qn(p))return p;g=Al(g,p);for(var D=-1,V=g.length,X=V-1,J=p;J!=null&&++DD?0:D+g),x=x>D?D:x,x<0&&(x+=D),D=g>x?0:x-g>>>0,g>>>=0;for(var V=me(D);++C>>1,X=p[V];X!==null&&!co(X)&&(x?X<=g:X=i){var Ie=g?null:I9(p);if(Ie)return Cm(Ie);X=!1,D=$h,ue=new ju}else ue=g?[]:J;e:for(;++C=C?p:ko(p,g,x)}var u2=oW||function(p){return kr.clearTimeout(p)};function c2(p,g){if(g)return p.slice();var x=p.length,C=OO?OO(x):new p.constructor(x);return p.copy(C),C}function Rw(p){var g=new p.constructor(p.byteLength);return new Dm(g).set(new Dm(p)),g}function _9(p,g){var x=g?Rw(p.buffer):p.buffer;return new p.constructor(x,p.byteOffset,p.byteLength)}function b9(p){var g=new p.constructor(p.source,Nh.exec(p));return g.lastIndex=p.lastIndex,g}function S9(p){return Gh?On(Gh.call(p)):{}}function f2(p,g){var x=g?Rw(p.buffer):p.buffer;return new p.constructor(x,p.byteOffset,p.length)}function d2(p,g){if(p!==g){var x=p!==n,C=p===null,D=p===p,V=co(p),X=g!==n,J=g===null,ue=g===g,Ie=co(g);if(!J&&!Ie&&!V&&p>g||V&&X&&ue&&!J&&!Ie||C&&X&&ue||!x&&ue||!D)return 1;if(!C&&!V&&!Ie&&p=J)return ue;var Ie=x[C];return ue*(Ie=="desc"?-1:1)}}return p.index-g.index}function h2(p,g,x,C){for(var D=-1,V=p.length,X=x.length,J=-1,ue=g.length,Ie=wr(V-X,0),Re=me(ue+Ie),Le=!C;++J1?x[D-1]:n,X=D>2?x[2]:n;for(V=p.length>3&&typeof V=="function"?(D--,V):n,X&&vi(x[0],x[1],X)&&(V=D<3?n:V,D=1),g=On(g);++C-1?D[V?g[X]:X]:n}}function _2(p){return Ts(function(g){var x=g.length,C=x,D=Lo.prototype.thru;for(p&&g.reverse();C--;){var V=g[C];if(typeof V!="function")throw new Mo(a);if(D&&!X&&Jm(V)=="wrapper")var X=new Lo([],!0)}for(C=X?C:x;++C1&&rn.reverse(),Re&&ueJ))return!1;var Ie=V.get(p),Re=V.get(g);if(Ie&&Re)return Ie==g&&Re==p;var Le=-1,Ze=!0,ct=x&m?new ju:n;for(V.set(p,g),V.set(g,p);++Le1?"& ":"")+g[C],g=g.join(x>2?", ":" "),p.replace(mm,`{ + */var Tre=Vp.exports,pL;function Ere(){return pL||(pL=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,d=2,h=4,v=1,m=2,y=1,_=2,b=4,w=8,S=16,T=32,E=64,A=128,P=256,I=512,R=30,O="...",M=800,$=16,F=1,z=2,B=3,Y=1/0,j=9007199254740991,se=17976931348623157e292,ge=NaN,ve=4294967295,De=ve-1,Ne=ve>>>1,ze=[["ary",A],["bind",y],["bindKey",_],["curry",w],["curryRight",S],["flip",I],["partial",T],["partialRight",E],["rearg",P]],Me="[object Arguments]",je="[object Array]",ce="[object AsyncFunction]",Ce="[object Boolean]",Se="[object Date]",Te="[object DOMException]",Oe="[object Error]",$e="[object Function]",H="[object GeneratorFunction]",G="[object Map]",le="[object Number]",we="[object Null]",pe="[object Object]",U="[object Promise]",W="[object Proxy]",q="[object RegExp]",fe="[object Set]",_e="[object String]",Pe="[object Symbol]",Z="[object Undefined]",de="[object WeakMap]",Be="[object WeakSet]",Xe="[object ArrayBuffer]",ht="[object DataView]",ee="[object Float32Array]",ie="[object Float64Array]",he="[object Int8Array]",Ee="[object Int16Array]",He="[object Int32Array]",ne="[object Uint8Array]",Ae="[object Uint8ClampedArray]",ke="[object Uint16Array]",Qe="[object Uint32Array]",Ge=/\b__p \+= '';/g,We=/\b(__p \+=) '' \+/g,et=/(__e\(.*?\)|\b__t\)) \+\n'';/g,It=/&(?:amp|lt|gt|quot|#39);/g,Pt=/[&<>"']/g,Nn=RegExp(It.source),ca=RegExp(Pt.source),Pn=/<%-([\s\S]+?)%>/g,pr=/<%([\s\S]+?)%>/g,Rf=/<%=([\s\S]+?)%>/g,bl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ba=/^\w*$/,ym=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pf=/[\\^$.*+?()[\]{}|]/g,jS=RegExp(Pf.source),Di=/^\s+/,Of=/\s/,_m=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bm=/\{\n\/\* \[wrapped with (.+)\] \*/,Lh=/,? & /,Sm=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fa=/[()=,{}\[\]\/\s]/,wm=/\\(\\)?/g,xm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nh=/\w*$/,Tm=/^[-+]0x[0-9a-f]+$/i,YS=/^0b[01]+$/i,pt=/^\[object .+?Constructor\]$/,te=/^0o[0-7]+$/i,Ue=/^(?:0|[1-9]\d*)$/,at=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sn=/($^)/,Rr=/['\n\r\u2028\u2029\\]/g,er="\\ud800-\\udfff",Wr="\\u0300-\\u036f",Po="\\ufe20-\\ufe2f",Hu="\\u20d0-\\u20ff",Pr=Wr+Po+Hu,kh="\\u2700-\\u27bf",Fh="a-z\\xdf-\\xf6\\xf8-\\xff",oz="\\xac\\xb1\\xd7\\xf7",az="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sz="\\u2000-\\u206f",lz=" \\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",QP="A-Z\\xc0-\\xd6\\xd8-\\xde",eO="\\ufe0e\\ufe0f",tO=oz+az+sz+lz,XS="['’]",uz="["+er+"]",nO="["+tO+"]",Em="["+Pr+"]",rO="\\d+",cz="["+kh+"]",iO="["+Fh+"]",oO="[^"+er+tO+rO+kh+Fh+QP+"]",KS="\\ud83c[\\udffb-\\udfff]",fz="(?:"+Em+"|"+KS+")",aO="[^"+er+"]",ZS="(?:\\ud83c[\\udde6-\\uddff]){2}",qS="[\\ud800-\\udbff][\\udc00-\\udfff]",Df="["+QP+"]",sO="\\u200d",lO="(?:"+iO+"|"+oO+")",dz="(?:"+Df+"|"+oO+")",uO="(?:"+XS+"(?:d|ll|m|re|s|t|ve))?",cO="(?:"+XS+"(?:D|LL|M|RE|S|T|VE))?",fO=fz+"?",dO="["+eO+"]?",hz="(?:"+sO+"(?:"+[aO,ZS,qS].join("|")+")"+dO+fO+")*",pz="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vz="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hO=dO+fO+hz,gz="(?:"+[cz,ZS,qS].join("|")+")"+hO,mz="(?:"+[aO+Em+"?",Em,ZS,qS,uz].join("|")+")",yz=RegExp(XS,"g"),_z=RegExp(Em,"g"),JS=RegExp(KS+"(?="+KS+")|"+mz+hO,"g"),bz=RegExp([Df+"?"+iO+"+"+uO+"(?="+[nO,Df,"$"].join("|")+")",dz+"+"+cO+"(?="+[nO,Df+lO,"$"].join("|")+")",Df+"?"+lO+"+"+uO,Df+"+"+cO,vz,pz,rO,gz].join("|"),"g"),Sz=RegExp("["+sO+er+Pr+eO+"]"),wz=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xz=["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"],Tz=-1,Vn={};Vn[ee]=Vn[ie]=Vn[he]=Vn[Ee]=Vn[He]=Vn[ne]=Vn[Ae]=Vn[ke]=Vn[Qe]=!0,Vn[Me]=Vn[je]=Vn[Xe]=Vn[Ce]=Vn[ht]=Vn[Se]=Vn[Oe]=Vn[$e]=Vn[G]=Vn[le]=Vn[pe]=Vn[q]=Vn[fe]=Vn[_e]=Vn[de]=!1;var kn={};kn[Me]=kn[je]=kn[Xe]=kn[ht]=kn[Ce]=kn[Se]=kn[ee]=kn[ie]=kn[he]=kn[Ee]=kn[He]=kn[G]=kn[le]=kn[pe]=kn[q]=kn[fe]=kn[_e]=kn[Pe]=kn[ne]=kn[Ae]=kn[ke]=kn[Qe]=!0,kn[Oe]=kn[$e]=kn[de]=!1;var Ez={À:"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"},Cz={"&":"&","<":"<",">":">",'"':""","'":"'"},Az={"&":"&","<":"<",">":">",""":'"',"'":"'"},Iz={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Rz=parseFloat,Pz=parseInt,pO=typeof dy=="object"&&dy&&dy.Object===Object&&dy,Oz=typeof self=="object"&&self&&self.Object===Object&&self,kr=pO||Oz||Function("return this")(),QS=t&&!t.nodeType&&t,Gu=QS&&!0&&e&&!e.nodeType&&e,vO=Gu&&Gu.exports===QS,ew=vO&&pO.process,Oo=function(){try{var oe=Gu&&Gu.require&&Gu.require("util").types;return oe||ew&&ew.binding&&ew.binding("util")}catch{}}(),gO=Oo&&Oo.isArrayBuffer,mO=Oo&&Oo.isDate,yO=Oo&&Oo.isMap,_O=Oo&&Oo.isRegExp,bO=Oo&&Oo.isSet,SO=Oo&&Oo.isTypedArray;function so(oe,xe,me){switch(me.length){case 0:return oe.call(xe);case 1:return oe.call(xe,me[0]);case 2:return oe.call(xe,me[0],me[1]);case 3:return oe.call(xe,me[0],me[1],me[2])}return oe.apply(xe,me)}function Dz(oe,xe,me,nt){for(var Lt=-1,dn=oe==null?0:oe.length;++Lt-1}function tw(oe,xe,me){for(var nt=-1,Lt=oe==null?0:oe.length;++nt-1;);return me}function RO(oe,xe){for(var me=oe.length;me--&&Mf(xe,oe[me],0)>-1;);return me}function Uz(oe,xe){for(var me=oe.length,nt=0;me--;)oe[me]===xe&&++nt;return nt}var Hz=ow(Ez),Gz=ow(Cz);function zz(oe){return"\\"+Iz[oe]}function Wz(oe,xe){return oe==null?n:oe[xe]}function Lf(oe){return Sz.test(oe)}function jz(oe){return wz.test(oe)}function Yz(oe){for(var xe,me=[];!(xe=oe.next()).done;)me.push(xe.value);return me}function uw(oe){var xe=-1,me=Array(oe.size);return oe.forEach(function(nt,Lt){me[++xe]=[Lt,nt]}),me}function PO(oe,xe){return function(me){return oe(xe(me))}}function xl(oe,xe){for(var me=-1,nt=oe.length,Lt=0,dn=[];++me-1}function LW(p,g){var x=this.__data__,C=Gm(x,p);return C<0?(++this.size,x.push([p,g])):x[C][1]=g,this}bs.prototype.clear=PW,bs.prototype.delete=OW,bs.prototype.get=DW,bs.prototype.has=MW,bs.prototype.set=LW;function Ss(p){var g=-1,x=p==null?0:p.length;for(this.clear();++g=g?p:g)),p}function No(p,g,x,C,D,V){var X,J=g&f,ue=g&d,Ie=g&h;if(x&&(X=D?x(p,C,D,V):x(p)),X!==n)return X;if(!qn(p))return p;var Re=Ft(p);if(Re){if(X=$9(p),!J)return Mi(p,X)}else{var Le=Yr(p),Ze=Le==$e||Le==H;if(Rl(p))return d2(p,J);if(Le==pe||Le==Me||Ze&&!D){if(X=ue||Ze?{}:O2(p),!J)return ue?A9(p,ZW(X,p)):C9(p,HO(X,p))}else{if(!kn[Le])return D?p:{};X=B9(p,Le,J)}}V||(V=new ha);var ct=V.get(p);if(ct)return ct;V.set(p,X),aD(p)?p.forEach(function(wt){X.add(No(wt,g,x,wt,p,V))}):iD(p)&&p.forEach(function(wt,Zt){X.set(Zt,No(wt,g,x,Zt,p,V))});var St=Ie?ue?Nw:Lw:ue?Ni:Or,zt=Re?n:St(p);return Do(zt||p,function(wt,Zt){zt&&(Zt=wt,wt=p[Zt]),zh(X,Zt,No(wt,g,x,Zt,p,V))}),X}function qW(p){var g=Or(p);return function(x){return GO(x,p,g)}}function GO(p,g,x){var C=x.length;if(p==null)return!C;for(p=On(p);C--;){var D=x[C],V=g[D],X=p[D];if(X===n&&!(D in p)||!V(X))return!1}return!0}function zO(p,g,x){if(typeof p!="function")throw new Mo(a);return qh(function(){p.apply(n,x)},g)}function Wh(p,g,x,C){var D=-1,V=Cm,X=!0,J=p.length,ue=[],Ie=g.length;if(!J)return ue;x&&(g=zn(g,lo(x))),C?(V=tw,X=!1):g.length>=i&&(V=$h,X=!1,g=new ju(g));e:for(;++DD?0:D+x),C=C===n||C>D?D:Ut(C),C<0&&(C+=D),C=x>C?0:lD(C);x0&&x(J)?g>1?Fr(J,g-1,x,C,D):wl(D,J):C||(D[D.length]=J)}return D}var gw=y2(),YO=y2(!0);function Va(p,g){return p&&gw(p,g,Or)}function mw(p,g){return p&&YO(p,g,Or)}function Wm(p,g){return Sl(g,function(x){return Cs(p[x])})}function Xu(p,g){g=Al(g,p);for(var x=0,C=g.length;p!=null&&xg}function e9(p,g){return p!=null&&wn.call(p,g)}function t9(p,g){return p!=null&&g in On(p)}function n9(p,g,x){return p>=jr(g,x)&&p=120&&Re.length>=120)?new ju(X&&Re):n}Re=p[0];var Le=-1,Ze=J[0];e:for(;++Le-1;)J!==p&&km.call(J,ue,1),km.call(p,ue,1);return p}function i2(p,g){for(var x=p?g.length:0,C=x-1;x--;){var D=g[x];if(x==C||D!==V){var V=D;Es(D)?km.call(p,D,1):Aw(p,D)}}return p}function Tw(p,g){return p+Bm($O()*(g-p+1))}function v9(p,g,x,C){for(var D=-1,V=wr($m((g-p)/(x||1)),0),X=me(V);V--;)X[C?V:++D]=p,p+=x;return X}function Ew(p,g){var x="";if(!p||g<1||g>j)return x;do g%2&&(x+=p),g=Bm(g/2),g&&(p+=p);while(g);return x}function Wt(p,g){return Hw(L2(p,g,ki),p+"")}function g9(p){return UO(Wf(p))}function m9(p,g){var x=Wf(p);return ny(x,Yu(g,0,x.length))}function Xh(p,g,x,C){if(!qn(p))return p;g=Al(g,p);for(var D=-1,V=g.length,X=V-1,J=p;J!=null&&++DD?0:D+g),x=x>D?D:x,x<0&&(x+=D),D=g>x?0:x-g>>>0,g>>>=0;for(var V=me(D);++C>>1,X=p[V];X!==null&&!co(X)&&(x?X<=g:X=i){var Ie=g?null:O9(p);if(Ie)return Im(Ie);X=!1,D=$h,ue=new ju}else ue=g?[]:J;e:for(;++C=C?p:ko(p,g,x)}var f2=lW||function(p){return kr.clearTimeout(p)};function d2(p,g){if(g)return p.slice();var x=p.length,C=MO?MO(x):new p.constructor(x);return p.copy(C),C}function Ow(p){var g=new p.constructor(p.byteLength);return new Lm(g).set(new Lm(p)),g}function w9(p,g){var x=g?Ow(p.buffer):p.buffer;return new p.constructor(x,p.byteOffset,p.byteLength)}function x9(p){var g=new p.constructor(p.source,Nh.exec(p));return g.lastIndex=p.lastIndex,g}function T9(p){return Gh?On(Gh.call(p)):{}}function h2(p,g){var x=g?Ow(p.buffer):p.buffer;return new p.constructor(x,p.byteOffset,p.length)}function p2(p,g){if(p!==g){var x=p!==n,C=p===null,D=p===p,V=co(p),X=g!==n,J=g===null,ue=g===g,Ie=co(g);if(!J&&!Ie&&!V&&p>g||V&&X&&ue&&!J&&!Ie||C&&X&&ue||!x&&ue||!D)return 1;if(!C&&!V&&!Ie&&p=J)return ue;var Ie=x[C];return ue*(Ie=="desc"?-1:1)}}return p.index-g.index}function v2(p,g,x,C){for(var D=-1,V=p.length,X=x.length,J=-1,ue=g.length,Ie=wr(V-X,0),Re=me(ue+Ie),Le=!C;++J1?x[D-1]:n,X=D>2?x[2]:n;for(V=p.length>3&&typeof V=="function"?(D--,V):n,X&&gi(x[0],x[1],X)&&(V=D<3?n:V,D=1),g=On(g);++C-1?D[V?g[X]:X]:n}}function S2(p){return Ts(function(g){var x=g.length,C=x,D=Lo.prototype.thru;for(p&&g.reverse();C--;){var V=g[C];if(typeof V!="function")throw new Mo(a);if(D&&!X&&ey(V)=="wrapper")var X=new Lo([],!0)}for(C=X?C:x;++C1&&rn.reverse(),Re&&ueJ))return!1;var Ie=V.get(p),Re=V.get(g);if(Ie&&Re)return Ie==g&&Re==p;var Le=-1,Ze=!0,ct=x&m?new ju:n;for(V.set(p,g),V.set(g,p);++Le1?"& ":"")+g[C],g=g.join(x>2?", ":" "),p.replace(_m,`{ /* [wrapped with `+g+`] */ -`)}function $9(p){return Ft(p)||qu(p)||!!(LO&&p&&p[LO])}function Es(p,g){var x=typeof p;return g=g??j,!!g&&(x=="number"||x!="symbol"&&Ue.test(p))&&p>-1&&p%1==0&&p0){if(++g>=M)return arguments[0]}else g=0;return p.apply(n,arguments)}}function ey(p,g){var x=-1,C=p.length,D=C-1;for(g=g===n?C:g;++x1?p[g-1]:n;return x=typeof x=="function"?(p.pop(),x):n,z2(p,x)});function W2(p){var g=k(p);return g.__chain__=!0,g}function K7(p,g){return g(p),p}function ty(p,g){return g(p)}var Z7=Ts(function(p){var g=p.length,x=g?p[0]:0,C=this.__wrapped__,D=function(V){return hw(V,p)};return g>1||this.__actions__.length||!(C instanceof en)||!Es(x)?this.thru(D):(C=C.slice(x,+x+(g?1:0)),C.__actions__.push({func:ty,args:[D],thisArg:n}),new Lo(C,this.__chain__).thru(function(V){return g&&!V.length&&V.push(n),V}))});function q7(){return W2(this)}function J7(){return new Lo(this.value(),this.__chain__)}function Q7(){this.__values__===n&&(this.__values__=oD(this.value()));var p=this.__index__>=this.__values__.length,g=p?n:this.__values__[this.__index__++];return{done:p,value:g}}function ej(){return this}function tj(p){for(var g,x=this;x instanceof Vm;){var C=$2(x);C.__index__=0,C.__values__=n,g?D.__wrapped__=C:g=C;var D=C;x=x.__wrapped__}return D.__wrapped__=p,g}function nj(){var p=this.__wrapped__;if(p instanceof en){var g=p;return this.__actions__.length&&(g=new en(this)),g=g.reverse(),g.__actions__.push({func:ty,args:[Uw],thisArg:n}),new Lo(g,this.__chain__)}return this.thru(Uw)}function rj(){return s2(this.__wrapped__,this.__actions__)}var ij=Ym(function(p,g,x){wn.call(p,x)?++p[x]:ws(p,x,1)});function oj(p,g,x){var C=Ft(p)?bO:KW;return x&&vi(p,g,x)&&(g=n),C(p,yt(g,3))}function aj(p,g){var x=Ft(p)?Sl:zO;return x(p,yt(g,3))}var sj=y2(B2),lj=y2(V2);function uj(p,g){return Fr(ny(p,g),1)}function cj(p,g){return Fr(ny(p,g),Y)}function fj(p,g,x){return x=x===n?1:Ut(x),Fr(ny(p,g),x)}function j2(p,g){var x=Ft(p)?Do:El;return x(p,yt(g,3))}function Y2(p,g){var x=Ft(p)?Pz:GO;return x(p,yt(g,3))}var dj=Ym(function(p,g,x){wn.call(p,x)?p[x].push(g):ws(p,x,[g])});function hj(p,g,x,C){p=Li(p)?p:Wf(p),x=x&&!C?Ut(x):0;var D=p.length;return x<0&&(x=wr(D+x,0)),sy(p)?x<=D&&p.indexOf(g,x)>-1:!!D&&Mf(p,g,x)>-1}var pj=Wt(function(p,g,x){var C=-1,D=typeof g=="function",V=Li(p)?me(p.length):[];return El(p,function(X){V[++C]=D?so(g,X,x):jh(X,g,x)}),V}),vj=Ym(function(p,g,x){ws(p,x,g)});function ny(p,g){var x=Ft(p)?zn:ZO;return x(p,yt(g,3))}function gj(p,g,x,C){return p==null?[]:(Ft(g)||(g=g==null?[]:[g]),x=C?n:x,Ft(x)||(x=x==null?[]:[x]),e2(p,g,x))}var mj=Ym(function(p,g,x){p[x?0:1].push(g)},function(){return[[],[]]});function yj(p,g,x){var C=Ft(p)?ew:TO,D=arguments.length<3;return C(p,yt(g,4),x,D,El)}function _j(p,g,x){var C=Ft(p)?Oz:TO,D=arguments.length<3;return C(p,yt(g,4),x,D,GO)}function bj(p,g){var x=Ft(p)?Sl:zO;return x(p,oy(yt(g,3)))}function Sj(p){var g=Ft(p)?BO:h9;return g(p)}function wj(p,g,x){(x?vi(p,g,x):g===n)?g=1:g=Ut(g);var C=Ft(p)?zW:p9;return C(p,g)}function xj(p){var g=Ft(p)?WW:g9;return g(p)}function Tj(p){if(p==null)return 0;if(Li(p))return sy(p)?Nf(p):p.length;var g=Yr(p);return g==G||g==fe?p.size:_w(p).length}function Ej(p,g,x){var C=Ft(p)?tw:m9;return x&&vi(p,g,x)&&(g=n),C(p,yt(g,3))}var Cj=Wt(function(p,g){if(p==null)return[];var x=g.length;return x>1&&vi(p,g[0],g[1])?g=[]:x>2&&vi(g[0],g[1],g[2])&&(g=[g[0]]),e2(p,Fr(g,1),[])}),ry=aW||function(){return kr.Date.now()};function Aj(p,g){if(typeof g!="function")throw new Mo(a);return p=Ut(p),function(){if(--p<1)return g.apply(this,arguments)}}function X2(p,g,x){return g=x?n:g,g=p&&g==null?p.length:g,xs(p,A,n,n,n,n,g)}function K2(p,g){var x;if(typeof g!="function")throw new Mo(a);return p=Ut(p),function(){return--p>0&&(x=g.apply(this,arguments)),p<=1&&(g=n),x}}var Gw=Wt(function(p,g,x){var C=y;if(x.length){var D=xl(x,Gf(Gw));C|=E}return xs(p,C,g,x,D)}),Z2=Wt(function(p,g,x){var C=y|_;if(x.length){var D=xl(x,Gf(Z2));C|=E}return xs(g,C,p,x,D)});function q2(p,g,x){g=x?n:g;var C=xs(p,w,n,n,n,n,n,g);return C.placeholder=q2.placeholder,C}function J2(p,g,x){g=x?n:g;var C=xs(p,S,n,n,n,n,n,g);return C.placeholder=J2.placeholder,C}function Q2(p,g,x){var C,D,V,X,J,ue,Ie=0,Re=!1,Le=!1,Ze=!0;if(typeof p!="function")throw new Mo(a);g=$o(g)||0,qn(x)&&(Re=!!x.leading,Le="maxWait"in x,V=Le?wr($o(x.maxWait)||0,g):V,Ze="trailing"in x?!!x.trailing:Ze);function ct(cr){var va=C,Is=D;return C=D=n,Ie=cr,X=p.apply(Is,va),X}function St(cr){return Ie=cr,J=qh(Zt,g),Re?ct(cr):X}function zt(cr){var va=cr-ue,Is=cr-Ie,yD=g-va;return Le?jr(yD,V-Is):yD}function wt(cr){var va=cr-ue,Is=cr-Ie;return ue===n||va>=g||va<0||Le&&Is>=V}function Zt(){var cr=ry();if(wt(cr))return rn(cr);J=qh(Zt,zt(cr))}function rn(cr){return J=n,Ze&&C?ct(cr):(C=D=n,X)}function fo(){J!==n&&u2(J),Ie=0,C=ue=D=J=n}function gi(){return J===n?X:rn(ry())}function ho(){var cr=ry(),va=wt(cr);if(C=arguments,D=this,ue=cr,va){if(J===n)return St(ue);if(Le)return u2(J),J=qh(Zt,g),ct(ue)}return J===n&&(J=qh(Zt,g)),X}return ho.cancel=fo,ho.flush=gi,ho}var Ij=Wt(function(p,g){return HO(p,1,g)}),Rj=Wt(function(p,g,x){return HO(p,$o(g)||0,x)});function Pj(p){return xs(p,I)}function iy(p,g){if(typeof p!="function"||g!=null&&typeof g!="function")throw new Mo(a);var x=function(){var C=arguments,D=g?g.apply(this,C):C[0],V=x.cache;if(V.has(D))return V.get(D);var X=p.apply(this,C);return x.cache=V.set(D,X)||V,X};return x.cache=new(iy.Cache||Ss),x}iy.Cache=Ss;function oy(p){if(typeof p!="function")throw new Mo(a);return function(){var g=arguments;switch(g.length){case 0:return!p.call(this);case 1:return!p.call(this,g[0]);case 2:return!p.call(this,g[0],g[1]);case 3:return!p.call(this,g[0],g[1],g[2])}return!p.apply(this,g)}}function Oj(p){return K2(2,p)}var Dj=y9(function(p,g){g=g.length==1&&Ft(g[0])?zn(g[0],lo(yt())):zn(Fr(g,1),lo(yt()));var x=g.length;return Wt(function(C){for(var D=-1,V=jr(C.length,x);++D=g}),qu=YO(function(){return arguments}())?YO:function(p){return tr(p)&&wn.call(p,"callee")&&!MO.call(p,"callee")},Ft=me.isArray,Yj=pO?lo(pO):t9;function Li(p){return p!=null&&ay(p.length)&&!Cs(p)}function ur(p){return tr(p)&&Li(p)}function Xj(p){return p===!0||p===!1||tr(p)&&pi(p)==Ce}var Rl=lW||tx,Kj=vO?lo(vO):n9;function Zj(p){return tr(p)&&p.nodeType===1&&!Jh(p)}function qj(p){if(p==null)return!0;if(Li(p)&&(Ft(p)||typeof p=="string"||typeof p.splice=="function"||Rl(p)||zf(p)||qu(p)))return!p.length;var g=Yr(p);if(g==G||g==fe)return!p.size;if(Zh(p))return!_w(p).length;for(var x in p)if(wn.call(p,x))return!1;return!0}function Jj(p,g){return Yh(p,g)}function Qj(p,g,x){x=typeof x=="function"?x:n;var C=x?x(p,g):n;return C===n?Yh(p,g,n,x):!!C}function Ww(p){if(!tr(p))return!1;var g=pi(p);return g==Oe||g==Te||typeof p.message=="string"&&typeof p.name=="string"&&!Jh(p)}function eY(p){return typeof p=="number"&&NO(p)}function Cs(p){if(!qn(p))return!1;var g=pi(p);return g==$e||g==H||g==ce||g==W}function tD(p){return typeof p=="number"&&p==Ut(p)}function ay(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=j}function qn(p){var g=typeof p;return p!=null&&(g=="object"||g=="function")}function tr(p){return p!=null&&typeof p=="object"}var nD=gO?lo(gO):i9;function tY(p,g){return p===g||yw(p,g,Nw(g))}function nY(p,g,x){return x=typeof x=="function"?x:n,yw(p,g,Nw(g),x)}function rY(p){return rD(p)&&p!=+p}function iY(p){if(U9(p))throw new Mt(o);return XO(p)}function oY(p){return p===null}function aY(p){return p==null}function rD(p){return typeof p=="number"||tr(p)&&pi(p)==le}function Jh(p){if(!tr(p)||pi(p)!=pe)return!1;var g=Mm(p);if(g===null)return!0;var x=wn.call(g,"constructor")&&g.constructor;return typeof x=="function"&&x instanceof x&&Rm.call(x)==nW}var jw=mO?lo(mO):o9;function sY(p){return tD(p)&&p>=-j&&p<=j}var iD=yO?lo(yO):a9;function sy(p){return typeof p=="string"||!Ft(p)&&tr(p)&&pi(p)==_e}function co(p){return typeof p=="symbol"||tr(p)&&pi(p)==Pe}var zf=_O?lo(_O):s9;function lY(p){return p===n}function uY(p){return tr(p)&&Yr(p)==de}function cY(p){return tr(p)&&pi(p)==Be}var fY=qm(bw),dY=qm(function(p,g){return p<=g});function oD(p){if(!p)return[];if(Li(p))return sy(p)?da(p):Mi(p);if(Bh&&p[Bh])return zz(p[Bh]());var g=Yr(p),x=g==G?sw:g==fe?Cm:Wf;return x(p)}function As(p){if(!p)return p===0?p:0;if(p=$o(p),p===Y||p===-Y){var g=p<0?-1:1;return g*ae}return p===p?p:0}function Ut(p){var g=As(p),x=g%1;return g===g?x?g-x:g:0}function aD(p){return p?Yu(Ut(p),0,ve):0}function $o(p){if(typeof p=="number")return p;if(co(p))return ge;if(qn(p)){var g=typeof p.valueOf=="function"?p.valueOf():p;p=qn(g)?g+"":g}if(typeof p!="string")return p===0?p:+p;p=EO(p);var x=WS.test(p);return x||te.test(p)?Az(p.slice(2),x?2:8):wm.test(p)?ge:+p}function sD(p){return Ua(p,Ni(p))}function hY(p){return p?Yu(Ut(p),-j,j):p===0?p:0}function gn(p){return p==null?"":uo(p)}var pY=Uf(function(p,g){if(Zh(g)||Li(g)){Ua(g,Or(g),p);return}for(var x in g)wn.call(g,x)&&zh(p,x,g[x])}),lD=Uf(function(p,g){Ua(g,Ni(g),p)}),ly=Uf(function(p,g,x,C){Ua(g,Ni(g),p,C)}),vY=Uf(function(p,g,x,C){Ua(g,Or(g),p,C)}),gY=Ts(hw);function mY(p,g){var x=Vf(p);return g==null?x:VO(x,g)}var yY=Wt(function(p,g){p=On(p);var x=-1,C=g.length,D=C>2?g[2]:n;for(D&&vi(g[0],g[1],D)&&(C=1);++x1),V}),Ua(p,Mw(p),x),C&&(x=No(x,f|d|h,R9));for(var D=g.length;D--;)Ew(x,g[D]);return x});function kY(p,g){return cD(p,oy(yt(g)))}var FY=Ts(function(p,g){return p==null?{}:c9(p,g)});function cD(p,g){if(p==null)return{};var x=zn(Mw(p),function(C){return[C]});return g=yt(g),t2(p,x,function(C,D){return g(C,D[0])})}function $Y(p,g,x){g=Al(g,p);var C=-1,D=g.length;for(D||(D=1,p=n);++Cg){var C=p;p=g,g=C}if(x||p%1||g%1){var D=kO();return jr(p+D*(g-p+Cz("1e-"+((D+"").length-1))),g)}return ww(p,g)}var KY=Hf(function(p,g,x){return g=g.toLowerCase(),p+(x?hD(g):g)});function hD(p){return Kw(gn(p).toLowerCase())}function pD(p){return p=gn(p),p&&p.replace(at,Bz).replace(gz,"")}function ZY(p,g,x){p=gn(p),g=uo(g);var C=p.length;x=x===n?C:Yu(Ut(x),0,C);var D=x;return x-=g.length,x>=0&&p.slice(x,D)==g}function qY(p){return p=gn(p),p&&ca.test(p)?p.replace(Pt,Vz):p}function JY(p){return p=gn(p),p&&zS.test(p)?p.replace(Pf,"\\$&"):p}var QY=Hf(function(p,g,x){return p+(x?"-":"")+g.toLowerCase()}),eX=Hf(function(p,g,x){return p+(x?" ":"")+g.toLowerCase()}),tX=m2("toLowerCase");function nX(p,g,x){p=gn(p),g=Ut(g);var C=g?Nf(p):0;if(!g||C>=g)return p;var D=(g-C)/2;return Zm(Fm(D),x)+p+Zm(km(D),x)}function rX(p,g,x){p=gn(p),g=Ut(g);var C=g?Nf(p):0;return g&&C>>0,x?(p=gn(p),p&&(typeof g=="string"||g!=null&&!jw(g))&&(g=uo(g),!g&&Lf(p))?Il(da(p),0,x):p.split(g,x)):[]}var cX=Hf(function(p,g,x){return p+(x?" ":"")+Kw(g)});function fX(p,g,x){return p=gn(p),x=x==null?0:Yu(Ut(x),0,p.length),g=uo(g),p.slice(x,x+g.length)==g}function dX(p,g,x){var C=k.templateSettings;x&&vi(p,g,x)&&(g=n),p=gn(p),g=ly({},g,C,T2);var D=ly({},g.imports,C.imports,T2),V=Or(D),X=aw(D,V),J,ue,Ie=0,Re=g.interpolate||Sn,Le="__p += '",Ze=lw((g.escape||Sn).source+"|"+Re.source+"|"+(Re===Rf?Sm:Sn).source+"|"+(g.evaluate||Sn).source+"|$","g"),ct="//# sourceURL="+(wn.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Sz+"]")+` -`;p.replace(Ze,function(wt,Zt,rn,fo,gi,ho){return rn||(rn=fo),Le+=p.slice(Ie,ho).replace(Rr,Uz),Zt&&(J=!0,Le+=`' + +`)}function U9(p){return Ft(p)||qu(p)||!!(kO&&p&&p[kO])}function Es(p,g){var x=typeof p;return g=g??j,!!g&&(x=="number"||x!="symbol"&&Ue.test(p))&&p>-1&&p%1==0&&p0){if(++g>=M)return arguments[0]}else g=0;return p.apply(n,arguments)}}function ny(p,g){var x=-1,C=p.length,D=C-1;for(g=g===n?C:g;++x1?p[g-1]:n;return x=typeof x=="function"?(p.pop(),x):n,j2(p,x)});function Y2(p){var g=k(p);return g.__chain__=!0,g}function J7(p,g){return g(p),p}function ry(p,g){return g(p)}var Q7=Ts(function(p){var g=p.length,x=g?p[0]:0,C=this.__wrapped__,D=function(V){return vw(V,p)};return g>1||this.__actions__.length||!(C instanceof en)||!Es(x)?this.thru(D):(C=C.slice(x,+x+(g?1:0)),C.__actions__.push({func:ry,args:[D],thisArg:n}),new Lo(C,this.__chain__).thru(function(V){return g&&!V.length&&V.push(n),V}))});function ej(){return Y2(this)}function tj(){return new Lo(this.value(),this.__chain__)}function nj(){this.__values__===n&&(this.__values__=sD(this.value()));var p=this.__index__>=this.__values__.length,g=p?n:this.__values__[this.__index__++];return{done:p,value:g}}function rj(){return this}function ij(p){for(var g,x=this;x instanceof Hm;){var C=V2(x);C.__index__=0,C.__values__=n,g?D.__wrapped__=C:g=C;var D=C;x=x.__wrapped__}return D.__wrapped__=p,g}function oj(){var p=this.__wrapped__;if(p instanceof en){var g=p;return this.__actions__.length&&(g=new en(this)),g=g.reverse(),g.__actions__.push({func:ry,args:[Gw],thisArg:n}),new Lo(g,this.__chain__)}return this.thru(Gw)}function aj(){return u2(this.__wrapped__,this.__actions__)}var sj=Km(function(p,g,x){wn.call(p,x)?++p[x]:ws(p,x,1)});function lj(p,g,x){var C=Ft(p)?wO:JW;return x&&gi(p,g,x)&&(g=n),C(p,_t(g,3))}function uj(p,g){var x=Ft(p)?Sl:jO;return x(p,_t(g,3))}var cj=b2(U2),fj=b2(H2);function dj(p,g){return Fr(iy(p,g),1)}function hj(p,g){return Fr(iy(p,g),Y)}function pj(p,g,x){return x=x===n?1:Ut(x),Fr(iy(p,g),x)}function X2(p,g){var x=Ft(p)?Do:El;return x(p,_t(g,3))}function K2(p,g){var x=Ft(p)?Mz:WO;return x(p,_t(g,3))}var vj=Km(function(p,g,x){wn.call(p,x)?p[x].push(g):ws(p,x,[g])});function gj(p,g,x,C){p=Li(p)?p:Wf(p),x=x&&!C?Ut(x):0;var D=p.length;return x<0&&(x=wr(D+x,0)),uy(p)?x<=D&&p.indexOf(g,x)>-1:!!D&&Mf(p,g,x)>-1}var mj=Wt(function(p,g,x){var C=-1,D=typeof g=="function",V=Li(p)?me(p.length):[];return El(p,function(X){V[++C]=D?so(g,X,x):jh(X,g,x)}),V}),yj=Km(function(p,g,x){ws(p,x,g)});function iy(p,g){var x=Ft(p)?zn:JO;return x(p,_t(g,3))}function _j(p,g,x,C){return p==null?[]:(Ft(g)||(g=g==null?[]:[g]),x=C?n:x,Ft(x)||(x=x==null?[]:[x]),n2(p,g,x))}var bj=Km(function(p,g,x){p[x?0:1].push(g)},function(){return[[],[]]});function Sj(p,g,x){var C=Ft(p)?nw:CO,D=arguments.length<3;return C(p,_t(g,4),x,D,El)}function wj(p,g,x){var C=Ft(p)?Lz:CO,D=arguments.length<3;return C(p,_t(g,4),x,D,WO)}function xj(p,g){var x=Ft(p)?Sl:jO;return x(p,sy(_t(g,3)))}function Tj(p){var g=Ft(p)?UO:g9;return g(p)}function Ej(p,g,x){(x?gi(p,g,x):g===n)?g=1:g=Ut(g);var C=Ft(p)?YW:m9;return C(p,g)}function Cj(p){var g=Ft(p)?XW:_9;return g(p)}function Aj(p){if(p==null)return 0;if(Li(p))return uy(p)?Nf(p):p.length;var g=Yr(p);return g==G||g==fe?p.size:Sw(p).length}function Ij(p,g,x){var C=Ft(p)?rw:b9;return x&&gi(p,g,x)&&(g=n),C(p,_t(g,3))}var Rj=Wt(function(p,g){if(p==null)return[];var x=g.length;return x>1&&gi(p,g[0],g[1])?g=[]:x>2&&gi(g[0],g[1],g[2])&&(g=[g[0]]),n2(p,Fr(g,1),[])}),oy=uW||function(){return kr.Date.now()};function Pj(p,g){if(typeof g!="function")throw new Mo(a);return p=Ut(p),function(){if(--p<1)return g.apply(this,arguments)}}function Z2(p,g,x){return g=x?n:g,g=p&&g==null?p.length:g,xs(p,A,n,n,n,n,g)}function q2(p,g){var x;if(typeof g!="function")throw new Mo(a);return p=Ut(p),function(){return--p>0&&(x=g.apply(this,arguments)),p<=1&&(g=n),x}}var Ww=Wt(function(p,g,x){var C=y;if(x.length){var D=xl(x,Gf(Ww));C|=T}return xs(p,C,g,x,D)}),J2=Wt(function(p,g,x){var C=y|_;if(x.length){var D=xl(x,Gf(J2));C|=T}return xs(g,C,p,x,D)});function Q2(p,g,x){g=x?n:g;var C=xs(p,w,n,n,n,n,n,g);return C.placeholder=Q2.placeholder,C}function eD(p,g,x){g=x?n:g;var C=xs(p,S,n,n,n,n,n,g);return C.placeholder=eD.placeholder,C}function tD(p,g,x){var C,D,V,X,J,ue,Ie=0,Re=!1,Le=!1,Ze=!0;if(typeof p!="function")throw new Mo(a);g=$o(g)||0,qn(x)&&(Re=!!x.leading,Le="maxWait"in x,V=Le?wr($o(x.maxWait)||0,g):V,Ze="trailing"in x?!!x.trailing:Ze);function ct(cr){var va=C,Is=D;return C=D=n,Ie=cr,X=p.apply(Is,va),X}function St(cr){return Ie=cr,J=qh(Zt,g),Re?ct(cr):X}function zt(cr){var va=cr-ue,Is=cr-Ie,bD=g-va;return Le?jr(bD,V-Is):bD}function wt(cr){var va=cr-ue,Is=cr-Ie;return ue===n||va>=g||va<0||Le&&Is>=V}function Zt(){var cr=oy();if(wt(cr))return rn(cr);J=qh(Zt,zt(cr))}function rn(cr){return J=n,Ze&&C?ct(cr):(C=D=n,X)}function fo(){J!==n&&f2(J),Ie=0,C=ue=D=J=n}function mi(){return J===n?X:rn(oy())}function ho(){var cr=oy(),va=wt(cr);if(C=arguments,D=this,ue=cr,va){if(J===n)return St(ue);if(Le)return f2(J),J=qh(Zt,g),ct(ue)}return J===n&&(J=qh(Zt,g)),X}return ho.cancel=fo,ho.flush=mi,ho}var Oj=Wt(function(p,g){return zO(p,1,g)}),Dj=Wt(function(p,g,x){return zO(p,$o(g)||0,x)});function Mj(p){return xs(p,I)}function ay(p,g){if(typeof p!="function"||g!=null&&typeof g!="function")throw new Mo(a);var x=function(){var C=arguments,D=g?g.apply(this,C):C[0],V=x.cache;if(V.has(D))return V.get(D);var X=p.apply(this,C);return x.cache=V.set(D,X)||V,X};return x.cache=new(ay.Cache||Ss),x}ay.Cache=Ss;function sy(p){if(typeof p!="function")throw new Mo(a);return function(){var g=arguments;switch(g.length){case 0:return!p.call(this);case 1:return!p.call(this,g[0]);case 2:return!p.call(this,g[0],g[1]);case 3:return!p.call(this,g[0],g[1],g[2])}return!p.apply(this,g)}}function Lj(p){return q2(2,p)}var Nj=S9(function(p,g){g=g.length==1&&Ft(g[0])?zn(g[0],lo(_t())):zn(Fr(g,1),lo(_t()));var x=g.length;return Wt(function(C){for(var D=-1,V=jr(C.length,x);++D=g}),qu=KO(function(){return arguments}())?KO:function(p){return tr(p)&&wn.call(p,"callee")&&!NO.call(p,"callee")},Ft=me.isArray,Zj=gO?lo(gO):i9;function Li(p){return p!=null&&ly(p.length)&&!Cs(p)}function ur(p){return tr(p)&&Li(p)}function qj(p){return p===!0||p===!1||tr(p)&&vi(p)==Ce}var Rl=fW||rx,Jj=mO?lo(mO):o9;function Qj(p){return tr(p)&&p.nodeType===1&&!Jh(p)}function eY(p){if(p==null)return!0;if(Li(p)&&(Ft(p)||typeof p=="string"||typeof p.splice=="function"||Rl(p)||zf(p)||qu(p)))return!p.length;var g=Yr(p);if(g==G||g==fe)return!p.size;if(Zh(p))return!Sw(p).length;for(var x in p)if(wn.call(p,x))return!1;return!0}function tY(p,g){return Yh(p,g)}function nY(p,g,x){x=typeof x=="function"?x:n;var C=x?x(p,g):n;return C===n?Yh(p,g,n,x):!!C}function Yw(p){if(!tr(p))return!1;var g=vi(p);return g==Oe||g==Te||typeof p.message=="string"&&typeof p.name=="string"&&!Jh(p)}function rY(p){return typeof p=="number"&&FO(p)}function Cs(p){if(!qn(p))return!1;var g=vi(p);return g==$e||g==H||g==ce||g==W}function rD(p){return typeof p=="number"&&p==Ut(p)}function ly(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=j}function qn(p){var g=typeof p;return p!=null&&(g=="object"||g=="function")}function tr(p){return p!=null&&typeof p=="object"}var iD=yO?lo(yO):s9;function iY(p,g){return p===g||bw(p,g,Fw(g))}function oY(p,g,x){return x=typeof x=="function"?x:n,bw(p,g,Fw(g),x)}function aY(p){return oD(p)&&p!=+p}function sY(p){if(z9(p))throw new Lt(o);return ZO(p)}function lY(p){return p===null}function uY(p){return p==null}function oD(p){return typeof p=="number"||tr(p)&&vi(p)==le}function Jh(p){if(!tr(p)||vi(p)!=pe)return!1;var g=Nm(p);if(g===null)return!0;var x=wn.call(g,"constructor")&&g.constructor;return typeof x=="function"&&x instanceof x&&Om.call(x)==oW}var Xw=_O?lo(_O):l9;function cY(p){return rD(p)&&p>=-j&&p<=j}var aD=bO?lo(bO):u9;function uy(p){return typeof p=="string"||!Ft(p)&&tr(p)&&vi(p)==_e}function co(p){return typeof p=="symbol"||tr(p)&&vi(p)==Pe}var zf=SO?lo(SO):c9;function fY(p){return p===n}function dY(p){return tr(p)&&Yr(p)==de}function hY(p){return tr(p)&&vi(p)==Be}var pY=Qm(ww),vY=Qm(function(p,g){return p<=g});function sD(p){if(!p)return[];if(Li(p))return uy(p)?da(p):Mi(p);if(Bh&&p[Bh])return Yz(p[Bh]());var g=Yr(p),x=g==G?uw:g==fe?Im:Wf;return x(p)}function As(p){if(!p)return p===0?p:0;if(p=$o(p),p===Y||p===-Y){var g=p<0?-1:1;return g*se}return p===p?p:0}function Ut(p){var g=As(p),x=g%1;return g===g?x?g-x:g:0}function lD(p){return p?Yu(Ut(p),0,ve):0}function $o(p){if(typeof p=="number")return p;if(co(p))return ge;if(qn(p)){var g=typeof p.valueOf=="function"?p.valueOf():p;p=qn(g)?g+"":g}if(typeof p!="string")return p===0?p:+p;p=AO(p);var x=YS.test(p);return x||te.test(p)?Pz(p.slice(2),x?2:8):Tm.test(p)?ge:+p}function uD(p){return Ua(p,Ni(p))}function gY(p){return p?Yu(Ut(p),-j,j):p===0?p:0}function gn(p){return p==null?"":uo(p)}var mY=Uf(function(p,g){if(Zh(g)||Li(g)){Ua(g,Or(g),p);return}for(var x in g)wn.call(g,x)&&zh(p,x,g[x])}),cD=Uf(function(p,g){Ua(g,Ni(g),p)}),cy=Uf(function(p,g,x,C){Ua(g,Ni(g),p,C)}),yY=Uf(function(p,g,x,C){Ua(g,Or(g),p,C)}),_Y=Ts(vw);function bY(p,g){var x=Vf(p);return g==null?x:HO(x,g)}var SY=Wt(function(p,g){p=On(p);var x=-1,C=g.length,D=C>2?g[2]:n;for(D&&gi(g[0],g[1],D)&&(C=1);++x1),V}),Ua(p,Nw(p),x),C&&(x=No(x,f|d|h,D9));for(var D=g.length;D--;)Aw(x,g[D]);return x});function BY(p,g){return dD(p,sy(_t(g)))}var VY=Ts(function(p,g){return p==null?{}:h9(p,g)});function dD(p,g){if(p==null)return{};var x=zn(Nw(p),function(C){return[C]});return g=_t(g),r2(p,x,function(C,D){return g(C,D[0])})}function UY(p,g,x){g=Al(g,p);var C=-1,D=g.length;for(D||(D=1,p=n);++Cg){var C=p;p=g,g=C}if(x||p%1||g%1){var D=$O();return jr(p+D*(g-p+Rz("1e-"+((D+"").length-1))),g)}return Tw(p,g)}var JY=Hf(function(p,g,x){return g=g.toLowerCase(),p+(x?vD(g):g)});function vD(p){return qw(gn(p).toLowerCase())}function gD(p){return p=gn(p),p&&p.replace(at,Hz).replace(_z,"")}function QY(p,g,x){p=gn(p),g=uo(g);var C=p.length;x=x===n?C:Yu(Ut(x),0,C);var D=x;return x-=g.length,x>=0&&p.slice(x,D)==g}function eX(p){return p=gn(p),p&&ca.test(p)?p.replace(Pt,Gz):p}function tX(p){return p=gn(p),p&&jS.test(p)?p.replace(Pf,"\\$&"):p}var nX=Hf(function(p,g,x){return p+(x?"-":"")+g.toLowerCase()}),rX=Hf(function(p,g,x){return p+(x?" ":"")+g.toLowerCase()}),iX=_2("toLowerCase");function oX(p,g,x){p=gn(p),g=Ut(g);var C=g?Nf(p):0;if(!g||C>=g)return p;var D=(g-C)/2;return Jm(Bm(D),x)+p+Jm($m(D),x)}function aX(p,g,x){p=gn(p),g=Ut(g);var C=g?Nf(p):0;return g&&C>>0,x?(p=gn(p),p&&(typeof g=="string"||g!=null&&!Xw(g))&&(g=uo(g),!g&&Lf(p))?Il(da(p),0,x):p.split(g,x)):[]}var hX=Hf(function(p,g,x){return p+(x?" ":"")+qw(g)});function pX(p,g,x){return p=gn(p),x=x==null?0:Yu(Ut(x),0,p.length),g=uo(g),p.slice(x,x+g.length)==g}function vX(p,g,x){var C=k.templateSettings;x&&gi(p,g,x)&&(g=n),p=gn(p),g=cy({},g,C,C2);var D=cy({},g.imports,C.imports,C2),V=Or(D),X=lw(D,V),J,ue,Ie=0,Re=g.interpolate||Sn,Le="__p += '",Ze=cw((g.escape||Sn).source+"|"+Re.source+"|"+(Re===Rf?xm:Sn).source+"|"+(g.evaluate||Sn).source+"|$","g"),ct="//# sourceURL="+(wn.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Tz+"]")+` +`;p.replace(Ze,function(wt,Zt,rn,fo,mi,ho){return rn||(rn=fo),Le+=p.slice(Ie,ho).replace(Rr,zz),Zt&&(J=!0,Le+=`' + __e(`+Zt+`) + -'`),gi&&(ue=!0,Le+=`'; -`+gi+`; +'`),mi&&(ue=!0,Le+=`'; +`+mi+`; __p += '`),rn&&(Le+=`' + ((__t = (`+rn+`)) == null ? '' : __t) + '`),Ie=ho+wt.length,wt}),Le+=`'; `;var St=wn.call(g,"variable")&&g.variable;if(!St)Le=`with (obj) { `+Le+` } -`;else if(fa.test(St))throw new Mt(s);Le=(ue?Le.replace(Ge,""):Le).replace(We,"$1").replace(et,"$1;"),Le="function("+(St||"obj")+`) { +`;else if(fa.test(St))throw new Lt(s);Le=(ue?Le.replace(Ge,""):Le).replace(We,"$1").replace(et,"$1;"),Le="function("+(St||"obj")+`) { `+(St?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(ue?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Le+`return __p -}`;var zt=gD(function(){return dn(V,ct+"return "+Le).apply(n,X)});if(zt.source=Le,Ww(zt))throw zt;return zt}function hX(p){return gn(p).toLowerCase()}function pX(p){return gn(p).toUpperCase()}function vX(p,g,x){if(p=gn(p),p&&(x||g===n))return EO(p);if(!p||!(g=uo(g)))return p;var C=da(p),D=da(g),V=CO(C,D),X=AO(C,D)+1;return Il(C,V,X).join("")}function gX(p,g,x){if(p=gn(p),p&&(x||g===n))return p.slice(0,RO(p)+1);if(!p||!(g=uo(g)))return p;var C=da(p),D=AO(C,da(g))+1;return Il(C,0,D).join("")}function mX(p,g,x){if(p=gn(p),p&&(x||g===n))return p.replace(Di,"");if(!p||!(g=uo(g)))return p;var C=da(p),D=CO(C,da(g));return Il(C,D).join("")}function yX(p,g){var x=R,C=O;if(qn(g)){var D="separator"in g?g.separator:D;x="length"in g?Ut(g.length):x,C="omission"in g?uo(g.omission):C}p=gn(p);var V=p.length;if(Lf(p)){var X=da(p);V=X.length}if(x>=V)return p;var J=x-Nf(C);if(J<1)return C;var ue=X?Il(X,0,J).join(""):p.slice(0,J);if(D===n)return ue+C;if(X&&(J+=ue.length-J),jw(D)){if(p.slice(J).search(D)){var Ie,Re=ue;for(D.global||(D=lw(D.source,gn(Nh.exec(D))+"g")),D.lastIndex=0;Ie=D.exec(Re);)var Le=Ie.index;ue=ue.slice(0,Le===n?J:Le)}}else if(p.indexOf(uo(D),J)!=J){var Ze=ue.lastIndexOf(D);Ze>-1&&(ue=ue.slice(0,Ze))}return ue+C}function _X(p){return p=gn(p),p&&Nn.test(p)?p.replace(It,Xz):p}var bX=Hf(function(p,g,x){return p+(x?" ":"")+g.toUpperCase()}),Kw=m2("toUpperCase");function vD(p,g,x){return p=gn(p),g=x?n:g,g===n?Gz(p)?qz(p):Lz(p):p.match(g)||[]}var gD=Wt(function(p,g){try{return so(p,n,g)}catch(x){return Ww(x)?x:new Mt(x)}}),SX=Ts(function(p,g){return Do(g,function(x){x=Ha(x),ws(p,x,Gw(p[x],p))}),p});function wX(p){var g=p==null?0:p.length,x=yt();return p=g?zn(p,function(C){if(typeof C[1]!="function")throw new Mo(a);return[x(C[0]),C[1]]}):[],Wt(function(C){for(var D=-1;++Dj)return[];var x=ve,C=jr(p,ve);g=yt(g),p-=ve;for(var D=ow(C,g);++x0||g<0)?new en(x):(p<0?x=x.takeRight(-p):p&&(x=x.drop(p)),g!==n&&(g=Ut(g),x=g<0?x.dropRight(-g):x.take(g-p)),x)},en.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},en.prototype.toArray=function(){return this.take(ve)},Va(en.prototype,function(p,g){var x=/^(?:filter|find|map|reject)|While$/.test(g),C=/^(?:head|last)$/.test(g),D=k[C?"take"+(g=="last"?"Right":""):g],V=C||/^find/.test(g);D&&(k.prototype[g]=function(){var X=this.__wrapped__,J=C?[1]:arguments,ue=X instanceof en,Ie=J[0],Re=ue||Ft(X),Le=function(Zt){var rn=D.apply(k,wl([Zt],J));return C&&Ze?rn[0]:rn};Re&&x&&typeof Ie=="function"&&Ie.length!=1&&(ue=Re=!1);var Ze=this.__chain__,ct=!!this.__actions__.length,St=V&&!Ze,zt=ue&&!ct;if(!V&&Re){X=zt?X:new en(this);var wt=p.apply(X,J);return wt.__actions__.push({func:ty,args:[Le],thisArg:n}),new Lo(wt,Ze)}return St&&zt?p.apply(this,J):(wt=this.thru(Le),St?C?wt.value()[0]:wt.value():wt)})}),Do(["pop","push","shift","sort","splice","unshift"],function(p){var g=Am[p],x=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",C=/^(?:pop|shift)$/.test(p);k.prototype[p]=function(){var D=arguments;if(C&&!this.__chain__){var V=this.value();return g.apply(Ft(V)?V:[],D)}return this[x](function(X){return g.apply(Ft(X)?X:[],D)})}}),Va(en.prototype,function(p,g){var x=k[g];if(x){var C=x.name+"";wn.call(Bf,C)||(Bf[C]=[]),Bf[C].push({name:g,func:x})}}),Bf[Xm(n,_).name]=[{name:"wrapper",func:n}],en.prototype.clone=_W,en.prototype.reverse=bW,en.prototype.value=SW,k.prototype.at=Z7,k.prototype.chain=q7,k.prototype.commit=J7,k.prototype.next=Q7,k.prototype.plant=tj,k.prototype.reverse=nj,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=rj,k.prototype.first=k.prototype.head,Bh&&(k.prototype[Bh]=ej),k},kf=Jz();Gu?((Gu.exports=kf)._=kf,qS._=kf):kr._=kf}).call(wre)}(Vp,Vp.exports)),Vp.exports}var So=xre();const Tre=Bg(So),$r=[];for(let e=0;e<256;++e)$r.push((e+256).toString(16).slice(1));function Ere(e,t=0){return($r[e[t+0]]+$r[e[t+1]]+$r[e[t+2]]+$r[e[t+3]]+"-"+$r[e[t+4]]+$r[e[t+5]]+"-"+$r[e[t+6]]+$r[e[t+7]]+"-"+$r[e[t+8]]+$r[e[t+9]]+"-"+$r[e[t+10]]+$r[e[t+11]]+$r[e[t+12]]+$r[e[t+13]]+$r[e[t+14]]+$r[e[t+15]]).toLowerCase()}let Ex;const Cre=new Uint8Array(16);function Are(){if(!Ex){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ex=crypto.getRandomValues.bind(crypto)}return Ex(Cre)}const Ire=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),hL={randomUUID:Ire};function Rre(e,t,n){if(hL.randomUUID&&!t&&!e)return hL.randomUUID();e=e||{};const r=e.random||(e.rng||Are)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ere(r)}const cs=kt("setup/api-list",[]),ci=kt("setup/active-uuid",""),cl=Ve(()=>cs.value.find(e=>e.uuid===ci.value)),Pre=e=>{const t=cs.value.find(r=>So.isEqual(So.omit(r,"uuid"),e));if(t){ci.value=t.uuid;return}const n=Rre();cs.value.push({...e,uuid:n}),ci.value=n},RB=e=>{cs.value=cs.value.filter(t=>t.uuid!==e)},kc=60,Zc=new Array(kc).fill(0).map((e,t)=>({name:t,value:e})),Mb=Fe(0),Up=Fe([...Zc]),r_=Fe([...Zc]),Lb=Fe(0),Nb=Fe(0),Hp=Fe([...Zc]),Gp=Fe([...Zc]);let Cy;const Ore=()=>{Cy==null||Cy(),Hp.value=[...Zc],Gp.value=[...Zc],Up.value=[...Zc];const{data:e,close:t}=Noe(),n=Yt(()=>e.value,a=>{if(!a)return;const s=Date.now().valueOf();Mb.value=a.inuse,Up.value.push({value:a.inuse,name:s}),r_.value.push({value:Qo.value.length,name:s}),Up.value=Up.value.slice(-1*kc),r_.value=r_.value.slice(-1*kc)}),{data:r,close:i}=koe(),o=Yt(()=>r.value,a=>{if(!a)return;const s=Date.now().valueOf();Lb.value=a.down,Nb.value=a.up,Hp.value.push({value:a.down,name:s}),Gp.value.push({value:a.up,name:s}),Hp.value=Hp.value.slice(-1*kc),Gp.value=Gp.value.slice(-1*kc)});Cy=()=>{t(),i(),n(),o()}},Pc="GLOBAL",cC=Fe([]),fi=Fe({}),UI=Fe({}),ih=kt("config/ipv6-map",{}),kd=Fe([]),Zg=e=>UI.value[qc(e)],Dre=e=>ih.value[qc(e)],fl=async()=>{const{data:e}=await woe(),{data:t}=await Toe(),n=e.proxies[Pc].all??[];fi.value=e.proxies,cC.value=Object.values(e.proxies).filter(r=>{var i;return((i=r.all)==null?void 0:i.length)&&r.name!==Pc}).sort((r,i)=>n.indexOf(r.name)-n.indexOf(i.name)).map(r=>r.name),UI.value=Object.fromEntries(Object.entries(e.proxies).map(([r,i])=>(Kc.value&&kre(i)&&(ih.value[r]=!0),[r,Nre(i)]))),kd.value=Object.values(t.providers).filter(r=>r.name!=="default"&&r.vehicleType!=="Compatible")},pL=async(e,t)=>{await xoe(e,t),fi.value[e].now=t,q0.value&&Qo.value.filter(n=>n.chains.includes(e)).forEach(n=>Gb(n.id)),fl()},Mre=async e=>{if(Kc.value)try{const{data:n}=await DL(e,kI,4e3);ih.value[qc(e)]=n.delay>qo}catch{ih.value[qc(e)]=!1}const{data:t}=await DL(e,hv.value,pv.value);UI.value[qc(e)]=t.delay},Lre=async e=>{var t,n;if(Kc.value)try{const{data:r}=await ML(e,kI,4e3);(t=fi.value[e].all)==null||t.forEach(i=>{ih.value[qc(i)]=r[i]>qo})}catch{(n=fi.value[e].all)==null||n.forEach(r=>{ih.value[qc(r)]=!1})}await ML(e,hv.value,pv.value),await fl()},Nre=e=>{var t;return((t=So.last(e.history))==null?void 0:t.delay)??0},kre=e=>{var n,r,i;const t=(r=(n=e.extra)==null?void 0:n[kI])==null?void 0:r.history;return(((i=So.last(t))==null?void 0:i.delay)??0)>qo},qc=e=>{let t=fi.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const n=fi.value[t.now];if(!n)return t.name;t=n}return t.name},Fre=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],$re=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Bre=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Vre=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],vL=(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 Ure(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?Vre:Bre:t.binary?$re:Fre,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=vL(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=vL(Number(e),t.locale,a),u=n[s];return o+l+r+u}const Tn=(e,t)=>Ure(e,{binary:!1,...t}),kb=e=>Ma(e).locale(au.value).fromNow(),PB=e=>{const t=fi.value[e];return t?["direct","reject","reject-drop","pass"].includes(t.type.toLowerCase())||!!t.all:!1},Ay=e=>{if(PB(e))return-1;const t=Zg(e);return t===0?1/0:t},OB=e=>{switch(e=[...e],J0.value&&(e=e.filter(t=>PB(t)||Zg(t)>0)),Z0.value){case nu.DEFAULT:return e;case nu.NAME_ASC:return e.sort((t,n)=>t.localeCompare(n));case nu.NAME_DESC:return e.sort((t,n)=>n.localeCompare(t));case nu.LATENCY_ASC:return e.sort((t,n)=>Ay(t)-Ay(n));case nu.LATENCY_DESC:return e.sort((t,n)=>Ay(n)-Ay(t))}},a1=e=>{if(e===null)return"";if(e==="")return"Inner";const t=e.includes(":");for(const n in _o.value)if(n.startsWith("/")){if(new RegExp(n,"i").test(e))return _o.value[n]}else if(e===n||t&&e.endsWith(n))return _o.value[n];return e},DB=e=>e.metadata.process||e.metadata.processPath.replace(/^.*[/\\](.*)$/,"$1")||"-",MB=e=>e.metadata.remoteDestination||e.metadata.destinationIP||e.metadata.host,LB=(e,t)=>{const{suffix:n="",binary:r=!1}=t;return e.data.name=V)return p;var J=x-Nf(C);if(J<1)return C;var ue=X?Il(X,0,J).join(""):p.slice(0,J);if(D===n)return ue+C;if(X&&(J+=ue.length-J),Xw(D)){if(p.slice(J).search(D)){var Ie,Re=ue;for(D.global||(D=cw(D.source,gn(Nh.exec(D))+"g")),D.lastIndex=0;Ie=D.exec(Re);)var Le=Ie.index;ue=ue.slice(0,Le===n?J:Le)}}else if(p.indexOf(uo(D),J)!=J){var Ze=ue.lastIndexOf(D);Ze>-1&&(ue=ue.slice(0,Ze))}return ue+C}function wX(p){return p=gn(p),p&&Nn.test(p)?p.replace(It,qz):p}var xX=Hf(function(p,g,x){return p+(x?" ":"")+g.toUpperCase()}),qw=_2("toUpperCase");function mD(p,g,x){return p=gn(p),g=x?n:g,g===n?jz(p)?eW(p):Fz(p):p.match(g)||[]}var yD=Wt(function(p,g){try{return so(p,n,g)}catch(x){return Yw(x)?x:new Lt(x)}}),TX=Ts(function(p,g){return Do(g,function(x){x=Ha(x),ws(p,x,Ww(p[x],p))}),p});function EX(p){var g=p==null?0:p.length,x=_t();return p=g?zn(p,function(C){if(typeof C[1]!="function")throw new Mo(a);return[x(C[0]),C[1]]}):[],Wt(function(C){for(var D=-1;++Dj)return[];var x=ve,C=jr(p,ve);g=_t(g),p-=ve;for(var D=sw(C,g);++x0||g<0)?new en(x):(p<0?x=x.takeRight(-p):p&&(x=x.drop(p)),g!==n&&(g=Ut(g),x=g<0?x.dropRight(-g):x.take(g-p)),x)},en.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},en.prototype.toArray=function(){return this.take(ve)},Va(en.prototype,function(p,g){var x=/^(?:filter|find|map|reject)|While$/.test(g),C=/^(?:head|last)$/.test(g),D=k[C?"take"+(g=="last"?"Right":""):g],V=C||/^find/.test(g);D&&(k.prototype[g]=function(){var X=this.__wrapped__,J=C?[1]:arguments,ue=X instanceof en,Ie=J[0],Re=ue||Ft(X),Le=function(Zt){var rn=D.apply(k,wl([Zt],J));return C&&Ze?rn[0]:rn};Re&&x&&typeof Ie=="function"&&Ie.length!=1&&(ue=Re=!1);var Ze=this.__chain__,ct=!!this.__actions__.length,St=V&&!Ze,zt=ue&&!ct;if(!V&&Re){X=zt?X:new en(this);var wt=p.apply(X,J);return wt.__actions__.push({func:ry,args:[Le],thisArg:n}),new Lo(wt,Ze)}return St&&zt?p.apply(this,J):(wt=this.thru(Le),St?C?wt.value()[0]:wt.value():wt)})}),Do(["pop","push","shift","sort","splice","unshift"],function(p){var g=Rm[p],x=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",C=/^(?:pop|shift)$/.test(p);k.prototype[p]=function(){var D=arguments;if(C&&!this.__chain__){var V=this.value();return g.apply(Ft(V)?V:[],D)}return this[x](function(X){return g.apply(Ft(X)?X:[],D)})}}),Va(en.prototype,function(p,g){var x=k[g];if(x){var C=x.name+"";wn.call(Bf,C)||(Bf[C]=[]),Bf[C].push({name:g,func:x})}}),Bf[Zm(n,_).name]=[{name:"wrapper",func:n}],en.prototype.clone=wW,en.prototype.reverse=xW,en.prototype.value=TW,k.prototype.at=Q7,k.prototype.chain=ej,k.prototype.commit=tj,k.prototype.next=nj,k.prototype.plant=ij,k.prototype.reverse=oj,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=aj,k.prototype.first=k.prototype.head,Bh&&(k.prototype[Bh]=rj),k},kf=tW();Gu?((Gu.exports=kf)._=kf,QS._=kf):kr._=kf}).call(Tre)}(Vp,Vp.exports)),Vp.exports}var So=Ere();const Cre=Ug(So),$r=[];for(let e=0;e<256;++e)$r.push((e+256).toString(16).slice(1));function Are(e,t=0){return($r[e[t+0]]+$r[e[t+1]]+$r[e[t+2]]+$r[e[t+3]]+"-"+$r[e[t+4]]+$r[e[t+5]]+"-"+$r[e[t+6]]+$r[e[t+7]]+"-"+$r[e[t+8]]+$r[e[t+9]]+"-"+$r[e[t+10]]+$r[e[t+11]]+$r[e[t+12]]+$r[e[t+13]]+$r[e[t+14]]+$r[e[t+15]]).toLowerCase()}let Ax;const Ire=new Uint8Array(16);function Rre(){if(!Ax){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ax=crypto.getRandomValues.bind(crypto)}return Ax(Ire)}const Pre=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),vL={randomUUID:Pre};function Ore(e,t,n){if(vL.randomUUID&&!t&&!e)return vL.randomUUID();e=e||{};const r=e.random||(e.rng||Rre)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Are(r)}const cs=Mt("setup/api-list",[]),ci=Mt("setup/active-uuid",""),cl=Ve(()=>cs.value.find(e=>e.uuid===ci.value)),Dre=e=>{const t=cs.value.find(r=>So.isEqual(So.omit(r,"uuid"),e));if(t){ci.value=t.uuid;return}const n=Ore();cs.value.push({...e,uuid:n}),ci.value=n},DB=e=>{cs.value=cs.value.filter(t=>t.uuid!==e)},kc=60,Zc=new Array(kc).fill(0).map((e,t)=>({name:t,value:e})),Nb=Fe(0),Up=Fe([...Zc]),o_=Fe([...Zc]),kb=Fe(0),Fb=Fe(0),Hp=Fe([...Zc]),Gp=Fe([...Zc]);let Iy;const Mre=()=>{Iy==null||Iy(),Hp.value=[...Zc],Gp.value=[...Zc],Up.value=[...Zc];const{data:e,close:t}=Foe(),n=Yt(()=>e.value,a=>{if(!a)return;const s=Date.now().valueOf();Nb.value=a.inuse,Up.value.push({value:a.inuse,name:s}),o_.value.push({value:Qo.value.length,name:s}),Up.value=Up.value.slice(-1*kc),o_.value=o_.value.slice(-1*kc)}),{data:r,close:i}=$oe(),o=Yt(()=>r.value,a=>{if(!a)return;const s=Date.now().valueOf();kb.value=a.down,Fb.value=a.up,Hp.value.push({value:a.down,name:s}),Gp.value.push({value:a.up,name:s}),Hp.value=Hp.value.slice(-1*kc),Gp.value=Gp.value.slice(-1*kc)});Iy=()=>{t(),i(),n(),o()}},Pc="GLOBAL",dC=Fe([]),fi=Fe({}),GI=Fe({}),ih=Mt("config/ipv6-map",{}),kd=Fe([]),Jg=e=>GI.value[qc(e)],Lre=e=>ih.value[qc(e)],fl=async()=>{const{data:e}=await Toe(),{data:t}=await Coe(),n=e.proxies[Pc].all??[];fi.value=e.proxies,dC.value=Object.values(e.proxies).filter(r=>{var i;return((i=r.all)==null?void 0:i.length)&&r.name!==Pc}).sort((r,i)=>n.indexOf(r.name)-n.indexOf(i.name)).map(r=>r.name),GI.value=Object.fromEntries(Object.entries(e.proxies).map(([r,i])=>(Kc.value&&$re(i)&&(ih.value[r]=!0),[r,Fre(i)]))),kd.value=Object.values(t.providers).filter(r=>r.name!=="default"&&r.vehicleType!=="Compatible")},gL=async(e,t)=>{await Eoe(e,t),fi.value[e].now=t,Q0.value&&Qo.value.filter(n=>n.chains.includes(e)).forEach(n=>Wb(n.id)),fl()},Nre=async e=>{if(Kc.value)try{const{data:n}=await LL(e,$I,4e3);ih.value[qc(e)]=n.delay>qo}catch{ih.value[qc(e)]=!1}const{data:t}=await LL(e,hv.value,pv.value);GI.value[qc(e)]=t.delay},kre=async e=>{var t,n;if(Kc.value)try{const{data:r}=await NL(e,$I,4e3);(t=fi.value[e].all)==null||t.forEach(i=>{ih.value[qc(i)]=r[i]>qo})}catch{(n=fi.value[e].all)==null||n.forEach(r=>{ih.value[qc(r)]=!1})}await NL(e,hv.value,pv.value),await fl()},Fre=e=>{var t;return((t=So.last(e.history))==null?void 0:t.delay)??0},$re=e=>{var n,r,i;const t=(r=(n=e.extra)==null?void 0:n[$I])==null?void 0:r.history;return(((i=So.last(t))==null?void 0:i.delay)??0)>qo},qc=e=>{let t=fi.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const n=fi.value[t.now];if(!n)return t.name;t=n}return t.name},Bre=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],Vre=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Ure=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Hre=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],mL=(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 Gre(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?Hre:Ure:t.binary?Vre:Bre,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=mL(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=mL(Number(e),t.locale,a),u=n[s];return o+l+r+u}const Tn=(e,t)=>Gre(e,{binary:!1,...t}),$b=e=>Ma(e).locale(au.value).fromNow(),MB=e=>{const t=fi.value[e];return t?["direct","reject","reject-drop","pass"].includes(t.type.toLowerCase())||!!t.all:!1},Ry=e=>{if(MB(e))return-1;const t=Jg(e);return t===0?1/0:t},LB=e=>{switch(e=[...e],e_.value&&(e=e.filter(t=>MB(t)||Jg(t)>0)),J0.value){case nu.DEFAULT:return e;case nu.NAME_ASC:return e.sort((t,n)=>t.localeCompare(n));case nu.NAME_DESC:return e.sort((t,n)=>n.localeCompare(t));case nu.LATENCY_ASC:return e.sort((t,n)=>Ry(t)-Ry(n));case nu.LATENCY_DESC:return e.sort((t,n)=>Ry(n)-Ry(t))}},l1=e=>{if(e===null)return"";if(e==="")return"Inner";const t=e.includes(":");for(const n in _o.value)if(n.startsWith("/")){if(new RegExp(n,"i").test(e))return _o.value[n]}else if(e===n||t&&e.endsWith(n))return _o.value[n];return e},NB=e=>e.metadata.process||e.metadata.processPath.replace(/^.*[/\\](.*)$/,"$1")||"-",kB=e=>e.metadata.remoteDestination||e.metadata.destinationIP||e.metadata.host,FB=(e,t)=>{const{suffix:n="",binary:r=!1}=t;return e.data.name
${e.seriesName} (${Ma(e.data.name).format("HH:mm:ss")}): ${Tn(e.data.value,{binary:r})}${n} - `},gL=()=>{const e={};for(const i in localStorage)(i.startsWith("config/")||i.startsWith("setup/"))&&(e[i]=localStorage.getItem(i));const t=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download="zashboard-settings",r.click(),URL.revokeObjectURL(n)},s1=()=>{const e=document.createElement("input");e.type="file",e.accept=".json",e.onchange=async()=>{var r;const t=(r=e.files)==null?void 0:r[0];if(!t)return;const n=new FileReader;n.onload=async()=>{const i=JSON.parse(n.result);for(const o in i)localStorage.setItem(o,i[o]);location.reload()},n.readAsText(t)},e.click()},Eu=e=>`${e.protocol}://${e.host}:${e.port}${e.secondaryPath||""}`,ru=e=>e===qo?"":eObject.values(un).filter(e=>![un.setup,!yd.value&&un.overview].includes(e)));function NB(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hre}=Object.prototype,{getPrototypeOf:HI}=Object,Fb=(e=>t=>{const n=Hre.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fa=e=>(e=e.toLowerCase(),t=>Fb(t)===e),$b=e=>t=>typeof t===e,{isArray:wh}=Array,cg=$b("undefined");function Gre(e){return e!==null&&!cg(e)&&e.constructor!==null&&!cg(e.constructor)&&To(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kB=Fa("ArrayBuffer");function zre(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&kB(e.buffer),t}const Wre=$b("string"),To=$b("function"),FB=$b("number"),Bb=e=>e!==null&&typeof e=="object",jre=e=>e===!0||e===!1,i_=e=>{if(Fb(e)!=="object")return!1;const t=HI(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Yre=Fa("Date"),Xre=Fa("File"),Kre=Fa("Blob"),Zre=Fa("FileList"),qre=e=>Bb(e)&&To(e.pipe),Jre=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||To(e.append)&&((t=Fb(e))==="formdata"||t==="object"&&To(e.toString)&&e.toString()==="[object FormData]"))},Qre=Fa("URLSearchParams"),[eie,tie,nie,rie]=["ReadableStream","Request","Response","Headers"].map(Fa),iie=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qg(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),wh(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Fc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,BB=e=>!cg(e)&&e!==Fc;function fC(){const{caseless:e}=BB(this)&&this||{},t={},n=(r,i)=>{const o=e&&$B(t,i)||i;i_(t[o])&&i_(r)?t[o]=fC(t[o],r):i_(r)?t[o]=fC({},r):wh(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(qg(t,(i,o)=>{n&&To(i)?e[o]=NB(i,n):e[o]=i},{allOwnKeys:r}),e),aie=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sie=(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)},lie=(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&&HI(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},uie=(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},cie=e=>{if(!e)return null;if(wh(e))return e;let t=e.length;if(!FB(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},fie=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&HI(Uint8Array)),die=(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])}},hie=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pie=Fa("HTMLFormElement"),vie=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),mL=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gie=Fa("RegExp"),VB=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};qg(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},mie=e=>{VB(e,(t,n)=>{if(To(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(To(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+"'")})}})},yie=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return wh(e)?r(e):r(String(e).split(t)),n},_ie=()=>{},bie=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Cx="abcdefghijklmnopqrstuvwxyz",yL="0123456789",UB={DIGIT:yL,ALPHA:Cx,ALPHA_DIGIT:Cx+Cx.toUpperCase()+yL},Sie=(e=16,t=UB.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function wie(e){return!!(e&&To(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const xie=e=>{const t=new Array(10),n=(r,i)=>{if(Bb(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=wh(r)?[]:{};return qg(r,(a,s)=>{const l=n(a,i+1);!cg(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Tie=Fa("AsyncFunction"),Eie=e=>e&&(Bb(e)||To(e))&&To(e.then)&&To(e.catch),HB=((e,t)=>e?setImmediate:t?((n,r)=>(Fc.addEventListener("message",({source:i,data:o})=>{i===Fc&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Fc.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",To(Fc.postMessage)),Cie=typeof queueMicrotask<"u"?queueMicrotask.bind(Fc):typeof process<"u"&&process.nextTick||HB,be={isArray:wh,isArrayBuffer:kB,isBuffer:Gre,isFormData:Jre,isArrayBufferView:zre,isString:Wre,isNumber:FB,isBoolean:jre,isObject:Bb,isPlainObject:i_,isReadableStream:eie,isRequest:tie,isResponse:nie,isHeaders:rie,isUndefined:cg,isDate:Yre,isFile:Xre,isBlob:Kre,isRegExp:gie,isFunction:To,isStream:qre,isURLSearchParams:Qre,isTypedArray:fie,isFileList:Zre,forEach:qg,merge:fC,extend:oie,trim:iie,stripBOM:aie,inherits:sie,toFlatObject:lie,kindOf:Fb,kindOfTest:Fa,endsWith:uie,toArray:cie,forEachEntry:die,matchAll:hie,isHTMLForm:pie,hasOwnProperty:mL,hasOwnProp:mL,reduceDescriptors:VB,freezeMethods:mie,toObjectSet:yie,toCamelCase:vie,noop:_ie,toFiniteNumber:bie,findKey:$B,global:Fc,isContextDefined:BB,ALPHABET:UB,generateString:Sie,isSpecCompliantForm:wie,toJSONObject:xie,isAsyncFn:Tie,isThenable:Eie,setImmediate:HB,asap:Cie};function Bt(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)}be.inherits(Bt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:be.toJSONObject(this.config),code:this.code,status:this.status}}});const GB=Bt.prototype,zB={};["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=>{zB[e]={value:e}});Object.defineProperties(Bt,zB);Object.defineProperty(GB,"isAxiosError",{value:!0});Bt.from=(e,t,n,r,i,o)=>{const a=Object.create(GB);return be.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Bt.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Aie=null;function dC(e){return be.isPlainObject(e)||be.isArray(e)}function WB(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function _L(e,t,n){return e?e.concat(t).map(function(i,o){return i=WB(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Iie(e){return be.isArray(e)&&!e.some(dC)}const Rie=be.toFlatObject(be,{},null,function(t){return/^is[A-Z]/.test(t)});function Vb(e,t,n){if(!be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!be.isUndefined(y[m])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&be.isSpecCompliantForm(t);if(!be.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(be.isDate(v))return v.toISOString();if(!l&&be.isBlob(v))throw new Bt("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(v)||be.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,m,y){let _=v;if(v&&!y&&typeof v=="object"){if(be.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(be.isArray(v)&&Iie(v)||(be.isFileList(v)||be.endsWith(m,"[]"))&&(_=be.toArray(v)))return m=WB(m),_.forEach(function(w,S){!(be.isUndefined(w)||w===null)&&t.append(a===!0?_L([m],S,o):a===null?m:m+"[]",u(w))}),!1}return dC(v)?!0:(t.append(_L(y,m,o),u(v)),!1)}const f=[],d=Object.assign(Rie,{defaultVisitor:c,convertValue:u,isVisitable:dC});function h(v,m){if(!be.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(v),be.forEach(v,function(_,b){(!(be.isUndefined(_)||_===null)&&i.call(t,_,be.isString(b)?b.trim():b,m,d))===!0&&h(_,m?m.concat(b):[b])}),f.pop()}}if(!be.isObject(e))throw new TypeError("data must be an object");return h(e),t}function bL(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function GI(e,t){this._pairs=[],e&&Vb(e,this,t)}const jB=GI.prototype;jB.append=function(t,n){this._pairs.push([t,n])};jB.toString=function(t){const n=t?function(r){return t.call(this,r,bL)}:bL;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Pie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function YB(e,t,n){if(!t)return e;const r=n&&n.encode||Pie;be.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=be.isURLSearchParams(t)?t.toString():new GI(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class SL{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){be.forEach(this.handlers,function(r){r!==null&&t(r)})}}const XB={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oie=typeof URLSearchParams<"u"?URLSearchParams:GI,Die=typeof FormData<"u"?FormData:null,Mie=typeof Blob<"u"?Blob:null,Lie={isBrowser:!0,classes:{URLSearchParams:Oie,FormData:Die,Blob:Mie},protocols:["http","https","file","blob","url","data"]},zI=typeof window<"u"&&typeof document<"u",hC=typeof navigator=="object"&&navigator||void 0,Nie=zI&&(!hC||["ReactNative","NativeScript","NS"].indexOf(hC.product)<0),kie=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Fie=zI&&window.location.href||"http://localhost",$ie=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zI,hasStandardBrowserEnv:Nie,hasStandardBrowserWebWorkerEnv:kie,navigator:hC,origin:Fie},Symbol.toStringTag,{value:"Module"})),si={...$ie,...Lie};function Bie(e,t){return Vb(e,new si.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return si.isNode&&be.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Vie(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Uie(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&be.isArray(i)?i.length:a,l?(be.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!be.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&be.isArray(i[a])&&(i[a]=Uie(i[a])),!s)}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};return be.forEachEntry(e,(r,i)=>{t(Vie(r),i,n,0)}),n}return null}function Hie(e,t,n){if(be.isString(e))try{return(t||JSON.parse)(e),be.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Jg={transitional:XB,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=be.isObject(t);if(o&&be.isHTMLForm(t)&&(t=new FormData(t)),be.isFormData(t))return i?JSON.stringify(KB(t)):t;if(be.isArrayBuffer(t)||be.isBuffer(t)||be.isStream(t)||be.isFile(t)||be.isBlob(t)||be.isReadableStream(t))return t;if(be.isArrayBufferView(t))return t.buffer;if(be.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 Bie(t,this.formSerializer).toString();if((s=be.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Vb(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Hie(t)):t}],transformResponse:[function(t){const n=this.transitional||Jg.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(be.isResponse(t)||be.isReadableStream(t))return t;if(t&&be.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"?Bt.from(s,Bt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:si.classes.FormData,Blob:si.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],e=>{Jg.headers[e]={}});const Gie=be.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"]),zie=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]&&Gie[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},wL=Symbol("internals");function op(e){return e&&String(e).trim().toLowerCase()}function o_(e){return e===!1||e==null?e:be.isArray(e)?e.map(o_):String(e)}function Wie(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 jie=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ax(e,t,n,r,i){if(be.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!be.isString(t)){if(be.isString(r))return t.indexOf(r)!==-1;if(be.isRegExp(r))return r.test(t)}}function Yie(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Xie(e,t){const n=be.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 Ji{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=op(l);if(!c)throw new Error("header name must be a non-empty string");const f=be.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=o_(s))}const a=(s,l)=>be.forEach(s,(u,c)=>o(u,c,l));if(be.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(be.isString(t)&&(t=t.trim())&&!jie(t))a(zie(t),n);else if(be.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=op(t),t){const r=be.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Wie(i);if(be.isFunction(n))return n.call(this,i,r);if(be.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=op(t),t){const r=be.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ax(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=op(a),a){const s=be.findKey(r,a);s&&(!n||Ax(r,r[s],s,n))&&(delete r[s],i=!0)}}return be.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||Ax(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return be.forEach(this,(i,o)=>{const a=be.findKey(r,o);if(a){n[a]=o_(i),delete n[o];return}const s=t?Yie(o):String(o).trim();s!==o&&delete n[o],n[s]=o_(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return be.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&be.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[wL]=this[wL]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=op(a);r[s]||(Xie(i,a),r[s]=!0)}return be.isArray(t)?t.forEach(o):o(t),this}}Ji.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors(Ji.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});be.freezeMethods(Ji);function Ix(e,t){const n=this||Jg,r=t||n,i=Ji.from(r.headers);let o=r.data;return be.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function ZB(e){return!!(e&&e.__CANCEL__)}function xh(e,t,n){Bt.call(this,e??"canceled",Bt.ERR_CANCELED,t,n),this.name="CanceledError"}be.inherits(xh,Bt,{__CANCEL__:!0});function qB(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Bt("Request failed with status code "+n.status,[Bt.ERR_BAD_REQUEST,Bt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Kie(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Zie(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,d=0;for(;f!==i;)d+=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 l1=(e,t,n=3)=>{let r=0;const i=Zie(50,250);return qie(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)},xL=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},TL=e=>(...t)=>be.asap(()=>e(...t)),Jie=si.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,si.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(si.origin),si.navigator&&/(msie|trident)/i.test(si.navigator.userAgent)):()=>!0,Qie=si.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];be.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),be.isString(r)&&a.push("path="+r),be.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 eoe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function toe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function JB(e,t){return e&&!eoe(t)?toe(e,t):t}const EL=e=>e instanceof Ji?{...e}:e;function hf(e,t){t=t||{};const n={};function r(u,c,f,d){return be.isPlainObject(u)&&be.isPlainObject(c)?be.merge.call({caseless:d},u,c):be.isPlainObject(c)?be.merge({},c):be.isArray(c)?c.slice():c}function i(u,c,f,d){if(be.isUndefined(c)){if(!be.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function o(u,c){if(!be.isUndefined(c))return r(void 0,c)}function a(u,c){if(be.isUndefined(c)){if(!be.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(EL(u),EL(c),f,!0)};return be.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);be.isUndefined(d)&&f!==s||(n[c]=d)}),n}const QB=e=>{const t=hf({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Ji.from(a),t.url=YB(JB(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(be.isFormData(n)){if(si.hasStandardBrowserEnv||si.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(si.hasStandardBrowserEnv&&(r&&be.isFunction(r)&&(r=r(t)),r||r!==!1&&Jie(t.url))){const u=i&&o&&Qie.read(o);u&&a.set(i,u)}return t},noe=typeof XMLHttpRequest<"u",roe=noe&&function(e){return new Promise(function(n,r){const i=QB(e);let o=i.data;const a=Ji.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,d,h,v;function m(){h&&h(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function _(){if(!y)return;const w=Ji.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};qB(function(A){n(A),m()},function(A){r(A),m()},E),y=null}"onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(_)},y.onabort=function(){y&&(r(new Bt("Request aborted",Bt.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new Bt("Network Error",Bt.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||XB;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new Bt(S,E.clarifyTimeoutError?Bt.ETIMEDOUT:Bt.ECONNABORTED,e,y)),y=null},o===void 0&&a.setContentType(null),"setRequestHeader"in y&&be.forEach(a.toJSON(),function(S,E){y.setRequestHeader(E,S)}),be.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),s&&s!=="json"&&(y.responseType=i.responseType),u&&([d,v]=l1(u,!0),y.addEventListener("progress",d)),l&&y.upload&&([f,h]=l1(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=w=>{y&&(r(!w||w.type?new xh(null,e,y):w),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const b=Kie(i.url);if(b&&si.protocols.indexOf(b)===-1){r(new Bt("Unsupported protocol "+b+":",Bt.ERR_BAD_REQUEST,e));return}y.send(o||null)})},ioe=(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 Bt?c:new xh(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,o(new Bt(`timeout ${t} of ms exceeded`,Bt.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=()=>be.asap(s),l}},ooe=function*(e,t){let n=e.byteLength;if(n{const i=aoe(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 d=o+=f;n(d)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},Ub=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",eV=Ub&&typeof ReadableStream=="function",loe=Ub&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),tV=(e,...t)=>{try{return!!e(...t)}catch{return!1}},uoe=eV&&tV(()=>{let e=!1;const t=new Request(si.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),AL=64*1024,pC=eV&&tV(()=>be.isReadableStream(new Response("").body)),u1={stream:pC&&(e=>e.body)};Ub&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!u1[t]&&(u1[t]=be.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Bt(`Response type '${t}' is not supported`,Bt.ERR_NOT_SUPPORT,r)})})})(new Response);const coe=async e=>{if(e==null)return 0;if(be.isBlob(e))return e.size;if(be.isSpecCompliantForm(e))return(await new Request(si.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(be.isArrayBufferView(e)||be.isArrayBuffer(e))return e.byteLength;if(be.isURLSearchParams(e)&&(e=e+""),be.isString(e))return(await loe(e)).byteLength},foe=async(e,t)=>{const n=be.toFiniteNumber(e.getContentLength());return n??coe(t)},doe=Ub&&(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:d}=QB(e);u=u?(u+"").toLowerCase():"text";let h=ioe([i,o&&o.toAbortSignal()],a),v;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let y;try{if(l&&uoe&&n!=="get"&&n!=="head"&&(y=await foe(c,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(be.isFormData(r)&&(T=E.headers.get("content-type"))&&c.setContentType(T),E.body){const[A,P]=xL(y,l1(TL(l)));r=CL(E.body,AL,A,P)}}be.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;v=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:_?f:void 0});let b=await fetch(v);const w=pC&&(u==="stream"||u==="response");if(pC&&(s||w&&m)){const E={};["status","statusText","headers"].forEach(I=>{E[I]=b[I]});const T=be.toFiniteNumber(b.headers.get("content-length")),[A,P]=s&&xL(T,l1(TL(s),!0))||[];b=new Response(CL(b.body,AL,A,()=>{P&&P(),m&&m()}),E)}u=u||"text";let S=await u1[be.findKey(u1,u)||"text"](b,e);return!w&&m&&m(),await new Promise((E,T)=>{qB(E,T,{data:S,headers:Ji.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:v})})}catch(_){throw m&&m(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new Bt("Network Error",Bt.ERR_NETWORK,e,v),{cause:_.cause||_}):Bt.from(_,_&&_.code,e,v)}}),vC={http:Aie,xhr:roe,fetch:doe};be.forEach(vC,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const IL=e=>`- ${e}`,hoe=e=>be.isFunction(e)||e===null||e===!1,nV={getAdapter:e=>{e=be.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(IL).join(` -`):" "+IL(o[0]):"as no adapter specified";throw new Bt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:vC};function Rx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xh(null,e)}function RL(e){return Rx(e),e.headers=Ji.from(e.headers),e.data=Ix.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nV.getAdapter(e.adapter||Jg.adapter)(e).then(function(r){return Rx(e),r.data=Ix.call(e,e.transformResponse,r),r.headers=Ji.from(r.headers),r},function(r){return ZB(r)||(Rx(e),r&&r.response&&(r.response.data=Ix.call(e,e.transformResponse,r.response),r.response.headers=Ji.from(r.response.headers))),Promise.reject(r)})}const rV="1.7.9",Hb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hb[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const PL={};Hb.transitional=function(t,n,r){function i(o,a){return"[Axios v"+rV+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Bt(i(a," has been removed"+(n?" in "+n:"")),Bt.ERR_DEPRECATED);return n&&!PL[a]&&(PL[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}};Hb.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function poe(e,t,n){if(typeof e!="object")throw new Bt("options must be an object",Bt.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 Bt("option "+o+" must be "+l,Bt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Bt("Unknown option "+o,Bt.ERR_BAD_OPTION)}}const a_={assertOptions:poe,validators:Hb},za=a_.validators;class Jc{constructor(t){this.defaults=t,this.interceptors={request:new SL,response:new SL}}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=hf(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&a_.assertOptions(r,{silentJSONParsing:za.transitional(za.boolean),forcedJSONParsing:za.transitional(za.boolean),clarifyTimeoutError:za.transitional(za.boolean)},!1),i!=null&&(be.isFunction(i)?n.paramsSerializer={serialize:i}:a_.assertOptions(i,{encode:za.function,serialize:za.function},!0)),a_.assertOptions(n,{baseUrl:za.spelling("baseURL"),withXsrfToken:za.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&be.merge(o.common,o[n.method]);o&&be.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=Ji.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,f=0,d;if(!l){const v=[RL.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.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 xh(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 WI(function(i){t=i}),cancel:t}}}function voe(e){return function(n){return e.apply(null,n)}}function goe(e){return be.isObject(e)&&e.isAxiosError===!0}const gC={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(gC).forEach(([e,t])=>{gC[t]=e});function iV(e){const t=new Jc(e),n=NB(Jc.prototype.request,t);return be.extend(n,Jc.prototype,t,{allOwnKeys:!0}),be.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return iV(hf(e,i))},n}const Gt=iV(Jg);Gt.Axios=Jc;Gt.CanceledError=xh;Gt.CancelToken=WI;Gt.isCancel=ZB;Gt.VERSION=rV;Gt.toFormData=Vb;Gt.AxiosError=Bt;Gt.Cancel=Gt.CanceledError;Gt.all=function(t){return Promise.all(t)};Gt.spread=voe;Gt.isAxiosError=goe;Gt.mergeConfig=hf;Gt.AxiosHeaders=Ji;Gt.formToJSON=e=>KB(be.isHTMLForm(e)?new FormData(e):e);Gt.getAdapter=nV.getAdapter;Gt.HttpStatusCode=gC;Gt.default=Gt;var s_={exports:{}},moe=s_.exports,OL;function yoe(){return OL||(OL=1,function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(moe,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(h){s.onopen(h)}),f.addEventListener("close",function(h){s.onclose(h)}),f.addEventListener("connecting",function(h){s.onconnecting(h)}),f.addEventListener("message",function(h){s.onmessage(h)}),f.addEventListener("error",function(h){s.onerror(h)}),this.addEventListener=f.addEventListener.bind(f),this.removeEventListener=f.removeEventListener.bind(f),this.dispatchEvent=f.dispatchEvent.bind(f);function d(h,v){var m=document.createEvent("CustomEvent");return m.initCustomEvent(h,!1,!1,v),m}this.open=function(h){if(l=new WebSocket(s.url,r||[]),h){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else f.dispatchEvent(d("connecting")),this.reconnectAttempts=0;(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",s.url);var v=l,m=setTimeout(function(){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",s.url),c=!0,v.close(),c=!1},s.timeoutInterval);l.onopen=function(y){clearTimeout(m),(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",s.url),s.protocol=l.protocol,s.readyState=WebSocket.OPEN,s.reconnectAttempts=0;var _=d("open");_.isReconnect=h,h=!1,f.dispatchEvent(_)},l.onclose=function(y){if(clearTimeout(b),l=null,u)s.readyState=WebSocket.CLOSED,f.dispatchEvent(d("close"));else{s.readyState=WebSocket.CONNECTING;var _=d("connecting");_.code=y.code,_.reason=y.reason,_.wasClean=y.wasClean,f.dispatchEvent(_),!h&&!c&&((s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",s.url),f.dispatchEvent(d("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(y){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",s.url,y.data);var _=d("message");_.data=y.data,f.dispatchEvent(_)},l.onerror=function(y){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",s.url,y),f.dispatchEvent(d("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(h){if(l)return(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",s.url,h),l.send(h);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(h,v){typeof h>"u"&&(h=1e3),u=!0,l&&l.close(h,v)},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})}(s_)),s_.exports}var _oe=yoe();const boe=Bg(_oe);Gt.interceptors.request.use(e=>{var t;return e.baseURL=Eu(cl.value),e.headers.Authorization="Bearer "+((t=cl.value)==null?void 0:t.password),e});Gt.interceptors.response.use(null,e=>(e.status===401&&ci.value?(RB(ci.value),ci.value=null,ka.push({name:un.setup}),vs(()=>{const{showTip:t}=Ob();t("unauthorizedTip")})):e.status===404&&(ci.value=null,ka.push({name:un.setup})),e));const fg=Fe(),mC=Fe(!1),Soe=()=>Gt.get("/version"),dl=Ve(()=>{var e;return(e=fg.value)==null?void 0:e.includes("sing-box")}),oV=Fe("1.46.2");Yt(cl,async e=>{if(e){const{data:t}=await Soe();if(fg.value=t.version,dl.value)return;mC.value=await $oe(),mC.value&&j0.value&&uV()}},{immediate:!0});const woe=()=>Gt.get("/proxies"),xoe=(e,t)=>Gt.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),DL=(e,t,n)=>Gt.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),ML=(e,t,n)=>Gt.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),Toe=()=>Gt.get("/providers/proxies"),aV=e=>Gt.put(`/providers/proxies/${encodeURIComponent(e)}`),Eoe=e=>Gt.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),Coe=()=>Gt.get("/rules"),Aoe=()=>Gt.get("/providers/rules"),sV=e=>Gt.put(`/providers/rules/${encodeURIComponent(e)}`),Gb=e=>Gt.delete(`/connections/${e}`),Ioe=()=>Gt.get("/configs"),Roe=e=>Gt.patch("/configs",e),LL=()=>Gt.post("/cache/fakeip/flush"),Poe=()=>Gt.put("/configs?reload=true",{path:"",payload:""}),lV=()=>Gt.post("/upgrade/ui"),uV=()=>Gt.post("/upgrade"),Ooe=()=>Gt.post("/restart"),Doe=e=>Gt.get("/dns/query",{params:e}),zb=(e,t)=>{const n=cl.value,r=new URL(`${Eu(n).replace("http","ws")}/${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=Fe(),o=new boe(r.toString()),a=()=>{o.close()};return o.onmessage=({data:s})=>{i.value=JSON.parse(s)},{data:i,close:a}},Moe=()=>zb("connections"),Loe=(e={})=>zb("logs",e),Noe=()=>zb("memory"),koe=()=>zb("traffic"),NL=async(e,t=1e4)=>{const n=new AbortController,r=setTimeout(()=>n.abort(),t);try{return(await fetch(`${Eu(e)}/version`,{method:"GET",headers:{Authorization:`Bearer ${e.password}`},signal:n.signal})).ok}catch{return!1}finally{clearTimeout(r)}},Foe=async()=>{const e=await fetch("https://api.github.com/repos/Zephyruso/zashboard/releases/latest"),{tag_name:t}=await e.json();return t&&t!==`v${oV.value}`},kL=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))},$oe=async()=>{const e=/(alpha|beta|meta)-?(\w+)/.exec(fg.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.endsWith(fg.value)}const t=e[1],n=e[2];return t==="meta"?await kL("/releases/latest",n):t==="alpha"?await kL("/releases/tags/Prerelease-Alpha",n):!1},Boe=()=>fetch("https://api-v3.speedtest.cn/ip"),cV=async(e="")=>await(await fetch("https://api.ip.sb/geoip"+(e?`/${e}`:""))).json(),Qg=e=>new Promise(t=>{const n=performance.now(),r=document.createElement("img");r.src=e+"?_="+new Date().getTime(),r.style.display="none",r.onload=()=>{const i=performance.now();r.remove(),t(i-n)},r.onerror=()=>{r.remove(),t(0)},document.body.appendChild(r)}),Voe=()=>Qg("https://www.cloudflare.com/favicon.ico"),Uoe=()=>Qg("https://yt3.ggpht.com/favicon.ico"),Hoe=()=>Qg("https://github.githubassets.com/favicon.ico"),Goe=()=>Qg("https://openai.com/favicon.ico"),zoe=()=>Qg("https://apps.bdimg.com/favicon.ico"),Qo=Fe([]),l_=Fe([]),dg=Fe(0),hg=Fe(0);let Iy;const Woe=()=>{Iy==null||Iy(),Qo.value=[],l_.value=[],dg.value=0,hg.value=0;const e=Moe(),t=Yt(e.data,n=>{var r;n&&(dg.value=n.downloadTotal,hg.value=n.uploadTotal,!d_.value&&(l_.value=[...l_.value,...So.differenceWith(Qo.value,n.connections,(i,o)=>i.id===o.id)].slice(-500),Qo.value=((r=n.connections)==null?void 0:r.map(i=>{const o=Qo.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}}))??[]))});Iy=()=>{t(),e.close()}},_v=kt("config/quick-filter-regex","direct|dns-out"),u_=kt("config/quick-filter-enabled",!1),Tc=Fe(Gs.ACTIVE),joe=Ve(()=>f_.value===Mc.DESC),FL={[Gi.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[Gi.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[Gi.CHAINS]:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),[Gi.DOWNLOAD]:(e,t)=>e.download-t.download,[Gi.DOWNLOAD_SPEED]:(e,t)=>e.downloadSpeed-t.downloadSpeed,[Gi.UPLOAD]:(e,t)=>e.upload-t.upload,[Gi.UPLOAD_SPEED]:(e,t)=>e.uploadSpeed-t.uploadSpeed,[Gi.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[Gi.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[Gi.CONNECT_TIME]:(e,t)=>Ma(e.start).valueOf()-Ma(t.start).valueOf()},c_=kt("config/connection-sort-type",Gi.HOST),f_=kt("config/connection-sort-direction",Mc.ASC),bv=Fe(""),d_=Fe(!1),Fd=Ve(()=>{let e=null;return u_.value&&_v.value&&(e=new RegExp(_v.value,"i")),(Tc.value===Gs.ACTIVE?Qo.value:l_.value).filter(t=>e&&(e.test(t.chains.join(""))||e.test(t.metadata.host)||e.test(t.metadata.destinationIP))||Vs.value!==null&&t.metadata.sourceIP!==Vs.value?!1:bv.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(bv.value)):!0).sort((t,n)=>{joe.value&&([t,n]=[n,t]);const r=Nc.value?FL[c_.value](t,n):FL[Gi.HOST](t,n);return r===0?t.id.localeCompare(n.id):r})}),Vs=Fe(null),Yoe=Ve(()=>Tre.uniq(Qo.value.map(e=>e.metadata.sourceIP)).sort());function Xf(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((h,v)=>r[v]!==h)))return i;r=c;let d;if(n.key&&((a=n.debug)!=null&&a.call(n))&&(d=Date.now()),i=t(...c),n.key&&((s=n.debug)!=null&&s.call(n))){const h=Math.round((Date.now()-u)*100)/100,v=Math.round((Date.now()-d)*100)/100,m=v/16,y=(_,b)=>{for(_=String(_);_.length`},yL=()=>{const e={};for(const i in localStorage)(i.startsWith("config/")||i.startsWith("setup/"))&&(e[i]=localStorage.getItem(i));const t=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download="zashboard-settings",r.click(),URL.revokeObjectURL(n)},u1=()=>{const e=document.createElement("input");e.type="file",e.accept=".json",e.onchange=async()=>{var r;const t=(r=e.files)==null?void 0:r[0];if(!t)return;const n=new FileReader;n.onload=async()=>{const i=JSON.parse(n.result);for(const o in i)localStorage.setItem(o,i[o]);location.reload()},n.readAsText(t)},e.click()},Eu=e=>`${e.protocol}://${e.host}:${e.port}${e.secondaryPath||""}`,ru=e=>e===qo?"":eObject.values(un).filter(e=>![un.setup,!yd.value&&un.overview].includes(e)));function $B(e,t){return function(){return e.apply(t,arguments)}}const{toString:zre}=Object.prototype,{getPrototypeOf:zI}=Object,Bb=(e=>t=>{const n=zre.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fa=e=>(e=e.toLowerCase(),t=>Bb(t)===e),Vb=e=>t=>typeof t===e,{isArray:wh}=Array,dg=Vb("undefined");function Wre(e){return e!==null&&!dg(e)&&e.constructor!==null&&!dg(e.constructor)&&To(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const BB=Fa("ArrayBuffer");function jre(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&BB(e.buffer),t}const Yre=Vb("string"),To=Vb("function"),VB=Vb("number"),Ub=e=>e!==null&&typeof e=="object",Xre=e=>e===!0||e===!1,a_=e=>{if(Bb(e)!=="object")return!1;const t=zI(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Kre=Fa("Date"),Zre=Fa("File"),qre=Fa("Blob"),Jre=Fa("FileList"),Qre=e=>Ub(e)&&To(e.pipe),eie=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||To(e.append)&&((t=Bb(e))==="formdata"||t==="object"&&To(e.toString)&&e.toString()==="[object FormData]"))},tie=Fa("URLSearchParams"),[nie,rie,iie,oie]=["ReadableStream","Request","Response","Headers"].map(Fa),aie=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qg(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),wh(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Fc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,HB=e=>!dg(e)&&e!==Fc;function hC(){const{caseless:e}=HB(this)&&this||{},t={},n=(r,i)=>{const o=e&&UB(t,i)||i;a_(t[o])&&a_(r)?t[o]=hC(t[o],r):a_(r)?t[o]=hC({},r):wh(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Qg(t,(i,o)=>{n&&To(i)?e[o]=$B(i,n):e[o]=i},{allOwnKeys:r}),e),lie=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uie=(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)},cie=(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&&zI(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},fie=(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},die=e=>{if(!e)return null;if(wh(e))return e;let t=e.length;if(!VB(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},hie=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&zI(Uint8Array)),pie=(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])}},vie=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gie=Fa("HTMLFormElement"),mie=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),_L=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yie=Fa("RegExp"),GB=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qg(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},_ie=e=>{GB(e,(t,n)=>{if(To(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(To(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+"'")})}})},bie=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return wh(e)?r(e):r(String(e).split(t)),n},Sie=()=>{},wie=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ix="abcdefghijklmnopqrstuvwxyz",bL="0123456789",zB={DIGIT:bL,ALPHA:Ix,ALPHA_DIGIT:Ix+Ix.toUpperCase()+bL},xie=(e=16,t=zB.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Tie(e){return!!(e&&To(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Eie=e=>{const t=new Array(10),n=(r,i)=>{if(Ub(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=wh(r)?[]:{};return Qg(r,(a,s)=>{const l=n(a,i+1);!dg(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Cie=Fa("AsyncFunction"),Aie=e=>e&&(Ub(e)||To(e))&&To(e.then)&&To(e.catch),WB=((e,t)=>e?setImmediate:t?((n,r)=>(Fc.addEventListener("message",({source:i,data:o})=>{i===Fc&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Fc.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",To(Fc.postMessage)),Iie=typeof queueMicrotask<"u"?queueMicrotask.bind(Fc):typeof process<"u"&&process.nextTick||WB,be={isArray:wh,isArrayBuffer:BB,isBuffer:Wre,isFormData:eie,isArrayBufferView:jre,isString:Yre,isNumber:VB,isBoolean:Xre,isObject:Ub,isPlainObject:a_,isReadableStream:nie,isRequest:rie,isResponse:iie,isHeaders:oie,isUndefined:dg,isDate:Kre,isFile:Zre,isBlob:qre,isRegExp:yie,isFunction:To,isStream:Qre,isURLSearchParams:tie,isTypedArray:hie,isFileList:Jre,forEach:Qg,merge:hC,extend:sie,trim:aie,stripBOM:lie,inherits:uie,toFlatObject:cie,kindOf:Bb,kindOfTest:Fa,endsWith:fie,toArray:die,forEachEntry:pie,matchAll:vie,isHTMLForm:gie,hasOwnProperty:_L,hasOwnProp:_L,reduceDescriptors:GB,freezeMethods:_ie,toObjectSet:bie,toCamelCase:mie,noop:Sie,toFiniteNumber:wie,findKey:UB,global:Fc,isContextDefined:HB,ALPHABET:zB,generateString:xie,isSpecCompliantForm:Tie,toJSONObject:Eie,isAsyncFn:Cie,isThenable:Aie,setImmediate:WB,asap:Iie};function Bt(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)}be.inherits(Bt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:be.toJSONObject(this.config),code:this.code,status:this.status}}});const jB=Bt.prototype,YB={};["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=>{YB[e]={value:e}});Object.defineProperties(Bt,YB);Object.defineProperty(jB,"isAxiosError",{value:!0});Bt.from=(e,t,n,r,i,o)=>{const a=Object.create(jB);return be.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Bt.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Rie=null;function pC(e){return be.isPlainObject(e)||be.isArray(e)}function XB(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function SL(e,t,n){return e?e.concat(t).map(function(i,o){return i=XB(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Pie(e){return be.isArray(e)&&!e.some(pC)}const Oie=be.toFlatObject(be,{},null,function(t){return/^is[A-Z]/.test(t)});function Hb(e,t,n){if(!be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!be.isUndefined(y[m])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&be.isSpecCompliantForm(t);if(!be.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(be.isDate(v))return v.toISOString();if(!l&&be.isBlob(v))throw new Bt("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(v)||be.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,m,y){let _=v;if(v&&!y&&typeof v=="object"){if(be.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(be.isArray(v)&&Pie(v)||(be.isFileList(v)||be.endsWith(m,"[]"))&&(_=be.toArray(v)))return m=XB(m),_.forEach(function(w,S){!(be.isUndefined(w)||w===null)&&t.append(a===!0?SL([m],S,o):a===null?m:m+"[]",u(w))}),!1}return pC(v)?!0:(t.append(SL(y,m,o),u(v)),!1)}const f=[],d=Object.assign(Oie,{defaultVisitor:c,convertValue:u,isVisitable:pC});function h(v,m){if(!be.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(v),be.forEach(v,function(_,b){(!(be.isUndefined(_)||_===null)&&i.call(t,_,be.isString(b)?b.trim():b,m,d))===!0&&h(_,m?m.concat(b):[b])}),f.pop()}}if(!be.isObject(e))throw new TypeError("data must be an object");return h(e),t}function wL(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function WI(e,t){this._pairs=[],e&&Hb(e,this,t)}const KB=WI.prototype;KB.append=function(t,n){this._pairs.push([t,n])};KB.toString=function(t){const n=t?function(r){return t.call(this,r,wL)}:wL;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Die(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ZB(e,t,n){if(!t)return e;const r=n&&n.encode||Die;be.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=be.isURLSearchParams(t)?t.toString():new WI(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class xL{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){be.forEach(this.handlers,function(r){r!==null&&t(r)})}}const qB={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mie=typeof URLSearchParams<"u"?URLSearchParams:WI,Lie=typeof FormData<"u"?FormData:null,Nie=typeof Blob<"u"?Blob:null,kie={isBrowser:!0,classes:{URLSearchParams:Mie,FormData:Lie,Blob:Nie},protocols:["http","https","file","blob","url","data"]},jI=typeof window<"u"&&typeof document<"u",vC=typeof navigator=="object"&&navigator||void 0,Fie=jI&&(!vC||["ReactNative","NativeScript","NS"].indexOf(vC.product)<0),$ie=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bie=jI&&window.location.href||"http://localhost",Vie=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jI,hasStandardBrowserEnv:Fie,hasStandardBrowserWebWorkerEnv:$ie,navigator:vC,origin:Bie},Symbol.toStringTag,{value:"Module"})),si={...Vie,...kie};function Uie(e,t){return Hb(e,new si.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return si.isNode&&be.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Hie(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Gie(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&be.isArray(i)?i.length:a,l?(be.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!be.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&be.isArray(i[a])&&(i[a]=Gie(i[a])),!s)}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};return be.forEachEntry(e,(r,i)=>{t(Hie(r),i,n,0)}),n}return null}function zie(e,t,n){if(be.isString(e))try{return(t||JSON.parse)(e),be.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const em={transitional:qB,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=be.isObject(t);if(o&&be.isHTMLForm(t)&&(t=new FormData(t)),be.isFormData(t))return i?JSON.stringify(JB(t)):t;if(be.isArrayBuffer(t)||be.isBuffer(t)||be.isStream(t)||be.isFile(t)||be.isBlob(t)||be.isReadableStream(t))return t;if(be.isArrayBufferView(t))return t.buffer;if(be.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 Uie(t,this.formSerializer).toString();if((s=be.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Hb(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),zie(t)):t}],transformResponse:[function(t){const n=this.transitional||em.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(be.isResponse(t)||be.isReadableStream(t))return t;if(t&&be.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"?Bt.from(s,Bt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:si.classes.FormData,Blob:si.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],e=>{em.headers[e]={}});const Wie=be.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"]),jie=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]&&Wie[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},TL=Symbol("internals");function op(e){return e&&String(e).trim().toLowerCase()}function s_(e){return e===!1||e==null?e:be.isArray(e)?e.map(s_):String(e)}function Yie(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 Xie=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rx(e,t,n,r,i){if(be.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!be.isString(t)){if(be.isString(r))return t.indexOf(r)!==-1;if(be.isRegExp(r))return r.test(t)}}function Kie(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Zie(e,t){const n=be.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 Ji{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=op(l);if(!c)throw new Error("header name must be a non-empty string");const f=be.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=s_(s))}const a=(s,l)=>be.forEach(s,(u,c)=>o(u,c,l));if(be.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(be.isString(t)&&(t=t.trim())&&!Xie(t))a(jie(t),n);else if(be.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=op(t),t){const r=be.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Yie(i);if(be.isFunction(n))return n.call(this,i,r);if(be.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=op(t),t){const r=be.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Rx(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=op(a),a){const s=be.findKey(r,a);s&&(!n||Rx(r,r[s],s,n))&&(delete r[s],i=!0)}}return be.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||Rx(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return be.forEach(this,(i,o)=>{const a=be.findKey(r,o);if(a){n[a]=s_(i),delete n[o];return}const s=t?Kie(o):String(o).trim();s!==o&&delete n[o],n[s]=s_(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return be.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&be.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[TL]=this[TL]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=op(a);r[s]||(Zie(i,a),r[s]=!0)}return be.isArray(t)?t.forEach(o):o(t),this}}Ji.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors(Ji.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});be.freezeMethods(Ji);function Px(e,t){const n=this||em,r=t||n,i=Ji.from(r.headers);let o=r.data;return be.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function QB(e){return!!(e&&e.__CANCEL__)}function xh(e,t,n){Bt.call(this,e??"canceled",Bt.ERR_CANCELED,t,n),this.name="CanceledError"}be.inherits(xh,Bt,{__CANCEL__:!0});function eV(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Bt("Request failed with status code "+n.status,[Bt.ERR_BAD_REQUEST,Bt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function qie(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Jie(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,d=0;for(;f!==i;)d+=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 c1=(e,t,n=3)=>{let r=0;const i=Jie(50,250);return Qie(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)},EL=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},CL=e=>(...t)=>be.asap(()=>e(...t)),eoe=si.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,si.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(si.origin),si.navigator&&/(msie|trident)/i.test(si.navigator.userAgent)):()=>!0,toe=si.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];be.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),be.isString(r)&&a.push("path="+r),be.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 noe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function roe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function tV(e,t){return e&&!noe(t)?roe(e,t):t}const AL=e=>e instanceof Ji?{...e}:e;function hf(e,t){t=t||{};const n={};function r(u,c,f,d){return be.isPlainObject(u)&&be.isPlainObject(c)?be.merge.call({caseless:d},u,c):be.isPlainObject(c)?be.merge({},c):be.isArray(c)?c.slice():c}function i(u,c,f,d){if(be.isUndefined(c)){if(!be.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function o(u,c){if(!be.isUndefined(c))return r(void 0,c)}function a(u,c){if(be.isUndefined(c)){if(!be.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(AL(u),AL(c),f,!0)};return be.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);be.isUndefined(d)&&f!==s||(n[c]=d)}),n}const nV=e=>{const t=hf({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Ji.from(a),t.url=ZB(tV(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(be.isFormData(n)){if(si.hasStandardBrowserEnv||si.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(si.hasStandardBrowserEnv&&(r&&be.isFunction(r)&&(r=r(t)),r||r!==!1&&eoe(t.url))){const u=i&&o&&toe.read(o);u&&a.set(i,u)}return t},ioe=typeof XMLHttpRequest<"u",ooe=ioe&&function(e){return new Promise(function(n,r){const i=nV(e);let o=i.data;const a=Ji.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,d,h,v;function m(){h&&h(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function _(){if(!y)return;const w=Ji.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),T={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};eV(function(A){n(A),m()},function(A){r(A),m()},T),y=null}"onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(_)},y.onabort=function(){y&&(r(new Bt("Request aborted",Bt.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new Bt("Network Error",Bt.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||qB;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new Bt(S,T.clarifyTimeoutError?Bt.ETIMEDOUT:Bt.ECONNABORTED,e,y)),y=null},o===void 0&&a.setContentType(null),"setRequestHeader"in y&&be.forEach(a.toJSON(),function(S,T){y.setRequestHeader(T,S)}),be.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),s&&s!=="json"&&(y.responseType=i.responseType),u&&([d,v]=c1(u,!0),y.addEventListener("progress",d)),l&&y.upload&&([f,h]=c1(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=w=>{y&&(r(!w||w.type?new xh(null,e,y):w),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const b=qie(i.url);if(b&&si.protocols.indexOf(b)===-1){r(new Bt("Unsupported protocol "+b+":",Bt.ERR_BAD_REQUEST,e));return}y.send(o||null)})},aoe=(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 Bt?c:new xh(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,o(new Bt(`timeout ${t} of ms exceeded`,Bt.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=()=>be.asap(s),l}},soe=function*(e,t){let n=e.byteLength;if(n{const i=loe(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 d=o+=f;n(d)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},Gb=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",rV=Gb&&typeof ReadableStream=="function",coe=Gb&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),iV=(e,...t)=>{try{return!!e(...t)}catch{return!1}},foe=rV&&iV(()=>{let e=!1;const t=new Request(si.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),RL=64*1024,gC=rV&&iV(()=>be.isReadableStream(new Response("").body)),f1={stream:gC&&(e=>e.body)};Gb&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!f1[t]&&(f1[t]=be.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Bt(`Response type '${t}' is not supported`,Bt.ERR_NOT_SUPPORT,r)})})})(new Response);const doe=async e=>{if(e==null)return 0;if(be.isBlob(e))return e.size;if(be.isSpecCompliantForm(e))return(await new Request(si.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(be.isArrayBufferView(e)||be.isArrayBuffer(e))return e.byteLength;if(be.isURLSearchParams(e)&&(e=e+""),be.isString(e))return(await coe(e)).byteLength},hoe=async(e,t)=>{const n=be.toFiniteNumber(e.getContentLength());return n??doe(t)},poe=Gb&&(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:d}=nV(e);u=u?(u+"").toLowerCase():"text";let h=aoe([i,o&&o.toAbortSignal()],a),v;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let y;try{if(l&&foe&&n!=="get"&&n!=="head"&&(y=await hoe(c,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(be.isFormData(r)&&(E=T.headers.get("content-type"))&&c.setContentType(E),T.body){const[A,P]=EL(y,c1(CL(l)));r=IL(T.body,RL,A,P)}}be.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;v=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:_?f:void 0});let b=await fetch(v);const w=gC&&(u==="stream"||u==="response");if(gC&&(s||w&&m)){const T={};["status","statusText","headers"].forEach(I=>{T[I]=b[I]});const E=be.toFiniteNumber(b.headers.get("content-length")),[A,P]=s&&EL(E,c1(CL(s),!0))||[];b=new Response(IL(b.body,RL,A,()=>{P&&P(),m&&m()}),T)}u=u||"text";let S=await f1[be.findKey(f1,u)||"text"](b,e);return!w&&m&&m(),await new Promise((T,E)=>{eV(T,E,{data:S,headers:Ji.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:v})})}catch(_){throw m&&m(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new Bt("Network Error",Bt.ERR_NETWORK,e,v),{cause:_.cause||_}):Bt.from(_,_&&_.code,e,v)}}),mC={http:Rie,xhr:ooe,fetch:poe};be.forEach(mC,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const PL=e=>`- ${e}`,voe=e=>be.isFunction(e)||e===null||e===!1,oV={getAdapter:e=>{e=be.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(PL).join(` +`):" "+PL(o[0]):"as no adapter specified";throw new Bt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:mC};function Ox(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xh(null,e)}function OL(e){return Ox(e),e.headers=Ji.from(e.headers),e.data=Px.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),oV.getAdapter(e.adapter||em.adapter)(e).then(function(r){return Ox(e),r.data=Px.call(e,e.transformResponse,r),r.headers=Ji.from(r.headers),r},function(r){return QB(r)||(Ox(e),r&&r.response&&(r.response.data=Px.call(e,e.transformResponse,r.response),r.response.headers=Ji.from(r.response.headers))),Promise.reject(r)})}const aV="1.7.9",zb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zb[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const DL={};zb.transitional=function(t,n,r){function i(o,a){return"[Axios v"+aV+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Bt(i(a," has been removed"+(n?" in "+n:"")),Bt.ERR_DEPRECATED);return n&&!DL[a]&&(DL[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}};zb.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function goe(e,t,n){if(typeof e!="object")throw new Bt("options must be an object",Bt.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 Bt("option "+o+" must be "+l,Bt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Bt("Unknown option "+o,Bt.ERR_BAD_OPTION)}}const l_={assertOptions:goe,validators:zb},za=l_.validators;class Jc{constructor(t){this.defaults=t,this.interceptors={request:new xL,response:new xL}}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=hf(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&l_.assertOptions(r,{silentJSONParsing:za.transitional(za.boolean),forcedJSONParsing:za.transitional(za.boolean),clarifyTimeoutError:za.transitional(za.boolean)},!1),i!=null&&(be.isFunction(i)?n.paramsSerializer={serialize:i}:l_.assertOptions(i,{encode:za.function,serialize:za.function},!0)),l_.assertOptions(n,{baseUrl:za.spelling("baseURL"),withXsrfToken:za.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&be.merge(o.common,o[n.method]);o&&be.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=Ji.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,f=0,d;if(!l){const v=[OL.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.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 xh(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 YI(function(i){t=i}),cancel:t}}}function moe(e){return function(n){return e.apply(null,n)}}function yoe(e){return be.isObject(e)&&e.isAxiosError===!0}const yC={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(yC).forEach(([e,t])=>{yC[t]=e});function sV(e){const t=new Jc(e),n=$B(Jc.prototype.request,t);return be.extend(n,Jc.prototype,t,{allOwnKeys:!0}),be.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return sV(hf(e,i))},n}const Gt=sV(em);Gt.Axios=Jc;Gt.CanceledError=xh;Gt.CancelToken=YI;Gt.isCancel=QB;Gt.VERSION=aV;Gt.toFormData=Hb;Gt.AxiosError=Bt;Gt.Cancel=Gt.CanceledError;Gt.all=function(t){return Promise.all(t)};Gt.spread=moe;Gt.isAxiosError=yoe;Gt.mergeConfig=hf;Gt.AxiosHeaders=Ji;Gt.formToJSON=e=>JB(be.isHTMLForm(e)?new FormData(e):e);Gt.getAdapter=oV.getAdapter;Gt.HttpStatusCode=yC;Gt.default=Gt;var u_={exports:{}},_oe=u_.exports,ML;function boe(){return ML||(ML=1,function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(_oe,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(h){s.onopen(h)}),f.addEventListener("close",function(h){s.onclose(h)}),f.addEventListener("connecting",function(h){s.onconnecting(h)}),f.addEventListener("message",function(h){s.onmessage(h)}),f.addEventListener("error",function(h){s.onerror(h)}),this.addEventListener=f.addEventListener.bind(f),this.removeEventListener=f.removeEventListener.bind(f),this.dispatchEvent=f.dispatchEvent.bind(f);function d(h,v){var m=document.createEvent("CustomEvent");return m.initCustomEvent(h,!1,!1,v),m}this.open=function(h){if(l=new WebSocket(s.url,r||[]),h){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else f.dispatchEvent(d("connecting")),this.reconnectAttempts=0;(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",s.url);var v=l,m=setTimeout(function(){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",s.url),c=!0,v.close(),c=!1},s.timeoutInterval);l.onopen=function(y){clearTimeout(m),(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",s.url),s.protocol=l.protocol,s.readyState=WebSocket.OPEN,s.reconnectAttempts=0;var _=d("open");_.isReconnect=h,h=!1,f.dispatchEvent(_)},l.onclose=function(y){if(clearTimeout(b),l=null,u)s.readyState=WebSocket.CLOSED,f.dispatchEvent(d("close"));else{s.readyState=WebSocket.CONNECTING;var _=d("connecting");_.code=y.code,_.reason=y.reason,_.wasClean=y.wasClean,f.dispatchEvent(_),!h&&!c&&((s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",s.url),f.dispatchEvent(d("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(y){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",s.url,y.data);var _=d("message");_.data=y.data,f.dispatchEvent(_)},l.onerror=function(y){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",s.url,y),f.dispatchEvent(d("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(h){if(l)return(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",s.url,h),l.send(h);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(h,v){typeof h>"u"&&(h=1e3),u=!0,l&&l.close(h,v)},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})}(u_)),u_.exports}var Soe=boe();const woe=Ug(Soe);Gt.interceptors.request.use(e=>{var t;return e.baseURL=Eu(cl.value),e.headers.Authorization="Bearer "+((t=cl.value)==null?void 0:t.password),e});Gt.interceptors.response.use(null,e=>(e.status===401&&ci.value?(DB(ci.value),ci.value=null,ka.push({name:un.setup}),vs(()=>{const{showTip:t}=Mb();t("unauthorizedTip")})):e.status===404&&(ci.value=null,ka.push({name:un.setup})),e));const hg=Fe(),_C=Fe(!1),xoe=()=>Gt.get("/version"),dl=Ve(()=>{var e;return(e=hg.value)==null?void 0:e.includes("sing-box")}),lV=Fe("1.46.2");Yt(cl,async e=>{if(e){const{data:t}=await xoe();if(hg.value=t.version,dl.value)return;_C.value=await Voe(),_C.value&&X0.value&&dV()}},{immediate:!0});const Toe=()=>Gt.get("/proxies"),Eoe=(e,t)=>Gt.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),LL=(e,t,n)=>Gt.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),NL=(e,t,n)=>Gt.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),Coe=()=>Gt.get("/providers/proxies"),uV=e=>Gt.put(`/providers/proxies/${encodeURIComponent(e)}`),Aoe=e=>Gt.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),Ioe=()=>Gt.get("/rules"),Roe=()=>Gt.get("/providers/rules"),cV=e=>Gt.put(`/providers/rules/${encodeURIComponent(e)}`),Wb=e=>Gt.delete(`/connections/${e}`),Poe=()=>Gt.get("/configs"),Ooe=e=>Gt.patch("/configs",e),kL=()=>Gt.post("/cache/fakeip/flush"),Doe=()=>Gt.put("/configs?reload=true",{path:"",payload:""}),fV=()=>Gt.post("/upgrade/ui"),dV=()=>Gt.post("/upgrade"),Moe=()=>Gt.post("/restart"),Loe=e=>Gt.get("/dns/query",{params:e}),jb=(e,t)=>{const n=cl.value,r=new URL(`${Eu(n).replace("http","ws")}/${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=Fe(),o=new woe(r.toString()),a=()=>{o.close()};return o.onmessage=({data:s})=>{i.value=JSON.parse(s)},{data:i,close:a}},Noe=()=>jb("connections"),koe=(e={})=>jb("logs",e),Foe=()=>jb("memory"),$oe=()=>jb("traffic"),FL=async(e,t=1e4)=>{const n=new AbortController,r=setTimeout(()=>n.abort(),t);try{return(await fetch(`${Eu(e)}/version`,{method:"GET",headers:{Authorization:`Bearer ${e.password}`},signal:n.signal})).ok}catch{return!1}finally{clearTimeout(r)}},Boe=async()=>{const e=await fetch("https://api.github.com/repos/Zephyruso/zashboard/releases/latest"),{tag_name:t}=await e.json();return t&&t!==`v${lV.value}`},$L=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))},Voe=async()=>{const e=/(alpha|beta|meta)-?(\w+)/.exec(hg.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.endsWith(hg.value)}const t=e[1],n=e[2];return t==="meta"?await $L("/releases/latest",n):t==="alpha"?await $L("/releases/tags/Prerelease-Alpha",n):!1},Uoe=()=>fetch("https://api-v3.speedtest.cn/ip"),hV=async(e="")=>await(await fetch("https://api.ip.sb/geoip"+(e?`/${e}`:""))).json(),tm=e=>new Promise(t=>{const n=performance.now(),r=document.createElement("img");r.src=e+"?_="+new Date().getTime(),r.style.display="none",r.onload=()=>{const i=performance.now();r.remove(),t(i-n)},r.onerror=()=>{r.remove(),t(0)},document.body.appendChild(r)}),Hoe=()=>tm("https://www.cloudflare.com/favicon.ico"),Goe=()=>tm("https://yt3.ggpht.com/favicon.ico"),zoe=()=>tm("https://github.githubassets.com/favicon.ico"),Woe=()=>tm("https://openai.com/favicon.ico"),joe=()=>tm("https://apps.bdimg.com/favicon.ico"),Qo=Fe([]),c_=Fe([]),pg=Fe(0),vg=Fe(0);let Py;const Yoe=()=>{Py==null||Py(),Qo.value=[],c_.value=[],pg.value=0,vg.value=0;const e=Noe(),t=Yt(e.data,n=>{var r;n&&(pg.value=n.downloadTotal,vg.value=n.uploadTotal,!p_.value&&(c_.value=[...c_.value,...So.differenceWith(Qo.value,n.connections,(i,o)=>i.id===o.id)].slice(-500),Qo.value=((r=n.connections)==null?void 0:r.map(i=>{const o=Qo.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}}))??[]))});Py=()=>{t(),e.close()}},bv=Mt("config/quick-filter-regex","direct|dns-out"),f_=Mt("config/quick-filter-enabled",!1),Tc=Fe(Gs.ACTIVE),Xoe=Ve(()=>h_.value===Mc.DESC),BL={[Gi.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[Gi.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[Gi.CHAINS]:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),[Gi.DOWNLOAD]:(e,t)=>e.download-t.download,[Gi.DOWNLOAD_SPEED]:(e,t)=>e.downloadSpeed-t.downloadSpeed,[Gi.UPLOAD]:(e,t)=>e.upload-t.upload,[Gi.UPLOAD_SPEED]:(e,t)=>e.uploadSpeed-t.uploadSpeed,[Gi.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[Gi.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[Gi.CONNECT_TIME]:(e,t)=>Ma(e.start).valueOf()-Ma(t.start).valueOf()},d_=Mt("config/connection-sort-type",Gi.HOST),h_=Mt("config/connection-sort-direction",Mc.ASC),Sv=Fe(""),p_=Fe(!1),Fd=Ve(()=>{let e=null;return f_.value&&bv.value&&(e=new RegExp(bv.value,"i")),(Tc.value===Gs.ACTIVE?Qo.value:c_.value).filter(t=>e&&(e.test(t.chains.join(""))||e.test(t.metadata.host)||e.test(t.metadata.destinationIP))||Vs.value!==null&&t.metadata.sourceIP!==Vs.value?!1:Sv.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(Sv.value)):!0).sort((t,n)=>{Xoe.value&&([t,n]=[n,t]);const r=Nc.value?BL[d_.value](t,n):BL[Gi.HOST](t,n);return r===0?t.id.localeCompare(n.id):r})}),Vs=Fe(null),Koe=Ve(()=>Cre.uniq(Qo.value.map(e=>e.metadata.sourceIP)).sort());function Xf(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((h,v)=>r[v]!==h)))return i;r=c;let d;if(n.key&&((a=n.debug)!=null&&a.call(n))&&(d=Date.now()),i=t(...c),n.key&&((s=n.debug)!=null&&s.call(n))){const h=Math.round((Date.now()-u)*100)/100,v=Math.round((Date.now()-d)*100)/100,m=v/16,y=(_,b)=>{for(_=String(_);_.lengthMath.abs(e-t)<1,Koe=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},Zoe=e=>e,qoe=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},Joe=(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)}},$L={passive:!0},Qoe=typeof window>"u"?!0:"onscrollend"in window,eae=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&Qoe?()=>{}:Koe(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,$L),n.addEventListener("scrollend",l,$L),()=>{n.removeEventListener("scroll",s),n.removeEventListener("scrollend",l)}},tae=(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"])},nae=(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 rae{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:Zoe,rangeExtractor:qoe,onChange:()=>{},measureElement:tae,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=Xf(()=>(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=Xf(()=>[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=Xf(()=>[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=Xf(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,r,i)=>this.range=n.length>0&&r>0?iae({measurements:n,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Xf(()=>[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=Xf(()=>[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 Px(r[fV(0,r.length-1,i=>Px(r[i]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const i=this.getSize(),o=this.getScrollOffset();r==="auto"&&n>=o+i&&(r="end"),r==="end"&&(n-=i);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=i.start-this.options.scrollPaddingStart+(i.size-o)/2;switch(r){case"center":return[this.getOffsetForAlignment(s,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,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]=Px(this.getOffsetForIndex(n,s));Xoe(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 fV=(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 iae({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,o=fV(0,r,s=>e[s].start,n);let a=o;for(;aN(e).getScrollElement(),i=>{i&&t._willUpdate()},{immediate:!0}),Yt(()=>N(e),i=>{t.setOptions({...i,onChange:(o,a)=>{var s;LE(n),(s=i.onChange)==null||s.call(i,o,a)}}),t._willUpdate(),LE(n)},{immediate:!0}),tI(r),n}function dV(e){return oae(Ve(()=>({observeElementRect:Joe,observeElementOffset:eae,scrollToFn:nae,...N(e)})))}const aae=["data-index"],jI=it({__name:"VirtualScroller",props:{data:{}},setup(e){const t=Fe(null),n=e,r=Ve(()=>({count:n.data.length,getScrollElement:()=>t.value,estimateSize:()=>55,overscan:24})),i=dV(r),o=Ve(()=>i.value.getVirtualItems()),a=Ve(()=>i.value.getTotalSize()),s=l=>{l&&i.value.measureElement(l)};return(l,u)=>{var c;return K(),se("div",{ref_key:"parentRef",ref:t,class:"flex h-full w-full overflow-y-auto p-2"},[L("div",{style:Gr({height:`${a.value}px`}),class:"relative w-full max-sm:min-h-[calc(100%+1px)]"},[L("div",{class:"absolute left-0 top-0 w-full",style:Gr({transform:`translateY(${((c=o.value[0])==null?void 0:c.start)??0}px)`})},[(K(!0),se(qe,null,ln(o.value,f=>(K(),se("div",{key:f.key.toString(),"data-index":f.index,ref_for:!0,ref:s},[Md(l.$slots,"default",{item:l.data[f.index],index:f.index})],8,aae))),128))],4)],4)],512)}}}),BL=Fe(),VL=Fe(),YI=()=>({infoConn:BL,modalRef:VL,handlerInfo:t=>{var n;BL.value=t,(n=VL.value)==null||n.showModal()}}),sae=it({props:{conn:Object},name:"ConnectionCard",setup(e){const{handlerInfo:t}=YI();return()=>{const n={[vt.Host]:ye("span",{class:"w-80 grow break-all text-primary/80"},[e.conn.metadata.host||e.conn.metadata.destinationIP]),[vt.Destination]:ye("span",{class:"w-80 grow break-all"},[MB(e.conn)]),[vt.SourceIP]:ye("span",{class:"w-80 grow break-all"},[a1(e.conn.metadata.sourceIP)]),[vt.SourcePort]:ye("span",{class:"w-80 grow break-all"},[e.conn.metadata.sourcePort]),[vt.Type]:ye("span",{class:"w-80 grow break-all"},[e.conn.metadata.type,ft(" | "),e.conn.metadata.network]),[vt.Rule]:ye("span",{class:"w-80 grow break-all"},[e.conn.rule,e.conn.rulePayload&&ye(qe,null,[ft(": "),e.conn.rulePayload])]),[vt.Process]:ye("span",{class:"w-80 grow break-all"},[DB(e.conn)]),[vt.Chains]:ye("span",{class:"flex w-80 grow items-center gap-1 break-all"},[So.last(e.conn.chains),So.last(e.conn.chains)!==So.first(e.conn.chains)&&ye(qe,null,[ye(ff,{class:"h-4 w-4"},null),So.first(e.conn.chains)])]),[vt.Download]:ye("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Tn(e.conn.download),ye(pQ,{class:"h-4 w-4"},null)]),[vt.Upload]:ye("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Tn(e.conn.upload),ye(gQ,{class:"h-4 w-4"},null)]),[vt.DlSpeed]:ye("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Tn(e.conn.downloadSpeed),ft("/s"),ye(xb,{class:"h-4 w-4"},null)]),[vt.UlSpeed]:ye("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Tn(e.conn.uploadSpeed),ft("/s"),ye(Xg,{class:"h-4 w-4"},null)]),[vt.ConnectTime]:ye("div",{class:"gap-1 whitespace-nowrap"},[kb(e.conn.start)]),[vt.Details]:ye("button",{class:"btn btn-circle btn-xs",onClick:()=>t(e.conn)},[ye(H4,{class:"h-4 w-4"},null)]),[vt.Close]:ye("button",{class:"btn btn-circle btn-xs",onClick:()=>Gb(e.conn.id)},[ye(Eb,{class:"h-4 w-4"},null)])};return ye("div",{class:"card gap-1 p-1"},[ks.value.map(r=>ye("div",{class:"flex items-center gap-1 text-sm"},[r.map(i=>n[i])]))])}}}),lae={key:0,class:"card m-2 flex-row p-2 text-sm"},uae=it({__name:"ConnectionCardList",setup(e){return(t,n)=>N(Fd).length?(K(),Ot(jI,{key:1,data:N(Fd)},{default:Mr(({item:r})=>[ye(N(sae),{class:"mb-1",conn:r},null,8,["conn"])]),_:1},8,["data"])):(K(),se("div",lae,oe(t.$t("noContent")),1))}});/** + color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(l=n==null?void 0:n.onChange)==null||l.call(n,i),i}}function Dx(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Zoe=(e,t)=>Math.abs(e-t)<1,qoe=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},Joe=e=>e,Qoe=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},eae=(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)}},VL={passive:!0},tae=typeof window>"u"?!0:"onscrollend"in window,nae=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&tae?()=>{}:qoe(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,VL),n.addEventListener("scrollend",l,VL),()=>{n.removeEventListener("scroll",s),n.removeEventListener("scrollend",l)}},rae=(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"])},iae=(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 oae{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:Joe,rangeExtractor:Qoe,onChange:()=>{},measureElement:rae,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=Xf(()=>(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=Xf(()=>[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=Xf(()=>[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=Xf(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,r,i)=>this.range=n.length>0&&r>0?aae({measurements:n,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Xf(()=>[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=Xf(()=>[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 Dx(r[pV(0,r.length-1,i=>Dx(r[i]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const i=this.getSize(),o=this.getScrollOffset();r==="auto"&&n>=o+i&&(r="end"),r==="end"&&(n-=i);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=i.start-this.options.scrollPaddingStart+(i.size-o)/2;switch(r){case"center":return[this.getOffsetForAlignment(s,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,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]=Dx(this.getOffsetForIndex(n,s));Zoe(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 pV=(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 aae({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,o=pV(0,r,s=>e[s].start,n);let a=o;for(;aN(e).getScrollElement(),i=>{i&&t._willUpdate()},{immediate:!0}),Yt(()=>N(e),i=>{t.setOptions({...i,onChange:(o,a)=>{var s;kE(n),(s=i.onChange)==null||s.call(i,o,a)}}),t._willUpdate(),kE(n)},{immediate:!0}),rI(r),n}function vV(e){return sae(Ve(()=>({observeElementRect:eae,observeElementOffset:nae,scrollToFn:iae,...N(e)})))}const lae=["data-index"],XI=it({__name:"VirtualScroller",props:{data:{}},setup(e){const t=Fe(null),n=e,r=Ve(()=>({count:n.data.length,getScrollElement:()=>t.value,estimateSize:()=>55,overscan:24})),i=vV(r),o=Ve(()=>i.value.getVirtualItems()),a=Ve(()=>i.value.getTotalSize()),s=l=>{l&&i.value.measureElement(l)};return(l,u)=>{var c;return K(),ae("div",{ref_key:"parentRef",ref:t,class:"flex h-full w-full overflow-y-auto p-2"},[L("div",{style:Gr({height:`${a.value}px`}),class:"relative w-full max-sm:min-h-[calc(100%+1px)]"},[L("div",{class:"absolute left-0 top-0 w-full",style:Gr({transform:`translateY(${((c=o.value[0])==null?void 0:c.start)??0}px)`})},[(K(!0),ae(qe,null,on(o.value,f=>(K(),ae("div",{key:f.key.toString(),"data-index":f.index,ref_for:!0,ref:s},[Md(l.$slots,"default",{item:l.data[f.index],index:f.index})],8,lae))),128))],4)],4)],512)}}}),UL=Fe(),HL=Fe(),KI=()=>({infoConn:UL,modalRef:HL,handlerInfo:t=>{var n;UL.value=t,(n=HL.value)==null||n.showModal()}}),uae=it({props:{conn:Object},name:"ConnectionCard",setup(e){const{handlerInfo:t}=KI();return()=>{const n={[vt.Host]:ye("span",{class:"w-80 grow break-all text-primary/80"},[e.conn.metadata.host||e.conn.metadata.destinationIP]),[vt.Destination]:ye("span",{class:"w-80 grow break-all"},[kB(e.conn)]),[vt.SourceIP]:ye("span",{class:"w-80 grow break-all"},[l1(e.conn.metadata.sourceIP)]),[vt.SourcePort]:ye("span",{class:"w-80 grow break-all"},[e.conn.metadata.sourcePort]),[vt.Type]:ye("span",{class:"w-80 grow break-all"},[e.conn.metadata.type,ft(" | "),e.conn.metadata.network]),[vt.Rule]:ye("span",{class:"w-80 grow break-all"},[e.conn.rule,e.conn.rulePayload&&ye(qe,null,[ft(": "),e.conn.rulePayload])]),[vt.Process]:ye("span",{class:"w-80 grow break-all"},[NB(e.conn)]),[vt.Chains]:ye("span",{class:"flex w-80 grow items-center gap-1 break-all"},[So.last(e.conn.chains),So.last(e.conn.chains)!==So.first(e.conn.chains)&&ye(qe,null,[ye(ff,{class:"h-4 w-4"},null),So.first(e.conn.chains)])]),[vt.Download]:ye("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Tn(e.conn.download),ye(mQ,{class:"h-4 w-4"},null)]),[vt.Upload]:ye("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Tn(e.conn.upload),ye(yQ,{class:"h-4 w-4"},null)]),[vt.DlSpeed]:ye("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Tn(e.conn.downloadSpeed),ft("/s"),ye(Eb,{class:"h-4 w-4"},null)]),[vt.UlSpeed]:ye("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Tn(e.conn.uploadSpeed),ft("/s"),ye(Zg,{class:"h-4 w-4"},null)]),[vt.ConnectTime]:ye("div",{class:"gap-1 whitespace-nowrap"},[$b(e.conn.start)]),[vt.Details]:ye("button",{class:"btn btn-circle btn-xs",onClick:()=>t(e.conn)},[ye(W4,{class:"h-4 w-4"},null)]),[vt.Close]:ye("button",{class:"btn btn-circle btn-xs",onClick:()=>Wb(e.conn.id)},[ye(Ab,{class:"h-4 w-4"},null)])};return ye("div",{class:"card gap-1 p-1"},[ks.value.map(r=>ye("div",{class:"flex items-center gap-1 text-sm"},[r.map(i=>n[i])]))])}}}),cae={key:0,class:"card m-2 flex-row p-2 text-sm"},fae=it({__name:"ConnectionCardList",setup(e){return(t,n)=>N(Fd).length?(K(),Ot(XI,{key:1,data:N(Fd)},{default:Mr(({item:r})=>[ye(N(uae),{class:"mb-1",conn:r},null,8,["conn"])]),_:1},8,["data"])):(K(),ae("div",cae,re(t.$t("noContent")),1))}});/** * table-core * * Copyright (c) TanStack @@ -87,10 +87,10 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function lu(e,t){return typeof e=="function"?e(t):e}function Co(e,t){return n=>{t.setState(r=>({...r,[e]:lu(n,r[e])}))}}function Qc(e){return e instanceof Function}function cae(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function hV(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 xt(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,d=f/16,h=(v,m)=>{for(v=String(v);v.length{t.setState(r=>({...r,[e]:lu(n,r[e])}))}}function Qc(e){return e instanceof Function}function dae(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function gV(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 xt(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,d=f/16,h=(v,m)=>{for(v=String(v);v.length{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:r}}function fae(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:xt(()=>[e,n,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),Tt(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(o,n,t,e)},{}),o}function dae(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=d=>{let h=d;for(const m of l.split(".")){var v;h=(v=h)==null?void 0:v[m]}return h}:c=d=>d[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:xt(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(h=>h.getFlatColumns())]},Tt(e.options,"debugColumns")),getLeafColumns:xt(()=>[e._getOrderColumnsFn()],d=>{var h;if((h=f.columns)!=null&&h.length){let v=f.columns.flatMap(m=>m.getLeafColumns());return d(v)}return[f]},Tt(e.options,"debugColumns"))};for(const d of e._features)d.createColumn==null||d.createColumn(f,e);return f}const Xr="debugHeaders";function UL(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 hae={createTable:e=>{e.getHeaderGroups=xt(()=>[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(d=>d.id===f)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(f=>n.find(d=>d.id===f)).filter(Boolean))!=null?a:[],u=n.filter(f=>!(r!=null&&r.includes(f.id))&&!(i!=null&&i.includes(f.id)));return Ry(t,[...s,...u,...l],e)},Tt(e.options,Xr)),e.getCenterHeaderGroups=xt(()=>[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))),Ry(t,n,e,"center")),Tt(e.options,Xr)),e.getLeftHeaderGroups=xt(()=>[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 Ry(t,o,e,"left")},Tt(e.options,Xr)),e.getRightHeaderGroups=xt(()=>[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 Ry(t,o,e,"right")},Tt(e.options,Xr)),e.getFooterGroups=xt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Tt(e.options,Xr)),e.getLeftFooterGroups=xt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Tt(e.options,Xr)),e.getCenterFooterGroups=xt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Tt(e.options,Xr)),e.getRightFooterGroups=xt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Tt(e.options,Xr)),e.getFlatHeaders=xt(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),Tt(e.options,Xr)),e.getLeftFlatHeaders=xt(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),Tt(e.options,Xr)),e.getCenterFlatHeaders=xt(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),Tt(e.options,Xr)),e.getRightFlatHeaders=xt(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),Tt(e.options,Xr)),e.getCenterLeafHeaders=xt(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Tt(e.options,Xr)),e.getLeftLeafHeaders=xt(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Tt(e.options,Xr)),e.getRightLeafHeaders=xt(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Tt(e.options,Xr)),e.getLeafHeaders=xt(()=>[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()},Tt(e.options,Xr))}};function Ry(e,t,n,r){var i,o;let a=0;const s=function(d,h){h===void 0&&(h=1),a=Math.max(a,h),d.filter(v=>v.getIsVisible()).forEach(v=>{var m;(m=v.columns)!=null&&m.length&&s(v.columns,h+1)},0)};s(e);let l=[];const u=(d,h)=>{const v={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},m=[];d.forEach(y=>{const _=[...m].reverse()[0],b=y.column.depth===v.depth;let w,S=!1;if(b&&y.column.parent?w=y.column.parent:(w=y.column,S=!0),_&&(_==null?void 0:_.column)===w)_.subHeaders.push(y);else{const E=UL(n,w,{id:[r,h,w.id,y==null?void 0:y.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${m.filter(T=>T.column===w).length}`:void 0,depth:h,index:m.length});E.subHeaders.push(y),m.push(E)}v.headers.push(y),y.headerGroup=v}),l.push(v),h>0&&u(m,h-1)},c=t.map((d,h)=>UL(n,d,{depth:a,index:h}));u(c,a-1),l.reverse();const f=d=>d.filter(v=>v.column.getIsVisible()).map(v=>{let m=0,y=0,_=[0];v.subHeaders&&v.subHeaders.length?(_=[],f(v.subHeaders).forEach(w=>{let{colSpan:S,rowSpan:E}=w;m+=S,_.push(E)})):m=1;const b=Math.min(..._);return y=y+b,v.colSpan=m,v.rowSpan=y,{colSpan:m,rowSpan:y}});return f((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const pV=(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:()=>hV(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:xt(()=>[e.getAllLeafColumns()],l=>l.map(u=>fae(e,s,u,u.id)),Tt(e.options,"debugRows")),_getAllCellsByColumnId:xt(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),Tt(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()}}},vV=(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))};vV.autoRemove=e=>Da(e);const gV=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};gV.autoRemove=e=>Da(e);const mV=(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())};mV.autoRemove=e=>Da(e);const yV=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};yV.autoRemove=e=>Da(e)||!(e!=null&&e.length);const _V=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});_V.autoRemove=e=>Da(e)||!(e!=null&&e.length);const bV=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});bV.autoRemove=e=>Da(e)||!(e!=null&&e.length);const SV=(e,t,n)=>e.getValue(t)===n;SV.autoRemove=e=>Da(e);const wV=(e,t,n)=>e.getValue(t)==n;wV.autoRemove=e=>Da(e);const XI=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};XI.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]};XI.autoRemove=e=>Da(e)||Da(e[0])&&Da(e[1]);const Us={includesString:vV,includesStringSensitive:gV,equalsString:mV,arrIncludes:yV,arrIncludesAll:_V,arrIncludesSome:bV,equals:SV,weakEquals:wV,inNumberRange:XI};function Da(e){return e==null||e===""}const vae={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Co("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"?Us.includesString:typeof r=="number"?Us.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Us.equals:Array.isArray(r)?Us.arrIncludes:Us.weakEquals},e.getFilterFn=()=>{var n,r;return Qc(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:Us[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=lu(n,o?o.value:void 0);if(HL(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=lu(t,i))==null?void 0:o.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(HL(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 HL(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const gae=(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),mae=(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},yae=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r=o)&&(r=o)}),r},_ae=(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},Sae=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!cae(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},wae=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),xae=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,Tae=(e,t)=>t.length,Ox={sum:gae,min:mae,max:yae,extent:_ae,mean:bae,median:Sae,unique:wae,uniqueCount:xae,count:Tae},Eae={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:Co("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 Ox.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Ox.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Qc(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:Ox[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 Cae(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 Aae={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Co("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=xt(n=>[Sv(t,n)],n=>n.findIndex(r=>r.id===e.id),Tt(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=Sv(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=Sv(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=xt(()=>[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 Cae(o,n,r)},Tt(e.options,"debugTable"))}},Dx=()=>({left:[],right:[]}),Iae={getInitialState:e=>({columnPinning:Dx(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Co("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=xt(()=>[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))},Tt(t.options,"debugRows")),e.getLeftVisibleCells=xt(()=>[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"})),Tt(t.options,"debugRows")),e.getRightVisibleCells=xt(()=>[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"})),Tt(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?Dx():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Dx())},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=xt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),Tt(e.options,"debugColumns")),e.getRightLeafColumns=xt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),Tt(e.options,"debugColumns")),e.getCenterLeafColumns=xt(()=>[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))},Tt(e.options,"debugColumns"))}},Py={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Mx=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Rae={getDefaultColumnDef:()=>Py,getInitialState:e=>({columnSizing:{},columnSizingInfo:Mx(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Co("columnSizing",e),onColumnSizingInfoChange:Co("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:Py.minSize,(r=o??e.columnDef.size)!=null?r:Py.size),(i=e.columnDef.maxSize)!=null?i:Py.maxSize)},e.getStart=xt(n=>[n,Sv(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,o)=>i+o.getSize(),0),Tt(t.options,"debugColumns")),e.getAfter=xt(n=>[n,Sv(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,o)=>i+o.getSize(),0),Tt(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(),Lx(o)&&o.touches&&o.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(_=>[_.column.id,_.column.getSize()]):[[r.id,r.getSize()]],l=Lx(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(_,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(w=>{var S,E;const T=t.options.columnResizeDirection==="rtl"?-1:1,A=(b-((S=w==null?void 0:w.startOffset)!=null?S:0))*T,P=Math.max(A/((E=w==null?void 0:w.startSize)!=null?E:0),-.999999);return w.columnSizingStart.forEach(I=>{let[R,O]=I;u[R]=Math.round(Math.max(O+O*P,0)*100)/100}),{...w,deltaOffset:A,deltaPercentage:P}}),(t.options.columnResizeMode==="onChange"||_==="end")&&t.setColumnSizing(w=>({...w,...u})))},f=_=>c("move",_),d=_=>{c("end",_),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=n||typeof document<"u"?document:null,v={moveHandler:_=>f(_.clientX),upHandler:_=>{h==null||h.removeEventListener("mousemove",v.moveHandler),h==null||h.removeEventListener("mouseup",v.upHandler),d(_.clientX)}},m={moveHandler:_=>(_.cancelable&&(_.preventDefault(),_.stopPropagation()),f(_.touches[0].clientX),!1),upHandler:_=>{var b;h==null||h.removeEventListener("touchmove",m.moveHandler),h==null||h.removeEventListener("touchend",m.upHandler),_.cancelable&&(_.preventDefault(),_.stopPropagation()),d((b=_.touches[0])==null?void 0:b.clientX)}},y=Pae()?{passive:!1}:!1;Lx(o)?(h==null||h.addEventListener("touchmove",m.moveHandler,y),h==null||h.addEventListener("touchend",m.upHandler,y)):(h==null||h.addEventListener("mousemove",v.moveHandler,y),h==null||h.addEventListener("mouseup",v.upHandler,y)),t.setColumnSizingInfo(_=>({..._,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?Mx():(n=e.initialState.columnSizingInfo)!=null?n:Mx())},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 Oy=null;function Pae(){if(typeof Oy=="boolean")return Oy;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 Oy=e,Oy}function Lx(e){return e.type==="touchstart"}const Oae={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Co("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=xt(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),Tt(t.options,"debugRows")),e.getVisibleCells=xt(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],Tt(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>xt(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),Tt(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 Sv(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Dae={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()}}},Mae={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Co("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=()=>Us.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Qc(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Us[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Lae={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Co("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()}}}},yC=0,_C=10,Nx=()=>({pageIndex:yC,pageSize:_C}),Nae={getInitialState:e=>({...e,pagination:{...Nx(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Co("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=>lu(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Nx():(i=e.initialState.pagination)!=null?i:Nx())},e.setPageIndex=r=>{e.setPagination(i=>{let o=lu(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?yC:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:yC)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?_C:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:_C)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,lu(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=lu(r,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),e.getPageOptions=xt(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((o,a)=>a)),i},Tt(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}}},kx=()=>({top:[],bottom:[]}),kae={getInitialState:e=>({rowPinning:kx(),...e}),getDefaultOptions:e=>({onRowPinningChange:Co("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,d;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((d=l==null?void 0:l.bottom)!=null?d:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var h,v;return{top:[...((h=l==null?void 0:l.top)!=null?h:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((v=l==null?void 0:l.bottom)!=null?v:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(m=>!(s!=null&&s.has(m)))}})},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?kx():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:kx())},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=xt(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Tt(e.options,"debugRows")),e.getBottomRows=xt(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Tt(e.options,"debugRows")),e.getCenterRows=xt(()=>[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))},Tt(e.options,"debugRows"))}},Fae={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Co("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=>{bC(i,o.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=xt(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Fx(e,n):{rows:[],flatRows:[],rowsById:{}},Tt(e.options,"debugTable")),e.getFilteredSelectedRowModel=xt(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Fx(e,n):{rows:[],flatRows:[],rowsById:{}},Tt(e.options,"debugTable")),e.getGroupedSelectedRowModel=xt(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Fx(e,n):{rows:[],flatRows:[],rowsById:{}},Tt(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 bC(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return KI(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return SC(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return SC(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)}}}},bC=(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=>bC(e,s.id,n,r,i))};function Fx(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(a,s){return a.map(l=>{var u;const c=KI(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 KI(e,t){var n;return(n=t[e.id])!=null?n:!1}function SC(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()&&(KI(a,t)?o=!0:i=!1),a.subRows&&a.subRows.length)){const s=SC(a,t);s==="all"?o=!0:(s==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const wC=/([0-9]+)/gm,$ae=(e,t,n)=>xV(Cu(e.getValue(n)).toLowerCase(),Cu(t.getValue(n)).toLowerCase()),Bae=(e,t,n)=>xV(Cu(e.getValue(n)),Cu(t.getValue(n))),Vae=(e,t,n)=>ZI(Cu(e.getValue(n)).toLowerCase(),Cu(t.getValue(n)).toLowerCase()),Uae=(e,t,n)=>ZI(Cu(e.getValue(n)),Cu(t.getValue(n))),Hae=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:rZI(e.getValue(n),t.getValue(n));function ZI(e,t){return e===t?0:e>t?1:-1}function Cu(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function xV(e,t){const n=e.split(wC).filter(Boolean),r=t.split(wC).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 ap={alphanumeric:$ae,alphanumericCaseSensitive:Bae,text:Vae,textCaseSensitive:Uae,datetime:Hae,basic:Gae},zae={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Co("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 ap.datetime;if(typeof o=="string"&&(r=!0,o.split(wC).length>1))return ap.alphanumeric}return r?ap.text:ap.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 Qc(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:ap[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(h=>h.id===e.id),l=a==null?void 0:a.findIndex(h=>h.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 d;u=[...a,{id:e.id,desc:f}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(h=>h.id===e.id?{...h,desc:f}:h):c==="remove"?u=a.filter(h=>h.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())}},Wae=[hae,Oae,Aae,Iae,pae,vae,Dae,Mae,zae,Eae,Lae,Nae,kae,Fae,Rae];function jae(e){var t,n;const r=[...Wae,...(t=e._features)!=null?t:[]];let i={_features:r};const o=i._features.reduce((d,h)=>Object.assign(d,h.getDefaultOptions==null?void 0:h.getDefaultOptions(i)),{}),a=d=>i.options.mergeOptions?i.options.mergeOptions(o,d):{...o,...d};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(d=>{var h;l=(h=d.getInitialState==null?void 0:d.getInitialState(l))!=null?h:l});const u=[];let c=!1;const f={_features:r,options:{...o,...e},initialState:l,_queue:d=>{u.push(d),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{i.setState(i.initialState)},setOptions:d=>{const h=lu(d,i.options);i.options=a(h)},getState:()=>i.options.state,setState:d=>{i.options.onStateChange==null||i.options.onStateChange(d)},_getRowId:(d,h,v)=>{var m;return(m=i.options.getRowId==null?void 0:i.options.getRowId(d,h,v))!=null?m:`${v?[v.id,h].join("."):h}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(d,h)=>{let v=(h?i.getPrePaginationRowModel():i.getRowModel()).rowsById[d];if(!v&&(v=i.getCoreRowModel().rowsById[d],!v))throw new Error;return v},_getDefaultColumnDef:xt(()=>[i.options.defaultColumn],d=>{var h;return d=(h=d)!=null?h:{},{header:v=>{const m=v.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:v=>{var m,y;return(m=(y=v.renderValue())==null||y.toString==null?void 0:y.toString())!=null?m:null},...i._features.reduce((v,m)=>Object.assign(v,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...d}},Tt(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:xt(()=>[i._getColumnDefs()],d=>{const h=function(v,m,y){return y===void 0&&(y=0),v.map(_=>{const b=dae(i,_,y,m),w=_;return b.columns=w.columns?h(w.columns,b,y+1):[],b})};return h(d)},Tt(e,"debugColumns")),getAllFlatColumns:xt(()=>[i.getAllColumns()],d=>d.flatMap(h=>h.getFlatColumns()),Tt(e,"debugColumns")),_getAllFlatColumnsById:xt(()=>[i.getAllFlatColumns()],d=>d.reduce((h,v)=>(h[v.id]=v,h),{}),Tt(e,"debugColumns")),getAllLeafColumns:xt(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(d,h)=>{let v=d.flatMap(m=>m.getLeafColumns());return h(v)},Tt(e,"debugColumns")),getColumn:d=>i._getAllFlatColumnsById()[d]};Object.assign(i,f);for(let d=0;dxt(()=>[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 Xae(){return e=>xt(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:Kae(n),Tt(e.options,"debugTable"))}function Kae(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 Zae(){return e=>xt(()=>[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(v=>(v.depth=u,i.push(v),o[v.id]=v,v.subRows&&(v.subRows=a(v.subRows,u+1,v.id)),v));const f=r[u],d=qae(l,f);return Array.from(d.entries()).map((v,m)=>{let[y,_]=v,b=`${f}:${y}`;b=c?`${c}>${b}`:b;const w=a(_,u+1,b);w.forEach(T=>{T.parentId=b});const S=u?hV(_,T=>T.subRows):_,E=pV(e,b,S[0].original,m,u,void 0,c);return Object.assign(E,{groupingColumnId:f,groupingValue:y,subRows:w,leafRows:S,getValue:T=>{if(r.includes(T)){if(E._valuesCache.hasOwnProperty(T))return E._valuesCache[T];if(_[0]){var A;E._valuesCache[T]=(A=_[0].getValue(T))!=null?A:void 0}return E._valuesCache[T]}if(E._groupingValuesCache.hasOwnProperty(T))return E._groupingValuesCache[T];const P=e.getColumn(T),I=P==null?void 0:P.getAggregationFn();if(I)return E._groupingValuesCache[T]=I(T,S,_),E._groupingValuesCache[T]}}),w.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}},Tt(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function qae(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 Jae(){return e=>xt(()=>[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 h=0;h{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}},Tt(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/** + color: hsl(${Math.max(0,Math.min(120-120*d,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function Tt(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 hae(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:xt(()=>[e,n,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),Tt(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(o,n,t,e)},{}),o}function pae(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=d=>{let h=d;for(const m of l.split(".")){var v;h=(v=h)==null?void 0:v[m]}return h}:c=d=>d[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:xt(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(h=>h.getFlatColumns())]},Tt(e.options,"debugColumns")),getLeafColumns:xt(()=>[e._getOrderColumnsFn()],d=>{var h;if((h=f.columns)!=null&&h.length){let v=f.columns.flatMap(m=>m.getLeafColumns());return d(v)}return[f]},Tt(e.options,"debugColumns"))};for(const d of e._features)d.createColumn==null||d.createColumn(f,e);return f}const Xr="debugHeaders";function GL(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 vae={createTable:e=>{e.getHeaderGroups=xt(()=>[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(d=>d.id===f)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(f=>n.find(d=>d.id===f)).filter(Boolean))!=null?a:[],u=n.filter(f=>!(r!=null&&r.includes(f.id))&&!(i!=null&&i.includes(f.id)));return Oy(t,[...s,...u,...l],e)},Tt(e.options,Xr)),e.getCenterHeaderGroups=xt(()=>[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))),Oy(t,n,e,"center")),Tt(e.options,Xr)),e.getLeftHeaderGroups=xt(()=>[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 Oy(t,o,e,"left")},Tt(e.options,Xr)),e.getRightHeaderGroups=xt(()=>[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 Oy(t,o,e,"right")},Tt(e.options,Xr)),e.getFooterGroups=xt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Tt(e.options,Xr)),e.getLeftFooterGroups=xt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Tt(e.options,Xr)),e.getCenterFooterGroups=xt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Tt(e.options,Xr)),e.getRightFooterGroups=xt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Tt(e.options,Xr)),e.getFlatHeaders=xt(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),Tt(e.options,Xr)),e.getLeftFlatHeaders=xt(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),Tt(e.options,Xr)),e.getCenterFlatHeaders=xt(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),Tt(e.options,Xr)),e.getRightFlatHeaders=xt(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),Tt(e.options,Xr)),e.getCenterLeafHeaders=xt(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Tt(e.options,Xr)),e.getLeftLeafHeaders=xt(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Tt(e.options,Xr)),e.getRightLeafHeaders=xt(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Tt(e.options,Xr)),e.getLeafHeaders=xt(()=>[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()},Tt(e.options,Xr))}};function Oy(e,t,n,r){var i,o;let a=0;const s=function(d,h){h===void 0&&(h=1),a=Math.max(a,h),d.filter(v=>v.getIsVisible()).forEach(v=>{var m;(m=v.columns)!=null&&m.length&&s(v.columns,h+1)},0)};s(e);let l=[];const u=(d,h)=>{const v={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},m=[];d.forEach(y=>{const _=[...m].reverse()[0],b=y.column.depth===v.depth;let w,S=!1;if(b&&y.column.parent?w=y.column.parent:(w=y.column,S=!0),_&&(_==null?void 0:_.column)===w)_.subHeaders.push(y);else{const T=GL(n,w,{id:[r,h,w.id,y==null?void 0:y.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${m.filter(E=>E.column===w).length}`:void 0,depth:h,index:m.length});T.subHeaders.push(y),m.push(T)}v.headers.push(y),y.headerGroup=v}),l.push(v),h>0&&u(m,h-1)},c=t.map((d,h)=>GL(n,d,{depth:a,index:h}));u(c,a-1),l.reverse();const f=d=>d.filter(v=>v.column.getIsVisible()).map(v=>{let m=0,y=0,_=[0];v.subHeaders&&v.subHeaders.length?(_=[],f(v.subHeaders).forEach(w=>{let{colSpan:S,rowSpan:T}=w;m+=S,_.push(T)})):m=1;const b=Math.min(..._);return y=y+b,v.colSpan=m,v.rowSpan=y,{colSpan:m,rowSpan:y}});return f((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const mV=(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:()=>gV(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:xt(()=>[e.getAllLeafColumns()],l=>l.map(u=>hae(e,s,u,u.id)),Tt(e.options,"debugRows")),_getAllCellsByColumnId:xt(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),Tt(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()}}},yV=(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))};yV.autoRemove=e=>Da(e);const _V=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};_V.autoRemove=e=>Da(e);const bV=(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())};bV.autoRemove=e=>Da(e);const SV=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};SV.autoRemove=e=>Da(e)||!(e!=null&&e.length);const wV=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});wV.autoRemove=e=>Da(e)||!(e!=null&&e.length);const xV=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});xV.autoRemove=e=>Da(e)||!(e!=null&&e.length);const TV=(e,t,n)=>e.getValue(t)===n;TV.autoRemove=e=>Da(e);const EV=(e,t,n)=>e.getValue(t)==n;EV.autoRemove=e=>Da(e);const ZI=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};ZI.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]};ZI.autoRemove=e=>Da(e)||Da(e[0])&&Da(e[1]);const Us={includesString:yV,includesStringSensitive:_V,equalsString:bV,arrIncludes:SV,arrIncludesAll:wV,arrIncludesSome:xV,equals:TV,weakEquals:EV,inNumberRange:ZI};function Da(e){return e==null||e===""}const mae={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Co("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"?Us.includesString:typeof r=="number"?Us.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Us.equals:Array.isArray(r)?Us.arrIncludes:Us.weakEquals},e.getFilterFn=()=>{var n,r;return Qc(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:Us[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=lu(n,o?o.value:void 0);if(zL(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=lu(t,i))==null?void 0:o.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(zL(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 zL(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const yae=(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),_ae=(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},bae=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r=o)&&(r=o)}),r},Sae=(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},xae=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!dae(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},Tae=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Eae=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,Cae=(e,t)=>t.length,Mx={sum:yae,min:_ae,max:bae,extent:Sae,mean:wae,median:xae,unique:Tae,uniqueCount:Eae,count:Cae},Aae={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:Co("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 Mx.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Mx.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Qc(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:Mx[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 Iae(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 Rae={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Co("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=xt(n=>[wv(t,n)],n=>n.findIndex(r=>r.id===e.id),Tt(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=wv(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=wv(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=xt(()=>[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 Iae(o,n,r)},Tt(e.options,"debugTable"))}},Lx=()=>({left:[],right:[]}),Pae={getInitialState:e=>({columnPinning:Lx(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Co("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=xt(()=>[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))},Tt(t.options,"debugRows")),e.getLeftVisibleCells=xt(()=>[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"})),Tt(t.options,"debugRows")),e.getRightVisibleCells=xt(()=>[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"})),Tt(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?Lx():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Lx())},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=xt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),Tt(e.options,"debugColumns")),e.getRightLeafColumns=xt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),Tt(e.options,"debugColumns")),e.getCenterLeafColumns=xt(()=>[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))},Tt(e.options,"debugColumns"))}},Dy={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Nx=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Oae={getDefaultColumnDef:()=>Dy,getInitialState:e=>({columnSizing:{},columnSizingInfo:Nx(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Co("columnSizing",e),onColumnSizingInfoChange:Co("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:Dy.minSize,(r=o??e.columnDef.size)!=null?r:Dy.size),(i=e.columnDef.maxSize)!=null?i:Dy.maxSize)},e.getStart=xt(n=>[n,wv(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,o)=>i+o.getSize(),0),Tt(t.options,"debugColumns")),e.getAfter=xt(n=>[n,wv(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,o)=>i+o.getSize(),0),Tt(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(),kx(o)&&o.touches&&o.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(_=>[_.column.id,_.column.getSize()]):[[r.id,r.getSize()]],l=kx(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(_,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(w=>{var S,T;const E=t.options.columnResizeDirection==="rtl"?-1:1,A=(b-((S=w==null?void 0:w.startOffset)!=null?S:0))*E,P=Math.max(A/((T=w==null?void 0:w.startSize)!=null?T:0),-.999999);return w.columnSizingStart.forEach(I=>{let[R,O]=I;u[R]=Math.round(Math.max(O+O*P,0)*100)/100}),{...w,deltaOffset:A,deltaPercentage:P}}),(t.options.columnResizeMode==="onChange"||_==="end")&&t.setColumnSizing(w=>({...w,...u})))},f=_=>c("move",_),d=_=>{c("end",_),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=n||typeof document<"u"?document:null,v={moveHandler:_=>f(_.clientX),upHandler:_=>{h==null||h.removeEventListener("mousemove",v.moveHandler),h==null||h.removeEventListener("mouseup",v.upHandler),d(_.clientX)}},m={moveHandler:_=>(_.cancelable&&(_.preventDefault(),_.stopPropagation()),f(_.touches[0].clientX),!1),upHandler:_=>{var b;h==null||h.removeEventListener("touchmove",m.moveHandler),h==null||h.removeEventListener("touchend",m.upHandler),_.cancelable&&(_.preventDefault(),_.stopPropagation()),d((b=_.touches[0])==null?void 0:b.clientX)}},y=Dae()?{passive:!1}:!1;kx(o)?(h==null||h.addEventListener("touchmove",m.moveHandler,y),h==null||h.addEventListener("touchend",m.upHandler,y)):(h==null||h.addEventListener("mousemove",v.moveHandler,y),h==null||h.addEventListener("mouseup",v.upHandler,y)),t.setColumnSizingInfo(_=>({..._,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?Nx():(n=e.initialState.columnSizingInfo)!=null?n:Nx())},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 My=null;function Dae(){if(typeof My=="boolean")return My;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 My=e,My}function kx(e){return e.type==="touchstart"}const Mae={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Co("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=xt(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),Tt(t.options,"debugRows")),e.getVisibleCells=xt(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],Tt(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>xt(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),Tt(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 wv(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Lae={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()}}},Nae={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Co("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=()=>Us.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Qc(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Us[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},kae={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Co("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()}}}},bC=0,SC=10,Fx=()=>({pageIndex:bC,pageSize:SC}),Fae={getInitialState:e=>({...e,pagination:{...Fx(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Co("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=>lu(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Fx():(i=e.initialState.pagination)!=null?i:Fx())},e.setPageIndex=r=>{e.setPagination(i=>{let o=lu(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?bC:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:bC)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?SC:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:SC)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,lu(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=lu(r,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),e.getPageOptions=xt(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((o,a)=>a)),i},Tt(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}}},$x=()=>({top:[],bottom:[]}),$ae={getInitialState:e=>({rowPinning:$x(),...e}),getDefaultOptions:e=>({onRowPinningChange:Co("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,d;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((d=l==null?void 0:l.bottom)!=null?d:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var h,v;return{top:[...((h=l==null?void 0:l.top)!=null?h:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((v=l==null?void 0:l.bottom)!=null?v:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(m=>!(s!=null&&s.has(m)))}})},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?$x():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:$x())},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=xt(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Tt(e.options,"debugRows")),e.getBottomRows=xt(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Tt(e.options,"debugRows")),e.getCenterRows=xt(()=>[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))},Tt(e.options,"debugRows"))}},Bae={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Co("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=>{wC(i,o.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=xt(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Bx(e,n):{rows:[],flatRows:[],rowsById:{}},Tt(e.options,"debugTable")),e.getFilteredSelectedRowModel=xt(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Bx(e,n):{rows:[],flatRows:[],rowsById:{}},Tt(e.options,"debugTable")),e.getGroupedSelectedRowModel=xt(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Bx(e,n):{rows:[],flatRows:[],rowsById:{}},Tt(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 wC(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return qI(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return xC(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return xC(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)}}}},wC=(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=>wC(e,s.id,n,r,i))};function Bx(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(a,s){return a.map(l=>{var u;const c=qI(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 qI(e,t){var n;return(n=t[e.id])!=null?n:!1}function xC(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()&&(qI(a,t)?o=!0:i=!1),a.subRows&&a.subRows.length)){const s=xC(a,t);s==="all"?o=!0:(s==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const TC=/([0-9]+)/gm,Vae=(e,t,n)=>CV(Cu(e.getValue(n)).toLowerCase(),Cu(t.getValue(n)).toLowerCase()),Uae=(e,t,n)=>CV(Cu(e.getValue(n)),Cu(t.getValue(n))),Hae=(e,t,n)=>JI(Cu(e.getValue(n)).toLowerCase(),Cu(t.getValue(n)).toLowerCase()),Gae=(e,t,n)=>JI(Cu(e.getValue(n)),Cu(t.getValue(n))),zae=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:rJI(e.getValue(n),t.getValue(n));function JI(e,t){return e===t?0:e>t?1:-1}function Cu(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function CV(e,t){const n=e.split(TC).filter(Boolean),r=t.split(TC).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 ap={alphanumeric:Vae,alphanumericCaseSensitive:Uae,text:Hae,textCaseSensitive:Gae,datetime:zae,basic:Wae},jae={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Co("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 ap.datetime;if(typeof o=="string"&&(r=!0,o.split(TC).length>1))return ap.alphanumeric}return r?ap.text:ap.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 Qc(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:ap[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(h=>h.id===e.id),l=a==null?void 0:a.findIndex(h=>h.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 d;u=[...a,{id:e.id,desc:f}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(h=>h.id===e.id?{...h,desc:f}:h):c==="remove"?u=a.filter(h=>h.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())}},Yae=[vae,Mae,Rae,Pae,gae,mae,Lae,Nae,jae,Aae,kae,Fae,$ae,Bae,Oae];function Xae(e){var t,n;const r=[...Yae,...(t=e._features)!=null?t:[]];let i={_features:r};const o=i._features.reduce((d,h)=>Object.assign(d,h.getDefaultOptions==null?void 0:h.getDefaultOptions(i)),{}),a=d=>i.options.mergeOptions?i.options.mergeOptions(o,d):{...o,...d};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(d=>{var h;l=(h=d.getInitialState==null?void 0:d.getInitialState(l))!=null?h:l});const u=[];let c=!1;const f={_features:r,options:{...o,...e},initialState:l,_queue:d=>{u.push(d),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{i.setState(i.initialState)},setOptions:d=>{const h=lu(d,i.options);i.options=a(h)},getState:()=>i.options.state,setState:d=>{i.options.onStateChange==null||i.options.onStateChange(d)},_getRowId:(d,h,v)=>{var m;return(m=i.options.getRowId==null?void 0:i.options.getRowId(d,h,v))!=null?m:`${v?[v.id,h].join("."):h}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(d,h)=>{let v=(h?i.getPrePaginationRowModel():i.getRowModel()).rowsById[d];if(!v&&(v=i.getCoreRowModel().rowsById[d],!v))throw new Error;return v},_getDefaultColumnDef:xt(()=>[i.options.defaultColumn],d=>{var h;return d=(h=d)!=null?h:{},{header:v=>{const m=v.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:v=>{var m,y;return(m=(y=v.renderValue())==null||y.toString==null?void 0:y.toString())!=null?m:null},...i._features.reduce((v,m)=>Object.assign(v,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...d}},Tt(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:xt(()=>[i._getColumnDefs()],d=>{const h=function(v,m,y){return y===void 0&&(y=0),v.map(_=>{const b=pae(i,_,y,m),w=_;return b.columns=w.columns?h(w.columns,b,y+1):[],b})};return h(d)},Tt(e,"debugColumns")),getAllFlatColumns:xt(()=>[i.getAllColumns()],d=>d.flatMap(h=>h.getFlatColumns()),Tt(e,"debugColumns")),_getAllFlatColumnsById:xt(()=>[i.getAllFlatColumns()],d=>d.reduce((h,v)=>(h[v.id]=v,h),{}),Tt(e,"debugColumns")),getAllLeafColumns:xt(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(d,h)=>{let v=d.flatMap(m=>m.getLeafColumns());return h(v)},Tt(e,"debugColumns")),getColumn:d=>i._getAllFlatColumnsById()[d]};Object.assign(i,f);for(let d=0;dxt(()=>[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 Zae(){return e=>xt(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:qae(n),Tt(e.options,"debugTable"))}function qae(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 Jae(){return e=>xt(()=>[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(v=>(v.depth=u,i.push(v),o[v.id]=v,v.subRows&&(v.subRows=a(v.subRows,u+1,v.id)),v));const f=r[u],d=Qae(l,f);return Array.from(d.entries()).map((v,m)=>{let[y,_]=v,b=`${f}:${y}`;b=c?`${c}>${b}`:b;const w=a(_,u+1,b);w.forEach(E=>{E.parentId=b});const S=u?gV(_,E=>E.subRows):_,T=mV(e,b,S[0].original,m,u,void 0,c);return Object.assign(T,{groupingColumnId:f,groupingValue:y,subRows:w,leafRows:S,getValue:E=>{if(r.includes(E)){if(T._valuesCache.hasOwnProperty(E))return T._valuesCache[E];if(_[0]){var A;T._valuesCache[E]=(A=_[0].getValue(E))!=null?A:void 0}return T._valuesCache[E]}if(T._groupingValuesCache.hasOwnProperty(E))return T._groupingValuesCache[E];const P=e.getColumn(E),I=P==null?void 0:P.getAggregationFn();if(I)return T._groupingValuesCache[E]=I(E,S,_),T._groupingValuesCache[E]}}),w.forEach(E=>{i.push(E),o[E.id]=E}),T})},s=a(n.rows,0);return s.forEach(l=>{i.push(l),o[l.id]=l}),{rows:s,flatRows:i,rowsById:o}},Tt(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function Qae(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 ese(){return e=>xt(()=>[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 h=0;h{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}},Tt(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/** * vue-table * * Copyright (c) TanStack @@ -99,9 +99,9 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Dy(){return!0}const Qae=Symbol("merge-proxy"),ese={get(e,t,n){return t===Qae?n:e.get(t)},has(e,t){return e.has(t)},set:Dy,deleteProperty:Dy,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Dy,deleteProperty:Dy}},ownKeys(e){return e.keys()}};function $x(e){return"value"in e?e.value:e}function zp(){for(var e=arguments.length,t=new Array(e),n=0;n=0;i--){const o=$x(t[i])[r];if(o!==void 0)return o}},has(r){for(let i=t.length-1;i>=0;i--)if(r in $x(t[i]))return!0;return!1},keys(){const r=[];for(let i=0;i()=>typeof e.render=="function"||typeof e.render=="object"?zi(e.render,e.props):e.render});function GL(e){return zp(e,{data:N(e.data)})}function tse(e){const t=ut(e.data),n=zp({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(o,a){return t?{...o,...a}:zp(o,a)}},t?GL(e):e),r=jae(n);if(t){const o=Cf(e.data);Yt(o,()=>{r.setState(a=>({...a,data:o.value}))},{immediate:!0})}const i=Fe(r.initialState);return _b(()=>{r.setOptions(o=>{var a;const s=new Proxy({},{get:(l,u)=>i.value[u]});return zp(o,t?GL(e):e,{state:zp(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 qI="-",nse=e=>{const t=ise(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(qI);return s[0]===""&&s.length!==1&&s.shift(),TV(s,t)||rse(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},TV=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?TV(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(qI);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},zL=/^\[(.+)\]$/,rse=e=>{if(zL.test(e)){const t=zL.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ise=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ase(Object.entries(e.classGroups),n).forEach(([o,a])=>{xC(a,r,o,t)}),r},xC=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:WL(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(ose(i)){xC(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{xC(a,WL(t,o),n,r)})})},WL=(e,t)=>{let n=e;return t.split(qI).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},ose=e=>e.isThemeGetter,ase=(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,sse=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)}}},EV="!",lse=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 y=0;yc?f-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}};return n?s=>n({className:s,parseClassName:a}):a},use=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},cse=e=>({cache:sse(e.cacheSize),parseClassName:lse(e),...nse(e)}),fse=/\s+/,dse=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(fse);let s="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=n(u);let v=!!h,m=r(v?d.substring(0,h):d);if(!m){if(!v){s=u+(s.length>0?" "+s:s);continue}if(m=r(d),!m){s=u+(s.length>0?" "+s:s);continue}v=!1}const y=use(c).join(":"),_=f?y+EV:y,b=_+m;if(o.includes(b))continue;o.push(b);const w=i(m,v);for(let S=0;S0?" "+s:s)}return s};function hse(){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=cse(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=dse(l,n);return i(l,c),c}return function(){return o(hse.apply(null,arguments))}}const Un=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},AV=/^\[(?:([a-z-]+):)?(.+)\]$/i,vse=/^\d+\/\d+$/,gse=new Set(["px","full","screen"]),mse=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yse=/\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$/,_se=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,bse=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sse=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ds=e=>$d(e)||gse.has(e)||vse.test(e),Ml=e=>Th(e,"length",Rse),$d=e=>!!e&&!Number.isNaN(Number(e)),Vx=e=>Th(e,"number",$d),sp=e=>!!e&&Number.isInteger(Number(e)),wse=e=>e.endsWith("%")&&$d(e.slice(0,-1)),Ht=e=>AV.test(e),Ll=e=>mse.test(e),xse=new Set(["length","size","percentage"]),Tse=e=>Th(e,xse,IV),Ese=e=>Th(e,"position",IV),Cse=new Set(["image","url"]),Ase=e=>Th(e,Cse,Ose),Ise=e=>Th(e,"",Pse),lp=()=>!0,Th=(e,t,n)=>{const r=AV.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Rse=e=>yse.test(e)&&!_se.test(e),IV=()=>!1,Pse=e=>bse.test(e),Ose=e=>Sse.test(e),Dse=()=>{const e=Un("colors"),t=Un("spacing"),n=Un("blur"),r=Un("brightness"),i=Un("borderColor"),o=Un("borderRadius"),a=Un("borderSpacing"),s=Un("borderWidth"),l=Un("contrast"),u=Un("grayscale"),c=Un("hueRotate"),f=Un("invert"),d=Un("gap"),h=Un("gradientColorStops"),v=Un("gradientColorStopPositions"),m=Un("inset"),y=Un("margin"),_=Un("opacity"),b=Un("padding"),w=Un("saturate"),S=Un("scale"),E=Un("sepia"),T=Un("skew"),A=Un("space"),P=Un("translate"),I=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",Ht,t],M=()=>[Ht,t],$=()=>["",Ds,Ml],F=()=>["auto",$d,Ht],z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],ae=()=>["","0",Ht],ge=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ve=()=>[$d,Ht];return{cacheSize:500,separator:":",theme:{colors:[lp],spacing:[Ds,Ml],blur:["none","",Ll,Ht],brightness:ve(),borderColor:[e],borderRadius:["none","","full",Ll,Ht],borderSpacing:M(),borderWidth:$(),contrast:ve(),grayscale:ae(),hueRotate:ve(),invert:ae(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[wse,Ml],inset:O(),margin:O(),opacity:ve(),padding:M(),saturate:ve(),scale:ve(),sepia:ae(),skew:ve(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Ht]}],container:["container"],columns:[{columns:[Ll]}],"break-after":[{"break-after":ge()}],"break-before":[{"break-before":ge()}],"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:[...z(),Ht]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",sp,Ht]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ht]}],grow:[{grow:ae()}],shrink:[{shrink:ae()}],order:[{order:["first","last","none",sp,Ht]}],"grid-cols":[{"grid-cols":[lp]}],"col-start-end":[{col:["auto",{span:["full",sp,Ht]},Ht]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[lp]}],"row-start-end":[{row:["auto",{span:[sp,Ht]},Ht]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ht]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ht]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"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:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"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",Ht,t]}],"min-w":[{"min-w":[Ht,t,"min","max","fit"]}],"max-w":[{"max-w":[Ht,t,"none","full","min","max","fit","prose",{screen:[Ll]},Ll]}],h:[{h:[Ht,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ht,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ht,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ht,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ll,Ml]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vx]}],"font-family":[{font:[lp]}],"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",Ht]}],"line-clamp":[{"line-clamp":["none",$d,Vx]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ds,Ht]}],"list-image":[{"list-image":["none",Ht]}],"list-style-type":[{list:["none","disc","decimal",Ht]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ds,Ml]}],"underline-offset":[{"underline-offset":["auto",Ds,Ht]}],"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:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ht]}],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",Ht]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...z(),Ese]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Tse]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ase]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],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":[_]}],"border-style":[{border:[...B(),"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":[_]}],"divide-style":[{divide:B()}],"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:["",...B()]}],"outline-offset":[{"outline-offset":[Ds,Ht]}],"outline-w":[{outline:[Ds,Ml]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[Ds,Ml]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ll,Ise]}],"shadow-color":[{shadow:[lp]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ll,Ht]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],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":[_]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"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",Ht]}],duration:[{duration:ve()}],ease:[{ease:["linear","in","out","in-out",Ht]}],delay:[{delay:ve()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ht]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[sp,Ht]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"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",Ht]}],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",Ht]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",Ht]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ds,Ml,Vx]}],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"]}}},En=pse(Dse),Mse={class:"sticky -top-2 z-10 bg-base-100"},Lse=["colSpan","onClick"],Nse={class:"flex items-center gap-1"},kse=["onClick"],Fse=["onClick"],$se=it({__name:"ConnectionTable",setup(e){const{handlerInfo:t}=YI(),{t:n}=us(),r=[{header:()=>n("details"),enableSorting:!1,id:vt.Details,cell:({row:y})=>zi("button",{class:"btn btn-xs btn-circle",onClick:()=>{const _=y.original;t(_)}},[zi(H4,{class:"h-4 w-4"})])},{header:()=>n("close"),enableSorting:!1,id:vt.Close,cell:({row:y})=>zi("button",{class:"btn btn-xs btn-circle",onClick:()=>{const _=y.original;Gb(_.id)}},[zi(Eb,{class:"h-4 w-4"})])},{header:()=>n("type"),id:vt.Type,accessorFn:y=>`${y.metadata.type} | ${y.metadata.network}`},{header:()=>n("process"),id:vt.Process,accessorFn:y=>DB(y)},{header:()=>n("host"),id:vt.Host,accessorFn:y=>`${y.metadata.host?y.metadata.host:y.metadata.destinationIP}:${y.metadata.destinationPort}`},{header:()=>n("rule"),id:vt.Rule,accessorFn:y=>y.rulePayload?`${y.rule}: ${y.rulePayload}`:y.rule},{header:()=>n("chains"),id:vt.Chains,accessorFn:y=>y.chains.join(","),cell:({row:y})=>{const _=[];return y.original.chains.forEach((b,w)=>{_.unshift(zi("span",b)),wn("connectTime"),enableGrouping:!1,id:vt.ConnectTime,accessorFn:y=>kb(y.start),sortingFn:(y,_)=>Ma(_.original.start).valueOf()-Ma(y.original.start).valueOf()},{header:()=>n("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:vt.DlSpeed,accessorFn:y=>`${Tn(y.downloadSpeed)}/s`,sortingFn:(y,_)=>y.original.downloadSpeed-_.original.downloadSpeed},{header:()=>n("ulSpeed"),enableGrouping:!1,id:vt.UlSpeed,accessorFn:y=>`${Tn(y.uploadSpeed)}/s`,sortingFn:(y,_)=>y.original.uploadSpeed-_.original.uploadSpeed},{header:()=>n("dl"),enableGrouping:!1,id:vt.Download,accessorFn:y=>Tn(y.download),sortingFn:(y,_)=>y.original.download-_.original.download},{header:()=>n("ul"),enableGrouping:!1,id:vt.Upload,accessorFn:y=>Tn(y.upload),sortingFn:(y,_)=>y.original.upload-_.original.upload},{header:()=>n("sourceIP"),id:vt.SourceIP,accessorFn:y=>a1(y.metadata.sourceIP)},{header:()=>n("sourcePort"),id:vt.SourcePort,accessorFn:y=>y.metadata.sourcePort},{header:()=>n("destination"),id:vt.Destination,accessorFn:MB}],i=Fe([]),o=Fe({}),a=kt("config/table-sorting",[]),s=tse({get data(){return Fd.value},columns:r,state:{get columnOrder(){return Ed.value},get columnVisibility(){return{...Object.fromEntries(Object.values(vt).map(y=>[y,!1])),...Object.fromEntries(Ed.value.map(y=>[y,!0]))}},get grouping(){return i.value},get expanded(){return o.value},get sorting(){return a.value}},onGroupingChange:y=>{Qc(y)?i.value=y(i.value):i.value=y},onExpandedChange:y=>{Qc(y)&&(o.value=y(o.value))},onSortingChange:y=>{Qc(y)?a.value=y(a.value):a.value=y},getSortedRowModel:Jae(),getGroupedRowModel:Zae(),getExpandedRowModel:Xae(),getCoreRowModel:Yae()}),l=Ve(()=>s.getRowModel().rows),u=Fe(null),c=Ve(()=>({count:l.value.length,getScrollElement:()=>u.value,estimateSize:()=>36,overscan:48})),f=dV(c),d=Ve(()=>f.value.getVirtualItems()),h=Ve(()=>f.value.getTotalSize()+24),v={[ug.SMALL]:"table-xs",[ug.LARGE]:"table-sm"},m=Ve(()=>v[t_.value]);return(y,_)=>(K(),se("div",{ref_key:"parentRef",ref:u,class:"h-full overflow-y-auto bg-clip-content p-2"},[L("div",{style:Gr({height:`${h.value}px`})},[L("table",{class:rt(`table table-zebra ${m.value} rounded-none shadow-md`)},[L("thead",Mse,[(K(!0),se(qe,null,ln(N(s).getHeaderGroups(),b=>(K(),se("tr",{key:b.id},[(K(!0),se(qe,null,ln(b.headers,w=>(K(),se("th",{key:w.id,colSpan:w.colSpan,class:rt(w.column.getCanSort()?"cursor-pointer select-none":""),onClick:S=>{var E;return(E=w.column.getToggleSortingHandler())==null?void 0:E(S)}},[L("div",Nse,[w.column.getCanGroup()?(K(),se("button",{key:0,class:"cursor-pointer",onClick:cf(()=>w.column.getToggleGroupingHandler()(),["stop"])},[w.column.getIsGrouped()?(K(),Ot(N(fM),{key:0,class:"h-4 w-4"})):(K(),Ot(N(dM),{key:1,class:"h-4 w-4"}))],8,kse)):mt("",!0),w.isPlaceholder?mt("",!0):(K(),Ot(N(Bx),{key:1,render:w.column.columnDef.header,props:w.getContext()},null,8,["render","props"])),w.column.getIsSorted()==="asc"?(K(),Ot(N(Xg),{key:2,class:"h-4 w-4"})):mt("",!0),w.column.getIsSorted()==="desc"?(K(),Ot(N(xb),{key:3,class:"h-4 w-4"})):mt("",!0)])],10,Lse))),128))]))),128))]),L("tbody",null,[(K(!0),se(qe,null,ln(d.value,(b,w)=>(K(),se("tr",{key:b.key.toString(),style:Gr({height:`${b.size}px`,transform:`translateY(${b.start-w*b.size}px)`}),class:"bg-base-100 hover:!bg-primary hover:text-primary-content"},[(K(!0),se(qe,null,ln(l.value[b.index].getVisibleCells(),S=>(K(),se("td",{key:S.id,class:rt(N(En)("whitespace-nowrap text-sm",[N(vt).Download,N(vt).DlSpeed,N(vt).Upload,N(vt).UlSpeed].includes(S.column.id)&&"min-w-20",[N(vt).Host].includes(S.column.id)&&"max-w-[32rem] truncate"))},[S.column.getIsGrouped()?(K(),se(qe,{key:0},[l.value[b.index].getCanExpand()?(K(),se(qe,{key:0},[L("button",{onClick:()=>l.value[b.index].getToggleExpandedHandler()(),class:"relative top-1 cursor-pointer"},[l.value[b.index].getIsExpanded()?(K(),Ot(N(fM),{key:0,class:"h-4 w-4"})):(K(),Ot(N(dM),{key:1,class:"h-4 w-4"}))],8,Fse),ye(N(Bx),{render:S.column.columnDef.cell,props:S.getContext()},null,8,["render","props"]),L("span",null," ("+oe(l.value[b.index].subRows.length)+") ",1)],64)):mt("",!0)],64)):(K(),Ot(N(Bx),{key:1,render:S.getIsAggregated()?S.column.columnDef.aggregatedCell:S.column.columnDef.cell,props:S.getContext()},null,8,["render","props"]))],2))),128))],4))),128))])],2)],4)],512))}});var c1={d:(e,t)=>{for(var n in t)c1.o(t,n)&&!c1.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},RV={};function TC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nGse});const gt=(jL={computed:()=>Ve,createTextVNode:()=>ft,createVNode:()=>ye,defineComponent:()=>it,reactive:()=>La,ref:()=>Fe,watch:()=>Yt,watchEffect:()=>_b},Ux={},c1.d(Ux,jL),Ux),Bse=(0,gt.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,gt.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),Vse=(0,gt.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,gt.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,gt.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,gt.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,gt.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,gt.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),Use=(0,gt.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,gt.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,gt.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,gt.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 jL,Ux;function EC(e){return EC=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},EC(e)}function OV(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ec(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,d=f===void 0?1:f,h=OV(e);if(h==="array"){var v=YL(e.map(function(_,b,w){return Ec(_,"".concat(t,"[").concat(b,"]"),n+1,{index:b,showComma:b!==w.length-1,length:d,type:l})}));return[Ec("[",t,n,{showComma:!1,key:o,length:e.length,type:"arrayStart"})[0]].concat(v,Ec("]",t,n,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(h==="object"){var m=Object.keys(e),y=YL(m.map(function(_,b,w){return Ec(e[_],/^[a-zA-Z_]\w*$/.test(_)?"".concat(t,".").concat(_):"".concat(t,'["').concat(_,'"]'),n+1,{key:_,showComma:b!==w.length-1,length:d,type:l})}));return[Ec("{",t,n,{showComma:!1,key:o,index:a,length:m.length,type:"objectStart"})[0]].concat(y,Ec("}",t,n,{showComma:c,length:m.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:o,index:a,path:t,showComma:c,length:d,type:l}]}function YL(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=f1(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,f1(r)):n.push(r)}return n}function CC(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(EC(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(o){return CC(o,t)});return t.set(e,n),n}var r={};for(var i in e)r[i]=CC(e[i],t);return t.set(e,r),r}function XL(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 KL(e){for(var t=1;t=w||T.length>=S,I=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,T);return T.type!=="objectStart"&&T.type!=="arrayStart"||!P&&!I?E:po(po({},E),{},d1({},T.path,1))},{})},s=(0,gt.reactive)({translateY:0,visibleData:null,hiddenPaths:a(e.deep,e.collapsedNodeLength)}),l=(0,gt.computed)(function(){for(var w=null,S=[],E=o.value.length,T=0;Tw.length?w.length-E:A;P<0&&(P=0);var I=P+E;s.translateY=P*e.itemHeight,s.visibleData=w.filter(function(R,O){return O>=P&&O(K(),se("div",Wse,[N(Nc)?(K(),Ot(uae,{key:0})):(K(),Ot($se,{key:1})),L("dialog",{ref_key:"modalRef",ref:n,class:"modal"},[L("div",jse,[ye(N(zse),{data:N(t)},null,8,["data"])]),i[0]||(i[0]=L("form",{method:"dialog",class:"modal-backdrop"},[L("button",null,"close")],-1))],512)]))}}),Xse={class:"relative w-full flex-1"},Wb=it({__name:"TextInput",props:{label:{type:String,required:!1},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=Fe(e.modelValue),i=t;Yt(r,a=>{i("update:modelValue",a)});const o=()=>{r.value=""};return(a,s)=>(K(),se("div",Xse,[_t(L("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),[[Qn,r.value]]),ye(N(Eb),{class:"absolute right-2 top-1/2 h-3 w-3 -translate-y-1/2 cursor-pointer",onClick:o})]))}}),Kse=["value"],Zse=["value"],qL=it({__name:"SourceIPFilter",props:{horizontal:{type:Boolean}},setup(e){const t=Ve(()=>Yoe.value.map(n=>({label:a1(n),value:n})));return(n,r)=>n.horizontal?mt("",!0):_t((K(),se("select",{key:0,class:"join-item select select-bordered select-sm","onUpdate:modelValue":r[0]||(r[0]=i=>ut(Vs)?Vs.value=i:null)},[r[1]||(r[1]=L("option",{value:null},"all",-1)),t.value.every(i=>i.value!==N(Vs))&&N(Vs)!==null?(K(),se("option",{key:0,value:N(Vs)},oe(N(a1)(N(Vs))),9,Kse)):mt("",!0),(K(!0),se(qe,null,ln(t.value,i=>(K(),se("option",{key:i.value,value:i.value},oe(i.label),9,Zse))),128))],512)),[[Ri,N(Vs)]])}}),qse={class:"tabs-boxed tabs tabs-sm"},Jse={class:"shrink-0"},Qse={class:"join flex-1"},ele=["value"],tle={class:"shrink-0"},nle=["data-tip"],rle={class:"flex flex-1 items-center gap-2"},ile={class:"join flex-1"},ole=it({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{Fd.value.forEach(n=>{Gb(n.id)})};return(n,r)=>(K(),se("div",{class:rt(N(En)("flex flex-col gap-2 p-2 text-sm",n.horizontal&&"flex-row flex-wrap"))},[L("div",qse,[L("a",{role:"tab",class:rt(N(En)("tab",N(Tc)===N(Gs).ACTIVE&&"tab-active")),onClick:r[0]||(r[0]=()=>Tc.value=N(Gs).ACTIVE)},[ft(oe(n.$t("activeConnections"))+" ",1),N(Tc)===N(Gs).ACTIVE?(K(),se(qe,{key:0},[ft(" ("+oe(N(Fd).length)+") ",1)],64)):mt("",!0)],2),L("a",{role:"tab",class:rt(N(En)("tab",N(Tc)===N(Gs).CLOSED&&"tab-active")),onClick:r[1]||(r[1]=()=>Tc.value=N(Gs).CLOSED)},[ft(oe(n.$t("closedConnections"))+" ",1),N(Tc)===N(Gs).CLOSED?(K(),se(qe,{key:0},[ft(" ("+oe(N(Fd).length)+") ",1)],64)):mt("",!0)],2)]),N(Nc)?(K(),se("div",{key:0,class:rt(N(En)("flex w-full items-center gap-2",n.horizontal&&"md:w-auto"))},[L("span",Jse,oe(n.$t("sortBy"))+":",1),L("div",Qse,[_t(L("select",{class:"join-item select select-bordered select-sm block flex-1","onUpdate:modelValue":r[2]||(r[2]=i=>ut(c_)?c_.value=i:null)},[(K(!0),se(qe,null,ln(Object.values(N(Gi)),i=>(K(),se("option",{key:i,value:i},oe(n.$t(i)||i),9,ele))),128))],512),[[Ri,N(c_)]]),L("button",{class:"btn join-item btn-sm w-12",onClick:r[3]||(r[3]=i=>f_.value=N(f_)===N(Mc).ASC?N(Mc).DESC:N(Mc).ASC)},[N(f_)===N(Mc).ASC?(K(),Ot(N(Xg),{key:0,class:"h-4 w-4"})):(K(),Ot(N(xb),{key:1,class:"h-4 w-4"}))])])],2)):mt("",!0),L("div",{class:rt(N(En)("flex w-full items-center gap-2",n.horizontal&&"md:w-auto"))},[L("span",tle,oe(n.$t("quickFilter"))+": ",1),_t(L("input",{type:"text",class:rt(["input input-sm join-item input-bordered w-0 flex-1",n.horizontal&&"md:w-48"]),"onUpdate:modelValue":r[4]||(r[4]=i=>ut(_v)?_v.value=i:null)},null,2),[[Qn,N(_v)]]),_t(L("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":r[5]||(r[5]=i=>ut(u_)?u_.value=i:null)},null,512),[[gr,N(u_)]]),L("div",{class:rt(`tooltip ${n.horizontal?"tooltip-left md:tooltip-bottom":"tooltip-left"}`),"data-tip":n.$t("quickFilterTip")},[ye(N(j4),{class:"h-4 w-4"})],10,nle)],2),n.horizontal?mt("",!0):(K(),Ot(qL,{key:1})),L("div",rle,[L("div",ile,[n.horizontal?(K(),Ot(qL,{key:0,class:"w-40"})):mt("",!0),ye(Wb,{modelValue:N(bv),"onUpdate:modelValue":r[6]||(r[6]=i=>ut(bv)?bv.value=i:null),class:"join-item min-w-32"},null,8,["modelValue"]),L("button",{class:"btn join-item btn-sm",onClick:r[7]||(r[7]=i=>d_.value=!N(d_))},[(K(),Ot(ss(N(d_)?N(z4):N(G4)),{class:"h-4 w-4"}))])]),L("button",{class:"btn btn-circle btn-sm",onClick:t},[ye(N(Eb),{class:"h-4 w-4"})])])],2))}}),jb=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},MV=jb(ole,[["__scopeId","data-v-2a3f5508"]]),h1=Fe([]),Bd=Fe(""),h_=Fe(!1),p_=kt("config/log-level",Lc.Info);let My,p1=[];const ale=So.throttle(()=>{h1.value=p1.concat(h1.value).slice(0,n_.value),p1=[]},500),AC=[],sle=()=>{AC.length=0;for(const e in _o.value){if(e.startsWith("/"))continue;const t=new RegExp(e+":","ig");AC.push([t,`${e} (${_o.value[e]}) :`])}};Yt(_o,()=>{sle()},{immediate:!0});const IC=()=>{My==null||My(),h1.value=[],p1=[];let e=1;const t=Loe({level:p_.value}),n=Yt(t.data,r=>{if(r){if(h_.value){e++;return}for(const[i,o]of AC)r.payload=r.payload.replace(i,o);p1.unshift({...r,time:new Date().valueOf(),seq:e++}),ale()}});My=()=>{n(),t.close()}},lle=["value"],LV=it({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,n)=>(K(),se("div",null,[L("div",{class:rt(N(En)("join w-full p-2",t.horizontal&&"max-w-96"))},[_t(L("select",{class:"join-item select select-bordered select-sm","onUpdate:modelValue":n[0]||(n[0]=r=>ut(p_)?p_.value=r:null),onChange:n[1]||(n[1]=(...r)=>N(IC)&&N(IC)(...r))},[(K(!0),se(qe,null,ln(Object.values(N(Lc)),r=>(K(),se("option",{key:r,value:r},oe(r),9,lle))),128))],544),[[Ri,N(p_)]]),ye(Wb,{type:"text",modelValue:N(Bd),"onUpdate:modelValue":n[2]||(n[2]=r=>ut(Bd)?Bd.value=r:null)},null,8,["modelValue"]),L("button",{class:"btn-bordered btn join-item btn-sm",onClick:n[3]||(n[3]=r=>h_.value=!N(h_))},[(K(),Ot(ss(N(h_)?N(z4):N(G4)),{class:"h-4 w-4"}))])],2)]))}}),ei=Fe({port:0,"socks-port":0,"redir-port":0,"tproxy-port":0,"mixed-port":0,"allow-lan":!1,"bind-address":"",mode:"","mode-list":[],modes:[],"log-level":"",ipv6:!1,tun:{enable:!1}}),JI=async()=>{ei.value=(await Ioe()).data},v_=async e=>{await Roe(e),JI()},NV=Fe(df.PROXIES),kV=Ve(()=>{var t;if(NV.value===df.PROVIDER)return kd.value.map(n=>n.name);const e=Q0.value?cC.value:cC.value.filter(n=>{var r;return((r=fi.value[n])==null?void 0:r.hidden)!==!0});return dl.value&&K0.value&&fi.value[Pc]?[...e,Pc]:!dl.value&&((t=ei.value)==null?void 0:t.mode.toLocaleUpperCase())===Pc&&fi.value[Pc]?[Pc]:e}),ule=Ve(()=>dv.value&&kV.value.length>1),Yb=()=>({proxiesTabShow:NV,renderGroups:kV,hasTwoColumns:ule}),cle={key:0,role:"tablist",class:"tabs-boxed tabs tabs-sm"},fle=["onClick"],dle={key:1,class:"flex flex-col gap-2"},hle=["value"],ple=["value"],vle=["value"],gle={class:"shrink-0"},FV=it({__name:"ProxiesCtrl",props:{horizontal:{type:Boolean}},setup(e){const{proxiesTabShow:t}=Yb(),n=Fe(!1),r=async()=>{if(!n.value){n.value=!0;try{await Promise.all(kd.value.map(a=>aV(a.name))),await fl(),n.value=!1}catch{await fl(),n.value=!1}}},i=Ve(()=>{var a,s;return((a=ei.value)==null?void 0:a["mode-list"])||((s=ei.value)==null?void 0:s.modes)||["direct","rule","global"]}),o=a=>{const s=a.target.value;v_({mode:s})};return(a,s)=>N(ei)?(K(),se("div",{key:0,class:rt(N(En)("flex flex-col gap-1 p-2 text-sm sm:gap-2",a.horizontal&&"flex-row flex-wrap"))},[N(kd).length?(K(),se("div",{key:0,class:rt(N(En)("flex flex-col-reverse gap-2",a.horizontal&&"flex-row"))},[N(kd).length?(K(),se("div",cle,[(K(!0),se(qe,null,ln(N(df),l=>(K(),se("a",{role:"tab",class:rt(["tab",{"tab-active":N(t)===l}]),key:l,onClick:u=>t.value=l},oe(a.$t(l)),11,fle))),128))])):mt("",!0),N(t)===N(df).PROVIDER?(K(),se("div",dle,[L("button",{class:rt(N(En)("btn btn-sm",n.value?"animate-pulse":"")),onClick:r},oe(a.$t("updateAllProviders")),3)])):mt("",!0)],2)):mt("",!0),s[2]||(s[2]=L("div",{class:"w-full sm:hidden"},null,-1)),L("div",{class:rt(N(En)("flex w-full items-center gap-2",a.horizontal&&"w-24"))},[L("select",{class:"select select-bordered select-sm w-1/2 flex-1",value:N(ei).mode,onChange:o},[(K(!0),se(qe,null,ln(i.value,l=>(K(),se("option",{key:l,value:l},oe(a.$t(l.toLowerCase())||l),9,ple))),128))],40,hle)],2),L("div",{class:rt(N(En)("flex w-full items-center gap-2",a.horizontal&&"w-72 max-sm:flex-1"))},[_t(L("select",{class:"select select-bordered select-sm w-1/2 flex-1","onUpdate:modelValue":s[0]||(s[0]=l=>ut(Z0)?Z0.value=l:null)},[(K(!0),se(qe,null,ln(Object.values(N(nu)),l=>(K(),se("option",{key:l,value:l},oe(a.$t(l)),9,vle))),128))],512),[[Ri,N(Z0)]]),L("span",gle,oe(a.$t("hideUnavailable"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=l=>ut(J0)?J0.value=l:null)},null,512),[[gr,N(J0)]])],2)],2)):mt("",!0)}}),wv=Fe(rh.RULES),v1=Fe([]),pg=Fe([]),ef=Fe(""),mle=Ve(()=>ef.value===""?v1.value:v1.value.filter(e=>[e.type.toLowerCase(),e.payload.toLowerCase(),e.proxy.toLowerCase()].some(t=>t.includes(ef.value.toLowerCase())))),yle=Ve(()=>ef.value===""?pg.value:pg.value.filter(e=>[e.name.toLowerCase(),e.behavior.toLowerCase(),e.vehicleType.toLowerCase()].some(t=>t.includes(ef.value.toLowerCase())))),vg=async()=>{const{data:e}=await Coe(),{data:t}=await Aoe();v1.value=e.rules,pg.value=Object.values(t.providers)},_le={role:"tablist",class:"tabs-boxed tabs tabs-sm"},ble=["onClick"],Sle={key:0,class:"flex flex-col gap-2"},$V=it({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Fe(!1),n=async()=>{if(!t.value){t.value=!0;try{await Promise.all(pg.value.map(r=>sV(r.name))),await vg(),t.value=!1}catch{await vg(),t.value=!1}}};return(r,i)=>(K(),se("div",{class:rt(N(En)("flex flex-col gap-2 p-2",`${r.horizontal&&"flex-row"}`))},[N(pg).length?(K(),se("div",{key:0,class:rt(N(En)("flex flex-col-reverse gap-2",r.horizontal&&"flex-row"))},[L("div",_le,[(K(!0),se(qe,null,ln(N(rh),o=>(K(),se("a",{role:"tab",class:rt(["tab",{"tab-active":N(wv)===o}]),key:o,onClick:a=>wv.value=o},oe(r.$t(o)),11,ble))),128))]),N(wv)===N(rh).PROVIDER?(K(),se("div",Sle,[L("button",{class:rt(N(En)("btn btn-sm",t.value?"animate-pulse":"")),onClick:n},oe(r.$t("updateAllProviders")),3)])):mt("",!0)],2)):mt("",!0),ye(Wb,{class:"w-full max-w-96",modelValue:N(ef),"onUpdate:modelValue":i[0]||(i[0]=o=>ut(ef)?ef.value=o:null)},null,8,["modelValue"])],2))}}),wle=""+new URL("metacubex-BlQkOUXT.jpg",import.meta.url).href,xle="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",Tle={class:"flex items-center gap-1"},Ele=["src"],QI=it({__name:"BackendVersion",setup(e){return(t,n)=>(K(),se("div",Tle,[ft(oe(t.$t("version"))+": ",1),L("img",{src:N(dl)?N(xle):N(wle),class:"h-4 w-4 rounded-sm"},null,8,Ele),ft(" "+oe(N(fg)),1)]))}}),Cle={class:"join flex"},Ale=["value"],BV=it({__name:"BackendSwitch",setup(e){const t=Ve(()=>cs.value.map(r=>({label:Eu(r),value:r.uuid}))),n=()=>{ci.value=null,ka.push({name:un.setup})};return(r,i)=>(K(),se("div",Cle,[_t(L("select",{class:"join-item select select-bordered select-sm w-56","onUpdate:modelValue":i[0]||(i[0]=o=>ut(ci)?ci.value=o:null)},[(K(!0),se(qe,null,ln(t.value,o=>(K(),se("option",{key:o.value,value:o.value},oe(o.label),9,Ale))),128))],512),[[Ri,N(ci)]]),L("button",{class:"btn join-item btn-sm",onClick:n},[ye(N(W4),{class:"h-4 w-4"})])]))}}),Ile={class:"grid w-full grid-cols-2 gap-1 rounded-lg"},VV=it({__name:"StatisticsInfo",setup(e){return(t,n)=>(K(),se("div",Ile,[L("div",null,oe(t.$t("connections"))+": "+oe(N(Qo).length),1),L("div",null,oe(t.$t("memoryUsage"))+": "+oe(N(Tn)(N(Mb),{binary:!0})),1),L("div",null,oe(t.$t("download"))+": "+oe(N(Tn)(N(dg))),1),L("div",null,oe(t.$t("dlSpeed"))+": "+oe(N(Tn)(N(Lb)))+"/s",1),L("div",null,oe(t.$t("upload"))+": "+oe(N(Tn)(N(hg))),1),L("div",null,oe(t.$t("ulSpeed"))+": "+oe(N(Tn)(N(Nb)))+"/s",1)]))}}),Rle={class:"flex flex-col gap-2 p-2 text-sm"},Ple={class:"flex"},Ole=it({__name:"CommonCtrl",setup(e){return(t,n)=>(K(),se("div",Rle,[ye(VV),ye(QI),L("div",Ple,[L("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>gu.value=!0)},[ye(N(vQ),{class:"h-5 w-5"})]),n[1]||(n[1]=L("div",{class:"flex-1"},null,-1)),ye(BV)])]))}});/*! ***************************************************************************** + */function Ly(){return!0}const tse=Symbol("merge-proxy"),nse={get(e,t,n){return t===tse?n:e.get(t)},has(e,t){return e.has(t)},set:Ly,deleteProperty:Ly,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Ly,deleteProperty:Ly}},ownKeys(e){return e.keys()}};function Vx(e){return"value"in e?e.value:e}function zp(){for(var e=arguments.length,t=new Array(e),n=0;n=0;i--){const o=Vx(t[i])[r];if(o!==void 0)return o}},has(r){for(let i=t.length-1;i>=0;i--)if(r in Vx(t[i]))return!0;return!1},keys(){const r=[];for(let i=0;i()=>typeof e.render=="function"||typeof e.render=="object"?zi(e.render,e.props):e.render});function WL(e){return zp(e,{data:N(e.data)})}function rse(e){const t=st(e.data),n=zp({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(o,a){return t?{...o,...a}:zp(o,a)}},t?WL(e):e),r=Xae(n);if(t){const o=Cf(e.data);Yt(o,()=>{r.setState(a=>({...a,data:o.value}))},{immediate:!0})}const i=Fe(r.initialState);return Sb(()=>{r.setOptions(o=>{var a;const s=new Proxy({},{get:(l,u)=>i.value[u]});return zp(o,t?WL(e):e,{state:zp(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 QI="-",ise=e=>{const t=ase(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(QI);return s[0]===""&&s.length!==1&&s.shift(),AV(s,t)||ose(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},AV=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?AV(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(QI);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},jL=/^\[(.+)\]$/,ose=e=>{if(jL.test(e)){const t=jL.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ase=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return lse(Object.entries(e.classGroups),n).forEach(([o,a])=>{EC(a,r,o,t)}),r},EC=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:YL(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(sse(i)){EC(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{EC(a,YL(t,o),n,r)})})},YL=(e,t)=>{let n=e;return t.split(QI).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},sse=e=>e.isThemeGetter,lse=(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,use=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)}}},IV="!",cse=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 y=0;yc?f-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}};return n?s=>n({className:s,parseClassName:a}):a},fse=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},dse=e=>({cache:use(e.cacheSize),parseClassName:cse(e),...ise(e)}),hse=/\s+/,pse=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(hse);let s="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=n(u);let v=!!h,m=r(v?d.substring(0,h):d);if(!m){if(!v){s=u+(s.length>0?" "+s:s);continue}if(m=r(d),!m){s=u+(s.length>0?" "+s:s);continue}v=!1}const y=fse(c).join(":"),_=f?y+IV:y,b=_+m;if(o.includes(b))continue;o.push(b);const w=i(m,v);for(let S=0;S0?" "+s:s)}return s};function vse(){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=dse(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=pse(l,n);return i(l,c),c}return function(){return o(vse.apply(null,arguments))}}const Un=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},PV=/^\[(?:([a-z-]+):)?(.+)\]$/i,mse=/^\d+\/\d+$/,yse=new Set(["px","full","screen"]),_se=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bse=/\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$/,Sse=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wse=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xse=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ds=e=>$d(e)||yse.has(e)||mse.test(e),Ml=e=>Th(e,"length",Ose),$d=e=>!!e&&!Number.isNaN(Number(e)),Hx=e=>Th(e,"number",$d),sp=e=>!!e&&Number.isInteger(Number(e)),Tse=e=>e.endsWith("%")&&$d(e.slice(0,-1)),Ht=e=>PV.test(e),Ll=e=>_se.test(e),Ese=new Set(["length","size","percentage"]),Cse=e=>Th(e,Ese,OV),Ase=e=>Th(e,"position",OV),Ise=new Set(["image","url"]),Rse=e=>Th(e,Ise,Mse),Pse=e=>Th(e,"",Dse),lp=()=>!0,Th=(e,t,n)=>{const r=PV.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Ose=e=>bse.test(e)&&!Sse.test(e),OV=()=>!1,Dse=e=>wse.test(e),Mse=e=>xse.test(e),Lse=()=>{const e=Un("colors"),t=Un("spacing"),n=Un("blur"),r=Un("brightness"),i=Un("borderColor"),o=Un("borderRadius"),a=Un("borderSpacing"),s=Un("borderWidth"),l=Un("contrast"),u=Un("grayscale"),c=Un("hueRotate"),f=Un("invert"),d=Un("gap"),h=Un("gradientColorStops"),v=Un("gradientColorStopPositions"),m=Un("inset"),y=Un("margin"),_=Un("opacity"),b=Un("padding"),w=Un("saturate"),S=Un("scale"),T=Un("sepia"),E=Un("skew"),A=Un("space"),P=Un("translate"),I=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",Ht,t],M=()=>[Ht,t],$=()=>["",Ds,Ml],F=()=>["auto",$d,Ht],z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],se=()=>["","0",Ht],ge=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ve=()=>[$d,Ht];return{cacheSize:500,separator:":",theme:{colors:[lp],spacing:[Ds,Ml],blur:["none","",Ll,Ht],brightness:ve(),borderColor:[e],borderRadius:["none","","full",Ll,Ht],borderSpacing:M(),borderWidth:$(),contrast:ve(),grayscale:se(),hueRotate:ve(),invert:se(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[Tse,Ml],inset:O(),margin:O(),opacity:ve(),padding:M(),saturate:ve(),scale:ve(),sepia:se(),skew:ve(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Ht]}],container:["container"],columns:[{columns:[Ll]}],"break-after":[{"break-after":ge()}],"break-before":[{"break-before":ge()}],"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:[...z(),Ht]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",sp,Ht]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ht]}],grow:[{grow:se()}],shrink:[{shrink:se()}],order:[{order:["first","last","none",sp,Ht]}],"grid-cols":[{"grid-cols":[lp]}],"col-start-end":[{col:["auto",{span:["full",sp,Ht]},Ht]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[lp]}],"row-start-end":[{row:["auto",{span:[sp,Ht]},Ht]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ht]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ht]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"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:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"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",Ht,t]}],"min-w":[{"min-w":[Ht,t,"min","max","fit"]}],"max-w":[{"max-w":[Ht,t,"none","full","min","max","fit","prose",{screen:[Ll]},Ll]}],h:[{h:[Ht,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ht,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ht,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ht,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ll,Ml]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Hx]}],"font-family":[{font:[lp]}],"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",Ht]}],"line-clamp":[{"line-clamp":["none",$d,Hx]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ds,Ht]}],"list-image":[{"list-image":["none",Ht]}],"list-style-type":[{list:["none","disc","decimal",Ht]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ds,Ml]}],"underline-offset":[{"underline-offset":["auto",Ds,Ht]}],"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:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ht]}],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",Ht]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...z(),Ase]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Cse]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Rse]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],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":[_]}],"border-style":[{border:[...B(),"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":[_]}],"divide-style":[{divide:B()}],"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:["",...B()]}],"outline-offset":[{"outline-offset":[Ds,Ht]}],"outline-w":[{outline:[Ds,Ml]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[Ds,Ml]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ll,Pse]}],"shadow-color":[{shadow:[lp]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ll,Ht]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[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":[_]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"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",Ht]}],duration:[{duration:ve()}],ease:[{ease:["linear","in","out","in-out",Ht]}],delay:[{delay:ve()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ht]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[sp,Ht]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ht]}],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",Ht]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",Ht]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ds,Ml,Hx]}],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"]}}},En=gse(Lse),Nse={class:"sticky -top-2 z-10 bg-base-100"},kse=["colSpan","onClick"],Fse={class:"flex items-center gap-1"},$se=["onClick"],Bse=["onClick"],Vse=it({__name:"ConnectionTable",setup(e){const{handlerInfo:t}=KI(),{t:n}=us(),r=[{header:()=>n("details"),enableSorting:!1,id:vt.Details,cell:({row:y})=>zi("button",{class:"btn btn-xs btn-circle",onClick:()=>{const _=y.original;t(_)}},[zi(W4,{class:"h-4 w-4"})])},{header:()=>n("close"),enableSorting:!1,id:vt.Close,cell:({row:y})=>zi("button",{class:"btn btn-xs btn-circle",onClick:()=>{const _=y.original;Wb(_.id)}},[zi(Ab,{class:"h-4 w-4"})])},{header:()=>n("type"),id:vt.Type,accessorFn:y=>`${y.metadata.type} | ${y.metadata.network}`},{header:()=>n("process"),id:vt.Process,accessorFn:y=>NB(y)},{header:()=>n("host"),id:vt.Host,accessorFn:y=>`${y.metadata.host?y.metadata.host:y.metadata.destinationIP}:${y.metadata.destinationPort}`},{header:()=>n("rule"),id:vt.Rule,accessorFn:y=>y.rulePayload?`${y.rule}: ${y.rulePayload}`:y.rule},{header:()=>n("chains"),id:vt.Chains,accessorFn:y=>y.chains.join(","),cell:({row:y})=>{const _=[],b=_v.value===fg.NORMAL?_.unshift.bind(_):_.push.bind(_),w=_v.value===fg.NORMAL?ff:H4;return y.original.chains.forEach((S,T)=>{b(zi("span",S)),Tn("connectTime"),enableGrouping:!1,id:vt.ConnectTime,accessorFn:y=>$b(y.start),sortingFn:(y,_)=>Ma(_.original.start).valueOf()-Ma(y.original.start).valueOf()},{header:()=>n("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:vt.DlSpeed,accessorFn:y=>`${Tn(y.downloadSpeed)}/s`,sortingFn:(y,_)=>y.original.downloadSpeed-_.original.downloadSpeed},{header:()=>n("ulSpeed"),enableGrouping:!1,id:vt.UlSpeed,accessorFn:y=>`${Tn(y.uploadSpeed)}/s`,sortingFn:(y,_)=>y.original.uploadSpeed-_.original.uploadSpeed},{header:()=>n("dl"),enableGrouping:!1,id:vt.Download,accessorFn:y=>Tn(y.download),sortingFn:(y,_)=>y.original.download-_.original.download},{header:()=>n("ul"),enableGrouping:!1,id:vt.Upload,accessorFn:y=>Tn(y.upload),sortingFn:(y,_)=>y.original.upload-_.original.upload},{header:()=>n("sourceIP"),id:vt.SourceIP,accessorFn:y=>l1(y.metadata.sourceIP)},{header:()=>n("sourcePort"),id:vt.SourcePort,accessorFn:y=>y.metadata.sourcePort},{header:()=>n("destination"),id:vt.Destination,accessorFn:kB}],i=Fe([]),o=Fe({}),a=Mt("config/table-sorting",[]),s=rse({get data(){return Fd.value},columns:r,state:{get columnOrder(){return Ed.value},get columnVisibility(){return{...Object.fromEntries(Object.values(vt).map(y=>[y,!1])),...Object.fromEntries(Ed.value.map(y=>[y,!0]))}},get grouping(){return i.value},get expanded(){return o.value},get sorting(){return a.value}},onGroupingChange:y=>{Qc(y)?i.value=y(i.value):i.value=y},onExpandedChange:y=>{Qc(y)&&(o.value=y(o.value))},onSortingChange:y=>{Qc(y)?a.value=y(a.value):a.value=y},getSortedRowModel:ese(),getGroupedRowModel:Jae(),getExpandedRowModel:Zae(),getCoreRowModel:Kae()}),l=Ve(()=>s.getRowModel().rows),u=Fe(null),c=Ve(()=>({count:l.value.length,getScrollElement:()=>u.value,estimateSize:()=>36,overscan:48})),f=vV(c),d=Ve(()=>f.value.getVirtualItems()),h=Ve(()=>f.value.getTotalSize()+24),v={[cg.SMALL]:"table-xs",[cg.LARGE]:"table-sm"},m=Ve(()=>v[r_.value]);return(y,_)=>(K(),ae("div",{ref_key:"parentRef",ref:u,class:"h-full overflow-y-auto bg-clip-content p-2"},[L("div",{style:Gr({height:`${h.value}px`})},[L("table",{class:rt(`table table-zebra ${m.value} rounded-none shadow-md`)},[L("thead",Nse,[(K(!0),ae(qe,null,on(N(s).getHeaderGroups(),b=>(K(),ae("tr",{key:b.id},[(K(!0),ae(qe,null,on(b.headers,w=>(K(),ae("th",{key:w.id,colSpan:w.colSpan,class:rt(w.column.getCanSort()?"cursor-pointer select-none":""),onClick:S=>{var T;return(T=w.column.getToggleSortingHandler())==null?void 0:T(S)}},[L("div",Fse,[w.column.getCanGroup()?(K(),ae("button",{key:0,class:"cursor-pointer",onClick:cf(()=>w.column.getToggleGroupingHandler()(),["stop"])},[w.column.getIsGrouped()?(K(),Ot(N(hM),{key:0,class:"h-4 w-4"})):(K(),Ot(N(pM),{key:1,class:"h-4 w-4"}))],8,$se)):mt("",!0),w.isPlaceholder?mt("",!0):(K(),Ot(N(Ux),{key:1,render:w.column.columnDef.header,props:w.getContext()},null,8,["render","props"])),w.column.getIsSorted()==="asc"?(K(),Ot(N(Zg),{key:2,class:"h-4 w-4"})):mt("",!0),w.column.getIsSorted()==="desc"?(K(),Ot(N(Eb),{key:3,class:"h-4 w-4"})):mt("",!0)])],10,kse))),128))]))),128))]),L("tbody",null,[(K(!0),ae(qe,null,on(d.value,(b,w)=>(K(),ae("tr",{key:b.key.toString(),style:Gr({height:`${b.size}px`,transform:`translateY(${b.start-w*b.size}px)`}),class:"bg-base-100 hover:!bg-primary hover:text-primary-content"},[(K(!0),ae(qe,null,on(l.value[b.index].getVisibleCells(),S=>(K(),ae("td",{key:S.id,class:rt(N(En)("whitespace-nowrap text-sm",[N(vt).Download,N(vt).DlSpeed,N(vt).Upload,N(vt).UlSpeed].includes(S.column.id)&&"min-w-20",[N(vt).Host].includes(S.column.id)&&"max-w-[32rem] truncate"))},[S.column.getIsGrouped()?(K(),ae(qe,{key:0},[l.value[b.index].getCanExpand()?(K(),ae(qe,{key:0},[L("button",{onClick:()=>l.value[b.index].getToggleExpandedHandler()(),class:"relative top-1 cursor-pointer"},[l.value[b.index].getIsExpanded()?(K(),Ot(N(hM),{key:0,class:"h-4 w-4"})):(K(),Ot(N(pM),{key:1,class:"h-4 w-4"}))],8,Bse),ye(N(Ux),{render:S.column.columnDef.cell,props:S.getContext()},null,8,["render","props"]),L("span",null," ("+re(l.value[b.index].subRows.length)+") ",1)],64)):mt("",!0)],64)):(K(),Ot(N(Ux),{key:1,render:S.getIsAggregated()?S.column.columnDef.aggregatedCell:S.column.columnDef.cell,props:S.getContext()},null,8,["render","props"]))],2))),128))],4))),128))])],2)],4)],512))}});var d1={d:(e,t)=>{for(var n in t)d1.o(t,n)&&!d1.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},DV={};function CC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nWse});const gt=(XL={computed:()=>Ve,createTextVNode:()=>ft,createVNode:()=>ye,defineComponent:()=>it,reactive:()=>La,ref:()=>Fe,watch:()=>Yt,watchEffect:()=>Sb},Gx={},d1.d(Gx,XL),Gx),Use=(0,gt.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,gt.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),Hse=(0,gt.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,gt.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,gt.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,gt.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,gt.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,gt.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),Gse=(0,gt.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,gt.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,gt.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,gt.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 XL,Gx;function AC(e){return AC=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},AC(e)}function LV(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ec(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,d=f===void 0?1:f,h=LV(e);if(h==="array"){var v=KL(e.map(function(_,b,w){return Ec(_,"".concat(t,"[").concat(b,"]"),n+1,{index:b,showComma:b!==w.length-1,length:d,type:l})}));return[Ec("[",t,n,{showComma:!1,key:o,length:e.length,type:"arrayStart"})[0]].concat(v,Ec("]",t,n,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(h==="object"){var m=Object.keys(e),y=KL(m.map(function(_,b,w){return Ec(e[_],/^[a-zA-Z_]\w*$/.test(_)?"".concat(t,".").concat(_):"".concat(t,'["').concat(_,'"]'),n+1,{key:_,showComma:b!==w.length-1,length:d,type:l})}));return[Ec("{",t,n,{showComma:!1,key:o,index:a,length:m.length,type:"objectStart"})[0]].concat(y,Ec("}",t,n,{showComma:c,length:m.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:o,index:a,path:t,showComma:c,length:d,type:l}]}function KL(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=h1(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,h1(r)):n.push(r)}return n}function IC(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(AC(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(o){return IC(o,t)});return t.set(e,n),n}var r={};for(var i in e)r[i]=IC(e[i],t);return t.set(e,r),r}function ZL(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 qL(e){for(var t=1;t=w||E.length>=S,I=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,E);return E.type!=="objectStart"&&E.type!=="arrayStart"||!P&&!I?T:po(po({},T),{},p1({},E.path,1))},{})},s=(0,gt.reactive)({translateY:0,visibleData:null,hiddenPaths:a(e.deep,e.collapsedNodeLength)}),l=(0,gt.computed)(function(){for(var w=null,S=[],T=o.value.length,E=0;Ew.length?w.length-T:A;P<0&&(P=0);var I=P+T;s.translateY=P*e.itemHeight,s.visibleData=w.filter(function(R,O){return O>=P&&O(K(),ae("div",Yse,[N(Nc)?(K(),Ot(fae,{key:0})):(K(),Ot(Vse,{key:1})),L("dialog",{ref_key:"modalRef",ref:n,class:"modal"},[L("div",Xse,[ye(N(jse),{data:N(t)},null,8,["data"])]),i[0]||(i[0]=L("form",{method:"dialog",class:"modal-backdrop"},[L("button",null,"close")],-1))],512)]))}}),Zse={class:"relative w-full flex-1"},Yb=it({__name:"TextInput",props:{label:{type:String,required:!1},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=Fe(e.modelValue),i=t;Yt(r,a=>{i("update:modelValue",a)});const o=()=>{r.value=""};return(a,s)=>(K(),ae("div",Zse,[yt(L("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),[[Qn,r.value]]),ye(N(Ab),{class:"absolute right-2 top-1/2 h-3 w-3 -translate-y-1/2 cursor-pointer",onClick:o})]))}}),qse=["value"],Jse=["value"],QL=it({__name:"SourceIPFilter",props:{horizontal:{type:Boolean}},setup(e){const t=Ve(()=>Koe.value.map(n=>({label:l1(n),value:n})));return(n,r)=>n.horizontal?mt("",!0):yt((K(),ae("select",{key:0,class:"join-item select select-bordered select-sm","onUpdate:modelValue":r[0]||(r[0]=i=>st(Vs)?Vs.value=i:null)},[r[1]||(r[1]=L("option",{value:null},"all",-1)),t.value.every(i=>i.value!==N(Vs))&&N(Vs)!==null?(K(),ae("option",{key:0,value:N(Vs)},re(N(l1)(N(Vs))),9,qse)):mt("",!0),(K(!0),ae(qe,null,on(t.value,i=>(K(),ae("option",{key:i.value,value:i.value},re(i.label),9,Jse))),128))],512)),[[hi,N(Vs)]])}}),Qse={class:"tabs-boxed tabs tabs-sm"},ele={class:"shrink-0"},tle={class:"join flex-1"},nle=["value"],rle={class:"shrink-0"},ile=["data-tip"],ole={class:"flex flex-1 items-center gap-2"},ale={class:"join flex-1"},sle=it({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{Fd.value.forEach(n=>{Wb(n.id)})};return(n,r)=>(K(),ae("div",{class:rt(N(En)("flex flex-col gap-2 p-2 text-sm",n.horizontal&&"flex-row flex-wrap"))},[L("div",Qse,[L("a",{role:"tab",class:rt(N(En)("tab",N(Tc)===N(Gs).ACTIVE&&"tab-active")),onClick:r[0]||(r[0]=()=>Tc.value=N(Gs).ACTIVE)},[ft(re(n.$t("activeConnections"))+" ",1),N(Tc)===N(Gs).ACTIVE?(K(),ae(qe,{key:0},[ft(" ("+re(N(Fd).length)+") ",1)],64)):mt("",!0)],2),L("a",{role:"tab",class:rt(N(En)("tab",N(Tc)===N(Gs).CLOSED&&"tab-active")),onClick:r[1]||(r[1]=()=>Tc.value=N(Gs).CLOSED)},[ft(re(n.$t("closedConnections"))+" ",1),N(Tc)===N(Gs).CLOSED?(K(),ae(qe,{key:0},[ft(" ("+re(N(Fd).length)+") ",1)],64)):mt("",!0)],2)]),N(Nc)?(K(),ae("div",{key:0,class:rt(N(En)("flex w-full items-center gap-2",n.horizontal&&"md:w-auto"))},[L("span",ele,re(n.$t("sortBy"))+":",1),L("div",tle,[yt(L("select",{class:"join-item select select-bordered select-sm block flex-1","onUpdate:modelValue":r[2]||(r[2]=i=>st(d_)?d_.value=i:null)},[(K(!0),ae(qe,null,on(Object.values(N(Gi)),i=>(K(),ae("option",{key:i,value:i},re(n.$t(i)||i),9,nle))),128))],512),[[hi,N(d_)]]),L("button",{class:"btn join-item btn-sm w-12",onClick:r[3]||(r[3]=i=>h_.value=N(h_)===N(Mc).ASC?N(Mc).DESC:N(Mc).ASC)},[N(h_)===N(Mc).ASC?(K(),Ot(N(Zg),{key:0,class:"h-4 w-4"})):(K(),Ot(N(Eb),{key:1,class:"h-4 w-4"}))])])],2)):mt("",!0),L("div",{class:rt(N(En)("flex w-full items-center gap-2",n.horizontal&&"md:w-auto"))},[L("span",rle,re(n.$t("quickFilter"))+": ",1),yt(L("input",{type:"text",class:rt(["input input-sm join-item input-bordered w-0 flex-1",n.horizontal&&"md:w-48"]),"onUpdate:modelValue":r[4]||(r[4]=i=>st(bv)?bv.value=i:null)},null,2),[[Qn,N(bv)]]),yt(L("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":r[5]||(r[5]=i=>st(f_)?f_.value=i:null)},null,512),[[gr,N(f_)]]),L("div",{class:rt(`tooltip ${n.horizontal?"tooltip-left md:tooltip-bottom":"tooltip-left"}`),"data-tip":n.$t("quickFilterTip")},[ye(N(K4),{class:"h-4 w-4"})],10,ile)],2),n.horizontal?mt("",!0):(K(),Ot(QL,{key:1})),L("div",ole,[L("div",ale,[n.horizontal?(K(),Ot(QL,{key:0,class:"w-40"})):mt("",!0),ye(Yb,{modelValue:N(Sv),"onUpdate:modelValue":r[6]||(r[6]=i=>st(Sv)?Sv.value=i:null),class:"join-item min-w-32"},null,8,["modelValue"]),L("button",{class:"btn join-item btn-sm",onClick:r[7]||(r[7]=i=>p_.value=!N(p_))},[(K(),Ot(ss(N(p_)?N(Y4):N(j4)),{class:"h-4 w-4"}))])]),L("button",{class:"btn btn-circle btn-sm",onClick:t},[ye(N(Ab),{class:"h-4 w-4"})])])],2))}}),Xb=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},kV=Xb(sle,[["__scopeId","data-v-2a3f5508"]]),v1=Fe([]),Bd=Fe(""),v_=Fe(!1),g_=Mt("config/log-level",Lc.Info);let Ny,g1=[];const lle=So.throttle(()=>{v1.value=g1.concat(v1.value).slice(0,i_.value),g1=[]},500),RC=[],ule=()=>{RC.length=0;for(const e in _o.value){if(e.startsWith("/"))continue;const t=new RegExp(e+":","ig");RC.push([t,`${e} (${_o.value[e]}) :`])}};Yt(_o,()=>{ule()},{immediate:!0});const PC=()=>{Ny==null||Ny(),v1.value=[],g1=[];let e=1;const t=koe({level:g_.value}),n=Yt(t.data,r=>{if(r){if(v_.value){e++;return}for(const[i,o]of RC)r.payload=r.payload.replace(i,o);g1.unshift({...r,time:new Date().valueOf(),seq:e++}),lle()}});Ny=()=>{n(),t.close()}},cle=["value"],FV=it({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,n)=>(K(),ae("div",null,[L("div",{class:rt(N(En)("join w-full p-2",t.horizontal&&"max-w-96"))},[yt(L("select",{class:"join-item select select-bordered select-sm","onUpdate:modelValue":n[0]||(n[0]=r=>st(g_)?g_.value=r:null),onChange:n[1]||(n[1]=(...r)=>N(PC)&&N(PC)(...r))},[(K(!0),ae(qe,null,on(Object.values(N(Lc)),r=>(K(),ae("option",{key:r,value:r},re(r),9,cle))),128))],544),[[hi,N(g_)]]),ye(Yb,{type:"text",modelValue:N(Bd),"onUpdate:modelValue":n[2]||(n[2]=r=>st(Bd)?Bd.value=r:null)},null,8,["modelValue"]),L("button",{class:"btn-bordered btn join-item btn-sm",onClick:n[3]||(n[3]=r=>v_.value=!N(v_))},[(K(),Ot(ss(N(v_)?N(Y4):N(j4)),{class:"h-4 w-4"}))])],2)]))}}),ei=Fe({port:0,"socks-port":0,"redir-port":0,"tproxy-port":0,"mixed-port":0,"allow-lan":!1,"bind-address":"",mode:"","mode-list":[],modes:[],"log-level":"",ipv6:!1,tun:{enable:!1}}),eR=async()=>{ei.value=(await Poe()).data},m_=async e=>{await Ooe(e),eR()},$V=Fe(df.PROXIES),BV=Ve(()=>{var t;if($V.value===df.PROVIDER)return kd.value.map(n=>n.name);const e=t_.value?dC.value:dC.value.filter(n=>{var r;return((r=fi.value[n])==null?void 0:r.hidden)!==!0});return dl.value&&q0.value&&fi.value[Pc]?[...e,Pc]:!dl.value&&((t=ei.value)==null?void 0:t.mode.toLocaleUpperCase())===Pc&&fi.value[Pc]?[Pc]:e}),fle=Ve(()=>dv.value&&BV.value.length>1),Kb=()=>({proxiesTabShow:$V,renderGroups:BV,hasTwoColumns:fle}),dle={key:0,role:"tablist",class:"tabs-boxed tabs tabs-sm"},hle=["onClick"],ple={key:1,class:"flex flex-col gap-2"},vle=["value"],gle=["value"],mle=["value"],yle={class:"shrink-0"},VV=it({__name:"ProxiesCtrl",props:{horizontal:{type:Boolean}},setup(e){const{proxiesTabShow:t}=Kb(),n=Fe(!1),r=async()=>{if(!n.value){n.value=!0;try{await Promise.all(kd.value.map(a=>uV(a.name))),await fl(),n.value=!1}catch{await fl(),n.value=!1}}},i=Ve(()=>{var a,s;return((a=ei.value)==null?void 0:a["mode-list"])||((s=ei.value)==null?void 0:s.modes)||["direct","rule","global"]}),o=a=>{const s=a.target.value;m_({mode:s})};return(a,s)=>N(ei)?(K(),ae("div",{key:0,class:rt(N(En)("flex flex-col gap-1 p-2 text-sm sm:gap-2",a.horizontal&&"flex-row flex-wrap"))},[N(kd).length?(K(),ae("div",{key:0,class:rt(N(En)("flex flex-col-reverse gap-2",a.horizontal&&"flex-row"))},[N(kd).length?(K(),ae("div",dle,[(K(!0),ae(qe,null,on(N(df),l=>(K(),ae("a",{role:"tab",class:rt(["tab",{"tab-active":N(t)===l}]),key:l,onClick:u=>t.value=l},re(a.$t(l)),11,hle))),128))])):mt("",!0),N(t)===N(df).PROVIDER?(K(),ae("div",ple,[L("button",{class:rt(N(En)("btn btn-sm",n.value?"animate-pulse":"")),onClick:r},re(a.$t("updateAllProviders")),3)])):mt("",!0)],2)):mt("",!0),s[2]||(s[2]=L("div",{class:"w-full sm:hidden"},null,-1)),L("div",{class:rt(N(En)("flex w-full items-center gap-2",a.horizontal&&"w-24"))},[L("select",{class:"select select-bordered select-sm w-1/2 flex-1",value:N(ei).mode,onChange:o},[(K(!0),ae(qe,null,on(i.value,l=>(K(),ae("option",{key:l,value:l},re(a.$t(l.toLowerCase())||l),9,gle))),128))],40,vle)],2),L("div",{class:rt(N(En)("flex w-full items-center gap-2",a.horizontal&&"w-72 max-sm:flex-1"))},[yt(L("select",{class:"select select-bordered select-sm w-1/2 flex-1","onUpdate:modelValue":s[0]||(s[0]=l=>st(J0)?J0.value=l:null)},[(K(!0),ae(qe,null,on(Object.values(N(nu)),l=>(K(),ae("option",{key:l,value:l},re(a.$t(l)),9,mle))),128))],512),[[hi,N(J0)]]),L("span",yle,re(a.$t("hideUnavailable"))+": ",1),yt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=l=>st(e_)?e_.value=l:null)},null,512),[[gr,N(e_)]])],2)],2)):mt("",!0)}}),xv=Fe(rh.RULES),m1=Fe([]),gg=Fe([]),ef=Fe(""),_le=Ve(()=>ef.value===""?m1.value:m1.value.filter(e=>[e.type.toLowerCase(),e.payload.toLowerCase(),e.proxy.toLowerCase()].some(t=>t.includes(ef.value.toLowerCase())))),ble=Ve(()=>ef.value===""?gg.value:gg.value.filter(e=>[e.name.toLowerCase(),e.behavior.toLowerCase(),e.vehicleType.toLowerCase()].some(t=>t.includes(ef.value.toLowerCase())))),mg=async()=>{const{data:e}=await Ioe(),{data:t}=await Roe();m1.value=e.rules,gg.value=Object.values(t.providers)},Sle={role:"tablist",class:"tabs-boxed tabs tabs-sm"},wle=["onClick"],xle={key:0,class:"flex flex-col gap-2"},UV=it({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Fe(!1),n=async()=>{if(!t.value){t.value=!0;try{await Promise.all(gg.value.map(r=>cV(r.name))),await mg(),t.value=!1}catch{await mg(),t.value=!1}}};return(r,i)=>(K(),ae("div",{class:rt(N(En)("flex flex-col gap-2 p-2",`${r.horizontal&&"flex-row"}`))},[N(gg).length?(K(),ae("div",{key:0,class:rt(N(En)("flex flex-col-reverse gap-2",r.horizontal&&"flex-row"))},[L("div",Sle,[(K(!0),ae(qe,null,on(N(rh),o=>(K(),ae("a",{role:"tab",class:rt(["tab",{"tab-active":N(xv)===o}]),key:o,onClick:a=>xv.value=o},re(r.$t(o)),11,wle))),128))]),N(xv)===N(rh).PROVIDER?(K(),ae("div",xle,[L("button",{class:rt(N(En)("btn btn-sm",t.value?"animate-pulse":"")),onClick:n},re(r.$t("updateAllProviders")),3)])):mt("",!0)],2)):mt("",!0),ye(Yb,{class:"w-full max-w-96",modelValue:N(ef),"onUpdate:modelValue":i[0]||(i[0]=o=>st(ef)?ef.value=o:null)},null,8,["modelValue"])],2))}}),Tle=""+new URL("metacubex-BlQkOUXT.jpg",import.meta.url).href,Ele="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",Cle={class:"flex items-center gap-1"},Ale=["src"],tR=it({__name:"BackendVersion",setup(e){return(t,n)=>(K(),ae("div",Cle,[ft(re(t.$t("version"))+": ",1),L("img",{src:N(dl)?N(Ele):N(Tle),class:"h-4 w-4 rounded-sm"},null,8,Ale),ft(" "+re(N(hg)),1)]))}}),Ile={class:"join flex"},Rle=["value"],HV=it({__name:"BackendSwitch",setup(e){const t=Ve(()=>cs.value.map(r=>({label:Eu(r),value:r.uuid}))),n=()=>{ci.value=null,ka.push({name:un.setup})};return(r,i)=>(K(),ae("div",Ile,[yt(L("select",{class:"join-item select select-bordered select-sm w-56","onUpdate:modelValue":i[0]||(i[0]=o=>st(ci)?ci.value=o:null)},[(K(!0),ae(qe,null,on(t.value,o=>(K(),ae("option",{key:o.value,value:o.value},re(o.label),9,Rle))),128))],512),[[hi,N(ci)]]),L("button",{class:"btn join-item btn-sm",onClick:n},[ye(N(X4),{class:"h-4 w-4"})])]))}}),Ple={class:"grid w-full grid-cols-2 gap-1 rounded-lg"},GV=it({__name:"StatisticsInfo",setup(e){return(t,n)=>(K(),ae("div",Ple,[L("div",null,re(t.$t("connections"))+": "+re(N(Qo).length),1),L("div",null,re(t.$t("memoryUsage"))+": "+re(N(Tn)(N(Nb),{binary:!0})),1),L("div",null,re(t.$t("download"))+": "+re(N(Tn)(N(pg))),1),L("div",null,re(t.$t("dlSpeed"))+": "+re(N(Tn)(N(kb)))+"/s",1),L("div",null,re(t.$t("upload"))+": "+re(N(Tn)(N(vg))),1),L("div",null,re(t.$t("ulSpeed"))+": "+re(N(Tn)(N(Fb)))+"/s",1)]))}}),Ole={class:"flex flex-col gap-2 p-2 text-sm"},Dle={class:"flex"},Mle=it({__name:"CommonCtrl",setup(e){return(t,n)=>(K(),ae("div",Ole,[ye(GV),ye(tR),L("div",Dle,[L("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>gu.value=!0)},[ye(N(H4),{class:"h-5 w-5"})]),n[1]||(n[1]=L("div",{class:"flex-1"},null,-1)),ye(HV)])]))}});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -114,20 +114,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 RC=function(e,t){return RC=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])},RC(e,t)};function ot(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");RC(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var eR=12,Dle="sans-serif",pf=eR+"px "+Dle,Mle=20,Lle=100,Nle="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function kle(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"?Dt.worker=!0:!Dt.hasGlobalWindow||"Deno"in window?(Dt.node=!0,Dt.svgSupported=!0):Jle(navigator.userAgent,Dt);function Jle(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 Qle=".",ec="___EC__COMPONENT__CONTAINER___",XV="___EC__EXTENDED_CLASS___";function ns(e){var t={main:"",sub:""};if(e){var n=e.split(Qle);t.main=n[0]||"",t.sub=n[1]||""}return t}function eue(e){hl(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function tue(e){return!!(e&&e[XV])}function oR(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return nue(r)?i=function(o){ot(a,o);function a(){return o.apply(this,arguments)||this}return a}(r):(i=function(){(n.$constructor||r).apply(this,arguments)},Hle(i,this)),Ke(i.prototype,n),i[XV]=!0,i.extend=this.extend,i.superCall=oue,i.superApply=aue,i.superClass=r,i}}function nue(e){return Vt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function KV(e,t){e.extend=t.extend}var rue=Math.round(Math.random()*10);function iue(e){var t=["__\0is_clz",rue++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function oue(e,t){for(var n=[],r=2;r=0||o&&In(o,l)<0)){var u=r.getShallow(l,t);u!=null&&(a[e[s][0]]=u)}}return a}}var sue=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],lue=yg(sue),uue=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return lue(this,t,n)},e}(),ZV=function(){function e(t){this.value=t}return e}(),cue=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new ZV(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}(),tm=function(){function e(t){this._list=new cue,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 ZV(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}(),DC=new tm(50);function fue(e){if(typeof e=="string"){var t=DC.get(e);return t&&t.image}else return e}function qV(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=DC.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!Jb(t)&&o.pending.push(a)):(t=Eh.loadImage(e,eN,eN),t.__zrImageSrc=e,DC.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function eN(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tv&&(v=w,mv&&(v=S,_=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}tc.x=rc.x=n.x,tc.y=ic.y=n.y,nc.x=ic.x=n.x+n.width,nc.y=rc.y=n.y+n.height,tc.transform(r),ic.transform(r),nc.transform(r),rc.transform(r),t.x=Ny(tc.x,nc.x,rc.x,ic.x),t.y=Ny(tc.y,nc.y,rc.y,ic.y);var l=ky(tc.x,nc.x,rc.x,ic.x),u=ky(tc.y,nc.y,rc.y,ic.y);t.width=l-t.x,t.height=u-t.y},e}(),tN={};function Eo(e,t){t=t||pf;var n=tN[t];n||(n=tN[t]=new tm(500));var r=n.get(e);return r==null&&(r=Eh.measureText(e,t).width,n.put(e,r)),r}function nN(e,t,n,r){var i=Eo(e,t),o=cR(t),a=Wp(0,i,n),s=_d(0,o,r),l=new bn(a,s,i,o);return l}function uR(e,t,n,r){var i=((e||"")+"").split(` -`),o=i.length;if(o===1)return nN(i[0],t,n,r);for(var a=new bn(0,0,0,0),s=0;s=0?parseFloat(e)/100*t:parseFloat(e):e}function JV(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+=gf(r[0],n.width),u+=gf(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 Hx=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function pue(e,t,n,r,i,o){if(!n){e.text="",e.isTruncated=!1;return}var a=(t+"").split(` -`);o=QV(n,r,i,o);for(var s=!1,l={},u=0,c=a.length;u=a;l++)s-=a;var u=Eo(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 eU(e,t,n){var r=n.containerWidth,i=n.font,o=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var a=Eo(t,i);if(a<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(a<=o||s>=n.maxIterations){t+=n.ellipsis;break}var l=s===0?vue(t,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(t.length*o/a):0;t=t.substr(0,l),a=Eo(t,i)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function vue(e,t,n,r){for(var i=0,o=0,a=e.length;ov&&u){var m=Math.floor(v/s);c=c||d.length>m,d=d.slice(0,m)}if(e&&o&&f!=null)for(var y=QV(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_={},b=0;bs&&Gx(n,e.substring(s,u),t,a),Gx(n,l[2],t,a,l[1]),s=Hx.lastIndex}si){var $=n.lines.length;T>0?(w.tokens=w.tokens.slice(0,T),_(w,E,S),n.lines=n.lines.slice(0,b+1)):n.lines=n.lines.slice(0,b),n.isTruncated=n.isTruncated||n.lines.length<$;break e}var F=P.width,z=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")A.percentWidth=F,c.push(A),A.contentWidth=Eo(A.text,O);else{if(z){var B=P.backgroundColor,Y=B&&B.image;Y&&(Y=fue(Y),Jb(Y)&&(A.width=Math.max(A.width,Y.width*M/Y.height)))}var j=v&&r!=null?r-E:null;j!=null&&j0&&v+r.accumWidth>r.width&&(c=t.split(` -`),u=!0),r.accumWidth=v}else{var m=tU(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+h,f=m.linesWidths,c=m.lines}}else c=t.split(` -`);for(var y=0;y=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Sue=Ch(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function wue(e){return bue(e)?!!Sue[e]:!0}function tU(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=0;fn:i+c+h>n){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=h)):v?(o.push(l),a.push(u),l=d,u=h):(o.push(d),a.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}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 Ah(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function xue(e){return[e[0],e[1]]}function iN(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Tue(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Eue(e){return Math.sqrt(Cue(e))}function Cue(e){return e[0]*e[0]+e[1]*e[1]}function zx(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Aue(e,t){var n=Eue(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function LC(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Iue=LC;function Rue(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Hd=Rue;function ta(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 Cd(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ad(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var oN=aR,aN=5e-5;function oc(e){return e>aN||e<-aN}var ac=[],Kf=[],Wx=Vd(),jx=Math.abs,fR=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 oc(this.rotation)||oc(this.x)||oc(this.y)||oc(this.scaleX-1)||oc(this.scaleY-1)||oc(this.skewX)||oc(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(oN(r),this.invTransform=null);return}r=r||Vd(),n?this.getLocalTransform(r):oN(r),t&&(n?Ud(r,t,r):due(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(ac);var r=ac[0]<0?-1:1,i=ac[1]<0?-1:1,o=((ac[0]-r)*n+r)/ac[0]||0,a=((ac[1]-i)*n+i)/ac[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||Vd(),lR(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||Vd(),Ud(Kf,t.invTransform,n),n=Kf);var r=this.originX,i=this.originY;(r||i)&&(Wx[4]=r,Wx[5]=i,Ud(Kf,n,Wx),Kf[4]-=r,Kf[5]-=i,n=Kf),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&&ta(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&ta(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&jx(t[0]-1)>1e-10&&jx(t[3]-1)>1e-10?Math.sqrt(jx(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Pue(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,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var v=r+s,m=i+l;n[4]=-v*o-d*m*a,n[5]=-m*a-h*v*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=h*o,n[2]=d*a,u&&sR(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}(),_g=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Pue(e,t){for(var n=0;n<_g.length;n++){var r=_g[n];e[r]=t[r]}}var Tv={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Tv.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Tv.bounceIn(e*2)*.5:Tv.bounceOut(e*2-1)*.5+.5}},Fy=Math.pow,mu=Math.sqrt,m1=1e-8,nU=1e-4,sN=mu(3),$y=1/3,Qa=Ah(),Xo=Ah(),Gd=Ah();function uu(e){return e>-m1&&em1||e<-m1}function Hr(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 lN(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function y1(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,d=l*l-3*s*u,h=0;if(uu(c)&&uu(f))if(uu(s))o[0]=0;else{var v=-l/s;v>=0&&v<=1&&(o[h++]=v)}else{var m=f*f-4*c*d;if(uu(m)){var y=f/c,v=-s/a+y,_=-y/2;v>=0&&v<=1&&(o[h++]=v),_>=0&&_<=1&&(o[h++]=_)}else if(m>0){var b=mu(m),w=c*s+1.5*a*(-f+b),S=c*s+1.5*a*(-f-b);w<0?w=-Fy(-w,$y):w=Fy(w,$y),S<0?S=-Fy(-S,$y):S=Fy(S,$y);var v=(-s-(w+S))/(3*a);v>=0&&v<=1&&(o[h++]=v)}else{var E=(2*c*s-3*a*f)/(2*mu(c*c*c)),T=Math.acos(E)/3,A=mu(c),P=Math.cos(T),v=(-s-2*A*P)/(3*a),_=(-s+A*(P+sN*Math.sin(T)))/(3*a),I=(-s+A*(P-sN*Math.sin(T)))/(3*a);v>=0&&v<=1&&(o[h++]=v),_>=0&&_<=1&&(o[h++]=_),I>=0&&I<=1&&(o[h++]=I)}}return h}function iU(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(uu(a)){if(rU(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(uu(c))i[0]=-o/(2*a);else if(c>0){var f=mu(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function _1(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 Oue(e,t,n,r,i,o,a,s,l,u,c){var f,d=.005,h=1/0,v,m,y,_;Qa[0]=l,Qa[1]=u;for(var b=0;b<1;b+=.05)Xo[0]=Hr(e,n,i,a,b),Xo[1]=Hr(t,r,o,s,b),y=Hd(Qa,Xo),y=0&&y=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(uu(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=mu(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function oU(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function b1(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 Lue(e,t,n,r,i,o,a,s,l){var u,c=.005,f=1/0;Qa[0]=a,Qa[1]=s;for(var d=0;d<1;d+=.05){Xo[0]=ji(e,n,i,d),Xo[1]=ji(t,r,o,d);var h=Hd(Qa,Xo);h=0&&h=1?1:y1(0,r,o,1,l,s)&&Hr(0,i,a,1,s[0])}}}var Fue=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||Qi,this.ondestroy=t.ondestroy||Qi,this.onrestart=t.onrestart||Qi,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=Vt(t)?t:Tv[t]||aU(t)},e}(),cN={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 yu(e){return e=Math.round(e),e<0?0:e>255?255:e}function NC(e){return e<0?0:e>1?1:e}function Yx(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?yu(parseFloat(t)/100*255):yu(parseInt(t,10))}function Ev(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?NC(parseFloat(t)/100):NC(parseFloat(t))}function Xx(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 By(e,t,n){return e+(t-e)*n}function Go(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function kC(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var sU=new tm(20),Vy=null;function Zf(e,t){Vy&&kC(Vy,t),Vy=sU.put(e,Vy||t.slice())}function tl(e,t){if(e){t=t||[];var n=sU.get(e);if(n)return kC(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in cN)return kC(t,cN[r]),Zf(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)){Go(t,0,0,0,1);return}return Go(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),Zf(e,t),t}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){Go(t,0,0,0,1);return}return Go(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),Zf(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?Go(t,+u[0],+u[1],+u[2],1):Go(t,0,0,0,1);c=Ev(u.pop());case"rgb":if(u.length>=3)return Go(t,Yx(u[0]),Yx(u[1]),Yx(u[2]),u.length===3?c:Ev(u[3])),Zf(e,t),t;Go(t,0,0,0,1);return;case"hsla":if(u.length!==4){Go(t,0,0,0,1);return}return u[3]=Ev(u[3]),fN(u,t),Zf(e,t),t;case"hsl":if(u.length!==3){Go(t,0,0,0,1);return}return fN(u,t),Zf(e,t),t;default:return}}Go(t,0,0,0,1)}}function fN(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Ev(e[1]),i=Ev(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return t=t||[],Go(t,yu(Xx(a,o,n+1/3)*255),yu(Xx(a,o,n)*255),yu(Xx(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function dN(e,t){var n=tl(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 Qb(n,n.length===4?"rgba":"rgb")}}function $ue(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=tl(t[i]),s=tl(t[o]),l=r-i,u=Qb([yu(By(a[0],s[0],l)),yu(By(a[1],s[1],l)),yu(By(a[2],s[2],l)),NC(By(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function Qb(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 S1(e,t){var n=tl(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var hN=new tm(100);function pN(e){if(dt(e)){var t=hN.get(e);return t||(t=dN(e,-.1),hN.put(e,t)),t}else if(Kb(e)){var n=Ke({},e);return n.colorStops=Rt(e.colorStops,function(r){return{offset:r.offset,color:dN(r.color,-.1)}}),n}return e}function Bue(e){return e.type==="linear"}function Vue(e){return e.type==="radial"}(function(){return Dt.hasGlobalWindow&&Vt(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 FC=Array.prototype.slice;function Hs(e,t,n){return(t-e)*n+e}function Kx(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=gN,l=n;if(ro(n)){var u=zue(n);s=u,(u===1&&!Zn(n[0])||u===2&&!Zn(n[0][0]))&&(a=!0)}else if(Zn(n)&&!g1(n))s=Hy;else if(dt(n))if(!isNaN(+n))s=Hy;else{var c=tl(n);c&&(l=c,s=jp)}else if(Kb(n)){var f=Ke({},l);f.colorStops=Rt(n.colorStops,function(h){return{offset:h.offset,color:tl(h.color)}}),Bue(n)?s=$C:Vue(n)&&(s=BC),l=f}o===0?this.valType=s:(s!==this.valType||s===gN)&&(a=!0),this.discrete=this.discrete||a;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=Vt(r)?r:Tv[r]||aU(r)),i.push(d),d},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(m,y){return m.time-y.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=Gy(i),u=mN(i),c=0;c=0&&!(a[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;cn);c++);c=d(c-1,s-2)}v=a[c+1],h=a[c]}if(h&&v){this._lastFr=c,this._lastFrP=n;var y=v.percent-h.percent,_=y===0?1:d((n-h.percent)/y,1);v.easingFunc&&(_=v.easingFunc(_));var b=r?this._additiveValue:u?fp:t[l];if((Gy(o)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=_<1?h.rawValue:v.rawValue;else if(Gy(o))o===__?Kx(b,h[i],v[i],_):Uue(b,h[i],v[i],_);else if(mN(o)){var w=h[i],S=v[i],E=o===$C;t[l]={type:E?"linear":"radial",x:Hs(w.x,S.x,_),y:Hs(w.y,S.y,_),colorStops:Rt(w.colorStops,function(A,P){var I=S.colorStops[P];return{offset:Hs(A.offset,I.offset,_),color:y_(Kx([],A.color,I.color,_))}}),global:S.global},E?(t[l].x2=Hs(w.x2,S.x2,_),t[l].y2=Hs(w.y2,S.y2,_)):t[l].r=Hs(w.r,S.r,_)}else if(u)Kx(b,h[i],v[i],_),r||(t[l]=y_(b));else{var T=Hs(h[i],v[i],_);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===Hy?t[r]=t[r]+i:n===jp?(tl(t[r],fp),Uy(fp,fp,i,1),t[r]=y_(fp)):n===__?Uy(t[r],t[r],i,1):n===lU&&vN(t[r],t[r],i,1)},e}(),dR=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){rR("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,Kn(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var o=this._tracks,a=0;a0&&l.addKeyframe(0,m_(u),i),this._trackKeys.push(s)}l.addKeyframe(t,m_(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}(),ms=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,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,b=void 0,w=void 0;m&&this.canBeInsideText()?(_=r.insideFill,b=r.insideStroke,(_==null||_==="auto")&&(_=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(_),w=!0)):(_=r.outsideFill,b=r.outsideStroke,(_==null||_==="auto")&&(_=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(_),w=!0)),_=_||"#000",(_!==y.fill||b!==y.stroke||w!==y.autoStroke||a!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=_,y.stroke=b,y.autoStroke=w,y.align=a,y.verticalAlign=s,n.setDefaultTextStyle(y)),n.__dirty|=bo,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()?HC:UC},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&tl(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,Qb(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||{},Ke(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(Et(t))for(var r=t,i=Kn(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(Zx,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===Zx,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(In(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){rR("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,d=this._textGuide;return f&&f.useState(t,n,r,c),d&&d.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&=~bo),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,v);var m=this._textContent,y=this._textGuide;m&&m.useStates(t,n,d),y&&y.useStates(t,n,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bo)}},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=In(i,t),a=In(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(v,m){n.during(m)});for(var d=0;d0||i.force&&!a.length){var P=void 0,I=void 0,R=void 0;if(s){I={},d&&(P={});for(var S=0;S1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(zy[0]=rT(i)*n+e,zy[1]=nT(i)*r+t,Wy[0]=rT(o)*n+e,Wy[1]=nT(o)*r+t,u(s,zy,Wy),c(l,zy,Wy),i=i%sc,i<0&&(i=i+sc),o=o%sc,o<0&&(o=o+sc),i>o&&!a?o+=sc:ii&&(jy[0]=rT(h)*n+e,jy[1]=nT(h)*r+t,u(s,jy,s),c(l,jy,l))}var mn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},lc=[],uc=[],Wa=[],Nl=[],ja=[],Ya=[],iT=Math.min,oT=Math.max,cc=Math.cos,fc=Math.sin,Ms=Math.abs,zC=Math.PI,jl=zC*2,aT=typeof Float32Array<"u",dp=[];function sT(e){var t=Math.round(e/zC*1e8)/1e8;return t%2*zC}function ice(e,t){var n=sT(e[0]);n<0&&(n+=jl);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=jl?i=n+jl:t&&n-i>=jl?i=n-jl:!t&&n>i?i=n+(jl-sT(n-i)):t&&n0&&(this._ux=Ms(r/w1/t)||0,this._uy=Ms(r/w1/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(mn.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=Ms(t-this._xi),i=Ms(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(mn.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(mn.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(mn.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(),dp[0]=i,dp[1]=o,ice(dp,a),i=dp[0],o=dp[1];var s=o-i;return this.addData(mn.A,t,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,r,i,o,a),this._xi=cc(o)*r+t,this._yi=fc(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(mn.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(mn.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)&&aT&&(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(){Wa[0]=Wa[1]=ja[0]=ja[1]=Number.MAX_VALUE,Nl[0]=Nl[1]=Ya[0]=Ya[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,o=0,a;for(a=0;ar||Ms(w)>i||d===n-1)&&(m=Math.sqrt(b*b+w*w),o=y,a=_);break}case mn.C:{var S=t[d++],E=t[d++],y=t[d++],_=t[d++],T=t[d++],A=t[d++];m=Due(o,a,S,E,y,_,T,A,10),o=T,a=A;break}case mn.Q:{var S=t[d++],E=t[d++],y=t[d++],_=t[d++];m=Nue(o,a,S,E,y,_,10),o=y,a=_;break}case mn.A:var P=t[d++],I=t[d++],R=t[d++],O=t[d++],M=t[d++],$=t[d++],F=$+M;d+=1,v&&(s=cc(M)*R+P,l=fc(M)*O+I),m=oT(R,O)*iT(jl,Math.abs($)),o=cc(F)*R+P,a=fc(F)*O+I;break;case mn.R:{s=o=t[d++],l=a=t[d++];var z=t[d++],B=t[d++];m=z*2+B*2;break}case mn.Z:{var b=s-o,w=l-a;m=Math.sqrt(b*b+w*w),o=s,a=l;break}}m>=0&&(u[f++]=m,c+=m)}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,d,h=n<1,v,m,y=0,_=0,b,w=0,S,E;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,m=this._pathLen,b=n*m,!b)))e:for(var T=0;T0&&(t.lineTo(S,E),w=0),A){case mn.M:s=u=r[T++],l=c=r[T++],t.moveTo(u,c);break;case mn.L:{f=r[T++],d=r[T++];var I=Ms(f-u),R=Ms(d-c);if(I>i||R>o){if(h){var O=v[_++];if(y+O>b){var M=(b-y)/O;t.lineTo(u*(1-M)+f*M,c*(1-M)+d*M);break e}y+=O}t.lineTo(f,d),u=f,c=d,w=0}else{var $=I*I+R*R;$>w&&(S=f,E=d,w=$)}break}case mn.C:{var F=r[T++],z=r[T++],B=r[T++],Y=r[T++],j=r[T++],ae=r[T++];if(h){var O=v[_++];if(y+O>b){var M=(b-y)/O;_1(u,F,B,j,M,lc),_1(c,z,Y,ae,M,uc),t.bezierCurveTo(lc[1],uc[1],lc[2],uc[2],lc[3],uc[3]);break e}y+=O}t.bezierCurveTo(F,z,B,Y,j,ae),u=j,c=ae;break}case mn.Q:{var F=r[T++],z=r[T++],B=r[T++],Y=r[T++];if(h){var O=v[_++];if(y+O>b){var M=(b-y)/O;b1(u,F,B,M,lc),b1(c,z,Y,M,uc),t.quadraticCurveTo(lc[1],uc[1],lc[2],uc[2]);break e}y+=O}t.quadraticCurveTo(F,z,B,Y),u=B,c=Y;break}case mn.A:var ge=r[T++],ve=r[T++],De=r[T++],Ne=r[T++],ze=r[T++],Me=r[T++],je=r[T++],ce=!r[T++],Ce=De>Ne?De:Ne,Se=Ms(De-Ne)>.001,Te=ze+Me,Oe=!1;if(h){var O=v[_++];y+O>b&&(Te=ze+Me*(b-y)/O,Oe=!0),y+=O}if(Se&&t.ellipse?t.ellipse(ge,ve,De,Ne,je,ze,Te,ce):t.arc(ge,ve,Ce,ze,Te,ce),Oe)break e;P&&(s=cc(ze)*De+ge,l=fc(ze)*Ne+ve),u=cc(Te)*De+ge,c=fc(Te)*Ne+ve;break;case mn.R:s=u=r[T],l=c=r[T+1],f=r[T++],d=r[T++];var $e=r[T++],H=r[T++];if(h){var O=v[_++];if(y+O>b){var G=b-y;t.moveTo(f,d),t.lineTo(f+iT(G,$e),d),G-=$e,G>0&&t.lineTo(f+$e,d+iT(G,H)),G-=H,G>0&&t.lineTo(f+oT($e-G,0),d+H),G-=$e,G>0&&t.lineTo(f,d+oT(H-G,0));break e}y+=O}t.rect(f,d,$e,H);break;case mn.Z:if(h){var O=v[_++];if(y+O>b){var M=(b-y)/O;t.lineTo(u*(1-M)+s*M,c*(1-M)+l*M);break e}y+=O}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=mn,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Jf(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+=hp);var d=Math.atan2(l,s);return d<0&&(d+=hp),d>=r&&d<=i||d+hp>=r&&d+hp<=i}function dc(e,t,n,r,i,o){if(o>t&&o>r||oi?s:0}var kl=mf.CMD,hc=Math.PI*2,lce=1e-4;function uce(e,t){return Math.abs(e-t)t&&u>r&&u>o&&u>s||u1&&cce(),h=Hr(t,r,o,s,jo[0]),d>1&&(v=Hr(t,r,o,s,jo[1]))),d===2?yt&&s>r&&s>o||s=0&&u<=1){for(var c=0,f=ji(t,r,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);wi[0]=-l,wi[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=hc-1e-4){r=0,i=hc;var c=o?1:-1;return a>=wi[0]+e&&a<=wi[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=hc,i+=hc);for(var d=0,h=0;h<2;h++){var v=wi[h];if(v+e>a){var m=Math.atan2(s,v),c=o?1:-1;m<0&&(m=hc+m),(m>=r&&m<=i||m+hc>=r&&m+hc<=i)&&(m>Math.PI/2&&m1&&(n||(s+=dc(l,u,c,f,r,i))),y&&(l=o[v],u=o[v+1],c=l,f=u),m){case kl.M:c=o[v++],f=o[v++],l=c,u=f;break;case kl.L:if(n){if(Jf(l,u,o[v],o[v+1],t,r,i))return!0}else s+=dc(l,u,o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case kl.C:if(n){if(oce(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=fce(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case kl.Q:if(n){if(ace(l,u,o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=dce(l,u,o[v++],o[v++],o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case kl.A:var _=o[v++],b=o[v++],w=o[v++],S=o[v++],E=o[v++],T=o[v++];v+=1;var A=!!(1-o[v++]);d=Math.cos(E)*w+_,h=Math.sin(E)*S+b,y?(c=d,f=h):s+=dc(l,u,d,h,r,i);var P=(r-_)*S/w+_;if(n){if(sce(_,b,S,E,E+T,A,t,P,i))return!0}else s+=hce(_,b,S,E,E+T,A,P,i);l=Math.cos(E+T)*w+_,u=Math.sin(E+T)*S+b;break;case kl.R:c=l=o[v++],f=u=o[v++];var I=o[v++],R=o[v++];if(d=c+I,h=f+R,n){if(Jf(c,f,d,f,t,r,i)||Jf(d,f,d,h,t,r,i)||Jf(d,h,c,h,t,r,i)||Jf(c,h,c,f,t,r,i))return!0}else s+=dc(d,f,d,h,r,i),s+=dc(c,h,c,f,r,i);break;case kl.Z:if(n){if(Jf(l,u,c,f,t,r,i))return!0}else s+=dc(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!uce(u,f)&&(s+=dc(l,u,c,f,r,i)||0),s!==0}function pce(e,t,n){return fU(e,0,!1,t,n)}function vce(e,t,n,r){return fU(e,t,!0,n,r)}var dU=Cn({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},tf),gce={style:Cn({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},tS.style)},lT=_g.concat(["invisible","culling","z","z2","zlevel","parent"]),Ln=function(e){ot(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?UC:r>.2?jue:HC}else if(n)return HC}return UC},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(dt(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=S1(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&bd)&&(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)),vce(s,l/u,n,r)))return!0}if(this.hasFill())return pce(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=bd,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:Ke(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&bd)},t.prototype.createStyle=function(n){return Zb(dU,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Ke({},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=Ke({},i.shape),Ke(u,r.shape)):(u=Ke({},o?this.shape:i.shape),Ke(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=Ke({},this.shape);for(var c={},f=Kn(u),d=0;d0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return Zb(mce,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=uR(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}(nm);x1.prototype.type="tspan";var yce=Cn({x:0,y:0},tf),_ce={style:Cn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},tS.style)};function bce(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Vu=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return Zb(yce,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=bce(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 _ce},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new bn(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(nm);Vu.prototype.type="image";function Sce(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 Id=Math.round;function hU(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&&(Id(r*2)===Id(i*2)&&(e.x1=e.x2=$c(r,s,!0)),Id(o*2)===Id(a*2)&&(e.y1=e.y2=$c(o,s,!0))),e}}function pU(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=$c(r,s,!0),e.y=$c(i,s,!0),e.width=Math.max($c(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max($c(i+a,s,!1)-e.y,a===0?0:1)),e}}function $c(e,t,n){if(!t)return e;var r=Id(e*2);return(r+Id(t))%2===0?r/2:(r+(n?1:-1))/2}var wce=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),xce={},zr=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new wce},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=pU(xce,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?Sce(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ln);zr.prototype.type="rect";var xN={fill:"#000"},TN=2,Tce={style:Cn({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},tS.style)},oo=function(e){ot(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=xN,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,M=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),$=a.calculatedLineHeight,F=0;F=0&&(F=T[$],F.align==="right");)this._placeToken(F,n,P,_,M,"right",w),I-=F.width,M-=F.width,$--;for(O+=(o-(O-y)-(b-M)-I)/2;R<=$;)F=T[R],this._placeToken(F,n,P,_,O+F.width/2,"center",w),O+=F.width,R++;_+=P}},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 d=!n.isLineHolder&&uT(u);d&&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 h=!!u.backgroundColor,v=n.textPadding;v&&(a=PN(a,s,v),f-=n.height/2-v[0]-n.innerHeight/2);var m=this._getOrCreateChild(x1),y=m.createStyle();m.useStyle(y);var _=this._defaultStyle,b=!1,w=0,S=RN("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,_.fill)),E=IN("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!_.autoStroke||b)?(w=TN,_.stroke):null),T=u.textShadowBlur>0||r.textShadowBlur>0;y.text=n.text,y.x=a,y.y=f,T&&(y.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,y.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=n.font||pf,y.opacity=g_(u.opacity,r.opacity,1),CN(y,u),E&&(y.lineWidth=g_(u.lineWidth,r.lineWidth,w),y.lineDash=nn(u.lineDash,r.lineDash),y.lineDashOffset=r.lineDashOffset||0,y.stroke=E),S&&(y.fill=S);var A=n.contentWidth,P=n.contentHeight;m.setBoundingRect(new bn(Wp(y.x,A,y.textAlign),_d(y.y,P,y.textBaseline),A,P))},t.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,v=this,m,y;if(d||n.lineHeight||u&&c){m=this._getOrCreateChild(zr),m.useStyle(m.createStyle()),m.style.fill=null;var _=m.shape;_.x=i,_.y=o,_.width=a,_.height=s,_.r=h,m.dirtyShape()}if(d){var b=m.style;b.fill=l||null,b.fillOpacity=nn(n.fillOpacity,1)}else if(f){y=this._getOrCreateChild(Vu),y.onload=function(){v.dirtyStyle()};var w=y.style;w.image=l.image,w.x=i,w.y=o,w.width=a,w.height=s}if(u&&c){var b=m.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=nn(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(m||y).style;S.shadowBlur=n.shadowBlur||0,S.shadowColor=n.shadowColor||"transparent",S.shadowOffsetX=n.shadowOffsetX||0,S.shadowOffsetY=n.shadowOffsetY||0,S.opacity=g_(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return Ice(n)&&(r=[n.fontStyle,n.fontWeight,Ace(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&ts(r)||n.textFont||n.font},t}(nm),Ece={left:!0,right:1,center:1},Cce={top:1,bottom:1,middle:1},EN=["fontStyle","fontWeight","fontSize","fontFamily"];function Ace(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?eR+"px":e+"px"}function CN(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 Ti(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 dt(e)?Pce(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function _r(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),vU),e=(+e).toFixed(t),n?e:+e}function qs(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 Oce(e)}function Oce(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 Dce(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 Mce(e,t){var n=Math.max(qs(e),qs(t)),r=e+t;return n>vU?r:_r(r,n)}function gU(e){var t=Math.PI*2;return(e%t+t)%t}function T1(e){return e>-DN&&e=10&&t++,t}function mU(e,t){var n=hR(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 E1(e){var t=parseFloat(e);return t==e&&(t!==0||!dt(e)||e.indexOf("x")<=0)?t:NaN}function kce(e){return!isNaN(E1(e))}function yU(){return Math.round(Math.random()*9)}function _U(e,t){return t===0?e:_U(t,e%t)}function LN(e,t){return e==null?t:t==null?e:e*t/_U(e,t)}function Yi(e){throw new Error(e)}function NN(e,t,n){return(t-e)*n+e}var bU="series\0",Fce="\0_ec_\0";function Ai(e){return e instanceof Array?e:e==null?[]:[e]}function kN(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 Ln){var a=xU(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Qf(s)||Qf(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=Ke({},r),u=Ke({},u),u.fill=s):!Qf(u.fill)&&Qf(s)?(o=!0,r=Ke({},r),u=Ke({},u),u.fill=pN(s)):!Qf(u.stroke)&&Qf(l)&&(o||(r=Ke({},r),u=Ke({},u)),u.stroke=pN(l)),r.style=u}}if(r&&r.z2==null){o||(r=Ke({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??Qce)}return r}function ofe(e,t,n){if(n&&n.z2==null){n=Ke({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??efe)}return n}function afe(e,t,n){var r=In(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:rfe(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=Ke({},n),a=Ke({opacity:r?i:o.opacity*.1},a),n.style=a),n}function fT(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return ife(this,e,t,n);if(e==="blur")return afe(this,e,n);if(e==="select")return ofe(this,e,n)}return n}function sfe(e){e.stateProxy=fT;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=fT),n&&(n.stateProxy=fT)}function GN(e,t){!PU(e,t)&&!e.__highByOuter&&ml(e,TU)}function zN(e,t){!PU(e,t)&&!e.__highByOuter&&ml(e,EU)}function C1(e,t){e.__highByOuter|=1<<(t||0),ml(e,TU)}function A1(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ml(e,EU)}function lfe(e){ml(e,yR)}function AU(e){ml(e,CU)}function IU(e){ml(e,tfe)}function RU(e){ml(e,nfe)}function PU(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function OU(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=gR(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){CU(u)}),s&&n.push(o)),a.isBlured=!1}),Q(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function WC(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 YC(e,t,n){DU(e,!0),ml(e,sfe),vfe(e,t,n)}function pfe(e){DU(e,!1)}function XC(e,t,n,r){r?pfe(e):YC(e,t,n)}function vfe(e,t,n){var r=Mn(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var jN=["emphasis","blur","select"],gfe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function YN(e,t,n,r){n=n||"itemStyle";for(var i=0;i1&&(a*=dT(v),s*=dT(v));var m=(i===o?-1:1)*dT((a*a*(s*s)-a*a*(h*h)-s*s*(d*d))/(a*a*(h*h)+s*s*(d*d)))||0,y=m*a*h/s,_=m*-s*d/a,b=(e+n)/2+Ky(f)*y-Xy(f)*_,w=(t+r)/2+Xy(f)*y+Ky(f)*_,S=qN([1,0],[(d-y)/a,(h-_)/s]),E=[(d-y)/a,(h-_)/s],T=[(-1*d-y)/a,(-1*h-_)/s],A=qN(E,T);if(qC(E,T)<=-1&&(A=pp),qC(E,T)>=1&&(A=0),A<0){var P=Math.round(A/pp*1e6)/1e6;A=pp*2+P%2*pp}c.addData(u,b,w,a,s,S,A,f,o)}var wfe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,xfe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Tfe(e){var t=new mf;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=mf.CMD,l=e.match(wfe);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=In(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=In(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;iF*F+z*z&&(P=R,I=O),{cx:P,cy:I,x0:-c,y0:-f,x1:P*(i/E-1),y1:I*(i/E-1)}}function Dfe(e){var t;if(st(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 Mfe(e,t){var n,r=Xp(t.r,0),i=Xp(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,d=!!t.clockwise,h=QN(u-l),v=h>hT&&h%hT;if(v>ba&&(h=v),!(r>ba))e.moveTo(c,f);else if(h>hT-ba)e.moveTo(c+r*td(l),f+r*pc(l)),e.arc(c,f,r,l,u,!d),i>ba&&(e.moveTo(c+i*td(u),f+i*pc(u)),e.arc(c,f,i,u,l,d));else{var m=void 0,y=void 0,_=void 0,b=void 0,w=void 0,S=void 0,E=void 0,T=void 0,A=void 0,P=void 0,I=void 0,R=void 0,O=void 0,M=void 0,$=void 0,F=void 0,z=r*td(l),B=r*pc(l),Y=i*td(u),j=i*pc(u),ae=h>ba;if(ae){var ge=t.cornerRadius;ge&&(n=Dfe(ge),m=n[0],y=n[1],_=n[2],b=n[3]);var ve=QN(r-i)/2;if(w=Xa(ve,_),S=Xa(ve,b),E=Xa(ve,m),T=Xa(ve,y),I=A=Xp(w,S),R=P=Xp(E,T),(A>ba||P>ba)&&(O=r*td(u),M=r*pc(u),$=i*td(l),F=i*pc(l),hba){var Se=Xa(_,I),Te=Xa(b,I),Oe=Zy($,F,z,B,r,Se,d),$e=Zy(O,M,Y,j,r,Te,d);e.moveTo(c+Oe.cx+Oe.x0,f+Oe.cy+Oe.y0),I0&&e.arc(c+Oe.cx,f+Oe.cy,Se,Kr(Oe.y0,Oe.x0),Kr(Oe.y1,Oe.x1),!d),e.arc(c,f,r,Kr(Oe.cy+Oe.y1,Oe.cx+Oe.x1),Kr($e.cy+$e.y1,$e.cx+$e.x1),!d),Te>0&&e.arc(c+$e.cx,f+$e.cy,Te,Kr($e.y1,$e.x1),Kr($e.y0,$e.x0),!d))}else e.moveTo(c+z,f+B),e.arc(c,f,r,l,u,!d);if(!(i>ba)||!ae)e.lineTo(c+Y,f+j);else if(R>ba){var Se=Xa(m,R),Te=Xa(y,R),Oe=Zy(Y,j,O,M,i,-Te,d),$e=Zy(z,B,$,F,i,-Se,d);e.lineTo(c+Oe.cx+Oe.x0,f+Oe.cy+Oe.y0),R0&&e.arc(c+Oe.cx,f+Oe.cy,Te,Kr(Oe.y0,Oe.x0),Kr(Oe.y1,Oe.x1),!d),e.arc(c,f,i,Kr(Oe.cy+Oe.y1,Oe.cx+Oe.x1),Kr($e.cy+$e.y1,$e.cx+$e.x1),d),Se>0&&e.arc(c+$e.cx,f+$e.cy,Se,Kr($e.y1,$e.x1),Kr($e.y0,$e.x0),!d))}else e.lineTo(c+Y,f+j),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Lfe=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}(),aS=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Lfe},t.prototype.buildPath=function(n,r){Mfe(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ln);aS.prototype.type="sector";var Nfe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),SR=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Nfe},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}(Ln);SR.prototype.type="ring";function kfe(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 d=0,h=e.length;d=2){if(r){var o=kfe(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;sgc[1]){if(s=!1,o)return s;var c=Math.abs(gc[0]-vc[1]),f=Math.abs(vc[0]-gc[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};s?t.animateFrom(n,v):t.animateTo(n,v)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function Iu(e,t,n,r,i,o){CR("update",e,t,n,r,i,o)}function om(e,t,n,r,i,o){CR("enter",e,t,n,r,i,o)}function Pv(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 nk(e){return!e.isGroup}function ade(e){return e.shape!=null}function HU(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){nk(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return ade(a)&&(s.shape=Ke({},a.shape)),s}var o=r(e);t.traverse(function(a){if(nk(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Iu(a,l,n,Mn(a).dataIndex)}}})}function sde(e,t){return Rt(e,function(n){var r=n[0];r=P1(r,t.x),r=O1(r,t.x+t.width);var i=n[1];return i=P1(i,t.y),i=O1(i,t.y+t.height),[r,i]})}function lde(e,t){var n=P1(e.x,t.x),r=O1(e.x+e.width,t.x+t.width),i=P1(e.y,t.y),o=O1(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 RR(e,t,n){var r=Ke({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),Cn(i,n),new Vu(r)):AR(e.replace("path://",""),r,n,"center")}function ude(e,t,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var y=pT(h,v,c,f)/d;return!(y<0||y>1)}function pT(e,t,n,r){return e*r-n*t}function cde(e){return e<=1e-6&&e>=-1e-6}function lS(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=dt(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&&Q(Kn(l),function(c){vf(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Mn(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Cn({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function rk(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function PR(e,t){if(e)if(st(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&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h1)for(var s=0;sm&&(m=w)}h[0]=v,h[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};hk=(t={},t[ao+"_"+nl]={pure:!0,appendData:o},t[ao+"_"+Ih]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ys]={pure:!0,appendData:o},t[yl]={pure:!0,appendData:function(a){var s=this._data;Q(a,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[ua]={appendData:o},t[_u]={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}(),fS="undefined",$de=typeof Uint32Array===fS?Array:Uint32Array,Bde=typeof Uint16Array===fS?Array:Uint16Array,oH=typeof Int32Array===fS?Array:Int32Array,mk=typeof Float64Array===fS?Array:Float64Array,aH={float:mk,int:oH,ordinal:Array,number:Array,time:mk},_T;function nd(e){return e>65535?$de:Bde}function rd(){return[1/0,-1/0]}function Vde(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function yk(e,t,n,r,i){var o=aH[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;uy[1]&&(y[1]=m)}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=Rt(a,function(b){return b.property}),c=0;c_[1]&&(_[1]=y)}}!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=v,l=h,u=0),h===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<=d||isNaN(b))&&(l[u++]=m),m++}v=!0}else if(o===2){for(var y=h[i[0]],w=h[i[1]],S=t[i[1]][0],E=t[i[1]][1],_=0;_=f&&b<=d||isNaN(b))&&(T>=S&&T<=E||isNaN(T))&&(l[u++]=m),m++}v=!0}}if(!v)if(o===1)for(var _=0;_=f&&b<=d||isNaN(b))&&(l[u++]=A)}else for(var _=0;_t[R][1])&&(P=!1)}P&&(l[u++]=n.getRawIndex(_))}return u_[1]&&(_[1]=y)}}}},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,d,h=new(nd(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));h[s++]=u;for(var v=1;vc&&(c=f,d=S)}O>0&&Os&&(m=s-c);for(var y=0;yv&&(v=b,h=c+y)}var w=this.getRawIndex(f),S=this.getRawIndex(h);fc-v&&(l=c-v,s.length=l);for(var m=0;mf[1]&&(f[1]=_),d[h++]=b}return o._count=h,o._indices=d,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 x_(n[o],this._dimensions[o])}_T={arrayRows:t,objectRows:function(n,r,i,o){return x_(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return x_(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}}(),e}(),Ude=Ar(),Hde={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},sH=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=cH(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return nn(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=eH(this.source),r=!fH(t),i="",o=[],a=0,s=0;a30}var gp=Et,Fl=Rt,Gde=typeof Int32Array>"u"?Array:Int32Array,zde="e\0\0",_k=-1,Wde=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],jde=["_approximateExtent"],bk,Qy,mp,yp,bT,_p,ST,Yde=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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,i=!1;lH(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===ua;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),st(o)?o=o.slice():gp(o)&&(o=Ke({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,gp(n)?Ke(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){gp(t)?Ke(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?Ke(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;Jce(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){Q(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:Fl(this.dimensions,this._getDimInfo,this),this.hostModel)),bT(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Vt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(iR(arguments)))})},e.internalField=function(){bk=function(t){var n=t._invertedIndicesMap;Q(n,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=n[i]=new Gde(a.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[n]=l}}}(),e}();function Xde(e,t){MR(e)||(e=JU(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Kt(),o=[],a=Zde(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&fH(a),l=r===e.dimensionsDefine,u=l?cH(e):uH(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var f=Kt(c),d=new oH(a),h=0;h0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function Zde(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Q(t,function(o){var a;Et(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function qde(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 wT={},NR=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];Q(wT,function(i,o){var a=i.create(t,n);r=r.concat(a||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){Q(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){wT[t]=n},e.get=function(t){return wT[t]},e}(),Jde=function(){function e(t){this.coordSysDims=[],this.axisMap=Kt(),this.categoryAxisMap=Kt(),this.coordSysName=t}return e}();function Qde(e){var t=e.get("coordinateSystem"),n=new Jde(t),r=ehe[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var ehe={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Ra).models[0],o=e.getReferringComponents("yAxis",Ra).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),id(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),id(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Ra).models[0];t.coordSysDims=["single"],n.set("single",i),id(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Ra).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),id(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),id(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();Q(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),id(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function id(e){return e.get("type")==="category"}function the(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;nhe(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(Q(o,function(b,w){dt(b)&&(o[w]=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,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,m=0;Q(o,function(b){b.coordDim===h&&m++});var y={name:f,coordDim:h,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},_={name:d,coordDim:d,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(d,v),_.storeDimIndex=s.ensureCalculationDimension(f,v)),a.appendCalculationDimension(y),a.appendCalculationDimension(_)):(o.push(y),o.push(_))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function nhe(e){return!lH(e.schema)}function wg(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function rhe(e,t){return wg(e,t)?e.getCalculationInfo("stackResultDimension"):t}function ihe(e,t){var n=e.get("coordinateSystem"),r=NR.get(n),i;return t&&t.coordSysDims&&(i=Rt(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=Nde(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function ohe(e,t,n){var r,i;return n&&Q(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 ahe(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;i=r.getSource(),o=i.sourceFormat===ua;var a=Qde(t),s=ihe(t,a),l=n.useEncodeDefaulter,u=Vt(l)?l:l?Dr(Tde,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=Xde(i,c),d=ohe(f.dimensions,n.createInvertedIndices,a),h=o?null:r.getSharedDataStore(f),v=the(t,{schema:f,store:h}),m=new Yde(f,t);m.setCalculationInfo(v);var y=d!=null&&she(i)?function(_,b,w,S){return S===d?w:this.defaultDimValueGetter(_,b,w,S)}:null;return m.hasItemOption=!1,m.initData(o?i:h,null,y),m}function she(e){if(e.sourceFormat===ua){var t=lhe(e.data||[]);return!st(rm(t))}}function lhe(e){for(var t=0;t=0&&s.push(l)}),s}}function dhe(e,t){return _n(_n({},e,!0),t,!0)}var hhe=Math.log(2);function tA(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 ghe(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,d=c.left,h=c.top;a.push(d,h),l=l&&o&&d===o[f]&&h===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?Sk(s,a):Sk(a,s))}function dH(e){return e.nodeName.toUpperCase()==="CANVAS"}var mhe=/([&<>"'])/g,yhe={"&":"&","<":"<",">":">",'"':""","'":"'"};function Xi(e){return e==null?"":(e+"").replace(mhe,function(t,n){return yhe[n]})}const _he={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:". "}}}},bhe={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 D1="ZH",kR="EN",zd=kR,T_={},FR={},hH=Dt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||zd).toUpperCase();return e.indexOf(D1)>-1?D1:zd}():zd;function pH(e,t){e=e.toUpperCase(),FR[e]=new sr(t),T_[e]=t}function She(e){if(dt(e)){var t=T_[e.toUpperCase()]||{};return e===D1||e===kR?sn(t):_n(sn(t),sn(T_[zd]),!1)}else return _n(sn(e),sn(T_[zd]),!1)}function whe(e){return FR[e]}function xhe(){return FR[zd]}pH(kR,_he);pH(D1,bhe);var $R=1e3,BR=$R*60,Ov=BR*60,Jo=Ov*24,xk=Jo*365,Kp={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}"},e0="{yyyy}-{MM}-{dd}",Tk={year:"{yyyy}",month:"{yyyy}-{MM}",day:e0,hour:e0+" "+Kp.hour,minute:e0+" "+Kp.minute,second:e0+" "+Kp.second,millisecond:Kp.none},TT=["year","month","day","hour","minute","second","millisecond"],vH=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $l(e,t){return e+="","0000".substr(0,t-e.length)+e}function Wd(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 The(e){return e===Wd(e)}function Ehe(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function hS(e,t,n,r){var i=pl(e),o=i[VR(n)](),a=i[jd(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[pS(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[xg(n)](),f=(c-1)%12+1,d=i[vS(n)](),h=i[gS(n)](),v=i[mS(n)](),m=c>=12?"pm":"am",y=m.toUpperCase(),_=r instanceof sr?r:whe(r||hH)||xhe(),b=_.getModel("time"),w=b.get("month"),S=b.get("monthAbbr"),E=b.get("dayOfWeek"),T=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,$l(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,w[a-1]).replace(/{MMM}/g,S[a-1]).replace(/{MM}/g,$l(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,$l(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,E[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,$l(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,$l(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,$l(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,$l(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,$l(v,3)).replace(/{S}/g,v+"")}function Che(e,t,n,r,i){var o=null;if(dt(n))o=n;else if(Vt(n))o=n(e.value,t,{level:e.level});else{var a=Ke({},Kp);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(st(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 hS(new Date(e.value),o,i,r)}function gH(e,t){var n=pl(e),r=n[jd(t)]()+1,i=n[pS(t)](),o=n[xg(t)](),a=n[vS(t)](),s=n[gS(t)](),l=n[mS(t)](),u=l===0,c=u&&s===0,f=c&&a===0,d=f&&o===0,h=d&&i===1,v=h&&r===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Ek(e,t,n){var r=Zn(e)?pl(e):e;switch(t=t||gH(e,n),t){case"year":return r[VR(n)]();case"half-year":return r[jd(n)]()>=6?1:0;case"quarter":return Math.floor((r[jd(n)]()+1)/4);case"month":return r[jd(n)]();case"day":return r[pS(n)]();case"half-day":return r[xg(n)]()/24;case"hour":return r[xg(n)]();case"minute":return r[vS(n)]();case"second":return r[gS(n)]();case"millisecond":return r[mS(n)]()}}function VR(e){return e?"getUTCFullYear":"getFullYear"}function jd(e){return e?"getUTCMonth":"getMonth"}function pS(e){return e?"getUTCDate":"getDate"}function xg(e){return e?"getUTCHours":"getHours"}function vS(e){return e?"getUTCMinutes":"getMinutes"}function gS(e){return e?"getUTCSeconds":"getSeconds"}function mS(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Ahe(e){return e?"setUTCFullYear":"setFullYear"}function mH(e){return e?"setUTCMonth":"setMonth"}function yH(e){return e?"setUTCDate":"setDate"}function _H(e){return e?"setUTCHours":"setHours"}function bH(e){return e?"setUTCMinutes":"setMinutes"}function SH(e){return e?"setUTCSeconds":"setSeconds"}function wH(e){return e?"setUTCMilliseconds":"setMilliseconds"}function xH(e){if(!kce(e))return dt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function TH(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 yS=zV;function rA(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&ts(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?pl(e):e;if(isNaN(+l)){if(s)return"-"}else return hS(l,r,n)}if(t==="ordinal")return PC(e)?i(e):Zn(e)&&o(e)?e+"":"-";var u=E1(e);return o(u)?xH(u):PC(e)?i(e):typeof e=="boolean"?e+"":"-"}var Ck=["a","b","c","d","e","f","g"],ET=function(e,t){return"{"+e+(t??"")+"}"};function EH(e,t,n){st(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 _f(e,t){return t=t||"transparent",dt(e)?e:Et(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var E_=Q,Rhe=["left","right","top","bottom","width","height"],t0=[["width","left","right"],["height","top","bottom"]];function UR(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),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var m=c.width+(d?-d.x+c.x:0);h=o+m,h>r||l.newline?(o=0,h=m,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(d?-d.y+c.y:0);v=a+y,v>i||l.newline?(o+=s+n,a=0,v=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=h+n:a=v+n)})}var Dv=UR;Dr(UR,"vertical");Dr(UR,"horizontal");function M1(e,t,n){n=yS(n||0);var r=t.width,i=t.height,o=Ti(e.left,r),a=Ti(e.top,i),s=Ti(e.right,r),l=Ti(e.bottom,i),u=Ti(e.width,r),c=Ti(e.height,i),f=n[2]+n[0],d=n[1]+n[3],h=e.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-f-a),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(o)&&(o=r-s-u-d),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-d;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-d-o-(s||0)),isNaN(c)&&(c=i-f-a-(l||0));var v=new bn(o+n[3],a+n[0],u,c);return v.margin=n,v}function Tg(e){var t=e.layoutMode||e.constructor.layoutMode;return Et(t)?t:t?{type:t}:null}function sh(e,t,n){var r=n&&n.ignoreSize;!st(r)&&(r=[r,r]);var i=a(t0[0],0),o=a(t0[1],1);u(t0[0],e,i),u(t0[1],e,o);function a(c,f){var d={},h=0,v={},m=0,y=2;if(E_(c,function(w){v[w]=e[w]}),E_(c,function(w){s(t,w)&&(d[w]=v[w]=t[w]),l(d,w)&&h++,l(v,w)&&m++}),r[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(m===y||!h)return v;if(h>=y)return d;for(var _=0;_=0;l--)s=_n(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return im(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}(sr);KV(An,sr);qb(An);che(An);fhe(An,Dhe);function Dhe(e){var t=[];return Q(An.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Rt(t,function(n){return ns(n).main}),e!=="dataset"&&In(t,"dataset")<=0&&t.unshift("dataset"),t}var Ak=Ar();Ar();var HR=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=Ai(this.get("color",!0)),o=this.get("colorLayer",!0);return Lhe(this,Ak,i,o,t,n,r)},e.prototype.clearColorPalette=function(){Nhe(this,Ak)},e}();function Mhe(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function Lhe(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:Mhe(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 Nhe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var khe=/\{@(.+?)\}/g,Fhe=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,d=f==="series",h=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.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&&st(l.value)&&(l.value=l.value[i]),!o){var u=s.getItemModel(t);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(Vt(o))return l.status=n,l.dimensionIndex=i,o(l);if(dt(o)){var c=EH(o,l);return c.replace(khe,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var m=ah(s,t,v);if(a&&st(a.interpolatedValue)){var y=s.getDimensionIndex(v);y>=0&&(m=a.interpolatedValue[y])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,n){return ah(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function Ik(e){var t,n;return Et(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Mv(e){return new $he(e)}var $he=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 d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h1&&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(n0(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=io(s)?_u:ua,o=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=nn(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=nn(f.sourceHeader,d.sourceHeader),m=nn(f.dimensions,d.dimensions),y=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||m;i=y?[QC(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:m},l)]:[]}else{var _=t;if(r){var b=this._applyTransform(n);i=b.sourceList,o=b.upstreamSignList}else{var w=_.get("source",!0);i=[QC(w,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&&Pk(o)}var a,s=[],l=[];return Q(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&Pk(f),s.push(c),l.push(u._getVersionSign())}),r?a=jhe(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[Ade(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n"u")return t;for(var n=0;n=0)s=a*n.length;else for(var l=0;l"u"&&typeof self<"u"?Dt.worker=!0:!Dt.hasGlobalWindow||"Deno"in window?(Dt.node=!0,Dt.svgSupported=!0):eue(navigator.userAgent,Dt);function eue(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 tue=".",ec="___EC__COMPONENT__CONTAINER___",qV="___EC__EXTENDED_CLASS___";function ns(e){var t={main:"",sub:""};if(e){var n=e.split(tue);t.main=n[0]||"",t.sub=n[1]||""}return t}function nue(e){hl(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function rue(e){return!!(e&&e[qV])}function sR(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return iue(r)?i=function(o){ot(a,o);function a(){return o.apply(this,arguments)||this}return a}(r):(i=function(){(n.$constructor||r).apply(this,arguments)},zle(i,this)),Ke(i.prototype,n),i[qV]=!0,i.extend=this.extend,i.superCall=sue,i.superApply=lue,i.superClass=r,i}}function iue(e){return Vt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function JV(e,t){e.extend=t.extend}var oue=Math.round(Math.random()*10);function aue(e){var t=["__\0is_clz",oue++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function sue(e,t){for(var n=[],r=2;r=0||o&&In(o,l)<0)){var u=r.getShallow(l,t);u!=null&&(a[e[s][0]]=u)}}return a}}var uue=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],cue=bg(uue),fue=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return cue(this,t,n)},e}(),QV=function(){function e(t){this.value=t}return e}(),due=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new QV(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}(),rm=function(){function e(t){this._list=new due,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 QV(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}(),LC=new rm(50);function hue(e){if(typeof e=="string"){var t=LC.get(e);return t&&t.image}else return e}function eU(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=LC.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!eS(t)&&o.pending.push(a)):(t=Eh.loadImage(e,nN,nN),t.__zrImageSrc=e,LC.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function nN(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tv&&(v=w,mv&&(v=S,_=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}tc.x=rc.x=n.x,tc.y=ic.y=n.y,nc.x=ic.x=n.x+n.width,nc.y=rc.y=n.y+n.height,tc.transform(r),ic.transform(r),nc.transform(r),rc.transform(r),t.x=Fy(tc.x,nc.x,rc.x,ic.x),t.y=Fy(tc.y,nc.y,rc.y,ic.y);var l=$y(tc.x,nc.x,rc.x,ic.x),u=$y(tc.y,nc.y,rc.y,ic.y);t.width=l-t.x,t.height=u-t.y},e}(),rN={};function Eo(e,t){t=t||pf;var n=rN[t];n||(n=rN[t]=new rm(500));var r=n.get(e);return r==null&&(r=Eh.measureText(e,t).width,n.put(e,r)),r}function iN(e,t,n,r){var i=Eo(e,t),o=dR(t),a=Wp(0,i,n),s=_d(0,o,r),l=new bn(a,s,i,o);return l}function fR(e,t,n,r){var i=((e||"")+"").split(` +`),o=i.length;if(o===1)return iN(i[0],t,n,r);for(var a=new bn(0,0,0,0),s=0;s=0?parseFloat(e)/100*t:parseFloat(e):e}function tU(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+=gf(r[0],n.width),u+=gf(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 zx=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function gue(e,t,n,r,i,o){if(!n){e.text="",e.isTruncated=!1;return}var a=(t+"").split(` +`);o=nU(n,r,i,o);for(var s=!1,l={},u=0,c=a.length;u=a;l++)s-=a;var u=Eo(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 rU(e,t,n){var r=n.containerWidth,i=n.font,o=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var a=Eo(t,i);if(a<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(a<=o||s>=n.maxIterations){t+=n.ellipsis;break}var l=s===0?mue(t,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(t.length*o/a):0;t=t.substr(0,l),a=Eo(t,i)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function mue(e,t,n,r){for(var i=0,o=0,a=e.length;ov&&u){var m=Math.floor(v/s);c=c||d.length>m,d=d.slice(0,m)}if(e&&o&&f!=null)for(var y=nU(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_={},b=0;bs&&Wx(n,e.substring(s,u),t,a),Wx(n,l[2],t,a,l[1]),s=zx.lastIndex}si){var $=n.lines.length;E>0?(w.tokens=w.tokens.slice(0,E),_(w,T,S),n.lines=n.lines.slice(0,b+1)):n.lines=n.lines.slice(0,b),n.isTruncated=n.isTruncated||n.lines.length<$;break e}var F=P.width,z=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")A.percentWidth=F,c.push(A),A.contentWidth=Eo(A.text,O);else{if(z){var B=P.backgroundColor,Y=B&&B.image;Y&&(Y=hue(Y),eS(Y)&&(A.width=Math.max(A.width,Y.width*M/Y.height)))}var j=v&&r!=null?r-T:null;j!=null&&j0&&v+r.accumWidth>r.width&&(c=t.split(` +`),u=!0),r.accumWidth=v}else{var m=iU(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+h,f=m.linesWidths,c=m.lines}}else c=t.split(` +`);for(var y=0;y=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var xue=Ch(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Tue(e){return wue(e)?!!xue[e]:!0}function iU(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=0;fn:i+c+h>n){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=h)):v?(o.push(l),a.push(u),l=d,u=h):(o.push(d),a.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}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 Ah(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Eue(e){return[e[0],e[1]]}function aN(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Cue(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Aue(e){return Math.sqrt(Iue(e))}function Iue(e){return e[0]*e[0]+e[1]*e[1]}function jx(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Rue(e,t){var n=Aue(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function kC(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Pue=kC;function Oue(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Hd=Oue;function ta(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 Cd(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ad(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var sN=lR,lN=5e-5;function oc(e){return e>lN||e<-lN}var ac=[],Kf=[],Yx=Vd(),Xx=Math.abs,hR=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 oc(this.rotation)||oc(this.x)||oc(this.y)||oc(this.scaleX-1)||oc(this.scaleY-1)||oc(this.skewX)||oc(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(sN(r),this.invTransform=null);return}r=r||Vd(),n?this.getLocalTransform(r):sN(r),t&&(n?Ud(r,t,r):pue(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(ac);var r=ac[0]<0?-1:1,i=ac[1]<0?-1:1,o=((ac[0]-r)*n+r)/ac[0]||0,a=((ac[1]-i)*n+i)/ac[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||Vd(),cR(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||Vd(),Ud(Kf,t.invTransform,n),n=Kf);var r=this.originX,i=this.originY;(r||i)&&(Yx[4]=r,Yx[5]=i,Ud(Kf,n,Yx),Kf[4]-=r,Kf[5]-=i,n=Kf),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&&ta(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&ta(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&Xx(t[0]-1)>1e-10&&Xx(t[3]-1)>1e-10?Math.sqrt(Xx(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Due(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,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var v=r+s,m=i+l;n[4]=-v*o-d*m*a,n[5]=-m*a-h*v*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=h*o,n[2]=d*a,u&&uR(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}(),Sg=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Due(e,t){for(var n=0;n-_1&&e<_1}function aU(e){return e>_1||e<-_1}function Hr(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 cN(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function b1(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,d=l*l-3*s*u,h=0;if(uu(c)&&uu(f))if(uu(s))o[0]=0;else{var v=-l/s;v>=0&&v<=1&&(o[h++]=v)}else{var m=f*f-4*c*d;if(uu(m)){var y=f/c,v=-s/a+y,_=-y/2;v>=0&&v<=1&&(o[h++]=v),_>=0&&_<=1&&(o[h++]=_)}else if(m>0){var b=mu(m),w=c*s+1.5*a*(-f+b),S=c*s+1.5*a*(-f-b);w<0?w=-By(-w,Vy):w=By(w,Vy),S<0?S=-By(-S,Vy):S=By(S,Vy);var v=(-s-(w+S))/(3*a);v>=0&&v<=1&&(o[h++]=v)}else{var T=(2*c*s-3*a*f)/(2*mu(c*c*c)),E=Math.acos(T)/3,A=mu(c),P=Math.cos(E),v=(-s-2*A*P)/(3*a),_=(-s+A*(P+uN*Math.sin(E)))/(3*a),I=(-s+A*(P-uN*Math.sin(E)))/(3*a);v>=0&&v<=1&&(o[h++]=v),_>=0&&_<=1&&(o[h++]=_),I>=0&&I<=1&&(o[h++]=I)}}return h}function sU(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(uu(a)){if(aU(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(uu(c))i[0]=-o/(2*a);else if(c>0){var f=mu(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function S1(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 Mue(e,t,n,r,i,o,a,s,l,u,c){var f,d=.005,h=1/0,v,m,y,_;Qa[0]=l,Qa[1]=u;for(var b=0;b<1;b+=.05)Xo[0]=Hr(e,n,i,a,b),Xo[1]=Hr(t,r,o,s,b),y=Hd(Qa,Xo),y=0&&y=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(uu(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=mu(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function lU(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function w1(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 kue(e,t,n,r,i,o,a,s,l){var u,c=.005,f=1/0;Qa[0]=a,Qa[1]=s;for(var d=0;d<1;d+=.05){Xo[0]=ji(e,n,i,d),Xo[1]=ji(t,r,o,d);var h=Hd(Qa,Xo);h=0&&h=1?1:b1(0,r,o,1,l,s)&&Hr(0,i,a,1,s[0])}}}var Bue=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||Qi,this.ondestroy=t.ondestroy||Qi,this.onrestart=t.onrestart||Qi,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=Vt(t)?t:Ev[t]||uU(t)},e}(),dN={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 yu(e){return e=Math.round(e),e<0?0:e>255?255:e}function FC(e){return e<0?0:e>1?1:e}function Kx(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?yu(parseFloat(t)/100*255):yu(parseInt(t,10))}function Cv(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?FC(parseFloat(t)/100):FC(parseFloat(t))}function Zx(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 Uy(e,t,n){return e+(t-e)*n}function Go(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function $C(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var cU=new rm(20),Hy=null;function Zf(e,t){Hy&&$C(Hy,t),Hy=cU.put(e,Hy||t.slice())}function tl(e,t){if(e){t=t||[];var n=cU.get(e);if(n)return $C(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in dN)return $C(t,dN[r]),Zf(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)){Go(t,0,0,0,1);return}return Go(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),Zf(e,t),t}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){Go(t,0,0,0,1);return}return Go(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),Zf(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?Go(t,+u[0],+u[1],+u[2],1):Go(t,0,0,0,1);c=Cv(u.pop());case"rgb":if(u.length>=3)return Go(t,Kx(u[0]),Kx(u[1]),Kx(u[2]),u.length===3?c:Cv(u[3])),Zf(e,t),t;Go(t,0,0,0,1);return;case"hsla":if(u.length!==4){Go(t,0,0,0,1);return}return u[3]=Cv(u[3]),hN(u,t),Zf(e,t),t;case"hsl":if(u.length!==3){Go(t,0,0,0,1);return}return hN(u,t),Zf(e,t),t;default:return}}Go(t,0,0,0,1)}}function hN(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Cv(e[1]),i=Cv(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return t=t||[],Go(t,yu(Zx(a,o,n+1/3)*255),yu(Zx(a,o,n)*255),yu(Zx(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function pN(e,t){var n=tl(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 tS(n,n.length===4?"rgba":"rgb")}}function Vue(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=tl(t[i]),s=tl(t[o]),l=r-i,u=tS([yu(Uy(a[0],s[0],l)),yu(Uy(a[1],s[1],l)),yu(Uy(a[2],s[2],l)),FC(Uy(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function tS(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 x1(e,t){var n=tl(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var vN=new rm(100);function gN(e){if(dt(e)){var t=vN.get(e);return t||(t=pN(e,-.1),vN.put(e,t)),t}else if(qb(e)){var n=Ke({},e);return n.colorStops=Rt(e.colorStops,function(r){return{offset:r.offset,color:pN(r.color,-.1)}}),n}return e}function Uue(e){return e.type==="linear"}function Hue(e){return e.type==="radial"}(function(){return Dt.hasGlobalWindow&&Vt(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 BC=Array.prototype.slice;function Hs(e,t,n){return(t-e)*n+e}function qx(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=yN,l=n;if(ro(n)){var u=jue(n);s=u,(u===1&&!Zn(n[0])||u===2&&!Zn(n[0][0]))&&(a=!0)}else if(Zn(n)&&!y1(n))s=zy;else if(dt(n))if(!isNaN(+n))s=zy;else{var c=tl(n);c&&(l=c,s=jp)}else if(qb(n)){var f=Ke({},l);f.colorStops=Rt(n.colorStops,function(h){return{offset:h.offset,color:tl(h.color)}}),Uue(n)?s=VC:Hue(n)&&(s=UC),l=f}o===0?this.valType=s:(s!==this.valType||s===yN)&&(a=!0),this.discrete=this.discrete||a;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=Vt(r)?r:Ev[r]||uU(r)),i.push(d),d},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(m,y){return m.time-y.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=Wy(i),u=_N(i),c=0;c=0&&!(a[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;cn);c++);c=d(c-1,s-2)}v=a[c+1],h=a[c]}if(h&&v){this._lastFr=c,this._lastFrP=n;var y=v.percent-h.percent,_=y===0?1:d((n-h.percent)/y,1);v.easingFunc&&(_=v.easingFunc(_));var b=r?this._additiveValue:u?fp:t[l];if((Wy(o)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=_<1?h.rawValue:v.rawValue;else if(Wy(o))o===S_?qx(b,h[i],v[i],_):Gue(b,h[i],v[i],_);else if(_N(o)){var w=h[i],S=v[i],T=o===VC;t[l]={type:T?"linear":"radial",x:Hs(w.x,S.x,_),y:Hs(w.y,S.y,_),colorStops:Rt(w.colorStops,function(A,P){var I=S.colorStops[P];return{offset:Hs(A.offset,I.offset,_),color:b_(qx([],A.color,I.color,_))}}),global:S.global},T?(t[l].x2=Hs(w.x2,S.x2,_),t[l].y2=Hs(w.y2,S.y2,_)):t[l].r=Hs(w.r,S.r,_)}else if(u)qx(b,h[i],v[i],_),r||(t[l]=b_(b));else{var E=Hs(h[i],v[i],_);r?this._additiveValue=E:t[l]=E}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,i=this._additiveValue;n===zy?t[r]=t[r]+i:n===jp?(tl(t[r],fp),Gy(fp,fp,i,1),t[r]=b_(fp)):n===S_?Gy(t[r],t[r],i,1):n===fU&&mN(t[r],t[r],i,1)},e}(),pR=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){oR("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,Kn(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var o=this._tracks,a=0;a0&&l.addKeyframe(0,__(u),i),this._trackKeys.push(s)}l.addKeyframe(t,__(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}(),ms=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,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,b=void 0,w=void 0;m&&this.canBeInsideText()?(_=r.insideFill,b=r.insideStroke,(_==null||_==="auto")&&(_=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(_),w=!0)):(_=r.outsideFill,b=r.outsideStroke,(_==null||_==="auto")&&(_=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(_),w=!0)),_=_||"#000",(_!==y.fill||b!==y.stroke||w!==y.autoStroke||a!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=_,y.stroke=b,y.autoStroke=w,y.align=a,y.verticalAlign=s,n.setDefaultTextStyle(y)),n.__dirty|=bo,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()?zC:GC},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&tl(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,tS(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||{},Ke(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(Et(t))for(var r=t,i=Kn(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(Jx,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===Jx,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(In(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){oR("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,d=this._textGuide;return f&&f.useState(t,n,r,c),d&&d.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&=~bo),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,v);var m=this._textContent,y=this._textGuide;m&&m.useStates(t,n,d),y&&y.useStates(t,n,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bo)}},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=In(i,t),a=In(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(v,m){n.during(m)});for(var d=0;d0||i.force&&!a.length){var P=void 0,I=void 0,R=void 0;if(s){I={},d&&(P={});for(var S=0;S1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(jy[0]=oT(i)*n+e,jy[1]=iT(i)*r+t,Yy[0]=oT(o)*n+e,Yy[1]=iT(o)*r+t,u(s,jy,Yy),c(l,jy,Yy),i=i%sc,i<0&&(i=i+sc),o=o%sc,o<0&&(o=o+sc),i>o&&!a?o+=sc:ii&&(Xy[0]=oT(h)*n+e,Xy[1]=iT(h)*r+t,u(s,Xy,s),c(l,Xy,l))}var mn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},lc=[],uc=[],Wa=[],Nl=[],ja=[],Ya=[],aT=Math.min,sT=Math.max,cc=Math.cos,fc=Math.sin,Ms=Math.abs,jC=Math.PI,jl=jC*2,lT=typeof Float32Array<"u",dp=[];function uT(e){var t=Math.round(e/jC*1e8)/1e8;return t%2*jC}function ace(e,t){var n=uT(e[0]);n<0&&(n+=jl);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=jl?i=n+jl:t&&n-i>=jl?i=n-jl:!t&&n>i?i=n+(jl-uT(n-i)):t&&n0&&(this._ux=Ms(r/T1/t)||0,this._uy=Ms(r/T1/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(mn.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=Ms(t-this._xi),i=Ms(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(mn.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(mn.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(mn.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(),dp[0]=i,dp[1]=o,ace(dp,a),i=dp[0],o=dp[1];var s=o-i;return this.addData(mn.A,t,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,r,i,o,a),this._xi=cc(o)*r+t,this._yi=fc(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(mn.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(mn.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)&&lT&&(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(){Wa[0]=Wa[1]=ja[0]=ja[1]=Number.MAX_VALUE,Nl[0]=Nl[1]=Ya[0]=Ya[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,o=0,a;for(a=0;ar||Ms(w)>i||d===n-1)&&(m=Math.sqrt(b*b+w*w),o=y,a=_);break}case mn.C:{var S=t[d++],T=t[d++],y=t[d++],_=t[d++],E=t[d++],A=t[d++];m=Lue(o,a,S,T,y,_,E,A,10),o=E,a=A;break}case mn.Q:{var S=t[d++],T=t[d++],y=t[d++],_=t[d++];m=Fue(o,a,S,T,y,_,10),o=y,a=_;break}case mn.A:var P=t[d++],I=t[d++],R=t[d++],O=t[d++],M=t[d++],$=t[d++],F=$+M;d+=1,v&&(s=cc(M)*R+P,l=fc(M)*O+I),m=sT(R,O)*aT(jl,Math.abs($)),o=cc(F)*R+P,a=fc(F)*O+I;break;case mn.R:{s=o=t[d++],l=a=t[d++];var z=t[d++],B=t[d++];m=z*2+B*2;break}case mn.Z:{var b=s-o,w=l-a;m=Math.sqrt(b*b+w*w),o=s,a=l;break}}m>=0&&(u[f++]=m,c+=m)}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,d,h=n<1,v,m,y=0,_=0,b,w=0,S,T;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,m=this._pathLen,b=n*m,!b)))e:for(var E=0;E0&&(t.lineTo(S,T),w=0),A){case mn.M:s=u=r[E++],l=c=r[E++],t.moveTo(u,c);break;case mn.L:{f=r[E++],d=r[E++];var I=Ms(f-u),R=Ms(d-c);if(I>i||R>o){if(h){var O=v[_++];if(y+O>b){var M=(b-y)/O;t.lineTo(u*(1-M)+f*M,c*(1-M)+d*M);break e}y+=O}t.lineTo(f,d),u=f,c=d,w=0}else{var $=I*I+R*R;$>w&&(S=f,T=d,w=$)}break}case mn.C:{var F=r[E++],z=r[E++],B=r[E++],Y=r[E++],j=r[E++],se=r[E++];if(h){var O=v[_++];if(y+O>b){var M=(b-y)/O;S1(u,F,B,j,M,lc),S1(c,z,Y,se,M,uc),t.bezierCurveTo(lc[1],uc[1],lc[2],uc[2],lc[3],uc[3]);break e}y+=O}t.bezierCurveTo(F,z,B,Y,j,se),u=j,c=se;break}case mn.Q:{var F=r[E++],z=r[E++],B=r[E++],Y=r[E++];if(h){var O=v[_++];if(y+O>b){var M=(b-y)/O;w1(u,F,B,M,lc),w1(c,z,Y,M,uc),t.quadraticCurveTo(lc[1],uc[1],lc[2],uc[2]);break e}y+=O}t.quadraticCurveTo(F,z,B,Y),u=B,c=Y;break}case mn.A:var ge=r[E++],ve=r[E++],De=r[E++],Ne=r[E++],ze=r[E++],Me=r[E++],je=r[E++],ce=!r[E++],Ce=De>Ne?De:Ne,Se=Ms(De-Ne)>.001,Te=ze+Me,Oe=!1;if(h){var O=v[_++];y+O>b&&(Te=ze+Me*(b-y)/O,Oe=!0),y+=O}if(Se&&t.ellipse?t.ellipse(ge,ve,De,Ne,je,ze,Te,ce):t.arc(ge,ve,Ce,ze,Te,ce),Oe)break e;P&&(s=cc(ze)*De+ge,l=fc(ze)*Ne+ve),u=cc(Te)*De+ge,c=fc(Te)*Ne+ve;break;case mn.R:s=u=r[E],l=c=r[E+1],f=r[E++],d=r[E++];var $e=r[E++],H=r[E++];if(h){var O=v[_++];if(y+O>b){var G=b-y;t.moveTo(f,d),t.lineTo(f+aT(G,$e),d),G-=$e,G>0&&t.lineTo(f+$e,d+aT(G,H)),G-=H,G>0&&t.lineTo(f+sT($e-G,0),d+H),G-=$e,G>0&&t.lineTo(f,d+sT(H-G,0));break e}y+=O}t.rect(f,d,$e,H);break;case mn.Z:if(h){var O=v[_++];if(y+O>b){var M=(b-y)/O;t.lineTo(u*(1-M)+s*M,c*(1-M)+l*M);break e}y+=O}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=mn,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Jf(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+=hp);var d=Math.atan2(l,s);return d<0&&(d+=hp),d>=r&&d<=i||d+hp>=r&&d+hp<=i}function dc(e,t,n,r,i,o){if(o>t&&o>r||oi?s:0}var kl=mf.CMD,hc=Math.PI*2,cce=1e-4;function fce(e,t){return Math.abs(e-t)t&&u>r&&u>o&&u>s||u1&&dce(),h=Hr(t,r,o,s,jo[0]),d>1&&(v=Hr(t,r,o,s,jo[1]))),d===2?yt&&s>r&&s>o||s=0&&u<=1){for(var c=0,f=ji(t,r,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);xi[0]=-l,xi[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=hc-1e-4){r=0,i=hc;var c=o?1:-1;return a>=xi[0]+e&&a<=xi[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=hc,i+=hc);for(var d=0,h=0;h<2;h++){var v=xi[h];if(v+e>a){var m=Math.atan2(s,v),c=o?1:-1;m<0&&(m=hc+m),(m>=r&&m<=i||m+hc>=r&&m+hc<=i)&&(m>Math.PI/2&&m1&&(n||(s+=dc(l,u,c,f,r,i))),y&&(l=o[v],u=o[v+1],c=l,f=u),m){case kl.M:c=o[v++],f=o[v++],l=c,u=f;break;case kl.L:if(n){if(Jf(l,u,o[v],o[v+1],t,r,i))return!0}else s+=dc(l,u,o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case kl.C:if(n){if(sce(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=hce(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case kl.Q:if(n){if(lce(l,u,o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=pce(l,u,o[v++],o[v++],o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case kl.A:var _=o[v++],b=o[v++],w=o[v++],S=o[v++],T=o[v++],E=o[v++];v+=1;var A=!!(1-o[v++]);d=Math.cos(T)*w+_,h=Math.sin(T)*S+b,y?(c=d,f=h):s+=dc(l,u,d,h,r,i);var P=(r-_)*S/w+_;if(n){if(uce(_,b,S,T,T+E,A,t,P,i))return!0}else s+=vce(_,b,S,T,T+E,A,P,i);l=Math.cos(T+E)*w+_,u=Math.sin(T+E)*S+b;break;case kl.R:c=l=o[v++],f=u=o[v++];var I=o[v++],R=o[v++];if(d=c+I,h=f+R,n){if(Jf(c,f,d,f,t,r,i)||Jf(d,f,d,h,t,r,i)||Jf(d,h,c,h,t,r,i)||Jf(c,h,c,f,t,r,i))return!0}else s+=dc(d,f,d,h,r,i),s+=dc(c,h,c,f,r,i);break;case kl.Z:if(n){if(Jf(l,u,c,f,t,r,i))return!0}else s+=dc(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!fce(u,f)&&(s+=dc(l,u,c,f,r,i)||0),s!==0}function gce(e,t,n){return pU(e,0,!1,t,n)}function mce(e,t,n,r){return pU(e,t,!0,n,r)}var vU=Cn({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},tf),yce={style:Cn({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},rS.style)},cT=Sg.concat(["invisible","culling","z","z2","zlevel","parent"]),Ln=function(e){ot(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?GC:r>.2?Xue:zC}else if(n)return zC}return GC},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(dt(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=x1(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&bd)&&(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)),mce(s,l/u,n,r)))return!0}if(this.hasFill())return gce(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=bd,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:Ke(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&bd)},t.prototype.createStyle=function(n){return Jb(vU,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Ke({},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=Ke({},i.shape),Ke(u,r.shape)):(u=Ke({},o?this.shape:i.shape),Ke(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=Ke({},this.shape);for(var c={},f=Kn(u),d=0;d0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return Jb(_ce,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=fR(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}(im);E1.prototype.type="tspan";var bce=Cn({x:0,y:0},tf),Sce={style:Cn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},rS.style)};function wce(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Vu=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return Jb(bce,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=wce(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 Sce},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new bn(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(im);Vu.prototype.type="image";function xce(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 Id=Math.round;function gU(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&&(Id(r*2)===Id(i*2)&&(e.x1=e.x2=$c(r,s,!0)),Id(o*2)===Id(a*2)&&(e.y1=e.y2=$c(o,s,!0))),e}}function mU(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=$c(r,s,!0),e.y=$c(i,s,!0),e.width=Math.max($c(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max($c(i+a,s,!1)-e.y,a===0?0:1)),e}}function $c(e,t,n){if(!t)return e;var r=Id(e*2);return(r+Id(t))%2===0?r/2:(r+(n?1:-1))/2}var Tce=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Ece={},zr=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Tce},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=mU(Ece,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?xce(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ln);zr.prototype.type="rect";var EN={fill:"#000"},CN=2,Cce={style:Cn({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},rS.style)},oo=function(e){ot(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=EN,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,M=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),$=a.calculatedLineHeight,F=0;F=0&&(F=E[$],F.align==="right");)this._placeToken(F,n,P,_,M,"right",w),I-=F.width,M-=F.width,$--;for(O+=(o-(O-y)-(b-M)-I)/2;R<=$;)F=E[R],this._placeToken(F,n,P,_,O+F.width/2,"center",w),O+=F.width,R++;_+=P}},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 d=!n.isLineHolder&&fT(u);d&&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 h=!!u.backgroundColor,v=n.textPadding;v&&(a=DN(a,s,v),f-=n.height/2-v[0]-n.innerHeight/2);var m=this._getOrCreateChild(E1),y=m.createStyle();m.useStyle(y);var _=this._defaultStyle,b=!1,w=0,S=ON("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,_.fill)),T=PN("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!_.autoStroke||b)?(w=CN,_.stroke):null),E=u.textShadowBlur>0||r.textShadowBlur>0;y.text=n.text,y.x=a,y.y=f,E&&(y.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,y.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=n.font||pf,y.opacity=y_(u.opacity,r.opacity,1),IN(y,u),T&&(y.lineWidth=y_(u.lineWidth,r.lineWidth,w),y.lineDash=nn(u.lineDash,r.lineDash),y.lineDashOffset=r.lineDashOffset||0,y.stroke=T),S&&(y.fill=S);var A=n.contentWidth,P=n.contentHeight;m.setBoundingRect(new bn(Wp(y.x,A,y.textAlign),_d(y.y,P,y.textBaseline),A,P))},t.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,v=this,m,y;if(d||n.lineHeight||u&&c){m=this._getOrCreateChild(zr),m.useStyle(m.createStyle()),m.style.fill=null;var _=m.shape;_.x=i,_.y=o,_.width=a,_.height=s,_.r=h,m.dirtyShape()}if(d){var b=m.style;b.fill=l||null,b.fillOpacity=nn(n.fillOpacity,1)}else if(f){y=this._getOrCreateChild(Vu),y.onload=function(){v.dirtyStyle()};var w=y.style;w.image=l.image,w.x=i,w.y=o,w.width=a,w.height=s}if(u&&c){var b=m.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=nn(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(m||y).style;S.shadowBlur=n.shadowBlur||0,S.shadowColor=n.shadowColor||"transparent",S.shadowOffsetX=n.shadowOffsetX||0,S.shadowOffsetY=n.shadowOffsetY||0,S.opacity=y_(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return Pce(n)&&(r=[n.fontStyle,n.fontWeight,Rce(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&ts(r)||n.textFont||n.font},t}(im),Ace={left:!0,right:1,center:1},Ice={top:1,bottom:1,middle:1},AN=["fontStyle","fontWeight","fontSize","fontFamily"];function Rce(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?nR+"px":e+"px"}function IN(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 Ei(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 dt(e)?Dce(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function _r(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),yU),e=(+e).toFixed(t),n?e:+e}function qs(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 Mce(e)}function Mce(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 Lce(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 Nce(e,t){var n=Math.max(qs(e),qs(t)),r=e+t;return n>yU?r:_r(r,n)}function _U(e){var t=Math.PI*2;return(e%t+t)%t}function C1(e){return e>-LN&&e=10&&t++,t}function bU(e,t){var n=vR(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 A1(e){var t=parseFloat(e);return t==e&&(t!==0||!dt(e)||e.indexOf("x")<=0)?t:NaN}function $ce(e){return!isNaN(A1(e))}function SU(){return Math.round(Math.random()*9)}function wU(e,t){return t===0?e:wU(t,e%t)}function kN(e,t){return e==null?t:t==null?e:e*t/wU(e,t)}function Yi(e){throw new Error(e)}function FN(e,t,n){return(t-e)*n+e}var xU="series\0",Bce="\0_ec_\0";function Ii(e){return e instanceof Array?e:e==null?[]:[e]}function $N(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 Ln){var a=CU(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Qf(s)||Qf(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=Ke({},r),u=Ke({},u),u.fill=s):!Qf(u.fill)&&Qf(s)?(o=!0,r=Ke({},r),u=Ke({},u),u.fill=gN(s)):!Qf(u.stroke)&&Qf(l)&&(o||(r=Ke({},r),u=Ke({},u)),u.stroke=gN(l)),r.style=u}}if(r&&r.z2==null){o||(r=Ke({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??tfe)}return r}function sfe(e,t,n){if(n&&n.z2==null){n=Ke({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??nfe)}return n}function lfe(e,t,n){var r=In(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:ofe(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=Ke({},n),a=Ke({opacity:r?i:o.opacity*.1},a),n.style=a),n}function hT(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return afe(this,e,t,n);if(e==="blur")return lfe(this,e,n);if(e==="select")return sfe(this,e,n)}return n}function ufe(e){e.stateProxy=hT;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=hT),n&&(n.stateProxy=hT)}function WN(e,t){!MU(e,t)&&!e.__highByOuter&&ml(e,AU)}function jN(e,t){!MU(e,t)&&!e.__highByOuter&&ml(e,IU)}function I1(e,t){e.__highByOuter|=1<<(t||0),ml(e,AU)}function R1(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ml(e,IU)}function cfe(e){ml(e,bR)}function PU(e){ml(e,RU)}function OU(e){ml(e,rfe)}function DU(e){ml(e,ife)}function MU(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function LU(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=yR(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){RU(u)}),s&&n.push(o)),a.isBlured=!1}),Q(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function YC(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 KC(e,t,n){NU(e,!0),ml(e,ufe),mfe(e,t,n)}function gfe(e){NU(e,!1)}function ZC(e,t,n,r){r?gfe(e):KC(e,t,n)}function mfe(e,t,n){var r=Mn(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var XN=["emphasis","blur","select"],yfe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function KN(e,t,n,r){n=n||"itemStyle";for(var i=0;i1&&(a*=pT(v),s*=pT(v));var m=(i===o?-1:1)*pT((a*a*(s*s)-a*a*(h*h)-s*s*(d*d))/(a*a*(h*h)+s*s*(d*d)))||0,y=m*a*h/s,_=m*-s*d/a,b=(e+n)/2+qy(f)*y-Zy(f)*_,w=(t+r)/2+Zy(f)*y+qy(f)*_,S=QN([1,0],[(d-y)/a,(h-_)/s]),T=[(d-y)/a,(h-_)/s],E=[(-1*d-y)/a,(-1*h-_)/s],A=QN(T,E);if(QC(T,E)<=-1&&(A=pp),QC(T,E)>=1&&(A=0),A<0){var P=Math.round(A/pp*1e6)/1e6;A=pp*2+P%2*pp}c.addData(u,b,w,a,s,S,A,f,o)}var Tfe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Efe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Cfe(e){var t=new mf;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=mf.CMD,l=e.match(Tfe);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=In(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=In(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;iF*F+z*z&&(P=R,I=O),{cx:P,cy:I,x0:-c,y0:-f,x1:P*(i/T-1),y1:I*(i/T-1)}}function Lfe(e){var t;if(lt(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 Nfe(e,t){var n,r=Xp(t.r,0),i=Xp(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,d=!!t.clockwise,h=tk(u-l),v=h>vT&&h%vT;if(v>ba&&(h=v),!(r>ba))e.moveTo(c,f);else if(h>vT-ba)e.moveTo(c+r*td(l),f+r*pc(l)),e.arc(c,f,r,l,u,!d),i>ba&&(e.moveTo(c+i*td(u),f+i*pc(u)),e.arc(c,f,i,u,l,d));else{var m=void 0,y=void 0,_=void 0,b=void 0,w=void 0,S=void 0,T=void 0,E=void 0,A=void 0,P=void 0,I=void 0,R=void 0,O=void 0,M=void 0,$=void 0,F=void 0,z=r*td(l),B=r*pc(l),Y=i*td(u),j=i*pc(u),se=h>ba;if(se){var ge=t.cornerRadius;ge&&(n=Lfe(ge),m=n[0],y=n[1],_=n[2],b=n[3]);var ve=tk(r-i)/2;if(w=Xa(ve,_),S=Xa(ve,b),T=Xa(ve,m),E=Xa(ve,y),I=A=Xp(w,S),R=P=Xp(T,E),(A>ba||P>ba)&&(O=r*td(u),M=r*pc(u),$=i*td(l),F=i*pc(l),hba){var Se=Xa(_,I),Te=Xa(b,I),Oe=Jy($,F,z,B,r,Se,d),$e=Jy(O,M,Y,j,r,Te,d);e.moveTo(c+Oe.cx+Oe.x0,f+Oe.cy+Oe.y0),I0&&e.arc(c+Oe.cx,f+Oe.cy,Se,Kr(Oe.y0,Oe.x0),Kr(Oe.y1,Oe.x1),!d),e.arc(c,f,r,Kr(Oe.cy+Oe.y1,Oe.cx+Oe.x1),Kr($e.cy+$e.y1,$e.cx+$e.x1),!d),Te>0&&e.arc(c+$e.cx,f+$e.cy,Te,Kr($e.y1,$e.x1),Kr($e.y0,$e.x0),!d))}else e.moveTo(c+z,f+B),e.arc(c,f,r,l,u,!d);if(!(i>ba)||!se)e.lineTo(c+Y,f+j);else if(R>ba){var Se=Xa(m,R),Te=Xa(y,R),Oe=Jy(Y,j,O,M,i,-Te,d),$e=Jy(z,B,$,F,i,-Se,d);e.lineTo(c+Oe.cx+Oe.x0,f+Oe.cy+Oe.y0),R0&&e.arc(c+Oe.cx,f+Oe.cy,Te,Kr(Oe.y0,Oe.x0),Kr(Oe.y1,Oe.x1),!d),e.arc(c,f,i,Kr(Oe.cy+Oe.y1,Oe.cx+Oe.x1),Kr($e.cy+$e.y1,$e.cx+$e.x1),d),Se>0&&e.arc(c+$e.cx,f+$e.cy,Se,Kr($e.y1,$e.x1),Kr($e.y0,$e.x0),!d))}else e.lineTo(c+Y,f+j),e.arc(c,f,i,u,l,d)}e.closePath()}}}var kfe=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}(),lS=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new kfe},t.prototype.buildPath=function(n,r){Nfe(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ln);lS.prototype.type="sector";var Ffe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),xR=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Ffe},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}(Ln);xR.prototype.type="ring";function $fe(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 d=0,h=e.length;d=2){if(r){var o=$fe(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;sgc[1]){if(s=!1,o)return s;var c=Math.abs(gc[0]-vc[1]),f=Math.abs(vc[0]-gc[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};s?t.animateFrom(n,v):t.animateTo(n,v)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function Iu(e,t,n,r,i,o){IR("update",e,t,n,r,i,o)}function sm(e,t,n,r,i,o){IR("enter",e,t,n,r,i,o)}function Ov(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 ik(e){return!e.isGroup}function lde(e){return e.shape!=null}function WU(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){ik(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return lde(a)&&(s.shape=Ke({},a.shape)),s}var o=r(e);t.traverse(function(a){if(ik(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Iu(a,l,n,Mn(a).dataIndex)}}})}function ude(e,t){return Rt(e,function(n){var r=n[0];r=D1(r,t.x),r=M1(r,t.x+t.width);var i=n[1];return i=D1(i,t.y),i=M1(i,t.y+t.height),[r,i]})}function cde(e,t){var n=D1(e.x,t.x),r=M1(e.x+e.width,t.x+t.width),i=D1(e.y,t.y),o=M1(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 OR(e,t,n){var r=Ke({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),Cn(i,n),new Vu(r)):RR(e.replace("path://",""),r,n,"center")}function fde(e,t,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var y=gT(h,v,c,f)/d;return!(y<0||y>1)}function gT(e,t,n,r){return e*r-n*t}function dde(e){return e<=1e-6&&e>=-1e-6}function cS(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=dt(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&&Q(Kn(l),function(c){vf(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Mn(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Cn({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function ok(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function DR(e,t){if(e)if(lt(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&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h1)for(var s=0;sm&&(m=w)}h[0]=v,h[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};vk=(t={},t[ao+"_"+nl]={pure:!0,appendData:o},t[ao+"_"+Ih]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ys]={pure:!0,appendData:o},t[yl]={pure:!0,appendData:function(a){var s=this._data;Q(a,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[ua]={appendData:o},t[_u]={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}(),hS="undefined",Vde=typeof Uint32Array===hS?Array:Uint32Array,Ude=typeof Uint16Array===hS?Array:Uint16Array,lH=typeof Int32Array===hS?Array:Int32Array,_k=typeof Float64Array===hS?Array:Float64Array,uH={float:_k,int:lH,ordinal:Array,number:Array,time:_k},ST;function nd(e){return e>65535?Vde:Ude}function rd(){return[1/0,-1/0]}function Hde(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function bk(e,t,n,r,i){var o=uH[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;uy[1]&&(y[1]=m)}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=Rt(a,function(b){return b.property}),c=0;c_[1]&&(_[1]=y)}}!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=v,l=h,u=0),h===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<=d||isNaN(b))&&(l[u++]=m),m++}v=!0}else if(o===2){for(var y=h[i[0]],w=h[i[1]],S=t[i[1]][0],T=t[i[1]][1],_=0;_=f&&b<=d||isNaN(b))&&(E>=S&&E<=T||isNaN(E))&&(l[u++]=m),m++}v=!0}}if(!v)if(o===1)for(var _=0;_=f&&b<=d||isNaN(b))&&(l[u++]=A)}else for(var _=0;_t[R][1])&&(P=!1)}P&&(l[u++]=n.getRawIndex(_))}return u_[1]&&(_[1]=y)}}}},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,d,h=new(nd(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));h[s++]=u;for(var v=1;vc&&(c=f,d=S)}O>0&&Os&&(m=s-c);for(var y=0;yv&&(v=b,h=c+y)}var w=this.getRawIndex(f),S=this.getRawIndex(h);fc-v&&(l=c-v,s.length=l);for(var m=0;mf[1]&&(f[1]=_),d[h++]=b}return o._count=h,o._indices=d,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 E_(n[o],this._dimensions[o])}ST={arrayRows:t,objectRows:function(n,r,i,o){return E_(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return E_(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}}(),e}(),Gde=Ar(),zde={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},cH=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=hH(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return nn(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=rH(this.source),r=!pH(t),i="",o=[],a=0,s=0;a30}var gp=Et,Fl=Rt,Wde=typeof Int32Array>"u"?Array:Int32Array,jde="e\0\0",Sk=-1,Yde=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Xde=["_approximateExtent"],wk,t0,mp,yp,wT,_p,xT,Kde=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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,i=!1;fH(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===ua;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),lt(o)?o=o.slice():gp(o)&&(o=Ke({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,gp(n)?Ke(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){gp(t)?Ke(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?Ke(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;efe(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){Q(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:Fl(this.dimensions,this._getDimInfo,this),this.hostModel)),wT(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Vt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(aR(arguments)))})},e.internalField=function(){wk=function(t){var n=t._invertedIndicesMap;Q(n,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=n[i]=new Wde(a.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[n]=l}}}(),e}();function Zde(e,t){NR(e)||(e=tH(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Kt(),o=[],a=Jde(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&pH(a),l=r===e.dimensionsDefine,u=l?hH(e):dH(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var f=Kt(c),d=new lH(a),h=0;h0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function Jde(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Q(t,function(o){var a;Et(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function Qde(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 TT={},FR=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];Q(TT,function(i,o){var a=i.create(t,n);r=r.concat(a||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){Q(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){TT[t]=n},e.get=function(t){return TT[t]},e}(),ehe=function(){function e(t){this.coordSysDims=[],this.axisMap=Kt(),this.categoryAxisMap=Kt(),this.coordSysName=t}return e}();function the(e){var t=e.get("coordinateSystem"),n=new ehe(t),r=nhe[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var nhe={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Ra).models[0],o=e.getReferringComponents("yAxis",Ra).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),id(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),id(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Ra).models[0];t.coordSysDims=["single"],n.set("single",i),id(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Ra).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),id(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),id(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();Q(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),id(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function id(e){return e.get("type")==="category"}function rhe(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;ihe(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(Q(o,function(b,w){dt(b)&&(o[w]=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,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,m=0;Q(o,function(b){b.coordDim===h&&m++});var y={name:f,coordDim:h,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},_={name:d,coordDim:d,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(d,v),_.storeDimIndex=s.ensureCalculationDimension(f,v)),a.appendCalculationDimension(y),a.appendCalculationDimension(_)):(o.push(y),o.push(_))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function ihe(e){return!fH(e.schema)}function Tg(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function ohe(e,t){return Tg(e,t)?e.getCalculationInfo("stackResultDimension"):t}function ahe(e,t){var n=e.get("coordinateSystem"),r=FR.get(n),i;return t&&t.coordSysDims&&(i=Rt(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=Fde(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function she(e,t,n){var r,i;return n&&Q(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 lhe(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;i=r.getSource(),o=i.sourceFormat===ua;var a=the(t),s=ahe(t,a),l=n.useEncodeDefaulter,u=Vt(l)?l:l?Dr(Cde,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=Zde(i,c),d=she(f.dimensions,n.createInvertedIndices,a),h=o?null:r.getSharedDataStore(f),v=rhe(t,{schema:f,store:h}),m=new Kde(f,t);m.setCalculationInfo(v);var y=d!=null&&uhe(i)?function(_,b,w,S){return S===d?w:this.defaultDimValueGetter(_,b,w,S)}:null;return m.hasItemOption=!1,m.initData(o?i:h,null,y),m}function uhe(e){if(e.sourceFormat===ua){var t=che(e.data||[]);return!lt(om(t))}}function che(e){for(var t=0;t=0&&s.push(l)}),s}}function phe(e,t){return _n(_n({},e,!0),t,!0)}var vhe=Math.log(2);function rA(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 yhe(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,d=c.left,h=c.top;a.push(d,h),l=l&&o&&d===o[f]&&h===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?xk(s,a):xk(a,s))}function vH(e){return e.nodeName.toUpperCase()==="CANVAS"}var _he=/([&<>"'])/g,bhe={"&":"&","<":"<",">":">",'"':""","'":"'"};function Xi(e){return e==null?"":(e+"").replace(_he,function(t,n){return bhe[n]})}const She={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:". "}}}},whe={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 L1="ZH",$R="EN",zd=$R,C_={},BR={},gH=Dt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||zd).toUpperCase();return e.indexOf(L1)>-1?L1:zd}():zd;function mH(e,t){e=e.toUpperCase(),BR[e]=new sr(t),C_[e]=t}function xhe(e){if(dt(e)){var t=C_[e.toUpperCase()]||{};return e===L1||e===$R?ln(t):_n(ln(t),ln(C_[zd]),!1)}else return _n(ln(e),ln(C_[zd]),!1)}function The(e){return BR[e]}function Ehe(){return BR[zd]}mH($R,She);mH(L1,whe);var VR=1e3,UR=VR*60,Dv=UR*60,Jo=Dv*24,Ek=Jo*365,Kp={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}"},n0="{yyyy}-{MM}-{dd}",Ck={year:"{yyyy}",month:"{yyyy}-{MM}",day:n0,hour:n0+" "+Kp.hour,minute:n0+" "+Kp.minute,second:n0+" "+Kp.second,millisecond:Kp.none},CT=["year","month","day","hour","minute","second","millisecond"],yH=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $l(e,t){return e+="","0000".substr(0,t-e.length)+e}function Wd(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 Che(e){return e===Wd(e)}function Ahe(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function vS(e,t,n,r){var i=pl(e),o=i[HR(n)](),a=i[jd(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[gS(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Eg(n)](),f=(c-1)%12+1,d=i[mS(n)](),h=i[yS(n)](),v=i[_S(n)](),m=c>=12?"pm":"am",y=m.toUpperCase(),_=r instanceof sr?r:The(r||gH)||Ehe(),b=_.getModel("time"),w=b.get("month"),S=b.get("monthAbbr"),T=b.get("dayOfWeek"),E=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,$l(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,w[a-1]).replace(/{MMM}/g,S[a-1]).replace(/{MM}/g,$l(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,$l(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,T[u]).replace(/{ee}/g,E[u]).replace(/{e}/g,u+"").replace(/{HH}/g,$l(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,$l(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,$l(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,$l(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,$l(v,3)).replace(/{S}/g,v+"")}function Ihe(e,t,n,r,i){var o=null;if(dt(n))o=n;else if(Vt(n))o=n(e.value,t,{level:e.level});else{var a=Ke({},Kp);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(lt(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 vS(new Date(e.value),o,i,r)}function _H(e,t){var n=pl(e),r=n[jd(t)]()+1,i=n[gS(t)](),o=n[Eg(t)](),a=n[mS(t)](),s=n[yS(t)](),l=n[_S(t)](),u=l===0,c=u&&s===0,f=c&&a===0,d=f&&o===0,h=d&&i===1,v=h&&r===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Ak(e,t,n){var r=Zn(e)?pl(e):e;switch(t=t||_H(e,n),t){case"year":return r[HR(n)]();case"half-year":return r[jd(n)]()>=6?1:0;case"quarter":return Math.floor((r[jd(n)]()+1)/4);case"month":return r[jd(n)]();case"day":return r[gS(n)]();case"half-day":return r[Eg(n)]()/24;case"hour":return r[Eg(n)]();case"minute":return r[mS(n)]();case"second":return r[yS(n)]();case"millisecond":return r[_S(n)]()}}function HR(e){return e?"getUTCFullYear":"getFullYear"}function jd(e){return e?"getUTCMonth":"getMonth"}function gS(e){return e?"getUTCDate":"getDate"}function Eg(e){return e?"getUTCHours":"getHours"}function mS(e){return e?"getUTCMinutes":"getMinutes"}function yS(e){return e?"getUTCSeconds":"getSeconds"}function _S(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Rhe(e){return e?"setUTCFullYear":"setFullYear"}function bH(e){return e?"setUTCMonth":"setMonth"}function SH(e){return e?"setUTCDate":"setDate"}function wH(e){return e?"setUTCHours":"setHours"}function xH(e){return e?"setUTCMinutes":"setMinutes"}function TH(e){return e?"setUTCSeconds":"setSeconds"}function EH(e){return e?"setUTCMilliseconds":"setMilliseconds"}function CH(e){if(!$ce(e))return dt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function AH(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 bS=YV;function oA(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&ts(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?pl(e):e;if(isNaN(+l)){if(s)return"-"}else return vS(l,r,n)}if(t==="ordinal")return DC(e)?i(e):Zn(e)&&o(e)?e+"":"-";var u=A1(e);return o(u)?CH(u):DC(e)?i(e):typeof e=="boolean"?e+"":"-"}var Ik=["a","b","c","d","e","f","g"],AT=function(e,t){return"{"+e+(t??"")+"}"};function IH(e,t,n){lt(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 _f(e,t){return t=t||"transparent",dt(e)?e:Et(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var A_=Q,Ohe=["left","right","top","bottom","width","height"],r0=[["width","left","right"],["height","top","bottom"]];function GR(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),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var m=c.width+(d?-d.x+c.x:0);h=o+m,h>r||l.newline?(o=0,h=m,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(d?-d.y+c.y:0);v=a+y,v>i||l.newline?(o+=s+n,a=0,v=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=h+n:a=v+n)})}var Mv=GR;Dr(GR,"vertical");Dr(GR,"horizontal");function N1(e,t,n){n=bS(n||0);var r=t.width,i=t.height,o=Ei(e.left,r),a=Ei(e.top,i),s=Ei(e.right,r),l=Ei(e.bottom,i),u=Ei(e.width,r),c=Ei(e.height,i),f=n[2]+n[0],d=n[1]+n[3],h=e.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-f-a),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(o)&&(o=r-s-u-d),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-d;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-d-o-(s||0)),isNaN(c)&&(c=i-f-a-(l||0));var v=new bn(o+n[3],a+n[0],u,c);return v.margin=n,v}function Cg(e){var t=e.layoutMode||e.constructor.layoutMode;return Et(t)?t:t?{type:t}:null}function sh(e,t,n){var r=n&&n.ignoreSize;!lt(r)&&(r=[r,r]);var i=a(r0[0],0),o=a(r0[1],1);u(r0[0],e,i),u(r0[1],e,o);function a(c,f){var d={},h=0,v={},m=0,y=2;if(A_(c,function(w){v[w]=e[w]}),A_(c,function(w){s(t,w)&&(d[w]=v[w]=t[w]),l(d,w)&&h++,l(v,w)&&m++}),r[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(m===y||!h)return v;if(h>=y)return d;for(var _=0;_=0;l--)s=_n(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return am(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}(sr);JV(An,sr);Qb(An);dhe(An);hhe(An,Lhe);function Lhe(e){var t=[];return Q(An.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Rt(t,function(n){return ns(n).main}),e!=="dataset"&&In(t,"dataset")<=0&&t.unshift("dataset"),t}var Rk=Ar();Ar();var zR=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=Ii(this.get("color",!0)),o=this.get("colorLayer",!0);return khe(this,Rk,i,o,t,n,r)},e.prototype.clearColorPalette=function(){Fhe(this,Rk)},e}();function Nhe(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function khe(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:Nhe(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 Fhe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var $he=/\{@(.+?)\}/g,Bhe=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,d=f==="series",h=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.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&<(l.value)&&(l.value=l.value[i]),!o){var u=s.getItemModel(t);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(Vt(o))return l.status=n,l.dimensionIndex=i,o(l);if(dt(o)){var c=IH(o,l);return c.replace($he,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var m=ah(s,t,v);if(a&<(a.interpolatedValue)){var y=s.getDimensionIndex(v);y>=0&&(m=a.interpolatedValue[y])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,n){return ah(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function Pk(e){var t,n;return Et(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Lv(e){return new Vhe(e)}var Vhe=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 d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h1&&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(i0(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=io(s)?_u:ua,o=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=nn(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=nn(f.sourceHeader,d.sourceHeader),m=nn(f.dimensions,d.dimensions),y=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||m;i=y?[tA(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:m},l)]:[]}else{var _=t;if(r){var b=this._applyTransform(n);i=b.sourceList,o=b.upstreamSignList}else{var w=_.get("source",!0);i=[tA(w,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&&Dk(o)}var a,s=[],l=[];return Q(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&Dk(f),s.push(c),l.push(u._getVersionSign())}),r?a=Xhe(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[Rde(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 Q(e.blocks,function(i){var o=PH(i);o>=t&&(t=o+ +(r&&(!o||iA(i)&&!i.noHeader)))}),t}return 0}function Jhe(e,t,n,r){var i=t.noHeader,o=epe(PH(t)),a=[],s=t.blocks||[];hl(!s||st(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(vf(u,l)){var c=new Fde(u[l],null);s.sort(function(m,y){return c.evaluate(m.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}Q(s,function(m,y){var _=t.valueFormatter,b=RH(m)(_?Ke(Ke({},e),{valueFormatter:_}):e,m,y>0?o.html:0,r);b!=null&&a.push(b)});var f=e.renderMode==="richText"?a.join(o.richText):oA(r,a.join(""),i?n:o.html);if(i)return f;var d=rA(t.header,"ordinal",e.useUTC),h=IH(r,e.renderMode).nameStyle,v=AH(r);return e.renderMode==="richText"?OH(e,d,h)+o.richText+f:oA(r,'
'+Xi(d)+"
"+f,n)}function Qhe(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(S){return S=st(S)?S:[S],Rt(S,function(E,T){return rA(E,st(h)?h[T]:h,u)})};if(!(o&&a)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=o?"":rA(l,"ordinal",u),h=t.valueType,v=a?[]:c(t.value,t.dataIndex),m=!s||!o,y=!s&&o,_=IH(r,i),b=_.nameStyle,w=_.valueStyle;return i==="richText"?(s?"":f)+(o?"":OH(e,d,b))+(a?"":rpe(e,v,m,y,w)):oA(r,(s?"":f)+(o?"":tpe(d,!s,b))+(a?"":npe(v,m,y,w)),n)}}function Ok(e,t,n,r,i,o){if(e){var a=RH(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function epe(e){return{html:Zhe[e],richText:qhe[e]}}function oA(e,t,n){var r='
',i="margin: "+n+"px 0 0",o=AH(e);return'
'+t+r+"
"}function tpe(e,t,n){var r=t?"margin-left:2px":"";return''+Xi(e)+""}function npe(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=st(e)?e:[e],''+Rt(e,function(a){return Xi(a)}).join("  ")+""}function OH(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function rpe(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(st(t)?t.join(" "):t,o)}function ipe(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return _f(r)}function DH(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var CT=function(){function e(){this.richTextStyles={},this._nextStyleNameId=yU()}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=Ihe({color:n,type:t,renderMode:r,markerId:i});return dt(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};st(n)?Q(n,function(o){return Ke(r,o)}):Ke(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e}();function ope(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=st(s),u=ipe(t,n),c,f,d,h;if(a>1||l&&!a){var v=ape(s,t,n,o,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(a){var m=i.getDimensionInfo(o[0]);h=c=ah(i,n,o[0]),f=m.type}else h=c=l?s[0]:s;var y=pR(t),_=y&&t.name||"",b=i.getName(n),w=r?_:b;return Eg("section",{header:_,noHeader:r||!y,sortParam:h,blocks:[Eg("nameValue",{markerType:"item",markerColor:u,name:w,noName:!ts(w),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function ape(e,t,n,r,i){var o=t.getData(),a=Ch(e,function(f,d,h){var v=o.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];r.length?Q(r,function(f){c(ah(o,n,f),f)}):Q(e,c);function c(f,d){var h=o.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(a?u.push(Eg("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Bl=Ar();function r0(e,t){return e.getName(t)||e.getId(t)}var spe="__universalTransitionEnabled",Ru=function(e){ot(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=Mv({count:upe,reset:cpe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=Bl(this).sourceManager=new Xhe(this);o.prepareSource();var a=this.getInitialData(n,i);Mk(a,this),this.dataTask.context.data=a,Bl(this).dataBeforeProcessed=a,Dk(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Tg(this),o=i?_S(n):{},a=this.subType;An.hasClass(a)&&(a+="Series"),_n(n,r.getTheme().get(this.subType)),_n(n,this.getDefaultOption()),kN(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&sh(n,o,i)},t.prototype.mergeOption=function(n,r){n=_n(this.option,n,!0),this.fillDataTextStyle(n.data);var i=Tg(this);i&&sh(this.option,n,i);var o=Bl(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);Mk(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Bl(this).dataBeforeProcessed=a,Dk(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!io(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=HR.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[r0(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[spe])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"){Et(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c0&&this._innerSelect(n,r)}},t.registerClass=function(n){return An.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}(An);gs(Ru,Fhe);gs(Ru,HR);KV(Ru,An);function Dk(e){var t=e.name;pR(e)||(e.name=lpe(e)||t)}function lpe(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return Q(n,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function upe(e){return e.model.getRawData().count()}function cpe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),fpe}function fpe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Mk(e,t){Q(Xle(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Dr(dpe,t))})}function dpe(e,t){var n=aA(e);return n&&n.setOutputEnd((t||this).count()),t}function aA(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 hpe=Ln.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()}}),ppe=Ln.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()}}),vpe=Ln.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),d=Math.cos(u),h=a*.6,v=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*h,l+s+d*h,n,r-v,n,r),e.bezierCurveTo(n,r-v,n-c+f*h,l+s+d*h,n-c,l+s),e.closePath()}}),gpe=Ln.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()}}),mpe={line:Au,rect:zr,roundRect:zr,square:zr,circle:oS,diamond:ppe,pin:vpe,arrow:gpe,triangle:hpe},ype={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}},sA={};Q(mpe,function(e,t){sA[t]=new e});var _pe=Ln.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=JV(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=sA[r];i||(r="rect",i=sA[r]),ype[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function bpe(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 lh(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=BU(e.slice(8),new bn(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=AR(e.slice(7),{},new bn(t,n,r,i),a?"center":"cover"):l=new _pe({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=bpe,o&&l.setColor(o),l}function Spe(e){return st(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function MH(e,t){if(e!=null)return st(e)||(e=[e,e]),[Ti(e[0],t[0])||0,Ti(nn(e[1],e[0]),t[1])||0]}var wpe=function(e){ot(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 ahe(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new hi,i=lh("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=lh(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}(Ru);function LH(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=ah(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 zR=function(e){ot(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=lh(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=Tpe,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(){C1(this.childAt(0))},t.prototype.downplay=function(){A1(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 d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):Iu(d,h,s,r),Zfe(d)}if(this._updateCommon(n,r,l,i,o),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,om(d,h,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,d,h,v,m,y,_;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,d=o.focus,h=o.blurScope,m=o.labelStatesModels,y=o.hoverScale,_=o.cursorStyle,v=o.emphasisDisabled),!o||n.hasItemOption){var b=o&&o.itemModel?o.itemModel:n.getItemModel(r),w=b.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),d=w.get("focus"),h=w.get("blurScope"),v=w.get("disabled"),m=DR(b),y=w.getShallow("scale"),_=b.getShallow("cursor")}var S=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var E=MH(n.getItemVisual(r,"symbolOffset"),i);E&&(s.x=E[0],s.y=E[1]),_&&s.attr("cursor",_);var T=n.getItemVisual(r,"style"),A=T.fill;if(s instanceof Vu){var P=s.style;s.useStyle(Ke({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},T))}else s.__isEmptyBrush?s.useStyle(Ke({},T)):s.useStyle(T),s.style.decal=null,s.setColor(A,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var I=n.getItemVisual(r,"liftZ"),R=this._z2;I!=null?R==null&&(this._z2=s.z2,s.z2+=I):R!=null&&(s.z2=R,this._z2=null);var O=a&&a.useNameLabel;OR(s,m,{labelFetcher:l,labelDataIndex:r,defaultText:M,inheritColor:A,defaultOpacity:T.opacity});function M(z){return O?n.getName(z):LH(n,z)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var $=s.ensureState("emphasis");$.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var F=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;$.scaleX=this._sizeX*F,$.scaleY=this._sizeY*F,this.setSymbolScale(1),XC(this,d,h,v)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=Mn(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&R1(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();R1(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return Spe(n.getItemVisual(r,"symbolSize"))},t}(hi);function Tpe(e,t){this.parent.drift(e,t)}function AT(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 Lk(e){return e!=null&&!Et(e)&&(e={isIgnore:e}),e||{}}function Nk(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:DR(t),cursorStyle:t.get("cursor")}}var Epe=function(){function e(t){this.group=new hi,this._SymbolCtor=t||zR}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=Lk(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=Nk(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};o||r.removeAll(),t.diff(o).add(function(f){var d=c(f);if(AT(t,d,f,n)){var h=new a(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),r.add(h)}}).update(function(f,d){var h=o.getItemGraphicEl(d),v=c(f);if(!AT(t,v,f,n)){r.remove(h);return}var m=t.getItemVisual(f,"symbol")||"circle",y=h&&h.getSymbolType&&h.getSymbolType();if(!h||y&&y!==m)r.remove(h),h=new a(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var _={x:v[0],y:v[1]};s?h.attr(_):Iu(h,_,i)}r.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},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=Nk(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=Lk(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 kH(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 FH=typeof Float32Array<"u",Ape=FH?Float32Array:Array;function Rd(e){return st(e)?FH?new Float32Array(e):e:new Ape(e)}function Ipe(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 Rpe(e,t,n,r,i,o,a,s){for(var l=Ipe(e,t),u=[],c=[],f=[],d=[],h=[],v=[],m=[],y=NH(i,t,a),_=e.getLayout("points")||[],b=t.getLayout("points")||[],w=0;w=i||m<0)break;if(rf(_,b)){if(l){m+=o;continue}break}if(m===n)e[o>0?"moveTo":"lineTo"](_,b),f=_,d=b;else{var w=_-u,S=b-c;if(w*w+S*S<.5){m+=o;continue}if(a>0){for(var E=m+o,T=t[E*2],A=t[E*2+1];T===_&&A===b&&y=r||rf(T,A))h=_,v=b;else{R=T-u,O=A-c;var F=_-u,z=T-_,B=b-c,Y=A-b,j=void 0,ae=void 0;if(s==="x"){j=Math.abs(F),ae=Math.abs(z);var ge=R>0?1:-1;h=_-ge*j*a,v=b,M=_+ge*ae*a,$=b}else if(s==="y"){j=Math.abs(B),ae=Math.abs(Y);var ve=O>0?1:-1;h=_,v=b-ve*j*a,M=_,$=b+ve*ae*a}else j=Math.sqrt(F*F+B*B),ae=Math.sqrt(z*z+Y*Y),I=ae/(ae+j),h=_-R*a*(1-I),v=b-O*a*(1-I),M=_+R*a*I,$=b+O*a*I,M=Vl(M,Ul(T,_)),$=Vl($,Ul(A,b)),M=Ul(M,Vl(T,_)),$=Ul($,Vl(A,b)),R=M-_,O=$-b,h=_-R*j/ae,v=b-O*j/ae,h=Vl(h,Ul(u,_)),v=Vl(v,Ul(c,b)),h=Ul(h,Vl(u,_)),v=Ul(v,Vl(c,b)),R=_-h,O=b-v,M=_+R*ae/j,$=b+O*ae/j}e.bezierCurveTo(f,d,h,v,_,b),f=M,d=$}else e.lineTo(_,b)}u=_,c=b,m+=o}return y}var $H=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Ppe=function(e){ot(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 $H},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&rf(i[a*2-2],i[a*2-1]);a--);for(;o=0){var S=u?(v-l)*w+l:(h-s)*w+s;return u?[n,S]:[S,n]}s=h,l=v;break;case a.C:h=o[f++],v=o[f++],m=o[f++],y=o[f++],_=o[f++],b=o[f++];var E=u?y1(s,h,m,_,n,c):y1(l,v,y,b,n,c);if(E>0)for(var T=0;T=0){var S=u?Hr(l,v,y,b,A):Hr(s,h,m,_,A);return u?[n,S]:[S,n]}}s=_,l=b;break}}},t}(Ln),Ope=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}($H),Dpe=function(e){ot(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 Ope},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&&rf(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 Hpe(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=Rt(o.stops,function(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Upe(u,i==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,m=d[0].coord-v,y=d[h-1].coord+v,_=y-m;if(_<.001)return"transparent";Q(d,function(w){w.offset=(w.coord-m)/_}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var b=new ER(0,0,0,0,d,!0);return b[i]=m,b[i+"2"]=y,b}}}function Gpe(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&zpe(o,t))){var a=t.mapDimension(o.dim),s={};return Q(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function zpe(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 Wpe(e,t){return isNaN(e)||isNaN(t)}function jpe(e){for(var t=e.length/2;t>0&&Wpe(e[t*2-2],e[t*2-1]);t--);return t-1}function Hk(e,t){return[e[t*2],e[t*2+1]]}function Ype(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 UH(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var ae=v.getState("emphasis").style;ae.lineWidth=+v.style.lineWidth+1}Mn(v).seriesIndex=n.seriesIndex,XC(v,B,Y,j);var ge=Uk(n.get("smooth")),ve=n.get("smoothMonotone");if(v.setShape({smooth:ge,smoothMonotone:ve,connectNulls:A}),m){var De=s.getCalculationInfo("stackedOnSeries"),Ne=0;m.useStyle(Cn(u.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),De&&(Ne=Uk(De.get("smooth"))),m.setShape({smooth:ge,stackedOnSmooth:Ne,smoothMonotone:ve,connectNulls:A}),YN(m,n,"areaStyle"),Mn(m).seriesIndex=n.seriesIndex,XC(m,B,Y,j)}var ze=this._changePolyState;s.eachItemGraphicEl(function(Me){Me&&(Me.onHoverStateChange=ze)}),this._polyline.onHoverStateChange=ze,this._data=s,this._coordSys=o,this._stackedOnPoints=E,this._points=c,this._step=R,this._valueOrigin=w,n.get("triggerLineEvent")&&(this.packEventData(n,v),m&&this.packEventData(n,m))},t.prototype.packEventData=function(n,r){Mn(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=yf(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 d=n.get("zlevel")||0,h=n.get("z")||0;u=new zR(a,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else is.prototype.highlight.call(this,n,r,i,o)},t.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=yf(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 is.prototype.downplay.call(this,n,r,i,o)},t.prototype._changePolyState=function(n){var r=this._polygon;HN(this._polyline,n),r&&HN(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Ppe({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 Dpe({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");Vt(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Vt(f)?f(null):f;n.eachItemGraphicEl(function(h,v){var m=h;if(m){var y=[h.x,h.y],_=void 0,b=void 0,w=void 0;if(i)if(a){var S=i,E=r.pointToCoord(y);o?(_=S.startAngle,b=S.endAngle,w=-E[1]/180*Math.PI):(_=S.r0,b=S.r,w=E[0])}else{var T=i;o?(_=T.x,b=T.x+T.width,w=h.x):(_=T.y+T.height,b=T.y,w=h.y)}var A=b===_?0:(w-_)/(b-_);l&&(A=1-A);var P=Vt(f)?f(v):c*A+d,I=m.getSymbolPath(),R=I.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:P}),R&&R.animateFrom({style:{opacity:0}},{duration:300,delay:P}),I.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(UH(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 oo({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=jpe(l);c>=0&&(OR(s,DR(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?xpe(a,h):LH(a,f)},enableTextSetter:!0},Xpe(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"),d=i.hostModel,h=d.get("connectNulls"),v=s.get("precision"),m=s.get("distance")||0,y=l.getBaseAxis(),_=y.isHorizontal(),b=y.inverse,w=r.shape,S=b?_?w.x:w.y+w.height:_?w.x+w.width:w.y,E=(_?m:0)*(b?-1:1),T=(_?0:-m)*(b?-1:1),A=_?"x":"y",P=Ype(f,S,A),I=P.range,R=I[1]-I[0],O=void 0;if(R>=1){if(R>1&&!h){var M=Hk(f,I[0]);u.attr({x:M[0]+E,y:M[1]+T}),a&&(O=d.getRawValue(I[0]))}else{var M=c.getPointOn(S,A);M&&u.attr({x:M[0]+E,y:M[1]+T});var $=d.getRawValue(I[0]),F=d.getRawValue(I[1]);a&&(O=qce(i,v,$,F,P.t))}o.lastFrameIndex=I[0]}else{var z=n===1||o.lastFrameIndex>0?I[0]:0,M=Hk(f,z);a&&(O=d.getRawValue(z)),u.attr({x:M[0]+E,y:M[1]+T})}if(a){var B=zU(u);typeof B.setLabelText=="function"&&B.setLabelText(O)}}},t.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=Rpe(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,m=d.next,y=d.stackedOnNext;if(a&&(v=Hl(d.stackedOnCurrent,d.current,i,a,l),h=Hl(d.current,null,i,a,l),y=Hl(d.stackedOnNext,d.next,i,a,l),m=Hl(d.next,null,i,a,l)),Vk(h,m)>3e3||c&&Vk(v,y)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:y}));return}u.shape.__points=d.current,u.shape.points=h;var _={shape:{points:m}};d.current!==h&&(_.shape.__points=d.next),u.stopAnimation(),Iu(u,_,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),Iu(c,{shape:{stackedOnPoints:y}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],w=d.status,S=0;St&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){o==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):o==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var v=void 0;dt(o)?v=qpe[o]:Vt(o)&&(v=o),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,Jpe))}}}}}function eve(e){e.registerChartView(Kpe),e.registerSeriesModel(wpe),e.registerLayout(Zpe("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,Qpe("line"))}var tve="__ec_stack_";function nve(e){return e.get("stack")||tve+e.seriesIndex}function HH(e){return e.dim+e.index}function rve(e,t){var n=[];return t.eachSeriesByType(e,function(r){lve(r)&&n.push(r)}),n}function ive(e){var t={};Q(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),m=0,y=v.count();m0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function ove(e){var t=ive(e),n=[];return Q(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(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=r.getData();s=Math.abs(a[1]-a[0])/h.count()}var v=Ti(r.get("barWidth"),s),m=Ti(r.get("barMaxWidth"),s),y=Ti(r.get("barMinWidth")||(uve(r)?.5:1),s),_=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:v,barMaxWidth:m,barMinWidth:y,barGap:_,barCategoryGap:b,axisKey:HH(o),stackId:nve(r)})}),ave(n)}function ave(e){var t={};Q(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 d=r.barMinWidth;d&&(l[u].minWidth=d);var h=r.barGap;h!=null&&(s.gap=h);var v=r.barCategoryGap;v!=null&&(s.categoryGap=v)});var n={};return Q(t,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=Kn(o).length;s=Math.max(35-l*4,15)+"%"}var u=Ti(s,a),c=Ti(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),Q(o,function(_){var b=_.maxWidth,w=_.minWidth;if(_.width){var S=_.width;b&&(S=Math.min(S,b)),w&&(S=Math.max(S,w)),_.width=S,f-=S+c*S,d--}else{var S=h;b&&bS&&(S=w),S!==h&&(_.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,m;Q(o,function(_,b){_.width||(_.width=h),m=_,v+=_.width*(1+c)}),m&&(v-=m.width*c);var y=-v/2;Q(o,function(_,b){n[i][b]=n[i][b]||{bandWidth:a,offset:y,width:_.width},y+=_.width*(1+c)})}),n}function sve(e,t,n){if(e&&t){var r=e[HH(t)];return r}}function lve(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function uve(e){return e.pipelineContext&&e.pipelineContext.large}var L1="\0__throttleOriginMethod",Gk="\0__throttleRate",zk="\0__throttleType";function GH(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 d=function(){for(var h=[],v=0;v=0?f():a=setTimeout(f,-s),i=r};return d.clear=function(){a&&(clearTimeout(a),a=null)},d.debounceNextCall=function(h){c=h},d}function zH(e,t,n,r){var i=e[t];if(i){var o=i[L1]||i,a=i[zk],s=i[Gk];if(s!==n||a!==r){if(n==null||!r)return e[t]=o;i=e[t]=GH(o,n,r==="debounce"),i[L1]=o,i[zk]=r,i[Gk]=n}return i}}function uA(e,t){var n=e[t];n&&n[L1]&&(n.clear&&n.clear(),e[t]=n[L1])}function od(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&&cA(e,a,t,n)}else{cA(e,t,t,n);var o=gve(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&pve.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function gve(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 mve(e,t,n,r){e.addEventListener(t,n,r)}function yve(e,t,n,r){e.removeEventListener(t,n,r)}var WH=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},_ve=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=jk(r)/jk(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=bve(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},jH="silent";function Sve(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:wve}}function wve(){WH(this.event)}var xve=function(e){ot(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}(ms),bp=function(){function e(t,n){this.x=t,this.y=n}return e}(),Tve=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],OT=new bn(0,0,0,0),YH=function(e){ot(t,e);function t(n,r,i,o,a){var s=e.call(this)||this;return s._hovered=new bp(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new xve,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new hve(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(Q(Tve,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=XH(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 bp(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 bp(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=Sve(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 bp(n,r);if(Yk(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new bn(n-u,r-u,l,l),f=o.length-1;f>=0;f--){var d=o[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(OT.copy(d.getBoundingRect()),d.transform&&OT.applyTransform(d.transform),OT.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,m=Math.PI*2,y=0;y4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function Eve(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?jH:!0}return!1}function Yk(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=Eve(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==jH)){t.target=a;break}}}function XH(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var KH=32,Sp=7;function Cve(e){for(var t=0;e>=KH;)t|=e&1,e>>=1;return e+t}function Xk(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 Ave(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 DT(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 MT(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 Ive(e,t){var n=Sp,r,i,o=0,a=[];r=[],i=[];function s(h,v){r[o]=h,i[o]=v,o+=1}function l(){for(;o>1;){var h=o-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]i[h+1])break;c(h)}}function u(){for(;o>1;){var h=o-2;h>0&&i[h-1]=Sp||A>=Sp);if(P)break;E<0&&(E=0),E+=2}if(n=E,n<1&&(n=1),v===1){for(_=0;_=0;_--)e[T+_]=e[E+_];e[S]=a[w];return}for(var A=n;;){var P=0,I=0,R=!1;do if(t(a[w],e[b])<0){if(e[S--]=e[b--],P++,I=0,--v===0){R=!0;break}}else if(e[S--]=a[w--],I++,P=0,--y===1){R=!0;break}while((P|I)=0;_--)e[T+_]=e[E+_];if(v===0){R=!0;break}}if(e[S--]=a[w--],--y===1){R=!0;break}if(I=y-DT(e[b],a,0,y,y-1,t),I!==0){for(S-=I,w-=I,y-=I,T=S+1,E=w+1,_=0;_=Sp||I>=Sp);if(R)break;A<0&&(A=0),A+=2}if(n=A,n<1&&(n=1),y===1){for(S-=v,b-=v,T=S+1,E=b+1,_=v-1;_>=0;_--)e[T+_]=e[E+_];e[S]=a[w]}else{if(y===0)throw new Error;for(E=S-(y-1),_=0;_s&&(l=s),Kk(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 Zk=!1;function LT(){Zk||(Zk=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function qk(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Rve=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=qk}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(LT(),c.z=0),isNaN(c.z2)&&(LT(),c.z2=0),isNaN(c.zlevel)&&(LT(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,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}(),N1;N1=Dt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function Pd(){return new Date().getTime()}var Pve=function(e){ot(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=Pd()-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&&(N1(r),!n._paused&&n.update())}N1(r)},t.prototype.start=function(){this._running||(this._time=Pd(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Pd(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Pd()-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 dR(n,r.loop);return this.addAnimator(i),i},t}(ms),Ove=300,NT=Dt.domSupported,kT=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=Rt(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}}(),Jk={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Qk=!1;function fA(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Dve(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 FT(e){e&&(e.zrByTouch=!0)}function Mve(e,t){return zo(e.dom,new Lve(e,t),!0)}function ZH(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 Lve=function(){function e(t,n){this.stopPropagation=Qi,this.stopImmediatePropagation=Qi,this.preventDefault=Qi,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),wa={mousedown:function(e){e=zo(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=zo(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=zo(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=zo(this.dom,e);var t=e.toElement||e.relatedTarget;ZH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Qk=!0,e=zo(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Qk||(e=zo(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=zo(this.dom,e),FT(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),wa.mousemove.call(this,e),wa.mousedown.call(this,e)},touchmove:function(e){e=zo(this.dom,e),FT(e),this.handler.processGesture(e,"change"),wa.mousemove.call(this,e)},touchend:function(e){e=zo(this.dom,e),FT(e),this.handler.processGesture(e,"end"),wa.mouseup.call(this,e),+new Date-+this.__lastTouchMoment1||n>0&&!e.noHeader;return Q(e.blocks,function(i){var o=MH(i);o>=t&&(t=o+ +(r&&(!o||aA(i)&&!i.noHeader)))}),t}return 0}function epe(e,t,n,r){var i=t.noHeader,o=npe(MH(t)),a=[],s=t.blocks||[];hl(!s||lt(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(vf(u,l)){var c=new Bde(u[l],null);s.sort(function(m,y){return c.evaluate(m.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}Q(s,function(m,y){var _=t.valueFormatter,b=DH(m)(_?Ke(Ke({},e),{valueFormatter:_}):e,m,y>0?o.html:0,r);b!=null&&a.push(b)});var f=e.renderMode==="richText"?a.join(o.richText):sA(r,a.join(""),i?n:o.html);if(i)return f;var d=oA(t.header,"ordinal",e.useUTC),h=OH(r,e.renderMode).nameStyle,v=PH(r);return e.renderMode==="richText"?LH(e,d,h)+o.richText+f:sA(r,'
'+Xi(d)+"
"+f,n)}function tpe(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(S){return S=lt(S)?S:[S],Rt(S,function(T,E){return oA(T,lt(h)?h[E]:h,u)})};if(!(o&&a)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=o?"":oA(l,"ordinal",u),h=t.valueType,v=a?[]:c(t.value,t.dataIndex),m=!s||!o,y=!s&&o,_=OH(r,i),b=_.nameStyle,w=_.valueStyle;return i==="richText"?(s?"":f)+(o?"":LH(e,d,b))+(a?"":ope(e,v,m,y,w)):sA(r,(s?"":f)+(o?"":rpe(d,!s,b))+(a?"":ipe(v,m,y,w)),n)}}function Mk(e,t,n,r,i,o){if(e){var a=DH(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function npe(e){return{html:Jhe[e],richText:Qhe[e]}}function sA(e,t,n){var r='
',i="margin: "+n+"px 0 0",o=PH(e);return'
'+t+r+"
"}function rpe(e,t,n){var r=t?"margin-left:2px":"";return''+Xi(e)+""}function ipe(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=lt(e)?e:[e],''+Rt(e,function(a){return Xi(a)}).join("  ")+""}function LH(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function ope(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(lt(t)?t.join(" "):t,o)}function ape(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return _f(r)}function NH(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var IT=function(){function e(){this.richTextStyles={},this._nextStyleNameId=SU()}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=Phe({color:n,type:t,renderMode:r,markerId:i});return dt(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};lt(n)?Q(n,function(o){return Ke(r,o)}):Ke(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e}();function spe(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=lt(s),u=ape(t,n),c,f,d,h;if(a>1||l&&!a){var v=lpe(s,t,n,o,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(a){var m=i.getDimensionInfo(o[0]);h=c=ah(i,n,o[0]),f=m.type}else h=c=l?s[0]:s;var y=gR(t),_=y&&t.name||"",b=i.getName(n),w=r?_:b;return Ag("section",{header:_,noHeader:r||!y,sortParam:h,blocks:[Ag("nameValue",{markerType:"item",markerColor:u,name:w,noName:!ts(w),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function lpe(e,t,n,r,i){var o=t.getData(),a=Ch(e,function(f,d,h){var v=o.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];r.length?Q(r,function(f){c(ah(o,n,f),f)}):Q(e,c);function c(f,d){var h=o.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(a?u.push(Ag("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Bl=Ar();function o0(e,t){return e.getName(t)||e.getId(t)}var upe="__universalTransitionEnabled",Ru=function(e){ot(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=Lv({count:fpe,reset:dpe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=Bl(this).sourceManager=new Zhe(this);o.prepareSource();var a=this.getInitialData(n,i);Nk(a,this),this.dataTask.context.data=a,Bl(this).dataBeforeProcessed=a,Lk(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Cg(this),o=i?SS(n):{},a=this.subType;An.hasClass(a)&&(a+="Series"),_n(n,r.getTheme().get(this.subType)),_n(n,this.getDefaultOption()),$N(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&sh(n,o,i)},t.prototype.mergeOption=function(n,r){n=_n(this.option,n,!0),this.fillDataTextStyle(n.data);var i=Cg(this);i&&sh(this.option,n,i);var o=Bl(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);Nk(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Bl(this).dataBeforeProcessed=a,Lk(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!io(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=zR.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[o0(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[upe])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"){Et(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c0&&this._innerSelect(n,r)}},t.registerClass=function(n){return An.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}(An);gs(Ru,Bhe);gs(Ru,zR);JV(Ru,An);function Lk(e){var t=e.name;gR(e)||(e.name=cpe(e)||t)}function cpe(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return Q(n,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function fpe(e){return e.model.getRawData().count()}function dpe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),hpe}function hpe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Nk(e,t){Q(Zle(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Dr(ppe,t))})}function ppe(e,t){var n=lA(e);return n&&n.setOutputEnd((t||this).count()),t}function lA(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 vpe=Ln.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()}}),gpe=Ln.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()}}),mpe=Ln.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),d=Math.cos(u),h=a*.6,v=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*h,l+s+d*h,n,r-v,n,r),e.bezierCurveTo(n,r-v,n-c+f*h,l+s+d*h,n-c,l+s),e.closePath()}}),ype=Ln.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()}}),_pe={line:Au,rect:zr,roundRect:zr,square:zr,circle:sS,diamond:gpe,pin:mpe,arrow:ype,triangle:vpe},bpe={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}},uA={};Q(_pe,function(e,t){uA[t]=new e});var Spe=Ln.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=tU(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=uA[r];i||(r="rect",i=uA[r]),bpe[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function wpe(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 lh(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=HU(e.slice(8),new bn(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=RR(e.slice(7),{},new bn(t,n,r,i),a?"center":"cover"):l=new Spe({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=wpe,o&&l.setColor(o),l}function xpe(e){return lt(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function kH(e,t){if(e!=null)return lt(e)||(e=[e,e]),[Ei(e[0],t[0])||0,Ei(nn(e[1],e[0]),t[1])||0]}var Tpe=function(e){ot(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 lhe(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new pi,i=lh("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=lh(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}(Ru);function FH(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=ah(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 jR=function(e){ot(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=lh(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=Cpe,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(){I1(this.childAt(0))},t.prototype.downplay=function(){R1(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 d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):Iu(d,h,s,r),Jfe(d)}if(this._updateCommon(n,r,l,i,o),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,sm(d,h,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,d,h,v,m,y,_;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,d=o.focus,h=o.blurScope,m=o.labelStatesModels,y=o.hoverScale,_=o.cursorStyle,v=o.emphasisDisabled),!o||n.hasItemOption){var b=o&&o.itemModel?o.itemModel:n.getItemModel(r),w=b.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),d=w.get("focus"),h=w.get("blurScope"),v=w.get("disabled"),m=LR(b),y=w.getShallow("scale"),_=b.getShallow("cursor")}var S=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var T=kH(n.getItemVisual(r,"symbolOffset"),i);T&&(s.x=T[0],s.y=T[1]),_&&s.attr("cursor",_);var E=n.getItemVisual(r,"style"),A=E.fill;if(s instanceof Vu){var P=s.style;s.useStyle(Ke({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},E))}else s.__isEmptyBrush?s.useStyle(Ke({},E)):s.useStyle(E),s.style.decal=null,s.setColor(A,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var I=n.getItemVisual(r,"liftZ"),R=this._z2;I!=null?R==null&&(this._z2=s.z2,s.z2+=I):R!=null&&(s.z2=R,this._z2=null);var O=a&&a.useNameLabel;MR(s,m,{labelFetcher:l,labelDataIndex:r,defaultText:M,inheritColor:A,defaultOpacity:E.opacity});function M(z){return O?n.getName(z):FH(n,z)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var $=s.ensureState("emphasis");$.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var F=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;$.scaleX=this._sizeX*F,$.scaleY=this._sizeY*F,this.setSymbolScale(1),ZC(this,d,h,v)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=Mn(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&O1(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();O1(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return xpe(n.getItemVisual(r,"symbolSize"))},t}(pi);function Cpe(e,t){this.parent.drift(e,t)}function RT(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 kk(e){return e!=null&&!Et(e)&&(e={isIgnore:e}),e||{}}function Fk(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:LR(t),cursorStyle:t.get("cursor")}}var Ape=function(){function e(t){this.group=new pi,this._SymbolCtor=t||jR}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=kk(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=Fk(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};o||r.removeAll(),t.diff(o).add(function(f){var d=c(f);if(RT(t,d,f,n)){var h=new a(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),r.add(h)}}).update(function(f,d){var h=o.getItemGraphicEl(d),v=c(f);if(!RT(t,v,f,n)){r.remove(h);return}var m=t.getItemVisual(f,"symbol")||"circle",y=h&&h.getSymbolType&&h.getSymbolType();if(!h||y&&y!==m)r.remove(h),h=new a(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var _={x:v[0],y:v[1]};s?h.attr(_):Iu(h,_,i)}r.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},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=Fk(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=kk(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 BH(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 VH=typeof Float32Array<"u",Rpe=VH?Float32Array:Array;function Rd(e){return lt(e)?VH?new Float32Array(e):e:new Rpe(e)}function Ppe(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 Ope(e,t,n,r,i,o,a,s){for(var l=Ppe(e,t),u=[],c=[],f=[],d=[],h=[],v=[],m=[],y=$H(i,t,a),_=e.getLayout("points")||[],b=t.getLayout("points")||[],w=0;w=i||m<0)break;if(rf(_,b)){if(l){m+=o;continue}break}if(m===n)e[o>0?"moveTo":"lineTo"](_,b),f=_,d=b;else{var w=_-u,S=b-c;if(w*w+S*S<.5){m+=o;continue}if(a>0){for(var T=m+o,E=t[T*2],A=t[T*2+1];E===_&&A===b&&y=r||rf(E,A))h=_,v=b;else{R=E-u,O=A-c;var F=_-u,z=E-_,B=b-c,Y=A-b,j=void 0,se=void 0;if(s==="x"){j=Math.abs(F),se=Math.abs(z);var ge=R>0?1:-1;h=_-ge*j*a,v=b,M=_+ge*se*a,$=b}else if(s==="y"){j=Math.abs(B),se=Math.abs(Y);var ve=O>0?1:-1;h=_,v=b-ve*j*a,M=_,$=b+ve*se*a}else j=Math.sqrt(F*F+B*B),se=Math.sqrt(z*z+Y*Y),I=se/(se+j),h=_-R*a*(1-I),v=b-O*a*(1-I),M=_+R*a*I,$=b+O*a*I,M=Vl(M,Ul(E,_)),$=Vl($,Ul(A,b)),M=Ul(M,Vl(E,_)),$=Ul($,Vl(A,b)),R=M-_,O=$-b,h=_-R*j/se,v=b-O*j/se,h=Vl(h,Ul(u,_)),v=Vl(v,Ul(c,b)),h=Ul(h,Vl(u,_)),v=Ul(v,Vl(c,b)),R=_-h,O=b-v,M=_+R*se/j,$=b+O*se/j}e.bezierCurveTo(f,d,h,v,_,b),f=M,d=$}else e.lineTo(_,b)}u=_,c=b,m+=o}return y}var UH=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Dpe=function(e){ot(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 UH},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&rf(i[a*2-2],i[a*2-1]);a--);for(;o=0){var S=u?(v-l)*w+l:(h-s)*w+s;return u?[n,S]:[S,n]}s=h,l=v;break;case a.C:h=o[f++],v=o[f++],m=o[f++],y=o[f++],_=o[f++],b=o[f++];var T=u?b1(s,h,m,_,n,c):b1(l,v,y,b,n,c);if(T>0)for(var E=0;E=0){var S=u?Hr(l,v,y,b,A):Hr(s,h,m,_,A);return u?[n,S]:[S,n]}}s=_,l=b;break}}},t}(Ln),Mpe=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(UH),Lpe=function(e){ot(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 Mpe},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&&rf(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 zpe(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=Rt(o.stops,function(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Gpe(u,i==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,m=d[0].coord-v,y=d[h-1].coord+v,_=y-m;if(_<.001)return"transparent";Q(d,function(w){w.offset=(w.coord-m)/_}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var b=new AR(0,0,0,0,d,!0);return b[i]=m,b[i+"2"]=y,b}}}function Wpe(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&jpe(o,t))){var a=t.mapDimension(o.dim),s={};return Q(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function jpe(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 Ype(e,t){return isNaN(e)||isNaN(t)}function Xpe(e){for(var t=e.length/2;t>0&&Ype(e[t*2-2],e[t*2-1]);t--);return t-1}function zk(e,t){return[e[t*2],e[t*2+1]]}function Kpe(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 zH(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var se=v.getState("emphasis").style;se.lineWidth=+v.style.lineWidth+1}Mn(v).seriesIndex=n.seriesIndex,ZC(v,B,Y,j);var ge=Gk(n.get("smooth")),ve=n.get("smoothMonotone");if(v.setShape({smooth:ge,smoothMonotone:ve,connectNulls:A}),m){var De=s.getCalculationInfo("stackedOnSeries"),Ne=0;m.useStyle(Cn(u.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),De&&(Ne=Gk(De.get("smooth"))),m.setShape({smooth:ge,stackedOnSmooth:Ne,smoothMonotone:ve,connectNulls:A}),KN(m,n,"areaStyle"),Mn(m).seriesIndex=n.seriesIndex,ZC(m,B,Y,j)}var ze=this._changePolyState;s.eachItemGraphicEl(function(Me){Me&&(Me.onHoverStateChange=ze)}),this._polyline.onHoverStateChange=ze,this._data=s,this._coordSys=o,this._stackedOnPoints=T,this._points=c,this._step=R,this._valueOrigin=w,n.get("triggerLineEvent")&&(this.packEventData(n,v),m&&this.packEventData(n,m))},t.prototype.packEventData=function(n,r){Mn(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=yf(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 d=n.get("zlevel")||0,h=n.get("z")||0;u=new jR(a,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else is.prototype.highlight.call(this,n,r,i,o)},t.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=yf(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 is.prototype.downplay.call(this,n,r,i,o)},t.prototype._changePolyState=function(n){var r=this._polygon;zN(this._polyline,n),r&&zN(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Dpe({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 Lpe({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");Vt(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Vt(f)?f(null):f;n.eachItemGraphicEl(function(h,v){var m=h;if(m){var y=[h.x,h.y],_=void 0,b=void 0,w=void 0;if(i)if(a){var S=i,T=r.pointToCoord(y);o?(_=S.startAngle,b=S.endAngle,w=-T[1]/180*Math.PI):(_=S.r0,b=S.r,w=T[0])}else{var E=i;o?(_=E.x,b=E.x+E.width,w=h.x):(_=E.y+E.height,b=E.y,w=h.y)}var A=b===_?0:(w-_)/(b-_);l&&(A=1-A);var P=Vt(f)?f(v):c*A+d,I=m.getSymbolPath(),R=I.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:P}),R&&R.animateFrom({style:{opacity:0}},{duration:300,delay:P}),I.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(zH(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 oo({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Xpe(l);c>=0&&(MR(s,LR(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Epe(a,h):FH(a,f)},enableTextSetter:!0},Zpe(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"),d=i.hostModel,h=d.get("connectNulls"),v=s.get("precision"),m=s.get("distance")||0,y=l.getBaseAxis(),_=y.isHorizontal(),b=y.inverse,w=r.shape,S=b?_?w.x:w.y+w.height:_?w.x+w.width:w.y,T=(_?m:0)*(b?-1:1),E=(_?0:-m)*(b?-1:1),A=_?"x":"y",P=Kpe(f,S,A),I=P.range,R=I[1]-I[0],O=void 0;if(R>=1){if(R>1&&!h){var M=zk(f,I[0]);u.attr({x:M[0]+T,y:M[1]+E}),a&&(O=d.getRawValue(I[0]))}else{var M=c.getPointOn(S,A);M&&u.attr({x:M[0]+T,y:M[1]+E});var $=d.getRawValue(I[0]),F=d.getRawValue(I[1]);a&&(O=Qce(i,v,$,F,P.t))}o.lastFrameIndex=I[0]}else{var z=n===1||o.lastFrameIndex>0?I[0]:0,M=zk(f,z);a&&(O=d.getRawValue(z)),u.attr({x:M[0]+T,y:M[1]+E})}if(a){var B=YU(u);typeof B.setLabelText=="function"&&B.setLabelText(O)}}},t.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=Ope(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,m=d.next,y=d.stackedOnNext;if(a&&(v=Hl(d.stackedOnCurrent,d.current,i,a,l),h=Hl(d.current,null,i,a,l),y=Hl(d.stackedOnNext,d.next,i,a,l),m=Hl(d.next,null,i,a,l)),Hk(h,m)>3e3||c&&Hk(v,y)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:y}));return}u.shape.__points=d.current,u.shape.points=h;var _={shape:{points:m}};d.current!==h&&(_.shape.__points=d.next),u.stopAnimation(),Iu(u,_,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),Iu(c,{shape:{stackedOnPoints:y}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],w=d.status,S=0;St&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){o==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):o==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var v=void 0;dt(o)?v=Qpe[o]:Vt(o)&&(v=o),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,eve))}}}}}function nve(e){e.registerChartView(qpe),e.registerSeriesModel(Tpe),e.registerLayout(Jpe("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,tve("line"))}var rve="__ec_stack_";function ive(e){return e.get("stack")||rve+e.seriesIndex}function WH(e){return e.dim+e.index}function ove(e,t){var n=[];return t.eachSeriesByType(e,function(r){cve(r)&&n.push(r)}),n}function ave(e){var t={};Q(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),m=0,y=v.count();m0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function sve(e){var t=ave(e),n=[];return Q(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(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=r.getData();s=Math.abs(a[1]-a[0])/h.count()}var v=Ei(r.get("barWidth"),s),m=Ei(r.get("barMaxWidth"),s),y=Ei(r.get("barMinWidth")||(fve(r)?.5:1),s),_=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:v,barMaxWidth:m,barMinWidth:y,barGap:_,barCategoryGap:b,axisKey:WH(o),stackId:ive(r)})}),lve(n)}function lve(e){var t={};Q(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 d=r.barMinWidth;d&&(l[u].minWidth=d);var h=r.barGap;h!=null&&(s.gap=h);var v=r.barCategoryGap;v!=null&&(s.categoryGap=v)});var n={};return Q(t,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=Kn(o).length;s=Math.max(35-l*4,15)+"%"}var u=Ei(s,a),c=Ei(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),Q(o,function(_){var b=_.maxWidth,w=_.minWidth;if(_.width){var S=_.width;b&&(S=Math.min(S,b)),w&&(S=Math.max(S,w)),_.width=S,f-=S+c*S,d--}else{var S=h;b&&bS&&(S=w),S!==h&&(_.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,m;Q(o,function(_,b){_.width||(_.width=h),m=_,v+=_.width*(1+c)}),m&&(v-=m.width*c);var y=-v/2;Q(o,function(_,b){n[i][b]=n[i][b]||{bandWidth:a,offset:y,width:_.width},y+=_.width*(1+c)})}),n}function uve(e,t,n){if(e&&t){var r=e[WH(t)];return r}}function cve(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function fve(e){return e.pipelineContext&&e.pipelineContext.large}var k1="\0__throttleOriginMethod",Wk="\0__throttleRate",jk="\0__throttleType";function jH(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 d=function(){for(var h=[],v=0;v=0?f():a=setTimeout(f,-s),i=r};return d.clear=function(){a&&(clearTimeout(a),a=null)},d.debounceNextCall=function(h){c=h},d}function YH(e,t,n,r){var i=e[t];if(i){var o=i[k1]||i,a=i[jk],s=i[Wk];if(s!==n||a!==r){if(n==null||!r)return e[t]=o;i=e[t]=jH(o,n,r==="debounce"),i[k1]=o,i[jk]=r,i[Wk]=n}return i}}function fA(e,t){var n=e[t];n&&n[k1]&&(n.clear&&n.clear(),e[t]=n[k1])}function od(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&&dA(e,a,t,n)}else{dA(e,t,t,n);var o=yve(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&gve.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function yve(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 _ve(e,t,n,r){e.addEventListener(t,n,r)}function bve(e,t,n,r){e.removeEventListener(t,n,r)}var XH=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Sve=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=Xk(r)/Xk(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=wve(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},KH="silent";function xve(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:Tve}}function Tve(){XH(this.event)}var Eve=function(e){ot(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}(ms),bp=function(){function e(t,n){this.x=t,this.y=n}return e}(),Cve=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],MT=new bn(0,0,0,0),ZH=function(e){ot(t,e);function t(n,r,i,o,a){var s=e.call(this)||this;return s._hovered=new bp(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new Eve,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new vve(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(Q(Cve,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=qH(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 bp(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 bp(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=xve(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 bp(n,r);if(Kk(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new bn(n-u,r-u,l,l),f=o.length-1;f>=0;f--){var d=o[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(MT.copy(d.getBoundingRect()),d.transform&&MT.applyTransform(d.transform),MT.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,m=Math.PI*2,y=0;y4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function Ave(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?KH:!0}return!1}function Kk(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=Ave(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==KH)){t.target=a;break}}}function qH(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var JH=32,Sp=7;function Ive(e){for(var t=0;e>=JH;)t|=e&1,e>>=1;return e+t}function Zk(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 Rve(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 LT(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 NT(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 Pve(e,t){var n=Sp,r,i,o=0,a=[];r=[],i=[];function s(h,v){r[o]=h,i[o]=v,o+=1}function l(){for(;o>1;){var h=o-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]i[h+1])break;c(h)}}function u(){for(;o>1;){var h=o-2;h>0&&i[h-1]=Sp||A>=Sp);if(P)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),v===1){for(_=0;_=0;_--)e[E+_]=e[T+_];e[S]=a[w];return}for(var A=n;;){var P=0,I=0,R=!1;do if(t(a[w],e[b])<0){if(e[S--]=e[b--],P++,I=0,--v===0){R=!0;break}}else if(e[S--]=a[w--],I++,P=0,--y===1){R=!0;break}while((P|I)=0;_--)e[E+_]=e[T+_];if(v===0){R=!0;break}}if(e[S--]=a[w--],--y===1){R=!0;break}if(I=y-LT(e[b],a,0,y,y-1,t),I!==0){for(S-=I,w-=I,y-=I,E=S+1,T=w+1,_=0;_=Sp||I>=Sp);if(R)break;A<0&&(A=0),A+=2}if(n=A,n<1&&(n=1),y===1){for(S-=v,b-=v,E=S+1,T=b+1,_=v-1;_>=0;_--)e[E+_]=e[T+_];e[S]=a[w]}else{if(y===0)throw new Error;for(T=S-(y-1),_=0;_s&&(l=s),qk(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 Jk=!1;function kT(){Jk||(Jk=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Qk(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Ove=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Qk}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(kT(),c.z=0),isNaN(c.z2)&&(kT(),c.z2=0),isNaN(c.zlevel)&&(kT(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,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}(),F1;F1=Dt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function Pd(){return new Date().getTime()}var Dve=function(e){ot(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=Pd()-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&&(F1(r),!n._paused&&n.update())}F1(r)},t.prototype.start=function(){this._running||(this._time=Pd(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Pd(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Pd()-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 pR(n,r.loop);return this.addAnimator(i),i},t}(ms),Mve=300,FT=Dt.domSupported,$T=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=Rt(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}}(),eF={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},tF=!1;function hA(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Lve(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 BT(e){e&&(e.zrByTouch=!0)}function Nve(e,t){return zo(e.dom,new kve(e,t),!0)}function QH(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 kve=function(){function e(t,n){this.stopPropagation=Qi,this.stopImmediatePropagation=Qi,this.preventDefault=Qi,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),wa={mousedown:function(e){e=zo(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=zo(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=zo(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=zo(this.dom,e);var t=e.toElement||e.relatedTarget;QH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){tF=!0,e=zo(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){tF||(e=zo(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=zo(this.dom,e),BT(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),wa.mousemove.call(this,e),wa.mousedown.call(this,e)},touchmove:function(e){e=zo(this.dom,e),BT(e),this.handler.processGesture(e,"change"),wa.mousemove.call(this,e)},touchend:function(e){e=zo(this.dom,e),BT(e),this.handler.processGesture(e,"end"),wa.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]&&!bg(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[rF],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 ege(e,t){return e.join(",")===t.join(",")}var ga=Q,Cg=Et,sF=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function BT(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=sF.length;n=0;y--){var _=e[y];if(s||(v=_.data.rawIndexOf(_.stackedByDimension,h)),v>=0){var b=_.data.getByRawIndex(_.stackResultDimension,v);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=Mce(d,b),m=b;break}}}return r[0]=d,r[1]=m,r})})}var ds=function(){function e(){this.group=new hi,this.uid=dS("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}();oR(ds);qb(ds);var dF=Ar(),hF={itemStyle:yg(jU,!0),lineStyle:yg(WU,!0)},cge={lineStyle:"stroke",itemStyle:"fill"};function n6(e,t){var n=e.visualStyleMapper||hF[t];return n||(console.warn("Unknown style type '"+t+"'."),hF.itemStyle)}function r6(e,t){var n=e.visualDrawType||cge[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var fge={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=n6(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=r6(e,r),u=a[l],c=Vt(u)?u:null,f=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||Vt(a.fill)?d:a.fill,a.stroke=a.stroke==="auto"||Vt(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var m=e.getDataParams(v),y=Ke({},a);y[l]=c(m),h.setItemVisual(v,"style",y)}}}},Tp=new sr,dge={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=n6(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){Tp.option=l[r];var u=i(Tp),c=a.ensureUniqueItemVisual(s,"style");Ke(c,u),Tp.option.decal&&(a.setItemVisual(s,"decal",Tp.option.decal),Tp.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},hge={performRawSeries:!0,overallReset:function(e){var t=Kt();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)),dF(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=dF(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=r6(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 d=o.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",v=r.count();d[l]=n.getColorFromPalette(h,a,v)}})}})}},o0=Math.PI;function pge(e,t){t=t||{},Cn(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 hi,r=new zr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new oo({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 zr({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 sS({shape:{startAngle:-o0/2,endAngle:-o0/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:o0*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:o0*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 i6=function(){function e(t,n,r,i){this._stageTaskMap=Kt(),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=Kt();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;Q(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";hl(!(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;Q(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(y){s(i,y)&&(y.dirty(),h=!0)}),h&&d.dirty(),a.updatePayload(d,r);var m=a.getPerformArgs(d,i.block);v.each(function(y){y.perform(m)}),d.perform(m)&&(o=!0)}else f&&f.each(function(y,_){s(i,y)&&y.dirty();var b=a.getPerformArgs(y,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(y.context.model),a.updatePayload(y,r),y.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=Kt(),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 d=f.uid,h=s.set(d,a&&a.get(d)||Mv({plan:_ge,reset:bge,count:wge}));h.context={model:f,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||Mv({reset:vge});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Kt(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";hl(!t.createOnAllSeries,h),u?r.eachRawSeriesByType(u,v):c?c(r,i).each(v):(f=!1,Q(r.getSeries(),v));function v(m){var y=m.uid,_=l.set(y,s&&s.get(y)||(d=!0,Mv({reset:gge,onDirty:yge})));_.context={model:m,overallProgress:f},_.agent=a,_.__block=f,o._pipe(m,_)}d&&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 Vt(t)&&(t={overallReset:t,seriesType:xge(t)}),t.uid=dS("stageHandler"),n&&(t.visualType=n),t},e}();function vge(e){e.overallReset(e.ecModel,e.api,e.payload)}function gge(e){return e.overallProgress&&mge}function mge(){this.agent.dirty(),this.getDownstream().dirty()}function yge(){this.agent&&this.agent.dirty()}function _ge(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function bge(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ai(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Rt(t,function(n,r){return o6(r)}):Sge}var Sge=o6(0);function o6(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(n.mainType=v,n[d.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,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),hA=["symbol","symbolSize","symbolRotate","symbolOffset"],mF=hA.concat(["symbolKeepAspect"]),Cge={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&&Bc(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function pA(e,t,n){for(var r=t.type==="radial"?Lge(e,t,n):Mge(e,t,n),i=t.colorStops,o=0;o0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Zn(e)?[e]:st(e)?e:null}function u6(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&kge(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=Rt(n,function(o){return o/i}),r/=i)}return[n,r]}var Fge=new mf(!0);function F1(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function yF(e){return typeof e=="string"&&e!=="none"}function $1(e){var t=e.fill;return t!=null&&t!=="none"}function _F(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 bF(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 vA(e,t,n){var r=qV(t.image,t.__image,n);if(Jb(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)*Kle),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function $ge(e,t,n,r){var i,o=F1(n),a=$1(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Fge,f=t.__dirty;if(!r){var d=n.fill,h=n.stroke,v=a&&!!d.colorStops,m=o&&!!h.colorStops,y=a&&!!d.image,_=o&&!!h.image,b=void 0,w=void 0,S=void 0,E=void 0,T=void 0;(v||m)&&(T=t.getBoundingRect()),v&&(b=f?pA(e,d,T):t.__canvasFillGradient,t.__canvasFillGradient=b),m&&(w=f?pA(e,h,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=w),y&&(S=f||!t.__canvasFillPattern?vA(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),_&&(E=f||!t.__canvasStrokePattern?vA(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),v?e.fillStyle=b:y&&(S?e.fillStyle=S:a=!1),m?e.strokeStyle=w:_&&(E?e.strokeStyle=E:o=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var P,I;e.setLineDash&&n.lineDash&&(i=u6(t),P=i[0],I=i[1]);var R=!0;(u||f&bd)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),R=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),R&&c.rebuildPath(e,l?s:1),P&&(e.setLineDash(P),e.lineDashOffset=I),r||(n.strokeFirst?(o&&bF(e,n),a&&_F(e,n)):(a&&_F(e,n),o&&bF(e,n))),P&&e.setLineDash([])}function Bge(e,t,n){var r=t.__image=qV(n.image,t.__image,t,t.onload);if(!(!r||!Jb(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,d=s-c;e.drawImage(r,u,c,f,d,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function Vge(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||pf,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=u6(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(F1(n)&&e.strokeText(i,n.x,n.y),$1(n)&&e.fillText(i,n.x,n.y)):($1(n)&&e.fillText(i,n.x,n.y),F1(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var SF=["shadowBlur","shadowOffsetX","shadowOffsetY"],wF=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function c6(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Ki(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?tf.opacity:a}(r||t.blend!==n.blend)&&(o||(Ki(e,i),o=!0),e.globalCompositeOperation=t.blend||tf.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[Zr]){if(this._disposed){this.id;return}var o,a,s;if(Et(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[Zr]=!0,!this._model||r){var l=new Zve(this._api),u=this._theme,c=this._model=new jR;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},yA);var f={seriesTransition:s,optionChanged:!0};if(i)this[$i]={silent:o,updateParams:f},this[Zr]=!1,this.getZr().wakeUp();else{try{ld(this),Gl.update.call(this,null,f)}catch(d){throw this[$i]=null,this[Zr]=!1,d}this._ssr||this._zr.flush(),this[$i]=null,this[Zr]=!1,Ep.call(this,o),Cp.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||Dt.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(Dt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return Q(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;Q(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 Q(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(FF[i]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();Q(Nv,function(w,S){if(w.group===i){var E=r?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(sn(n)),T=w.getDom().getBoundingClientRect();l=o(T.left,l),u=o(T.top,u),c=a(T.right,c),f=a(T.bottom,f),d.push({dom:E,left:T.left,top:T.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,m=f-u,y=Eh.createCanvas(),_=tF(y,{renderer:r?"svg":"canvas"});if(_.resize({width:v,height:m}),r){var b="";return Q(d,function(w){var S=w.left-l,E=w.top-u;b+=''+w.dom+""}),_.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&_.painter.setBackgroundColor(n.connectedBackgroundColor),_.refreshImmediately(),_.painter.toDataURL()}else return n.connectedBackgroundColor&&_.add(new zr({shape:{x:0,y:0,width:v,height:m},style:{fill:n.connectedBackgroundColor}})),Q(d,function(w){var S=new Vu({style:{x:w.left*h-l,y:w.top*h-u,image:w.dom}});_.add(S)}),_.refreshImmediately(),y.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return WT(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return WT(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=cT(i,n);return Q(a,function(s,l){l.indexOf("Models")>=0&&Q(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=cT(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?Ige(s,l,r):Rge(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;Q(fme,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&qp(s,function(v){var m=Mn(v);if(m&&m.dataIndex!=null){var y=m.dataModel||a.getSeriesByIndex(m.seriesIndex);return l=y&&y.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=Ke({},m.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&a.getComponent(c,f),h=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),Q(Lv,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),Q(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),cve(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&&wU(this.getDom(),KR,"");var r=this,i=r._api,o=r._model;Q(r._componentsViews,function(a){a.dispose(o,i)}),Q(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 Nv[r.id]},t.prototype.resize=function(n){if(!this[Zr]){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[$i]&&(o==null&&(o=this[$i].silent),i=!0,this[$i]=null),this[Zr]=!0;try{i&&ld(this),Gl.update.call(this,{type:"resize",animation:Ke({duration:0},n&&n.animation)})}catch(a){throw this[Zr]=!1,a}this[Zr]=!1,Ep.call(this,o),Cp.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Et(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!_A[n]){var i=_A[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=Ke({},n);return r.type=Lv[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Et(r)||(r={silent:!!r}),!!B1[n.type]&&this._model){if(this[Zr]){this._pendingActions.push(n);return}var i=r.silent;YT.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&Dt.browser.weChat&&this._throttledZrFlush(),Ep.call(this,i),Cp.call(this,i)}},t.prototype.updateLabelLayout=function(){xa.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(){ld=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),zT(f,!0),zT(f,!1),d.plan()},zT=function(f,d){for(var h=f._model,v=f._scheduler,m=d?f._componentsViews:f._chartsViews,y=d?f._componentsMap:f._chartsMap,_=f._zr,b=f._api,w=0;wd.get("hoverLayerThreshold")&&!Dt.node&&!Dt.worker&&d.eachSeries(function(y){if(!y.preventUsingHoverLayer){var _=f._chartsMap[y.__viewId];_.__alive&&_.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function a(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(m){return l(m,h,v,-1/0),!0})}}function l(f,d,h,v){var m=f.getTextContent(),y=f.getTextGuideLine(),_=f.isGroup;if(_)for(var b=f.childrenRef(),w=0;w0?{duration:m,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(_){if(_.states&&_.states.emphasis){if(Pv(_))return;if(_ instanceof Ln&&yfe(_),_.__dirty){var b=_.prevStates;b&&_.useStates(b)}if(v){_.stateTransition=y;var w=_.getTextContent(),S=_.getTextGuideLine();w&&(w.stateTransition=y),S&&(S.stateTransition=y)}_.__dirty&&i(_)}})}NF=function(f){return new(function(d){ot(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var m=v.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);v=v.parent}},h.prototype.enterEmphasis=function(v,m){C1(v,m),Vo(f)},h.prototype.leaveEmphasis=function(v,m){A1(v,m),Vo(f)},h.prototype.enterBlur=function(v){lfe(v),Vo(f)},h.prototype.leaveBlur=function(v){AU(v),Vo(f)},h.prototype.enterSelect=function(v){IU(v),Vo(f)},h.prototype.leaveSelect=function(v){RU(v),Vo(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(QH))(f)},E6=function(f){function d(h,v){for(var m=0;m=0)){$F.push(n);var o=i6.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function O6(e,t){_A[e]=t}function _me(e,t,n){var r=Zge("registerMap");r&&r(e,t,n)}var bme=Whe;If(YR,fge);If(bS,dge);If(bS,hge);If(YR,Cge);If(bS,Age);If(_6,Xge);R6(t6);P6(Qge,lge);O6("default",pge);Rh({type:nf,event:nf,update:nf},Qi);Rh({type:b_,event:b_,update:b_},Qi);Rh({type:Av,event:Av,update:Av},Qi);Rh({type:S_,event:S_,update:S_},Qi);Rh({type:Iv,event:Iv,update:Iv},Qi);I6("light",Tge);I6("dark",l6);var BF=[],Sme={registerPreprocessor:R6,registerProcessor:P6,registerPostInit:vme,registerPostUpdate:gme,registerUpdateLifecycle:ZR,registerAction:Rh,registerCoordinateSystem:mme,registerLayout:yme,registerVisual:If,registerTransform:bme,registerLoading:O6,registerMap:_me,registerImpl:Kge,PRIORITY:lme,ComponentModel:An,ComponentView:ds,SeriesModel:Ru,ChartView:is,registerComponentModel:function(e){An.registerClass(e)},registerComponentView:function(e){ds.registerClass(e)},registerSeriesModel:function(e){Ru.registerClass(e)},registerChartView:function(e){is.registerClass(e)},registerSubTypeDefaulter:function(e,t){An.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Uve(e,t)}};function Pu(e){if(st(e)){Q(e,function(t){Pu(t)});return}In(BF,e)>=0||(BF.push(e),Vt(e)&&(e={install:e}),e.install(Sme))}var wme=function(e){ot(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}(An),xme=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),bA=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ra).models[0]},t.type="cartesian2dAxis",t}(An);gs(bA,xme);var D6={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,showMinLine:!0,showMaxLine:!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)"]}}},Tme=_n({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},D6),JR=_n({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}}},D6),Eme=_n({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},JR),Cme=Cn({logBase:10},JR);const Ame={category:Tme,value:JR,time:Eme,log:Cme};var Ime=0,SA=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Ime}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Rt(r,Rme);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(!dt(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=Kt(this.categories))},e}();function Rme(e){return Et(e)&&e.value!=null?e.value:e+""}var Pme={value:1,category:1,time:1,log:1};function VF(e,t,n,r){Q(Pme,function(i,o){var a=_n(_n({},Ame[o],!0),r,!0),s=function(l){ot(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 d=Tg(this),h=d?_S(c):{},v=f.getTheme();_n(c,v.get(o+"Axis")),_n(c,this.getDefaultOption()),c.type=UF(c),d&&sh(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=SA.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+o,u.defaultOption=a,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",UF)}function UF(e){return e.type||(e.data?"category":"value")}var _s=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}();qb(_s);function wA(e){return e.type==="interval"||e.type==="log"}function Ome(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=mU(o/t);n!=null&&ar&&(a=i.interval=r);var s=i.intervalPrecision=M6(a),l=i.niceTickExtent=[_r(Math.ceil(e[0]/a)*a,s),_r(Math.floor(e[1]/a)*a,s)];return Dme(l,e),i}function KT(e){var t=Math.pow(10,hR(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,_r(n*t)}function M6(e){return qs(e)+2}function HF(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Dme(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),HF(e,0,t),HF(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function SS(e,t){return e>=t[0]&&e<=t[1]}function wS(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function xS(e,t){return e*(t[1]-t[0])+t[0]}var QR=function(e){ot(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new SA({})),st(i)&&(i=new SA({categories:Rt(i,function(o){return Et(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:dt(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),SS(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),wS(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(xS(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}(_s);_s.registerClass(QR);var bc=_r,Ph=function(e){ot(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 SS(n,this._extent)},t.prototype.normalize=function(n){return wS(n,this._extent)},t.prototype.scale=function(n){return xS(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=M6(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:bc(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]&&h>>1;e[i][1]i&&(this._approxInterval=i);var s=f0.length,l=Math.min(Mme(f0,this._approxInterval,0,s),s-1);this._interval=f0[l][1],this._minLevelUnit=f0[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return Zn(n)?n:+pl(n)},t.prototype.contain=function(n){return SS(this.parse(n),this._extent)},t.prototype.normalize=function(n){return wS(this.parse(n),this._extent)},t.prototype.scale=function(n){return xS(n,this._extent)},t.type="time",t}(Ph),f0=[["second",$R],["minute",BR],["hour",Ov],["quarter-day",Ov*6],["half-day",Ov*12],["day",Jo*1.2],["half-week",Jo*3.5],["week",Jo*7],["month",Jo*31],["quarter",Jo*95],["half-year",xk/2],["year",xk]];function Lme(e,t,n,r){var i=pl(t),o=pl(n),a=function(v){return Ek(i,v,r)===Ek(o,v,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")},d=function(){return f()&&a("second")},h=function(){return d()&&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 d();case"millisecond":return h()}}function Nme(e,t){return e/=Jo,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function kme(e){var t=30*Jo;return e/=t,e>6?6:e>3?3:e>2?2:1}function Fme(e){return e/=Ov,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function GF(e,t){return e/=t?BR:$R,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function $me(e){return mU(e)}function Bme(e,t,n){var r=new Date(e);switch(Wd(t)){case"year":case"month":r[mH(n)](0);case"day":r[yH(n)](1);case"hour":r[_H(n)](0);case"minute":r[bH(n)](0);case"second":r[SH(n)](0),r[wH(n)](0)}return r.getTime()}function Vme(e,t,n,r){var i=1e4,o=vH,a=0;function s(R,O,M,$,F,z,B){for(var Y=new Date(O),j=O,ae=Y[$]();j1&&z===0&&M.unshift({value:M[0].value-j})}}for(var z=0;z<$.length;z++)M.push($[z]);return $}}for(var u=[],c=[],f=0,d=0,h=0;h=r[0]&&b<=r[1]&&f++)}var w=(r[1]-r[0])/t;if(f>w*1.5&&d>w/1.5||(u.push(y),f>w||e===o[h]))break}c=[]}}}for(var S=Ur(Rt(u,function(R){return Ur(R,function(O){return O.value>=r[0]&&O.value<=r[1]&&!O.notAdd})}),function(R){return R.length>0}),E=[],T=S.length-1,h=0;h0;)o*=10;var s=[_r(Gme(r[0]/o)*o),_r(Hme(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){kv.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=ma(n)/ma(this.base),SS(n,this._extent)},t.prototype.normalize=function(n){return n=ma(n)/ma(this.base),wS(n,this._extent)},t.prototype.scale=function(n){return n=xS(n,this._extent),d0(this.base,n)},t.type="log",t}(_s),N6=eP.prototype;N6.getMinorTicks=kv.getMinorTicks;N6.getLabel=kv.getLabel;function h0(e,t){return Ume(e,qs(t))}_s.registerClass(eP);var zme=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 d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,n){this[jme[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=Wme[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),Wme={min:"_determinedMin",max:"_determinedMax"},jme={min:"_dataMin",max:"_dataMax"};function Yme(e,t,n){var r=e.rawExtentInfo;return r||(r=new zme(e,t,n),e.rawExtentInfo=r,r)}function p0(e,t){return t==null?null:g1(t)?NaN:e.parse(t)}function k6(e,t){var n=e.type,r=Yme(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=rve("bar",a),l=!1;if(Q(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=ove(s),c=Xme(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Xme(e,t,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=sve(r,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;Q(a,function(h){s=Math.min(h.offset,s)});var l=-1/0;Q(a,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/o,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function WF(e,t){var n=t,r=k6(e,n),i=r.extent,o=n.get("splitNumber");e instanceof eP&&(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 Kme(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new QR({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new L6({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(_s.getClass(t)||Ph)}}function Zme(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function Oh(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):dt(t)?function(r){return function(i){var o=e.scale.getLabel(i),a=r.replace("{value}",o??"");return a}}(t):Vt(t)?function(r){return function(i,o){return n!=null&&(o=i.value-n),r(tP(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function tP(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function qme(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof QR?i=n.count():(r=n.getTicks(),i=r.length);var a=e.getLabelModel(),s=Oh(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 nye(e){var t=e.getLabelModel().get("customValues");if(t){var n=Oh(e),r=e.scale.getExtent(),i=$6(e,t),o=Ur(i,function(a){return a>=r[0]&&a<=r[1]});return{labels:Rt(o,function(a){var s={value:a};return{formattedLabel:n(s),rawLabel:e.scale.getLabel(s),tickValue:a}})}}return e.type==="category"?iye(e):aye(e)}function rye(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),i=$6(e,n);return{ticks:Ur(i,function(o){return o>=r[0]&&o<=r[1]})}}return e.type==="category"?oye(e,t):{ticks:Rt(e.scale.getTicks(),function(o){return o.value})}}function iye(e){var t=e.getLabelModel(),n=B6(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function B6(e,t){var n=V6(e,"labels"),r=nP(t),i=U6(n,r);if(i)return i;var o,a;return Vt(r)?o=z6(e,r):(a=r==="auto"?sye(e):r,o=G6(e,a)),H6(n,r,{labels:o,labelCategoryInterval:a})}function oye(e,t){var n=V6(e,"ticks"),r=nP(t),i=U6(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),Vt(r))o=z6(e,r,!0);else if(r==="auto"){var s=B6(e,e.getLabelModel());a=s.labelCategoryInterval,o=Rt(s.labels,function(l){return l.tickValue})}else a=r,o=G6(e,a,!0);return H6(n,r,{ticks:o,tickCategoryInterval:a})}function aye(e){var t=e.scale.getTicks(),n=Oh(e);return{labels:Rt(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function V6(e,t){return Rg(e)[t]||(Rg(e)[t]=[])}function U6(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)),d=0,h=0;l<=o[1];l+=s){var v=0,m=0,y=uR(n({value:l}),t.font,"center","top");v=y.width*1.3,m=y.height*1.3,d=Math.max(d,v,7),h=Math.max(h,m,7)}var _=d/c,b=h/f;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(_,b))),S=Rg(e.model),E=e.getExtent(),T=S.lastAutoInterval,A=S.lastTickCount;return T!=null&&A!=null&&Math.abs(T-w)<=1&&Math.abs(A-a)<=1&&T>w&&S.axisExtent0===E[0]&&S.axisExtent1===E[1]?w=T:(S.lastTickCount=a,S.lastAutoInterval=w,S.axisExtent0=E[0],S.axisExtent1=E[1]),w}function uye(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 G6(e,t,n){var r=Oh(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=F6(e),d=a.get("showMinLabel")||f,h=a.get("showMaxLabel")||f;d&&u!==o[0]&&m(o[0]);for(var v=u;v<=o[1];v+=l)m(v);h&&v-l!==o[1]&&m(o[1]);function m(y){var _={value:y};s.push(n?y:{formattedLabel:r(_),rawLabel:i.getLabel(_),tickValue:y})}return s}function z6(e,t,n){var r=e.scale,i=Oh(e),o=[];return Q(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 YF=[0,1],cye=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 Dce(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(),XF(r,i.count())),MN(t,YF,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),XF(r,i.count()));var o=MN(t,r,YF,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=rye(this,n),i=r.ticks,o=Rt(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return fye(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=Rt(r,function(o){return Rt(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return nye(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 lye(this)},e}();function XF(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function fye(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],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;Q(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,a={coord:t[i-1].coord+u*s,tickValue:c[1]+1},t.push(a)}var f=o[0]>o[1];d(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&d(o[0],t[0].coord)&&t.unshift({coord:o[0]}),d(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&d(a.coord,o[1])&&t.push({coord:o[1]});function d(h,v){return h=_r(h),v=_r(v),f?h>v:hr[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}(cye);function TA(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],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));v[d.onZero]=Math.max(Math.min(m,v[1]),v[0])}o.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),mg(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var _=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-_:_,o.z2=1,o}function KF(e){return e.get("coordinateSystem")==="cartesian2d"}function ZF(e){var t={xAxisModel:null,yAxisModel:null};return Q(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,Ra).models[0];t[r]=o}),t}var ZT=Math.log;function hye(e,t,n){var r=Ph.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=k6(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=ZT(e.base);u=[ZT(u[0])/d,ZT(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:f});var h=r.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=r.getInterval.call(e),m=u[0],y=u[1];if(c&&f)v=(y-m)/a;else if(c)for(y=u[0]+v*a;yu[0]&&isFinite(m)&&isFinite(u[0]);)v=KT(v),m=u[1]-v*a;else{var _=e.getTicks().length-1;_>a&&(v=KT(v));var b=v*a;y=Math.ceil(u[1]/v)*v,m=_r(y-b),m<0&&u[0]>=0?(m=0,y=_r(b)):y>0&&u[1]<=0&&(y=0,m=-_r(b))}var w=(i[0].value-o[0].value)/s,S=(i[a].value-o[a].value)/s;r.setExtent.call(e,m+v*w,y+v*S),r.setInterval.call(e,v),(w||S)&&r.setNiceExtent.call(e,m+v,y-v)}var pye=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=xA,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=Kn(a),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=a[d],v=h.model,m=h.scale;wA(m)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(WF(m,v),wA(m)&&(s=h))}c.length&&(s||(s=c.pop(),WF(s.scale,s.model)),Q(c,function(y){hye(y.scale,y.model,s.scale)}))}}i(r.x),i(r.y);var o={};Q(r.x,function(a){qF(r,"y",a,o)}),Q(r.y,function(a){qF(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=M1(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(Q(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=qme(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);a[f]-=c[f]+d,u.position==="top"?a.y+=c.height+d:u.position==="left"&&(a.x+=c.width+d)}}}),l()),Q(this._coordsList,function(u){u.calcAffineTransform()});function l(){Q(s,function(u){var c=u.isHorizontal(),f=c?[0,a.width]:[0,a.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),vye(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]}Et(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i0?"top":"bottom",o="center"):T1(i-cu)?(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}(),QF={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&&(ta(s,s,a),ta(l,l,a));var c=Ke({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Au({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Sg(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);dt(d)&&(d=[d,d]),(dt(h)||Zn(h))&&(h=[h,h]);var v=MH(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],y=h[1];Q([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(_,b){if(d[b]!=="none"&&d[b]!=null){var w=lh(d[b],-m/2,-y/2,m,y,c.stroke,!0),S=_.r+_.offset,E=u?l:s;w.attr({rotation:_.rotate,x:E[0]+S*Math.cos(e.rotation),y:E[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabel:function(e,t,n,r){var i=yye(n,r,t,e),o=bye(n,r,t,e);if(mye(t,o,i),_ye(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=fve(Rt(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));dve(a)}},axisName:function(e,t,n,r){var i=mg(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,t3(o)?e.labelOffset+a*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*cu/180);var v;t3(o)?d=bu.innerTextLayout(e.rotation,h??e.rotation,a):(d=gye(e.rotation,o,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var m=s.getFont(),y=t.get("nameTruncate",!0)||{},_=y.ellipsis,b=mg(e.nameTruncateMaxWidth,y.maxWidth,v),w=new oo({x:f[0],y:f[1],rotation:d.rotation,silent:bu.isLabelSilent(t),style:oh(s,{text:i,font:m,overflow:"truncate",width:b,ellipsis:_,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(lS({el:w,componentModel:t,itemName:i}),w.__fullText=i,w.anid="name",t.get("triggerEvent")){var S=bu.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Mn(w).eventData=S}r.add(w),w.updateTransform(),n.add(w),w.decomposeTransform()}}};function gye(e,t,n,r){var i=gU(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return T1(i-cu/2)?(a=l?"bottom":"top",o="center"):T1(i-cu*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",icu/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function mye(e,t,n){if(!F6(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],d=n[n.length-2];r===!1?(Uo(o),Uo(u)):e3(o,a)&&(r?(Uo(a),Uo(c)):(Uo(o),Uo(u))),i===!1?(Uo(s),Uo(f)):e3(l,s)&&(i?(Uo(l),Uo(d)):(Uo(s),Uo(f)))}}function Uo(e){e&&(e.ignore=!0)}function e3(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=aR([]);return sR(i,i,-e.rotation),n.applyTransform(Ud([],i,e.getLocalTransform())),r.applyTransform(Ud([],i,t.getLocalTransform())),n.intersect(r)}}function t3(e){return e==="middle"||e==="center"}function W6(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||e===t}function Cye(e){var t=rP(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=EA(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=rP(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=Oc(t).pointerEl=new fde[o.type](i3(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=Oc(t).labelEl=new oo(i3(n.label));t.add(o),a3(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Oc(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=Oc(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),a3(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=RR(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){WH(u.event)},onmousedown:QT(this._onHandleDragMove,this,0,0),drift:QT(this._onHandleDragMove,this),ondragend:QT(this._onHandleDragEnd,this)}),r.add(i)),s3(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");st(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,zH(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){o3(this._axisPointerModel,!n&&this._moveAnimation,this._handle,eE(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(eE(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(eE(i)),Oc(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),uA(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 o3(e,t,n,r){K6(Oc(n).lastProp,r)||(Oc(n).lastProp=r,t?Iu(n,r,e):(n.stopAnimation(),n.attr(r)))}function K6(e,t){if(Et(e)&&Et(t)){var n=!0;return Q(t,function(r,i){n=n&&K6(e[i],r)}),!!n}else return e===t}function a3(e,t){e[t.get(["label","show"])?"show":"hide"]()}function eE(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function s3(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 Fye(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 $ye(e,t,n,r,i){var o=n.get("value"),a=Z6(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=yS(s.get("padding")||0),u=s.getFont(),c=uR(a,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var m=i.verticalAlign;m==="bottom"&&(f[1]-=h),m==="middle"&&(f[1]-=h/2),Bye(f,d,h,r);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:oh(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function Bye(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 Z6(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:tP(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Q(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),dt(a)?o=a.replace("{value}",o):Vt(a)&&(o=a(s))}return o}function q6(e,t,n){var r=Vd();return sR(r,r,n.rotation),MC(r,r,n.position),IR([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Vye(e,t,n,r,i,o){var a=bu.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),$ye(t,r,i,o,{position:q6(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Uye(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Hye(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var Gye=function(e){ot(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=l3(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=Fye(o),h=zye[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=TA(l.model,i);Vye(r,n,v,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=TA(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=q6(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=l3(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 d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(kye);function l3(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var zye={line:function(e,t,n){var r=Uye([t,n[0]],[t,n[1]],u3(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:Hye([t-r/2,n[0]],[r,i],u3(e))}}};function u3(e){return e.dim==="x"?0:1}var Wye=function(e){ot(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}(An),Js=Ar(),jye=Q;function J6(e,t,n){if(!Dt.node){var r=t.getZr();Js(r).records||(Js(r).records={}),Yye(r,t);var i=Js(r).records[e]||(Js(r).records[e]={});i.handler=n}}function Yye(e,t){if(Js(e).initialized)return;Js(e).initialized=!0,n("click",Dr(c3,"click")),n("mousemove",Dr(c3,"mousemove")),n("globalout",Kye);function n(r,i){e.on(r,function(o){var a=Zye(t);jye(Js(e).records,function(s){s&&i(s,o,a.dispatchAction)}),Xye(a.pendings,t)})}}function Xye(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 Kye(e,t,n){e.handler("leave",null,n)}function c3(e,t,n,r){t.handler(e,n,r)}function Zye(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 AA(e,t){if(!Dt.node){var n=t.getZr(),r=(Js(n).records||{})[e];r&&(Js(n).records[e]=null)}}var qye=function(e){ot(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";J6("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){AA("axisPointer",r)},t.prototype.dispose=function(n,r){AA("axisPointer",r)},t.type="axisPointer",t}(ds);function Q6(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=yf(o,e);if(a==null||a<0||st(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,d=u.dim,h=f==="x"||f==="radius"?1:0,v=o.mapDimension(d),m=[];m[h]=o.get(v,a),m[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(m)||[]}else n=l.dataToPoint(o.getValues(Rt(l.dimensions,function(_){return o.mapDimension(_)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),n=[y.x+y.width/2,y.y+y.height/2]}return{point:n,el:s}}var f3=Ar();function Jye(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Xn(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){R_(i)&&(i=Q6({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=R_(i),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||R_(i),d={},h={},v={list:[],map:{}},m={showPointer:Dr(e0e,h),showTooltip:Dr(t0e,v)};Q(s.coordSysMap,function(_,b){var w=l||_.containPoint(i);Q(s.coordSysAxesInfo[b],function(S,E){var T=S.axis,A=o0e(u,S);if(!f&&w&&(!u||A)){var P=A&&A.value;P==null&&!l&&(P=T.pointToData(i)),P!=null&&d3(S,P,m,!1,d)}})});var y={};return Q(c,function(_,b){var w=_.linkGroup;w&&!h[b]&&Q(w.axesInfo,function(S,E){var T=h[E];if(S!==_&&T){var A=T.value;w.mapper&&(A=_.axis.scale.parse(w.mapper(A,h3(S),h3(_)))),y[_.key]=A}})}),Q(y,function(_,b){d3(c[b],_,m,!0,d)}),n0e(h,c,d),r0e(v,i,e,a),i0e(c,a,n),d}}function d3(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=Qye(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Ke(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function Qye(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return Q(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,n);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,m=Math.abs(v);m<=a&&((m=0&&s<0)&&(a=m,s=v,i=f,o.length=0),Q(d,function(y){o.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:o,snapToValue:i}}function e0e(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function t0e(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=Pg(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 n0e(e,t,n){var r=n.axesInfo=[];Q(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 r0e(e,t,n,r){if(R_(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 i0e(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=f3(r)[i]||{},a=f3(r)[i]={};Q(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&Q(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;a[h]=d})});var s=[],l=[];Q(o,function(u,c){!a[c]&&l.push(u)}),Q(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 o0e(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 h3(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 R_(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function e8(e){j6.registerAxisPointerClass("CartesianAxisPointer",Gye),e.registerComponentModel(Wye),e.registerComponentView(qye),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!st(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Sye(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Jye)}function a0e(e){Pu(Nye),Pu(e8)}function s0e(e,t){var n=yS(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new zr({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 l0e=function(e){ot(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}(An);function t8(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function n8(e){if(Dt.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,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+o+":-"+h+"px";var v=t+" solid "+i+"px;",m=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+r+";"];return'
'}function v0e(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+=Dt.transformSupported?","+iP+r:",left"+r+",top"+r),f0e+":"+i}function p3(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Dt.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Dt.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+iP+":"+a+";":[["top",0],["left",0],[r8,a]]}function g0e(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=nn(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+i+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),Q(["decoration","align"],function(u){var c=e.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function m0e(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=DH(e,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),t&&i&&r.push(v0e(i,n)),o&&r.push("background-color:"+o),Q(["width","color","radius"],function(h){var v="border-"+h,m=TH(v),y=e.get(m);y!=null&&r.push(v+":"+y+(h==="color"?"":"px"))}),r.push(g0e(c)),f!=null&&r.push("padding:"+yS(f).join("px ")+"px"),r.join(";")+";"}function v3(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&phe(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 y0e=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,Dt.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&&(dt(o)?document.querySelector(o):gg(o)?o:Vt(o)&&o(t.getDom()));v3(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();zo(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=c0e(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=d0e+m0e(t,!this._firstShow,this._longHide)+p3(o[0],o[1],!0)+("border-color:"+_f(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(dt(o)&&r.get("trigger")==="item"&&!t8(r)&&(s=p0e(r,i,o)),dt(t))a.innerHTML=t+s;else if(t){a.innerHTML="",st(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||Dt.node||!i.getDom())){var a=y3(o,i);this._ticket="";var s=o.dataByCoordSys,l=E0e(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=b0e;c.x=o.x,c.y=o.y,c.update(),Mn(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=Q6(o,r),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,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(y3(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=Ap([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=Mn(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;qp(i,function(c){if(Mn(c).dataIndex!=null)return l=c,!0;if(Mn(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=Xn(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=Ap([r.tooltipOption],o),l=this._renderMode,u=[],c=Eg("section",{blocks:[],noHeader:!0}),f=[],d=new CT;Q(n,function(b){Q(b.dataByAxis,function(w){var S=i.getComponent(w.axisDim+"Axis",w.axisIndex),E=w.value;if(!(!S||E==null)){var T=Z6(E,S.axis,i,w.seriesDataIndices,w.valueLabelOpt),A=Eg("section",{header:T,noHeader:!ts(T),sortBlocks:!0,blocks:[]});c.blocks.push(A),Q(w.seriesDataIndices,function(P){var I=i.getSeriesByIndex(P.seriesIndex),R=P.dataIndexInside,O=I.getDataParams(R);if(!(O.dataIndex<0)){O.axisDim=w.axisDim,O.axisIndex=w.axisIndex,O.axisType=w.axisType,O.axisId=w.axisId,O.axisValue=tP(S.axis,{value:E}),O.axisValueLabel=T,O.marker=d.makeTooltipMarker("item",_f(O.color),l);var M=Ik(I.formatTooltip(R,!0,null)),$=M.frag;if($){var F=Ap([I],o).get("valueFormatter");A.blocks.push(F?Ke({valueFormatter:F},$):$)}M.text&&f.push(M.text),u.push(O)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,v=s.get("order"),m=Ok(c,d,l,v,i.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var y=l==="richText"?` +*/var P_={},e6={};function Vve(e){delete e6[e]}function Uve(e){if(!e)return!1;if(typeof e=="string")return x1(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]&&!wg(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[oF],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 nge(e,t){return e.join(",")===t.join(",")}var ga=Q,Ig=Et,uF=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function UT(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=uF.length;n=0;y--){var _=e[y];if(s||(v=_.data.rawIndexOf(_.stackedByDimension,h)),v>=0){var b=_.data.getByRawIndex(_.stackResultDimension,v);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=Nce(d,b),m=b;break}}}return r[0]=d,r[1]=m,r})})}var ds=function(){function e(){this.group=new pi,this.uid=pS("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}();sR(ds);Qb(ds);var pF=Ar(),vF={itemStyle:bg(KU,!0),lineStyle:bg(XU,!0)},dge={lineStyle:"stroke",itemStyle:"fill"};function o6(e,t){var n=e.visualStyleMapper||vF[t];return n||(console.warn("Unknown style type '"+t+"'."),vF.itemStyle)}function a6(e,t){var n=e.visualDrawType||dge[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var hge={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=o6(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=a6(e,r),u=a[l],c=Vt(u)?u:null,f=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||Vt(a.fill)?d:a.fill,a.stroke=a.stroke==="auto"||Vt(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var m=e.getDataParams(v),y=Ke({},a);y[l]=c(m),h.setItemVisual(v,"style",y)}}}},Tp=new sr,pge={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=o6(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){Tp.option=l[r];var u=i(Tp),c=a.ensureUniqueItemVisual(s,"style");Ke(c,u),Tp.option.decal&&(a.setItemVisual(s,"decal",Tp.option.decal),Tp.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},vge={performRawSeries:!0,overallReset:function(e){var t=Kt();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)),pF(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=pF(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=a6(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 d=o.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",v=r.count();d[l]=n.getColorFromPalette(h,a,v)}})}})}},s0=Math.PI;function gge(e,t){t=t||{},Cn(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 pi,r=new zr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new oo({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 zr({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 uS({shape:{startAngle:-s0/2,endAngle:-s0/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:s0*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:s0*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 s6=function(){function e(t,n,r,i){this._stageTaskMap=Kt(),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=Kt();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;Q(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";hl(!(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;Q(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(y){s(i,y)&&(y.dirty(),h=!0)}),h&&d.dirty(),a.updatePayload(d,r);var m=a.getPerformArgs(d,i.block);v.each(function(y){y.perform(m)}),d.perform(m)&&(o=!0)}else f&&f.each(function(y,_){s(i,y)&&y.dirty();var b=a.getPerformArgs(y,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(y.context.model),a.updatePayload(y,r),y.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=Kt(),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 d=f.uid,h=s.set(d,a&&a.get(d)||Lv({plan:Sge,reset:wge,count:Tge}));h.context={model:f,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||Lv({reset:mge});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Kt(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";hl(!t.createOnAllSeries,h),u?r.eachRawSeriesByType(u,v):c?c(r,i).each(v):(f=!1,Q(r.getSeries(),v));function v(m){var y=m.uid,_=l.set(y,s&&s.get(y)||(d=!0,Lv({reset:yge,onDirty:bge})));_.context={model:m,overallProgress:f},_.agent=a,_.__block=f,o._pipe(m,_)}d&&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 Vt(t)&&(t={overallReset:t,seriesType:Ege(t)}),t.uid=pS("stageHandler"),n&&(t.visualType=n),t},e}();function mge(e){e.overallReset(e.ecModel,e.api,e.payload)}function yge(e){return e.overallProgress&&_ge}function _ge(){this.agent.dirty(),this.getDownstream().dirty()}function bge(){this.agent&&this.agent.dirty()}function Sge(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function wge(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ii(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Rt(t,function(n,r){return l6(r)}):xge}var xge=l6(0);function l6(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(n.mainType=v,n[d.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,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),vA=["symbol","symbolSize","symbolRotate","symbolOffset"],_F=vA.concat(["symbolKeepAspect"]),Ige={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&&Bc(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function gA(e,t,n){for(var r=t.type==="radial"?kge(e,t,n):Nge(e,t,n),i=t.colorStops,o=0;o0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Zn(e)?[e]:lt(e)?e:null}function d6(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&$ge(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=Rt(n,function(o){return o/i}),r/=i)}return[n,r]}var Bge=new mf(!0);function B1(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function bF(e){return typeof e=="string"&&e!=="none"}function V1(e){var t=e.fill;return t!=null&&t!=="none"}function SF(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 wF(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 mA(e,t,n){var r=eU(t.image,t.__image,n);if(eS(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)*qle),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function Vge(e,t,n,r){var i,o=B1(n),a=V1(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Bge,f=t.__dirty;if(!r){var d=n.fill,h=n.stroke,v=a&&!!d.colorStops,m=o&&!!h.colorStops,y=a&&!!d.image,_=o&&!!h.image,b=void 0,w=void 0,S=void 0,T=void 0,E=void 0;(v||m)&&(E=t.getBoundingRect()),v&&(b=f?gA(e,d,E):t.__canvasFillGradient,t.__canvasFillGradient=b),m&&(w=f?gA(e,h,E):t.__canvasStrokeGradient,t.__canvasStrokeGradient=w),y&&(S=f||!t.__canvasFillPattern?mA(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),_&&(T=f||!t.__canvasStrokePattern?mA(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),v?e.fillStyle=b:y&&(S?e.fillStyle=S:a=!1),m?e.strokeStyle=w:_&&(T?e.strokeStyle=T:o=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var P,I;e.setLineDash&&n.lineDash&&(i=d6(t),P=i[0],I=i[1]);var R=!0;(u||f&bd)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),R=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),R&&c.rebuildPath(e,l?s:1),P&&(e.setLineDash(P),e.lineDashOffset=I),r||(n.strokeFirst?(o&&wF(e,n),a&&SF(e,n)):(a&&SF(e,n),o&&wF(e,n))),P&&e.setLineDash([])}function Uge(e,t,n){var r=t.__image=eU(n.image,t.__image,t,t.onload);if(!(!r||!eS(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,d=s-c;e.drawImage(r,u,c,f,d,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function Hge(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||pf,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=d6(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(B1(n)&&e.strokeText(i,n.x,n.y),V1(n)&&e.fillText(i,n.x,n.y)):(V1(n)&&e.fillText(i,n.x,n.y),B1(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var xF=["shadowBlur","shadowOffsetX","shadowOffsetY"],TF=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function h6(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Ki(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?tf.opacity:a}(r||t.blend!==n.blend)&&(o||(Ki(e,i),o=!0),e.globalCompositeOperation=t.blend||tf.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[Zr]){if(this._disposed){this.id;return}var o,a,s;if(Et(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[Zr]=!0,!this._model||r){var l=new Jve(this._api),u=this._theme,c=this._model=new XR;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},bA);var f={seriesTransition:s,optionChanged:!0};if(i)this[$i]={silent:o,updateParams:f},this[Zr]=!1,this.getZr().wakeUp();else{try{ld(this),Gl.update.call(this,null,f)}catch(d){throw this[$i]=null,this[Zr]=!1,d}this._ssr||this._zr.flush(),this[$i]=null,this[Zr]=!1,Ep.call(this,o),Cp.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||Dt.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(Dt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return Q(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;Q(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 Q(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(BF[i]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();Q(kv,function(w,S){if(w.group===i){var T=r?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(ln(n)),E=w.getDom().getBoundingClientRect();l=o(E.left,l),u=o(E.top,u),c=a(E.right,c),f=a(E.bottom,f),d.push({dom:T,left:E.left,top:E.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,m=f-u,y=Eh.createCanvas(),_=rF(y,{renderer:r?"svg":"canvas"});if(_.resize({width:v,height:m}),r){var b="";return Q(d,function(w){var S=w.left-l,T=w.top-u;b+=''+w.dom+""}),_.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&_.painter.setBackgroundColor(n.connectedBackgroundColor),_.refreshImmediately(),_.painter.toDataURL()}else return n.connectedBackgroundColor&&_.add(new zr({shape:{x:0,y:0,width:v,height:m},style:{fill:n.connectedBackgroundColor}})),Q(d,function(w){var S=new Vu({style:{x:w.left*h-l,y:w.top*h-u,image:w.dom}});_.add(S)}),_.refreshImmediately(),y.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return YT(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return YT(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=dT(i,n);return Q(a,function(s,l){l.indexOf("Models")>=0&&Q(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=dT(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?Pge(s,l,r):Oge(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;Q(hme,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&qp(s,function(v){var m=Mn(v);if(m&&m.dataIndex!=null){var y=m.dataModel||a.getSeriesByIndex(m.seriesIndex);return l=y&&y.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=Ke({},m.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&a.getComponent(c,f),h=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),Q(Nv,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),Q(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),dve(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&&EU(this.getDom(),qR,"");var r=this,i=r._api,o=r._model;Q(r._componentsViews,function(a){a.dispose(o,i)}),Q(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 kv[r.id]},t.prototype.resize=function(n){if(!this[Zr]){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[$i]&&(o==null&&(o=this[$i].silent),i=!0,this[$i]=null),this[Zr]=!0;try{i&&ld(this),Gl.update.call(this,{type:"resize",animation:Ke({duration:0},n&&n.animation)})}catch(a){throw this[Zr]=!1,a}this[Zr]=!1,Ep.call(this,o),Cp.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Et(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!SA[n]){var i=SA[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=Ke({},n);return r.type=Nv[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Et(r)||(r={silent:!!r}),!!U1[n.type]&&this._model){if(this[Zr]){this._pendingActions.push(n);return}var i=r.silent;KT.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&Dt.browser.weChat&&this._throttledZrFlush(),Ep.call(this,i),Cp.call(this,i)}},t.prototype.updateLabelLayout=function(){xa.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(){ld=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),jT(f,!0),jT(f,!1),d.plan()},jT=function(f,d){for(var h=f._model,v=f._scheduler,m=d?f._componentsViews:f._chartsViews,y=d?f._componentsMap:f._chartsMap,_=f._zr,b=f._api,w=0;wd.get("hoverLayerThreshold")&&!Dt.node&&!Dt.worker&&d.eachSeries(function(y){if(!y.preventUsingHoverLayer){var _=f._chartsMap[y.__viewId];_.__alive&&_.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function a(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(m){return l(m,h,v,-1/0),!0})}}function l(f,d,h,v){var m=f.getTextContent(),y=f.getTextGuideLine(),_=f.isGroup;if(_)for(var b=f.childrenRef(),w=0;w0?{duration:m,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(_){if(_.states&&_.states.emphasis){if(Ov(_))return;if(_ instanceof Ln&&bfe(_),_.__dirty){var b=_.prevStates;b&&_.useStates(b)}if(v){_.stateTransition=y;var w=_.getTextContent(),S=_.getTextGuideLine();w&&(w.stateTransition=y),S&&(S.stateTransition=y)}_.__dirty&&i(_)}})}FF=function(f){return new(function(d){ot(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var m=v.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);v=v.parent}},h.prototype.enterEmphasis=function(v,m){I1(v,m),Vo(f)},h.prototype.leaveEmphasis=function(v,m){R1(v,m),Vo(f)},h.prototype.enterBlur=function(v){cfe(v),Vo(f)},h.prototype.leaveBlur=function(v){PU(v),Vo(f)},h.prototype.enterSelect=function(v){OU(v),Vo(f)},h.prototype.leaveSelect=function(v){DU(v),Vo(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(n6))(f)},I6=function(f){function d(h,v){for(var m=0;m=0)){VF.push(n);var o=s6.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function L6(e,t){SA[e]=t}function Sme(e,t,n){var r=Jge("registerMap");r&&r(e,t,n)}var wme=Yhe;If(KR,hge);If(wS,pge);If(wS,vge);If(KR,Ige);If(wS,Rge);If(w6,Zge);D6(i6);M6(tme,cge);L6("default",gge);Rh({type:nf,event:nf,update:nf},Qi);Rh({type:w_,event:w_,update:w_},Qi);Rh({type:Iv,event:Iv,update:Iv},Qi);Rh({type:x_,event:x_,update:x_},Qi);Rh({type:Rv,event:Rv,update:Rv},Qi);O6("light",Cge);O6("dark",f6);var UF=[],xme={registerPreprocessor:D6,registerProcessor:M6,registerPostInit:mme,registerPostUpdate:yme,registerUpdateLifecycle:JR,registerAction:Rh,registerCoordinateSystem:_me,registerLayout:bme,registerVisual:If,registerTransform:wme,registerLoading:L6,registerMap:Sme,registerImpl:qge,PRIORITY:cme,ComponentModel:An,ComponentView:ds,SeriesModel:Ru,ChartView:is,registerComponentModel:function(e){An.registerClass(e)},registerComponentView:function(e){ds.registerClass(e)},registerSeriesModel:function(e){Ru.registerClass(e)},registerChartView:function(e){is.registerClass(e)},registerSubTypeDefaulter:function(e,t){An.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Gve(e,t)}};function Pu(e){if(lt(e)){Q(e,function(t){Pu(t)});return}In(UF,e)>=0||(UF.push(e),Vt(e)&&(e={install:e}),e.install(xme))}var Tme=function(e){ot(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}(An),Eme=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),wA=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ra).models[0]},t.type="cartesian2dAxis",t}(An);gs(wA,Eme);var N6={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,showMinLine:!0,showMaxLine:!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)"]}}},Cme=_n({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},N6),eP=_n({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}}},N6),Ame=_n({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},eP),Ime=Cn({logBase:10},eP);const Rme={category:Cme,value:eP,time:Ame,log:Ime};var Pme=0,xA=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Pme}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Rt(r,Ome);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(!dt(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=Kt(this.categories))},e}();function Ome(e){return Et(e)&&e.value!=null?e.value:e+""}var Dme={value:1,category:1,time:1,log:1};function HF(e,t,n,r){Q(Dme,function(i,o){var a=_n(_n({},Rme[o],!0),r,!0),s=function(l){ot(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 d=Cg(this),h=d?SS(c):{},v=f.getTheme();_n(c,v.get(o+"Axis")),_n(c,this.getDefaultOption()),c.type=GF(c),d&&sh(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=xA.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",GF)}function GF(e){return e.type||(e.data?"category":"value")}var _s=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}();Qb(_s);function TA(e){return e.type==="interval"||e.type==="log"}function Mme(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=bU(o/t);n!=null&&ar&&(a=i.interval=r);var s=i.intervalPrecision=k6(a),l=i.niceTickExtent=[_r(Math.ceil(e[0]/a)*a,s),_r(Math.floor(e[1]/a)*a,s)];return Lme(l,e),i}function qT(e){var t=Math.pow(10,vR(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,_r(n*t)}function k6(e){return qs(e)+2}function zF(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Lme(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),zF(e,0,t),zF(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function xS(e,t){return e>=t[0]&&e<=t[1]}function TS(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function ES(e,t){return e*(t[1]-t[0])+t[0]}var tP=function(e){ot(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new xA({})),lt(i)&&(i=new xA({categories:Rt(i,function(o){return Et(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:dt(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),xS(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),TS(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(ES(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}(_s);_s.registerClass(tP);var bc=_r,Ph=function(e){ot(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 xS(n,this._extent)},t.prototype.normalize=function(n){return TS(n,this._extent)},t.prototype.scale=function(n){return ES(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=k6(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:bc(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]&&h>>1;e[i][1]i&&(this._approxInterval=i);var s=h0.length,l=Math.min(Nme(h0,this._approxInterval,0,s),s-1);this._interval=h0[l][1],this._minLevelUnit=h0[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return Zn(n)?n:+pl(n)},t.prototype.contain=function(n){return xS(this.parse(n),this._extent)},t.prototype.normalize=function(n){return TS(this.parse(n),this._extent)},t.prototype.scale=function(n){return ES(n,this._extent)},t.type="time",t}(Ph),h0=[["second",VR],["minute",UR],["hour",Dv],["quarter-day",Dv*6],["half-day",Dv*12],["day",Jo*1.2],["half-week",Jo*3.5],["week",Jo*7],["month",Jo*31],["quarter",Jo*95],["half-year",Ek/2],["year",Ek]];function kme(e,t,n,r){var i=pl(t),o=pl(n),a=function(v){return Ak(i,v,r)===Ak(o,v,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")},d=function(){return f()&&a("second")},h=function(){return d()&&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 d();case"millisecond":return h()}}function Fme(e,t){return e/=Jo,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function $me(e){var t=30*Jo;return e/=t,e>6?6:e>3?3:e>2?2:1}function Bme(e){return e/=Dv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function WF(e,t){return e/=t?UR:VR,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Vme(e){return bU(e)}function Ume(e,t,n){var r=new Date(e);switch(Wd(t)){case"year":case"month":r[bH(n)](0);case"day":r[SH(n)](1);case"hour":r[wH(n)](0);case"minute":r[xH(n)](0);case"second":r[TH(n)](0),r[EH(n)](0)}return r.getTime()}function Hme(e,t,n,r){var i=1e4,o=yH,a=0;function s(R,O,M,$,F,z,B){for(var Y=new Date(O),j=O,se=Y[$]();j1&&z===0&&M.unshift({value:M[0].value-j})}}for(var z=0;z<$.length;z++)M.push($[z]);return $}}for(var u=[],c=[],f=0,d=0,h=0;h=r[0]&&b<=r[1]&&f++)}var w=(r[1]-r[0])/t;if(f>w*1.5&&d>w/1.5||(u.push(y),f>w||e===o[h]))break}c=[]}}}for(var S=Ur(Rt(u,function(R){return Ur(R,function(O){return O.value>=r[0]&&O.value<=r[1]&&!O.notAdd})}),function(R){return R.length>0}),T=[],E=S.length-1,h=0;h0;)o*=10;var s=[_r(Wme(r[0]/o)*o),_r(zme(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){Fv.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=ma(n)/ma(this.base),xS(n,this._extent)},t.prototype.normalize=function(n){return n=ma(n)/ma(this.base),TS(n,this._extent)},t.prototype.scale=function(n){return n=ES(n,this._extent),p0(this.base,n)},t.type="log",t}(_s),$6=nP.prototype;$6.getMinorTicks=Fv.getMinorTicks;$6.getLabel=Fv.getLabel;function v0(e,t){return Gme(e,qs(t))}_s.registerClass(nP);var jme=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 d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,n){this[Xme[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=Yme[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),Yme={min:"_determinedMin",max:"_determinedMax"},Xme={min:"_dataMin",max:"_dataMax"};function Kme(e,t,n){var r=e.rawExtentInfo;return r||(r=new jme(e,t,n),e.rawExtentInfo=r,r)}function g0(e,t){return t==null?null:y1(t)?NaN:e.parse(t)}function B6(e,t){var n=e.type,r=Kme(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=ove("bar",a),l=!1;if(Q(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=sve(s),c=Zme(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Zme(e,t,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=uve(r,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;Q(a,function(h){s=Math.min(h.offset,s)});var l=-1/0;Q(a,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/o,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function YF(e,t){var n=t,r=B6(e,n),i=r.extent,o=n.get("splitNumber");e instanceof nP&&(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 qme(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new tP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new F6({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(_s.getClass(t)||Ph)}}function Jme(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function Oh(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):dt(t)?function(r){return function(i){var o=e.scale.getLabel(i),a=r.replace("{value}",o??"");return a}}(t):Vt(t)?function(r){return function(i,o){return n!=null&&(o=i.value-n),r(rP(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function rP(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Qme(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof tP?i=n.count():(r=n.getTicks(),i=r.length);var a=e.getLabelModel(),s=Oh(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 iye(e){var t=e.getLabelModel().get("customValues");if(t){var n=Oh(e),r=e.scale.getExtent(),i=U6(e,t),o=Ur(i,function(a){return a>=r[0]&&a<=r[1]});return{labels:Rt(o,function(a){var s={value:a};return{formattedLabel:n(s),rawLabel:e.scale.getLabel(s),tickValue:a}})}}return e.type==="category"?aye(e):lye(e)}function oye(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),i=U6(e,n);return{ticks:Ur(i,function(o){return o>=r[0]&&o<=r[1]})}}return e.type==="category"?sye(e,t):{ticks:Rt(e.scale.getTicks(),function(o){return o.value})}}function aye(e){var t=e.getLabelModel(),n=H6(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function H6(e,t){var n=G6(e,"labels"),r=iP(t),i=z6(n,r);if(i)return i;var o,a;return Vt(r)?o=Y6(e,r):(a=r==="auto"?uye(e):r,o=j6(e,a)),W6(n,r,{labels:o,labelCategoryInterval:a})}function sye(e,t){var n=G6(e,"ticks"),r=iP(t),i=z6(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),Vt(r))o=Y6(e,r,!0);else if(r==="auto"){var s=H6(e,e.getLabelModel());a=s.labelCategoryInterval,o=Rt(s.labels,function(l){return l.tickValue})}else a=r,o=j6(e,a,!0);return W6(n,r,{ticks:o,tickCategoryInterval:a})}function lye(e){var t=e.scale.getTicks(),n=Oh(e);return{labels:Rt(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function G6(e,t){return Og(e)[t]||(Og(e)[t]=[])}function z6(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)),d=0,h=0;l<=o[1];l+=s){var v=0,m=0,y=fR(n({value:l}),t.font,"center","top");v=y.width*1.3,m=y.height*1.3,d=Math.max(d,v,7),h=Math.max(h,m,7)}var _=d/c,b=h/f;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(_,b))),S=Og(e.model),T=e.getExtent(),E=S.lastAutoInterval,A=S.lastTickCount;return E!=null&&A!=null&&Math.abs(E-w)<=1&&Math.abs(A-a)<=1&&E>w&&S.axisExtent0===T[0]&&S.axisExtent1===T[1]?w=E:(S.lastTickCount=a,S.lastAutoInterval=w,S.axisExtent0=T[0],S.axisExtent1=T[1]),w}function fye(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 j6(e,t,n){var r=Oh(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=V6(e),d=a.get("showMinLabel")||f,h=a.get("showMaxLabel")||f;d&&u!==o[0]&&m(o[0]);for(var v=u;v<=o[1];v+=l)m(v);h&&v-l!==o[1]&&m(o[1]);function m(y){var _={value:y};s.push(n?y:{formattedLabel:r(_),rawLabel:i.getLabel(_),tickValue:y})}return s}function Y6(e,t,n){var r=e.scale,i=Oh(e),o=[];return Q(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 KF=[0,1],dye=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 Lce(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(),ZF(r,i.count())),NN(t,KF,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),ZF(r,i.count()));var o=NN(t,r,KF,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=oye(this,n),i=r.ticks,o=Rt(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return hye(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=Rt(r,function(o){return Rt(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return iye(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 cye(this)},e}();function ZF(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function hye(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],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;Q(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,a={coord:t[i-1].coord+u*s,tickValue:c[1]+1},t.push(a)}var f=o[0]>o[1];d(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&d(o[0],t[0].coord)&&t.unshift({coord:o[0]}),d(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&d(a.coord,o[1])&&t.push({coord:o[1]});function d(h,v){return h=_r(h),v=_r(v),f?h>v:hr[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}(dye);function CA(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],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));v[d.onZero]=Math.max(Math.min(m,v[1]),v[0])}o.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),_g(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var _=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-_:_,o.z2=1,o}function qF(e){return e.get("coordinateSystem")==="cartesian2d"}function JF(e){var t={xAxisModel:null,yAxisModel:null};return Q(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,Ra).models[0];t[r]=o}),t}var JT=Math.log;function vye(e,t,n){var r=Ph.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=B6(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=JT(e.base);u=[JT(u[0])/d,JT(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:f});var h=r.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=r.getInterval.call(e),m=u[0],y=u[1];if(c&&f)v=(y-m)/a;else if(c)for(y=u[0]+v*a;yu[0]&&isFinite(m)&&isFinite(u[0]);)v=qT(v),m=u[1]-v*a;else{var _=e.getTicks().length-1;_>a&&(v=qT(v));var b=v*a;y=Math.ceil(u[1]/v)*v,m=_r(y-b),m<0&&u[0]>=0?(m=0,y=_r(b)):y>0&&u[1]<=0&&(y=0,m=-_r(b))}var w=(i[0].value-o[0].value)/s,S=(i[a].value-o[a].value)/s;r.setExtent.call(e,m+v*w,y+v*S),r.setInterval.call(e,v),(w||S)&&r.setNiceExtent.call(e,m+v,y-v)}var gye=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=EA,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=Kn(a),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=a[d],v=h.model,m=h.scale;TA(m)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(YF(m,v),TA(m)&&(s=h))}c.length&&(s||(s=c.pop(),YF(s.scale,s.model)),Q(c,function(y){vye(y.scale,y.model,s.scale)}))}}i(r.x),i(r.y);var o={};Q(r.x,function(a){QF(r,"y",a,o)}),Q(r.y,function(a){QF(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=N1(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(Q(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Qme(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);a[f]-=c[f]+d,u.position==="top"?a.y+=c.height+d:u.position==="left"&&(a.x+=c.width+d)}}}),l()),Q(this._coordsList,function(u){u.calcAffineTransform()});function l(){Q(s,function(u){var c=u.isHorizontal(),f=c?[0,a.width]:[0,a.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),mye(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]}Et(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i0?"top":"bottom",o="center"):C1(i-cu)?(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}(),t3={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&&(ta(s,s,a),ta(l,l,a));var c=Ke({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Au({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});xg(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);dt(d)&&(d=[d,d]),(dt(h)||Zn(h))&&(h=[h,h]);var v=kH(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],y=h[1];Q([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(_,b){if(d[b]!=="none"&&d[b]!=null){var w=lh(d[b],-m/2,-y/2,m,y,c.stroke,!0),S=_.r+_.offset,T=u?l:s;w.attr({rotation:_.rotate,x:T[0]+S*Math.cos(e.rotation),y:T[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabel:function(e,t,n,r){var i=bye(n,r,t,e),o=wye(n,r,t,e);if(_ye(t,o,i),Sye(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=hve(Rt(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));pve(a)}},axisName:function(e,t,n,r){var i=_g(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,r3(o)?e.labelOffset+a*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*cu/180);var v;r3(o)?d=bu.innerTextLayout(e.rotation,h??e.rotation,a):(d=yye(e.rotation,o,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var m=s.getFont(),y=t.get("nameTruncate",!0)||{},_=y.ellipsis,b=_g(e.nameTruncateMaxWidth,y.maxWidth,v),w=new oo({x:f[0],y:f[1],rotation:d.rotation,silent:bu.isLabelSilent(t),style:oh(s,{text:i,font:m,overflow:"truncate",width:b,ellipsis:_,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(cS({el:w,componentModel:t,itemName:i}),w.__fullText=i,w.anid="name",t.get("triggerEvent")){var S=bu.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Mn(w).eventData=S}r.add(w),w.updateTransform(),n.add(w),w.decomposeTransform()}}};function yye(e,t,n,r){var i=_U(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return C1(i-cu/2)?(a=l?"bottom":"top",o="center"):C1(i-cu*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",icu/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function _ye(e,t,n){if(!V6(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],d=n[n.length-2];r===!1?(Uo(o),Uo(u)):n3(o,a)&&(r?(Uo(a),Uo(c)):(Uo(o),Uo(u))),i===!1?(Uo(s),Uo(f)):n3(l,s)&&(i?(Uo(l),Uo(d)):(Uo(s),Uo(f)))}}function Uo(e){e&&(e.ignore=!0)}function n3(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=lR([]);return uR(i,i,-e.rotation),n.applyTransform(Ud([],i,e.getLocalTransform())),r.applyTransform(Ud([],i,t.getLocalTransform())),n.intersect(r)}}function r3(e){return e==="middle"||e==="center"}function X6(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||e===t}function Iye(e){var t=oP(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=AA(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=oP(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=Oc(t).pointerEl=new hde[o.type](a3(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=Oc(t).labelEl=new oo(a3(n.label));t.add(o),l3(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Oc(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=Oc(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),l3(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=OR(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){XH(u.event)},onmousedown:tE(this._onHandleDragMove,this,0,0),drift:tE(this._onHandleDragMove,this),ondragend:tE(this._onHandleDragEnd,this)}),r.add(i)),u3(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");lt(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,YH(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){s3(this._axisPointerModel,!n&&this._moveAnimation,this._handle,nE(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(nE(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(nE(i)),Oc(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),fA(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 s3(e,t,n,r){J6(Oc(n).lastProp,r)||(Oc(n).lastProp=r,t?Iu(n,r,e):(n.stopAnimation(),n.attr(r)))}function J6(e,t){if(Et(e)&&Et(t)){var n=!0;return Q(t,function(r,i){n=n&&J6(e[i],r)}),!!n}else return e===t}function l3(e,t){e[t.get(["label","show"])?"show":"hide"]()}function nE(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function u3(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 Bye(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 Vye(e,t,n,r,i){var o=n.get("value"),a=Q6(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=bS(s.get("padding")||0),u=s.getFont(),c=fR(a,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var m=i.verticalAlign;m==="bottom"&&(f[1]-=h),m==="middle"&&(f[1]-=h/2),Uye(f,d,h,r);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:oh(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function Uye(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 Q6(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:rP(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Q(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),dt(a)?o=a.replace("{value}",o):Vt(a)&&(o=a(s))}return o}function e8(e,t,n){var r=Vd();return uR(r,r,n.rotation),NC(r,r,n.position),PR([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Hye(e,t,n,r,i,o){var a=bu.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Vye(t,r,i,o,{position:e8(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Gye(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function zye(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var Wye=function(e){ot(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=c3(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=Bye(o),h=jye[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=CA(l.model,i);Hye(r,n,v,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=CA(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=e8(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=c3(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 d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:h,tooltipOption:v[c]}},t}($ye);function c3(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var jye={line:function(e,t,n){var r=Gye([t,n[0]],[t,n[1]],f3(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:zye([t-r/2,n[0]],[r,i],f3(e))}}};function f3(e){return e.dim==="x"?0:1}var Yye=function(e){ot(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}(An),Js=Ar(),Xye=Q;function t8(e,t,n){if(!Dt.node){var r=t.getZr();Js(r).records||(Js(r).records={}),Kye(r,t);var i=Js(r).records[e]||(Js(r).records[e]={});i.handler=n}}function Kye(e,t){if(Js(e).initialized)return;Js(e).initialized=!0,n("click",Dr(d3,"click")),n("mousemove",Dr(d3,"mousemove")),n("globalout",qye);function n(r,i){e.on(r,function(o){var a=Jye(t);Xye(Js(e).records,function(s){s&&i(s,o,a.dispatchAction)}),Zye(a.pendings,t)})}}function Zye(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 qye(e,t,n){e.handler("leave",null,n)}function d3(e,t,n,r){t.handler(e,n,r)}function Jye(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 RA(e,t){if(!Dt.node){var n=t.getZr(),r=(Js(n).records||{})[e];r&&(Js(n).records[e]=null)}}var Qye=function(e){ot(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";t8("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){RA("axisPointer",r)},t.prototype.dispose=function(n,r){RA("axisPointer",r)},t.type="axisPointer",t}(ds);function n8(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=yf(o,e);if(a==null||a<0||lt(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,d=u.dim,h=f==="x"||f==="radius"?1:0,v=o.mapDimension(d),m=[];m[h]=o.get(v,a),m[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(m)||[]}else n=l.dataToPoint(o.getValues(Rt(l.dimensions,function(_){return o.mapDimension(_)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),n=[y.x+y.width/2,y.y+y.height/2]}return{point:n,el:s}}var h3=Ar();function e0e(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Xn(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){O_(i)&&(i=n8({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=O_(i),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||O_(i),d={},h={},v={list:[],map:{}},m={showPointer:Dr(n0e,h),showTooltip:Dr(r0e,v)};Q(s.coordSysMap,function(_,b){var w=l||_.containPoint(i);Q(s.coordSysAxesInfo[b],function(S,T){var E=S.axis,A=s0e(u,S);if(!f&&w&&(!u||A)){var P=A&&A.value;P==null&&!l&&(P=E.pointToData(i)),P!=null&&p3(S,P,m,!1,d)}})});var y={};return Q(c,function(_,b){var w=_.linkGroup;w&&!h[b]&&Q(w.axesInfo,function(S,T){var E=h[T];if(S!==_&&E){var A=E.value;w.mapper&&(A=_.axis.scale.parse(w.mapper(A,v3(S),v3(_)))),y[_.key]=A}})}),Q(y,function(_,b){p3(c[b],_,m,!0,d)}),i0e(h,c,d),o0e(v,i,e,a),a0e(c,a,n),d}}function p3(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=t0e(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Ke(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function t0e(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return Q(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,n);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,m=Math.abs(v);m<=a&&((m=0&&s<0)&&(a=m,s=v,i=f,o.length=0),Q(d,function(y){o.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:o,snapToValue:i}}function n0e(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function r0e(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=Dg(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 i0e(e,t,n){var r=n.axesInfo=[];Q(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 o0e(e,t,n,r){if(O_(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 a0e(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=h3(r)[i]||{},a=h3(r)[i]={};Q(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&Q(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;a[h]=d})});var s=[],l=[];Q(o,function(u,c){!a[c]&&l.push(u)}),Q(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 s0e(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 v3(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 O_(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function r8(e){K6.registerAxisPointerClass("CartesianAxisPointer",Wye),e.registerComponentModel(Yye),e.registerComponentView(Qye),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!lt(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=xye(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},e0e)}function l0e(e){Pu(Fye),Pu(r8)}function u0e(e,t){var n=bS(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new zr({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 c0e=function(e){ot(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}(An);function i8(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function o8(e){if(Dt.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,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+o+":-"+h+"px";var v=t+" solid "+i+"px;",m=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+r+";"];return'
'}function m0e(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+=Dt.transformSupported?","+aP+r:",left"+r+",top"+r),h0e+":"+i}function g3(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Dt.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Dt.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+aP+":"+a+";":[["top",0],["left",0],[a8,a]]}function y0e(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=nn(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+i+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),Q(["decoration","align"],function(u){var c=e.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function _0e(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=NH(e,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),t&&i&&r.push(m0e(i,n)),o&&r.push("background-color:"+o),Q(["width","color","radius"],function(h){var v="border-"+h,m=AH(v),y=e.get(m);y!=null&&r.push(v+":"+y+(h==="color"?"":"px"))}),r.push(y0e(c)),f!=null&&r.push("padding:"+bS(f).join("px ")+"px"),r.join(";")+";"}function m3(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&ghe(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 b0e=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,Dt.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&&(dt(o)?document.querySelector(o):yg(o)?o:Vt(o)&&o(t.getDom()));m3(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();zo(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=d0e(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=p0e+_0e(t,!this._firstShow,this._longHide)+g3(o[0],o[1],!0)+("border-color:"+_f(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(dt(o)&&r.get("trigger")==="item"&&!i8(r)&&(s=g0e(r,i,o)),dt(t))a.innerHTML=t+s;else if(t){a.innerHTML="",lt(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||Dt.node||!i.getDom())){var a=b3(o,i);this._ticket="";var s=o.dataByCoordSys,l=A0e(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=w0e;c.x=o.x,c.y=o.y,c.update(),Mn(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=n8(o,r),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,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(b3(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=Ap([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=Mn(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;qp(i,function(c){if(Mn(c).dataIndex!=null)return l=c,!0;if(Mn(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=Xn(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=Ap([r.tooltipOption],o),l=this._renderMode,u=[],c=Ag("section",{blocks:[],noHeader:!0}),f=[],d=new IT;Q(n,function(b){Q(b.dataByAxis,function(w){var S=i.getComponent(w.axisDim+"Axis",w.axisIndex),T=w.value;if(!(!S||T==null)){var E=Q6(T,S.axis,i,w.seriesDataIndices,w.valueLabelOpt),A=Ag("section",{header:E,noHeader:!ts(E),sortBlocks:!0,blocks:[]});c.blocks.push(A),Q(w.seriesDataIndices,function(P){var I=i.getSeriesByIndex(P.seriesIndex),R=P.dataIndexInside,O=I.getDataParams(R);if(!(O.dataIndex<0)){O.axisDim=w.axisDim,O.axisIndex=w.axisIndex,O.axisType=w.axisType,O.axisId=w.axisId,O.axisValue=rP(S.axis,{value:T}),O.axisValueLabel=E,O.marker=d.makeTooltipMarker("item",_f(O.color),l);var M=Pk(I.formatTooltip(R,!0,null)),$=M.frag;if($){var F=Ap([I],o).get("valueFormatter");A.blocks.push(F?Ke({valueFormatter:F},$):$)}M.text&&f.push(M.text),u.push(O)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,v=s.get("order"),m=Mk(c,d,l,v,i.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var y=l==="richText"?` -`:"
",_=f.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,h,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,_,u,Math.random()+"",a[0],a[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=Mn(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,f=a.dataType,d=u.getData(f),h=this._renderMode,v=n.positionDefault,m=Ap([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),y=m.get("trigger");if(!(y!=null&&y!=="item")){var _=u.getDataParams(c,f),b=new CT;_.marker=b.makeTooltipMarker("item",_f(_.color),h);var w=Ik(u.formatTooltip(c,!1,f)),S=m.get("order"),E=m.get("valueFormatter"),T=w.frag,A=T?Ok(E?Ke({valueFormatter:E},T):T,b,h,S,o.get("useUTC"),m.get("textStyle")):w.text,P="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,A,_,P,n.offsetX,n.offsetY,n.position,n.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=Mn(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(dt(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=sn(l),l.content=Xi(l.content));var f=[l],d=this._ecModel.getComponent(a.componentMainType,a.componentIndex);d&&f.push(d),f.push({formatter:l.content});var h=n.positionDefault,v=Ap(f,this._tooltipModel,h?{position:h}:null),m=v.get("content"),y=Math.random()+"",_=new CT;this._showOrMove(v,function(){var b=sn(v.get("formatterParams")||{});this._showTooltipContent(v,m,b,y,n.offsetX,n.offsetY,n.position,r,_)}),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 d=n.get("formatter");l=l||n.get("position");var h=r,v=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),m=v.color;if(d)if(dt(d)){var y=n.ecModel.get("useUTC"),_=st(i)?i[0]:i,b=_&&_.axisType&&_.axisType.indexOf("time")>=0;h=d,b&&(h=hS(_.axisValue,h,y)),h=EH(h,i,!0)}else if(Vt(d)){var w=Xn(function(S,E){S===this._ticket&&(f.setContent(E,c,n,m,l),this._updatePosition(n,l,a,s,f,i,u))},this);this._ticket=o,h=d(i,o,w)}else h=d;f.setContent(h,c,n,m,l),f.show(n,m),this._updatePosition(n,l,a,s,f,i,u)}},t.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||st(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!st(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(),d=n.get("align"),h=n.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Vt(r)&&(r=r([i,o],s,a.el,v,{viewSize:[u,c],contentSize:f.slice()})),st(r))i=Ti(r[0],u),o=Ti(r[1],c);else if(Et(r)){var m=r;m.width=f[0],m.height=f[1];var y=M1(m,{width:u,height:c});i=y.x,o=y.y,d=null,h=null}else if(dt(r)&&l){var _=T0e(r,v,f,n.get("borderWidth"));i=_[0],o=_[1]}else{var _=w0e(i,o,a,u,c,d?null:20,h?null:20);i=_[0],o=_[1]}if(d&&(i-=_3(d)?f[0]/2:d==="right"?f[0]:0),h&&(o-=_3(h)?f[1]/2:h==="bottom"?f[1]:0),t8(n)){var _=x0e(i,o,a,u,c);i=_[0],o=_[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&&Q(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];a=a&&u.length===f.length,a&&Q(u,function(d,h){var v=f[h]||{},m=d.seriesDataIndices||[],y=v.seriesDataIndices||[];a=a&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&m.length===y.length,a&&Q(m,function(_,b){var w=y[b];a=a&&_.seriesIndex===w.seriesIndex&&_.dataIndex===w.dataIndex}),o&&Q(d.seriesDataIndices,function(_){var b=_.seriesIndex,w=r[b],S=o[b];w&&S&&S.data!==w.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){Dt.node||!r.getDom()||(uA(this,"_updatePosition"),this._tooltipContent.dispose(),AA("itemTooltip",r))},t.type="tooltip",t}(ds);function Ap(e,t,n){var r=t.ecModel,i;n?(i=new sr(n,r,r),i=new sr(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof sr&&(a=a.get("tooltip",!0)),dt(a)&&(a={formatter:a}),a&&(i=new sr(a,i,r)))}return i}function y3(e,t){return e.dispatchAction||Xn(t.dispatchAction,t)}function w0e(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 x0e(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 T0e(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 _3(e){return e==="center"||e==="middle"}function E0e(e,t,n){var r=vR(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=im(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=Mn(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function C0e(e){Pu(e8),e.registerComponentModel(l0e),e.registerComponentView(S0e),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Qi),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Qi)}var A0e=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"])}},IA=function(e){ot(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"]),st(r)&&Q(r,function(o,a){dt(o)&&(o={type:o}),r[a]=_n(o,A0e(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}(An),ud=Dr,RA=Q,v0=hi,o8=function(e){ot(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 v0),this.group.add(this._selectorGroup=new v0),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()},d=n.get("padding"),h=M1(c,f,d),v=this.layoutInner(n,a,h,o,l,u),m=M1(Cn({width:v.width,height:v.height},c),f,d);this.group.x=m.x-v.x,this.group.y=m.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=s0e(v,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=Kt(),f=r.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),RA(r.getData(),function(h,v){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===` -`)){var y=new v0;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(m)[0];if(!c.get(m))if(_){var b=_.getData(),w=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),E=b.getVisual("style"),T=this._createItem(_,m,v,h,r,n,w,E,S,f,o);T.on("click",ud(b3,m,null,o,d)).on("mouseover",ud(PA,_.name,null,o,d)).on("mouseout",ud(OA,_.name,null,o,d)),i.ssr&&T.eachChild(function(A){var P=Mn(A);P.seriesIndex=_.seriesIndex,P.dataIndex=v,P.ssrType="legend"}),c.set(m,!0)}else i.eachRawSeries(function(A){if(!c.get(m)&&A.legendVisualProvider){var P=A.legendVisualProvider;if(!P.containName(m))return;var I=P.indexOfName(m),R=P.getItemVisual(I,"style"),O=P.getItemVisual(I,"legendIcon"),M=tl(R.fill);M&&M[3]===0&&(M[3]=.2,R=Ke(Ke({},R),{fill:Qb(M,"rgba")}));var $=this._createItem(A,m,v,h,r,n,{},R,O,f,o);$.on("click",ud(b3,null,m,o,d)).on("mouseover",ud(PA,null,m,o,d)).on("mouseout",ud(OA,null,m,o,d)),i.ssr&&$.eachChild(function(F){var z=Mn(F);z.seriesIndex=A.seriesIndex,z.dataIndex=v,z.ssrType="legend"}),c.set(m,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();RA(n,function(u){var c=u.type,f=new oo({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});s.add(f);var d=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);OR(f,{normal:d,emphasis:h},{defaultText:u.title}),YC(f)})},t.prototype._createItem=function(n,r,i,o,a,s,l,u,c,f,d){var h=n.visualDrawType,v=a.get("itemWidth"),m=a.get("itemHeight"),y=a.isSelected(r),_=o.get("symbolRotate"),b=o.get("symbolKeepAspect"),w=o.get("icon");c=w||c||"roundRect";var S=I0e(c,o,l,u,h,y,d),E=new v0,T=o.getModel("textStyle");if(Vt(n.getLegendIcon)&&(!w||w==="inherit"))E.add(n.getLegendIcon({itemWidth:v,itemHeight:m,icon:c,iconRotate:_,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var A=w==="inherit"&&n.getData().getVisual("symbol")?_==="inherit"?n.getData().getVisual("symbolRotate"):_:0;E.add(R0e({itemWidth:v,itemHeight:m,icon:c,iconRotate:A,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var P=s==="left"?v+5:-5,I=s,R=a.get("formatter"),O=r;dt(R)&&R?O=R.replace("{name}",r??""):Vt(R)&&(O=R(r));var M=y?T.getTextColor():o.get("inactiveColor");E.add(new oo({style:oh(T,{text:O,x:P,y:m/2,fill:M,align:I,verticalAlign:"middle"},{inheritColor:M})}));var $=new zr({shape:E.getBoundingRect(),style:{fill:"transparent"}}),F=o.getModel("tooltip");return F.get("show")&&lS({el:$,componentModel:a,itemName:r,itemTooltipOption:F.option}),E.add($),E.eachChild(function(z){z.silent=!0}),$.silent=!f,this.getContentGroup().add(E),YC(E),E.__legendDataIndex=i,E},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Dv(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){Dv("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=n.get("selectorButtonGap",!0),m=n.getOrient().index,y=m===0?"width":"height",_=m===0?"height":"width",b=m===0?"y":"x";s==="end"?h[m]+=c[y]+v:f[m]+=d[y]+v,h[1-m]+=c[_]/2-d[_]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var w={x:0,y:0};return w[y]=c[y]+v+d[y],w[_]=Math.max(c[_],d[_]),w[b]=Math.min(0,d[b]+h[1-m]),w}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ds);function I0e(e,t,n,r,i,o,a){function s(y,_){y.lineWidth==="auto"&&(y.lineWidth=_.lineWidth>0?2:0),RA(y,function(b,w){y[w]==="inherit"&&(y[w]=_[w])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:gA(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 d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!o){var v=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth=v==="auto"?r.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function R0e(e){var t=e.icon||"roundRect",n=lh(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 b3(e,t,n,r){OA(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),PA(e,t,n,r)}function a8(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;ri[a],y=[-h.x,-h.y];r||(y[o]=c[u]);var _=[0,0],b=[-v.x,-v.y],w=nn(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(m){var S=n.get("pageButtonPosition",!0);S==="end"?b[o]+=i[a]-v[a]:_[o]+=v[a]+w}b[1-o]+=h[s]/2-v[s]/2,c.setPosition(y),f.setPosition(_),d.setPosition(b);var E={x:0,y:0};if(E[a]=m?i[a]:h[a],E[s]=Math.max(h[s],v[s]),E[l]=Math.min(0,v[l]+b[1-o]),f.__rectSize=i[a],m){var T={x:0,y:0};T[a]=Math.max(i[a]-v[a]-w,0),T[s]=E[s],f.setClipPath(new zr({shape:T})),f.__rectSize=T[a]}else d.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(n);return A.pageIndex!=null&&Iu(c,{x:A.contentPosition[0],y:A.contentPosition[1]},m?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;Q(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"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",dt(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=tE[a],l=nE[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var m=S(f);v.contentPosition[a]=-m.s;for(var y=u+1,_=m,b=m,w=null;y<=d;++y)w=S(c[y]),(!w&&b.e>_.s+o||w&&!E(w,_.s))&&(b.i>_.i?_=b:_=w,_&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=_.i),++v.pageCount)),b=w;for(var y=u-1,_=m,b=m,w=null;y>=-1;--y)w=S(c[y]),(!w||!E(b,w.s))&&_.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}(o8);function L0e(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 N0e(e){Pu(s8),e.registerComponentModel(D0e),e.registerComponentView(M0e),L0e(e)}function k0e(e){Pu(s8),Pu(N0e)}function T3(e,t,n){var r=Eh.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 rE=function(e){ot(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||w1,typeof n=="string"?a=T3(n,r,i):Et(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(YV(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=T3("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 bn(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(a.length===0){var w=new bn(0,0,0,0);w.copy(b),a.push(w)}else{for(var S=!1,E=1/0,T=0,A=0;A=s)}}for(var f=this.__startIndex;f15)break}}F.prevElClipPaths&&_.restore()};if(b)if(b.length===0)P=y.__endIndex;else for(var R=h.dpr,O=0;O0&&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?g0:0),this._needsManuallyCompositing),c.__builtin__||rR("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&bo&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!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,Q(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?_n(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,d=s.color,h=s.backgroundColor,v=s.borderBottomColor,m=s.borderTopColor;Yt(()=>Nd.value,()=>{const S=getComputedStyle(n.value),E=getComputedStyle(r.value);l=S.color,u=S.backgroundColor,c=S.borderColor,d=E.color,h=E.backgroundColor,v=E.borderBottomColor,m=E.borderTopColor}),Yt(()=>fv.value,()=>{f=getComputedStyle(n.value).fontFamily});const y=Ve(()=>({legend:{bottom:0,data:t.data.map(S=>S.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,padding:[0,5],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:S=>Math.max(S.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((S,E)=>{const T=E===t.data.length-1?d:h,A=E===t.data.length-1?v:m;return{name:S.name,symbol:"none",emphasis:{disabled:!0},lineStyle:{width:1},data:S.data,areaStyle:{color:new ER(0,0,0,1,[{offset:0,color:T},{offset:1,color:A}])},type:"line",color:T,smooth:!0}})})),_=hme(o.value);_.setOption(y.value),Yt(y,()=>{i.value||_==null||_.setOption(y.value)});const{width:b}=ore(o),w=So.debounce(()=>{_.resize()},100);Yt(()=>b.value,()=>{w()})}),(a,s)=>(K(),se("div",H0e,[L("div",{ref_key:"chart",ref:o,class:"h-full w-full"},null,512),L("span",{class:"hidden border-base-content/10 bg-base-100/70 text-base-content",ref_key:"baseColorRef",ref:n},null,512),L("span",{class:"hidden border-b-primary/30 border-t-info/30 bg-info/60 text-primary/60",ref_key:"themeColorRef",ref:r},null,512),L("button",{class:"btn btn-ghost btn-xs absolute bottom-0 right-1",onClick:s[0]||(s[0]=l=>i.value=!i.value)},[(K(),Ot(ss(i.value?N(wQ):N(SQ)),{class:"h-4 w-4"}))])]))}}),aP=it({__name:"ConnectionsCharts",setup(e){const{t}=us(),n=Ve(()=>[{name:t("connections"),data:r_.value}]),r=o=>` ${o}`,i=o=>o.map(a=>{if(!(a.data.name",_=f.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,h,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,_,u,Math.random()+"",a[0],a[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=Mn(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,f=a.dataType,d=u.getData(f),h=this._renderMode,v=n.positionDefault,m=Ap([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),y=m.get("trigger");if(!(y!=null&&y!=="item")){var _=u.getDataParams(c,f),b=new IT;_.marker=b.makeTooltipMarker("item",_f(_.color),h);var w=Pk(u.formatTooltip(c,!1,f)),S=m.get("order"),T=m.get("valueFormatter"),E=w.frag,A=E?Mk(T?Ke({valueFormatter:T},E):E,b,h,S,o.get("useUTC"),m.get("textStyle")):w.text,P="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,A,_,P,n.offsetX,n.offsetY,n.position,n.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=Mn(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(dt(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=ln(l),l.content=Xi(l.content));var f=[l],d=this._ecModel.getComponent(a.componentMainType,a.componentIndex);d&&f.push(d),f.push({formatter:l.content});var h=n.positionDefault,v=Ap(f,this._tooltipModel,h?{position:h}:null),m=v.get("content"),y=Math.random()+"",_=new IT;this._showOrMove(v,function(){var b=ln(v.get("formatterParams")||{});this._showTooltipContent(v,m,b,y,n.offsetX,n.offsetY,n.position,r,_)}),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 d=n.get("formatter");l=l||n.get("position");var h=r,v=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),m=v.color;if(d)if(dt(d)){var y=n.ecModel.get("useUTC"),_=lt(i)?i[0]:i,b=_&&_.axisType&&_.axisType.indexOf("time")>=0;h=d,b&&(h=vS(_.axisValue,h,y)),h=IH(h,i,!0)}else if(Vt(d)){var w=Xn(function(S,T){S===this._ticket&&(f.setContent(T,c,n,m,l),this._updatePosition(n,l,a,s,f,i,u))},this);this._ticket=o,h=d(i,o,w)}else h=d;f.setContent(h,c,n,m,l),f.show(n,m),this._updatePosition(n,l,a,s,f,i,u)}},t.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||lt(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!lt(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(),d=n.get("align"),h=n.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Vt(r)&&(r=r([i,o],s,a.el,v,{viewSize:[u,c],contentSize:f.slice()})),lt(r))i=Ei(r[0],u),o=Ei(r[1],c);else if(Et(r)){var m=r;m.width=f[0],m.height=f[1];var y=N1(m,{width:u,height:c});i=y.x,o=y.y,d=null,h=null}else if(dt(r)&&l){var _=C0e(r,v,f,n.get("borderWidth"));i=_[0],o=_[1]}else{var _=T0e(i,o,a,u,c,d?null:20,h?null:20);i=_[0],o=_[1]}if(d&&(i-=S3(d)?f[0]/2:d==="right"?f[0]:0),h&&(o-=S3(h)?f[1]/2:h==="bottom"?f[1]:0),i8(n)){var _=E0e(i,o,a,u,c);i=_[0],o=_[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&&Q(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];a=a&&u.length===f.length,a&&Q(u,function(d,h){var v=f[h]||{},m=d.seriesDataIndices||[],y=v.seriesDataIndices||[];a=a&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&m.length===y.length,a&&Q(m,function(_,b){var w=y[b];a=a&&_.seriesIndex===w.seriesIndex&&_.dataIndex===w.dataIndex}),o&&Q(d.seriesDataIndices,function(_){var b=_.seriesIndex,w=r[b],S=o[b];w&&S&&S.data!==w.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){Dt.node||!r.getDom()||(fA(this,"_updatePosition"),this._tooltipContent.dispose(),RA("itemTooltip",r))},t.type="tooltip",t}(ds);function Ap(e,t,n){var r=t.ecModel,i;n?(i=new sr(n,r,r),i=new sr(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof sr&&(a=a.get("tooltip",!0)),dt(a)&&(a={formatter:a}),a&&(i=new sr(a,i,r)))}return i}function b3(e,t){return e.dispatchAction||Xn(t.dispatchAction,t)}function T0e(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 E0e(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 C0e(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 S3(e){return e==="center"||e==="middle"}function A0e(e,t,n){var r=mR(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=am(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=Mn(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function I0e(e){Pu(r8),e.registerComponentModel(c0e),e.registerComponentView(x0e),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Qi),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Qi)}var R0e=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"])}},PA=function(e){ot(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"]),lt(r)&&Q(r,function(o,a){dt(o)&&(o={type:o}),r[a]=_n(o,R0e(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}(An),ud=Dr,OA=Q,m0=pi,l8=function(e){ot(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 m0),this.group.add(this._selectorGroup=new m0),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()},d=n.get("padding"),h=N1(c,f,d),v=this.layoutInner(n,a,h,o,l,u),m=N1(Cn({width:v.width,height:v.height},c),f,d);this.group.x=m.x-v.x,this.group.y=m.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=u0e(v,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=Kt(),f=r.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),OA(r.getData(),function(h,v){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===` +`)){var y=new m0;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(m)[0];if(!c.get(m))if(_){var b=_.getData(),w=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),T=b.getVisual("style"),E=this._createItem(_,m,v,h,r,n,w,T,S,f,o);E.on("click",ud(w3,m,null,o,d)).on("mouseover",ud(DA,_.name,null,o,d)).on("mouseout",ud(MA,_.name,null,o,d)),i.ssr&&E.eachChild(function(A){var P=Mn(A);P.seriesIndex=_.seriesIndex,P.dataIndex=v,P.ssrType="legend"}),c.set(m,!0)}else i.eachRawSeries(function(A){if(!c.get(m)&&A.legendVisualProvider){var P=A.legendVisualProvider;if(!P.containName(m))return;var I=P.indexOfName(m),R=P.getItemVisual(I,"style"),O=P.getItemVisual(I,"legendIcon"),M=tl(R.fill);M&&M[3]===0&&(M[3]=.2,R=Ke(Ke({},R),{fill:tS(M,"rgba")}));var $=this._createItem(A,m,v,h,r,n,{},R,O,f,o);$.on("click",ud(w3,null,m,o,d)).on("mouseover",ud(DA,null,m,o,d)).on("mouseout",ud(MA,null,m,o,d)),i.ssr&&$.eachChild(function(F){var z=Mn(F);z.seriesIndex=A.seriesIndex,z.dataIndex=v,z.ssrType="legend"}),c.set(m,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();OA(n,function(u){var c=u.type,f=new oo({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});s.add(f);var d=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);MR(f,{normal:d,emphasis:h},{defaultText:u.title}),KC(f)})},t.prototype._createItem=function(n,r,i,o,a,s,l,u,c,f,d){var h=n.visualDrawType,v=a.get("itemWidth"),m=a.get("itemHeight"),y=a.isSelected(r),_=o.get("symbolRotate"),b=o.get("symbolKeepAspect"),w=o.get("icon");c=w||c||"roundRect";var S=P0e(c,o,l,u,h,y,d),T=new m0,E=o.getModel("textStyle");if(Vt(n.getLegendIcon)&&(!w||w==="inherit"))T.add(n.getLegendIcon({itemWidth:v,itemHeight:m,icon:c,iconRotate:_,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var A=w==="inherit"&&n.getData().getVisual("symbol")?_==="inherit"?n.getData().getVisual("symbolRotate"):_:0;T.add(O0e({itemWidth:v,itemHeight:m,icon:c,iconRotate:A,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var P=s==="left"?v+5:-5,I=s,R=a.get("formatter"),O=r;dt(R)&&R?O=R.replace("{name}",r??""):Vt(R)&&(O=R(r));var M=y?E.getTextColor():o.get("inactiveColor");T.add(new oo({style:oh(E,{text:O,x:P,y:m/2,fill:M,align:I,verticalAlign:"middle"},{inheritColor:M})}));var $=new zr({shape:T.getBoundingRect(),style:{fill:"transparent"}}),F=o.getModel("tooltip");return F.get("show")&&cS({el:$,componentModel:a,itemName:r,itemTooltipOption:F.option}),T.add($),T.eachChild(function(z){z.silent=!0}),$.silent=!f,this.getContentGroup().add(T),KC(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Mv(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){Mv("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=n.get("selectorButtonGap",!0),m=n.getOrient().index,y=m===0?"width":"height",_=m===0?"height":"width",b=m===0?"y":"x";s==="end"?h[m]+=c[y]+v:f[m]+=d[y]+v,h[1-m]+=c[_]/2-d[_]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var w={x:0,y:0};return w[y]=c[y]+v+d[y],w[_]=Math.max(c[_],d[_]),w[b]=Math.min(0,d[b]+h[1-m]),w}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ds);function P0e(e,t,n,r,i,o,a){function s(y,_){y.lineWidth==="auto"&&(y.lineWidth=_.lineWidth>0?2:0),OA(y,function(b,w){y[w]==="inherit"&&(y[w]=_[w])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:yA(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 d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!o){var v=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth=v==="auto"?r.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function O0e(e){var t=e.icon||"roundRect",n=lh(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 w3(e,t,n,r){MA(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),DA(e,t,n,r)}function u8(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;ri[a],y=[-h.x,-h.y];r||(y[o]=c[u]);var _=[0,0],b=[-v.x,-v.y],w=nn(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(m){var S=n.get("pageButtonPosition",!0);S==="end"?b[o]+=i[a]-v[a]:_[o]+=v[a]+w}b[1-o]+=h[s]/2-v[s]/2,c.setPosition(y),f.setPosition(_),d.setPosition(b);var T={x:0,y:0};if(T[a]=m?i[a]:h[a],T[s]=Math.max(h[s],v[s]),T[l]=Math.min(0,v[l]+b[1-o]),f.__rectSize=i[a],m){var E={x:0,y:0};E[a]=Math.max(i[a]-v[a]-w,0),E[s]=T[s],f.setClipPath(new zr({shape:E})),f.__rectSize=E[a]}else d.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(n);return A.pageIndex!=null&&Iu(c,{x:A.contentPosition[0],y:A.contentPosition[1]},m?n:null),this._updatePageInfoView(n,A),T},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;Q(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"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",dt(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=rE[a],l=iE[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var m=S(f);v.contentPosition[a]=-m.s;for(var y=u+1,_=m,b=m,w=null;y<=d;++y)w=S(c[y]),(!w&&b.e>_.s+o||w&&!T(w,_.s))&&(b.i>_.i?_=b:_=w,_&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=_.i),++v.pageCount)),b=w;for(var y=u-1,_=m,b=m,w=null;y>=-1;--y)w=S(c[y]),(!w||!T(b,w.s))&&_.i=A&&E.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}(l8);function k0e(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 F0e(e){Pu(c8),e.registerComponentModel(L0e),e.registerComponentView(N0e),k0e(e)}function $0e(e){Pu(c8),Pu(F0e)}function C3(e,t,n){var r=Eh.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 oE=function(e){ot(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||T1,typeof n=="string"?a=C3(n,r,i):Et(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(ZV(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=C3("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 bn(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(a.length===0){var w=new bn(0,0,0,0);w.copy(b),a.push(w)}else{for(var S=!1,T=1/0,E=0,A=0;A=s)}}for(var f=this.__startIndex;f15)break}}F.prevElClipPaths&&_.restore()};if(b)if(b.length===0)P=y.__endIndex;else for(var R=h.dpr,O=0;O0&&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?y0:0),this._needsManuallyCompositing),c.__builtin__||oR("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&bo&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!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,Q(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?_n(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,d=s.color,h=s.backgroundColor,v=s.borderBottomColor,m=s.borderTopColor;Yt(()=>Nd.value,()=>{const S=getComputedStyle(n.value),T=getComputedStyle(r.value);l=S.color,u=S.backgroundColor,c=S.borderColor,d=T.color,h=T.backgroundColor,v=T.borderBottomColor,m=T.borderTopColor}),Yt(()=>fv.value,()=>{f=getComputedStyle(n.value).fontFamily});const y=Ve(()=>({legend:{bottom:0,data:t.data.map(S=>S.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,padding:[0,5],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:S=>Math.max(S.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((S,T)=>{const E=T===t.data.length-1?d:h,A=T===t.data.length-1?v:m;return{name:S.name,symbol:"none",emphasis:{disabled:!0},lineStyle:{width:1},data:S.data,areaStyle:{color:new AR(0,0,0,1,[{offset:0,color:E},{offset:1,color:A}])},type:"line",color:E,smooth:!0}})})),_=vme(o.value);_.setOption(y.value),Yt(y,()=>{i.value||_==null||_.setOption(y.value)});const{width:b}=sre(o),w=So.debounce(()=>{_.resize()},100);Yt(()=>b.value,()=>{w()})}),(a,s)=>(K(),ae("div",z0e,[L("div",{ref_key:"chart",ref:o,class:"h-full w-full"},null,512),L("span",{class:"hidden border-base-content/10 bg-base-100/70 text-base-content",ref_key:"baseColorRef",ref:n},null,512),L("span",{class:"hidden border-b-primary/30 border-t-info/30 bg-info/60 text-primary/60",ref_key:"themeColorRef",ref:r},null,512),L("button",{class:"btn btn-ghost btn-xs absolute bottom-0 right-1",onClick:s[0]||(s[0]=l=>i.value=!i.value)},[(K(),Ot(ss(i.value?N(TQ):N(xQ)),{class:"h-4 w-4"}))])]))}}),lP=it({__name:"ConnectionsCharts",setup(e){const{t}=us(),n=Ve(()=>[{name:t("connections"),data:o_.value}]),r=o=>` ${o}`,i=o=>o.map(a=>{if(!(a.data.name
${a.seriesName} (${Ma(a.data.name).format("HH:mm:ss")}): ${a.data.value} `}).join(` -`);return(o,a)=>(K(),Ot(oP,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100},null,8,["data"]))}}),sP=it({__name:"MemoryCharts",setup(e){const{t}=us(),n=Ve(()=>[{name:t("memoryUsage"),data:Up.value}]),r=o=>`${Tn(o,{maximumFractionDigits:1,binary:!0})}`,i=o=>LB(o[0],{binary:!0,suffix:""});return(o,a)=>(K(),Ot(oP,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1024*1024},null,8,["data"]))}}),lP=it({__name:"SpeedCharts",setup(e){const t=Fe(),{t:n}=us(),r=Ve(()=>[{name:n("ulSpeed"),data:Gp.value},{name:n("dlSpeed"),data:Hp.value}]),i=a=>`${Tn(a,{maximumFractionDigits:1,binary:!1})}/s`,o=a=>a.map(s=>LB(s,{binary:!1,suffix:"/s"})).join("");return(a,s)=>(K(),Ot(oP,{ref_key:"chartRef",ref:t,data:r.value,"label-formatter":i,"tool-tip-formatter":o,min:60*1e3},null,8,["data"]))}}),G0e={class:"card carousel carousel-vertical h-28 shrink-0 overflow-x-hidden text-sm hover:scrollbar-thin"},z0e=it({__name:"OverviewCarousel",setup(e){return(t,n)=>(K(),se("div",G0e,[ye(lP,{class:"carousel-item box-border"}),ye(sP,{class:"carousel-item box-border"}),ye(aP,{class:"carousel-item box-border"})]))}}),W0e={class:"card mx-1 flex flex-col gap-4 py-2 text-xs"},j0e={class:"flex flex-col items-center justify-center"},Y0e={class:"flex flex-col items-center justify-center"},X0e={class:"flex flex-col items-center justify-center"},K0e={class:"flex flex-col items-center justify-center"},Z0e={class:"flex flex-col items-center justify-center"},q0e=it({__name:"VerticalInfos",setup(e){return(t,n)=>(K(),se("div",W0e,[L("div",j0e,[ye(N(U4),{class:"h-4 w-4"}),ft(" "+oe(N(Qo).length),1)]),L("div",Y0e,[ye(N(xb),{class:"h-4 w-4"}),ft(" "+oe(N(Tn)(N(dg)))+" ",1),L("span",null,oe(N(Tn)(N(Lb)))+"/s ",1)]),L("div",X0e,[ye(N(Xg),{class:"h-4 w-4"}),ft(" "+oe(N(Tn)(N(hg)))+" ",1),L("span",null,oe(N(Tn)(N(Nb)))+"/s ",1)]),L("div",K0e,[ye(N(yQ),{class:"h-4 w-4"}),ft(" "+oe(N(Tn)(N(Mb),{binary:!0})),1)]),L("div",Z0e,[L("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>gu.value=!1)},[ye(N(ff),{class:"h-5 w-5"})])])]))}}),J0e={class:"drawer-side z-30 bg-base-200 max-md:hidden"},Q0e={class:"menu flex-1"},e_e=["onClick"],t_e={class:"card"},n_e=it({__name:"SideBar",setup(e){const t={[un.connections]:MV,[un.logs]:LV,[un.proxies]:FV,[un.rules]:$V},n=Ve(()=>r.name?t[r.name]:null),r=oB();return(i,o)=>(K(),se("div",J0e,[o[0]||(o[0]=L("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),L("div",{class:rt(N(En)("scrollbar-hidden flex h-full flex-col gap-2 overflow-x-hidden p-2 text-base-content !transition-all duration-500",N(gu)?"w-18 px-0":"w-[21rem]"))},[L("ul",Q0e,[(K(!0),se(qe,null,ln(N(Fs),a=>(K(),se("li",{key:a},[L("a",{class:rt(a===N(r).name?"active":"inactive"),onClick:()=>N(ka).push({name:a})},[(K(),Ot(ss(N(xB)[a]),{class:"h-5 w-5"})),N(gu)?mt("",!0):(K(),se(qe,{key:0},[ft(oe(i.$t(a)),1)],64))],10,e_e)]))),128))]),N(gu)?(K(),Ot(q0e,{key:0})):(K(),se(qe,{key:1},[N(r).name!==N(un).overview?(K(),Ot(z0e,{key:0})):mt("",!0),L("div",t_e,[n.value?(K(),Ot(ss(n.value),{key:0})):mt("",!0),ye(Ole)])],64))],2)]))}}),iE=Fe(!1),l8=()=>({isUIUpdateAvailable:iE,checkUIUpdate:async()=>{iE.value=await Foe(),iE.value&&W0.value&&lV()}}),r_e={class:"w-128 drawer md:drawer-open"},i_e={class:"drawer-content fixed bottom-0 flex h-full w-full flex-col overflow-hidden bg-base-200/40 md:relative md:w-auto"},o_e={class:"relative h-0 flex-1"},a_e={class:"flex h-12 w-full items-center justify-center gap-1 p-2"},s_e={class:"menu menu-horizontal flex flex-1"},l_e=["href"],u_e={class:"modal-box"},c_e={class:"text-lg font-bold"},f_e={class:"flex justify-end gap-2"},d_e=it({__name:"HomePage",setup(e){const t=Fe(null),n=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,r={[un.connections]:MV,[un.logs]:LV,[un.proxies]:FV,[un.rules]:$V},i=Ree(),o=oB(),a=Ve(()=>r[o.name]),s=Fe(),{direction:l}=are(s,{threshold:15}),u=()=>{const _=o.name;return _===un.setup?un.proxies:Fs.value[(Fs.value.indexOf(_)+1)%Fs.value.length]},c=()=>{const _=o.name;return _===un.setup?un.proxies:Fs.value[(Fs.value.indexOf(_)-1+Fs.value.length)%Fs.value.length]};Yt(l,()=>{l.value==="right"?i.push({name:c()}):l.value==="left"&&i.push({name:u()})});const{proxiesTabShow:f}=Yb(),{checkUIUpdate:d}=l8();Yt(ci,()=>{ci.value&&(wv.value=rh.RULES,f.value=df.PROXIES,JI(),fl(),vg(),Woe(),IC(),Ore(),d())},{immediate:!0});const h=()=>{var _;(_=t.value)==null||_.close()},{showTip:v}=Ob(),m=async()=>{const _=cs.value.filter(w=>w.uuid!==ci.value);h();const b=(await Promise.all(_.map(async w=>await NL(w)?w:null))).filter(w=>w!==null);b.length>0&&(ci.value=b[0].uuid,v("backendSwitchTo",{backend:Eu(b[0])}))},y=rre();return Yt(y,async()=>{var _,b;if(!(!cl.value||cs.value.length===0||y.value!=="visible"))try{await NL(cl.value)||(_=t.value)==null||_.showModal()}catch{(b=t.value)==null||b.showModal()}},{immediate:!0}),(_,b)=>(K(),se("div",r_e,[b[0]||(b[0]=L("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),ye(n_e),L("div",i_e,[a.value&&N(gu)?(K(),Ot(ss(a.value),{key:0,class:"w-full bg-base-100",horizontal:!0})):mt("",!0),L("div",o_e,[ye(N(CI),{class:"absolute h-full w-full"})]),L("div",{class:rt(`${N(n)?"h-20":"h-12"} shrink-0 md:hidden`)},null,2),L("div",{ref_key:"navBarRef",ref:s,class:rt(`fixed bottom-0 z-30 w-full bg-base-200 md:hidden ${N(n)?"h-20 pb-8":"h-12"}`)},[L("div",a_e,[L("ul",s_e,[(K(!0),se(qe,null,ln(N(Fs),w=>(K(),se("li",{key:w,class:"flex-1"},[L("a",{class:rt(["flex items-center justify-center",w===N(o).name?"active":"inactive"]),href:`#${w}`},[(K(),Ot(ss(N(xB)[w]),{class:"h-5 w-5"}))],10,l_e)]))),128))])])],2)]),L("dialog",{id:"autoSwitchBackend",ref_key:"modalRef",ref:t,class:"modal"},[L("div",u_e,[L("h3",c_e,oe(_.$t("currentBackendUnavailable")),1),L("div",f_e,[L("button",{class:"btn btn-sm",onClick:h},oe(_.$t("cancel")),1),L("button",{class:"btn btn-primary btn-sm",onClick:m},oe(_.$t("confirm")),1)])])],512)]))}}),h_e={class:"flex flex-col"},p_e={key:0,class:"card m-2 flex-row p-2 text-sm"},v_e={class:"card mb-1 block p-2 text-sm"},g_e={class:"mx-2 text-primary"},m_e={class:"ml-2"},y_e=it({__name:"LogsPage",setup(e){const t={[Lc.Error]:"text-error",[Lc.Warning]:"text-warning",[Lc.Info]:"text-info",[Lc.Debug]:"text-accent"},n=Ve(()=>h1.value.filter(r=>Bd.value?r.payload.includes(Bd.value)||r.type.includes(Bd.value):!0));return(r,i)=>(K(),se("div",h_e,[n.value.length?mt("",!0):(K(),se("div",p_e,oe(r.$t("noContent")),1)),ye(jI,{data:n.value},{default:Mr(({item:o})=>[L("div",v_e,[L("span",null,oe(o.seq),1),L("span",g_e,oe(N(Ma)(o.time).locale(N(au)).format("HH:mm:ss")),1),L("span",{class:rt(t[o.type])},oe(o.type),3),L("span",m_e,oe(o.payload),1)])]),_:1},8,["data"])]))}}),__e={class:"grid grid-cols-2 gap-2 rounded-lg bg-base-200/40 py-2 lg:grid-cols-6"},b_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},S_e={class:"text-sm font-bold md:text-lg"},w_e={class:"text-base md:text-xl"},x_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},T_e={class:"text-sm font-bold md:text-lg"},E_e={class:"text-base md:text-xl"},C_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},A_e={class:"text-sm font-bold md:text-lg"},I_e={class:"text-base md:text-xl"},R_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},P_e={class:"text-sm font-bold md:text-lg"},O_e={class:"text-base md:text-xl"},D_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},M_e={class:"text-sm font-bold md:text-lg"},L_e={class:"text-base md:text-xl"},N_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},k_e={class:"text-sm font-bold md:text-lg"},F_e={class:"text-base md:text-xl"},$_e=it({__name:"StatisticsStats",setup(e){return(t,n)=>(K(),se("div",__e,[L("div",b_e,[L("div",S_e,oe(t.$t("connections")),1),L("div",w_e,oe(N(Qo).length),1)]),L("div",x_e,[L("div",T_e,oe(t.$t("memoryUsage")),1),L("div",E_e,oe(N(Tn)(N(Mb),{binary:!0})),1)]),L("div",C_e,[L("div",A_e,oe(t.$t("download")),1),L("div",I_e,oe(N(Tn)(N(dg))),1)]),L("div",R_e,[L("div",P_e,oe(t.$t("dlSpeed")),1),L("div",O_e,oe(N(Tn)(N(Lb)))+"/s",1)]),L("div",D_e,[L("div",M_e,oe(t.$t("upload")),1),L("div",L_e,oe(N(Tn)(N(hg))),1)]),L("div",N_e,[L("div",k_e,oe(t.$t("ulSpeed")),1),L("div",F_e,oe(N(Tn)(N(Nb)))+"/s",1)])]))}}),B_e={class:"card card-compact w-full"},V_e={class:"card-title px-4 pt-4"},U_e={class:"card-body gap-4"},H_e={class:"grid grid-cols-1 gap-2 xl:grid-cols-3"},G_e=it({__name:"ChartsCard",setup(e){return(t,n)=>(K(),se("div",B_e,[L("div",V_e,oe(t.$t("overview")),1),L("div",U_e,[ye($_e),L("div",H_e,[ye(lP,{class:"xl:h-64"}),ye(sP,{class:"xl:h-64"}),ye(aP,{class:"xl:h-64"})])])]))}}),oE=Fe(""),aE=Fe(""),m0=Fe(""),y0=Fe(""),_0=Fe(""),b0=Fe(""),S0=Fe(""),z_e={class:"relative h-28 rounded-lg bg-base-200/40 p-2 text-sm"},W_e={class:"flex flex-col"},u8=it({__name:"ConnectionStatus",setup(e){const t=async()=>{zoe().then(n=>{m0.value=n.toFixed(0)}),Voe().then(n=>{S0.value=n.toFixed(0)}),Goe().then(n=>{y0.value=n.toFixed(0)}),Hoe().then(n=>{_0.value=n.toFixed(0)}),Uoe().then(n=>{b0.value=n.toFixed(0)})};return Ro(()=>{X0.value&&[m0,S0,y0,_0,b0].some(n=>n.value==="")&&t()}),(n,r)=>(K(),se("div",z_e,[L("div",W_e,[L("div",null,[r[0]||(r[0]=L("span",{class:"inline-block w-28"},"Baidu ",-1)),r[1]||(r[1]=ft(" : ")),L("span",{class:rt(N(ru)(Number(N(m0))))},oe(N(m0))+"ms ",3)]),L("div",null,[r[2]||(r[2]=L("span",{class:"inline-block w-28"},"Cloudflare ",-1)),r[3]||(r[3]=ft(" : ")),L("span",{class:rt(N(ru)(Number(N(S0))))},oe(N(S0))+"ms ",3)]),L("div",null,[r[4]||(r[4]=L("span",{class:"inline-block w-28"},"OpenAI CDN",-1)),r[5]||(r[5]=ft(" : ")),L("span",{class:rt(N(ru)(Number(N(y0))))},oe(N(y0))+"ms ",3)]),L("div",null,[r[6]||(r[6]=L("span",{class:"inline-block w-28"},"Github ",-1)),r[7]||(r[7]=ft(" : ")),L("span",{class:rt(N(ru)(Number(N(_0))))},oe(N(_0))+"ms ",3)]),L("div",null,[r[8]||(r[8]=L("span",{class:"inline-block w-28"},"YouTube ",-1)),r[9]||(r[9]=ft(" : ")),L("span",{class:rt(N(ru)(Number(N(b0))))},oe(N(b0))+"ms ",3)])]),L("button",{class:"btn btn-circle btn-sm absolute bottom-2 right-2",onClick:t},[ye(N(Tb),{class:"h-4 w-4"})])]))}}),j_e={class:"relative flex h-28 flex-col gap-1 rounded-lg bg-base-200/40 p-2"},Y_e={class:"tooltip tooltip-bottom inline-block w-24 text-left","data-tip":"api-v3.speedtest.cn"},X_e={class:"tooltip tooltip-bottom inline-block w-24 text-left","data-tip":"api.ip.sb"},c8=it({__name:"IPCheck",setup(e){const t=()=>{Boe().then(n=>n.json()).then(n=>{oE.value=`${n.data.operator} (${n.data.country}) ${n.data.ip}`}),cV().then(n=>{aE.value=`${n.asn_organization} (${n.country}) ${n.ip}`})};return Ro(()=>{Y0.value&&[oE,aE].some(n=>n.value==="")&&t()}),(n,r)=>(K(),se("div",j_e,[L("div",null,[L("span",Y_e,oe(n.$t("chinaIP")),1),ft(" : "+oe(N(oE)),1)]),L("div",null,[L("span",X_e,oe(n.$t("globalIP")),1),ft(" : "+oe(N(aE)),1)]),L("button",{class:"btn btn-circle btn-sm absolute bottom-2 right-2",onClick:t},[ye(N(Tb),{class:"h-4 w-4"})])]))}}),K_e={class:"card card-compact w-full"},Z_e={class:"card-title px-4 pt-4"},q_e={class:"card-body gap-4"},J_e={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},Q_e=it({__name:"NetworkCard",setup(e){return(t,n)=>(K(),se("div",K_e,[L("div",Z_e,oe(t.$t("networkInfo")),1),L("div",q_e,[L("div",J_e,[ye(c8),ye(u8)])])]))}}),e1e={class:"flex flex-col gap-2 overflow-y-auto p-2"},t1e={class:"card items-center justify-center gap-2 p-2 sm:flex-row"},n1e=it({__name:"OverviewPage",setup(e){return(t,n)=>(K(),se("div",e1e,[ye(G_e),ye(Q_e),n[0]||(n[0]=L("div",{class:"flex-1"},null,-1)),L("div",t1e,[ft(oe(N(Eu)(N(cl)))+" ",1),ye(QI)])]))}}),f8=it({__name:"CollapseCard",props:{name:{}},setup(e){const t=e,n=Ve({get(){return Tx.value[t.name]},set(s){s?(i.value=!1,r.value=!0,vs(()=>{Tx.value[t.name]=!0})):Tx.value[t.name]=!1}}),r=Fe(n.value),i=Fe(!n.value),o=()=>{n.value||setTimeout(()=>{i.value=!n.value},50)},a=()=>{n.value||(r.value=!1)};return(s,l)=>(K(),se("div",{class:rt(`collapse collapse-arrow ${n.value?"collapse-open":"collapse-close"}`)},[L("div",{class:"collapse-title cursor-pointer select-none pr-4",onClick:l[0]||(l[0]=u=>n.value=!n.value)},[Md(s.$slots,"title"),i.value?Md(s.$slots,"preview",{key:0}):mt("",!0)]),L("div",{class:"collapse-content flex flex-col gap-2 max-sm:px-2",onTransitionstart:o,onTransitionend:a},[r.value?Md(s.$slots,"content",{key:0}):mt("",!0)],32)],2))}});var U1=function(){return U1=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 d=3,h=0,v=0,m=s.length;vwindow.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 d8=it({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,n=Fe(),r=Ve(()=>Zg(t.name??""));let i=null;Ro(()=>{Yt(r,(a,s)=>{i?i==null||i.update(a):vs(()=>{i=new r1e(n.value,r.value,{duration:1,separator:"",enableScrollSpy:!1,startVal:s}),i==null||i.update(a)})})}),Sh(()=>{i=null});const o=Ve(()=>ru(r.value));return(a,s)=>(K(),se("div",{class:rt(N(En)("flex h-5 w-10 items-center justify-center rounded-xl bg-base-100 text-xs hover:bg-base-200",o.value))},[r.value===N(qo)||!r.value?(K(),Ot(N(Tb),{key:0,class:"h-3 w-3 text-base-content"})):mt("",!0),_t(L("div",{ref_key:"latencyRef",ref:n},oe(r.value),513),[[SI,r.value!==N(qo)]])],2))}});/*! @license DOMPurify 3.2.3 | (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.3/LICENSE */const{entries:h8,setPrototypeOf:C3,isFrozen:i1e,getPrototypeOf:o1e,getOwnPropertyDescriptor:a1e}=Object;let{freeze:Oi,seal:oa,create:p8}=Object,{apply:DA,construct:MA}=typeof Reflect<"u"&&Reflect;Oi||(Oi=function(t){return t});oa||(oa=function(t){return t});DA||(DA=function(t,n,r){return t.apply(n,r)});MA||(MA=function(t,n){return new t(...n)});const w0=Ao(Array.prototype.forEach),A3=Ao(Array.prototype.pop),Rp=Ao(Array.prototype.push),P_=Ao(String.prototype.toLowerCase),sE=Ao(String.prototype.toString),I3=Ao(String.prototype.match),Pp=Ao(String.prototype.replace),s1e=Ao(String.prototype.indexOf),l1e=Ao(String.prototype.trim),Ta=Ao(Object.prototype.hasOwnProperty),mi=Ao(RegExp.prototype.test),Op=u1e(TypeError);function Ao(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]:P_;C3&&C3(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(i1e(t)||(t[r]=o),i=o)}e[i]=!0}return e}function c1e(e){for(let t=0;t/gm),v1e=oa(/\$\{[\w\W]*}/gm),g1e=oa(/^data-[\-\w.\u00B7-\uFFFF]+$/),m1e=oa(/^aria-[\-\w]+$/),v8=oa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),y1e=oa(/^(?:\w+script|data):/i),_1e=oa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),g8=oa(/^html$/i),b1e=oa(/^[a-z][.\w]*(-[.\w]+)+$/i);var M3=Object.freeze({__proto__:null,ARIA_ATTR:m1e,ATTR_WHITESPACE:_1e,CUSTOM_ELEMENT:b1e,DATA_ATTR:g1e,DOCTYPE_NAME:g8,ERB_EXPR:p1e,IS_ALLOWED_URI:v8,IS_SCRIPT_OR_DATA:y1e,MUSTACHE_EXPR:h1e,TMPLIT_EXPR:v1e});const Mp={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},S1e=function(){return typeof window>"u"?null:window},w1e=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}},L3=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function m8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S1e();const t=pt=>m8(pt);if(t.version="3.2.3",t.removed=[],!e||!e.document||e.document.nodeType!==Mp.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:d,trustedTypes:h}=e,v=l.prototype,m=Dp(v,"cloneNode"),y=Dp(v,"remove"),_=Dp(v,"nextSibling"),b=Dp(v,"childNodes"),w=Dp(v,"parentNode");if(typeof a=="function"){const pt=n.createElement("template");pt.content&&pt.content.ownerDocument&&(n=pt.content.ownerDocument)}let S,E="";const{implementation:T,createNodeIterator:A,createDocumentFragment:P,getElementsByTagName:I}=n,{importNode:R}=r;let O=L3();t.isSupported=typeof h8=="function"&&typeof w=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:$,TMPLIT_EXPR:F,DATA_ATTR:z,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:ae}=M3;let{IS_ALLOWED_URI:ge}=M3,ve=null;const De=qt({},[...R3,...lE,...uE,...cE,...P3]);let Ne=null;const ze=qt({},[...O3,...fE,...D3,...x0]);let Me=Object.seal(p8(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}})),je=null,ce=null,Ce=!0,Se=!0,Te=!1,Oe=!0,$e=!1,H=!0,G=!1,le=!1,we=!1,pe=!1,U=!1,W=!1,q=!0,fe=!1;const _e="user-content-";let Pe=!0,Z=!1,de={},Be=null;const Xe=qt({},["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 ht=null;const ee=qt({},["audio","video","img","source","image","track"]);let re=null;const he=qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ee="http://www.w3.org/1998/Math/MathML",He="http://www.w3.org/2000/svg",ne="http://www.w3.org/1999/xhtml";let Ae=ne,ke=!1,Qe=null;const Ge=qt({},[Ee,He,ne],sE);let We=qt({},["mi","mo","mn","ms","mtext"]),et=qt({},["annotation-xml"]);const It=qt({},["title","style","font","a","script"]);let Pt=null;const Nn=["application/xhtml+xml","text/html"],ca="text/html";let Pn=null,pr=null;const Rf=n.createElement("form"),bl=function(te){return te instanceof RegExp||te instanceof Function},Ba=function(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(pr&&pr===te)){if((!te||typeof te!="object")&&(te={}),te=Cc(te),Pt=Nn.indexOf(te.PARSER_MEDIA_TYPE)===-1?ca:te.PARSER_MEDIA_TYPE,Pn=Pt==="application/xhtml+xml"?sE:P_,ve=Ta(te,"ALLOWED_TAGS")?qt({},te.ALLOWED_TAGS,Pn):De,Ne=Ta(te,"ALLOWED_ATTR")?qt({},te.ALLOWED_ATTR,Pn):ze,Qe=Ta(te,"ALLOWED_NAMESPACES")?qt({},te.ALLOWED_NAMESPACES,sE):Ge,re=Ta(te,"ADD_URI_SAFE_ATTR")?qt(Cc(he),te.ADD_URI_SAFE_ATTR,Pn):he,ht=Ta(te,"ADD_DATA_URI_TAGS")?qt(Cc(ee),te.ADD_DATA_URI_TAGS,Pn):ee,Be=Ta(te,"FORBID_CONTENTS")?qt({},te.FORBID_CONTENTS,Pn):Xe,je=Ta(te,"FORBID_TAGS")?qt({},te.FORBID_TAGS,Pn):{},ce=Ta(te,"FORBID_ATTR")?qt({},te.FORBID_ATTR,Pn):{},de=Ta(te,"USE_PROFILES")?te.USE_PROFILES:!1,Ce=te.ALLOW_ARIA_ATTR!==!1,Se=te.ALLOW_DATA_ATTR!==!1,Te=te.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=te.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$e=te.SAFE_FOR_TEMPLATES||!1,H=te.SAFE_FOR_XML!==!1,G=te.WHOLE_DOCUMENT||!1,pe=te.RETURN_DOM||!1,U=te.RETURN_DOM_FRAGMENT||!1,W=te.RETURN_TRUSTED_TYPE||!1,we=te.FORCE_BODY||!1,q=te.SANITIZE_DOM!==!1,fe=te.SANITIZE_NAMED_PROPS||!1,Pe=te.KEEP_CONTENT!==!1,Z=te.IN_PLACE||!1,ge=te.ALLOWED_URI_REGEXP||v8,Ae=te.NAMESPACE||ne,We=te.MATHML_TEXT_INTEGRATION_POINTS||We,et=te.HTML_INTEGRATION_POINTS||et,Me=te.CUSTOM_ELEMENT_HANDLING||{},te.CUSTOM_ELEMENT_HANDLING&&bl(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=te.CUSTOM_ELEMENT_HANDLING.tagNameCheck),te.CUSTOM_ELEMENT_HANDLING&&bl(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),te.CUSTOM_ELEMENT_HANDLING&&typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Me.allowCustomizedBuiltInElements=te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$e&&(Se=!1),U&&(pe=!0),de&&(ve=qt({},P3),Ne=[],de.html===!0&&(qt(ve,R3),qt(Ne,O3)),de.svg===!0&&(qt(ve,lE),qt(Ne,fE),qt(Ne,x0)),de.svgFilters===!0&&(qt(ve,uE),qt(Ne,fE),qt(Ne,x0)),de.mathMl===!0&&(qt(ve,cE),qt(Ne,D3),qt(Ne,x0))),te.ADD_TAGS&&(ve===De&&(ve=Cc(ve)),qt(ve,te.ADD_TAGS,Pn)),te.ADD_ATTR&&(Ne===ze&&(Ne=Cc(Ne)),qt(Ne,te.ADD_ATTR,Pn)),te.ADD_URI_SAFE_ATTR&&qt(re,te.ADD_URI_SAFE_ATTR,Pn),te.FORBID_CONTENTS&&(Be===Xe&&(Be=Cc(Be)),qt(Be,te.FORBID_CONTENTS,Pn)),Pe&&(ve["#text"]=!0),G&&qt(ve,["html","head","body"]),ve.table&&(qt(ve,["tbody"]),delete je.tbody),te.TRUSTED_TYPES_POLICY){if(typeof te.TRUSTED_TYPES_POLICY.createHTML!="function")throw Op('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof te.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Op('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=te.TRUSTED_TYPES_POLICY,E=S.createHTML("")}else S===void 0&&(S=w1e(h,i)),S!==null&&typeof E=="string"&&(E=S.createHTML(""));Oi&&Oi(te),pr=te}},gm=qt({},[...lE,...uE,...f1e]),Pf=qt({},[...cE,...d1e]),zS=function(te){let Ue=w(te);(!Ue||!Ue.tagName)&&(Ue={namespaceURI:Ae,tagName:"template"});const at=P_(te.tagName),Sn=P_(Ue.tagName);return Qe[te.namespaceURI]?te.namespaceURI===He?Ue.namespaceURI===ne?at==="svg":Ue.namespaceURI===Ee?at==="svg"&&(Sn==="annotation-xml"||We[Sn]):!!gm[at]:te.namespaceURI===Ee?Ue.namespaceURI===ne?at==="math":Ue.namespaceURI===He?at==="math"&&et[Sn]:!!Pf[at]:te.namespaceURI===ne?Ue.namespaceURI===He&&!et[Sn]||Ue.namespaceURI===Ee&&!We[Sn]?!1:!Pf[at]&&(It[at]||!gm[at]):!!(Pt==="application/xhtml+xml"&&Qe[te.namespaceURI]):!1},Di=function(te){Rp(t.removed,{element:te});try{w(te).removeChild(te)}catch{y(te)}},Of=function(te,Ue){try{Rp(t.removed,{attribute:Ue.getAttributeNode(te),from:Ue})}catch{Rp(t.removed,{attribute:null,from:Ue})}if(Ue.removeAttribute(te),te==="is")if(pe||U)try{Di(Ue)}catch{}else try{Ue.setAttribute(te,"")}catch{}},mm=function(te){let Ue=null,at=null;if(we)te=""+te;else{const er=I3(te,/^[\r\n\t ]+/);at=er&&er[0]}Pt==="application/xhtml+xml"&&Ae===ne&&(te=''+te+"");const Sn=S?S.createHTML(te):te;if(Ae===ne)try{Ue=new d().parseFromString(Sn,Pt)}catch{}if(!Ue||!Ue.documentElement){Ue=T.createDocument(Ae,"template",null);try{Ue.documentElement.innerHTML=ke?E:Sn}catch{}}const Rr=Ue.body||Ue.documentElement;return te&&at&&Rr.insertBefore(n.createTextNode(at),Rr.childNodes[0]||null),Ae===ne?I.call(Ue,G?"html":"body")[0]:G?Ue.documentElement:Rr},ym=function(te){return A.call(te.ownerDocument||te,te,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Lh=function(te){return te instanceof f&&(typeof te.nodeName!="string"||typeof te.textContent!="string"||typeof te.removeChild!="function"||!(te.attributes instanceof c)||typeof te.removeAttribute!="function"||typeof te.setAttribute!="function"||typeof te.namespaceURI!="string"||typeof te.insertBefore!="function"||typeof te.hasChildNodes!="function")},_m=function(te){return typeof s=="function"&&te instanceof s};function fa(pt,te,Ue){w0(pt,at=>{at.call(t,te,Ue,pr)})}const bm=function(te){let Ue=null;if(fa(O.beforeSanitizeElements,te,null),Lh(te))return Di(te),!0;const at=Pn(te.nodeName);if(fa(O.uponSanitizeElement,te,{tagName:at,allowedTags:ve}),te.hasChildNodes()&&!_m(te.firstElementChild)&&mi(/<[/\w]/g,te.innerHTML)&&mi(/<[/\w]/g,te.textContent)||te.nodeType===Mp.progressingInstruction||H&&te.nodeType===Mp.comment&&mi(/<[/\w]/g,te.data))return Di(te),!0;if(!ve[at]||je[at]){if(!je[at]&&Nh(at)&&(Me.tagNameCheck instanceof RegExp&&mi(Me.tagNameCheck,at)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(at)))return!1;if(Pe&&!Be[at]){const Sn=w(te)||te.parentNode,Rr=b(te)||te.childNodes;if(Rr&&Sn){const er=Rr.length;for(let Wr=er-1;Wr>=0;--Wr){const Po=m(Rr[Wr],!0);Po.__removalCount=(te.__removalCount||0)+1,Sn.insertBefore(Po,_(te))}}}return Di(te),!0}return te instanceof l&&!zS(te)||(at==="noscript"||at==="noembed"||at==="noframes")&&mi(/<\/no(script|embed|frames)/i,te.innerHTML)?(Di(te),!0):($e&&te.nodeType===Mp.text&&(Ue=te.textContent,w0([M,$,F],Sn=>{Ue=Pp(Ue,Sn," ")}),te.textContent!==Ue&&(Rp(t.removed,{element:te.cloneNode()}),te.textContent=Ue)),fa(O.afterSanitizeElements,te,null),!1)},Sm=function(te,Ue,at){if(q&&(Ue==="id"||Ue==="name")&&(at in n||at in Rf))return!1;if(!(Se&&!ce[Ue]&&mi(z,Ue))){if(!(Ce&&mi(B,Ue))){if(!Ne[Ue]||ce[Ue]){if(!(Nh(te)&&(Me.tagNameCheck instanceof RegExp&&mi(Me.tagNameCheck,te)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(te))&&(Me.attributeNameCheck instanceof RegExp&&mi(Me.attributeNameCheck,Ue)||Me.attributeNameCheck instanceof Function&&Me.attributeNameCheck(Ue))||Ue==="is"&&Me.allowCustomizedBuiltInElements&&(Me.tagNameCheck instanceof RegExp&&mi(Me.tagNameCheck,at)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(at))))return!1}else if(!re[Ue]){if(!mi(ge,Pp(at,j,""))){if(!((Ue==="src"||Ue==="xlink:href"||Ue==="href")&&te!=="script"&&s1e(at,"data:")===0&&ht[te])){if(!(Te&&!mi(Y,Pp(at,j,"")))){if(at)return!1}}}}}}return!0},Nh=function(te){return te!=="annotation-xml"&&I3(te,ae)},wm=function(te){fa(O.beforeSanitizeAttributes,te,null);const{attributes:Ue}=te;if(!Ue||Lh(te))return;const at={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne,forceKeepAttr:void 0};let Sn=Ue.length;for(;Sn--;){const Rr=Ue[Sn],{name:er,namespaceURI:Wr,value:Po}=Rr,Hu=Pn(er);let Pr=er==="value"?Po:l1e(Po);if(at.attrName=Hu,at.attrValue=Pr,at.keepAttr=!0,at.forceKeepAttr=void 0,fa(O.uponSanitizeAttribute,te,at),Pr=at.attrValue,fe&&(Hu==="id"||Hu==="name")&&(Of(er,te),Pr=_e+Pr),H&&mi(/((--!?|])>)|<\/(style|title)/i,Pr)){Of(er,te);continue}if(at.forceKeepAttr||(Of(er,te),!at.keepAttr))continue;if(!Oe&&mi(/\/>/i,Pr)){Of(er,te);continue}$e&&w0([M,$,F],Fh=>{Pr=Pp(Pr,Fh," ")});const kh=Pn(te.nodeName);if(Sm(kh,Hu,Pr)){if(S&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Wr)switch(h.getAttributeType(kh,Hu)){case"TrustedHTML":{Pr=S.createHTML(Pr);break}case"TrustedScriptURL":{Pr=S.createScriptURL(Pr);break}}try{Wr?te.setAttributeNS(Wr,er,Pr):te.setAttribute(er,Pr),Lh(te)?Di(te):A3(t.removed)}catch{}}}fa(O.afterSanitizeAttributes,te,null)},WS=function pt(te){let Ue=null;const at=ym(te);for(fa(O.beforeSanitizeShadowDOM,te,null);Ue=at.nextNode();)fa(O.uponSanitizeShadowNode,Ue,null),bm(Ue),wm(Ue),Ue.content instanceof o&&pt(Ue.content);fa(O.afterSanitizeShadowDOM,te,null)};return t.sanitize=function(pt){let te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ue=null,at=null,Sn=null,Rr=null;if(ke=!pt,ke&&(pt=""),typeof pt!="string"&&!_m(pt))if(typeof pt.toString=="function"){if(pt=pt.toString(),typeof pt!="string")throw Op("dirty is not a string, aborting")}else throw Op("toString is not a function");if(!t.isSupported)return pt;if(le||Ba(te),t.removed=[],typeof pt=="string"&&(Z=!1),Z){if(pt.nodeName){const Po=Pn(pt.nodeName);if(!ve[Po]||je[Po])throw Op("root node is forbidden and cannot be sanitized in-place")}}else if(pt instanceof s)Ue=mm(""),at=Ue.ownerDocument.importNode(pt,!0),at.nodeType===Mp.element&&at.nodeName==="BODY"||at.nodeName==="HTML"?Ue=at:Ue.appendChild(at);else{if(!pe&&!$e&&!G&&pt.indexOf("<")===-1)return S&&W?S.createHTML(pt):pt;if(Ue=mm(pt),!Ue)return pe?null:W?E:""}Ue&&we&&Di(Ue.firstChild);const er=ym(Z?pt:Ue);for(;Sn=er.nextNode();)bm(Sn),wm(Sn),Sn.content instanceof o&&WS(Sn.content);if(Z)return pt;if(pe){if(U)for(Rr=P.call(Ue.ownerDocument);Ue.firstChild;)Rr.appendChild(Ue.firstChild);else Rr=Ue;return(Ne.shadowroot||Ne.shadowrootmode)&&(Rr=R.call(r,Rr,!0)),Rr}let Wr=G?Ue.outerHTML:Ue.innerHTML;return G&&ve["!doctype"]&&Ue.ownerDocument&&Ue.ownerDocument.doctype&&Ue.ownerDocument.doctype.name&&mi(g8,Ue.ownerDocument.doctype.name)&&(Wr=" -`+Wr),$e&&w0([M,$,F],Po=>{Wr=Pp(Wr,Po," ")}),S&&W?S.createHTML(Wr):Wr},t.setConfig=function(){let pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ba(pt),le=!0},t.clearConfig=function(){pr=null,le=!1},t.isValidAttribute=function(pt,te,Ue){pr||Ba({});const at=Pn(pt),Sn=Pn(te);return Sm(at,Sn,Ue)},t.addHook=function(pt,te){typeof te=="function"&&Rp(O[pt],te)},t.removeHook=function(pt){return A3(O[pt])},t.removeHooks=function(pt){O[pt]=[]},t.removeAllHooks=function(){O=L3()},t}var x1e=m8();const T1e=["innerHTML"],E1e=["src"],N3="data:image/svg+xml,",y8=it({__name:"ProxyIcon",props:{icon:{},fill:{},size:{}},setup(e){const t=e,n=Ve(()=>({width:(t.size==="small"?yv.value:yv.value+4)+"px",marginRight:e_.value-4+"px"})),r=Ve(()=>t.icon.startsWith(N3)),i=Ve(()=>{if(r.value)return x1e.sanitize(t.icon.replace(N3,""))});return(o,a)=>r.value?(K(),se("div",{key:0,class:rt(["inline-block",o.fill||"fill-primary"]),style:Gr(n.value),innerHTML:i.value},null,14,T1e)):(K(),se("img",{key:1,style:Gr(n.value),src:o.icon},null,12,E1e))}}),C1e={class:"flex items-center gap-1"},H1=it({__name:"ProxyName",props:{name:{},size:{}},setup(e){const t=e,n=Ve(()=>{var r;return(r=fi.value[t.name])==null?void 0:r.icon});return(r,i)=>(K(),se("div",C1e,[n.value?(K(),Ot(y8,{key:0,icon:n.value,size:r.size==="large"?"large":"small"},null,8,["icon","size"])):mt("",!0),L("span",{class:rt(r.size==="large"?"text-lg font-medium":"text-sm")},oe(r.name),3)]))}});var eo="top",aa="bottom",sa="right",to="left",uP="auto",am=[eo,aa,sa,to],uh="start",Og="end",A1e="clippingParents",_8="viewport",Lp="popper",I1e="reference",k3=am.reduce(function(e,t){return e.concat([t+"-"+uh,t+"-"+Og])},[]),b8=[].concat(am,[uP]).reduce(function(e,t){return e.concat([t,t+"-"+uh,t+"-"+Og])},[]),R1e="beforeRead",P1e="read",O1e="afterRead",D1e="beforeMain",M1e="main",L1e="afterMain",N1e="beforeWrite",k1e="write",F1e="afterWrite",$1e=[R1e,P1e,O1e,D1e,M1e,L1e,N1e,k1e,F1e];function hs(e){return e?(e.nodeName||"").toLowerCase():null}function Io(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bf(e){var t=Io(e).Element;return e instanceof t||e instanceof Element}function na(e){var t=Io(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function cP(e){if(typeof ShadowRoot>"u")return!1;var t=Io(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function B1e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!na(o)||!hs(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function V1e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!na(i)||!hs(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const S8={name:"applyStyles",enabled:!0,phase:"write",fn:B1e,effect:V1e,requires:["computeStyles"]};function os(e){return e.split("-")[0]}var of=Math.max,G1=Math.min,ch=Math.round;function LA(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function w8(){return!/^((?!chrome|android).)*safari/i.test(LA())}function fh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&na(e)&&(i=e.offsetWidth>0&&ch(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ch(r.height)/e.offsetHeight||1);var a=bf(e)?Io(e):window,s=a.visualViewport,l=!w8()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,d=r.height/o;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function fP(e){var t=fh(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function x8(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&cP(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vl(e){return Io(e).getComputedStyle(e)}function U1e(e){return["table","td","th"].indexOf(hs(e))>=0}function Uu(e){return((bf(e)?e.ownerDocument:e.document)||window.document).documentElement}function TS(e){return hs(e)==="html"?e:e.assignedSlot||e.parentNode||(cP(e)?e.host:null)||Uu(e)}function F3(e){return!na(e)||vl(e).position==="fixed"?null:e.offsetParent}function H1e(e){var t=/firefox/i.test(LA()),n=/Trident/i.test(LA());if(n&&na(e)){var r=vl(e);if(r.position==="fixed")return null}var i=TS(e);for(cP(i)&&(i=i.host);na(i)&&["html","body"].indexOf(hs(i))<0;){var o=vl(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function sm(e){for(var t=Io(e),n=F3(e);n&&U1e(n)&&vl(n).position==="static";)n=F3(n);return n&&(hs(n)==="html"||hs(n)==="body"&&vl(n).position==="static")?t:n||H1e(e)||t}function dP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fv(e,t,n){return of(e,G1(t,n))}function G1e(e,t,n){var r=Fv(e,t,n);return r>n?n:r}function T8(){return{top:0,right:0,bottom:0,left:0}}function E8(e){return Object.assign({},T8(),e)}function C8(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var z1e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,E8(typeof t!="number"?t:C8(t,am))};function W1e(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=os(n.placement),l=dP(s),u=[to,sa].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=z1e(i.padding,n),d=fP(o),h=l==="y"?eo:to,v=l==="y"?aa:sa,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],y=a[l]-n.rects.reference[l],_=sm(o),b=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,w=m/2-y/2,S=f[h],E=b-d[c]-f[v],T=b/2-d[c]/2+w,A=Fv(S,T,E),P=l;n.modifiersData[r]=(t={},t[P]=A,t.centerOffset=A-T,t)}}function j1e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||x8(t.elements.popper,i)&&(t.elements.arrow=i))}const Y1e={name:"arrow",enabled:!0,phase:"main",fn:W1e,effect:j1e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dh(e){return e.split("-")[1]}var X1e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K1e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ch(n*i)/i||0,y:ch(r*i)/i||0}}function $3(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,h=d===void 0?0:d,v=a.y,m=v===void 0?0:v,y=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=y.x,m=y.y;var _=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),w=to,S=eo,E=window;if(u){var T=sm(n),A="clientHeight",P="clientWidth";if(T===Io(n)&&(T=Uu(n),vl(T).position!=="static"&&s==="absolute"&&(A="scrollHeight",P="scrollWidth")),T=T,i===eo||(i===to||i===sa)&&o===Og){S=aa;var I=f&&T===E&&E.visualViewport?E.visualViewport.height:T[A];m-=I-r.height,m*=l?1:-1}if(i===to||(i===eo||i===aa)&&o===Og){w=sa;var R=f&&T===E&&E.visualViewport?E.visualViewport.width:T[P];h-=R-r.width,h*=l?1:-1}}var O=Object.assign({position:s},u&&X1e),M=c===!0?K1e({x:h,y:m},Io(n)):{x:h,y:m};if(h=M.x,m=M.y,l){var $;return Object.assign({},O,($={},$[S]=b?"0":"",$[w]=_?"0":"",$.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",$))}return Object.assign({},O,(t={},t[S]=b?m+"px":"",t[w]=_?h+"px":"",t.transform="",t))}function Z1e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:os(t.placement),variation:dh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$3(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$3(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const q1e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Z1e,data:{}};var T0={passive:!0};function J1e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Io(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,T0)}),s&&l.addEventListener("resize",n.update,T0),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,T0)}),s&&l.removeEventListener("resize",n.update,T0)}}const Q1e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:J1e,data:{}};var ebe={left:"right",right:"left",bottom:"top",top:"bottom"};function O_(e){return e.replace(/left|right|bottom|top/g,function(t){return ebe[t]})}var tbe={start:"end",end:"start"};function B3(e){return e.replace(/start|end/g,function(t){return tbe[t]})}function hP(e){var t=Io(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function pP(e){return fh(Uu(e)).left+hP(e).scrollLeft}function nbe(e,t){var n=Io(e),r=Uu(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=w8();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+pP(e),y:l}}function rbe(e){var t,n=Uu(e),r=hP(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=of(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=of(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+pP(e),l=-r.scrollTop;return vl(i||n).direction==="rtl"&&(s+=of(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function vP(e){var t=vl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function A8(e){return["html","body","#document"].indexOf(hs(e))>=0?e.ownerDocument.body:na(e)&&vP(e)?e:A8(TS(e))}function $v(e,t){var n;t===void 0&&(t=[]);var r=A8(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Io(r),a=i?[o].concat(o.visualViewport||[],vP(r)?r:[]):r,s=t.concat(a);return i?s:s.concat($v(TS(a)))}function NA(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ibe(e,t){var n=fh(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function V3(e,t,n){return t===_8?NA(nbe(e,n)):bf(t)?ibe(t,n):NA(rbe(Uu(e)))}function obe(e){var t=$v(TS(e)),n=["absolute","fixed"].indexOf(vl(e).position)>=0,r=n&&na(e)?sm(e):e;return bf(r)?t.filter(function(i){return bf(i)&&x8(i,r)&&hs(i)!=="body"}):[]}function abe(e,t,n,r){var i=t==="clippingParents"?obe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=V3(e,u,r);return l.top=of(c.top,l.top),l.right=G1(c.right,l.right),l.bottom=G1(c.bottom,l.bottom),l.left=of(c.left,l.left),l},V3(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function I8(e){var t=e.reference,n=e.element,r=e.placement,i=r?os(r):null,o=r?dh(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case eo:l={x:a,y:t.y-n.height};break;case aa:l={x:a,y:t.y+t.height};break;case sa:l={x:t.x+t.width,y:s};break;case to:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?dP(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case uh:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Og:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Dg(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?A1e:s,u=n.rootBoundary,c=u===void 0?_8:u,f=n.elementContext,d=f===void 0?Lp:f,h=n.altBoundary,v=h===void 0?!1:h,m=n.padding,y=m===void 0?0:m,_=E8(typeof y!="number"?y:C8(y,am)),b=d===Lp?I1e:Lp,w=e.rects.popper,S=e.elements[v?b:d],E=abe(bf(S)?S:S.contextElement||Uu(e.elements.popper),l,c,a),T=fh(e.elements.reference),A=I8({reference:T,element:w,strategy:"absolute",placement:i}),P=NA(Object.assign({},w,A)),I=d===Lp?P:T,R={top:E.top-I.top+_.top,bottom:I.bottom-E.bottom+_.bottom,left:E.left-I.left+_.left,right:I.right-E.right+_.right},O=e.modifiersData.offset;if(d===Lp&&O){var M=O[i];Object.keys(R).forEach(function($){var F=[sa,aa].indexOf($)>=0?1:-1,z=[eo,aa].indexOf($)>=0?"y":"x";R[$]+=M[z]*F})}return R}function sbe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?b8:l,c=dh(r),f=c?s?k3:k3.filter(function(v){return dh(v)===c}):am,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,m){return v[m]=Dg(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[os(m)],v},{});return Object.keys(h).sort(function(v,m){return h[v]-h[m]})}function lbe(e){if(os(e)===uP)return[];var t=O_(e);return[B3(e),t,B3(t)]}function ube(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,m=n.allowedAutoPlacements,y=t.options.placement,_=os(y),b=_===y,w=l||(b||!v?[O_(y)]:lbe(y)),S=[y].concat(w).reduce(function(ze,Me){return ze.concat(os(Me)===uP?sbe(t,{placement:Me,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:m}):Me)},[]),E=t.rects.reference,T=t.rects.popper,A=new Map,P=!0,I=S[0],R=0;R=0,z=F?"width":"height",B=Dg(t,{placement:O,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),Y=F?$?sa:to:$?aa:eo;E[z]>T[z]&&(Y=O_(Y));var j=O_(Y),ae=[];if(o&&ae.push(B[M]<=0),s&&ae.push(B[Y]<=0,B[j]<=0),ae.every(function(ze){return ze})){I=O,P=!1;break}A.set(O,ae)}if(P)for(var ge=v?3:1,ve=function(Me){var je=S.find(function(ce){var Ce=A.get(ce);if(Ce)return Ce.slice(0,Me).every(function(Se){return Se})});if(je)return I=je,"break"},De=ge;De>0;De--){var Ne=ve(De);if(Ne==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const cbe={name:"flip",enabled:!0,phase:"main",fn:ube,requiresIfExists:["offset"],data:{_skip:!1}};function U3(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function H3(e){return[eo,sa,aa,to].some(function(t){return e[t]>=0})}function fbe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Dg(t,{elementContext:"reference"}),s=Dg(t,{altBoundary:!0}),l=U3(a,r),u=U3(s,i,o),c=H3(l),f=H3(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const dbe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fbe};function hbe(e,t,n){var r=os(e),i=[to,eo].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[to,sa].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function pbe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=b8.reduce(function(c,f){return c[f]=hbe(f,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const vbe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pbe};function gbe(e){var t=e.state,n=e.name;t.modifiersData[n]=I8({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const mbe={name:"popperOffsets",enabled:!0,phase:"read",fn:gbe,data:{}};function ybe(e){return e==="x"?"y":"x"}function _be(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,v=n.tetherOffset,m=v===void 0?0:v,y=Dg(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),_=os(t.placement),b=dh(t.placement),w=!b,S=dP(_),E=ybe(S),T=t.modifiersData.popperOffsets,A=t.rects.reference,P=t.rects.popper,I=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(T){if(o){var $,F=S==="y"?eo:to,z=S==="y"?aa:sa,B=S==="y"?"height":"width",Y=T[S],j=Y+y[F],ae=Y-y[z],ge=h?-P[B]/2:0,ve=b===uh?A[B]:P[B],De=b===uh?-P[B]:-A[B],Ne=t.elements.arrow,ze=h&&Ne?fP(Ne):{width:0,height:0},Me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:T8(),je=Me[F],ce=Me[z],Ce=Fv(0,A[B],ze[B]),Se=w?A[B]/2-ge-Ce-je-R.mainAxis:ve-Ce-je-R.mainAxis,Te=w?-A[B]/2+ge+Ce+ce+R.mainAxis:De+Ce+ce+R.mainAxis,Oe=t.elements.arrow&&sm(t.elements.arrow),$e=Oe?S==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,H=($=O==null?void 0:O[S])!=null?$:0,G=Y+Se-H-$e,le=Y+Te-H,we=Fv(h?G1(j,G):j,Y,h?of(ae,le):ae);T[S]=we,M[S]=we-Y}if(s){var pe,U=S==="x"?eo:to,W=S==="x"?aa:sa,q=T[E],fe=E==="y"?"height":"width",_e=q+y[U],Pe=q-y[W],Z=[eo,to].indexOf(_)!==-1,de=(pe=O==null?void 0:O[E])!=null?pe:0,Be=Z?_e:q-A[fe]-P[fe]-de+R.altAxis,Xe=Z?q+A[fe]+P[fe]-de-R.altAxis:Pe,ht=h&&Z?G1e(Be,q,Xe):Fv(h?Be:_e,q,h?Xe:Pe);T[E]=ht,M[E]=ht-q}t.modifiersData[r]=M}}const bbe={name:"preventOverflow",enabled:!0,phase:"main",fn:_be,requiresIfExists:["offset"]};function Sbe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wbe(e){return e===Io(e)||!na(e)?hP(e):Sbe(e)}function xbe(e){var t=e.getBoundingClientRect(),n=ch(t.width)/e.offsetWidth||1,r=ch(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Tbe(e,t,n){n===void 0&&(n=!1);var r=na(t),i=na(t)&&xbe(t),o=Uu(t),a=fh(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((hs(t)!=="body"||vP(o))&&(s=wbe(t)),na(t)?(l=fh(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=pP(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ebe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Cbe(e){var t=Ebe(e);return $1e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Abe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ibe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var G3={placement:"bottom",modifiers:[],strategy:"absolute"};function z3(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function M8(e,t){return typeof e=="function"?e.apply(void 0,t):e}function W3(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Lbe(e){return e.split(/\s+/).filter(Boolean)}function Sd(e){return[].concat(e)}function j3(e,t){e.indexOf(t)===-1&&e.push(t)}function Nbe(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function kbe(e){return e.split("-")[0]}function z1(e){return[].slice.call(e)}function Y3(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Bv(){return document.createElement("div")}function ES(e){return["Element","Fragment"].some(function(t){return gP(e,t)})}function Fbe(e){return gP(e,"NodeList")}function $be(e){return gP(e,"MouseEvent")}function Bbe(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Vbe(e){return ES(e)?[e]:Fbe(e)?z1(e):Array.isArray(e)?e:z1(document.querySelectorAll(e))}function hE(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function X3(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Ube(e){var t,n=Sd(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Hbe(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,u=kbe(a.placement),c=a.modifiersData.offset;if(!c)return!0;var f=u==="bottom"?c.top.y:0,d=u==="top"?c.bottom.y:0,h=u==="right"?c.left.x:0,v=u==="left"?c.right.x:0,m=o.top-r+f>l,y=r-o.bottom-d>l,_=o.left-n+h>l,b=n-o.right-v>l;return m||y||_||b})}function pE(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function K3(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Ja={isTouch:!1},Z3=0;function Gbe(){Ja.isTouch||(Ja.isTouch=!0,window.performance&&document.addEventListener("mousemove",L8))}function L8(){var e=performance.now();e-Z3<20&&(Ja.isTouch=!1,document.removeEventListener("mousemove",L8)),Z3=e}function zbe(){var e=document.activeElement;if(Bbe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Wbe(){document.addEventListener("touchstart",Gbe,Ac),window.addEventListener("blur",zbe)}var jbe=typeof window<"u"&&typeof document<"u",Ybe=jbe?!!window.msCrypto:!1,Xbe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Kbe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Pa=Object.assign({appendTo:D8,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Xbe,Kbe),Zbe=Object.keys(Pa),qbe=function(t){var n=Object.keys(t);n.forEach(function(r){Pa[r]=t[r]})};function N8(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=Pa[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function Jbe(e,t){var n=t?Object.keys(N8(Object.assign({},Pa,{plugins:t}))):Zbe,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function q3(e,t){var n=Object.assign({},t,{content:M8(t.content,[e])},t.ignoreAttributes?{}:Jbe(e,t.plugins));return n.aria=Object.assign({},Pa.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var Qbe=function(){return"innerHTML"};function kA(e,t){e[Qbe()]=t}function J3(e){var t=Bv();return e===!0?t.className=P8:(t.className=O8,ES(e)?t.appendChild(e):kA(t,e)),t}function Q3(e,t){ES(t.content)?(kA(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?kA(e,t.content):e.textContent=t.content)}function FA(e){var t=e.firstElementChild,n=z1(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(R8)}),arrow:n.find(function(r){return r.classList.contains(P8)||r.classList.contains(O8)}),backdrop:n.find(function(r){return r.classList.contains(Mbe)})}}function k8(e){var t=Bv(),n=Bv();n.className=Dbe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Bv();r.className=R8,r.setAttribute("data-state","hidden"),Q3(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=FA(t),l=s.box,u=s.content,c=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&Q3(u,e.props),a.arrow?c?o.arrow!==a.arrow&&(l.removeChild(c),l.appendChild(J3(a.arrow))):l.appendChild(J3(a.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:i}}k8.$$tippy=!0;var eSe=1,E0=[],vE=[];function tSe(e,t){var n=q3(e,Object.assign({},Pa,N8(Y3(t)))),r,i,o,a=!1,s=!1,l=!1,u=!1,c,f,d,h=[],v=W3(G,n.interactiveDebounce),m,y=eSe++,_=null,b=Nbe(n.plugins),w={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},S={id:y,reference:e,popper:Bv(),popperInstance:_,props:n,state:w,plugins:b,clearDelayTimeouts:Be,setProps:Xe,setContent:ht,show:ee,hide:re,hideWithInteractivity:he,enable:Z,disable:de,unmount:Ee,destroy:He};if(!n.render)return S;var E=n.render(S),T=E.popper,A=E.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+S.id,S.popper=T,e._tippy=S,T._tippy=S;var P=b.map(function(ne){return ne.fn(S)}),I=e.hasAttribute("aria-expanded");return Oe(),ge(),Y(),j("onCreate",[S]),n.showOnCreate&&_e(),T.addEventListener("mouseenter",function(){S.props.interactive&&S.state.isVisible&&S.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){S.props.interactive&&S.props.trigger.indexOf("mouseenter")>=0&&F().addEventListener("mousemove",v)}),S;function R(){var ne=S.props.touch;return Array.isArray(ne)?ne:[ne,0]}function O(){return R()[0]==="hold"}function M(){var ne;return!!((ne=S.props.render)!=null&&ne.$$tippy)}function $(){return m||e}function F(){var ne=$().parentNode;return ne?Ube(ne):document}function z(){return FA(T)}function B(ne){return S.state.isMounted&&!S.state.isVisible||Ja.isTouch||c&&c.type==="focus"?0:dE(S.props.delay,ne?0:1,Pa.delay)}function Y(ne){ne===void 0&&(ne=!1),T.style.pointerEvents=S.props.interactive&&!ne?"":"none",T.style.zIndex=""+S.props.zIndex}function j(ne,Ae,ke){if(ke===void 0&&(ke=!0),P.forEach(function(Ge){Ge[ne]&&Ge[ne].apply(Ge,Ae)}),ke){var Qe;(Qe=S.props)[ne].apply(Qe,Ae)}}function ae(){var ne=S.props.aria;if(ne.content){var Ae="aria-"+ne.content,ke=T.id,Qe=Sd(S.props.triggerTarget||e);Qe.forEach(function(Ge){var We=Ge.getAttribute(Ae);if(S.state.isVisible)Ge.setAttribute(Ae,We?We+" "+ke:ke);else{var et=We&&We.replace(ke,"").trim();et?Ge.setAttribute(Ae,et):Ge.removeAttribute(Ae)}})}}function ge(){if(!(I||!S.props.aria.expanded)){var ne=Sd(S.props.triggerTarget||e);ne.forEach(function(Ae){S.props.interactive?Ae.setAttribute("aria-expanded",S.state.isVisible&&Ae===$()?"true":"false"):Ae.removeAttribute("aria-expanded")})}}function ve(){F().removeEventListener("mousemove",v),E0=E0.filter(function(ne){return ne!==v})}function De(ne){if(!(Ja.isTouch&&(l||ne.type==="mousedown"))){var Ae=ne.composedPath&&ne.composedPath()[0]||ne.target;if(!(S.props.interactive&&K3(T,Ae))){if(Sd(S.props.triggerTarget||e).some(function(ke){return K3(ke,Ae)})){if(Ja.isTouch||S.state.isVisible&&S.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[S,ne]);S.props.hideOnClick===!0&&(S.clearDelayTimeouts(),S.hide(),s=!0,setTimeout(function(){s=!1}),S.state.isMounted||je())}}}function Ne(){l=!0}function ze(){l=!1}function Me(){var ne=F();ne.addEventListener("mousedown",De,!0),ne.addEventListener("touchend",De,Ac),ne.addEventListener("touchstart",ze,Ac),ne.addEventListener("touchmove",Ne,Ac)}function je(){var ne=F();ne.removeEventListener("mousedown",De,!0),ne.removeEventListener("touchend",De,Ac),ne.removeEventListener("touchstart",ze,Ac),ne.removeEventListener("touchmove",Ne,Ac)}function ce(ne,Ae){Se(ne,function(){!S.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&Ae()})}function Ce(ne,Ae){Se(ne,Ae)}function Se(ne,Ae){var ke=z().box;function Qe(Ge){Ge.target===ke&&(pE(ke,"remove",Qe),Ae())}if(ne===0)return Ae();pE(ke,"remove",f),pE(ke,"add",Qe),f=Qe}function Te(ne,Ae,ke){ke===void 0&&(ke=!1);var Qe=Sd(S.props.triggerTarget||e);Qe.forEach(function(Ge){Ge.addEventListener(ne,Ae,ke),h.push({node:Ge,eventType:ne,handler:Ae,options:ke})})}function Oe(){O()&&(Te("touchstart",H,{passive:!0}),Te("touchend",le,{passive:!0})),Lbe(S.props.trigger).forEach(function(ne){if(ne!=="manual")switch(Te(ne,H),ne){case"mouseenter":Te("mouseleave",le);break;case"focus":Te(Ybe?"focusout":"blur",we);break;case"focusin":Te("focusout",we);break}})}function $e(){h.forEach(function(ne){var Ae=ne.node,ke=ne.eventType,Qe=ne.handler,Ge=ne.options;Ae.removeEventListener(ke,Qe,Ge)}),h=[]}function H(ne){var Ae,ke=!1;if(!(!S.state.isEnabled||pe(ne)||s)){var Qe=((Ae=c)==null?void 0:Ae.type)==="focus";c=ne,m=ne.currentTarget,ge(),!S.state.isVisible&&$be(ne)&&E0.forEach(function(Ge){return Ge(ne)}),ne.type==="click"&&(S.props.trigger.indexOf("mouseenter")<0||a)&&S.props.hideOnClick!==!1&&S.state.isVisible?ke=!0:_e(ne),ne.type==="click"&&(a=!ke),ke&&!Qe&&Pe(ne)}}function G(ne){var Ae=ne.target,ke=$().contains(Ae)||T.contains(Ae);if(!(ne.type==="mousemove"&&ke)){var Qe=fe().concat(T).map(function(Ge){var We,et=Ge._tippy,It=(We=et.popperInstance)==null?void 0:We.state;return It?{popperRect:Ge.getBoundingClientRect(),popperState:It,props:n}:null}).filter(Boolean);Hbe(Qe,ne)&&(ve(),Pe(ne))}}function le(ne){var Ae=pe(ne)||S.props.trigger.indexOf("click")>=0&&a;if(!Ae){if(S.props.interactive){S.hideWithInteractivity(ne);return}Pe(ne)}}function we(ne){S.props.trigger.indexOf("focusin")<0&&ne.target!==$()||S.props.interactive&&ne.relatedTarget&&T.contains(ne.relatedTarget)||Pe(ne)}function pe(ne){return Ja.isTouch?O()!==ne.type.indexOf("touch")>=0:!1}function U(){W();var ne=S.props,Ae=ne.popperOptions,ke=ne.placement,Qe=ne.offset,Ge=ne.getReferenceClientRect,We=ne.moveTransition,et=M()?FA(T).arrow:null,It=Ge?{getBoundingClientRect:Ge,contextElement:Ge.contextElement||$()}:e,Pt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Pn){var pr=Pn.state;if(M()){var Rf=z(),bl=Rf.box;["placement","reference-hidden","escaped"].forEach(function(Ba){Ba==="placement"?bl.setAttribute("data-placement",pr.placement):pr.attributes.popper["data-popper-"+Ba]?bl.setAttribute("data-"+Ba,""):bl.removeAttribute("data-"+Ba)}),pr.attributes.popper={}}}},Nn=[{name:"offset",options:{offset:Qe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!We}},Pt];M()&&et&&Nn.push({name:"arrow",options:{element:et,padding:3}}),Nn.push.apply(Nn,(Ae==null?void 0:Ae.modifiers)||[]),S.popperInstance=Obe(It,T,Object.assign({},Ae,{placement:ke,onFirstUpdate:d,modifiers:Nn}))}function W(){S.popperInstance&&(S.popperInstance.destroy(),S.popperInstance=null)}function q(){var ne=S.props.appendTo,Ae,ke=$();S.props.interactive&&ne===D8||ne==="parent"?Ae=ke.parentNode:Ae=M8(ne,[ke]),Ae.contains(T)||Ae.appendChild(T),S.state.isMounted=!0,U()}function fe(){return z1(T.querySelectorAll("[data-tippy-root]"))}function _e(ne){S.clearDelayTimeouts(),ne&&j("onTrigger",[S,ne]),Me();var Ae=B(!0),ke=R(),Qe=ke[0],Ge=ke[1];Ja.isTouch&&Qe==="hold"&&Ge&&(Ae=Ge),Ae?r=setTimeout(function(){S.show()},Ae):S.show()}function Pe(ne){if(S.clearDelayTimeouts(),j("onUntrigger",[S,ne]),!S.state.isVisible){je();return}if(!(S.props.trigger.indexOf("mouseenter")>=0&&S.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ne.type)>=0&&a)){var Ae=B(!1);Ae?i=setTimeout(function(){S.state.isVisible&&S.hide()},Ae):o=requestAnimationFrame(function(){S.hide()})}}function Z(){S.state.isEnabled=!0}function de(){S.hide(),S.state.isEnabled=!1}function Be(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function Xe(ne){if(!S.state.isDestroyed){j("onBeforeUpdate",[S,ne]),$e();var Ae=S.props,ke=q3(e,Object.assign({},Ae,Y3(ne),{ignoreAttributes:!0}));S.props=ke,Oe(),Ae.interactiveDebounce!==ke.interactiveDebounce&&(ve(),v=W3(G,ke.interactiveDebounce)),Ae.triggerTarget&&!ke.triggerTarget?Sd(Ae.triggerTarget).forEach(function(Qe){Qe.removeAttribute("aria-expanded")}):ke.triggerTarget&&e.removeAttribute("aria-expanded"),ge(),Y(),A&&A(Ae,ke),S.popperInstance&&(U(),fe().forEach(function(Qe){requestAnimationFrame(Qe._tippy.popperInstance.forceUpdate)})),j("onAfterUpdate",[S,ne])}}function ht(ne){S.setProps({content:ne})}function ee(){var ne=S.state.isVisible,Ae=S.state.isDestroyed,ke=!S.state.isEnabled,Qe=Ja.isTouch&&!S.props.touch,Ge=dE(S.props.duration,0,Pa.duration);if(!(ne||Ae||ke||Qe)&&!$().hasAttribute("disabled")&&(j("onShow",[S],!1),S.props.onShow(S)!==!1)){if(S.state.isVisible=!0,M()&&(T.style.visibility="visible"),Y(),Me(),S.state.isMounted||(T.style.transition="none"),M()){var We=z(),et=We.box,It=We.content;hE([et,It],0)}d=function(){var Nn;if(!(!S.state.isVisible||u)){if(u=!0,T.offsetHeight,T.style.transition=S.props.moveTransition,M()&&S.props.animation){var ca=z(),Pn=ca.box,pr=ca.content;hE([Pn,pr],Ge),X3([Pn,pr],"visible")}ae(),ge(),j3(vE,S),(Nn=S.popperInstance)==null||Nn.forceUpdate(),j("onMount",[S]),S.props.animation&&M()&&Ce(Ge,function(){S.state.isShown=!0,j("onShown",[S])})}},q()}}function re(){var ne=!S.state.isVisible,Ae=S.state.isDestroyed,ke=!S.state.isEnabled,Qe=dE(S.props.duration,1,Pa.duration);if(!(ne||Ae||ke)&&(j("onHide",[S],!1),S.props.onHide(S)!==!1)){if(S.state.isVisible=!1,S.state.isShown=!1,u=!1,a=!1,M()&&(T.style.visibility="hidden"),ve(),je(),Y(!0),M()){var Ge=z(),We=Ge.box,et=Ge.content;S.props.animation&&(hE([We,et],Qe),X3([We,et],"hidden"))}ae(),ge(),S.props.animation?M()&&ce(Qe,S.unmount):S.unmount()}}function he(ne){F().addEventListener("mousemove",v),j3(E0,v),v(ne)}function Ee(){S.state.isVisible&&S.hide(),S.state.isMounted&&(W(),fe().forEach(function(ne){ne._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),vE=vE.filter(function(ne){return ne!==S}),S.state.isMounted=!1,j("onHidden",[S]))}function He(){S.state.isDestroyed||(S.clearDelayTimeouts(),S.unmount(),$e(),delete e._tippy,S.state.isDestroyed=!0,j("onDestroy",[S]))}}function lm(e,t){t===void 0&&(t={});var n=Pa.plugins.concat(t.plugins||[]);Wbe();var r=Object.assign({},t,{plugins:n}),i=Vbe(e),o=i.reduce(function(a,s){var l=s&&tSe(s,r);return l&&a.push(l),a},[]);return ES(e)?o[0]:o}lm.defaultProps=Pa;lm.setDefaultProps=qbe;lm.currentInput=Ja;Object.assign({},S8,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});lm.setDefaultProps({render:k8});const F8=()=>{let e=null;return{showTip:(n,r)=>{e==null||e.destroy(),e=lm(n.target,{content:r,placement:"top",animation:"scale",appendTo:document.body,allowHTML:!0,onHidden:()=>{e==null||e.destroy(),e=null}}),e.show()}}},nSe={class:"flex w-full flex-1 items-center gap-1"},rSe={class:"flex h-4 w-full items-center justify-between"},iSe=it({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,{showTip:n}=F8(),r=c=>{const f=c.target,{scrollWidth:d,clientWidth:h}=f;d>h&&n(c,f.innerText)},i=Ve(()=>fi.value[t.name]),o=Fe(!1),a=c=>(c=c.toLowerCase(),c=c.replace("shadowsocks","ss"),c=c.replace("hysteria","hy"),c=c.replace("wireguard","wg"),c),s=Ve(()=>mv.value===Kg.SMALL),l=Ve(()=>{const c=a(i.value.type),f=Kc.value&&Dre(i.value.name)?"IPv6":"",d=i.value.xudp?"xudp":i.value.udp?"udp":"";return[c,d,f].filter(Boolean).join(s.value?"/":" / ")}),u=async()=>{if(!o.value){o.value=!0;try{await Mre(t.name),o.value=!1}catch{o.value=!1}}};return(c,f)=>(K(),se("div",{ref:"cardRef",class:rt(N(En)("flex cursor-pointer flex-col items-start gap-[2px] rounded-md bg-base-200",c.active?"bg-primary text-primary-content":"sm:hover:bg-base-300",s.value?"p-1":"p-2"))},[L("div",nSe,[i.value.icon?(K(),Ot(y8,{key:0,class:"shrink-0",size:"small",icon:i.value.icon,fill:c.active?"fill-primary-content":"fill-base-content"},null,8,["icon","fill"])):mt("",!0),L("span",{class:rt(N(En)("text-sm",N(vv)&&"truncate")),onMouseenter:r},oe(i.value.name),35)]),L("div",rSe,[L("span",{class:rt(`whitespace-nowrap text-xs tracking-tight ${c.active?"text-primary-content":"text-slate-500"}`)},oe(l.value),3),ye(d8,{class:rt([o.value?"animate-pulse cursor-wait":"",s.value&&"!h-4 !w-8"]),name:i.value.name,onClick:cf(u,["stop"])},null,8,["class","name"])])],2))}}),$8=jb(iSe,[["__scopeId","data-v-c4818018"]]),oSe=it({__name:"ProxyNodeGrid",setup(e){const{hasTwoColumns:t}=Yb();return(n,r)=>(K(),se("div",{class:rt(N(En)("grid grid-cols-2 gap-2 overflow-x-hidden",N(vv)&&"max-h-96 overflow-y-auto",N(mv)===N(Kg).LARGE?N(gu)?N(t)?"sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5":"sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8 3xl:grid-cols-10":N(t)?"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-2 2xl:grid-cols-3 3xl:grid-cols-4":"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-6 3xl:grid-cols-8":N(gu)?N(t)?"sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-6 xl:grid-cols-4 2xl:grid-cols-5 3xl:grid-cols-6":"sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-6 xl:grid-cols-8 2xl:grid-cols-10 3xl:grid-cols-12":N(t)?"sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5":"sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-8 3xl:grid-cols-10"))},[Md(n.$slots,"default",{},void 0,!0)],2))}}),B8=jb(oSe,[["__scopeId","data-v-cb978889"]]),aSe={key:0,class:"flex flex-wrap gap-1 pt-2"},sSe=["onMouseenter","onClick"],lSe={key:0,class:"h-2 w-2 rounded-full bg-white"},uSe={key:1,class:"flex items-center gap-2 py-2"},cSe={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},fSe=it({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,{showTip:n}=F8(),r=(f,d)=>{const h=document.createElement("div"),v=document.createElement("div");if(v.textContent=d.name,h.append(v),d.latency!==qo){const m=document.createElement("div");m.textContent=`${d.latency}ms`,m.classList.add(ru(d.latency)),h.append(m)}h.classList.add("flex","items-center","gap-2"),n(f,h)},i=Ve(()=>gv.value===lg.DOTS||gv.value===lg.AUTO&&t.nodes.length<20),o=Ve(()=>t.nodes.map(f=>({latency:Zg(f),name:f}))),a=f=>f===qo?"bg-gray-500":fo.value.filter(f=>f.latencyqo).length),l=Ve(()=>o.value.filter(f=>f.latency>=su.value&&f.latencyo.value.filter(f=>f.latency>=Ys.value).length),c=Ve(()=>o.value.filter(f=>f.latency===qo).length);return(f,d)=>i.value?(K(),se("div",aSe,[(K(!0),se(qe,null,ln(o.value,h=>(K(),se("div",{key:h.name,class:rt(["flex h-4 w-4 items-center justify-center rounded-full transition hover:scale-110",a(h.latency)]),ref_for:!0,ref:"dotsRef",onMouseenter:v=>r(v,h),onClick:cf(v=>f.$emit("nodeclick",h.name),["stop"])},[f.now===h.name?(K(),se("div",lSe)):mt("",!0)],42,sSe))),128))])):(K(),se("div",uSe,[L("div",cSe,[L("div",{class:rt(a(N(su)-1)),style:Gr({width:`${s.value*100/f.nodes.length}%`})},null,6),L("div",{class:rt(a(N(Ys)-1)),style:Gr({width:`${l.value*100/f.nodes.length}%`})},null,6),L("div",{class:rt(a(N(Ys)+1)),style:Gr({width:`${u.value*100/f.nodes.length}%`})},null,6),L("div",{class:rt(a(N(qo))),style:Gr({width:`${c.value*100/f.nodes.length}%`})},null,6)])]))}}),V8=jb(fSe,[["__scopeId","data-v-7ca56d01"]]),dSe={class:"flex items-center gap-2 pr-5"},hSe={class:"flex flex-1 items-center gap-1"},pSe={class:"flex-1 text-xs text-slate-400"},vSe={class:"mt-[2px] flex items-center gap-2"},gSe={class:"flex flex-1 items-center gap-1"},mSe={class:"shrink-0 text-xs text-slate-500"},ySe=it({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,n=Ve(()=>fi.value[t.name]),r=Ve(()=>OB(n.value.all??[])),i=Fe(!1),o=async()=>{if(!i.value){i.value=!0;try{await Lre(t.name),i.value=!1}catch{i.value=!1}}},a=Ve(()=>Qo.value.filter(l=>l.chains.includes(t.name)).reduce((l,u)=>l+u.downloadSpeed,0));return(s,l)=>(K(),Ot(f8,{name:n.value.name},{title:Mr(()=>{var u;return[L("div",dSe,[L("div",hSe,[ye(H1,{name:n.value.name,size:"large"},null,8,["name"]),L("span",pSe,": "+oe(n.value.type)+" ("+oe((u=n.value.all)==null?void 0:u.length)+")",1)]),ye(d8,{class:rt(N(En)("z-10 bg-base-200/40 hover:shadow",i.value?"animate-pulse cursor-wait bg-base-300":"")),name:n.value.now,onClick:cf(o,["stop"])},null,8,["class","name"])]),L("div",vSe,[L("div",gSe,[n.value.now?(K(),se(qe,{key:0},[ye(N(ff),{class:"h-4 w-4"}),ye(H1,{class:"text-slate-500",name:n.value.now},null,8,["name"])],64)):mt("",!0)]),L("div",mSe,oe(N(Tn)(a.value))+"/s",1)])]}),preview:Mr(()=>[ye(V8,{nodes:r.value,now:n.value.now,groupName:n.value.name,onNodeclick:l[0]||(l[0]=u=>N(pL)(n.value.name,u))},null,8,["nodes","now","groupName"])]),content:Mr(()=>[ye(B8,null,{default:Mr(()=>[(K(!0),se(qe,null,ln(r.value,u=>(K(),Ot($8,{key:u,name:u,active:u===n.value.now,onClick:c=>N(pL)(n.value.name,u)},null,8,["name","active","onClick"]))),128))]),_:1})]),_:1},8,["name"]))}}),_Se={class:"flex items-center gap-2"},bSe={class:"text-lg font-medium sm:text-xl"},SSe={class:"text-sm"},wSe={class:"flex gap-2"},xSe=["value"],TSe={class:"flex flex-col sm:flex-row sm:gap-4"},ESe={class:"text-sm text-slate-500"},CSe={class:"text-sm text-slate-500"},ASe={class:"text-sm text-slate-500"},ISe=it({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,n=c=>{const{Download:f=0,Upload:d=0,Total:h=0,Expire:v=0}=c;if(f===0&&d===0&&h===0&&v===0)return null;const m=Tn(h,{binary:!0}),y=Tn(f+d,{binary:!0}),_=So.toFinite(((f+d)/h*100).toFixed(2));return{total:m,used:y,percentage:_,expirePrefix:()=>{const{t:S}=us();return S("expire")},expireStr:()=>{const{t:S}=us();return v===0?S("noExpire"):Ma(v*1e3).format("YYYY-MM-DD")}}},r=Ve(()=>kd.value.find(c=>c.name===t.name)),i=Ve(()=>OB(r.value.proxies.map(c=>c.name))),o=Ve(()=>r.value.subscriptionInfo?n(r.value.subscriptionInfo):null),a=Fe(!1),s=Fe(!1),l=async()=>{if(!s.value){s.value=!0;try{await Eoe(t.name),await fl(),s.value=!1}catch{s.value=!1}}},u=async()=>{if(!a.value){a.value=!0;try{await aV(t.name),await fl(),a.value=!1}catch{a.value=!1}}};return(c,f)=>(K(),Ot(f8,{name:r.value.name},{title:Mr(()=>[L("div",_Se,[L("div",bSe,[ft(oe(r.value.name)+" ",1),L("span",SSe," ("+oe(r.value.proxies.length)+") ",1)]),f[0]||(f[0]=L("div",{class:"flex-1"},null,-1)),L("div",wSe,[L("button",{class:rt(N(En)("btn btn-circle btn-sm z-30",s.value?"animate-pulse":"")),onClick:cf(l,["stop"])},[ye(N(Tb),{class:"h-4 w-4"})],2),L("button",{class:rt(N(En)("btn btn-circle btn-sm z-30",a.value?"animate-spin":"")),onClick:cf(u,["stop"])},[ye(N(V4),{class:"h-4 w-4"})],2)])]),o.value?(K(),se("progress",{key:0,class:"progress",value:o.value.percentage,max:"100"},null,8,xSe)):mt("",!0),L("div",TSe,[o.value?(K(),se(qe,{key:0},[L("div",ESe,oe(o.value.used)+" / "+oe(o.value.total)+" ( "+oe(o.value.percentage)+"% ) ",1),L("div",CSe,oe(o.value.expirePrefix())+": "+oe(o.value.expireStr()),1)],64)):mt("",!0),L("div",ASe,oe(c.$t("updated"))+" "+oe(N(kb)(r.value.updatedAt)),1)])]),preview:Mr(()=>[ye(V8,{nodes:i.value},null,8,["nodes"])]),content:Mr(()=>[ye(B8,null,{default:Mr(()=>[(K(!0),se(qe,null,ln(i.value,d=>(K(),Ot($8,{key:d,name:d},null,8,["name"]))),128))]),_:1})]),_:1},8,["name"]))}}),RSe={class:"overflow-y-auto p-2"},PSe={key:0,class:"grid grid-cols-2 gap-1"},OSe={key:1,class:"grid grid-cols-1 gap-1"},DSe=it({__name:"ProxiesPage",setup(e){const{proxiesTabShow:t,renderGroups:n}=Yb(),r=Ve(()=>t.value===df.PROVIDER?ISe:ySe),i=(o,a)=>o.filter((s,l)=>l%2===a);return fl(),(o,a)=>(K(),se("div",RSe,[N(cre)&&N(dv)&&N(n).length>1?(K(),se("div",PSe,[(K(),se(qe,null,ln([0,1],s=>L("div",{key:s,class:"flex flex-1 flex-col gap-1"},[(K(!0),se(qe,null,ln(i(N(n),s),l=>(K(),Ot(ss(r.value),{key:l,name:l},null,8,["name"]))),128))])),64))])):(K(),se("div",OSe,[(K(!0),se(qe,null,ln(N(n),s=>(K(),Ot(ss(r.value),{key:s,name:s},null,8,["name"]))),128))]))]))}}),MSe={class:"mr-2 inline-block min-w-4 text-center"},LSe={class:"mr-2 text-slate-500"},NSe={key:0,class:"mr-2 text-primary"},kSe={key:1,class:"badge badge-sm bg-base-200"},FSe={class:"flex items-center gap-2"},$Se=it({__name:"RuleCard",props:{rule:{},index:{}},setup(e){const t=e,n=Ve(()=>fi.value[t.rule.proxy]),r=Ve(()=>Zg(t.rule.proxy)),i=Ve(()=>ru(Number(r.value)));return(o,a)=>{var s;return K(),se("div",{class:rt(N(En)("card mb-1 gap-1 p-2 text-sm",!o.rule.payload&&"gap-0"))},[L("div",null,[L("span",MSe,oe(o.index)+".",1),L("span",LSe,oe(o.rule.type)+":",1),o.rule.payload?(K(),se("span",NSe,oe(o.rule.payload),1)):mt("",!0),typeof o.rule.size=="number"&&o.rule.size!==-1?(K(),se("span",kSe,oe(o.rule.size),1)):mt("",!0)]),L("div",FSe,[ye(H1,{name:o.rule.proxy},null,8,["name"]),(s=n.value)!=null&&s.now?(K(),se(qe,{key:0},[ye(N(ff),{class:"h-4 w-4"}),ye(H1,{name:n.value.now},null,8,["name"])],64)):mt("",!0),r.value!==N(qo)?(K(),se("span",{key:1,class:rt(i.value)},oe(r.value)+"ms",3)):mt("",!0)])],2)}}}),BSe={class:"card w-full flex-row items-center gap-2 p-1 px-2 text-sm"},VSe={class:"flex flex-1 flex-col sm:flex-row"},USe={class:"flex flex-1 items-center gap-2"},HSe={class:"badge badge-sm bg-base-200"},GSe={class:"flex gap-3 text-slate-500"},zSe=it({__name:"RuleProvider",props:{ruleProvider:{},index:{}},setup(e){const t=Fe(!1),n=e,r=async()=>{t.value||(t.value=!0,await sV(n.ruleProvider.name),vg(),t.value=!1)};return(i,o)=>(K(),se("div",BSe,[L("div",VSe,[L("div",USe,[L("span",null,oe(i.index)+".",1),L("span",null,oe(i.ruleProvider.name),1),L("span",HSe,oe(i.ruleProvider.ruleCount),1)]),L("div",GSe,[L("span",null,oe(i.ruleProvider.behavior),1),L("span",null,oe(i.ruleProvider.vehicleType),1),L("span",null,oe(i.$t("updated"))+" "+oe(N(kb)(i.ruleProvider.updatedAt)),1)])]),L("button",{class:rt(N(En)("btn btn-circle btn-sm",t.value?"animate-spin":"")),onClick:r},[ye(N(V4),{class:"h-4 w-4"})],2)]))}}),WSe={key:0,class:"flex flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},jSe=it({__name:"RulesPage",setup(e){return(t,n)=>N(wv)===N(rh).PROVIDER?(K(),se("div",WSe,[(K(!0),se(qe,null,ln(N(yle),(r,i)=>(K(),Ot(zSe,{key:r.name,ruleProvider:r,index:i+1},null,8,["ruleProvider","index"]))),128))])):(K(),Ot(jI,{key:1,data:N(mle)},{default:Mr(({item:r})=>[(K(),Ot($Se,{key:r.payload,rule:r,index:N(v1).indexOf(r)+1},null,8,["rule","index"]))]),_:1},8,["data"]))}}),YSe={class:"join w-96 max-sm:w-full"},XSe={class:"flex max-h-96 flex-col gap-1 overflow-y-auto"},KSe={key:0,class:"flex gap-1"},ZSe=it({__name:"DnsQuery",setup(e){const t=La({name:"www.google.com",type:"A"}),n=Fe(null),r=Fe([]),i=async()=>{var a;const{data:o}=await Doe(t);r.value=o.Answer,(a=r.value)!=null&&a.length?n.value=await cV(r.value[0].data):n.value=null};return(o,a)=>{var s,l,u,c;return K(),se(qe,null,[L("div",YSe,[ye(Wb,{modelValue:t.name,"onUpdate:modelValue":a[0]||(a[0]=f=>t.name=f),type:"text",name:"name",placeholder:"Domain Name"},null,8,["modelValue"]),_t(L("select",{"onUpdate:modelValue":a[1]||(a[1]=f=>t.type=f),class:"join-item select select-bordered select-sm"},a[2]||(a[2]=[L("option",{value:"A"},"A",-1),L("option",{value:"AAAA"},"AAAA",-1),L("option",{value:"MX"},"MX",-1)]),512),[[Ri,t.type]]),L("button",{class:"btn join-item btn-sm",onClick:i},oe(o.$t("DNSQuery")),1)]),L("div",XSe,[(K(!0),se(qe,null,ln(r.value,f=>(K(),se("div",{class:"flex gap-1",key:f.data},[L("div",null,oe(f.name),1),a[3]||(a[3]=ft(" : ")),L("div",null,oe(f.data),1)]))),128))]),n.value?(K(),se("div",KSe,oe((s=n.value)==null?void 0:s.ip)+": AS"+oe((l=n.value)==null?void 0:l.asn)+" "+oe((u=n.value)==null?void 0:u.asn_organization)+" "+oe((c=n.value)==null?void 0:c.country),1)):mt("",!0)],64)}}}),qSe={class:"card card-compact"},JSe={class:"card-title px-4 pt-4"},QSe={class:"card-body gap-4"},ewe={class:"grid max-w-screen-md grid-cols-2 gap-2 lg:grid-cols-3"},twe={class:"shrink-0"},nwe=["onUpdate:modelValue","onChange"],rwe={class:"grid max-w-screen-md grid-cols-2 gap-2 lg:grid-cols-3"},iwe={key:0,class:"flex items-center gap-2"},owe={class:"flex items-center gap-2"},awe={class:"flex items-center gap-2"},swe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},lwe={class:"indicator w-full"},uwe={key:0,class:"indicator-item flex"},cwe=it({__name:"BackendSettings",setup(e){const t=[{label:"mixedPort",key:"mixed-port"},{label:"httpPort",key:"port"},{label:"socksPort",key:"socks-port"},{label:"redirPort",key:"redir-port"},{label:"tproxyPort",key:"tproxy-port"}],n=()=>{JI(),vg(),fl()},r=Fe(!1),i=async()=>{if(!r.value){r.value=!0;try{await Ooe(),setTimeout(()=>{n()},500),r.value=!1}catch{r.value=!1}}},o=Fe(!1),a=async()=>{if(!o.value){o.value=!0;try{await uV(),n(),o.value=!1}catch{o.value=!1}}},s=Fe(!1),l=async()=>{if(!s.value){s.value=!0;try{await Poe(),n(),s.value=!1}catch{s.value=!1}}},u=async()=>{var f;await v_({tun:{enable:(f=ei.value)==null?void 0:f.tun.enable}})},c=async()=>{var f;await v_({"allow-lan":(f=ei.value)==null?void 0:f["allow-lan"]})};return(f,d)=>{var h;return K(),se("div",qSe,[L("div",JSe,oe(f.$t("backend")),1),L("div",QSe,[ye(BV),ye(QI),N(dl)?mt("",!0):(K(),se(qe,{key:0},[d[4]||(d[4]=L("div",{class:"divider"},null,-1)),L("div",ewe,[(K(),se(qe,null,ln(t,v=>L("div",{class:"flex items-center gap-2",key:v.key},[L("span",twe,oe(f.$t(v.label))+": ",1),_t(L("input",{class:"input input-sm input-bordered w-20",type:"number","onUpdate:modelValue":m=>N(ei)[v.key]=m,onChange:m=>N(v_)({[v.key]:Number(N(ei)[v.key])})},null,40,nwe),[[Qn,N(ei)[v.key]]])])),64))]),L("div",rwe,[(h=N(ei))!=null&&h.tun?(K(),se("div",iwe,[ft(oe(f.$t("tunMode"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=v=>N(ei).tun.enable=v),onChange:u},null,544),[[gr,N(ei).tun.enable]])])):mt("",!0),L("div",owe,[ft(oe(f.$t("allowLan"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[1]||(d[1]=v=>N(ei)["allow-lan"]=v),onChange:c},null,544),[[gr,N(ei)["allow-lan"]]])]),L("div",awe,[ft(oe(f.$t("autoUpgrade"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[2]||(d[2]=v=>ut(j0)?j0.value=v:null)},null,512),[[gr,N(j0)]])])])],64)),L("div",swe,[N(dl)?mt("",!0):(K(),se(qe,{key:0},[L("div",lwe,[N(mC)?(K(),se("span",uwe,d[5]||(d[5]=[L("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),L("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):mt("",!0),L("button",{class:rt(N(En)("btn btn-primary btn-sm flex-1",o.value?"animate-pulse":"")),onClick:a},oe(f.$t("upgradeCore")),3)]),L("button",{class:rt(N(En)("btn btn-sm",r.value?"animate-pulse":"")),onClick:i},oe(f.$t("restartCore")),3),L("button",{class:rt(N(En)("btn btn-sm",s.value?"animate-pulse":"")),onClick:l},oe(f.$t("reloadConfigs")),3)],64)),L("button",{class:"btn btn-sm",onClick:d[3]||(d[3]=(...v)=>N(LL)&&N(LL)(...v))},oe(f.$t("flushFakeIP")),1)]),d[6]||(d[6]=L("div",{class:"divider"},null,-1)),ye(ZSe)])])}}});var D_={exports:{}},gE={exports:{}},mE={};/** +`);return(o,a)=>(K(),Ot(sP,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100},null,8,["data"]))}}),uP=it({__name:"MemoryCharts",setup(e){const{t}=us(),n=Ve(()=>[{name:t("memoryUsage"),data:Up.value}]),r=o=>`${Tn(o,{maximumFractionDigits:1,binary:!0})}`,i=o=>FB(o[0],{binary:!0,suffix:""});return(o,a)=>(K(),Ot(sP,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1024*1024},null,8,["data"]))}}),cP=it({__name:"SpeedCharts",setup(e){const t=Fe(),{t:n}=us(),r=Ve(()=>[{name:n("ulSpeed"),data:Gp.value},{name:n("dlSpeed"),data:Hp.value}]),i=a=>`${Tn(a,{maximumFractionDigits:1,binary:!1})}/s`,o=a=>a.map(s=>FB(s,{binary:!1,suffix:"/s"})).join("");return(a,s)=>(K(),Ot(sP,{ref_key:"chartRef",ref:t,data:r.value,"label-formatter":i,"tool-tip-formatter":o,min:60*1e3},null,8,["data"]))}}),W0e={class:"card carousel carousel-vertical h-28 shrink-0 overflow-x-hidden text-sm hover:scrollbar-thin"},j0e=it({__name:"OverviewCarousel",setup(e){return(t,n)=>(K(),ae("div",W0e,[ye(cP,{class:"carousel-item box-border"}),ye(uP,{class:"carousel-item box-border"}),ye(lP,{class:"carousel-item box-border"})]))}}),Y0e={class:"card mx-1 flex flex-col gap-4 py-2 text-xs"},X0e={class:"flex flex-col items-center justify-center"},K0e={class:"flex flex-col items-center justify-center"},Z0e={class:"flex flex-col items-center justify-center"},q0e={class:"flex flex-col items-center justify-center"},J0e={class:"flex flex-col items-center justify-center"},Q0e=it({__name:"VerticalInfos",setup(e){return(t,n)=>(K(),ae("div",Y0e,[L("div",X0e,[ye(N(z4),{class:"h-4 w-4"}),ft(" "+re(N(Qo).length),1)]),L("div",K0e,[ye(N(Eb),{class:"h-4 w-4"}),ft(" "+re(N(Tn)(N(pg)))+" ",1),L("span",null,re(N(Tn)(N(kb)))+"/s ",1)]),L("div",Z0e,[ye(N(Zg),{class:"h-4 w-4"}),ft(" "+re(N(Tn)(N(vg)))+" ",1),L("span",null,re(N(Tn)(N(Fb)))+"/s ",1)]),L("div",q0e,[ye(N(bQ),{class:"h-4 w-4"}),ft(" "+re(N(Tn)(N(Nb),{binary:!0})),1)]),L("div",J0e,[L("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>gu.value=!1)},[ye(N(ff),{class:"h-5 w-5"})])])]))}}),e_e={class:"drawer-side z-30 bg-base-200 max-md:hidden"},t_e={class:"menu flex-1"},n_e=["onClick"],r_e={class:"card"},i_e=it({__name:"SideBar",setup(e){const t={[un.connections]:kV,[un.logs]:FV,[un.proxies]:VV,[un.rules]:UV},n=Ve(()=>r.name?t[r.name]:null),r=lB();return(i,o)=>(K(),ae("div",e_e,[o[0]||(o[0]=L("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),L("div",{class:rt(N(En)("scrollbar-hidden flex h-full flex-col gap-2 overflow-x-hidden p-2 text-base-content !transition-all duration-500",N(gu)?"w-18 px-0":"w-[21rem]"))},[L("ul",t_e,[(K(!0),ae(qe,null,on(N(Fs),a=>(K(),ae("li",{key:a},[L("a",{class:rt(a===N(r).name?"active":"inactive"),onClick:()=>N(ka).push({name:a})},[(K(),Ot(ss(N(CB)[a]),{class:"h-5 w-5"})),N(gu)?mt("",!0):(K(),ae(qe,{key:0},[ft(re(i.$t(a)),1)],64))],10,n_e)]))),128))]),N(gu)?(K(),Ot(Q0e,{key:0})):(K(),ae(qe,{key:1},[N(r).name!==N(un).overview?(K(),Ot(j0e,{key:0})):mt("",!0),L("div",r_e,[n.value?(K(),Ot(ss(n.value),{key:0})):mt("",!0),ye(Mle)])],64))],2)]))}}),aE=Fe(!1),f8=()=>({isUIUpdateAvailable:aE,checkUIUpdate:async()=>{aE.value=await Boe(),aE.value&&Y0.value&&fV()}}),o_e={class:"w-128 drawer md:drawer-open"},a_e={class:"drawer-content fixed bottom-0 flex h-full w-full flex-col overflow-hidden bg-base-200/40 md:relative md:w-auto"},s_e={class:"relative h-0 flex-1"},l_e={class:"flex h-12 w-full items-center justify-center gap-1 p-2"},u_e={class:"menu menu-horizontal flex flex-1"},c_e=["href"],f_e={class:"modal-box"},d_e={class:"text-lg font-bold"},h_e={class:"flex justify-end gap-2"},p_e=it({__name:"HomePage",setup(e){const t=Fe(null),n=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,r={[un.connections]:kV,[un.logs]:FV,[un.proxies]:VV,[un.rules]:UV},i=Oee(),o=lB(),a=Ve(()=>r[o.name]),s=Fe(),{direction:l}=lre(s,{threshold:15}),u=()=>{const _=o.name;return _===un.setup?un.proxies:Fs.value[(Fs.value.indexOf(_)+1)%Fs.value.length]},c=()=>{const _=o.name;return _===un.setup?un.proxies:Fs.value[(Fs.value.indexOf(_)-1+Fs.value.length)%Fs.value.length]};Yt(l,()=>{l.value==="right"?i.push({name:c()}):l.value==="left"&&i.push({name:u()})});const{proxiesTabShow:f}=Kb(),{checkUIUpdate:d}=f8();Yt(ci,()=>{ci.value&&(xv.value=rh.RULES,f.value=df.PROXIES,eR(),fl(),mg(),Yoe(),PC(),Mre(),d())},{immediate:!0});const h=()=>{var _;(_=t.value)==null||_.close()},{showTip:v}=Mb(),m=async()=>{const _=cs.value.filter(w=>w.uuid!==ci.value);h();const b=(await Promise.all(_.map(async w=>await FL(w)?w:null))).filter(w=>w!==null);b.length>0&&(ci.value=b[0].uuid,v("backendSwitchTo",{backend:Eu(b[0])}))},y=ore();return Yt(y,async()=>{var _,b;if(!(!cl.value||cs.value.length===0||y.value!=="visible"))try{await FL(cl.value)||(_=t.value)==null||_.showModal()}catch{(b=t.value)==null||b.showModal()}},{immediate:!0}),(_,b)=>(K(),ae("div",o_e,[b[0]||(b[0]=L("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),ye(i_e),L("div",a_e,[a.value&&N(gu)?(K(),Ot(ss(a.value),{key:0,class:"w-full bg-base-100",horizontal:!0})):mt("",!0),L("div",s_e,[ye(N(II),{class:"absolute h-full w-full"})]),L("div",{class:rt(`${N(n)?"h-20":"h-12"} shrink-0 md:hidden`)},null,2),L("div",{ref_key:"navBarRef",ref:s,class:rt(`fixed bottom-0 z-30 w-full bg-base-200 md:hidden ${N(n)?"h-20 pb-8":"h-12"}`)},[L("div",l_e,[L("ul",u_e,[(K(!0),ae(qe,null,on(N(Fs),w=>(K(),ae("li",{key:w,class:"flex-1"},[L("a",{class:rt(["flex items-center justify-center",w===N(o).name?"active":"inactive"]),href:`#${w}`},[(K(),Ot(ss(N(CB)[w]),{class:"h-5 w-5"}))],10,c_e)]))),128))])])],2)]),L("dialog",{id:"autoSwitchBackend",ref_key:"modalRef",ref:t,class:"modal"},[L("div",f_e,[L("h3",d_e,re(_.$t("currentBackendUnavailable")),1),L("div",h_e,[L("button",{class:"btn btn-sm",onClick:h},re(_.$t("cancel")),1),L("button",{class:"btn btn-primary btn-sm",onClick:m},re(_.$t("confirm")),1)])])],512)]))}}),v_e={class:"flex flex-col"},g_e={key:0,class:"card m-2 flex-row p-2 text-sm"},m_e={class:"card mb-1 block p-2 text-sm"},y_e={class:"mx-2 text-primary"},__e={class:"ml-2"},b_e=it({__name:"LogsPage",setup(e){const t={[Lc.Error]:"text-error",[Lc.Warning]:"text-warning",[Lc.Info]:"text-info",[Lc.Debug]:"text-accent"},n=Ve(()=>v1.value.filter(r=>Bd.value?r.payload.includes(Bd.value)||r.type.includes(Bd.value):!0));return(r,i)=>(K(),ae("div",v_e,[n.value.length?mt("",!0):(K(),ae("div",g_e,re(r.$t("noContent")),1)),ye(XI,{data:n.value},{default:Mr(({item:o})=>[L("div",m_e,[L("span",null,re(o.seq),1),L("span",y_e,re(N(Ma)(o.time).locale(N(au)).format("HH:mm:ss")),1),L("span",{class:rt(t[o.type])},re(o.type),3),L("span",__e,re(o.payload),1)])]),_:1},8,["data"])]))}}),S_e={class:"grid grid-cols-2 gap-2 rounded-lg bg-base-200/40 py-2 lg:grid-cols-6"},w_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},x_e={class:"text-sm font-bold md:text-lg"},T_e={class:"text-base md:text-xl"},E_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},C_e={class:"text-sm font-bold md:text-lg"},A_e={class:"text-base md:text-xl"},I_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},R_e={class:"text-sm font-bold md:text-lg"},P_e={class:"text-base md:text-xl"},O_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},D_e={class:"text-sm font-bold md:text-lg"},M_e={class:"text-base md:text-xl"},L_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},N_e={class:"text-sm font-bold md:text-lg"},k_e={class:"text-base md:text-xl"},F_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},$_e={class:"text-sm font-bold md:text-lg"},B_e={class:"text-base md:text-xl"},V_e=it({__name:"StatisticsStats",setup(e){return(t,n)=>(K(),ae("div",S_e,[L("div",w_e,[L("div",x_e,re(t.$t("connections")),1),L("div",T_e,re(N(Qo).length),1)]),L("div",E_e,[L("div",C_e,re(t.$t("memoryUsage")),1),L("div",A_e,re(N(Tn)(N(Nb),{binary:!0})),1)]),L("div",I_e,[L("div",R_e,re(t.$t("download")),1),L("div",P_e,re(N(Tn)(N(pg))),1)]),L("div",O_e,[L("div",D_e,re(t.$t("dlSpeed")),1),L("div",M_e,re(N(Tn)(N(kb)))+"/s",1)]),L("div",L_e,[L("div",N_e,re(t.$t("upload")),1),L("div",k_e,re(N(Tn)(N(vg))),1)]),L("div",F_e,[L("div",$_e,re(t.$t("ulSpeed")),1),L("div",B_e,re(N(Tn)(N(Fb)))+"/s",1)])]))}}),U_e={class:"card card-compact w-full"},H_e={class:"card-title px-4 pt-4"},G_e={class:"card-body gap-4"},z_e={class:"grid grid-cols-1 gap-2 xl:grid-cols-3"},W_e=it({__name:"ChartsCard",setup(e){return(t,n)=>(K(),ae("div",U_e,[L("div",H_e,re(t.$t("overview")),1),L("div",G_e,[ye(V_e),L("div",z_e,[ye(cP,{class:"xl:h-64"}),ye(uP,{class:"xl:h-64"}),ye(lP,{class:"xl:h-64"})])])]))}}),sE=Fe(""),lE=Fe(""),_0=Fe(""),b0=Fe(""),S0=Fe(""),w0=Fe(""),x0=Fe(""),j_e={class:"relative h-28 rounded-lg bg-base-200/40 p-2 text-sm"},Y_e={class:"flex flex-col"},d8=it({__name:"ConnectionStatus",setup(e){const t=async()=>{joe().then(n=>{_0.value=n.toFixed(0)}),Hoe().then(n=>{x0.value=n.toFixed(0)}),Woe().then(n=>{b0.value=n.toFixed(0)}),zoe().then(n=>{S0.value=n.toFixed(0)}),Goe().then(n=>{w0.value=n.toFixed(0)})};return Ro(()=>{Z0.value&&[_0,x0,b0,S0,w0].some(n=>n.value==="")&&t()}),(n,r)=>(K(),ae("div",j_e,[L("div",Y_e,[L("div",null,[r[0]||(r[0]=L("span",{class:"inline-block w-28"},"Baidu ",-1)),r[1]||(r[1]=ft(" : ")),L("span",{class:rt(N(ru)(Number(N(_0))))},re(N(_0))+"ms ",3)]),L("div",null,[r[2]||(r[2]=L("span",{class:"inline-block w-28"},"Cloudflare ",-1)),r[3]||(r[3]=ft(" : ")),L("span",{class:rt(N(ru)(Number(N(x0))))},re(N(x0))+"ms ",3)]),L("div",null,[r[4]||(r[4]=L("span",{class:"inline-block w-28"},"OpenAI CDN",-1)),r[5]||(r[5]=ft(" : ")),L("span",{class:rt(N(ru)(Number(N(b0))))},re(N(b0))+"ms ",3)]),L("div",null,[r[6]||(r[6]=L("span",{class:"inline-block w-28"},"Github ",-1)),r[7]||(r[7]=ft(" : ")),L("span",{class:rt(N(ru)(Number(N(S0))))},re(N(S0))+"ms ",3)]),L("div",null,[r[8]||(r[8]=L("span",{class:"inline-block w-28"},"YouTube ",-1)),r[9]||(r[9]=ft(" : ")),L("span",{class:rt(N(ru)(Number(N(w0))))},re(N(w0))+"ms ",3)])]),L("button",{class:"btn btn-circle btn-sm absolute bottom-2 right-2",onClick:t},[ye(N(Cb),{class:"h-4 w-4"})])]))}}),X_e={class:"relative flex h-28 flex-col gap-1 rounded-lg bg-base-200/40 p-2"},K_e={class:"tooltip tooltip-bottom inline-block w-24 text-left","data-tip":"api-v3.speedtest.cn"},Z_e={class:"tooltip tooltip-bottom inline-block w-24 text-left","data-tip":"api.ip.sb"},h8=it({__name:"IPCheck",setup(e){const t=()=>{Uoe().then(n=>n.json()).then(n=>{sE.value=`${n.data.operator} (${n.data.country}) ${n.data.ip}`}),hV().then(n=>{lE.value=`${n.asn_organization} (${n.country}) ${n.ip}`})};return Ro(()=>{K0.value&&[sE,lE].some(n=>n.value==="")&&t()}),(n,r)=>(K(),ae("div",X_e,[L("div",null,[L("span",K_e,re(n.$t("chinaIP")),1),ft(" : "+re(N(sE)),1)]),L("div",null,[L("span",Z_e,re(n.$t("globalIP")),1),ft(" : "+re(N(lE)),1)]),L("button",{class:"btn btn-circle btn-sm absolute bottom-2 right-2",onClick:t},[ye(N(Cb),{class:"h-4 w-4"})])]))}}),q_e={class:"card card-compact w-full"},J_e={class:"card-title px-4 pt-4"},Q_e={class:"card-body gap-4"},e1e={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},t1e=it({__name:"NetworkCard",setup(e){return(t,n)=>(K(),ae("div",q_e,[L("div",J_e,re(t.$t("networkInfo")),1),L("div",Q_e,[L("div",e1e,[ye(h8),ye(d8)])])]))}}),n1e={class:"flex flex-col gap-2 overflow-y-auto p-2"},r1e={class:"card items-center justify-center gap-2 p-2 sm:flex-row"},i1e=it({__name:"OverviewPage",setup(e){return(t,n)=>(K(),ae("div",n1e,[ye(W_e),ye(t1e),n[0]||(n[0]=L("div",{class:"flex-1"},null,-1)),L("div",r1e,[ft(re(N(Eu)(N(cl)))+" ",1),ye(tR)])]))}}),p8=it({__name:"CollapseCard",props:{name:{}},setup(e){const t=e,n=Ve({get(){return Cx.value[t.name]},set(s){s?(i.value=!1,r.value=!0,vs(()=>{Cx.value[t.name]=!0})):Cx.value[t.name]=!1}}),r=Fe(n.value),i=Fe(!n.value),o=()=>{n.value||setTimeout(()=>{i.value=!n.value},50)},a=()=>{n.value||(r.value=!1)};return(s,l)=>(K(),ae("div",{class:rt(`collapse collapse-arrow ${n.value?"collapse-open":"collapse-close"}`)},[L("div",{class:"collapse-title cursor-pointer select-none pr-4",onClick:l[0]||(l[0]=u=>n.value=!n.value)},[Md(s.$slots,"title"),i.value?Md(s.$slots,"preview",{key:0}):mt("",!0)]),L("div",{class:"collapse-content flex flex-col gap-2 max-sm:px-2",onTransitionstart:o,onTransitionend:a},[r.value?Md(s.$slots,"content",{key:0}):mt("",!0)],32)],2))}});var G1=function(){return G1=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 d=3,h=0,v=0,m=s.length;vwindow.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 v8=it({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,n=Fe(),r=Ve(()=>Jg(t.name??""));let i=null;Ro(()=>{Yt(r,(a,s)=>{i?i==null||i.update(a):vs(()=>{i=new o1e(n.value,r.value,{duration:1,separator:"",enableScrollSpy:!1,startVal:s}),i==null||i.update(a)})})}),Sh(()=>{i=null});const o=Ve(()=>ru(r.value));return(a,s)=>(K(),ae("div",{class:rt(N(En)("flex h-5 w-10 items-center justify-center rounded-xl bg-base-100 text-xs hover:bg-base-200",o.value))},[r.value===N(qo)||!r.value?(K(),Ot(N(Cb),{key:0,class:"h-3 w-3 text-base-content"})):mt("",!0),yt(L("div",{ref_key:"latencyRef",ref:n},re(r.value),513),[[xI,r.value!==N(qo)]])],2))}});/*! @license DOMPurify 3.2.3 | (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.3/LICENSE */const{entries:g8,setPrototypeOf:I3,isFrozen:a1e,getPrototypeOf:s1e,getOwnPropertyDescriptor:l1e}=Object;let{freeze:Oi,seal:oa,create:m8}=Object,{apply:LA,construct:NA}=typeof Reflect<"u"&&Reflect;Oi||(Oi=function(t){return t});oa||(oa=function(t){return t});LA||(LA=function(t,n,r){return t.apply(n,r)});NA||(NA=function(t,n){return new t(...n)});const T0=Ao(Array.prototype.forEach),R3=Ao(Array.prototype.pop),Rp=Ao(Array.prototype.push),D_=Ao(String.prototype.toLowerCase),uE=Ao(String.prototype.toString),P3=Ao(String.prototype.match),Pp=Ao(String.prototype.replace),u1e=Ao(String.prototype.indexOf),c1e=Ao(String.prototype.trim),Ta=Ao(Object.prototype.hasOwnProperty),yi=Ao(RegExp.prototype.test),Op=f1e(TypeError);function Ao(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]:D_;I3&&I3(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(a1e(t)||(t[r]=o),i=o)}e[i]=!0}return e}function d1e(e){for(let t=0;t/gm),m1e=oa(/\$\{[\w\W]*}/gm),y1e=oa(/^data-[\-\w.\u00B7-\uFFFF]+$/),_1e=oa(/^aria-[\-\w]+$/),y8=oa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),b1e=oa(/^(?:\w+script|data):/i),S1e=oa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_8=oa(/^html$/i),w1e=oa(/^[a-z][.\w]*(-[.\w]+)+$/i);var N3=Object.freeze({__proto__:null,ARIA_ATTR:_1e,ATTR_WHITESPACE:S1e,CUSTOM_ELEMENT:w1e,DATA_ATTR:y1e,DOCTYPE_NAME:_8,ERB_EXPR:g1e,IS_ALLOWED_URI:y8,IS_SCRIPT_OR_DATA:b1e,MUSTACHE_EXPR:v1e,TMPLIT_EXPR:m1e});const Mp={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},x1e=function(){return typeof window>"u"?null:window},T1e=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}},k3=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function b8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x1e();const t=pt=>b8(pt);if(t.version="3.2.3",t.removed=[],!e||!e.document||e.document.nodeType!==Mp.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:d,trustedTypes:h}=e,v=l.prototype,m=Dp(v,"cloneNode"),y=Dp(v,"remove"),_=Dp(v,"nextSibling"),b=Dp(v,"childNodes"),w=Dp(v,"parentNode");if(typeof a=="function"){const pt=n.createElement("template");pt.content&&pt.content.ownerDocument&&(n=pt.content.ownerDocument)}let S,T="";const{implementation:E,createNodeIterator:A,createDocumentFragment:P,getElementsByTagName:I}=n,{importNode:R}=r;let O=k3();t.isSupported=typeof g8=="function"&&typeof w=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:$,TMPLIT_EXPR:F,DATA_ATTR:z,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:se}=N3;let{IS_ALLOWED_URI:ge}=N3,ve=null;const De=qt({},[...O3,...cE,...fE,...dE,...D3]);let Ne=null;const ze=qt({},[...M3,...hE,...L3,...E0]);let Me=Object.seal(m8(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}})),je=null,ce=null,Ce=!0,Se=!0,Te=!1,Oe=!0,$e=!1,H=!0,G=!1,le=!1,we=!1,pe=!1,U=!1,W=!1,q=!0,fe=!1;const _e="user-content-";let Pe=!0,Z=!1,de={},Be=null;const Xe=qt({},["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 ht=null;const ee=qt({},["audio","video","img","source","image","track"]);let ie=null;const he=qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ee="http://www.w3.org/1998/Math/MathML",He="http://www.w3.org/2000/svg",ne="http://www.w3.org/1999/xhtml";let Ae=ne,ke=!1,Qe=null;const Ge=qt({},[Ee,He,ne],uE);let We=qt({},["mi","mo","mn","ms","mtext"]),et=qt({},["annotation-xml"]);const It=qt({},["title","style","font","a","script"]);let Pt=null;const Nn=["application/xhtml+xml","text/html"],ca="text/html";let Pn=null,pr=null;const Rf=n.createElement("form"),bl=function(te){return te instanceof RegExp||te instanceof Function},Ba=function(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(pr&&pr===te)){if((!te||typeof te!="object")&&(te={}),te=Cc(te),Pt=Nn.indexOf(te.PARSER_MEDIA_TYPE)===-1?ca:te.PARSER_MEDIA_TYPE,Pn=Pt==="application/xhtml+xml"?uE:D_,ve=Ta(te,"ALLOWED_TAGS")?qt({},te.ALLOWED_TAGS,Pn):De,Ne=Ta(te,"ALLOWED_ATTR")?qt({},te.ALLOWED_ATTR,Pn):ze,Qe=Ta(te,"ALLOWED_NAMESPACES")?qt({},te.ALLOWED_NAMESPACES,uE):Ge,ie=Ta(te,"ADD_URI_SAFE_ATTR")?qt(Cc(he),te.ADD_URI_SAFE_ATTR,Pn):he,ht=Ta(te,"ADD_DATA_URI_TAGS")?qt(Cc(ee),te.ADD_DATA_URI_TAGS,Pn):ee,Be=Ta(te,"FORBID_CONTENTS")?qt({},te.FORBID_CONTENTS,Pn):Xe,je=Ta(te,"FORBID_TAGS")?qt({},te.FORBID_TAGS,Pn):{},ce=Ta(te,"FORBID_ATTR")?qt({},te.FORBID_ATTR,Pn):{},de=Ta(te,"USE_PROFILES")?te.USE_PROFILES:!1,Ce=te.ALLOW_ARIA_ATTR!==!1,Se=te.ALLOW_DATA_ATTR!==!1,Te=te.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=te.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$e=te.SAFE_FOR_TEMPLATES||!1,H=te.SAFE_FOR_XML!==!1,G=te.WHOLE_DOCUMENT||!1,pe=te.RETURN_DOM||!1,U=te.RETURN_DOM_FRAGMENT||!1,W=te.RETURN_TRUSTED_TYPE||!1,we=te.FORCE_BODY||!1,q=te.SANITIZE_DOM!==!1,fe=te.SANITIZE_NAMED_PROPS||!1,Pe=te.KEEP_CONTENT!==!1,Z=te.IN_PLACE||!1,ge=te.ALLOWED_URI_REGEXP||y8,Ae=te.NAMESPACE||ne,We=te.MATHML_TEXT_INTEGRATION_POINTS||We,et=te.HTML_INTEGRATION_POINTS||et,Me=te.CUSTOM_ELEMENT_HANDLING||{},te.CUSTOM_ELEMENT_HANDLING&&bl(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=te.CUSTOM_ELEMENT_HANDLING.tagNameCheck),te.CUSTOM_ELEMENT_HANDLING&&bl(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),te.CUSTOM_ELEMENT_HANDLING&&typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Me.allowCustomizedBuiltInElements=te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$e&&(Se=!1),U&&(pe=!0),de&&(ve=qt({},D3),Ne=[],de.html===!0&&(qt(ve,O3),qt(Ne,M3)),de.svg===!0&&(qt(ve,cE),qt(Ne,hE),qt(Ne,E0)),de.svgFilters===!0&&(qt(ve,fE),qt(Ne,hE),qt(Ne,E0)),de.mathMl===!0&&(qt(ve,dE),qt(Ne,L3),qt(Ne,E0))),te.ADD_TAGS&&(ve===De&&(ve=Cc(ve)),qt(ve,te.ADD_TAGS,Pn)),te.ADD_ATTR&&(Ne===ze&&(Ne=Cc(Ne)),qt(Ne,te.ADD_ATTR,Pn)),te.ADD_URI_SAFE_ATTR&&qt(ie,te.ADD_URI_SAFE_ATTR,Pn),te.FORBID_CONTENTS&&(Be===Xe&&(Be=Cc(Be)),qt(Be,te.FORBID_CONTENTS,Pn)),Pe&&(ve["#text"]=!0),G&&qt(ve,["html","head","body"]),ve.table&&(qt(ve,["tbody"]),delete je.tbody),te.TRUSTED_TYPES_POLICY){if(typeof te.TRUSTED_TYPES_POLICY.createHTML!="function")throw Op('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof te.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Op('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=te.TRUSTED_TYPES_POLICY,T=S.createHTML("")}else S===void 0&&(S=T1e(h,i)),S!==null&&typeof T=="string"&&(T=S.createHTML(""));Oi&&Oi(te),pr=te}},ym=qt({},[...cE,...fE,...h1e]),Pf=qt({},[...dE,...p1e]),jS=function(te){let Ue=w(te);(!Ue||!Ue.tagName)&&(Ue={namespaceURI:Ae,tagName:"template"});const at=D_(te.tagName),Sn=D_(Ue.tagName);return Qe[te.namespaceURI]?te.namespaceURI===He?Ue.namespaceURI===ne?at==="svg":Ue.namespaceURI===Ee?at==="svg"&&(Sn==="annotation-xml"||We[Sn]):!!ym[at]:te.namespaceURI===Ee?Ue.namespaceURI===ne?at==="math":Ue.namespaceURI===He?at==="math"&&et[Sn]:!!Pf[at]:te.namespaceURI===ne?Ue.namespaceURI===He&&!et[Sn]||Ue.namespaceURI===Ee&&!We[Sn]?!1:!Pf[at]&&(It[at]||!ym[at]):!!(Pt==="application/xhtml+xml"&&Qe[te.namespaceURI]):!1},Di=function(te){Rp(t.removed,{element:te});try{w(te).removeChild(te)}catch{y(te)}},Of=function(te,Ue){try{Rp(t.removed,{attribute:Ue.getAttributeNode(te),from:Ue})}catch{Rp(t.removed,{attribute:null,from:Ue})}if(Ue.removeAttribute(te),te==="is")if(pe||U)try{Di(Ue)}catch{}else try{Ue.setAttribute(te,"")}catch{}},_m=function(te){let Ue=null,at=null;if(we)te=""+te;else{const er=P3(te,/^[\r\n\t ]+/);at=er&&er[0]}Pt==="application/xhtml+xml"&&Ae===ne&&(te=''+te+"");const Sn=S?S.createHTML(te):te;if(Ae===ne)try{Ue=new d().parseFromString(Sn,Pt)}catch{}if(!Ue||!Ue.documentElement){Ue=E.createDocument(Ae,"template",null);try{Ue.documentElement.innerHTML=ke?T:Sn}catch{}}const Rr=Ue.body||Ue.documentElement;return te&&at&&Rr.insertBefore(n.createTextNode(at),Rr.childNodes[0]||null),Ae===ne?I.call(Ue,G?"html":"body")[0]:G?Ue.documentElement:Rr},bm=function(te){return A.call(te.ownerDocument||te,te,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Lh=function(te){return te instanceof f&&(typeof te.nodeName!="string"||typeof te.textContent!="string"||typeof te.removeChild!="function"||!(te.attributes instanceof c)||typeof te.removeAttribute!="function"||typeof te.setAttribute!="function"||typeof te.namespaceURI!="string"||typeof te.insertBefore!="function"||typeof te.hasChildNodes!="function")},Sm=function(te){return typeof s=="function"&&te instanceof s};function fa(pt,te,Ue){T0(pt,at=>{at.call(t,te,Ue,pr)})}const wm=function(te){let Ue=null;if(fa(O.beforeSanitizeElements,te,null),Lh(te))return Di(te),!0;const at=Pn(te.nodeName);if(fa(O.uponSanitizeElement,te,{tagName:at,allowedTags:ve}),te.hasChildNodes()&&!Sm(te.firstElementChild)&&yi(/<[/\w]/g,te.innerHTML)&&yi(/<[/\w]/g,te.textContent)||te.nodeType===Mp.progressingInstruction||H&&te.nodeType===Mp.comment&&yi(/<[/\w]/g,te.data))return Di(te),!0;if(!ve[at]||je[at]){if(!je[at]&&Nh(at)&&(Me.tagNameCheck instanceof RegExp&&yi(Me.tagNameCheck,at)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(at)))return!1;if(Pe&&!Be[at]){const Sn=w(te)||te.parentNode,Rr=b(te)||te.childNodes;if(Rr&&Sn){const er=Rr.length;for(let Wr=er-1;Wr>=0;--Wr){const Po=m(Rr[Wr],!0);Po.__removalCount=(te.__removalCount||0)+1,Sn.insertBefore(Po,_(te))}}}return Di(te),!0}return te instanceof l&&!jS(te)||(at==="noscript"||at==="noembed"||at==="noframes")&&yi(/<\/no(script|embed|frames)/i,te.innerHTML)?(Di(te),!0):($e&&te.nodeType===Mp.text&&(Ue=te.textContent,T0([M,$,F],Sn=>{Ue=Pp(Ue,Sn," ")}),te.textContent!==Ue&&(Rp(t.removed,{element:te.cloneNode()}),te.textContent=Ue)),fa(O.afterSanitizeElements,te,null),!1)},xm=function(te,Ue,at){if(q&&(Ue==="id"||Ue==="name")&&(at in n||at in Rf))return!1;if(!(Se&&!ce[Ue]&&yi(z,Ue))){if(!(Ce&&yi(B,Ue))){if(!Ne[Ue]||ce[Ue]){if(!(Nh(te)&&(Me.tagNameCheck instanceof RegExp&&yi(Me.tagNameCheck,te)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(te))&&(Me.attributeNameCheck instanceof RegExp&&yi(Me.attributeNameCheck,Ue)||Me.attributeNameCheck instanceof Function&&Me.attributeNameCheck(Ue))||Ue==="is"&&Me.allowCustomizedBuiltInElements&&(Me.tagNameCheck instanceof RegExp&&yi(Me.tagNameCheck,at)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(at))))return!1}else if(!ie[Ue]){if(!yi(ge,Pp(at,j,""))){if(!((Ue==="src"||Ue==="xlink:href"||Ue==="href")&&te!=="script"&&u1e(at,"data:")===0&&ht[te])){if(!(Te&&!yi(Y,Pp(at,j,"")))){if(at)return!1}}}}}}return!0},Nh=function(te){return te!=="annotation-xml"&&P3(te,se)},Tm=function(te){fa(O.beforeSanitizeAttributes,te,null);const{attributes:Ue}=te;if(!Ue||Lh(te))return;const at={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne,forceKeepAttr:void 0};let Sn=Ue.length;for(;Sn--;){const Rr=Ue[Sn],{name:er,namespaceURI:Wr,value:Po}=Rr,Hu=Pn(er);let Pr=er==="value"?Po:c1e(Po);if(at.attrName=Hu,at.attrValue=Pr,at.keepAttr=!0,at.forceKeepAttr=void 0,fa(O.uponSanitizeAttribute,te,at),Pr=at.attrValue,fe&&(Hu==="id"||Hu==="name")&&(Of(er,te),Pr=_e+Pr),H&&yi(/((--!?|])>)|<\/(style|title)/i,Pr)){Of(er,te);continue}if(at.forceKeepAttr||(Of(er,te),!at.keepAttr))continue;if(!Oe&&yi(/\/>/i,Pr)){Of(er,te);continue}$e&&T0([M,$,F],Fh=>{Pr=Pp(Pr,Fh," ")});const kh=Pn(te.nodeName);if(xm(kh,Hu,Pr)){if(S&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Wr)switch(h.getAttributeType(kh,Hu)){case"TrustedHTML":{Pr=S.createHTML(Pr);break}case"TrustedScriptURL":{Pr=S.createScriptURL(Pr);break}}try{Wr?te.setAttributeNS(Wr,er,Pr):te.setAttribute(er,Pr),Lh(te)?Di(te):R3(t.removed)}catch{}}}fa(O.afterSanitizeAttributes,te,null)},YS=function pt(te){let Ue=null;const at=bm(te);for(fa(O.beforeSanitizeShadowDOM,te,null);Ue=at.nextNode();)fa(O.uponSanitizeShadowNode,Ue,null),wm(Ue),Tm(Ue),Ue.content instanceof o&&pt(Ue.content);fa(O.afterSanitizeShadowDOM,te,null)};return t.sanitize=function(pt){let te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ue=null,at=null,Sn=null,Rr=null;if(ke=!pt,ke&&(pt=""),typeof pt!="string"&&!Sm(pt))if(typeof pt.toString=="function"){if(pt=pt.toString(),typeof pt!="string")throw Op("dirty is not a string, aborting")}else throw Op("toString is not a function");if(!t.isSupported)return pt;if(le||Ba(te),t.removed=[],typeof pt=="string"&&(Z=!1),Z){if(pt.nodeName){const Po=Pn(pt.nodeName);if(!ve[Po]||je[Po])throw Op("root node is forbidden and cannot be sanitized in-place")}}else if(pt instanceof s)Ue=_m(""),at=Ue.ownerDocument.importNode(pt,!0),at.nodeType===Mp.element&&at.nodeName==="BODY"||at.nodeName==="HTML"?Ue=at:Ue.appendChild(at);else{if(!pe&&!$e&&!G&&pt.indexOf("<")===-1)return S&&W?S.createHTML(pt):pt;if(Ue=_m(pt),!Ue)return pe?null:W?T:""}Ue&&we&&Di(Ue.firstChild);const er=bm(Z?pt:Ue);for(;Sn=er.nextNode();)wm(Sn),Tm(Sn),Sn.content instanceof o&&YS(Sn.content);if(Z)return pt;if(pe){if(U)for(Rr=P.call(Ue.ownerDocument);Ue.firstChild;)Rr.appendChild(Ue.firstChild);else Rr=Ue;return(Ne.shadowroot||Ne.shadowrootmode)&&(Rr=R.call(r,Rr,!0)),Rr}let Wr=G?Ue.outerHTML:Ue.innerHTML;return G&&ve["!doctype"]&&Ue.ownerDocument&&Ue.ownerDocument.doctype&&Ue.ownerDocument.doctype.name&&yi(_8,Ue.ownerDocument.doctype.name)&&(Wr=" +`+Wr),$e&&T0([M,$,F],Po=>{Wr=Pp(Wr,Po," ")}),S&&W?S.createHTML(Wr):Wr},t.setConfig=function(){let pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ba(pt),le=!0},t.clearConfig=function(){pr=null,le=!1},t.isValidAttribute=function(pt,te,Ue){pr||Ba({});const at=Pn(pt),Sn=Pn(te);return xm(at,Sn,Ue)},t.addHook=function(pt,te){typeof te=="function"&&Rp(O[pt],te)},t.removeHook=function(pt){return R3(O[pt])},t.removeHooks=function(pt){O[pt]=[]},t.removeAllHooks=function(){O=k3()},t}var E1e=b8();const C1e=["innerHTML"],A1e=["src"],F3="data:image/svg+xml,",S8=it({__name:"ProxyIcon",props:{icon:{},fill:{},size:{}},setup(e){const t=e,n=Ve(()=>({width:(t.size==="small"?yv.value:yv.value+4)+"px",marginRight:n_.value-4+"px"})),r=Ve(()=>t.icon.startsWith(F3)),i=Ve(()=>{if(r.value)return E1e.sanitize(t.icon.replace(F3,""))});return(o,a)=>r.value?(K(),ae("div",{key:0,class:rt(["inline-block",o.fill||"fill-primary"]),style:Gr(n.value),innerHTML:i.value},null,14,C1e)):(K(),ae("img",{key:1,style:Gr(n.value),src:o.icon},null,12,A1e))}}),I1e={class:"flex items-center gap-1"},z1=it({__name:"ProxyName",props:{name:{},size:{}},setup(e){const t=e,n=Ve(()=>{var r;return(r=fi.value[t.name])==null?void 0:r.icon});return(r,i)=>(K(),ae("div",I1e,[n.value?(K(),Ot(S8,{key:0,icon:n.value,size:r.size==="large"?"large":"small"},null,8,["icon","size"])):mt("",!0),L("span",{class:rt(r.size==="large"?"text-lg font-medium":"text-sm")},re(r.name),3)]))}});var eo="top",aa="bottom",sa="right",to="left",fP="auto",lm=[eo,aa,sa,to],uh="start",Mg="end",R1e="clippingParents",w8="viewport",Lp="popper",P1e="reference",$3=lm.reduce(function(e,t){return e.concat([t+"-"+uh,t+"-"+Mg])},[]),x8=[].concat(lm,[fP]).reduce(function(e,t){return e.concat([t,t+"-"+uh,t+"-"+Mg])},[]),O1e="beforeRead",D1e="read",M1e="afterRead",L1e="beforeMain",N1e="main",k1e="afterMain",F1e="beforeWrite",$1e="write",B1e="afterWrite",V1e=[O1e,D1e,M1e,L1e,N1e,k1e,F1e,$1e,B1e];function hs(e){return e?(e.nodeName||"").toLowerCase():null}function Io(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bf(e){var t=Io(e).Element;return e instanceof t||e instanceof Element}function na(e){var t=Io(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function dP(e){if(typeof ShadowRoot>"u")return!1;var t=Io(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function U1e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!na(o)||!hs(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function H1e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!na(i)||!hs(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const T8={name:"applyStyles",enabled:!0,phase:"write",fn:U1e,effect:H1e,requires:["computeStyles"]};function os(e){return e.split("-")[0]}var of=Math.max,W1=Math.min,ch=Math.round;function kA(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function E8(){return!/^((?!chrome|android).)*safari/i.test(kA())}function fh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&na(e)&&(i=e.offsetWidth>0&&ch(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ch(r.height)/e.offsetHeight||1);var a=bf(e)?Io(e):window,s=a.visualViewport,l=!E8()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,d=r.height/o;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function hP(e){var t=fh(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function C8(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&dP(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vl(e){return Io(e).getComputedStyle(e)}function G1e(e){return["table","td","th"].indexOf(hs(e))>=0}function Uu(e){return((bf(e)?e.ownerDocument:e.document)||window.document).documentElement}function CS(e){return hs(e)==="html"?e:e.assignedSlot||e.parentNode||(dP(e)?e.host:null)||Uu(e)}function B3(e){return!na(e)||vl(e).position==="fixed"?null:e.offsetParent}function z1e(e){var t=/firefox/i.test(kA()),n=/Trident/i.test(kA());if(n&&na(e)){var r=vl(e);if(r.position==="fixed")return null}var i=CS(e);for(dP(i)&&(i=i.host);na(i)&&["html","body"].indexOf(hs(i))<0;){var o=vl(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function um(e){for(var t=Io(e),n=B3(e);n&&G1e(n)&&vl(n).position==="static";)n=B3(n);return n&&(hs(n)==="html"||hs(n)==="body"&&vl(n).position==="static")?t:n||z1e(e)||t}function pP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $v(e,t,n){return of(e,W1(t,n))}function W1e(e,t,n){var r=$v(e,t,n);return r>n?n:r}function A8(){return{top:0,right:0,bottom:0,left:0}}function I8(e){return Object.assign({},A8(),e)}function R8(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var j1e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,I8(typeof t!="number"?t:R8(t,lm))};function Y1e(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=os(n.placement),l=pP(s),u=[to,sa].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=j1e(i.padding,n),d=hP(o),h=l==="y"?eo:to,v=l==="y"?aa:sa,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],y=a[l]-n.rects.reference[l],_=um(o),b=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,w=m/2-y/2,S=f[h],T=b-d[c]-f[v],E=b/2-d[c]/2+w,A=$v(S,E,T),P=l;n.modifiersData[r]=(t={},t[P]=A,t.centerOffset=A-E,t)}}function X1e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||C8(t.elements.popper,i)&&(t.elements.arrow=i))}const K1e={name:"arrow",enabled:!0,phase:"main",fn:Y1e,effect:X1e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dh(e){return e.split("-")[1]}var Z1e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function q1e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ch(n*i)/i||0,y:ch(r*i)/i||0}}function V3(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,h=d===void 0?0:d,v=a.y,m=v===void 0?0:v,y=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=y.x,m=y.y;var _=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),w=to,S=eo,T=window;if(u){var E=um(n),A="clientHeight",P="clientWidth";if(E===Io(n)&&(E=Uu(n),vl(E).position!=="static"&&s==="absolute"&&(A="scrollHeight",P="scrollWidth")),E=E,i===eo||(i===to||i===sa)&&o===Mg){S=aa;var I=f&&E===T&&T.visualViewport?T.visualViewport.height:E[A];m-=I-r.height,m*=l?1:-1}if(i===to||(i===eo||i===aa)&&o===Mg){w=sa;var R=f&&E===T&&T.visualViewport?T.visualViewport.width:E[P];h-=R-r.width,h*=l?1:-1}}var O=Object.assign({position:s},u&&Z1e),M=c===!0?q1e({x:h,y:m},Io(n)):{x:h,y:m};if(h=M.x,m=M.y,l){var $;return Object.assign({},O,($={},$[S]=b?"0":"",$[w]=_?"0":"",$.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",$))}return Object.assign({},O,(t={},t[S]=b?m+"px":"",t[w]=_?h+"px":"",t.transform="",t))}function J1e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:os(t.placement),variation:dh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,V3(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,V3(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Q1e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:J1e,data:{}};var C0={passive:!0};function ebe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Io(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,C0)}),s&&l.addEventListener("resize",n.update,C0),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,C0)}),s&&l.removeEventListener("resize",n.update,C0)}}const tbe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ebe,data:{}};var nbe={left:"right",right:"left",bottom:"top",top:"bottom"};function M_(e){return e.replace(/left|right|bottom|top/g,function(t){return nbe[t]})}var rbe={start:"end",end:"start"};function U3(e){return e.replace(/start|end/g,function(t){return rbe[t]})}function vP(e){var t=Io(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function gP(e){return fh(Uu(e)).left+vP(e).scrollLeft}function ibe(e,t){var n=Io(e),r=Uu(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=E8();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+gP(e),y:l}}function obe(e){var t,n=Uu(e),r=vP(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=of(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=of(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+gP(e),l=-r.scrollTop;return vl(i||n).direction==="rtl"&&(s+=of(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function mP(e){var t=vl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function P8(e){return["html","body","#document"].indexOf(hs(e))>=0?e.ownerDocument.body:na(e)&&mP(e)?e:P8(CS(e))}function Bv(e,t){var n;t===void 0&&(t=[]);var r=P8(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Io(r),a=i?[o].concat(o.visualViewport||[],mP(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Bv(CS(a)))}function FA(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function abe(e,t){var n=fh(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function H3(e,t,n){return t===w8?FA(ibe(e,n)):bf(t)?abe(t,n):FA(obe(Uu(e)))}function sbe(e){var t=Bv(CS(e)),n=["absolute","fixed"].indexOf(vl(e).position)>=0,r=n&&na(e)?um(e):e;return bf(r)?t.filter(function(i){return bf(i)&&C8(i,r)&&hs(i)!=="body"}):[]}function lbe(e,t,n,r){var i=t==="clippingParents"?sbe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=H3(e,u,r);return l.top=of(c.top,l.top),l.right=W1(c.right,l.right),l.bottom=W1(c.bottom,l.bottom),l.left=of(c.left,l.left),l},H3(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function O8(e){var t=e.reference,n=e.element,r=e.placement,i=r?os(r):null,o=r?dh(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case eo:l={x:a,y:t.y-n.height};break;case aa:l={x:a,y:t.y+t.height};break;case sa:l={x:t.x+t.width,y:s};break;case to:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?pP(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case uh:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Mg:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Lg(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?R1e:s,u=n.rootBoundary,c=u===void 0?w8:u,f=n.elementContext,d=f===void 0?Lp:f,h=n.altBoundary,v=h===void 0?!1:h,m=n.padding,y=m===void 0?0:m,_=I8(typeof y!="number"?y:R8(y,lm)),b=d===Lp?P1e:Lp,w=e.rects.popper,S=e.elements[v?b:d],T=lbe(bf(S)?S:S.contextElement||Uu(e.elements.popper),l,c,a),E=fh(e.elements.reference),A=O8({reference:E,element:w,strategy:"absolute",placement:i}),P=FA(Object.assign({},w,A)),I=d===Lp?P:E,R={top:T.top-I.top+_.top,bottom:I.bottom-T.bottom+_.bottom,left:T.left-I.left+_.left,right:I.right-T.right+_.right},O=e.modifiersData.offset;if(d===Lp&&O){var M=O[i];Object.keys(R).forEach(function($){var F=[sa,aa].indexOf($)>=0?1:-1,z=[eo,aa].indexOf($)>=0?"y":"x";R[$]+=M[z]*F})}return R}function ube(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?x8:l,c=dh(r),f=c?s?$3:$3.filter(function(v){return dh(v)===c}):lm,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,m){return v[m]=Lg(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[os(m)],v},{});return Object.keys(h).sort(function(v,m){return h[v]-h[m]})}function cbe(e){if(os(e)===fP)return[];var t=M_(e);return[U3(e),t,U3(t)]}function fbe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,m=n.allowedAutoPlacements,y=t.options.placement,_=os(y),b=_===y,w=l||(b||!v?[M_(y)]:cbe(y)),S=[y].concat(w).reduce(function(ze,Me){return ze.concat(os(Me)===fP?ube(t,{placement:Me,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:m}):Me)},[]),T=t.rects.reference,E=t.rects.popper,A=new Map,P=!0,I=S[0],R=0;R=0,z=F?"width":"height",B=Lg(t,{placement:O,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),Y=F?$?sa:to:$?aa:eo;T[z]>E[z]&&(Y=M_(Y));var j=M_(Y),se=[];if(o&&se.push(B[M]<=0),s&&se.push(B[Y]<=0,B[j]<=0),se.every(function(ze){return ze})){I=O,P=!1;break}A.set(O,se)}if(P)for(var ge=v?3:1,ve=function(Me){var je=S.find(function(ce){var Ce=A.get(ce);if(Ce)return Ce.slice(0,Me).every(function(Se){return Se})});if(je)return I=je,"break"},De=ge;De>0;De--){var Ne=ve(De);if(Ne==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const dbe={name:"flip",enabled:!0,phase:"main",fn:fbe,requiresIfExists:["offset"],data:{_skip:!1}};function G3(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function z3(e){return[eo,sa,aa,to].some(function(t){return e[t]>=0})}function hbe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Lg(t,{elementContext:"reference"}),s=Lg(t,{altBoundary:!0}),l=G3(a,r),u=G3(s,i,o),c=z3(l),f=z3(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const pbe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hbe};function vbe(e,t,n){var r=os(e),i=[to,eo].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[to,sa].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function gbe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=x8.reduce(function(c,f){return c[f]=vbe(f,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const mbe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gbe};function ybe(e){var t=e.state,n=e.name;t.modifiersData[n]=O8({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const _be={name:"popperOffsets",enabled:!0,phase:"read",fn:ybe,data:{}};function bbe(e){return e==="x"?"y":"x"}function Sbe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,v=n.tetherOffset,m=v===void 0?0:v,y=Lg(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),_=os(t.placement),b=dh(t.placement),w=!b,S=pP(_),T=bbe(S),E=t.modifiersData.popperOffsets,A=t.rects.reference,P=t.rects.popper,I=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(E){if(o){var $,F=S==="y"?eo:to,z=S==="y"?aa:sa,B=S==="y"?"height":"width",Y=E[S],j=Y+y[F],se=Y-y[z],ge=h?-P[B]/2:0,ve=b===uh?A[B]:P[B],De=b===uh?-P[B]:-A[B],Ne=t.elements.arrow,ze=h&&Ne?hP(Ne):{width:0,height:0},Me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:A8(),je=Me[F],ce=Me[z],Ce=$v(0,A[B],ze[B]),Se=w?A[B]/2-ge-Ce-je-R.mainAxis:ve-Ce-je-R.mainAxis,Te=w?-A[B]/2+ge+Ce+ce+R.mainAxis:De+Ce+ce+R.mainAxis,Oe=t.elements.arrow&&um(t.elements.arrow),$e=Oe?S==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,H=($=O==null?void 0:O[S])!=null?$:0,G=Y+Se-H-$e,le=Y+Te-H,we=$v(h?W1(j,G):j,Y,h?of(se,le):se);E[S]=we,M[S]=we-Y}if(s){var pe,U=S==="x"?eo:to,W=S==="x"?aa:sa,q=E[T],fe=T==="y"?"height":"width",_e=q+y[U],Pe=q-y[W],Z=[eo,to].indexOf(_)!==-1,de=(pe=O==null?void 0:O[T])!=null?pe:0,Be=Z?_e:q-A[fe]-P[fe]-de+R.altAxis,Xe=Z?q+A[fe]+P[fe]-de-R.altAxis:Pe,ht=h&&Z?W1e(Be,q,Xe):$v(h?Be:_e,q,h?Xe:Pe);E[T]=ht,M[T]=ht-q}t.modifiersData[r]=M}}const wbe={name:"preventOverflow",enabled:!0,phase:"main",fn:Sbe,requiresIfExists:["offset"]};function xbe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Tbe(e){return e===Io(e)||!na(e)?vP(e):xbe(e)}function Ebe(e){var t=e.getBoundingClientRect(),n=ch(t.width)/e.offsetWidth||1,r=ch(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Cbe(e,t,n){n===void 0&&(n=!1);var r=na(t),i=na(t)&&Ebe(t),o=Uu(t),a=fh(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((hs(t)!=="body"||mP(o))&&(s=Tbe(t)),na(t)?(l=fh(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=gP(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Abe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Ibe(e){var t=Abe(e);return V1e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Rbe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Pbe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var W3={placement:"bottom",modifiers:[],strategy:"absolute"};function j3(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function k8(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Y3(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function kbe(e){return e.split(/\s+/).filter(Boolean)}function Sd(e){return[].concat(e)}function X3(e,t){e.indexOf(t)===-1&&e.push(t)}function Fbe(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function $be(e){return e.split("-")[0]}function j1(e){return[].slice.call(e)}function K3(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Vv(){return document.createElement("div")}function AS(e){return["Element","Fragment"].some(function(t){return yP(e,t)})}function Bbe(e){return yP(e,"NodeList")}function Vbe(e){return yP(e,"MouseEvent")}function Ube(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Hbe(e){return AS(e)?[e]:Bbe(e)?j1(e):Array.isArray(e)?e:j1(document.querySelectorAll(e))}function vE(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function Z3(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Gbe(e){var t,n=Sd(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function zbe(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,u=$be(a.placement),c=a.modifiersData.offset;if(!c)return!0;var f=u==="bottom"?c.top.y:0,d=u==="top"?c.bottom.y:0,h=u==="right"?c.left.x:0,v=u==="left"?c.right.x:0,m=o.top-r+f>l,y=r-o.bottom-d>l,_=o.left-n+h>l,b=n-o.right-v>l;return m||y||_||b})}function gE(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function q3(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Ja={isTouch:!1},J3=0;function Wbe(){Ja.isTouch||(Ja.isTouch=!0,window.performance&&document.addEventListener("mousemove",F8))}function F8(){var e=performance.now();e-J3<20&&(Ja.isTouch=!1,document.removeEventListener("mousemove",F8)),J3=e}function jbe(){var e=document.activeElement;if(Ube(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Ybe(){document.addEventListener("touchstart",Wbe,Ac),window.addEventListener("blur",jbe)}var Xbe=typeof window<"u"&&typeof document<"u",Kbe=Xbe?!!window.msCrypto:!1,Zbe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},qbe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Pa=Object.assign({appendTo:N8,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Zbe,qbe),Jbe=Object.keys(Pa),Qbe=function(t){var n=Object.keys(t);n.forEach(function(r){Pa[r]=t[r]})};function $8(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=Pa[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function eSe(e,t){var n=t?Object.keys($8(Object.assign({},Pa,{plugins:t}))):Jbe,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function Q3(e,t){var n=Object.assign({},t,{content:k8(t.content,[e])},t.ignoreAttributes?{}:eSe(e,t.plugins));return n.aria=Object.assign({},Pa.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var tSe=function(){return"innerHTML"};function $A(e,t){e[tSe()]=t}function e5(e){var t=Vv();return e===!0?t.className=M8:(t.className=L8,AS(e)?t.appendChild(e):$A(t,e)),t}function t5(e,t){AS(t.content)?($A(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?$A(e,t.content):e.textContent=t.content)}function BA(e){var t=e.firstElementChild,n=j1(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(D8)}),arrow:n.find(function(r){return r.classList.contains(M8)||r.classList.contains(L8)}),backdrop:n.find(function(r){return r.classList.contains(Nbe)})}}function B8(e){var t=Vv(),n=Vv();n.className=Lbe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Vv();r.className=D8,r.setAttribute("data-state","hidden"),t5(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=BA(t),l=s.box,u=s.content,c=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&t5(u,e.props),a.arrow?c?o.arrow!==a.arrow&&(l.removeChild(c),l.appendChild(e5(a.arrow))):l.appendChild(e5(a.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:i}}B8.$$tippy=!0;var nSe=1,A0=[],mE=[];function rSe(e,t){var n=Q3(e,Object.assign({},Pa,$8(K3(t)))),r,i,o,a=!1,s=!1,l=!1,u=!1,c,f,d,h=[],v=Y3(G,n.interactiveDebounce),m,y=nSe++,_=null,b=Fbe(n.plugins),w={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},S={id:y,reference:e,popper:Vv(),popperInstance:_,props:n,state:w,plugins:b,clearDelayTimeouts:Be,setProps:Xe,setContent:ht,show:ee,hide:ie,hideWithInteractivity:he,enable:Z,disable:de,unmount:Ee,destroy:He};if(!n.render)return S;var T=n.render(S),E=T.popper,A=T.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+S.id,S.popper=E,e._tippy=S,E._tippy=S;var P=b.map(function(ne){return ne.fn(S)}),I=e.hasAttribute("aria-expanded");return Oe(),ge(),Y(),j("onCreate",[S]),n.showOnCreate&&_e(),E.addEventListener("mouseenter",function(){S.props.interactive&&S.state.isVisible&&S.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){S.props.interactive&&S.props.trigger.indexOf("mouseenter")>=0&&F().addEventListener("mousemove",v)}),S;function R(){var ne=S.props.touch;return Array.isArray(ne)?ne:[ne,0]}function O(){return R()[0]==="hold"}function M(){var ne;return!!((ne=S.props.render)!=null&&ne.$$tippy)}function $(){return m||e}function F(){var ne=$().parentNode;return ne?Gbe(ne):document}function z(){return BA(E)}function B(ne){return S.state.isMounted&&!S.state.isVisible||Ja.isTouch||c&&c.type==="focus"?0:pE(S.props.delay,ne?0:1,Pa.delay)}function Y(ne){ne===void 0&&(ne=!1),E.style.pointerEvents=S.props.interactive&&!ne?"":"none",E.style.zIndex=""+S.props.zIndex}function j(ne,Ae,ke){if(ke===void 0&&(ke=!0),P.forEach(function(Ge){Ge[ne]&&Ge[ne].apply(Ge,Ae)}),ke){var Qe;(Qe=S.props)[ne].apply(Qe,Ae)}}function se(){var ne=S.props.aria;if(ne.content){var Ae="aria-"+ne.content,ke=E.id,Qe=Sd(S.props.triggerTarget||e);Qe.forEach(function(Ge){var We=Ge.getAttribute(Ae);if(S.state.isVisible)Ge.setAttribute(Ae,We?We+" "+ke:ke);else{var et=We&&We.replace(ke,"").trim();et?Ge.setAttribute(Ae,et):Ge.removeAttribute(Ae)}})}}function ge(){if(!(I||!S.props.aria.expanded)){var ne=Sd(S.props.triggerTarget||e);ne.forEach(function(Ae){S.props.interactive?Ae.setAttribute("aria-expanded",S.state.isVisible&&Ae===$()?"true":"false"):Ae.removeAttribute("aria-expanded")})}}function ve(){F().removeEventListener("mousemove",v),A0=A0.filter(function(ne){return ne!==v})}function De(ne){if(!(Ja.isTouch&&(l||ne.type==="mousedown"))){var Ae=ne.composedPath&&ne.composedPath()[0]||ne.target;if(!(S.props.interactive&&q3(E,Ae))){if(Sd(S.props.triggerTarget||e).some(function(ke){return q3(ke,Ae)})){if(Ja.isTouch||S.state.isVisible&&S.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[S,ne]);S.props.hideOnClick===!0&&(S.clearDelayTimeouts(),S.hide(),s=!0,setTimeout(function(){s=!1}),S.state.isMounted||je())}}}function Ne(){l=!0}function ze(){l=!1}function Me(){var ne=F();ne.addEventListener("mousedown",De,!0),ne.addEventListener("touchend",De,Ac),ne.addEventListener("touchstart",ze,Ac),ne.addEventListener("touchmove",Ne,Ac)}function je(){var ne=F();ne.removeEventListener("mousedown",De,!0),ne.removeEventListener("touchend",De,Ac),ne.removeEventListener("touchstart",ze,Ac),ne.removeEventListener("touchmove",Ne,Ac)}function ce(ne,Ae){Se(ne,function(){!S.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&Ae()})}function Ce(ne,Ae){Se(ne,Ae)}function Se(ne,Ae){var ke=z().box;function Qe(Ge){Ge.target===ke&&(gE(ke,"remove",Qe),Ae())}if(ne===0)return Ae();gE(ke,"remove",f),gE(ke,"add",Qe),f=Qe}function Te(ne,Ae,ke){ke===void 0&&(ke=!1);var Qe=Sd(S.props.triggerTarget||e);Qe.forEach(function(Ge){Ge.addEventListener(ne,Ae,ke),h.push({node:Ge,eventType:ne,handler:Ae,options:ke})})}function Oe(){O()&&(Te("touchstart",H,{passive:!0}),Te("touchend",le,{passive:!0})),kbe(S.props.trigger).forEach(function(ne){if(ne!=="manual")switch(Te(ne,H),ne){case"mouseenter":Te("mouseleave",le);break;case"focus":Te(Kbe?"focusout":"blur",we);break;case"focusin":Te("focusout",we);break}})}function $e(){h.forEach(function(ne){var Ae=ne.node,ke=ne.eventType,Qe=ne.handler,Ge=ne.options;Ae.removeEventListener(ke,Qe,Ge)}),h=[]}function H(ne){var Ae,ke=!1;if(!(!S.state.isEnabled||pe(ne)||s)){var Qe=((Ae=c)==null?void 0:Ae.type)==="focus";c=ne,m=ne.currentTarget,ge(),!S.state.isVisible&&Vbe(ne)&&A0.forEach(function(Ge){return Ge(ne)}),ne.type==="click"&&(S.props.trigger.indexOf("mouseenter")<0||a)&&S.props.hideOnClick!==!1&&S.state.isVisible?ke=!0:_e(ne),ne.type==="click"&&(a=!ke),ke&&!Qe&&Pe(ne)}}function G(ne){var Ae=ne.target,ke=$().contains(Ae)||E.contains(Ae);if(!(ne.type==="mousemove"&&ke)){var Qe=fe().concat(E).map(function(Ge){var We,et=Ge._tippy,It=(We=et.popperInstance)==null?void 0:We.state;return It?{popperRect:Ge.getBoundingClientRect(),popperState:It,props:n}:null}).filter(Boolean);zbe(Qe,ne)&&(ve(),Pe(ne))}}function le(ne){var Ae=pe(ne)||S.props.trigger.indexOf("click")>=0&&a;if(!Ae){if(S.props.interactive){S.hideWithInteractivity(ne);return}Pe(ne)}}function we(ne){S.props.trigger.indexOf("focusin")<0&&ne.target!==$()||S.props.interactive&&ne.relatedTarget&&E.contains(ne.relatedTarget)||Pe(ne)}function pe(ne){return Ja.isTouch?O()!==ne.type.indexOf("touch")>=0:!1}function U(){W();var ne=S.props,Ae=ne.popperOptions,ke=ne.placement,Qe=ne.offset,Ge=ne.getReferenceClientRect,We=ne.moveTransition,et=M()?BA(E).arrow:null,It=Ge?{getBoundingClientRect:Ge,contextElement:Ge.contextElement||$()}:e,Pt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Pn){var pr=Pn.state;if(M()){var Rf=z(),bl=Rf.box;["placement","reference-hidden","escaped"].forEach(function(Ba){Ba==="placement"?bl.setAttribute("data-placement",pr.placement):pr.attributes.popper["data-popper-"+Ba]?bl.setAttribute("data-"+Ba,""):bl.removeAttribute("data-"+Ba)}),pr.attributes.popper={}}}},Nn=[{name:"offset",options:{offset:Qe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!We}},Pt];M()&&et&&Nn.push({name:"arrow",options:{element:et,padding:3}}),Nn.push.apply(Nn,(Ae==null?void 0:Ae.modifiers)||[]),S.popperInstance=Mbe(It,E,Object.assign({},Ae,{placement:ke,onFirstUpdate:d,modifiers:Nn}))}function W(){S.popperInstance&&(S.popperInstance.destroy(),S.popperInstance=null)}function q(){var ne=S.props.appendTo,Ae,ke=$();S.props.interactive&&ne===N8||ne==="parent"?Ae=ke.parentNode:Ae=k8(ne,[ke]),Ae.contains(E)||Ae.appendChild(E),S.state.isMounted=!0,U()}function fe(){return j1(E.querySelectorAll("[data-tippy-root]"))}function _e(ne){S.clearDelayTimeouts(),ne&&j("onTrigger",[S,ne]),Me();var Ae=B(!0),ke=R(),Qe=ke[0],Ge=ke[1];Ja.isTouch&&Qe==="hold"&&Ge&&(Ae=Ge),Ae?r=setTimeout(function(){S.show()},Ae):S.show()}function Pe(ne){if(S.clearDelayTimeouts(),j("onUntrigger",[S,ne]),!S.state.isVisible){je();return}if(!(S.props.trigger.indexOf("mouseenter")>=0&&S.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ne.type)>=0&&a)){var Ae=B(!1);Ae?i=setTimeout(function(){S.state.isVisible&&S.hide()},Ae):o=requestAnimationFrame(function(){S.hide()})}}function Z(){S.state.isEnabled=!0}function de(){S.hide(),S.state.isEnabled=!1}function Be(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function Xe(ne){if(!S.state.isDestroyed){j("onBeforeUpdate",[S,ne]),$e();var Ae=S.props,ke=Q3(e,Object.assign({},Ae,K3(ne),{ignoreAttributes:!0}));S.props=ke,Oe(),Ae.interactiveDebounce!==ke.interactiveDebounce&&(ve(),v=Y3(G,ke.interactiveDebounce)),Ae.triggerTarget&&!ke.triggerTarget?Sd(Ae.triggerTarget).forEach(function(Qe){Qe.removeAttribute("aria-expanded")}):ke.triggerTarget&&e.removeAttribute("aria-expanded"),ge(),Y(),A&&A(Ae,ke),S.popperInstance&&(U(),fe().forEach(function(Qe){requestAnimationFrame(Qe._tippy.popperInstance.forceUpdate)})),j("onAfterUpdate",[S,ne])}}function ht(ne){S.setProps({content:ne})}function ee(){var ne=S.state.isVisible,Ae=S.state.isDestroyed,ke=!S.state.isEnabled,Qe=Ja.isTouch&&!S.props.touch,Ge=pE(S.props.duration,0,Pa.duration);if(!(ne||Ae||ke||Qe)&&!$().hasAttribute("disabled")&&(j("onShow",[S],!1),S.props.onShow(S)!==!1)){if(S.state.isVisible=!0,M()&&(E.style.visibility="visible"),Y(),Me(),S.state.isMounted||(E.style.transition="none"),M()){var We=z(),et=We.box,It=We.content;vE([et,It],0)}d=function(){var Nn;if(!(!S.state.isVisible||u)){if(u=!0,E.offsetHeight,E.style.transition=S.props.moveTransition,M()&&S.props.animation){var ca=z(),Pn=ca.box,pr=ca.content;vE([Pn,pr],Ge),Z3([Pn,pr],"visible")}se(),ge(),X3(mE,S),(Nn=S.popperInstance)==null||Nn.forceUpdate(),j("onMount",[S]),S.props.animation&&M()&&Ce(Ge,function(){S.state.isShown=!0,j("onShown",[S])})}},q()}}function ie(){var ne=!S.state.isVisible,Ae=S.state.isDestroyed,ke=!S.state.isEnabled,Qe=pE(S.props.duration,1,Pa.duration);if(!(ne||Ae||ke)&&(j("onHide",[S],!1),S.props.onHide(S)!==!1)){if(S.state.isVisible=!1,S.state.isShown=!1,u=!1,a=!1,M()&&(E.style.visibility="hidden"),ve(),je(),Y(!0),M()){var Ge=z(),We=Ge.box,et=Ge.content;S.props.animation&&(vE([We,et],Qe),Z3([We,et],"hidden"))}se(),ge(),S.props.animation?M()&&ce(Qe,S.unmount):S.unmount()}}function he(ne){F().addEventListener("mousemove",v),X3(A0,v),v(ne)}function Ee(){S.state.isVisible&&S.hide(),S.state.isMounted&&(W(),fe().forEach(function(ne){ne._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),mE=mE.filter(function(ne){return ne!==S}),S.state.isMounted=!1,j("onHidden",[S]))}function He(){S.state.isDestroyed||(S.clearDelayTimeouts(),S.unmount(),$e(),delete e._tippy,S.state.isDestroyed=!0,j("onDestroy",[S]))}}function cm(e,t){t===void 0&&(t={});var n=Pa.plugins.concat(t.plugins||[]);Ybe();var r=Object.assign({},t,{plugins:n}),i=Hbe(e),o=i.reduce(function(a,s){var l=s&&rSe(s,r);return l&&a.push(l),a},[]);return AS(e)?o[0]:o}cm.defaultProps=Pa;cm.setDefaultProps=Qbe;cm.currentInput=Ja;Object.assign({},T8,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});cm.setDefaultProps({render:B8});const V8=()=>{let e=null;return{showTip:(n,r)=>{e==null||e.destroy(),e=cm(n.target,{content:r,placement:"top",animation:"scale",appendTo:document.body,allowHTML:!0,onHidden:()=>{e==null||e.destroy(),e=null}}),e.show()}}},iSe={class:"flex w-full flex-1 items-center gap-1"},oSe={class:"flex h-4 w-full items-center justify-between"},aSe=it({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,{showTip:n}=V8(),r=c=>{const f=c.target,{scrollWidth:d,clientWidth:h}=f;d>h&&n(c,f.innerText)},i=Ve(()=>fi.value[t.name]),o=Fe(!1),a=c=>(c=c.toLowerCase(),c=c.replace("shadowsocks","ss"),c=c.replace("hysteria","hy"),c=c.replace("wireguard","wg"),c),s=Ve(()=>mv.value===qg.SMALL),l=Ve(()=>{const c=a(i.value.type),f=Kc.value&&Lre(i.value.name)?"IPv6":"",d=i.value.xudp?"xudp":i.value.udp?"udp":"";return[c,d,f].filter(Boolean).join(s.value?"/":" / ")}),u=async()=>{if(!o.value){o.value=!0;try{await Nre(t.name),o.value=!1}catch{o.value=!1}}};return(c,f)=>(K(),ae("div",{ref:"cardRef",class:rt(N(En)("flex cursor-pointer flex-col items-start gap-[2px] rounded-md bg-base-200",c.active?"bg-primary text-primary-content":"sm:hover:bg-base-300",s.value?"p-1":"p-2"))},[L("div",iSe,[i.value.icon?(K(),Ot(S8,{key:0,class:"shrink-0",size:"small",icon:i.value.icon,fill:c.active?"fill-primary-content":"fill-base-content"},null,8,["icon","fill"])):mt("",!0),L("span",{class:rt(N(En)("text-sm",N(vv)&&"truncate")),onMouseenter:r},re(i.value.name),35)]),L("div",oSe,[L("span",{class:rt(`whitespace-nowrap text-xs tracking-tight ${c.active?"text-primary-content":"text-slate-500"}`)},re(l.value),3),ye(v8,{class:rt([o.value?"animate-pulse cursor-wait":"",s.value&&"!h-4 !w-8"]),name:i.value.name,onClick:cf(u,["stop"])},null,8,["class","name"])])],2))}}),U8=Xb(aSe,[["__scopeId","data-v-c4818018"]]),sSe=it({__name:"ProxyNodeGrid",setup(e){const{hasTwoColumns:t}=Kb();return(n,r)=>(K(),ae("div",{class:rt(N(En)("grid grid-cols-2 gap-2 overflow-x-hidden",N(vv)&&"max-h-96 overflow-y-auto",N(mv)===N(qg).LARGE?N(gu)?N(t)?"sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5":"sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8 3xl:grid-cols-10":N(t)?"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-2 2xl:grid-cols-3 3xl:grid-cols-4":"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-6 3xl:grid-cols-8":N(gu)?N(t)?"sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-6 xl:grid-cols-4 2xl:grid-cols-5 3xl:grid-cols-6":"sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-6 xl:grid-cols-8 2xl:grid-cols-10 3xl:grid-cols-12":N(t)?"sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5":"sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-8 3xl:grid-cols-10"))},[Md(n.$slots,"default",{},void 0,!0)],2))}}),H8=Xb(sSe,[["__scopeId","data-v-cb978889"]]),lSe={key:0,class:"flex flex-wrap gap-1 pt-2"},uSe=["onMouseenter","onClick"],cSe={key:0,class:"h-2 w-2 rounded-full bg-white"},fSe={key:1,class:"flex items-center gap-2 py-2"},dSe={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},hSe=it({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,{showTip:n}=V8(),r=(f,d)=>{const h=document.createElement("div"),v=document.createElement("div");if(v.textContent=d.name,h.append(v),d.latency!==qo){const m=document.createElement("div");m.textContent=`${d.latency}ms`,m.classList.add(ru(d.latency)),h.append(m)}h.classList.add("flex","items-center","gap-2"),n(f,h)},i=Ve(()=>gv.value===ug.DOTS||gv.value===ug.AUTO&&t.nodes.length<20),o=Ve(()=>t.nodes.map(f=>({latency:Jg(f),name:f}))),a=f=>f===qo?"bg-gray-500":fo.value.filter(f=>f.latencyqo).length),l=Ve(()=>o.value.filter(f=>f.latency>=su.value&&f.latencyo.value.filter(f=>f.latency>=Ys.value).length),c=Ve(()=>o.value.filter(f=>f.latency===qo).length);return(f,d)=>i.value?(K(),ae("div",lSe,[(K(!0),ae(qe,null,on(o.value,h=>(K(),ae("div",{key:h.name,class:rt(["flex h-4 w-4 items-center justify-center rounded-full transition hover:scale-110",a(h.latency)]),ref_for:!0,ref:"dotsRef",onMouseenter:v=>r(v,h),onClick:cf(v=>f.$emit("nodeclick",h.name),["stop"])},[f.now===h.name?(K(),ae("div",cSe)):mt("",!0)],42,uSe))),128))])):(K(),ae("div",fSe,[L("div",dSe,[L("div",{class:rt(a(N(su)-1)),style:Gr({width:`${s.value*100/f.nodes.length}%`})},null,6),L("div",{class:rt(a(N(Ys)-1)),style:Gr({width:`${l.value*100/f.nodes.length}%`})},null,6),L("div",{class:rt(a(N(Ys)+1)),style:Gr({width:`${u.value*100/f.nodes.length}%`})},null,6),L("div",{class:rt(a(N(qo))),style:Gr({width:`${c.value*100/f.nodes.length}%`})},null,6)])]))}}),G8=Xb(hSe,[["__scopeId","data-v-7ca56d01"]]),pSe={class:"flex items-center gap-2 pr-5"},vSe={class:"flex flex-1 items-center gap-1"},gSe={class:"flex-1 text-xs text-slate-400"},mSe={class:"mt-[2px] flex items-center gap-2"},ySe={class:"flex flex-1 items-center gap-1"},_Se={class:"shrink-0 text-xs text-slate-500"},bSe=it({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,n=Ve(()=>fi.value[t.name]),r=Ve(()=>LB(n.value.all??[])),i=Fe(!1),o=async()=>{if(!i.value){i.value=!0;try{await kre(t.name),i.value=!1}catch{i.value=!1}}},a=Ve(()=>Qo.value.filter(l=>l.chains.includes(t.name)).reduce((l,u)=>l+u.downloadSpeed,0));return(s,l)=>(K(),Ot(p8,{name:n.value.name},{title:Mr(()=>{var u;return[L("div",pSe,[L("div",vSe,[ye(z1,{name:n.value.name,size:"large"},null,8,["name"]),L("span",gSe,": "+re(n.value.type)+" ("+re((u=n.value.all)==null?void 0:u.length)+")",1)]),ye(v8,{class:rt(N(En)("z-10 bg-base-200/40 hover:shadow",i.value?"animate-pulse cursor-wait bg-base-300":"")),name:n.value.now,onClick:cf(o,["stop"])},null,8,["class","name"])]),L("div",mSe,[L("div",ySe,[n.value.now?(K(),ae(qe,{key:0},[ye(N(ff),{class:"h-4 w-4"}),ye(z1,{class:"text-slate-500",name:n.value.now},null,8,["name"])],64)):mt("",!0)]),L("div",_Se,re(N(Tn)(a.value))+"/s",1)])]}),preview:Mr(()=>[ye(G8,{nodes:r.value,now:n.value.now,groupName:n.value.name,onNodeclick:l[0]||(l[0]=u=>N(gL)(n.value.name,u))},null,8,["nodes","now","groupName"])]),content:Mr(()=>[ye(H8,null,{default:Mr(()=>[(K(!0),ae(qe,null,on(r.value,u=>(K(),Ot(U8,{key:u,name:u,active:u===n.value.now,onClick:c=>N(gL)(n.value.name,u)},null,8,["name","active","onClick"]))),128))]),_:1})]),_:1},8,["name"]))}}),SSe={class:"flex items-center gap-2"},wSe={class:"text-lg font-medium sm:text-xl"},xSe={class:"text-sm"},TSe={class:"flex gap-2"},ESe=["value"],CSe={class:"flex flex-col sm:flex-row sm:gap-4"},ASe={class:"text-sm text-slate-500"},ISe={class:"text-sm text-slate-500"},RSe={class:"text-sm text-slate-500"},PSe=it({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,n=c=>{const{Download:f=0,Upload:d=0,Total:h=0,Expire:v=0}=c;if(f===0&&d===0&&h===0&&v===0)return null;const m=Tn(h,{binary:!0}),y=Tn(f+d,{binary:!0}),_=So.toFinite(((f+d)/h*100).toFixed(2));return{total:m,used:y,percentage:_,expirePrefix:()=>{const{t:S}=us();return S("expire")},expireStr:()=>{const{t:S}=us();return v===0?S("noExpire"):Ma(v*1e3).format("YYYY-MM-DD")}}},r=Ve(()=>kd.value.find(c=>c.name===t.name)),i=Ve(()=>LB(r.value.proxies.map(c=>c.name))),o=Ve(()=>r.value.subscriptionInfo?n(r.value.subscriptionInfo):null),a=Fe(!1),s=Fe(!1),l=async()=>{if(!s.value){s.value=!0;try{await Aoe(t.name),await fl(),s.value=!1}catch{s.value=!1}}},u=async()=>{if(!a.value){a.value=!0;try{await uV(t.name),await fl(),a.value=!1}catch{a.value=!1}}};return(c,f)=>(K(),Ot(p8,{name:r.value.name},{title:Mr(()=>[L("div",SSe,[L("div",wSe,[ft(re(r.value.name)+" ",1),L("span",xSe," ("+re(r.value.proxies.length)+") ",1)]),f[0]||(f[0]=L("div",{class:"flex-1"},null,-1)),L("div",TSe,[L("button",{class:rt(N(En)("btn btn-circle btn-sm z-30",s.value?"animate-pulse":"")),onClick:cf(l,["stop"])},[ye(N(Cb),{class:"h-4 w-4"})],2),L("button",{class:rt(N(En)("btn btn-circle btn-sm z-30",a.value?"animate-spin":"")),onClick:cf(u,["stop"])},[ye(N(G4),{class:"h-4 w-4"})],2)])]),o.value?(K(),ae("progress",{key:0,class:"progress",value:o.value.percentage,max:"100"},null,8,ESe)):mt("",!0),L("div",CSe,[o.value?(K(),ae(qe,{key:0},[L("div",ASe,re(o.value.used)+" / "+re(o.value.total)+" ( "+re(o.value.percentage)+"% ) ",1),L("div",ISe,re(o.value.expirePrefix())+": "+re(o.value.expireStr()),1)],64)):mt("",!0),L("div",RSe,re(c.$t("updated"))+" "+re(N($b)(r.value.updatedAt)),1)])]),preview:Mr(()=>[ye(G8,{nodes:i.value},null,8,["nodes"])]),content:Mr(()=>[ye(H8,null,{default:Mr(()=>[(K(!0),ae(qe,null,on(i.value,d=>(K(),Ot(U8,{key:d,name:d},null,8,["name"]))),128))]),_:1})]),_:1},8,["name"]))}}),OSe={class:"overflow-y-auto p-2"},DSe={key:0,class:"grid grid-cols-2 gap-1"},MSe={key:1,class:"grid grid-cols-1 gap-1"},LSe=it({__name:"ProxiesPage",setup(e){const{proxiesTabShow:t,renderGroups:n}=Kb(),r=Ve(()=>t.value===df.PROVIDER?PSe:bSe),i=(o,a)=>o.filter((s,l)=>l%2===a);return fl(),(o,a)=>(K(),ae("div",OSe,[N(dre)&&N(dv)&&N(n).length>1?(K(),ae("div",DSe,[(K(),ae(qe,null,on([0,1],s=>L("div",{key:s,class:"flex flex-1 flex-col gap-1"},[(K(!0),ae(qe,null,on(i(N(n),s),l=>(K(),Ot(ss(r.value),{key:l,name:l},null,8,["name"]))),128))])),64))])):(K(),ae("div",MSe,[(K(!0),ae(qe,null,on(N(n),s=>(K(),Ot(ss(r.value),{key:s,name:s},null,8,["name"]))),128))]))]))}}),NSe={class:"mr-2 inline-block min-w-4 text-center"},kSe={class:"mr-2 text-slate-500"},FSe={key:0,class:"mr-2 text-primary"},$Se={key:1,class:"badge badge-sm bg-base-200"},BSe={class:"flex items-center gap-2"},VSe=it({__name:"RuleCard",props:{rule:{},index:{}},setup(e){const t=e,n=Ve(()=>fi.value[t.rule.proxy]),r=Ve(()=>Jg(t.rule.proxy)),i=Ve(()=>ru(Number(r.value)));return(o,a)=>{var s;return K(),ae("div",{class:rt(N(En)("card mb-1 gap-1 p-2 text-sm",!o.rule.payload&&"gap-0"))},[L("div",null,[L("span",NSe,re(o.index)+".",1),L("span",kSe,re(o.rule.type)+":",1),o.rule.payload?(K(),ae("span",FSe,re(o.rule.payload),1)):mt("",!0),typeof o.rule.size=="number"&&o.rule.size!==-1?(K(),ae("span",$Se,re(o.rule.size),1)):mt("",!0)]),L("div",BSe,[ye(z1,{name:o.rule.proxy},null,8,["name"]),(s=n.value)!=null&&s.now?(K(),ae(qe,{key:0},[ye(N(ff),{class:"h-4 w-4"}),ye(z1,{name:n.value.now},null,8,["name"])],64)):mt("",!0),r.value!==N(qo)?(K(),ae("span",{key:1,class:rt(i.value)},re(r.value)+"ms",3)):mt("",!0)])],2)}}}),USe={class:"card w-full flex-row items-center gap-2 p-1 px-2 text-sm"},HSe={class:"flex flex-1 flex-col sm:flex-row"},GSe={class:"flex flex-1 items-center gap-2"},zSe={class:"badge badge-sm bg-base-200"},WSe={class:"flex gap-3 text-slate-500"},jSe=it({__name:"RuleProvider",props:{ruleProvider:{},index:{}},setup(e){const t=Fe(!1),n=e,r=async()=>{t.value||(t.value=!0,await cV(n.ruleProvider.name),mg(),t.value=!1)};return(i,o)=>(K(),ae("div",USe,[L("div",HSe,[L("div",GSe,[L("span",null,re(i.index)+".",1),L("span",null,re(i.ruleProvider.name),1),L("span",zSe,re(i.ruleProvider.ruleCount),1)]),L("div",WSe,[L("span",null,re(i.ruleProvider.behavior),1),L("span",null,re(i.ruleProvider.vehicleType),1),L("span",null,re(i.$t("updated"))+" "+re(N($b)(i.ruleProvider.updatedAt)),1)])]),L("button",{class:rt(N(En)("btn btn-circle btn-sm",t.value?"animate-spin":"")),onClick:r},[ye(N(G4),{class:"h-4 w-4"})],2)]))}}),YSe={key:0,class:"flex flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},XSe=it({__name:"RulesPage",setup(e){return(t,n)=>N(xv)===N(rh).PROVIDER?(K(),ae("div",YSe,[(K(!0),ae(qe,null,on(N(ble),(r,i)=>(K(),Ot(jSe,{key:r.name,ruleProvider:r,index:i+1},null,8,["ruleProvider","index"]))),128))])):(K(),Ot(XI,{key:1,data:N(_le)},{default:Mr(({item:r})=>[(K(),Ot(VSe,{key:r.payload,rule:r,index:N(m1).indexOf(r)+1},null,8,["rule","index"]))]),_:1},8,["data"]))}}),KSe={class:"join w-96 max-sm:w-full"},ZSe={class:"flex max-h-96 flex-col gap-1 overflow-y-auto"},qSe={key:0,class:"flex gap-1"},JSe=it({__name:"DnsQuery",setup(e){const t=La({name:"www.google.com",type:"A"}),n=Fe(null),r=Fe([]),i=async()=>{var a;const{data:o}=await Loe(t);r.value=o.Answer,(a=r.value)!=null&&a.length?n.value=await hV(r.value[0].data):n.value=null};return(o,a)=>{var s,l,u,c;return K(),ae(qe,null,[L("div",KSe,[ye(Yb,{modelValue:t.name,"onUpdate:modelValue":a[0]||(a[0]=f=>t.name=f),type:"text",name:"name",placeholder:"Domain Name"},null,8,["modelValue"]),yt(L("select",{"onUpdate:modelValue":a[1]||(a[1]=f=>t.type=f),class:"join-item select select-bordered select-sm"},a[2]||(a[2]=[L("option",{value:"A"},"A",-1),L("option",{value:"AAAA"},"AAAA",-1),L("option",{value:"MX"},"MX",-1)]),512),[[hi,t.type]]),L("button",{class:"btn join-item btn-sm",onClick:i},re(o.$t("DNSQuery")),1)]),L("div",ZSe,[(K(!0),ae(qe,null,on(r.value,f=>(K(),ae("div",{class:"flex gap-1",key:f.data},[L("div",null,re(f.name),1),a[3]||(a[3]=ft(" : ")),L("div",null,re(f.data),1)]))),128))]),n.value?(K(),ae("div",qSe,re((s=n.value)==null?void 0:s.ip)+": AS"+re((l=n.value)==null?void 0:l.asn)+" "+re((u=n.value)==null?void 0:u.asn_organization)+" "+re((c=n.value)==null?void 0:c.country),1)):mt("",!0)],64)}}}),QSe={class:"card card-compact"},ewe={class:"card-title px-4 pt-4"},twe={class:"card-body gap-4"},nwe={class:"grid max-w-screen-md grid-cols-2 gap-2 lg:grid-cols-3"},rwe={class:"shrink-0"},iwe=["onUpdate:modelValue","onChange"],owe={class:"grid max-w-screen-md grid-cols-2 gap-2 lg:grid-cols-3"},awe={key:0,class:"flex items-center gap-2"},swe={class:"flex items-center gap-2"},lwe={class:"flex items-center gap-2"},uwe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},cwe={class:"indicator w-full"},fwe={key:0,class:"indicator-item flex"},dwe=it({__name:"BackendSettings",setup(e){const t=[{label:"mixedPort",key:"mixed-port"},{label:"httpPort",key:"port"},{label:"socksPort",key:"socks-port"},{label:"redirPort",key:"redir-port"},{label:"tproxyPort",key:"tproxy-port"}],n=()=>{eR(),mg(),fl()},r=Fe(!1),i=async()=>{if(!r.value){r.value=!0;try{await Moe(),setTimeout(()=>{n()},500),r.value=!1}catch{r.value=!1}}},o=Fe(!1),a=async()=>{if(!o.value){o.value=!0;try{await dV(),n(),o.value=!1}catch{o.value=!1}}},s=Fe(!1),l=async()=>{if(!s.value){s.value=!0;try{await Doe(),n(),s.value=!1}catch{s.value=!1}}},u=async()=>{var f;await m_({tun:{enable:(f=ei.value)==null?void 0:f.tun.enable}})},c=async()=>{var f;await m_({"allow-lan":(f=ei.value)==null?void 0:f["allow-lan"]})};return(f,d)=>{var h;return K(),ae("div",QSe,[L("div",ewe,re(f.$t("backend")),1),L("div",twe,[ye(HV),ye(tR),N(dl)?mt("",!0):(K(),ae(qe,{key:0},[d[4]||(d[4]=L("div",{class:"divider"},null,-1)),L("div",nwe,[(K(),ae(qe,null,on(t,v=>L("div",{class:"flex items-center gap-2",key:v.key},[L("span",rwe,re(f.$t(v.label))+": ",1),yt(L("input",{class:"input input-sm input-bordered w-20",type:"number","onUpdate:modelValue":m=>N(ei)[v.key]=m,onChange:m=>N(m_)({[v.key]:Number(N(ei)[v.key])})},null,40,iwe),[[Qn,N(ei)[v.key]]])])),64))]),L("div",owe,[(h=N(ei))!=null&&h.tun?(K(),ae("div",awe,[ft(re(f.$t("tunMode"))+": ",1),yt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=v=>N(ei).tun.enable=v),onChange:u},null,544),[[gr,N(ei).tun.enable]])])):mt("",!0),L("div",swe,[ft(re(f.$t("allowLan"))+": ",1),yt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[1]||(d[1]=v=>N(ei)["allow-lan"]=v),onChange:c},null,544),[[gr,N(ei)["allow-lan"]]])]),L("div",lwe,[ft(re(f.$t("autoUpgrade"))+": ",1),yt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[2]||(d[2]=v=>st(X0)?X0.value=v:null)},null,512),[[gr,N(X0)]])])])],64)),L("div",uwe,[N(dl)?mt("",!0):(K(),ae(qe,{key:0},[L("div",cwe,[N(_C)?(K(),ae("span",fwe,d[5]||(d[5]=[L("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),L("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):mt("",!0),L("button",{class:rt(N(En)("btn btn-primary btn-sm flex-1",o.value?"animate-pulse":"")),onClick:a},re(f.$t("upgradeCore")),3)]),L("button",{class:rt(N(En)("btn btn-sm",r.value?"animate-pulse":"")),onClick:i},re(f.$t("restartCore")),3),L("button",{class:rt(N(En)("btn btn-sm",s.value?"animate-pulse":"")),onClick:l},re(f.$t("reloadConfigs")),3)],64)),L("button",{class:"btn btn-sm",onClick:d[3]||(d[3]=(...v)=>N(kL)&&N(kL)(...v))},re(f.$t("flushFakeIP")),1)]),d[6]||(d[6]=L("div",{class:"divider"},null,-1)),ye(JSe)])])}}});var L_={exports:{}},yE={exports:{}},_E={};/** * @vue/compiler-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const hh=Symbol(""),Yd=Symbol(""),CS=Symbol(""),Mg=Symbol(""),mP=Symbol(""),Ou=Symbol(""),yP=Symbol(""),_P=Symbol(""),AS=Symbol(""),IS=Symbol(""),Dh=Symbol(""),RS=Symbol(""),bP=Symbol(""),PS=Symbol(""),OS=Symbol(""),DS=Symbol(""),MS=Symbol(""),LS=Symbol(""),NS=Symbol(""),SP=Symbol(""),wP=Symbol(""),um=Symbol(""),Lg=Symbol(""),kS=Symbol(""),FS=Symbol(""),ph=Symbol(""),Mh=Symbol(""),$S=Symbol(""),W1=Symbol(""),U8=Symbol(""),j1=Symbol(""),Ng=Symbol(""),H8=Symbol(""),G8=Symbol(""),BS=Symbol(""),z8=Symbol(""),W8=Symbol(""),VS=Symbol(""),xP=Symbol(""),Sf={[hh]:"Fragment",[Yd]:"Teleport",[CS]:"Suspense",[Mg]:"KeepAlive",[mP]:"BaseTransition",[Ou]:"openBlock",[yP]:"createBlock",[_P]:"createElementBlock",[AS]:"createVNode",[IS]:"createElementVNode",[Dh]:"createCommentVNode",[RS]:"createTextVNode",[bP]:"createStaticVNode",[PS]:"resolveComponent",[OS]:"resolveDynamicComponent",[DS]:"resolveDirective",[MS]:"resolveFilter",[LS]:"withDirectives",[NS]:"renderList",[SP]:"renderSlot",[wP]:"createSlots",[um]:"toDisplayString",[Lg]:"mergeProps",[kS]:"normalizeClass",[FS]:"normalizeStyle",[ph]:"normalizeProps",[Mh]:"guardReactiveProps",[$S]:"toHandlers",[W1]:"camelize",[U8]:"capitalize",[j1]:"toHandlerKey",[Ng]:"setBlockTracking",[H8]:"pushScopeId",[G8]:"popScopeId",[BS]:"withCtx",[z8]:"unref",[W8]:"isRef",[VS]:"withMemo",[xP]:"isMemoSame"};function j8(e){Object.getOwnPropertySymbols(e).forEach(t=>{Sf[t]=e[t]})}const fwe={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},dwe={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},hwe={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},pwe={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},Ir={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Y8(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Ir}}function vh(e,t,n,r,i,o,a,s=!1,l=!1,u=!1,c=Ir){return e&&(s?(e.helper(Ou),e.helper(Tf(e.inSSR,u))):e.helper(xf(e.inSSR,u)),a&&e.helper(LS)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:o,directives:a,isBlock:s,disableTracking:l,isComponent:u,loc:c}}function Su(e,t=Ir){return{type:17,loc:t,elements:e}}function wo(e,t=Ir){return{type:15,loc:t,properties:e}}function lr(e,t){return{type:16,loc:Ir,key:At(e)?Nt(e,!0):e,value:t}}function Nt(e,t=!1,n=Ir,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function vwe(e,t){return{type:5,loc:t,content:At(e)?Nt(e,!1,t):e}}function ra(e,t=Ir){return{type:8,loc:t,children:e}}function mr(e,t=[],n=Ir){return{type:14,loc:n,callee:e,arguments:t}}function wf(e,t=void 0,n=!1,r=!1,i=Ir){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function Y1(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Ir}}function X8(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Ir}}function K8(e){return{type:21,body:e,loc:Ir}}function gwe(e){return{type:22,elements:e,loc:Ir}}function mwe(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Ir}}function ywe(e,t){return{type:24,left:e,right:t,loc:Ir}}function _we(e){return{type:25,expressions:e,loc:Ir}}function bwe(e){return{type:26,returns:e,loc:Ir}}function xf(e,t){return e||t?AS:IS}function Tf(e,t){return e||t?yP:_P}function US(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(xf(r,e.isComponent)),t(Ou),t(Tf(r,e.isComponent)))}const e5=new Uint8Array([123,123]),t5=new Uint8Array([125,125]);function n5(e){return e>=97&&e<=122||e>=65&&e<=90}function yo(e){return e===32||e===10||e===9||e===12||e===13}function zl(e){return e===47||e===62||yo(e)}function X1(e){const t=new Uint8Array(e.length);for(let n=0;n=0;i--){const o=this.newlines[i];if(t>o){n=i+2,r=t-o;break}}return{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?zl(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||yo(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart=t||(this.state===28?this.currentSequence===qr.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const wwe={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},xwe={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with