178 lines
1.2 MiB
178 lines
1.2 MiB
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var vy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ub(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cb(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 V0={exports:{}},hK=V0.exports,TM;function JA(){return TM||(TM=1,function(e,t){(function(n,r){e.exports=r()})(hK,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()<B.date())return-F(B,z);var Y=12*(B.year()-z.year())+(B.month()-z.month()),j=z.clone().add(Y,f),se=B-j<0,ge=z.clone().add(Y+(se?-1:1),f);return+(-(Y+(B-j)/(se?j-ge:ge-j))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y:h,w:c,d:u,D:v,h:l,m:s,s:a,ms:o,Q:d}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},C="en",T={};T[C]=b;var A="$isDayjsObject",P=function(F){return F instanceof D||!(!F||!F[A])},I=function F(z,B,Y){var j;if(!z)return C;if(typeof z=="string"){var se=z.toLowerCase();T[se]&&(j=se),B&&(T[se]=B,j=se);var ge=z.split("-");if(!j&&ge.length>1)return F(ge[0])}else{var ve=z.name;T[ve]=z,j=ve}return!Y&&j&&(C=j),j||!Y&&C},R=function(F,z){if(P(F))return F.clone();var B=typeof z=="object"?z:{};return B.date=F,B.args=arguments,new D(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 D=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,Me=(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,Me)):new Date(ge[1],ve,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,Me)}}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)<this.startOf(Y)},z.isBefore=function(B,Y){return this.endOf(Y)<R(B)},z.$g=function(B,Y,j){return O.u(B)?this[Y]:this.set(j,B)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(B,Y){var j=this,se=!!O.u(Y)||Y,ge=O.p(B),ve=function(Se,Te){var Oe=O.w(j.$u?Date.UTC(j.$y,Te,Se):new Date(j.$y,Te,Se),j);return se?Oe:Oe.endOf(u)},Me=function(Se,Te){return O.w(j.toDate()[Se].apply(j.toDate("s"),(se?[0,0,0,0]:[23,59,59,999]).slice(Te)),j)},Ne=this.$W,ze=this.$M,De=this.$D,je="set"+(this.$u?"UTC":"");switch(ge){case h:return se?ve(1,0):ve(31,11);case f:return se?ve(1,ze):ve(0,ze+1);case c:var ce=this.$locale().weekStart||0,Ee=(Ne<ce?Ne+7:Ne)-ce;return ve(se?De-Ee:De+(6-Ee),ze);case u:case v:return Me(je+"Hours",0);case l:return Me(je+"Minutes",1);case s:return Me(je+"Seconds",2);case a:return Me(je+"Milliseconds",3);default:return this.clone()}},z.endOf=function(B){return this.startOf(B,!1)},z.$set=function(B,Y){var j,se=O.p(B),ge="set"+(this.$u?"UTC":""),ve=(j={},j[u]=ge+"Date",j[v]=ge+"Date",j[f]=ge+"Month",j[h]=ge+"FullYear",j[l]=ge+"Hours",j[s]=ge+"Minutes",j[a]=ge+"Seconds",j[o]=ge+"Milliseconds",j)[se],Me=se===u?this.$D+(Y-this.$W):Y;if(se===f||se===h){var Ne=this.clone().set(v,1);Ne.$d[ve](Me),Ne.init(),this.$d=Ne.set(v,Math.min(this.$D,Ne.daysInMonth())).$d}else ve&&this.$d[ve](Me);return this.init(),this},z.set=function(B,Y){return this.clone().$set(B,Y)},z.get=function(B){return this[O.p(B)]()},z.add=function(B,Y){var j,se=this;B=Number(B);var ge=O.p(Y),ve=function(ze){var De=R(se);return O.w(De.date(De.date()+Math.round(ze*B)),se)};if(ge===f)return this.set(f,this.$M+B);if(ge===h)return this.set(h,this.$y+B);if(ge===u)return ve(1);if(ge===c)return ve(7);var Me=(j={},j[s]=r,j[l]=i,j[a]=n,j)[ge]||1,Ne=this.$d.getTime()+B*Me;return O.w(Ne,this)},z.subtract=function(B,Y){return this.add(-1*B,Y)},z.format=function(B){var Y=this,j=this.$locale();if(!this.isValid())return j.invalidDate||m;var se=B||"YYYY-MM-DDTHH:mm:ssZ",ge=O.z(this),ve=this.$H,Me=this.$m,Ne=this.$M,ze=j.weekdays,De=j.months,je=j.meridiem,ce=function(Te,Oe,$e,H){return Te&&(Te[Oe]||Te(Y,se))||$e[Oe].slice(0,H)},Ee=function(Te){return O.s(ve%12||12,Te,"0")},Se=je||function(Te,Oe,$e){var H=Te<12?"AM":"PM";return $e?H.toLowerCase():H};return se.replace(_,function(Te,Oe){return Oe||function($e){switch($e){case"YY":return String(Y.$y).slice(-2);case"YYYY":return O.s(Y.$y,4,"0");case"M":return Ne+1;case"MM":return O.s(Ne+1,2,"0");case"MMM":return ce(j.monthsShort,Ne,De,3);case"MMMM":return ce(De,Ne);case"D":return Y.$D;case"DD":return O.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return ce(j.weekdaysMin,Y.$W,ze,2);case"ddd":return ce(j.weekdaysShort,Y.$W,ze,3);case"dddd":return ze[Y.$W];case"H":return String(ve);case"HH":return O.s(ve,2,"0");case"h":return Ee(1);case"hh":return Ee(2);case"a":return Se(ve,Me,!0);case"A":return Se(ve,Me,!1);case"m":return String(Me);case"mm":return O.s(Me,2,"0");case"s":return String(Y.$s);case"ss":return O.s(Y.$s,2,"0");case"SSS":return O.s(Y.$ms,3,"0");case"Z":return ge}return null}(Te)||ge.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(B,Y,j){var se,ge=this,ve=O.p(Y),Me=R(B),Ne=(Me.utcOffset()-this.utcOffset())*r,ze=this-Me,De=function(){return O.m(ge,Me)};switch(ve){case h:se=De()/12;break;case f:se=De();break;case d:se=De()/3;break;case c:se=(ze-Ne)/6048e5;break;case u:se=(ze-Ne)/864e5;break;case l:se=ze/i;break;case s:se=ze/r;break;case a:se=ze/n;break;default:se=ze}return j?se:O.a(se)},z.daysInMonth=function(){return this.endOf(f).$D},z.$locale=function(){return T[this.$L]},z.locale=function(B,Y){if(!B)return this.$L;var j=this.clone(),se=I(B,Y,!0);return se&&(j.$L=se),j},z.clone=function(){return O.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},F}(),$=D.prototype;return R.prototype=$,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",v]].forEach(function(F){$[F[1]]=function(z){return this.$g(z,F[0],F[1])}}),R.extend=function(F,z){return F.$i||(F(z,D,R),F.$i=!0),R},R.locale=I,R.isDayjs=P,R.unix=function(F){return R(1e3*F)},R.en=T[C],R.Ls=T,R.p={},R})}(V0)),V0.exports}var pK=JA();const La=ub(pK);var U0={exports:{}},vK=U0.exports,CM;function gK(){return CM||(CM=1,function(e,t){(function(n,r){e.exports=r(JA())})(vK,function(n){function r(v){return v&&typeof v=="object"&&"default"in v?v:{default:v}}var i=r(n),o="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),a="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),s="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),l="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),u=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function c(v,m,y){var _,b;return y==="m"?m?"минута":"минуту":v+" "+(_=+v,b={mm:m?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[y].split("_"),_%10==1&&_%100!=11?b[0]:_%10>=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})}(U0)),U0.exports}gK();var H0={exports:{}},mK=H0.exports,EM;function yK(){return EM||(EM=1,function(e,t){(function(n,r){e.exports=r(JA())})(mK,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})}(H0)),H0.exports}yK();var G0={exports:{}},_K=G0.exports,AM;function bK(){return AM||(AM=1,function(e,t){(function(n,r){e.exports=r()})(_K,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;S<w;S+=1){var C=b[S];C.d&&(v=d?i(u).diff(f,C.d,!0):f.diff(u,C.d,!0));var T=(n.rounding||Math.round)(Math.abs(v));if(y=v>0,T<=C.r||!C.r){T<=1&&S>0&&(C=b[S-1]);var A=_[C.l];h&&(T=h(""+T)),m=typeof A=="string"?A.replace("%d",T):A(T,c,C.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)}}})}(G0)),G0.exports}var SK=bK();const wK=ub(SK);/**
|
||
* @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={},zc=[],Lr=()=>{},Td=()=>!1,Lu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),fb=e=>e.startsWith("onUpdate:"),Qt=Object.assign,db=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},xK=Object.prototype.hasOwnProperty,cn=(e,t)=>xK.call(e,t),Je=Array.isArray,Wc=e=>Ef(e)==="[object Map]",Nu=e=>Ef(e)==="[object Set]",LC=e=>Ef(e)==="[object Date]",F5=e=>Ef(e)==="[object RegExp]",bt=e=>typeof e=="function",It=e=>typeof e=="string",Pi=e=>typeof e=="symbol",vn=e=>e!==null&&typeof e=="object",hb=e=>(vn(e)||bt(e))&&bt(e.then)&&bt(e.catch),QA=Object.prototype.toString,Ef=e=>QA.call(e),$5=e=>Ef(e).slice(8,-1),Gg=e=>Ef(e)==="[object Object]",pb=e=>It(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,el=Nr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),B5=Nr("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),vb=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},TK=/-(\w)/g,Bn=vb(e=>e.replace(TK,(t,n)=>n?n.toUpperCase():"")),CK=/\B([A-Z])/g,li=vb(e=>e.replace(CK,"-$1").toLowerCase()),ku=vb(e=>e.charAt(0).toUpperCase()+e.slice(1)),jc=vb(e=>e?`on${ku(e)}`:""),oi=(e,t)=>!Object.is(e,t),Yc=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},eI=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Xv=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Kv=e=>{const t=It(e)?Number(e):NaN;return isNaN(t)?e:t};let IM;const zg=()=>IM||(IM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),EK=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function AK(e){return EK.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function IK(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const RK={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"},PK={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"},OK={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"},MK={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},DK={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},LK="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",tI=Nr(LK),NK=tI,RM=2;function V5(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<r.length;s++)if(o+=r[s].length+(i[s]&&i[s].length||0),o>=t){for(let l=s-RM;l<=s+RM||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<e.length;n++){const r=e[n],i=It(r)?nI(r):Gr(r);if(i)for(const o in i)t[o]=i[o]}return t}else if(It(e)||vn(e))return e}const kK=/;(?![^(]*\))/g,FK=/:([^]+)/,$K=/\/\*[^]*?\*\//g;function nI(e){const t={};return e.replace($K,"").split(kK).forEach(n=>{if(n){const r=n.split(FK);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function BK(e){if(!e)return"";if(It(e))return e;let t="";for(const n in e){const r=e[n];if(It(r)||typeof r=="number"){const i=n.startsWith("--")?n:li(n);t+=`${i}:${r};`}}return t}function it(e){let t="";if(It(e))t=e;else if(Je(e))for(let n=0;n<e.length;n++){const r=it(e[n]);r&&(t+=r+" ")}else if(vn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function U5(e){if(!e)return null;let{class:t,style:n}=e;return t&&!It(t)&&(e.class=it(t)),n&&(e.style=Gr(n)),e}const VK="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",UK="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",HK="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",GK="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",H5=Nr(VK),G5=Nr(UK),z5=Nr(HK),W5=Nr(GK),j5="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Y5=Nr(j5),zK=Nr(j5+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function rI(e){return!!e||e===""}const WK=/[>/="'\u0009\u000a\u000c\u0020]/,sx={};function jK(e){if(sx.hasOwnProperty(e))return sx[e];const t=WK.test(e);return t&&console.error(`unsafe attribute name: ${e}`),sx[e]=!t}const YK={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},XK=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"),KK=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"),ZK=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 qK(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const JK=/["'&<>]/;function QK(e){const t=""+e,n=JK.exec(t);if(!n)return t;let r="",i,o,a=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;default:continue}a!==o&&(r+=t.slice(a,o)),a=o+1,r+=i}return a!==o?r+t.slice(a,o):r}const eZ=/^-?>|<!--|-->|--!>|<!-$/g;function tZ(e){return e.replace(eZ,"")}const X5=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function nZ(e,t){return e.replace(X5,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function rZ(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=sl(e[r],t[r]);return n}function sl(e,t){if(e===t)return!0;let n=LC(e),r=LC(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Pi(e),r=Pi(t),n||r)return e===t;if(n=Je(e),r=Je(t),n||r)return n&&r?rZ(e,t):!1;if(n=vn(e),r=vn(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const a in e){const s=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(s&&!l||!s&&l||!sl(e[a],t[a]))return!1}}return String(e)===String(t)}function Wg(e,t){return e.findIndex(n=>sl(n,t))}const K5=e=>!!(e&&e.__v_isRef===!0),ie=e=>It(e)?e:e==null?"":Je(e)||vn(e)&&(e.toString===QA||!bt(e.toString))?K5(e)?ie(e.value):JSON.stringify(e,Z5,2):String(e),Z5=(e,t)=>K5(t)?Z5(e,t.value):Wc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[lx(r,o)+" =>"]=i,n),{})}:Nu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>lx(n))}:Pi(t)?lx(t):vn(t)&&!Je(t)&&!Gg(t)?String(t):t,lx=(e,t="")=>{var n;return Pi(e)?`Symbol(${(n=e.description)!=null?n:t})`:e},iZ=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:zc,EMPTY_OBJ:Jt,NO:Td,NOOP:Lr,PatchFlagNames:PK,PatchFlags:RK,ShapeFlags:OK,SlotFlags:MK,camelize:Bn,capitalize:ku,cssVarNameEscapeSymbolsRE:X5,def:eI,escapeHtml:QK,escapeHtmlComment:tZ,extend:Qt,genCacheKey:IK,genPropsAccessExp:AK,generateCodeFrame:V5,getEscapedCssVarName:nZ,getGlobalThis:zg,hasChanged:oi,hasOwn:cn,hyphenate:li,includeBooleanAttr:rI,invokeArrayFns:Yc,isArray:Je,isBooleanAttr:zK,isBuiltInDirective:B5,isDate:LC,isFunction:bt,isGloballyAllowed:tI,isGloballyWhitelisted:NK,isHTMLTag:H5,isIntegerKey:pb,isKnownHtmlAttr:XK,isKnownMathMLAttr:ZK,isKnownSvgAttr:KK,isMap:Wc,isMathMLTag:z5,isModelListener:fb,isObject:vn,isOn:Lu,isPlainObject:Gg,isPromise:hb,isRegExp:F5,isRenderableAttrValue:qK,isReservedProp:el,isSSRSafeAttrName:jK,isSVGTag:G5,isSet:Nu,isSpecialBooleanAttr:Y5,isString:It,isSymbol:Pi,isVoidTag:W5,looseEqual:sl,looseIndexOf:Wg,looseToNumber:Xv,makeMap:Nr,normalizeClass:it,normalizeProps:U5,normalizeStyle:Gr,objectToString:QA,parseStringStyle:nI,propsToAttrMap:YK,remove:db,slotFlagsText:DK,stringifyStyle:BK,toDisplayString:ie,toHandlerKey:jc,toNumber:Kv,toRawType:$5,toTypeString:Ef},Symbol.toStringTag,{value:"Module"}));/**
|
||
* @vue/reactivity v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let xi;class iI{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xi,!t&&xi&&(this.index=(xi.scopes||(xi.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;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=xi;try{return xi=this,t()}finally{xi=n}}}on(){xi=this}off(){xi=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function q5(e){return new iI(e)}function oI(){return xi}function aI(e,t=!1){xi&&xi.cleanups.push(e)}let $n;const ux=new WeakSet;class Zv{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,xi&&xi.active&&xi.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ux.has(this)&&(ux.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Q5(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,PM(this),e$(this);const t=$n,n=Ma;$n=this,Ma=!0;try{return this.fn()}finally{t$(this),$n=t,Ma=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)uI(t);this.deps=this.depsTail=void 0,PM(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ux.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){NC(this)&&this.run()}get dirty(){return NC(this)}}let J5=0,iv,ov;function Q5(e,t=!1){if(e.flags|=8,t){e.next=ov,ov=e;return}e.next=iv,iv=e}function sI(){J5++}function lI(){if(--J5>0)return;if(ov){let t=ov;for(ov=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;iv;){let t=iv;for(iv=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 e$(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function t$(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),uI(r),oZ(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function NC(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(n$(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function n$(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===qv))return;e.globalVersion=qv;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!NC(e)){e.flags&=-3;return}const n=$n,r=Ma;$n=e,Ma=!0;try{e$(e);const i=e.fn(e._value);(t.version===0||oi(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{$n=n,Ma=r,t$(e),e.flags&=-3}}function uI(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)uI(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function oZ(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function aZ(e,t){e.effect instanceof Zv&&(e=e.effect.fn);const n=new Zv(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 sZ(e){e.effect.stop()}let Ma=!0;const r$=[];function Fu(){r$.push(Ma),Ma=!1}function $u(){const e=r$.pop();Ma=e===void 0?!0:e}function PM(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=$n;$n=void 0;try{t()}finally{$n=n}}}let qv=0;class lZ{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 gb{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||!Ma||$n===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$n)n=this.activeLink=new lZ($n,this),$n.deps?(n.prevDep=$n.depsTail,$n.depsTail.nextDep=n,$n.depsTail=n):$n.deps=$n.depsTail=n,i$(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++,qv++,this.notify(t)}notify(t){sI();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{lI()}}}function i$(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)i$(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const K_=new WeakMap,Xc=Symbol(""),kC=Symbol(""),Jv=Symbol("");function ai(e,t,n){if(Ma&&$n){let r=K_.get(e);r||K_.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new gb),i.map=r,i.key=n),i.track()}}function Ws(e,t,n,r,i,o){const a=K_.get(e);if(!a){qv++;return}const s=l=>{l&&l.trigger()};if(sI(),t==="clear")a.forEach(s);else{const l=Je(e),u=l&&pb(n);if(l&&n==="length"){const c=Number(r);a.forEach((f,d)=>{(d==="length"||d===Jv||!Pi(d)&&d>=c)&&s(f)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(Jv)),t){case"add":l?u&&s(a.get("length")):(s(a.get(Xc)),Wc(e)&&s(a.get(kC)));break;case"delete":l||(s(a.get(Xc)),Wc(e)&&s(a.get(kC)));break;case"set":Wc(e)&&s(a.get(Xc));break}}lI()}function uZ(e,t){const n=K_.get(e);return n&&n.get(t)}function Yf(e){const t=sn(e);return t===e?t:(ai(t,"iterate",Jv),Eo(e)?t:t.map(si))}function mb(e){return ai(e=sn(e),"iterate",Jv),e}const cZ={__proto__:null,[Symbol.iterator](){return cx(this,Symbol.iterator,si)},concat(...e){return Yf(this).concat(...e.map(t=>Je(t)?Yf(t):t))},entries(){return cx(this,"entries",e=>(e[1]=si(e[1]),e))},every(e,t){return Os(this,"every",e,t,void 0,arguments)},filter(e,t){return Os(this,"filter",e,t,n=>n.map(si),arguments)},find(e,t){return Os(this,"find",e,t,si,arguments)},findIndex(e,t){return Os(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Os(this,"findLast",e,t,si,arguments)},findLastIndex(e,t){return Os(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Os(this,"forEach",e,t,void 0,arguments)},includes(...e){return fx(this,"includes",e)},indexOf(...e){return fx(this,"indexOf",e)},join(e){return Yf(this).join(e)},lastIndexOf(...e){return fx(this,"lastIndexOf",e)},map(e,t){return Os(this,"map",e,t,void 0,arguments)},pop(){return Qh(this,"pop")},push(...e){return Qh(this,"push",e)},reduce(e,...t){return OM(this,"reduce",e,t)},reduceRight(e,...t){return OM(this,"reduceRight",e,t)},shift(){return Qh(this,"shift")},some(e,t){return Os(this,"some",e,t,void 0,arguments)},splice(...e){return Qh(this,"splice",e)},toReversed(){return Yf(this).toReversed()},toSorted(e){return Yf(this).toSorted(e)},toSpliced(...e){return Yf(this).toSpliced(...e)},unshift(...e){return Qh(this,"unshift",e)},values(){return cx(this,"values",si)}};function cx(e,t,n){const r=mb(e),i=r[t]();return r!==e&&!Eo(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const fZ=Array.prototype;function Os(e,t,n,r,i,o){const a=mb(e),s=a!==e&&!Eo(e),l=a[t];if(l!==fZ[t]){const f=l.apply(e,o);return s?si(f):f}let u=n;a!==e&&(s?u=function(f,d){return n.call(this,si(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 OM(e,t,n,r){const i=mb(e);let o=n;return i!==e&&(Eo(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,si(s),l,e)}),i[t](o,...r)}function fx(e,t,n){const r=sn(e);ai(r,"iterate",Jv);const i=r[t](...n);return(i===-1||i===!1)&&bb(n[0])?(n[0]=sn(n[0]),r[t](...n)):i}function Qh(e,t,n=[]){Fu(),sI();const r=sn(e)[t].apply(e,n);return lI(),$u(),r}const dZ=Nr("__proto__,__v_isRef,__isVue"),o$=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pi));function hZ(e){Pi(e)||(e=String(e));const t=sn(this);return ai(t,"has",e),t.hasOwnProperty(e)}class a${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?d$:f$:o?c$:u$).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Je(t);if(!i){let l;if(a&&(l=cZ[n]))return l;if(n==="hasOwnProperty")return hZ}const s=Reflect.get(t,n,st(t)?t:r);return(Pi(n)?o$.has(n):dZ(n))||(i||ai(t,"get",n),o)?s:st(s)?a&&pb(n)?s:s.value:vn(s)?i?jg(s):Na(s):s}}class s$ extends a${constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];if(!this._isShallow){const l=Tu(o);if(!Eo(r)&&!Tu(r)&&(o=sn(o),r=sn(r)),!Je(t)&&st(o)&&!st(r))return l?!1:(o.value=r,!0)}const a=Je(t)&&pb(n)?Number(n)<t.length:cn(t,n),s=Reflect.set(t,n,r,st(t)?t:i);return t===sn(i)&&(a?oi(r,o)&&Ws(t,"set",n,r):Ws(t,"add",n,r)),s}deleteProperty(t,n){const r=cn(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&Ws(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Pi(n)||!o$.has(n))&&ai(t,"has",n),r}ownKeys(t){return ai(t,"iterate",Je(t)?"length":Xc),Reflect.ownKeys(t)}}class l$ extends a${constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const pZ=new s$,vZ=new l$,gZ=new s$(!0),mZ=new l$(!0),FC=e=>e,gy=e=>Reflect.getPrototypeOf(e);function yZ(e,t,n){return function(...r){const i=this.__v_raw,o=sn(i),a=Wc(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=i[e](...r),c=n?FC:t?$C:si;return!t&&ai(o,"iterate",l?kC:Xc),{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 my(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function _Z(e,t){const n={get(i){const o=this.__v_raw,a=sn(o),s=sn(i);e||(oi(i,s)&&ai(a,"get",i),ai(a,"get",s));const{has:l}=gy(a),u=t?FC:e?$C:si;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&&ai(sn(i),"iterate",Xc),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,a=sn(o),s=sn(i);return e||(oi(i,s)&&ai(a,"has",i),ai(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?FC:e?$C:si;return!e&&ai(l,"iterate",Xc),s.forEach((c,f)=>i.call(o,u(c),u(f),a))}};return Qt(n,e?{add:my("add"),set:my("set"),delete:my("delete"),clear:my("clear")}:{add(i){!t&&!Eo(i)&&!Tu(i)&&(i=sn(i));const o=sn(this);return gy(o).has.call(o,i)||(o.add(i),Ws(o,"add",i,i)),this},set(i,o){!t&&!Eo(o)&&!Tu(o)&&(o=sn(o));const a=sn(this),{has:s,get:l}=gy(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?oi(o,c)&&Ws(a,"set",i,o):Ws(a,"add",i,o),this},delete(i){const o=sn(this),{has:a,get:s}=gy(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&&Ws(o,"delete",i,void 0),u},clear(){const i=sn(this),o=i.size!==0,a=i.clear();return o&&Ws(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=yZ(i,e,t)}),n}function yb(e,t){const n=_Z(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 bZ={get:yb(!1,!1)},SZ={get:yb(!1,!0)},wZ={get:yb(!0,!1)},xZ={get:yb(!0,!0)},u$=new WeakMap,c$=new WeakMap,f$=new WeakMap,d$=new WeakMap;function TZ(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function CZ(e){return e.__v_skip||!Object.isExtensible(e)?0:TZ($5(e))}function Na(e){return Tu(e)?e:_b(e,!1,pZ,bZ,u$)}function cI(e){return _b(e,!1,gZ,SZ,c$)}function jg(e){return _b(e,!0,vZ,wZ,f$)}function EZ(e){return _b(e,!0,mZ,xZ,d$)}function _b(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=CZ(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function vu(e){return Tu(e)?vu(e.__v_raw):!!(e&&e.__v_isReactive)}function Tu(e){return!!(e&&e.__v_isReadonly)}function Eo(e){return!!(e&&e.__v_isShallow)}function bb(e){return e?!!e.__v_raw:!1}function sn(e){const t=e&&e.__v_raw;return t?sn(t):e}function h$(e){return!cn(e,"__v_skip")&&Object.isExtensible(e)&&eI(e,"__v_skip",!0),e}const si=e=>vn(e)?Na(e):e,$C=e=>vn(e)?jg(e):e;function st(e){return e?e.__v_isRef===!0:!1}function ke(e){return p$(e,!1)}function Af(e){return p$(e,!0)}function p$(e,t){return st(e)?e:new AZ(e,t)}class AZ{constructor(t,n){this.dep=new gb,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:sn(t),this._value=n?t:si(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Eo(t)||Tu(t);t=r?t:sn(t),oi(t,n)&&(this._rawValue=t,this._value=r?t:si(t),this.dep.trigger())}}function BC(e){e.dep&&e.dep.trigger()}function N(e){return st(e)?e.value:e}function IZ(e){return bt(e)?e():N(e)}const RZ={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 fI(e){return vu(e)?e:new Proxy(e,RZ)}class PZ{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new gb,{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 dI(e){return new PZ(e)}function OZ(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=g$(e,n);return t}class MZ{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 uZ(sn(this._object),this._key)}}class DZ{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 v$(e,t,n){return st(e)?e:bt(e)?new DZ(e):vn(e)&&arguments.length>1?g$(e,t,n):ke(e)}function g$(e,t,n){const r=e[t];return st(r)?r:new MZ(e,t,n)}class LZ{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new gb(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qv-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 Q5(this,!0),!0}get value(){const t=this.dep.track();return n$(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function NZ(e,t,n=!1){let r,i;return bt(e)?r=e:(r=e.get,i=e.set),new LZ(r,i,n)}const kZ={GET:"get",HAS:"has",ITERATE:"iterate"},FZ={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},yy={},Z_=new WeakMap;let Kl;function $Z(){return Kl}function m$(e,t=!1,n=Kl){if(n){let r=Z_.get(n);r||Z_.set(n,r=[]),r.push(e)}}function BZ(e,t,n=Jt){const{immediate:r,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=n,u=S=>i?S:Eo(S)||i===!1||i===0?js(S,1):js(S);let c,f,d,h,v=!1,m=!1;if(st(e)?(f=()=>e.value,v=Eo(e)):vu(e)?(f=()=>u(e),v=!0):Je(e)?(m=!0,v=e.some(S=>vu(S)||Eo(S)),f=()=>e.map(S=>{if(st(S))return S.value;if(vu(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){Fu();try{d()}finally{$u()}}const S=Kl;Kl=c;try{return l?l(e,3,[h]):e(h)}finally{Kl=S}}:f=Lr,t&&i){const S=f,C=i===!0?1/0:i;f=()=>js(S(),C)}const y=oI(),_=()=>{c.stop(),y&&y.active&&db(y.effects,c)};if(o&&t){const S=t;t=(...C)=>{S(...C),_()}}let b=m?new Array(e.length).fill(yy):yy;const w=S=>{if(!(!(c.flags&1)||!c.dirty&&!S))if(t){const C=c.run();if(i||v||(m?C.some((T,A)=>oi(T,b[A])):oi(C,b))){d&&d();const T=Kl;Kl=c;try{const A=[C,b===yy?void 0:m&&b[0]===yy?[]:b,h];l?l(t,3,A):t(...A),b=C}finally{Kl=T}}}else c.run()};return s&&s(w),c=new Zv(f),c.scheduler=a?()=>a(w,!1):w,h=S=>m$(S,!1,c),d=c.onStop=()=>{const S=Z_.get(c);if(S){if(l)l(S,4);else for(const C of S)C();Z_.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 js(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))js(e.value,t,n);else if(Je(e))for(let r=0;r<e.length;r++)js(e[r],t,n);else if(Nu(e)||Wc(e))e.forEach(r=>{js(r,t,n)});else if(Gg(e)){for(const r in e)js(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&js(e[r],t,n)}return e}/**
|
||
* @vue/runtime-core v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const y$=[];function VZ(e){y$.push(e)}function UZ(){y$.pop()}function HZ(e,t){}const GZ={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"},zZ={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){If(i,t,n)}}function ia(e,t,n,r){if(bt(e)){const i=bh(e,t,n,r);return i&&hb(i)&&i.catch(o=>{If(o,t,n)}),i}if(Je(e)){const i=[];for(let o=0;o<e.length;o++)i.push(ia(e[o],t,n,r));return i}}function If(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Jt;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}s=s.parent}if(o){Fu(),bh(o,null,10,[e,l,u]),$u();return}}WZ(e,n,i,r,a)}function WZ(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Ci=[];let Ja=-1;const Dd=[];let Zl=null,vd=0;const _$=Promise.resolve();let q_=null;function ms(e){const t=q_||_$;return e?t.then(this?e.bind(this):e):t}function jZ(e){let t=Ja+1,n=Ci.length;for(;t<n;){const r=t+n>>>1,i=Ci[r],o=eg(i);o<e||o===e&&i.flags&2?t=r+1:n=r}return t}function hI(e){if(!(e.flags&1)){const t=eg(e),n=Ci[Ci.length-1];!n||!(e.flags&2)&&t>=eg(n)?Ci.push(e):Ci.splice(jZ(t),0,e),e.flags|=1,b$()}}function b$(){q_||(q_=_$.then(S$))}function Qv(e){Je(e)?Dd.push(...e):Zl&&e.id===-1?Zl.splice(vd+1,0,e):e.flags&1||(Dd.push(e),e.flags|=1),b$()}function MM(e,t,n=Ja+1){for(;n<Ci.length;n++){const r=Ci[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ci.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function J_(e){if(Dd.length){const t=[...new Set(Dd)].sort((n,r)=>eg(n)-eg(r));if(Dd.length=0,Zl){Zl.push(...t);return}for(Zl=t,vd=0;vd<Zl.length;vd++){const n=Zl[vd];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Zl=null,vd=0}}const eg=e=>e.id==null?e.flags&2?-1:1/0:e.id;function S$(e){try{for(Ja=0;Ja<Ci.length;Ja++){const t=Ci[Ja];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),bh(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ja<Ci.length;Ja++){const t=Ci[Ja];t&&(t.flags&=-2)}Ja=-1,Ci.length=0,J_(),q_=null,(Ci.length||Dd.length)&&S$()}}let gd,_y=[];function w$(e,t){var n,r;gd=e,gd?(gd.enabled=!0,_y.forEach(({event:i,args:o})=>gd.emit(i,...o)),_y=[]):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=>{w$(o,t)}),setTimeout(()=>{gd||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_y=[])},3e3)):_y=[]}let Cr=null,Sb=null;function tg(e){const t=Cr;return Cr=e,Sb=e&&e.type.__scopeId||null,t}function YZ(e){Sb=e}function XZ(){Sb=null}const KZ=e=>Dr;function Dr(e,t=Cr,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&YC(-1);const o=tg(t);let a;try{a=e(...i)}finally{tg(o),r._d&&YC(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function _t(e,t){if(Cr===null)return e;const n=Zg(Cr),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,a,s,l=Jt]=t[i];o&&(bt(o)&&(o={mounted:o,updated:o}),o.deep&&js(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function es(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[r];l&&(Fu(),ia(l,n,8,[e.el,s,e,t]),$u())}}const x$=Symbol("_vte"),T$=e=>e.__isTeleport,av=e=>e&&(e.disabled||e.disabled===""),DM=e=>e&&(e.defer||e.defer===""),LM=e=>typeof SVGElement<"u"&&e instanceof SVGElement,NM=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,VC=(e,t)=>{const n=e&&e.to;return It(n)?t?t(n):null:n},C$={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,_=av(t.props);let{shapeFlag:b,children:w,dynamicChildren:S}=t;if(e==null){const C=t.el=m(""),T=t.anchor=m("");h(C,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=VC(t.props,v),R=E$(I,t,m,h);I&&(a!=="svg"&&LM(I)?a="svg":a!=="mathml"&&NM(I)&&(a="mathml"),_||(A(I,R),z0(t,!1)))};_&&(A(n,T),z0(t,!0)),DM(t.props)?xr(()=>{P(),t.el.__isMounted=!0},o):P()}else{if(DM(t.props)&&!e.el.__isMounted){xr(()=>{C$.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 C=t.anchor=e.anchor,T=t.target=e.target,A=t.targetAnchor=e.targetAnchor,P=av(e.props),I=P?n:T,R=P?C:A;if(a==="svg"||LM(T)?a="svg":(a==="mathml"||NM(T))&&(a="mathml"),S?(d(e.dynamicChildren,S,I,i,o,a,s),TI(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):by(t,n,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const O=t.target=VC(t.props,v);O&&by(t,O,null,u,0)}else P&&by(t,T,A,u,1);z0(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||!av(d);for(let v=0;v<s.length;v++){const m=s[v];r(m,t,n,h,!!m.dynamicChildren)}}},move:by,hydrate:ZZ};function by(e,t,n,{o:{insert:r},m:i},o=2){o===0&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:c}=e,f=o===2;if(f&&r(a,t,n),(!f||av(c))&&l&16)for(let d=0;d<u.length;d++)i(u[d],t,n,2);f&&r(s,t,n)}function ZZ(e,t,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:u,createText:c}},f){const d=t.target=VC(t.props,l);if(d){const h=av(t.props),v=d._lpa||d.firstChild;if(t.shapeFlag&16)if(h)t.anchor=f(a(e),t,s(e),n,r,i,o),t.targetStart=v,t.targetAnchor=v&&a(v);else{t.anchor=a(e);let m=v;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")t.targetStart=m;else if(m.data==="teleport anchor"){t.targetAnchor=m,d._lpa=t.targetAnchor&&a(t.targetAnchor);break}}m=a(m)}t.targetAnchor||E$(d,t,c,u),f(v&&a(v),t,d,n,r,i,o)}z0(t,h)}return t.anchor&&a(t.anchor)}const qZ=C$;function z0(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function E$(e,t,n,r){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[x$]=o,e&&(r(i,e),r(o,e)),o}const ql=Symbol("_leaveCb"),Sy=Symbol("_enterCb");function pI(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return lo(()=>{e.isMounted=!0}),Xg(()=>{e.isUnmounting=!0}),e}const Uo=[Function,Array],vI={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Uo,onEnter:Uo,onAfterEnter:Uo,onEnterCancelled:Uo,onBeforeLeave:Uo,onLeave:Uo,onAfterLeave:Uo,onLeaveCancelled:Uo,onBeforeAppear:Uo,onAppear:Uo,onAfterAppear:Uo,onAppearCancelled:Uo},A$=e=>{const t=e.subTree;return t.component?A$(t.component):t},JZ={name:"BaseTransition",props:vI,setup(e,{slots:t}){const n=br(),r=pI();return()=>{const i=t.default&&wb(t.default(),!0);if(!i||!i.length)return;const o=I$(i),a=sn(e),{mode:s}=a;if(r.isLeaving)return dx(o);const l=kM(o);if(!l)return dx(o);let u=Xd(l,a,r,n,f=>u=f);l.type!==yr&&ll(l,u);let c=n.subTree&&kM(n.subTree);if(c&&c.type!==yr&&!Aa(l,c)&&A$(n).type!==yr){let f=Xd(c,a,r,n);if(ll(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},dx(o);s==="in-out"&&l.type!==yr?f.delayLeave=(d,h,v)=>{const m=P$(r,c);m[String(c.key)]=c,d[ql]=()=>{h(),d[ql]=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 I$(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==yr){t=n;break}}return t}const R$=JZ;function P$(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),C=P$(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(D=>D.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[ql]&&I[ql](!0);const O=C[S];O&&Aa(e,O)&&O.el[ql]&&O.el[ql](),T(R,[I])},enter(I){let R=u,O=c,D=f;if(!n.isMounted)if(o)R=_||u,O=b||c,D=w||f;else return;let $=!1;const F=I[Sy]=z=>{$||($=!0,z?T(D,[I]):T(O,[I]),P.delayedLeave&&P.delayedLeave(),I[Sy]=void 0)};R?A(R,[I,F]):F()},leave(I,R){const O=String(e.key);if(I[Sy]&&I[Sy](!0),n.isUnmounting)return R();T(d,[I]);let D=!1;const $=I[ql]=F=>{D||(D=!0,R(),F?T(m,[I]):T(v,[I]),I[ql]=void 0,C[O]===e&&delete C[O])};C[O]=e,h?A(h,[I,$]):$()},clone(I){const R=Xd(I,t,n,r,i);return i&&i(R),R}};return P}function dx(e){if(Yg(e))return e=fs(e),e.children=null,e}function kM(e){if(!Yg(e))return T$(e.type)&&e.children?I$(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 ll(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ll(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 wb(e,t=!1,n){let r=[],i=0;for(let o=0;o<e.length;o++){let a=e[o];const s=n==null?a.key:String(n)+String(a.key!=null?a.key:o);a.type===Xe?(a.patchFlag&128&&i++,r=r.concat(wb(a.children,t,s))):(t||a.type!==yr)&&r.push(s!=null?fs(a,{key:s}):a)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function rt(e,t){return bt(e)?Qt({name:e.name},t,{setup:e}):e}function QZ(){const e=br();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function gI(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function eq(e){const t=br(),n=Af(null);if(t){const i=t.refs===Jt?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}function ng(e,t,n,r,i=!1){if(Je(e)){e.forEach((v,m)=>ng(v,t&&(Je(t)?t[m]:t),n,r,i));return}if(gu(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ng(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Zg(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&&(It(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=It(l),m=st(l);if(v||m){const y=()=>{if(e.f){const _=v?h(l)?f[l]:c[l]:l.value;i?Je(_)&&db(_,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 FM=!1;const Xf=()=>{FM||(console.error("Hydration completed but contains mismatches."),FM=!0)},tq=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",nq=e=>e.namespaceURI.includes("MathML"),wy=e=>{if(e.nodeType===1){if(tq(e))return"svg";if(nq(e))return"mathml"}},Cd=e=>e.nodeType===8;function rq(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),J_(),S._vnode=w;return}f(S.firstChild,w,null,null,null),J_(),S._vnode=w},f=(w,S,C,T,A,P=!1)=>{P=P||!!S.dynamicChildren;const I=Cd(w)&&w.data==="[",R=()=>m(w,S,C,T,A,I),{type:O,ref:D,shapeFlag:$,patchFlag:F}=S;let z=w.nodeType;S.el=w,F===-2&&(P=!1,S.dynamicChildren=null);let B=null;switch(O){case tl:z!==3?S.children===""?(l(S.el=i(""),a(w),w),B=w):B=R():(w.data!==S.children&&(Xf(),w.data=S.children),B=o(w));break;case yr:b(w)?(B=o(w),_(S.el=w.content.firstChild,w,C)):z!==8||I?B=R():B=o(w);break;case Zc:if(I&&(w=o(w),z=w.nodeType),z===1||z===3){B=w;const Y=!S.children.length;for(let j=0;j<S.staticCount;j++)Y&&(S.children+=B.nodeType===1?B.outerHTML:B.data),j===S.staticCount-1&&(S.anchor=B),B=o(B);return I?o(B):B}else R();break;case Xe:I?B=v(w,S,C,T,A,P):B=R();break;default:if($&1)(z!==1||S.type.toLowerCase()!==w.tagName.toLowerCase())&&!b(w)?B=R():B=d(w,S,C,T,A,P);else if($&6){S.slotScopeIds=A;const Y=a(w);if(I?B=y(w):Cd(w)&&w.data==="teleport start"?B=y(w,w.data,"teleport end"):B=o(w),t(S,Y,null,C,T,wy(Y),P),gu(S)&&!S.type.__asyncResolved){let j;I?(j=ye(Xe),j.anchor=B?B.previousSibling:Y.lastChild):j=w.nodeType===3?lt(""):ye("div"),j.el=w,S.component.subTree=j}}else $&64?z!==8?B=R():B=S.type.hydrate(w,S,C,T,A,P,e,h):$&128&&(B=S.type.hydrate(w,S,C,T,wy(a(w)),A,P,e,f))}return D!=null&&ng(D,null,T,S),B},d=(w,S,C,T,A,P)=>{P=P||!!S.dynamicChildren;const{type:I,props:R,patchFlag:O,shapeFlag:D,dirs:$,transition:F}=S,z=I==="input"||I==="option";if(z||O!==-1){$&&es(S,null,C,"created");let B=!1;if(b(w)){B=t4(null,F)&&C&&C.vnode.props&&C.vnode.props.appear;const j=w.content.firstChild;B&&F.beforeEnter(j),_(j,w,C),S.el=w=j}if(D&16&&!(R&&(R.innerHTML||R.textContent))){let j=h(w.firstChild,S,w,C,T,A,P);for(;j;){xy(w,1)||Xf();const se=j;j=j.nextSibling,s(se)}}else if(D&8){let j=S.children;j[0]===`
|
||
`&&(w.tagName==="PRE"||w.tagName==="TEXTAREA")&&(j=j.slice(1)),w.textContent!==j&&(xy(w,0)||Xf(),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")||Lu(se)&&!el(se)||se[0]==="."||j)&&r(w,se,null,R[se],void 0,C)}else if(R.onClick)r(w,"onClick",null,R.onClick,void 0,C);else if(O&4&&vu(R.style))for(const j in R.style)R.style[j]}let Y;(Y=R&&R.onVnodeBeforeMount)&&Gi(Y,C,S),$&&es(S,null,C,"beforeMount"),((Y=R&&R.onVnodeMounted)||$||B)&&c4(()=>{Y&&Gi(Y,C,S),B&&F.enter(w),$&&es(S,null,C,"mounted")},T)}return w.nextSibling},h=(w,S,C,T,A,P,I)=>{I=I||!!S.dynamicChildren;const R=S.children,O=R.length;for(let D=0;D<O;D++){const $=I?R[D]:R[D]=ji(R[D]),F=$.type===tl;w?(F&&!I&&D+1<O&&ji(R[D+1]).type===tl&&(l(i(w.data.slice($.children.length)),C,o(w)),w.data=$.children),w=f(w,$,T,A,P,I)):F&&!$.children?l($.el=i(""),C):(xy(C,1)||Xf(),n(null,$,C,null,T,A,wy(C),P))}return w},v=(w,S,C,T,A,P)=>{const{slotScopeIds:I}=S;I&&(A=A?A.concat(I):I);const R=a(w),O=h(o(w),S,R,C,T,A,P);return O&&Cd(O)&&O.data==="]"?o(S.anchor=O):(Xf(),l(S.anchor=u("]"),R,O),O)},m=(w,S,C,T,A,P)=>{if(xy(w.parentElement,1)||Xf(),S.el=null,P){const O=y(w);for(;;){const D=o(w);if(D&&D!==O)s(D);else break}}const I=o(w),R=a(w);return s(w),n(null,S,R,I,C,T,wy(R),A),C&&(C.vnode.el=S.el,Ab(C,S.el)),I},y=(w,S="[",C="]")=>{let T=0;for(;w;)if(w=o(w),w&&Cd(w)&&(w.data===S&&T++,w.data===C)){if(T===0)return o(w);T--}return w},_=(w,S,C)=>{const T=S.parentNode;T&&T.replaceChild(w,S);let A=C;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 $M="data-allow-mismatch",iq={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function xy(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute($M);)e=e.parentElement;const n=e&&e.getAttribute($M);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(iq[t])}}const oq=zg().requestIdleCallback||(e=>setTimeout(e,1)),aq=zg().cancelIdleCallback||(e=>clearTimeout(e)),sq=(e=1e4)=>t=>{const n=oq(t,{timeout:e});return()=>aq(n)};function lq(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:a}=window;return(t>0&&t<o||r>0&&r<o)&&(n>0&&n<a||i>0&&i<a)}const uq=e=>(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(lq(i))return t(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},cq=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},fq=(e=[])=>(t,n)=>{It(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 dq(e,t){if(Cd(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Cd(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const gu=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function hq(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 rt({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(v,m,y){const _=o?()=>{const b=o(y,w=>dq(v,w));b&&(m.bum||(m.bum=[])).push(b)}:y;c?_():h().then(()=>!m.isUnmounted&&_())},get __asyncResolved(){return c},setup(){const v=Tr;if(gI(v),c)return()=>hx(c,v);const m=w=>{u=null,If(w,v,13,!r)};if(s&&v.suspense||Kd)return h().then(w=>()=>hx(w,v)).catch(w=>(m(w),()=>r?ye(r,{error:w}):null));const y=ke(!1),_=ke(),b=ke(!!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&&Yg(v.parent.vnode)&&v.parent.update()}).catch(w=>{m(w),_.value=w}),()=>{if(y.value&&c)return hx(c,v);if(_.value&&r)return ye(r,{error:_.value});if(n&&!b.value)return ye(n)}}})}function hx(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 Yg=e=>e.type.__isKeepAlive,pq={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,C,T)=>{const A=b.component;u(b,w,S,0,s),l(A.vnode,b,w,S,A,s,C,b.slotScopeIds,T),xr(()=>{A.isDeactivated=!1,A.a&&Yc(A.a);const P=b.props&&b.props.onVnodeMounted;P&&Gi(P,A.parent,b)},s)},r.deactivate=b=>{const w=b.component;e1(w.m),e1(w.a),u(b,d,null,1,s),xr(()=>{w.da&&Yc(w.da);const S=b.props&&b.props.onVnodeUnmounted;S&&Gi(S,w.parent,b),w.isDeactivated=!0},s)};function h(b){px(b),c(b,n,s,!0)}function v(b){i.forEach((w,S)=>{const C=JC(w.type);C&&!b(C)&&m(S)})}function m(b){const w=i.get(b);w&&(!a||!Aa(w,a))?h(w):a&&px(a),i.delete(b),o.delete(b)}Wt(()=>[e.include,e.exclude],([b,w])=>{b&&v(S=>Vp(b,S)),w&&v(S=>!Vp(w,S))},{flush:"post",deep:!0});let y=null;const _=()=>{y!=null&&(t1(n.subTree.type)?xr(()=>{i.set(y,Ty(n.subTree))},n.subTree.suspense):i.set(y,Ty(n.subTree)))};return lo(_),Tb(_),Xg(()=>{i.forEach(b=>{const{subTree:w,suspense:S}=n,C=Ty(w);if(b.type===C.type&&b.key===C.key){px(C);const T=C.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(!ul(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return a=null,w;let S=Ty(w);if(S.type===yr)return a=null,S;const C=S.type,T=JC(gu(S)?S.type.__asyncResolved||{}:C),{include:A,exclude:P,max:I}=e;if(A&&(!T||!Vp(A,T))||P&&T&&Vp(P,T))return S.shapeFlag&=-257,a=S,w;const R=S.key==null?C:S.key,O=i.get(R);return S.el&&(S=fs(S),w.shapeFlag&128&&(w.ssContent=S)),y=R,O?(S.el=O.el,S.component=O.component,S.transition&&ll(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,t1(w.type)?w:S}}},vq=pq;function Vp(e,t){return Je(e)?e.some(n=>Vp(n,t)):It(e)?e.split(",").includes(t):F5(e)?(e.lastIndex=0,e.test(t)):!1}function O$(e,t){D$(e,"a",t)}function M$(e,t){D$(e,"da",t)}function D$(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(xb(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Yg(i.parent.vnode)&&gq(r,t,n,i),i=i.parent}}function gq(e,t,n,r){const i=xb(t,e,r,!0);Sh(()=>{db(r[t],i)},n)}function px(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ty(e){return e.shapeFlag&128?e.ssContent:e}function xb(e,t,n=Tr,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Fu();const s=cf(n),l=ia(t,n,e,a);return s(),$u(),l});return r?i.unshift(o):i.push(o),o}}const ml=e=>(t,n=Tr)=>{(!Kd||e==="sp")&&xb(e,(...r)=>t(...r),n)},L$=ml("bm"),lo=ml("m"),mI=ml("bu"),Tb=ml("u"),Xg=ml("bum"),Sh=ml("um"),N$=ml("sp"),k$=ml("rtg"),F$=ml("rtc");function $$(e,t=Tr){xb("ec",e,t)}const yI="components",mq="directives";function yq(e,t){return _I(yI,e,!0,t)||e}const B$=Symbol.for("v-ndc");function cs(e){return It(e)?_I(yI,e,!1)||e:e||B$}function _q(e){return _I(mq,e)}function _I(e,t,n=!0,r=!1){const i=Cr||Tr;if(i){const o=i.type;if(e===yI){const s=JC(o,!1);if(s&&(s===t||s===Bn(t)||s===ku(Bn(t))))return o}const a=BM(i[e]||o[e],t)||BM(i.appContext[e],t);return!a&&r?o:a}}function BM(e,t){return e&&(e[t]||e[Bn(t)]||e[ku(Bn(t))])}function rn(e,t,n,r){let i;const o=n&&n[r],a=Je(e);if(a||It(e)){const s=a&&vu(e);let l=!1;s&&(l=!Eo(e),e=mb(e)),i=new Array(e.length);for(let u=0,c=e.length;u<c;u++)i[u]=t(l?si(e[u]):e[u],u,void 0,o&&o[u])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,o&&o[s])}else if(vn(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(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<u;l++){const c=s[l];i[l]=t(e[c],c,l,o&&o[l])}}else i=[];return n&&(n[r]=i),i}function bq(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Je(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return e}function Ld(e,t,n={},r,i){if(Cr.ce||Cr.parent&&gu(Cr.parent)&&Cr.parent.ce)return t!=="default"&&(n.name=t),K(),At(Xe,null,[ye("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),K();const a=o&&bI(o(n)),s=n.key||a&&a.key,l=At(Xe,{key:(s&&!Pi(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 bI(e){return e.some(t=>ul(t)?!(t.type===yr||t.type===Xe&&!bI(t.children)):!0)?e:null}function Sq(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:jc(r)]=e[r];return n}const UC=e=>e?m4(e)?Zg(e):UC(e.parent):null,sv=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=>UC(e.parent),$root:e=>UC(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>SI(e),$forceUpdate:e=>e.f||(e.f=()=>{hI(e.update)}),$nextTick:e=>e.n||(e.n=ms.bind(e.proxy)),$watch:e=>qq.bind(e)}),vx=(e,t)=>e!==Jt&&!e.__isScriptSetup&&cn(e,t),HC={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(vx(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];GC&&(a[t]=0)}}const c=sv[t];let f,d;if(c)return t==="$attrs"&&ai(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 vx(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)||vx(t,a)||(s=o[0])&&cn(s,a)||cn(r,a)||cn(sv,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)}},wq=Qt({},HC,{get(e,t){if(t!==Symbol.unscopables)return HC.get(e,t,e)},has(e,t){return t[0]!=="_"&&!tI(t)}});function xq(){return null}function Tq(){return null}function Cq(e){}function Eq(e){}function Aq(){return null}function Iq(){}function Rq(e,t){return null}function Pq(){return V$().slots}function Oq(){return V$().attrs}function V$(){const e=br();return e.setupContext||(e.setupContext=b4(e))}function rg(e){return Je(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Mq(e,t){const n=rg(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 Dq(e,t){return!e||!t?e||t:Je(e)&&Je(t)?e.concat(t):Qt({},rg(e),rg(t))}function Lq(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Nq(e){const t=br();let n=e();return KC(),hb(n)&&(n=n.catch(r=>{throw cf(t),r})),[n,()=>cf(t)]}let GC=!0;function kq(e){const t=SI(e),n=e.proxy,r=e.ctx;GC=!1,t.beforeCreate&&VM(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:C,renderTracked:T,renderTriggered:A,errorCaptured:P,serverPrefetch:I,expose:R,inheritAttrs:O,components:D,directives:$,filters:F}=t;if(u&&Fq(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=Na(Y))}if(GC=!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:Me=>ve.value=Me})}if(s)for(const Y in s)U$(s[Y],r,n,Y);if(l){const Y=bt(l)?l.call(n):l;Reflect.ownKeys(Y).forEach(j=>{lv(j,Y[j])})}c&&VM(c,e,"c");function B(Y,j){Je(j)?j.forEach(se=>Y(se.bind(n))):j&&Y(j.bind(n))}if(B(L$,f),B(lo,d),B(mI,h),B(Tb,v),B(O$,m),B(M$,y),B($$,P),B(F$,T),B(k$,A),B(Xg,b),B(Sh,S),B(N$,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={});C&&e.render===Lr&&(e.render=C),O!=null&&(e.inheritAttrs=O),D&&(e.components=D),$&&(e.directives=$),I&&gI(e)}function Fq(e,t,n=Lr){Je(e)&&(e=zC(e));for(const r in e){const i=e[r];let o;vn(i)?"default"in i?o=Ji(i.from||r,i.default,!0):o=Ji(i.from||r):o=Ji(i),st(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function VM(e,t,n){ia(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function U$(e,t,n,r){let i=r.includes(".")?a4(n,r):()=>n[r];if(It(e)){const o=t[e];bt(o)&&Wt(i,o)}else if(bt(e))Wt(i,e.bind(n));else if(vn(e))if(Je(e))e.forEach(o=>U$(o,t,n,r));else{const o=bt(e.handler)?e.handler.bind(n):t[e.handler];bt(o)&&Wt(i,o,e)}}function SI(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=>Q_(l,u,a,!0)),Q_(l,t,a)),vn(t)&&o.set(t,l),l}function Q_(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&Q_(e,o,n,!0),i&&i.forEach(a=>Q_(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=$q[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const $q={data:UM,props:HM,emits:HM,methods:Up,computed:Up,beforeCreate:bi,created:bi,beforeMount:bi,mounted:bi,beforeUpdate:bi,updated:bi,beforeDestroy:bi,beforeUnmount:bi,destroyed:bi,unmounted:bi,activated:bi,deactivated:bi,errorCaptured:bi,serverPrefetch:bi,components:Up,directives:Up,watch:Vq,provide:UM,inject:Bq};function UM(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 Bq(e,t){return Up(zC(e),zC(t))}function zC(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function bi(e,t){return e?[...new Set([].concat(e,t))]:t}function Up(e,t){return e?Qt(Object.create(null),e,t):t}function HM(e,t){return e?Je(e)&&Je(t)?[...new Set([...e,...t])]:Qt(Object.create(null),rg(e),rg(t??{})):t}function Vq(e,t){if(!e)return t;if(!t)return e;const n=Qt(Object.create(null),e);for(const r in t)n[r]=bi(e[r],t[r]);return n}function H$(){return{app:null,config:{isNativeTag:Td,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Uq=0;function Hq(e,t){return function(r,i=null){bt(r)||(r=Qt({},r)),i!=null&&!vn(i)&&(i=null);const o=H$(),a=new WeakSet,s=[];let l=!1;const u=o.app={_uid:Uq++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:w4,get config(){return o.config},set config(c){},use(c,...f){return a.has(c)||(c&&bt(c.install)?(a.add(c),c.install(u,...f)):bt(c)&&(a.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,d){if(!l){const h=u._ceVNode||ye(r,i);return h.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,c):e(h,c,d),l=!0,u._container=c,c.__vue_app__=u,Zg(h.component)}},onUnmount(c){s.push(c)},unmount(){l&&(ia(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=Kc;Kc=u;try{return c()}finally{Kc=f}}};return u}}let Kc=null;function lv(e,t){if(Tr){let n=Tr.provides;const r=Tr.parent&&Tr.parent.provides;r===n&&(n=Tr.provides=Object.create(r)),n[e]=t}}function Ji(e,t,n=!1){const r=Tr||Cr;if(r||Kc){const i=Kc?Kc._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&bt(t)?t.call(r&&r.proxy):t}}function wI(){return!!(Tr||Cr||Kc)}const G$={},z$=()=>Object.create(G$),W$=e=>Object.getPrototypeOf(e)===G$;function Gq(e,t,n,r=!1){const i={},o=z$();e.propsDefaults=Object.create(null),j$(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:cI(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function zq(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<c.length;f++){let d=c[f];if(Eb(e.emitsOptions,d))continue;const h=t[d];if(l)if(cn(o,d))h!==o[d]&&(o[d]=h,u=!0);else{const v=Bn(d);i[v]=WC(l,s,v,h,e,!1)}else h!==o[d]&&(o[d]=h,u=!0)}}}else{j$(e,t,i,o)&&(u=!0);let c;for(const f in s)(!t||!cn(t,f)&&((c=li(f))===f||!cn(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=WC(l,s,f,void 0,e,!0)):delete i[f]);if(o!==s)for(const f in o)(!t||!cn(t,f))&&(delete o[f],u=!0)}u&&Ws(e.attrs,"set","")}function j$(e,t,n,r){const[i,o]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(el(l))continue;const u=t[l];let c;i&&cn(i,c=Bn(l))?!o||!o.includes(c)?n[c]=u:(s||(s={}))[c]=u:Eb(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,a=!0)}if(o){const l=sn(n),u=s||Jt;for(let c=0;c<o.length;c++){const f=o[c];n[f]=WC(i,l,f,u[f],e,!cn(u,f))}}return a}function WC(e,t,n,r,i,o){const a=e[n];if(a!=null){const s=cn(a,"default");if(s&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&bt(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=cf(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}a[0]&&(o&&!s?r=!1:a[1]&&(r===""||r===li(n))&&(r=!0))}return r}const Wq=new WeakMap;function Y$(e,t,n=!1){const r=n?Wq:t.propsCache,i=r.get(e);if(i)return i;const o=e.props,a={},s=[];let l=!1;if(!bt(e)){const c=f=>{l=!0;const[d,h]=Y$(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,zc),zc;if(Je(o))for(let c=0;c<o.length;c++){const f=Bn(o[c]);GM(f)&&(a[f]=Jt)}else if(o)for(const c in o){const f=Bn(c);if(GM(f)){const d=o[c],h=a[f]=Je(d)||bt(d)?{type:d}:Qt({},d),v=h.type;let m=!1,y=!0;if(Je(v))for(let _=0;_<v.length;++_){const b=v[_],w=bt(b)&&b.name;if(w==="Boolean"){m=!0;break}else w==="String"&&(y=!1)}else m=bt(v)&&v.name==="Boolean";h[0]=m,h[1]=y,(m||cn(h,"default"))&&s.push(f)}}const u=[a,s];return vn(e)&&r.set(e,u),u}function GM(e){return e[0]!=="$"&&!el(e)}const X$=e=>e[0]==="_"||e==="$stable",xI=e=>Je(e)?e.map(ji):[ji(e)],jq=(e,t,n)=>{if(t._n)return t;const r=Dr((...i)=>xI(t(...i)),n);return r._c=!1,r},K$=(e,t,n)=>{const r=e._ctx;for(const i in e){if(X$(i))continue;const o=e[i];if(bt(o))t[i]=jq(i,o,r);else if(o!=null){const a=xI(o);t[i]=()=>a}}},Z$=(e,t)=>{const n=xI(t);e.slots.default=()=>n},q$=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Yq=(e,t,n)=>{const r=e.slots=z$();if(e.vnode.shapeFlag&32){const i=t._;i?(q$(r,t,n),n&&eI(r,"_",i,!0)):K$(t,r)}else t&&Z$(e,t)},Xq=(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:q$(i,t,n):(o=!t.$stable,K$(t,i)),a=t}else t&&(Z$(e,t),a={default:1});if(o)for(const s in i)!X$(s)&&a[s]==null&&delete i[s]},xr=c4;function J$(e){return e4(e)}function Q$(e){return e4(e,rq)}function e4(e,t){const n=zg();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),Me(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 tl:y(H,G,le,we);break;case yr:_(H,G,le,we);break;case Zc:H==null&&b(G,le,we,W);break;case Xe:D(H,G,le,we,pe,U,W,q,fe);break;default:Z&1?C(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&&ng(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)},C=(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,gx(H,U),W,q),Be&&es(H,null,we,"created"),A(fe,H,H.scopeId,W,we),Pe){for(const pt in Pe)pt!=="value"&&!el(pt)&&o(fe,pt,null,Pe[pt],U,we);"value"in Pe&&o(fe,"value",null,Pe.value,U),(_e=Pe.onVnodeBeforeMount)&&Gi(_e,we,H)}Be&&es(H,null,we,"beforeMount");const Ke=t4(pe,de);Ke&&de.beforeEnter(fe),r(fe,G,le),((_e=Pe&&Pe.onVnodeMounted)||Ke||Be)&&xr(()=>{_e&&Gi(_e,we,H),Ke&&de.enter(fe),Be&&es(H,null,we,"mounted")},pe)},A=(H,G,le,we,pe)=>{if(le&&h(H,le),we)for(let U=0;U<we.length;U++)h(H,we[U]);if(pe){let U=pe.subTree;if(G===U||t1(U.type)&&(U.ssContent===G||U.ssFallback===G)){const W=pe.vnode;A(H,W,W.scopeId,W.slotScopeIds,pe.parent)}}},P=(H,G,le,we,pe,U,W,q,fe=0)=>{for(let _e=fe;_e<H.length;_e++){const Pe=H[_e]=q?Jl(H[_e]):ji(H[_e]);m(null,Pe,G,le,we,pe,U,W,q)}},I=(H,G,le,we,pe,U,W)=>{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&&ec(le,!1),(Be=de.onVnodeBeforeUpdate)&&Gi(Be,le,G,H),Pe&&es(G,H,le,"beforeUpdate"),le&&ec(le,!0),(Z.innerHTML&&de.innerHTML==null||Z.textContent&&de.textContent==null)&&c(q,""),_e?R(H.dynamicChildren,_e,q,le,we,gx(G,pe),U):W||j(H,G,q,null,le,we,gx(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 Ke=G.dynamicProps;for(let pt=0;pt<Ke.length;pt++){const ee=Ke[pt],oe=Z[ee],he=de[ee];(he!==oe||ee==="value")&&o(q,ee,oe,he,pe,le)}}fe&1&&H.children!==G.children&&c(q,G.children)}else!W&&_e==null&&O(q,Z,de,le,pe);((Be=de.onVnodeUpdated)||Pe)&&xr(()=>{Be&&Gi(Be,le,G,H),Pe&&es(G,H,le,"updated")},we)},R=(H,G,le,we,pe,U,W)=>{for(let q=0;q<G.length;q++){const fe=H[q],_e=G[q],Pe=fe.el&&(fe.type===Xe||!Aa(fe,_e)||fe.shapeFlag&70)?f(fe.el):le;m(fe,_e,Pe,null,we,pe,U,W,!0)}},O=(H,G,le,we,pe)=>{if(G!==le){if(G!==Jt)for(const U in G)!el(U)&&!(U in le)&&o(H,U,G[U],null,pe,we);for(const U in le){if(el(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)}},D=(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)&&TI(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=g4(H,we,pe);if(Yg(H)&&(q.ctx.renderer=Te),y4(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(rJ(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:Ke,vnode:pt}=H;{const He=n4(H);if(He){Z&&(Z.el=pt.el,Y(H,Z,W)),He.asyncDep.then(()=>{H.isUnmounted||q()});return}}let ee=Z,oe;ec(H,!1),Z?(Z.el=pt.el,Y(H,Z,W)):Z=pt,de&&Yc(de),(oe=Z.props&&Z.props.onVnodeBeforeUpdate)&&Gi(oe,Ke,Z,pt),ec(H,!0);const he=W0(H),Ce=H.subTree;H.subTree=he,m(Ce,he,f(Ce.el),ce(Ce),H,pe,U),Z.el=he.el,ee===null&&Ab(H,he.el),Be&&xr(Be,pe),(oe=Z.props&&Z.props.onVnodeUpdated)&&xr(()=>Gi(oe,Ke,Z,pt),pe)}else{let Z;const{el:de,props:Be}=G,{bm:Ke,m:pt,parent:ee,root:oe,type:he}=H,Ce=gu(G);if(ec(H,!1),Ke&&Yc(Ke),!Ce&&(Z=Be&&Be.onVnodeBeforeMount)&&Gi(Z,ee,G),ec(H,!0),de&&$e){const He=()=>{H.subTree=W0(H),$e(de,H.subTree,H,pe,null)};Ce&&he.__asyncHydrate?he.__asyncHydrate(de,H,He):He()}else{oe.ce&&oe.ce._injectChildStyle(he);const He=H.subTree=W0(H);m(null,He,le,we,H,pe,U),G.el=He.el}if(pt&&xr(pt,pe),!Ce&&(Z=Be&&Be.onVnodeMounted)){const He=G;xr(()=>Gi(Z,ee,He),pe)}(G.shapeFlag&256||ee&&gu(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 Zv(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=()=>hI(Pe),ec(H,!0),_e()},Y=(H,G,le)=>{G.component=H;const we=H.vnode.props;H.vnode=G,H.next=null,zq(H,G.props,we,le),Xq(H,G.children,le),Fu(),MM(H),$u()},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||zc,G=G||zc;const _e=H.length,Pe=G.length,Z=Math.min(_e,Pe);let de;for(de=0;de<Z;de++){const Be=G[de]=fe?Jl(G[de]):ji(G[de]);m(H[de],Be,le,null,pe,U,W,q,fe)}_e>Pe?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],Ke=G[_e]=fe?Jl(G[_e]):ji(G[_e]);if(Aa(Be,Ke))m(Be,Ke,le,null,pe,U,W,q,fe);else break;_e++}for(;_e<=Z&&_e<=de;){const Be=H[Z],Ke=G[de]=fe?Jl(G[de]):ji(G[de]);if(Aa(Be,Ke))m(Be,Ke,le,null,pe,U,W,q,fe);else break;Z--,de--}if(_e>Z){if(_e<=de){const Be=de+1,Ke=Be<Pe?G[Be].el:we;for(;_e<=de;)m(null,G[_e]=fe?Jl(G[_e]):ji(G[_e]),le,Ke,pe,U,W,q,fe),_e++}}else if(_e>de)for(;_e<=Z;)Me(H[_e],pe,U,!0),_e++;else{const Be=_e,Ke=_e,pt=new Map;for(_e=Ke;_e<=de;_e++){const Fe=G[_e]=fe?Jl(G[_e]):ji(G[_e]);Fe.key!=null&&pt.set(Fe.key,_e)}let ee,oe=0;const he=de-Ke+1;let Ce=!1,He=0;const re=new Array(he);for(_e=0;_e<he;_e++)re[_e]=0;for(_e=Be;_e<=Z;_e++){const Fe=H[_e];if(oe>=he){Me(Fe,pe,U,!0);continue}let Qe;if(Fe.key!=null)Qe=pt.get(Fe.key);else for(ee=Ke;ee<=de;ee++)if(re[ee-Ke]===0&&Aa(Fe,G[ee])){Qe=ee;break}Qe===void 0?Me(Fe,pe,U,!0):(re[Qe-Ke]=_e+1,Qe>=He?He=Qe:Ce=!0,m(Fe,G[Qe],le,null,pe,U,W,q,fe),oe++)}const Ae=Ce?Kq(re):zc;for(ee=Ae.length-1,_e=he-1;_e>=0;_e--){const Fe=Ke+_e,Qe=G[Fe],Ge=Fe+1<Pe?G[Fe+1].el:we;re[_e]===0?m(null,Qe,le,Ge,pe,U,W,q,fe):Ce&&(ee<0||_e!==Ae[ee]?ve(Qe,le,Ge,2):ee--)}}},ve=(H,G,le,we,pe=null)=>{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===Xe){r(U,G,le);for(let Z=0;Z<fe.length;Z++)ve(fe[Z],G,le,we);r(H.anchor,G,le);return}if(W===Zc){w(H,G,le);return}if(we!==2&&_e&1&&q)if(we===0)q.beforeEnter(U),r(U,G,le),xr(()=>q.enter(U),pe);else{const{leave:Z,delayLeave:de,afterLeave:Be}=q,Ke=()=>r(U,G,le),pt=()=>{Z(U,()=>{Ke(),Be&&Be()})};de?de(U,Ke,pt):pt()}else r(U,G,le)},Me=(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&&ng(q,null,le,H,!0),Be!=null&&(G.renderCache[Be]=void 0),Pe&256){G.ctx.deactivate(H);return}const Ke=Pe&1&&de,pt=!gu(H);let ee;if(pt&&(ee=W&&W.onVnodeBeforeUnmount)&&Gi(ee,G,H),Pe&6)De(H.component,le,we);else{if(Pe&128){H.suspense.unmount(le,we);return}Ke&&es(H,null,G,"beforeUnmount"),Pe&64?H.type.remove(H,G,le,Te,we):_e&&!_e.hasOnce&&(U!==Xe||Z>0&&Z&64)?je(_e,G,le,!1,!0):(U===Xe&&Z&384||!pe&&Pe&16)&&je(fe,G,le),we&&Ne(H)}(pt&&(ee=W&&W.onVnodeUnmounted)||Ke)&&xr(()=>{ee&&Gi(ee,G,H),Ke&&es(H,null,G,"unmounted")},le)},Ne=H=>{const{type:G,el:le,anchor:we,transition:pe}=H;if(G===Xe){ze(le,we);return}if(G===Zc){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)},De=(H,G,le)=>{const{bum:we,scope:pe,job:U,subTree:W,um:q,m:fe,a:_e}=H;e1(fe),e1(_e),we&&Yc(we),pe.stop(),U&&(U.flags|=8,Me(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<H.length;W++)Me(H[W],G,le,we,pe)},ce=H=>{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[x$];return le?d(le):G};let Ee=!1;const Se=(H,G,le)=>{H==null?G._vnode&&Me(G._vnode,null,null,!0):m(G._vnode||null,H,G,null,null,null,le),G._vnode=H,Ee||(Ee=!0,MM(),J_(),Ee=!1)},Te={p:m,um:Me,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:Hq(Se,Oe)}}function gx({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 ec({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function t4(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function TI(e,t,n=!1){const r=e.children,i=t.children;if(Je(r)&&Je(i))for(let o=0;o<r.length;o++){const a=r[o];let s=i[o];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[o]=Jl(i[o]),s.el=a.el),!n&&s.patchFlag!==-2&&TI(a,s)),s.type===tl&&(s.el=a.el)}}function Kq(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<u?o=s+1:a=s;u<e[n[o]]&&(o>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 n4(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:n4(t)}function e1(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const r4=Symbol.for("v-scx"),i4=()=>Ji(r4);function Cb(e,t){return Kg(e,null,t)}function Zq(e,t){return Kg(e,null,{flush:"post"})}function o4(e,t){return Kg(e,null,{flush:"sync"})}function Wt(e,t,n){return Kg(e,t,n)}function Kg(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=i4();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():hI(h)}),s.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=BZ(e,t,s);return Kd&&(u?u.push(d):l&&d()),d}function qq(e,t,n){const r=this.proxy,i=It(e)?e.includes(".")?a4(r,e):()=>r[e]:e.bind(r,r);let o;bt(t)?o=t:(o=t.handler,n=t);const a=cf(this),s=Kg(i,o.bind(r),n);return a(),s}function a4(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function Jq(e,t,n=Jt){const r=br(),i=Bn(t),o=li(t),a=s4(e,i),s=dI((l,u)=>{let c,f=Jt,d;return o4(()=>{const h=e[i];oi(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(!oi(v,c)&&!(f!==Jt&&oi(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),oi(h,v)&&oi(h,f)&&!oi(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 s4=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Bn(t)}Modifiers`]||e[`${li(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&&s4(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>It(c)?c.trim():c)),a.number&&(i=n.map(Xv)));let s,l=r[s=jc(t)]||r[s=jc(Bn(t))];!l&&o&&(l=r[s=jc(li(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 l4(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=l4(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 Eb(e,t){return!e||!Lu(t)?!1:(t=t.slice(2).replace(/Once$/,""),cn(e,t[0].toLowerCase()+t.slice(1))||cn(e,li(t))||cn(e,t))}function W0(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=tg(e);let _,b;try{if(n.shapeFlag&4){const S=i||r,C=S;_=ji(u.call(C,S,c,f,h,d,v)),b=s}else{const S=t;_=ji(S.length>1?S(f,{attrs:s,slots:a,emit:l}):S(f,null)),b=t.props?s:tJ(s)}}catch(S){uv.length=0,If(S,e,1),_=ye(yr)}let w=_;if(b&&m!==!1){const S=Object.keys(b),{shapeFlag:C}=w;S.length&&C&7&&(o&&S.some(fb)&&(b=nJ(b,o)),w=fs(w,b,!1,!0))}return n.dirs&&(w=fs(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&ll(w,n.transition),_=w,tg(y),_}function eJ(e,t=!0){let n;for(let r=0;r<e.length;r++){const i=e[r];if(ul(i)){if(i.type!==yr||i.children==="v-if"){if(n)return;n=i}}else return}return n}const tJ=e=>{let t;for(const n in e)(n==="class"||n==="style"||Lu(n))&&((t||(t={}))[n]=e[n]);return t},nJ=(e,t)=>{const n={};for(const r in e)(!fb(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function rJ(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?zM(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(a[d]!==r[d]&&!Eb(u,d))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?zM(r,a,u):!0:!!a;return!1}function zM(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!Eb(n,o))return!0}return!1}function Ab({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const t1=e=>e.__isSuspense;let jC=0;const iJ={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,u){if(e==null)aJ(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}sJ(e,t,n,r,i,a,s,l,u)}},hydrate:lJ,normalize:uJ},oJ=iJ;function ig(e,t){const n=e.props&&e.props[t];bt(n)&&n()}function aJ(e,t,n,r,i,o,a,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=u4(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?(ig(e,"onPending"),ig(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,a),Nd(d,e.ssFallback)):d.resolve(!1,!0)}function sJ(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),Nd(f,h)))):(f.pendingId=jC++,_?(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),Nd(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),Nd(f,d);else if(ig(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=jC++,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 u4(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=cJ(e);b&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const w=e.props?Kv(e.props.timeout):void 0,S=o,C={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:jC++,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:D,parentComponent:$,container:F}=C;let z=!1;C.isHydrating?C.isHydrating=!1:T||(z=I&&R.transition&&R.transition.mode==="out-in",z&&(I.transition.afterLeave=()=>{O===C.pendingId&&(d(R,F,o===S?v(I):o,0),Qv(D))}),I&&(m(I.el)===F&&(o=v(I)),h(I,$,C,!0)),z||d(R,F,o,0)),Nd(C,R),C.pendingBranch=null,C.isInFallback=!1;let B=C.parent,Y=!1;for(;B;){if(B.pendingBranch){B.effects.push(...D),Y=!0;break}B=B.parent}!Y&&!z&&Qv(D),C.effects=[],b&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!A&&t.resolve()),ig(P,"onResolve")},fallback(T){if(!C.pendingBranch)return;const{vnode:A,activeBranch:P,parentComponent:I,container:R,namespace:O}=C;ig(A,"onFallback");const D=v(P),$=()=>{C.isInFallback&&(f(null,T,R,D,I,null,O,s,l),Nd(C,T))},F=T.transition&&T.transition.mode==="out-in";F&&(P.transition.afterLeave=$),C.isInFallback=!0,h(P,I,null,!0),F||$()},move(T,A,P){C.activeBranch&&d(C.activeBranch,T,A,P),C.container=T},next(){return C.activeBranch&&v(C.activeBranch)},registerDep(T,A,P){const I=!!C.pendingBranch;I&&C.deps++;const R=T.vnode.el;T.asyncDep.catch(O=>{If(O,T,0)}).then(O=>{if(T.isUnmounted||C.isUnmounted||C.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:D}=T;ZC(T,O,!1),R&&(D.el=R);const $=!R&&T.subTree.el;A(T,D,m(R||T.subTree.el),R?null:v(T.subTree),C,a,P),$&&y($),Ab(T,D.el),I&&--C.deps===0&&C.resolve()})},unmount(T,A){C.isUnmounted=!0,C.activeBranch&&h(C.activeBranch,n,T,A),C.pendingBranch&&h(C.pendingBranch,n,T,A)}};return C}function lJ(e,t,n,r,i,o,a,s,l){const u=t.suspense=u4(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 uJ(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=WM(r?n.default:n),e.ssFallback=r?WM(n.fallback):ye(yr)}function WM(e){let t;if(bt(e)){const n=uf&&e._c;n&&(e._d=!1,K()),e=e(),n&&(e._d=!0,t=fi,f4())}return Je(e)&&(e=eJ(e)),e=ji(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function c4(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):Qv(e)}function Nd(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,Ab(r,i))}function cJ(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Xe=Symbol.for("v-fgt"),tl=Symbol.for("v-txt"),yr=Symbol.for("v-cmt"),Zc=Symbol.for("v-stc"),uv=[];let fi=null;function K(e=!1){uv.push(fi=e?null:[])}function f4(){uv.pop(),fi=uv[uv.length-1]||null}let uf=1;function YC(e,t=!1){uf+=e,e<0&&fi&&t&&(fi.hasOnce=!0)}function d4(e){return e.dynamicChildren=uf>0?fi||zc:null,f4(),uf>0&&fi&&fi.push(e),e}function te(e,t,n,r,i,o){return d4(L(e,t,n,r,i,o,!0))}function At(e,t,n,r,i){return d4(ye(e,t,n,r,i,!0))}function ul(e){return e?e.__v_isVNode===!0:!1}function Aa(e,t){return e.type===t.type&&e.key===t.key}function fJ(e){}const h4=({key:e})=>e??null,j0=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?It(e)||st(e)||bt(e)?{i:Cr,r:e,k:t,f:!!n}:e:null);function L(e,t=null,n=null,r=0,i=null,o=e===Xe?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&h4(t),ref:t&&j0(t),scopeId:Sb,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:Cr};return s?(CI(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=It(n)?8:16),uf>0&&!a&&fi&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&fi.push(l),l}const ye=dJ;function dJ(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===B$)&&(e=yr),ul(e)){const s=fs(e,t,!0);return n&&CI(s,n),uf>0&&!o&&fi&&(s.shapeFlag&6?fi[fi.indexOf(e)]=s:fi.push(s)),s.patchFlag=-2,s}if(bJ(e)&&(e=e.__vccOpts),t){t=p4(t);let{class:s,style:l}=t;s&&!It(s)&&(t.class=it(s)),vn(l)&&(bb(l)&&!Je(l)&&(l=Qt({},l)),t.style=Gr(l))}const a=It(e)?1:t1(e)?128:T$(e)?64:vn(e)?4:bt(e)?2:0;return L(e,t,n,r,i,a,o,!0)}function p4(e){return e?bb(e)||W$(e)?Qt({},e):e:null}function fs(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?v4(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&h4(u),ref:t&&t.ref?n&&o?Je(o)?o.concat(j0(t)):[o,j0(t)]:j0(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!==Xe?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&&fs(e.ssContent),ssFallback:e.ssFallback&&fs(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ll(c,l.clone(c)),c}function lt(e=" ",t=0){return ye(tl,null,e,t)}function hJ(e,t){const n=ye(Zc,null,e);return n.staticCount=t,n}function gt(e="",t=!1){return t?(K(),At(yr,null,e)):ye(yr,null,e)}function ji(e){return e==null||typeof e=="boolean"?ye(yr):Je(e)?ye(Xe,null,e.slice()):ul(e)?Jl(e):ye(tl,null,String(e))}function Jl(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fs(e)}function CI(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),CI(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!W$(t)?t._ctx=Cr:i===3&&Cr&&(Cr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else bt(t)?(t={default:t,_ctx:Cr},n=32):(t=String(t),r&64?(n=16,t=[lt(t)]):n=8);e.children=t,e.shapeFlag|=n}function v4(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=it([t.class,r.class]));else if(i==="style")t.style=Gr([t.style,r.style]);else if(Lu(i)){const o=t[i],a=r[i];a&&o!==a&&!(Je(o)&&o.includes(a))&&(t[i]=o?[].concat(o,a):a)}else i!==""&&(t[i]=r[i])}return t}function Gi(e,t,n,r=null){ia(e,t,7,[n,r])}const pJ=H$();let vJ=0;function g4(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||pJ,o={uid:vJ++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new iI(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Y$(r,i),emitsOptions:l4(r,i),emit:null,emitted:null,propsDefaults:Jt,inheritAttrs:r.inheritAttrs,ctx:Jt,data:Jt,props:Jt,attrs:Jt,slots:Jt,refs:Jt,setupState:Jt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Qq.bind(null,o),e.ce&&e.ce(o),o}let Tr=null;const br=()=>Tr||Cr;let n1,XC;{const e=zg(),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)}};n1=t("__VUE_INSTANCE_SETTERS__",n=>Tr=n),XC=t("__VUE_SSR_SETTERS__",n=>Kd=n)}const cf=e=>{const t=Tr;return n1(e),e.scope.on(),()=>{e.scope.off(),n1(t)}},KC=()=>{Tr&&Tr.scope.off(),n1(null)};function m4(e){return e.vnode.shapeFlag&4}let Kd=!1;function y4(e,t=!1,n=!1){t&&XC(t);const{props:r,children:i}=e.vnode,o=m4(e);Gq(e,r,o,t),Yq(e,i,n);const a=o?gJ(e,t):void 0;return t&&XC(!1),a}function gJ(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,HC);const{setup:r}=n;if(r){Fu();const i=e.setupContext=r.length>1?b4(e):null,o=cf(e),a=bh(r,e,0,[e.props,i]),s=hb(a);if($u(),o(),(s||e.sp)&&!gu(e)&&gI(e),s){if(a.then(KC,KC),t)return a.then(l=>{ZC(e,l,t)}).catch(l=>{If(l,e,0)});e.asyncDep=a}else ZC(e,a,t)}else _4(e,t)}function ZC(e,t,n){bt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vn(t)&&(e.setupState=fI(t)),_4(e,n)}let r1,qC;function mJ(e){r1=e,qC=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,wq))}}const yJ=()=>!r1;function _4(e,t,n){const r=e.type;if(!e.render){if(!t&&r1&&!r.render){const i=r.template||SI(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=r1(i,u)}}e.render=r.render||Lr,qC&&qC(e)}{const i=cf(e);Fu();try{kq(e)}finally{$u(),i()}}}const _J={get(e,t){return ai(e,"get",""),e[t]}};function b4(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,_J),slots:e.slots,emit:e.emit,expose:t}}function Zg(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fI(h$(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in sv)return sv[n](e)},has(t,n){return n in t||n in sv}})):e.proxy}function JC(e,t=!0){return bt(e)?e.displayName||e.name:e.name||t&&e.__name}function bJ(e){return bt(e)&&"__vccOpts"in e}const Ve=(e,t)=>NZ(e,t,Kd);function Wi(e,t,n){const r=arguments.length;return r===2?vn(t)&&!Je(t)?ul(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ul(n)&&(n=[n]),ye(e,t,n))}function SJ(){}function wJ(e,t,n,r){const i=n[r];if(i&&S4(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function S4(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(oi(n[r],t[r]))return!1;return uf>0&&fi&&fi.push(e),!0}const w4="3.5.13",xJ=Lr,TJ=zZ,CJ=gd,EJ=w$,AJ={createComponentInstance:g4,setupComponent:y4,renderComponentRoot:W0,setCurrentRenderingInstance:tg,isVNode:ul,normalizeVNode:ji,getComponentPublicInstance:Zg,ensureValidVNode:bI,pushWarningContext:VZ,popWarningContext:UZ},IJ=AJ,RJ=null,PJ=null,OJ=null;/**
|
||
* @vue/runtime-dom v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let QC;const jM=typeof window<"u"&&window.trustedTypes;if(jM)try{QC=jM.createPolicy("vue",{createHTML:e=>e})}catch{}const x4=QC?e=>QC.createHTML(e):e=>e,MJ="http://www.w3.org/2000/svg",DJ="http://www.w3.org/1998/Math/MathML",Vs=typeof document<"u"?document:null,YM=Vs&&Vs.createElement("template"),LJ={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"?Vs.createElementNS(MJ,e):t==="mathml"?Vs.createElementNS(DJ,e):n?Vs.createElement(e,{is:n}):Vs.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Vs.createTextNode(e),createComment:e=>Vs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vs.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{YM.innerHTML=x4(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=YM.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]}},Ol="transition",ep="animation",Zd=Symbol("_vtc"),T4={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},C4=Qt({},vI,T4),NJ=e=>(e.displayName="Transition",e.props=C4,e),kJ=NJ((e,{slots:t})=>Wi(R$,E4(e),t)),tc=(e,t=[])=>{Je(e)?e.forEach(n=>n(...t)):e&&e(...t)},XM=e=>e?Je(e)?e.some(t=>t.length>1):e.length>1:!1;function E4(e){const t={};for(const D in e)D in T4||(t[D]=e[D]);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=FJ(i),m=v&&v[0],y=v&&v[1],{onBeforeEnter:_,onEnter:b,onEnterCancelled:w,onLeave:S,onLeaveCancelled:C,onBeforeAppear:T=_,onAppear:A=b,onAppearCancelled:P=w}=t,I=(D,$,F,z)=>{D._enterCancelled=z,jl(D,$?c:s),jl(D,$?u:a),F&&F()},R=(D,$)=>{D._isLeaving=!1,jl(D,f),jl(D,h),jl(D,d),$&&$()},O=D=>($,F)=>{const z=D?A:b,B=()=>I($,D,F);tc(z,[$,B]),KM(()=>{jl($,D?l:o),qa($,D?c:s),XM(z)||ZM($,r,m,B)})};return Qt(t,{onBeforeEnter(D){tc(_,[D]),qa(D,o),qa(D,a)},onBeforeAppear(D){tc(T,[D]),qa(D,l),qa(D,u)},onEnter:O(!1),onAppear:O(!0),onLeave(D,$){D._isLeaving=!0;const F=()=>R(D,$);qa(D,f),D._enterCancelled?(qa(D,d),eE()):(eE(),qa(D,d)),KM(()=>{D._isLeaving&&(jl(D,f),qa(D,h),XM(S)||ZM(D,r,y,F))}),tc(S,[D,F])},onEnterCancelled(D){I(D,!1,void 0,!0),tc(w,[D])},onAppearCancelled(D){I(D,!0,void 0,!0),tc(P,[D])},onLeaveCancelled(D){R(D),tc(C,[D])}})}function FJ(e){if(e==null)return null;if(vn(e))return[mx(e.enter),mx(e.leave)];{const t=mx(e);return[t,t]}}function mx(e){return Kv(e)}function qa(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Zd]||(e[Zd]=new Set)).add(t)}function jl(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 KM(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let $J=0;function ZM(e,t,n,r){const i=e._endId=++$J,o=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=A4(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<l&&f()},s+1),e.addEventListener(u,d)}function A4(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),i=r(`${Ol}Delay`),o=r(`${Ol}Duration`),a=qM(i,o),s=r(`${ep}Delay`),l=r(`${ep}Duration`),u=qM(s,l);let c=null,f=0,d=0;t===Ol?a>0&&(c=Ol,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?Ol:ep:null,d=c?c===Ol?o.length:l.length:0);const h=c===Ol&&/\b(transform|all)(,|$)/.test(r(`${Ol}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function qM(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>JM(n)+JM(e[r])))}function JM(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function eE(){return document.body.offsetHeight}function BJ(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 i1=Symbol("_vod"),I4=Symbol("_vsh"),EI={beforeMount(e,{value:t},{transition:n}){e[i1]=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[i1]:"none",e[I4]=!t}function VJ(){EI.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const R4=Symbol("");function UJ(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=>o1(o,i))},r=()=>{const i=e(t.proxy);t.ce?o1(t.ce,i):tE(t.subTree,i),n(i)};mI(()=>{Qv(r)}),lo(()=>{Wt(r,Lr,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),Sh(()=>i.disconnect())})}function tE(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{tE(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)o1(e.el,t);else if(e.type===Xe)e.children.forEach(n=>tE(n,t));else if(e.type===Zc){let{el:n,anchor:r}=e;for(;n&&(o1(n,t),n!==r);)n=n.nextSibling}}function o1(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[R4]=r}}const HJ=/(^|;)\s*display\s*:/;function GJ(e,t,n){const r=e.style,i=It(n);let o=!1;if(n&&!i){if(t)if(It(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&Y0(r,s,"")}else for(const a in t)n[a]==null&&Y0(r,a,"");for(const a in n)a==="display"&&(o=!0),Y0(r,a,n[a])}else if(i){if(t!==n){const a=r[R4];a&&(n+=";"+a),r.cssText=n,o=HJ.test(n)}}else t&&e.removeAttribute("style");i1 in e&&(e[i1]=o?r.display:"",e[I4]&&(r.display="none"))}const QM=/\s*!important$/;function Y0(e,t,n){if(Je(n))n.forEach(r=>Y0(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=zJ(e,t);QM.test(n)?e.setProperty(li(r),n.replace(QM,""),"important"):e[r]=n}}const eD=["Webkit","Moz","ms"],yx={};function zJ(e,t){const n=yx[t];if(n)return n;let r=Bn(t);if(r!=="filter"&&r in e)return yx[t]=r;r=ku(r);for(let i=0;i<eD.length;i++){const o=eD[i]+r;if(o in e)return yx[t]=o}return t}const tD="http://www.w3.org/1999/xlink";function nD(e,t,n,r,i,o=Y5(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(tD,t.slice(6,t.length)):e.setAttributeNS(tD,t,n):n==null||o&&!rI(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Pi(n)?String(n):n)}function rD(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?x4(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const s=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(s!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const s=typeof e[t];s==="boolean"?n=rI(n):n==null&&s==="string"?(n="",a=!0):s==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(i||t)}function Ys(e,t,n,r){e.addEventListener(t,n,r)}function WJ(e,t,n,r){e.removeEventListener(t,n,r)}const iD=Symbol("_vei");function jJ(e,t,n,r,i=null){const o=e[iD]||(e[iD]={}),a=o[t];if(r&&a)a.value=r;else{const[s,l]=YJ(t);if(r){const u=o[t]=ZJ(r,i);Ys(e,s,u,l)}else a&&(WJ(e,s,a,l),o[t]=void 0)}}const oD=/(?:Once|Passive|Capture)$/;function YJ(e){let t;if(oD.test(e)){t={};let r;for(;r=e.match(oD);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):li(e.slice(2)),t]}let _x=0;const XJ=Promise.resolve(),KJ=()=>_x||(XJ.then(()=>_x=0),_x=Date.now());function ZJ(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ia(qJ(r,n.value),t,5,[r])};return n.value=e,n.attached=KJ(),n}function qJ(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 aD=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,JJ=(e,t,n,r,i,o)=>{const a=i==="svg";t==="class"?BJ(e,r,a):t==="style"?GJ(e,n,r):Lu(t)?fb(t)||jJ(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):QJ(e,t,r,a))?(rD(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&nD(e,t,r,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!It(r))?rD(e,Bn(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),nD(e,t,r,a))};function QJ(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&aD(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 aD(t)&&It(n)?!1:t in e}const sD={};/*! #__NO_SIDE_EFFECTS__ */function P4(e,t,n){const r=rt(e,t);Gg(r)&&Qt(r,t);class i extends Ib{constructor(a){super(r,a,n)}}return i.def=r,i}/*! #__NO_SIDE_EFFECTS__ */const eQ=(e,t)=>P4(e,t,H4),tQ=typeof HTMLElement<"u"?HTMLElement:class{};class Ib extends tQ{constructor(t,n={},r=s1){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!==s1?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 Ib){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,ms(()=>{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<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(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]=Kv(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):sD;const i=Bn(t);n&&this._numberProps&&this._numberProps[i]&&(r=Kv(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===sD?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(li(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(li(t),n+""):n||this.removeAttribute(li(t)),o&&o.observe(this,{attributes:!0})}}_update(){U4(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,Gg(a[0])?Qt({detail:a},a[0]):{detail:a}))};r.emit=(o,...a)=>{i(o,a),li(o)!==o&&i(li(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<t.length;r++){const i=t[r],o=i.getAttribute("name")||"default",a=this._slots[o],s=i.parentNode;if(a)for(const l of a){if(n&&l.nodeType===1){const u=n+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let f;for(;f=c.nextNode();)f.setAttribute(u,"")}s.insertBefore(l,i)}else for(;i.firstChild;)s.insertBefore(i.firstChild,i);s.removeChild(i)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function O4(e){const t=br(),n=t&&t.ce;return n||null}function nQ(){const e=O4();return e&&e.shadowRoot}function rQ(e="$style"){{const t=br();if(!t)return Jt;const n=t.type.__cssModules;if(!n)return Jt;const r=n[e];return r||Jt}}const M4=new WeakMap,D4=new WeakMap,a1=Symbol("_moveCb"),lD=Symbol("_enterCb"),iQ=e=>(delete e.props.mode,e),oQ=iQ({name:"TransitionGroup",props:Qt({},C4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=br(),r=pI();let i,o;return Tb(()=>{if(!i.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!cQ(i[0].el,n.vnode.el,a))return;i.forEach(sQ),i.forEach(lQ);const s=i.filter(uQ);eE(),s.forEach(l=>{const u=l.el,c=u.style;qa(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[a1]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[a1]=null,jl(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=sn(e),s=E4(a);let l=a.tag||Xe;if(i=[],o)for(let u=0;u<o.length;u++){const c=o[u];c.el&&c.el instanceof Element&&(i.push(c),ll(c,Xd(c,s,r,n)),M4.set(c,c.el.getBoundingClientRect()))}o=t.default?wb(t.default()):[];for(let u=0;u<o.length;u++){const c=o[u];c.key!=null&&ll(c,Xd(c,s,r,n))}return ye(l,null,o)}}}),aQ=oQ;function sQ(e){const t=e.el;t[a1]&&t[a1](),t[lD]&&t[lD]()}function lQ(e){D4.set(e,e.el.getBoundingClientRect())}function uQ(e){const t=M4.get(e),n=D4.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",e}}function cQ(e,t,n){const r=e.cloneNode(),i=e[Zd];i&&i.forEach(s=>{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}=A4(r);return o.removeChild(r),a}const Cu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Je(t)?n=>Yc(t,n):t};function fQ(e){e.target.composing=!0}function uD(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ea=Symbol("_assign"),ir={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[ea]=Cu(i);const o=r||i.props&&i.props.type==="number";Ys(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),o&&(s=Xv(s)),e[ea](s)}),n&&Ys(e,"change",()=>{e.value=e.value.trim()}),t||(Ys(e,"compositionstart",fQ),Ys(e,"compositionend",uD),Ys(e,"change",uD))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[ea]=Cu(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?Xv(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]=Cu(n),Ys(e,"change",()=>{const r=e._modelValue,i=qd(e),o=e.checked,a=e[ea];if(Je(r)){const s=Wg(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(Nu(r)){const s=new Set(r);o?s.add(i):s.delete(i),a(s)}else a(L4(e,o))})},mounted:cD,beforeUpdate(e,t,n){e[ea]=Cu(n),cD(e,t,n)}};function cD(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(Je(t))i=Wg(t,r.props.value)>-1;else if(Nu(t))i=t.has(r.props.value);else{if(t===n)return;i=sl(t,L4(e,!0))}e.checked!==i&&(e.checked=i)}const AI={created(e,{value:t},n){e.checked=sl(t,n.props.value),e[ea]=Cu(n),Ys(e,"change",()=>{e[ea](qd(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ea]=Cu(r),t!==n&&(e.checked=sl(t,r.props.value))}},pi={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Nu(t);Ys(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?Xv(qd(a)):qd(a));e[ea](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,ms(()=>{e._assigning=!1})}),e[ea]=Cu(r)},mounted(e,{value:t}){fD(e,t)},beforeUpdate(e,t,n){e[ea]=Cu(n)},updated(e,{value:t}){e._assigning||fD(e,t)}};function fD(e,t){const n=e.multiple,r=Je(t);if(!(n&&!r&&!Nu(t))){for(let i=0,o=e.options.length;i<o;i++){const a=e.options[i],s=qd(a);if(n)if(r){const l=typeof s;l==="string"||l==="number"?a.selected=t.some(u=>String(u)===String(s)):a.selected=Wg(t,s)>-1}else a.selected=t.has(s);else if(sl(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 L4(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const N4={created(e,t,n){Cy(e,t,n,null,"created")},mounted(e,t,n){Cy(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Cy(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Cy(e,t,n,r,"updated")}};function k4(e,t){switch(e){case"SELECT":return pi;case"TEXTAREA":return ir;default:switch(t){case"checkbox":return gr;case"radio":return AI;default:return ir}}}function Cy(e,t,n,r,i){const a=k4(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function dQ(){ir.getSSRProps=({value:e})=>({value:e}),AI.getSSRProps=({value:e},t)=>{if(t.props&&sl(t.props.value,e))return{checked:!0}},gr.getSSRProps=({value:e},t)=>{if(Je(e)){if(t.props&&Wg(e,t.props.value)>-1)return{checked:!0}}else if(Nu(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},N4.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=k4(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const hQ=["ctrl","shift","alt","meta"],pQ={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)=>hQ.some(n=>e[`${n}Key`]&&!t.includes(n))},To=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...o)=>{for(let a=0;a<t.length;a++){const s=pQ[t[a]];if(s&&s(i,t))return}return e(i,...o)})},vQ={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},F4=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const o=li(i.key);if(t.some(a=>a===o||vQ[a]===o))return e(i)})},$4=Qt({patchProp:JJ},LJ);let cv,dD=!1;function B4(){return cv||(cv=J$($4))}function V4(){return cv=dD?cv:Q$($4),dD=!0,cv}const U4=(...e)=>{B4().render(...e)},gQ=(...e)=>{V4().hydrate(...e)},s1=(...e)=>{const t=B4().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=z4(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,G4(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t},H4=(...e)=>{const t=V4().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=z4(r);if(i)return n(i,!0,G4(i))},t};function G4(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function z4(e){return It(e)?document.querySelector(e):e}let hD=!1;const mQ=()=>{hD||(hD=!0,dQ(),VJ())},yQ=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:R$,BaseTransitionPropsValidators:vI,Comment:yr,DeprecationTypes:OJ,EffectScope:iI,ErrorCodes:GZ,ErrorTypeStrings:TJ,Fragment:Xe,KeepAlive:vq,ReactiveEffect:Zv,Static:Zc,Suspense:oJ,Teleport:qZ,Text:tl,TrackOpTypes:kZ,Transition:kJ,TransitionGroup:aQ,TriggerOpTypes:FZ,VueElement:Ib,assertNumber:HZ,callWithAsyncErrorHandling:ia,callWithErrorHandling:bh,camelize:Bn,capitalize:ku,cloneVNode:fs,compatUtils:PJ,computed:Ve,createApp:s1,createBlock:At,createCommentVNode:gt,createElementBlock:te,createElementVNode:L,createHydrationRenderer:Q$,createPropsRestProxy:Lq,createRenderer:J$,createSSRApp:H4,createSlots:bq,createStaticVNode:hJ,createTextVNode:lt,createVNode:ye,customRef:dI,defineAsyncComponent:hq,defineComponent:rt,defineCustomElement:P4,defineEmits:Tq,defineExpose:Cq,defineModel:Iq,defineOptions:Eq,defineProps:xq,defineSSRCustomElement:eQ,defineSlots:Aq,devtools:CJ,effect:aZ,effectScope:q5,getCurrentInstance:br,getCurrentScope:oI,getCurrentWatcher:$Z,getTransitionRawChildren:wb,guardReactiveProps:p4,h:Wi,handleError:If,hasInjectionContext:wI,hydrate:gQ,hydrateOnIdle:sq,hydrateOnInteraction:fq,hydrateOnMediaQuery:cq,hydrateOnVisible:uq,initCustomFormatter:SJ,initDirectivesForSSR:mQ,inject:Ji,isMemoSame:S4,isProxy:bb,isReactive:vu,isReadonly:Tu,isRef:st,isRuntimeOnly:yJ,isShallow:Eo,isVNode:ul,markRaw:h$,mergeDefaults:Mq,mergeModels:Dq,mergeProps:v4,nextTick:ms,normalizeClass:it,normalizeProps:U5,normalizeStyle:Gr,onActivated:O$,onBeforeMount:L$,onBeforeUnmount:Xg,onBeforeUpdate:mI,onDeactivated:M$,onErrorCaptured:$$,onMounted:lo,onRenderTracked:F$,onRenderTriggered:k$,onScopeDispose:aI,onServerPrefetch:N$,onUnmounted:Sh,onUpdated:Tb,onWatcherCleanup:m$,openBlock:K,popScopeId:XZ,provide:lv,proxyRefs:fI,pushScopeId:YZ,queuePostFlushCb:Qv,reactive:Na,readonly:jg,ref:ke,registerRuntimeCompiler:mJ,render:U4,renderList:rn,renderSlot:Ld,resolveComponent:yq,resolveDirective:_q,resolveDynamicComponent:cs,resolveFilter:RJ,resolveTransitionHooks:Xd,setBlockTracking:YC,setDevtoolsHook:EJ,setTransitionHooks:ll,shallowReactive:cI,shallowReadonly:EZ,shallowRef:Af,ssrContextKey:r4,ssrUtils:IJ,stop:sZ,toDisplayString:ie,toHandlerKey:jc,toHandlers:Sq,toRaw:sn,toRef:v$,toRefs:OZ,toValue:IZ,transformVNodeArgs:fJ,triggerRef:BC,unref:N,useAttrs:Oq,useCssModule:rQ,useCssVars:UJ,useHost:O4,useId:QZ,useModel:Jq,useSSRContext:i4,useShadowRoot:nQ,useSlots:Pq,useTemplateRef:eq,useTransitionState:pI,vModelCheckbox:gr,vModelDynamic:N4,vModelRadio:AI,vModelSelect:pi,vModelText:ir,vShow:EI,version:w4,warn:xJ,watch:Wt,watchEffect:Cb,watchPostEffect:Zq,watchSyncEffect:o4,withAsyncContext:Nq,withCtx:Dr,withDefaults:Rq,withDirectives:_t,withKeys:F4,withMemo:wJ,withModifiers:To,withScopeId:KZ},Symbol.toStringTag,{value:"Module"}));function Rb(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 _Q(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function bQ(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 W4(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 qg(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 SQ(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function j4(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 Pb(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 wQ(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 xQ(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 pD(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 TQ(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 CQ(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"})])}function EQ(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),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 AQ(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 Y4(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 vD(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 gD(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 II(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 IQ(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 X4(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function RQ(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 K4(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 PQ(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 Z4(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function q4(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 OQ(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 MQ(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 Ob(e,t){return K(),te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[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 md=typeof document<"u";function J4(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function DQ(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&J4(e.default)}const yn=Object.assign;function bx(e,t){const n={};for(const r in t){const i=t[r];n[r]=ka(i)?i.map(e):e(i)}return n}const fv=()=>{},ka=Array.isArray,Q4=/#/g,LQ=/&/g,NQ=/\//g,kQ=/=/g,FQ=/\?/g,eB=/\+/g,$Q=/%5B/g,BQ=/%5D/g,tB=/%5E/g,VQ=/%60/g,nB=/%7B/g,UQ=/%7C/g,rB=/%7D/g,HQ=/%20/g;function RI(e){return encodeURI(""+e).replace(UQ,"|").replace($Q,"[").replace(BQ,"]")}function GQ(e){return RI(e).replace(nB,"{").replace(rB,"}").replace(tB,"^")}function nE(e){return RI(e).replace(eB,"%2B").replace(HQ,"+").replace(Q4,"%23").replace(LQ,"%26").replace(VQ,"`").replace(nB,"{").replace(rB,"}").replace(tB,"^")}function zQ(e){return nE(e).replace(kQ,"%3D")}function WQ(e){return RI(e).replace(Q4,"%23").replace(FQ,"%3F")}function jQ(e){return e==null?"":WQ(e).replace(NQ,"%2F")}function og(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const YQ=/\/$/,XQ=e=>e.replace(YQ,"");function Sx(e,t,n="/"){let r,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&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=JQ(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:og(a)}}function KQ(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function mD(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ZQ(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])&&iB(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 iB(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!qQ(e[n],t[n]))return!1;return!0}function qQ(e,t){return ka(e)?yD(e,t):ka(t)?yD(t,e):e===t}function yD(e,t){return ka(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function JQ(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;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const Ml={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ag;(function(e){e.pop="pop",e.push="push"})(ag||(ag={}));var dv;(function(e){e.back="back",e.forward="forward",e.unknown=""})(dv||(dv={}));function QQ(e){if(!e)if(md){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),XQ(e)}const eee=/^[^#]+#/;function tee(e,t){return e.replace(eee,"#")+t}function nee(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 Mb=()=>({left:window.scrollX,top:window.scrollY});function ree(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=nee(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 _D(e,t){return(history.state?history.state.position-t:-1)+e}const rE=new Map;function iee(e,t){rE.set(e,t)}function oee(e){const t=rE.get(e);return rE.delete(e),t}let aee=()=>location.protocol+"//"+location.host;function oB(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),mD(l,"")}return mD(n,e)+r+i}function see(e,t,n,r){let i=[],o=[],a=null;const s=({state:d})=>{const h=oB(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:ag.pop,direction:y?y>0?dv.forward:dv.back:dv.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:Mb()}),"")}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 bD(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Mb():null}}function lee(e){const{history:t,location:n}=window,r={value:oB(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:aee()+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,bD(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:Mb()});o(c.current,c,!0);const f=yn({},bD(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 uee(e){e=QQ(e);const t=lee(e),n=see(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:tee.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 cee(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),uee(e)}function fee(e){return typeof e=="string"||e&&typeof e=="object"}function aB(e){return typeof e=="string"||typeof e=="symbol"}const sB=Symbol("");var SD;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(SD||(SD={}));function Qd(e,t){return yn(new Error,{type:e,[sB]:!0},t)}function Ms(e,t){return e instanceof Error&&sB in e&&(t==null||!!(e.type&t))}const wD="[^/]+?",dee={sensitive:!1,strict:!1,start:!0,end:!0},hee=/[.+*?^${}()[\]/\\]/g;function pee(e,t){const n=yn({},dee,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;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(i+="/"),i+=d.value.replace(hee,"\\$&"),h+=40;else if(d.type===1){const{value:v,repeatable:m,optional:y,regexp:_}=d;o.push({name:v,repeatable:m,optional:y});const b=_||wD;if(b!==wD){h+=10;try{new RegExp(`(${b})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${v}" (${b}): `+S.message)}}let w=m?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(w=y&&u.length<2?`(?:/${w})`:"/"+w),y&&(w+="?"),i+=w,h+=20,y&&(h+=-8),m&&(h+=-20),b===".*"&&(h+=-50)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");function s(u){const c=u.match(a),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",v=o[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===0)c+=h.value;else if(h.type===1){const{value:v,repeatable:m,optional:y}=h,_=v in u?u[v]:"";if(ka(_)&&!m)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const b=ka(_)?_.join("/"):_;if(!b)if(y)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=b}}return c||"/"}return{re:a,score:r,keys:o,parse:s,stringify:l}}function vee(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function lB(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const o=vee(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(xD(r))return 1;if(xD(i))return-1}return i.length-r.length}function xD(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const gee={type:0,value:""},mee=/[a-zA-Z0-9_]/;function yee(e){if(!e)return[[]];if(e==="/")return[[gee]];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<e.length;){if(l=e[s++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),a()):l===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:l==="("?n=2:mee.test(l)?d():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),i}function _ee(e,t,n){const r=pee(yee(e.path),n),i=yn(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function bee(e,t){const n=[],r=new Map;t=AD({strict:!1,end:!0,sensitive:!1},t);function i(f){return r.get(f)}function o(f,d,h){const v=!h,m=CD(f);m.aliasOf=h&&h.record;const y=AD(t,f),_=[m];if("alias"in f){const S=typeof f.alias=="string"?[f.alias]:f.alias;for(const C of S)_.push(CD(yn({},m,{components:h?h.record.components:m.components,path:C,aliasOf:h?h.record:m})))}let b,w;for(const S of _){const{path:C}=S;if(d&&C[0]!=="/"){const T=d.record.path,A=T[T.length-1]==="/"?"":"/";S.path=d.record.path+(C&&A+C)}if(b=_ee(S,d,y),h?h.alias.push(b):(w=w||b,w!==b&&w.alias.push(b),v&&f.name&&!ED(b)&&a(f.name)),uB(b)&&l(b),m.children){const T=m.children;for(let A=0;A<T.length;A++)o(T[A],b,h&&h.children[A])}h=h||b}return w?()=>{a(w)}:fv}function a(f){if(aB(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=xee(f,n);n.splice(d,0,f),f.record.name&&!ED(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(TD(d.params,h.keys.filter(w=>!w.optional).concat(h.parent?h.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),f.params&&TD(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:wee(_)}}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 TD(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function CD(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:See(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 See(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 ED(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wee(e){return e.reduce((t,n)=>yn(t,n.meta),{})}function AD(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function xee(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;lB(e,t[o])<0?r=o:n=o+1}const i=Tee(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Tee(e){let t=e;for(;t=t.parent;)if(uB(t)&&lB(e,t)===0)return t}function uB({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Cee(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const o=r[i].replace(eB," "),a=o.indexOf("="),s=og(a<0?o:o.slice(0,a)),l=a<0?null:og(o.slice(a+1));if(s in t){let u=t[s];ka(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function ID(e){let t="";for(let n in e){const r=e[n];if(n=zQ(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(ka(r)?r.map(o=>o&&nE(o)):[r&&nE(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Eee(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ka(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const Aee=Symbol(""),RD=Symbol(""),Db=Symbol(""),PI=Symbol(""),iE=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 Ql(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):fee(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 xx(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(J4(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Ql(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=DQ(c)?c.default:c;a.mods[s]=c,a.components[s]=f;const h=(f.__vccOpts||f)[t];return h&&Ql(h,n,r,a,s,i)()}))}}return o}function PD(e){const t=Ji(Db),n=Ji(PI),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=OD(l[u-2]);return u>1&&OD(c)===h&&f[f.length-1].path!==h?f.findIndex(Jd.bind(null,l[u-2])):d}),o=Ve(()=>i.value>-1&&Mee(n.params,r.value.params)),a=Ve(()=>i.value>-1&&i.value===n.matched.length-1&&iB(n.params,r.value.params));function s(l={}){if(Oee(l)){const u=t[N(e.replace)?"replace":"push"](N(e.to)).catch(fv);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 Iee(e){return e.length===1?e[0]:e}const Ree=rt({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:PD,setup(e,{slots:t}){const n=Na(PD(e)),{options:r}=Ji(Db),i=Ve(()=>({[MD(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[MD(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Iee(t.default(n));return e.custom?o:Wi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),Pee=Ree;function Oee(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 Mee(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(!ka(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function OD(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const MD=(e,t,n)=>e??t??n,Dee=rt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ji(iE),i=Ve(()=>e.route||r.value),o=Ji(RD,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]);lv(RD,Ve(()=>a.value+1)),lv(Aee,s),lv(iE,i);const l=ke();return Wt(()=>[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 DD(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=Wi(d,yn({},v,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return DD(n.default,{Component:y,route:u})||y}}});function DD(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const OI=Dee;function Lee(e){const t=bee(e.routes,e),n=e.parseQuery||Cee,r=e.stringifyQuery||ID,i=e.history,o=np(),a=np(),s=np(),l=Af(Ml);let u=Ml;md&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=bx.bind(null,ce=>""+ce),f=bx.bind(null,jQ),d=bx.bind(null,og);function h(ce,Ee){let Se,Te;return aB(ce)?(Se=t.getRecordMatcher(ce),Te=Ee):Te=ce,t.addRoute(Te,Se)}function v(ce){const Ee=t.getRecordMatcher(ce);Ee&&t.removeRoute(Ee)}function m(){return t.getRoutes().map(ce=>ce.record)}function y(ce){return!!t.getRecordMatcher(ce)}function _(ce,Ee){if(Ee=yn({},Ee||l.value),typeof ce=="string"){const G=Sx(n,ce,Ee.path),le=t.resolve({path:G.path},Ee),we=i.createHref(G.fullPath);return yn(G,le,{params:d(le.params),hash:og(G.hash),redirectedFrom:void 0,href:we})}let Se;if(ce.path!=null)Se=yn({},ce,{path:Sx(n,ce.path,Ee.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)}),Ee.params=f(Ee.params)}const Te=t.resolve(Se,Ee),Oe=ce.hash||"";Te.params=c(d(Te.params));const $e=KQ(r,yn({},ce,{hash:GQ(Oe),path:Te.path})),H=i.createHref($e);return yn({fullPath:$e,hash:Oe,query:r===ID?Eee(ce.query):ce.query||{}},Te,{redirectedFrom:void 0,href:H})}function b(ce){return typeof ce=="string"?Sx(n,ce,l.value.path):yn({},ce)}function w(ce,Ee){if(u!==ce)return Qd(8,{from:Ee,to:ce})}function S(ce){return A(ce)}function C(ce){return S(yn(b(ce),{replace:!0}))}function T(ce){const Ee=ce.matched[ce.matched.length-1];if(Ee&&Ee.redirect){const{redirect:Se}=Ee;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,Ee){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}),Ee||Se);const le=Se;le.redirectedFrom=Ee;let we;return!$e&&ZQ(r,Te,Se)&&(we=Qd(16,{to:le,from:Te}),ve(Te,Te,!0,!1)),(we?Promise.resolve(we):R(le,Te)).catch(pe=>Ms(pe)?Ms(pe,2)?pe:ge(pe):j(pe,le,Te)).then(pe=>{if(pe){if(Ms(pe,2))return A(yn({replace:H},b(pe.to),{state:typeof pe.to=="object"?yn({},Oe,pe.to.state):Oe,force:$e}),Ee||le)}else pe=D(le,Te,!0,H,Oe);return O(le,Te,pe),pe})}function P(ce,Ee){const Se=w(ce,Ee);return Se?Promise.reject(Se):Promise.resolve()}function I(ce){const Ee=ze.values().next().value;return Ee&&typeof Ee.runWithContext=="function"?Ee.runWithContext(ce):ce()}function R(ce,Ee){let Se;const[Te,Oe,$e]=Nee(ce,Ee);Se=xx(Te.reverse(),"beforeRouteLeave",ce,Ee);for(const G of Te)G.leaveGuards.forEach(le=>{Se.push(Ql(le,ce,Ee))});const H=P.bind(null,ce,Ee);return Se.push(H),je(Se).then(()=>{Se=[];for(const G of o.list())Se.push(Ql(G,ce,Ee));return Se.push(H),je(Se)}).then(()=>{Se=xx(Oe,"beforeRouteUpdate",ce,Ee);for(const G of Oe)G.updateGuards.forEach(le=>{Se.push(Ql(le,ce,Ee))});return Se.push(H),je(Se)}).then(()=>{Se=[];for(const G of $e)if(G.beforeEnter)if(ka(G.beforeEnter))for(const le of G.beforeEnter)Se.push(Ql(le,ce,Ee));else Se.push(Ql(G.beforeEnter,ce,Ee));return Se.push(H),je(Se)}).then(()=>(ce.matched.forEach(G=>G.enterCallbacks={}),Se=xx($e,"beforeRouteEnter",ce,Ee,I),Se.push(H),je(Se))).then(()=>{Se=[];for(const G of a.list())Se.push(Ql(G,ce,Ee));return Se.push(H),je(Se)}).catch(G=>Ms(G,8)?G:Promise.reject(G))}function O(ce,Ee,Se){s.list().forEach(Te=>I(()=>Te(ce,Ee,Se)))}function D(ce,Ee,Se,Te,Oe){const $e=w(ce,Ee);if($e)return $e;const H=Ee===Ml,G=md?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,Ee,Se,H),ge()}let $;function F(){$||($=i.listen((ce,Ee,Se)=>{if(!De.listening)return;const Te=_(ce),Oe=T(Te);if(Oe){A(yn(Oe,{replace:!0,force:!0}),Te).catch(fv);return}u=Te;const $e=l.value;md&&iee(_D($e.fullPath,Se.delta),Mb()),R(Te,$e).catch(H=>Ms(H,12)?H:Ms(H,2)?(A(yn(b(H.to),{force:!0}),Te).then(G=>{Ms(G,20)&&!Se.delta&&Se.type===ag.pop&&i.go(-1,!1)}).catch(fv),Promise.reject()):(Se.delta&&i.go(-Se.delta,!1),j(H,Te,$e))).then(H=>{H=H||D(Te,$e,!1),H&&(Se.delta&&!Ms(H,8)?i.go(-Se.delta,!1):Se.type===ag.pop&&Ms(H,20)&&i.go(-1,!1)),O(Te,$e,H)}).catch(fv)}))}let z=np(),B=np(),Y;function j(ce,Ee,Se){ge(ce);const Te=B.list();return Te.length?Te.forEach(Oe=>Oe(ce,Ee,Se)):console.error(ce),Promise.reject(ce)}function se(){return Y&&l.value!==Ml?Promise.resolve():new Promise((ce,Ee)=>{z.add([ce,Ee])})}function ge(ce){return Y||(Y=!ce,F(),z.list().forEach(([Ee,Se])=>ce?Se(ce):Ee()),z.reset()),ce}function ve(ce,Ee,Se,Te){const{scrollBehavior:Oe}=e;if(!md||!Oe)return Promise.resolve();const $e=!Se&&oee(_D(ce.fullPath,0))||(Te||!Se)&&history.state&&history.state.scroll||null;return ms().then(()=>Oe(ce,Ee,$e)).then(H=>H&&ree(H)).catch(H=>j(H,ce,Ee))}const Me=ce=>i.go(ce);let Ne;const ze=new Set,De={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:m,resolve:_,options:e,push:S,replace:C,go:Me,back:()=>Me(-1),forward:()=>Me(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:B.add,isReady:se,install(ce){const Ee=this;ce.component("RouterLink",Pee),ce.component("RouterView",OI),ce.config.globalProperties.$router=Ee,Object.defineProperty(ce.config.globalProperties,"$route",{enumerable:!0,get:()=>N(l)}),md&&!Ne&&l.value===Ml&&(Ne=!0,S(i.location).catch(Oe=>{}));const Se={};for(const Oe in Ml)Object.defineProperty(Se,Oe,{get:()=>l.value[Oe],enumerable:!0});ce.provide(Db,Ee),ce.provide(PI,cI(Se)),ce.provide(iE,l);const Te=ce.unmount;ze.add(ce),ce.unmount=function(){ze.delete(ce),ze.size<1&&(u=Ml,$&&$(),$=null,l.value=Ml,Ne=!1,Y=!1),Te()}}};function je(ce){return ce.reduce((Ee,Se)=>Ee.then(()=>I(Se)),Promise.resolve())}return De}function Nee(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const s=t.matched[a];s&&(e.matched.find(u=>Jd(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 kee(){return Ji(Db)}function cB(e){return Ji(PI)}/*!
|
||
* shared v10.0.5
|
||
* (c) 2024 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const l1=typeof window<"u",Bu=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Fee=(e,t,n)=>$ee({l:e,k:t,s:n}),$ee=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),hr=e=>typeof e=="number"&&isFinite(e),Bee=e=>MI(e)==="[object Date]",eh=e=>MI(e)==="[object RegExp]",Lb=e=>Yt(e)&&Object.keys(e).length===0,Er=Object.assign,Vee=Object.create,Rn=(e=null)=>Vee(e);let LD;const Lc=()=>LD||(LD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Rn());function ND(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Uee=Object.prototype.hasOwnProperty;function Ia(e,t){return Uee.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",Hee=e=>pn(e)&&Hn(e.then)&&Hn(e.catch),fB=Object.prototype.toString,MI=e=>fB.call(e),Yt=e=>MI(e)==="[object Object]",Gee=e=>e==null?"":ar(e)||Yt(e)&&e.toString===fB?JSON.stringify(e,null,2):String(e);function DI(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function zee(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ey=e=>!pn(e)||ar(e);function X0(e,t){if(Ey(e)||Ey(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()),Ey(i[o])||Ey(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 Wee(e,t,n){return{line:e,column:t,offset:n}}function oE(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},jee=17;function Nb(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 Yee(e){throw e}const Ds=" ",Xee="\r",wi=`
|
||
`,Kee="\u2028",Zee="\u2029";function qee(e){const t=e;let n=0,r=1,i=1,o=0;const a=A=>t[A]===Xee&&t[A+1]===wi,s=A=>t[A]===wi,l=A=>t[A]===Zee,u=A=>t[A]===Kee,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)?wi: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 C(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:C,skipToPeek:T}}const Dl=void 0,Jee=".",kD="'",Qee="tokenizer";function ete(e,t={}){const n=t.location!==!1,r=qee(e),i=()=>r.index(),o=()=>Wee(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?oE(_e.startLoc,W):null,Z=Nb(U,Pe,{domain:Qee,args:fe});c(Z)}}function d(U,W,q){U.endLoc=o(),U.currentType=W;const fe={type:W};return n&&(fe.loc=oE(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()===Ds||U.currentPeek()===wi;)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 C(U,W){const{currentType:q}=W;if(q!==2)return!1;m(U);const fe=U.currentPeek()===kD;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===Ds||!Pe?!1:Pe===wi?(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===Ds||Pe===wi):Z===Ds?(U.peek(),q(!0,Ds)):Z===wi?(U.peek(),q(!0,wi)):!0},fe=q();return W&&U.resetPeek(),fe}function D(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 D(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 D(U,z)}function Y(U){const W=U.charCodeAt(0);return W>=48&&W<=57}function j(U){return D(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 D(U,se)}function ve(U){let W="",q="";for(;W=j(U);)q+=W;return q}function Me(U){let W="";for(;;){const q=U.currentChar();if(q==="{"||q==="}"||q==="@"||q==="|"||!q)break;if(q===Ds||q===wi)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 De(U){return U!==kD&&U!==wi}function je(U){y(U),v(U,"'");let W="",q="";for(;W=D(U,De);)W==="\\"?q+=ce(U):q+=W;const fe=U.currentChar();return fe===wi||fe===Dl?(f(xn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),fe===wi&&(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 Ee(U,W,4);case"U":return Ee(U,W,6);default:return f(xn.UNKNOWN_ESCAPE_SEQUENCE,o(),0,W),""}}function Ee(U,W,q){v(U,W);let fe="";for(let _e=0;_e<q;_e++){const Pe=ge(U);if(!Pe){f(xn.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${W}${fe}${U.currentChar()}`);break}fe+=Pe}return`\\${W}${fe}`}function Se(U){return U!=="{"&&U!=="}"&&U!==Ds&&U!==wi}function Te(U){y(U);let W="",q="";for(;W=D(U,Se);)q+=W;return q}function Oe(U){let W="",q="";for(;W=F(U);)q+=W;return q}function $e(U){const W=q=>{const fe=U.currentChar();return fe==="{"||fe==="@"||fe==="|"||fe==="("||fe===")"||!fe||fe===Ds?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=C(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===wi||_e===Ds)&&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,Me(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 tte="parser",nte=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function rte(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"<22>"}}}function ite(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,b,w,S,...C){const T=_.currentPosition();if(T.offset+=S,T.column+=S,n){const A=t?oE(w,T):null,P=Nb(b,A,{domain:tte,args:C});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:C}=w,T=i(5,S,C);return T.index=parseInt(b,10),_.nextToken(),o(T,_.currentOffset(),_.currentPosition()),T}function l(_,b){const w=_.context(),{lastOffset:S,lastStartLoc:C}=w,T=i(4,S,C);return T.key=b,_.nextToken(),o(T,_.currentOffset(),_.currentPosition()),T}function u(_,b){const w=_.context(),{lastOffset:S,lastStartLoc:C}=w,T=i(9,S,C);return T.value=b.replace(nte,rte),_.nextToken(),o(T,_.currentOffset(),_.currentPosition()),T}function c(_){const b=_.nextToken(),w=_.context(),{lastOffset:S,lastStartLoc:C}=w,T=i(8,S,C);return b.type!==11?(r(_,xn.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),T.value="",o(T,S,C),{nextConsumeToken:b,node:T}):(b.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Wa(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 C=c(_);w.modifier=C.node,S=C.nextConsumeToken||_.nextToken()}switch(S.type!==9&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Wa(S)),S=_.nextToken(),S.type===2&&(S=_.nextToken()),S.type){case 10:S.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Wa(S)),w.key=f(_,S.value||"");break;case 4:S.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Wa(S)),w.key=l(_,S.value||"");break;case 5:S.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Wa(S)),w.key=s(_,S.value||"");break;case 6:S.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Wa(S)),w.key=u(_,S.value||"");break;default:{r(_,xn.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const C=_.context(),T=i(7,C.offset,C.startLoc);return T.value="",o(T,C.offset,C.startLoc),w.key=T,o(w,C.offset,C.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,C=i(2,w,S);C.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,Wa(I)),C.items.push(a(_,I.value||""));break;case 5:I.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Wa(I)),C.items.push(s(_,I.value||""));break;case 4:I.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Wa(I)),C.items.push(l(_,I.value||""));break;case 6:I.value==null&&r(_,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Wa(I)),C.items.push(u(_,I.value||""));break;case 7:{const R=d(_);C.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(C,A,P),C}function v(_,b,w,S){const C=_.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(C.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,C=h(_);return b.currentType===13?C:v(_,w,S,C)}function y(_){const b=ete(_,Er({},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 Wa(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 ote(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function FD(e,t){for(let n=0;n<e.length;n++)LI(e[n],t)}function LI(e,t){switch(e.type){case 1:FD(e.cases,t),t.helper("plural");break;case 2:FD(e.items,t);break;case 6:{LI(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function ate(e,t={}){const n=ote(e);n.helper("normalize"),e.body&&LI(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function ste(e){const t=e.body;return t.type===2?$D(t):t.cases.forEach(n=>$D(n)),e}function $D(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;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=DI(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function yd(e){switch(e.t=e.type,e.type){case 0:{const t=e;yd(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)yd(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)yd(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;yd(t.key),t.k=t.key,delete t.key,t.modifier&&(yd(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function lte(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:o}=t,a=t.location!==!1,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:o,indentLevel:0};a&&e.loc&&(s.source=e.loc.source);const l=()=>s;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 ute(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 cte(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let o=0;o<i&&(th(e,t.items[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function fte(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let o=0;o<i&&(th(e,t.cases[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function dte(e,t){t.body?th(e,t.body):e.push("null")}function th(e,t){const{helper:n}=e;switch(t.type){case 0:dte(e,t);break;case 1:fte(e,t);break;case 2:cte(e,t);break;case 6:ute(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const hte=(e,t={})=>{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=lte(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 { ${DI(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 pte(e,t={}){const n=Er({},t),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,s=ite(n).parse(e);return r?(o&&ste(s),i&&yd(s),{ast:s,code:""}):(ate(s,n),hte(s,n))}/*!
|
||
* core-base v10.0.5
|
||
* (c) 2024 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function vte(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Lc().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Lc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Tx(e){return n=>gte(n,e)}function gte(e,t){const n=yte(t);if(n==null)throw sg(0);if(NI(n)===1){const o=bte(n);return e.plural(o.reduce((a,s)=>[...a,BD(e,s)],[]))}else return BD(e,n)}const mte=["b","body"];function yte(e){return Vu(e,mte)}const _te=["c","cases"];function bte(e){return Vu(e,_te,[])}function BD(e,t){const n=wte(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Tte(t).reduce((i,o)=>[...i,aE(e,o)],[]);return e.normalize(r)}}const Ste=["s","static"];function wte(e){return Vu(e,Ste)}const xte=["i","items"];function Tte(e){return Vu(e,xte,[])}function aE(e,t){const n=NI(t);switch(n){case 3:return Ay(t,n);case 9:return Ay(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 sg(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 sg(n)}case 6:{const r=t,i=Ite(r),o=Pte(r);return e.linked(aE(e,o),i?aE(e,i):void 0,e.type)}case 7:return Ay(t,n);case 8:return Ay(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Cte=["t","type"];function NI(e){return Vu(e,Cte)}const Ete=["v","value"];function Ay(e,t){const n=Vu(e,Ete);if(n)return n;throw sg(t)}const Ate=["m","modifier"];function Ite(e){return Vu(e,Ate)}const Rte=["k","key"];function Pte(e){const t=Vu(e,Rte);if(t)return t;throw sg(6)}function Vu(e,t,n){for(let r=0;r<t.length;r++){const i=t[r];if(Ia(e,i)&&e[i]!=null)return e[i]}return n}function sg(e){return new Error(`unhandled node type: ${e}`)}const Ote=e=>e;let Iy=Rn();function nh(e){return pn(e)&&NI(e)===0&&(Ia(e,"b")||Ia(e,"body"))}function Mte(e,t={}){let n=!1;const r=t.onError||Yee;return t.onError=i=>{n=!0,r(i)},{...pte(e,t),detectError:n}}function Dte(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&tt(e)){fn(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Ote)(e),i=Iy[r];if(i)return i;const{ast:o,detectError:a}=Mte(e,{...t,location:!1,jit:!0}),s=Tx(o);return a?s:Iy[r]=s}else{const n=e.cacheKey;if(n){const r=Iy[n];return r||(Iy[n]=Tx(e))}else return Tx(e)}}let lg=null;function Lte(e){lg=e}function Nte(e,t,n){lg&&lg.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const kte=Fte("function:translate");function Fte(e){return t=>lg&&lg.emit(e,t)}const Zs={INVALID_ARGUMENT:jee,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},$te=24;function qs(e){return Nb(e,null,void 0)}function kI(e,t){return t.locale!=null?VD(t.locale):VD(e.locale)}let Cx;function VD(e){if(tt(e))return e;if(Hn(e)){if(e.resolvedOnce&&Cx!=null)return Cx;if(e.constructor.name==="Function"){const t=e();if(Hee(t))throw qs(Zs.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Cx=t}else throw qs(Zs.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw qs(Zs.NOT_SUPPORT_LOCALE_TYPE)}function Bte(e,t,n){return[...new Set([n,...ar(t)?t:pn(t)?Object.keys(t):tt(t)?[t]:[n]])]}function dB(e,t,n){const r=tt(n)?n:ug,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;ar(a);)a=UD(o,a,t);const s=ar(t)||!Yt(t)?t:t.default?t.default:null;a=tt(s)?[s]:s,ar(a)&&UD(o,a,!1),i.__localeChainCache.set(r,o)}return o}function UD(e,t,n){let r=!0;for(let i=0;i<t.length&&fn(r);i++){const o=t[i];tt(o)&&(r=Vte(e,t[i],n))}return r}function Vte(e,t,n){let r;const i=t.split("-");do{const o=i.join("-");r=Ute(e,o,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function Ute(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(ar(n)||Yt(n))&&n[i]&&(r=n[i])}return r}const Uu=[];Uu[0]={w:[0],i:[3,0],"[":[4],o:[7]};Uu[1]={w:[1],".":[2],"[":[4],o:[7]};Uu[2]={w:[2],i:[3,0],0:[3,0]};Uu[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Uu[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Uu[5]={"'":[4,0],o:8,l:[5,0]};Uu[6]={'"':[4,0],o:8,l:[6,0]};const Hte=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Gte(e){return Hte.test(e)}function zte(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Wte(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function jte(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Gte(t)?zte(t):"*"+t}function Yte(e){const t=[];let n=-1,r=0,i=0,o,a,s,l,u,c,f;const d=[];d[0]=()=>{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=jte(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=Wte(o),f=Uu[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 HD=new Map;function Xte(e,t){return pn(e)?e[t]:null}function Kte(e,t){if(!pn(e))return null;let n=HD.get(t);if(n||(n=Yte(t),n&&HD.set(t,n)),!n)return null;const r=n.length;let i=e,o=0;for(;o<r;){const a=i[n[o]];if(a===void 0||Hn(i))return null;i=a,o++}return i}const Zte="10.0.5",kb=-1,ug="en-US",GD="",zD=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function qte(){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)?zD(e):t==="vnode"&&pn(e)&&"__v_isVNode"in e?zD(e.children):e}}let hB;function Jte(e){hB=e}let pB;function Qte(e){pB=e}let vB;function ene(e){vB=e}let gB=null;const tne=e=>{gB=e},nne=()=>gB;let mB=null;const WD=e=>{mB=e},rne=()=>mB;let jD=0;function ine(e={}){const t=Hn(e.onWarn)?e.onWarn:zee,n=tt(e.version)?e.version:Zte,r=tt(e.locale)||Hn(e.locale)?e.locale:ug,i=Hn(r)?ug:r,o=ar(e.fallbackLocale)||Yt(e.fallbackLocale)||tt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=Yt(e.messages)?e.messages:Ex(i),s=Yt(e.datetimeFormats)?e.datetimeFormats:Ex(i),l=Yt(e.numberFormats)?e.numberFormats:Ex(i),u=Er(Rn(),e.modifiers,qte()),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,_=Yt(e.processor)?e.processor:null,b=fn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,S=Hn(e.messageCompiler)?e.messageCompiler:hB,C=Hn(e.messageResolver)?e.messageResolver:pB||Xte,T=Hn(e.localeFallbacker)?e.localeFallbacker:vB||Bte,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:{};jD++;const D={version:n,cid:jD,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:C,localeFallbacker:T,fallbackContext:A,onWarn:t,__meta:O};return D.datetimeFormats=s,D.numberFormats=l,D.__datetimeFormatters=I,D.__numberFormatters=R,__INTLIFY_PROD_DEVTOOLS__&&Nte(D,n,O),D}const Ex=e=>({[e]:Rn()});function FI(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 one(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function ane(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(one(e,t[r]))return!0;return!1}function YD(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:s}=e,[l,u,c,f]=sE(...t),d=fn(c.missingWarn)?c.missingWarn:e.missingWarn;fn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,v=kI(e,c),m=a(e,i,v);if(!tt(l)||l==="")return new Intl.DateTimeFormat(v,f).format(u);let y={},_,b=null;const w="datetime format";for(let T=0;T<m.length&&(_=m[T],y=n[_]||{},b=y[l],!Yt(b));T++)FI(e,l,_,d,w);if(!Yt(b)||!tt(_))return r?kb:l;let S=`${_}__${l}`;Lb(f)||(S=`${S}__${JSON.stringify(f)}`);let C=s.get(S);return C||(C=new Intl.DateTimeFormat(_,Er({},b,f)),s.set(S,C)),h?C.formatToParts(u):C.format(u)}const yB=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function sE(...e){const[t,n,r,i]=e,o=Rn();let a=Rn(),s;if(tt(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw qs(Zs.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch{throw qs(Zs.INVALID_ISO_DATE_ARGUMENT)}}else if(Bee(t)){if(isNaN(t.getTime()))throw qs(Zs.INVALID_DATE_ARGUMENT);s=t}else if(hr(t))s=t;else throw qs(Zs.INVALID_ARGUMENT);return tt(n)?o.key=n:Yt(n)&&Object.keys(n).forEach(l=>{yB.includes(l)?a[l]=n[l]:o[l]=n[l]}),tt(r)?o.locale=r:Yt(r)&&(a=r),Yt(i)&&(a=i),[o.key||"",s,o,a]}function XD(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function KD(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,u,c,f]=lE(...t),d=fn(c.missingWarn)?c.missingWarn:e.missingWarn;fn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,v=kI(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<m.length&&(_=m[T],y=n[_]||{},b=y[l],!Yt(b));T++)FI(e,l,_,d,w);if(!Yt(b)||!tt(_))return r?kb:l;let S=`${_}__${l}`;Lb(f)||(S=`${S}__${JSON.stringify(f)}`);let C=s.get(S);return C||(C=new Intl.NumberFormat(_,Er({},b,f)),s.set(S,C)),h?C.formatToParts(u):C.format(u)}const _B=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function lE(...e){const[t,n,r,i]=e,o=Rn();let a=Rn();if(!hr(t))throw qs(Zs.INVALID_ARGUMENT);const s=t;return tt(n)?o.key=n:Yt(n)&&Object.keys(n).forEach(l=>{_B.includes(l)?a[l]=n[l]:o[l]=n[l]}),tt(r)?o.locale=r:Yt(r)&&(a=r),Yt(i)&&(a=i),[o.key||"",s,o,a]}function ZD(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const sne=e=>e,lne=e=>"",une="text",cne=e=>e.length===0?"":DI(e),fne=Gee;function qD(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function dne(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 hne(e,t){t.count||(t.count=e),t.n||(t.n=e)}function pne(e={}){const t=e.locale,n=dne(e),r=pn(e.pluralRules)&&tt(t)&&Hn(e.pluralRules[t])?e.pluralRules[t]:qD,i=pn(e.pluralRules)&&tt(t)&&Hn(e.pluralRules[t])?qD:void 0,o=_=>_[r(n,_.length,i)],a=e.list||[],s=_=>a[_],l=e.named||Rn();hr(e.pluralIndex)&&hne(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(_):lne)}const f=_=>e.modifiers?e.modifiers[_]:sne,d=Yt(e.processor)&&Hn(e.processor.normalize)?e.processor.normalize:cne,h=Yt(e.processor)&&Hn(e.processor.interpolate)?e.processor.interpolate:fne,v=Yt(e.processor)&&tt(e.processor.type)?e.processor.type:une,y={list:s,named:u,plural:o,linked:(_,...b)=>{const[w,S]=b;let C="text",T="";b.length===1?pn(w)?(T=w.modifier||T,C=w.type||C):tt(w)&&(T=w||T):b.length===2&&(tt(w)&&(T=w||T),tt(S)&&(C=S||C));const A=c(_,!0)(y),P=C==="vnode"&&ar(A)&&T?A[0]:A;return T?f(T)(P,C):P},message:c,type:v,interpolate:h,normalize:d,values:Er(Rn(),a,l)};return y}const JD=()=>"",Ko=e=>Hn(e);function QD(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,u]=uE(...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=kI(e,u);d&&vne(u);let[_,b,w]=h?[l,y,s[y]||Rn()]:bB(e,l,y,a,f,c),S=_,C=l;if(!h&&!(tt(S)||nh(S)||Ko(S))&&m&&(S=v,C=S),!h&&(!(tt(S)||nh(S)||Ko(S))||!tt(b)))return i?kb:l;let T=!1;const A=()=>{T=!0},P=Ko(S)?S:SB(e,l,b,S,C,A);if(T)return S;const I=yne(e,b,w,u),R=pne(I),O=gne(e,P,R),D=r?r(O,l):O;if(__INTLIFY_PROD_DEVTOOLS__){const $={timestamp:Date.now(),key:tt(l)?l:Ko(S)?S.key:"",locale:b||(Ko(S)?S.locale:""),format:tt(S)?S:Ko(S)?S.source:"",message:D};$.meta=Er({},e.__meta,nne()||{}),kte($)}return D}function vne(e){ar(e.list)?e.list=e.list.map(t=>tt(t)?ND(t):t):pn(e.named)&&Object.keys(e.named).forEach(t=>{tt(e.named[t])&&(e.named[t]=ND(e.named[t]))})}function bB(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;m<c.length&&(d=c[m],f=a[d]||Rn(),(h=l(f,t))===null&&(h=f[t]),!(tt(h)||nh(h)||Ko(h)));m++)if(!ane(d,c)){const y=FI(e,t,d,o,v);y!==t&&(h=y)}return[h,d,f]}function SB(e,t,n,r,i,o){const{messageCompiler:a,warnHtmlMessage:s}=e;if(Ko(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}if(a==null){const u=()=>r;return u.locale=n,u.key=t,u}const l=a(r,mne(e,n,i,r,s,o));return l.locale=n,l.key=t,l.source=r,l}function gne(e,t,n){return t(n)}function uE(...e){const[t,n,r]=e,i=Rn();if(!tt(t)&&!hr(t)&&!Ko(t)&&!nh(t))throw qs(Zs.INVALID_ARGUMENT);const o=hr(t)?String(t):(Ko(t),t);return hr(n)?i.plural=n:tt(n)?i.default=n:Yt(n)&&!Lb(n)?i.named=n:ar(n)&&(i.list=n),hr(r)?i.plural=r:tt(r)?i.default=r:Yt(r)&&Er(i,r),[o,i]}function mne(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>Fee(t,n,a)}}function yne(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]=bB(c||e,h,t,s,l,u);m=a(y,h)}if(tt(m)||nh(m)){let y=!1;const b=SB(e,h,t,m,h,()=>{y=!0});return y?JD:b}else return Ko(m)?m:JD}};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}vte();/*!
|
||
* vue-i18n v10.0.5
|
||
* (c) 2024 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const _ne="10.0.5";function bne(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Lc().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Lc().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Lc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Lc().__INTLIFY_PROD_DEVTOOLS__=!1)}const Oi={UNEXPECTED_RETURN_TYPE:$te,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 ro(e,...t){return Nb(e,null,void 0)}const cE=Bu("__translateVNode"),fE=Bu("__datetimeParts"),dE=Bu("__numberParts"),wB=Bu("__setPluralRules"),xB=Bu("__injectWithOption"),hE=Bu("__dispose");function cg(e){if(!pn(e))return e;for(const t in e)if(Ia(e,t))if(!t.includes("."))pn(e[t])&&cg(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,o=!1;for(let a=0;a<r;a++){if(n[a]in i||(i[n[a]]=Rn()),!pn(i[n[a]])){o=!0;break}i=i[n[a]]}o||(i[n[r]]=e[t],delete e[t]),pn(i[n[r]])&&cg(i[n[r]])}return e}function $I(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:o}=t,a=Yt(n)?n:ar(r)?Rn():{[e]:Rn()};if(ar(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(a[l]=a[l]||Rn(),X0(u,a[l])):X0(u,a)}else tt(s)&&X0(JSON.parse(s),a)}),i==null&&o)for(const s in a)Ia(a,s)&&cg(a[s]);return a}function TB(e){return e.type}function CB(e,t,n){let r=pn(t.messages)?t.messages:Rn();"__i18nGlobal"in n&&(r=$I(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 eL(e){return ye(tl,null,e,0)}const tL="__INTLIFY_META__",nL=()=>[],Sne=()=>!1;let rL=0;function iL(e){return(t,n,r,i)=>e(n,r,br()||void 0,i)}const wne=()=>{const e=br();let t=null;return e&&(t=TB(e)[tL])?{[tL]:t}:null};function BI(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,o=l1?ke:Af;let a=fn(e.inheritLocale)?e.inheritLocale:!0;const s=o(t&&a?t.locale.value:tt(e.locale)?e.locale:ug),l=o(t&&a?t.fallbackLocale.value:tt(e.fallbackLocale)||ar(e.fallbackLocale)||Yt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=o($I(s.value,e)),c=o(Yt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=o(Yt(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)?iL(e.missing):null,b=Hn(e.postTranslation)?e.postTranslation:null,w=t?t.warnHtmlMessage:fn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const C=t?t.modifiers:Yt(e.modifiers)?e.modifiers:{};let T=e.pluralRules||t&&t.pluralRules,A;A=(()=>{r&&WD(null);const Z={version:_ne,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:C,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=Yt(A)?A.__datetimeFormatters:void 0,Z.__numberFormatters=Yt(A)?A.__numberFormatters:void 0;const de=ine(Z);return r&&WD(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)}}),D=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&&(_=iL(Z)),y=Z,A.missing=_}const se=(Z,de,Be,Ke,pt,ee)=>{I();let oe;try{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=t?rne():void 0),oe=Z(A)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(Be!=="translate exists"&&hr(oe)&&oe===kb||Be==="translate exists"&&!oe){const[he,Ce]=de();return t&&v?Ke(t):pt(he)}else{if(ee(oe))return oe;throw ro(Oi.UNEXPECTED_RETURN_TYPE)}};function ge(...Z){return se(de=>Reflect.apply(QD,null,[de,...Z]),()=>uE(...Z),"translate",de=>Reflect.apply(de.t,de,[...Z]),de=>de,de=>tt(de))}function ve(...Z){const[de,Be,Ke]=Z;if(Ke&&!pn(Ke))throw ro(Oi.INVALID_ARGUMENT);return ge(de,Be,Er({resolvedMessage:!0},Ke||{}))}function Me(...Z){return se(de=>Reflect.apply(YD,null,[de,...Z]),()=>sE(...Z),"datetime format",de=>Reflect.apply(de.d,de,[...Z]),()=>GD,de=>tt(de))}function Ne(...Z){return se(de=>Reflect.apply(KD,null,[de,...Z]),()=>lE(...Z),"number format",de=>Reflect.apply(de.n,de,[...Z]),()=>GD,de=>tt(de))}function ze(Z){return Z.map(de=>tt(de)||hr(de)||fn(de)?eL(String(de)):de)}const je={normalize:ze,interpolate:Z=>Z,type:"vnode"};function ce(...Z){return se(de=>{let Be;const Ke=de;try{Ke.processor=je,Be=Reflect.apply(QD,null,[Ke,...Z])}finally{Ke.processor=null}return Be},()=>uE(...Z),"translate",de=>de[cE](...Z),de=>[eL(de)],de=>ar(de))}function Ee(...Z){return se(de=>Reflect.apply(KD,null,[de,...Z]),()=>lE(...Z),"number format",de=>de[dE](...Z),nL,de=>tt(de)||ar(de))}function Se(...Z){return se(de=>Reflect.apply(YD,null,[de,...Z]),()=>sE(...Z),"datetime format",de=>de[fE](...Z),nL,de=>tt(de)||ar(de))}function Te(Z){T=Z,A.pluralRules=T}function Oe(Z,de){return se(()=>{if(!Z)return!1;const Be=tt(de)?de:s.value,Ke=G(Be),pt=A.messageResolver(Ke,Z);return nh(pt)||Ko(pt)||tt(pt)},()=>[Z],"translate exists",Be=>Reflect.apply(Be.te,Be,[Z,de]),Sne,Be=>fn(Be))}function $e(Z){let de=null;const Be=dB(A,l.value,s.value);for(let Ke=0;Ke<Be.length;Ke++){const pt=u.value[Be[Ke]]||{},ee=A.messageResolver(pt,Z);if(ee!=null){de=ee;break}}return de}function H(Z){const de=$e(Z);return de??(t?t.tm(Z)||{}:{})}function G(Z){return u.value[Z]||{}}function le(Z,de){if(i){const Be={[Z]:de};for(const Ke in Be)Ia(Be,Ke)&&cg(Be[Ke]);de=Be[Z]}u.value[Z]=de,A.messages=u.value}function we(Z,de){u.value[Z]=u.value[Z]||{};const Be={[Z]:de};if(i)for(const Ke in Be)Ia(Be,Ke)&&cg(Be[Ke]);de=Be[Z],X0(de,u.value[Z]),A.messages=u.value}function pe(Z){return c.value[Z]||{}}function U(Z,de){c.value[Z]=de,A.datetimeFormats=c.value,XD(A,Z,de)}function W(Z,de){c.value[Z]=Er(c.value[Z]||{},de),A.datetimeFormats=c.value,XD(A,Z,de)}function q(Z){return f.value[Z]||{}}function fe(Z,de){f.value[Z]=de,A.numberFormats=f.value,ZD(A,Z,de)}function _e(Z,de){f.value[Z]=Er(f.value[Z]||{},de),A.numberFormats=f.value,ZD(A,Z,de)}rL++,t&&l1&&(Wt(t.locale,Z=>{a&&(s.value=Z,A.locale=Z,rp(A,s.value,l.value))}),Wt(t.fallbackLocale,Z=>{a&&(l.value=Z,A.fallbackLocale=Z,rp(A,s.value,l.value))}));const Pe={id:rL,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:D,get modifiers(){return C},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,[wB]:Te};return Pe.datetimeFormats=$,Pe.numberFormats=F,Pe.rt=ve,Pe.te=Oe,Pe.tm=H,Pe.d=Me,Pe.n=Ne,Pe.getDateTimeFormat=pe,Pe.setDateTimeFormat=U,Pe.mergeDateTimeFormat=W,Pe.getNumberFormat=q,Pe.setNumberFormat=fe,Pe.mergeNumberFormat=_e,Pe[xB]=n,Pe[cE]=ce,Pe[fE]=Se,Pe[dE]=Ee,Pe}function xne(e){const t=tt(e.locale)?e.locale:ug,n=tt(e.fallbackLocale)||ar(e.fallbackLocale)||Yt(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=Yt(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(Yt(e.sharedMessages)){const C=e.sharedMessages;v=Object.keys(C).reduce((A,P)=>{const I=A[P]||(A[P]={});return Er(I,C[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 pE(e={}){const t=BI(xne(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 ro(Oi.INVALID_ARGUMENT);const f=o;return tt(a)?l.locale=a:hr(a)?l.plural=a:ar(a)?u=a:Yt(a)&&(c=a),tt(s)?l.locale=s:ar(s)?u=s:Yt(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 Tne(e,t,n){return{beforeCreate(){const r=br();if(!r)throw ro(Oi.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=oL(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=pE(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=oL(e,i);else{this.$i18n=pE({__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&&CB(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 ro(Oi.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 oL(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[wB](t.pluralizationRules||e.pluralizationRules);const n=$I(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 VI={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Cne({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Xe?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},Rn())}function EB(){return Xe}const Ene=rt({name:"i18n-t",props:Er({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>hr(e)||!isNaN(e)}},VI),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||Fa({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=Cne(t,o),l=i[cE](e.keypath,s,a),u=Er(Rn(),r),c=tt(e.tag)||pn(e.tag)?e.tag:EB();return Wi(c,u,l)}}}),aL=Ene;function Ane(e){return ar(e)&&!tt(e[0])}function AB(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)?Er(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 Ane(m)&&(m[0].key=`${d.type}-${h}`),m}):tt(l)&&(u=[l]);const c=Er(Rn(),o),f=tt(e.tag)||pn(e.tag)?e.tag:EB();return Wi(f,c,u)}}const Ine=rt({name:"i18n-n",props:Er({value:{type:Number,required:!0},format:{type:[String,Object]}},VI),setup(e,t){const n=e.i18n||Fa({useScope:e.scope,__useComponent:!0});return AB(e,t,_B,(...r)=>n[dE](...r))}}),sL=Ine,Rne=rt({name:"i18n-d",props:Er({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},VI),setup(e,t){const n=e.i18n||Fa({useScope:e.scope,__useComponent:!0});return AB(e,t,yB,(...r)=>n[fE](...r))}}),lL=Rne;function Pne(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 One(e){const t=a=>{const{instance:s,value:l}=a;if(!s||!s.$)throw ro(Oi.UNEXPECTED_ERROR);const u=Pne(e,s.$),c=uL(l);return[Reflect.apply(u.t,u,[...cL(c)]),u]};return{created:(a,s)=>{const[l,u]=t(s);l1&&e.global===u&&(a.__i18nWatcher=Wt(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{l1&&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=uL(s);a.textContent=Reflect.apply(l.t,l,[...cL(u)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function uL(e){if(tt(e))return{path:e};if(Yt(e)){if(!("path"in e))throw ro(Oi.REQUIRED_VALUE,"path");return e}else throw ro(Oi.INVALID_VALUE)}function cL(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 Mne(e,t,...n){const r=Yt(n[0])?n[0]:{};(fn(r.globalInstall)?r.globalInstall:!0)&&([aL.name,"I18nT"].forEach(o=>e.component(o,aL)),[sL.name,"I18nN"].forEach(o=>e.component(o,sL)),[lL.name,"I18nD"].forEach(o=>e.component(o,lL))),e.directive("t",One(t))}const Dne=Bu("global-vue-i18n");function Lne(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]=Nne(e,n),s=Bu("");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),Yt(h[0])){const y=h[0];f.__composerExtend=y.__composerExtend,f.__vueI18nExtend=y.__vueI18nExtend}let v=null;!n&&r&&(v=Gne(d,f.global)),__VUE_I18N_FULL_INSTALL__&&Mne(d,f,...h),__VUE_I18N_LEGACY_API__&&n&&d.mixin(Tne(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 Fa(e={}){const t=br();if(t==null)throw ro(Oi.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ro(Oi.NOT_INSTALLED);const n=kne(t),r=$ne(n),i=TB(t),o=Fne(e,i);if(o==="global")return CB(r,e,i),r;if(o==="parent"){let l=Bne(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Er({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=BI(l),a.__composerExtend&&(s[hE]=a.__composerExtend(s)),Une(a,t,s),a.__setInstance(t,s)}return s}function Nne(e,t,n){const r=q5(),i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>pE(e)):r.run(()=>BI(e));if(i==null)throw ro(Oi.UNEXPECTED_ERROR);return[r,i]}function kne(e){const t=Ji(e.isCE?Dne:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ro(e.isCE?Oi.NOT_INSTALLED_WITH_PROVIDE:Oi.UNEXPECTED_ERROR);return t}function Fne(e,t){return Lb(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function $ne(e){return e.mode==="composition"?e.global:e.global.__composer}function Bne(e,t,n=!1){let r=null;const i=t.root;let o=Vne(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[xB]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function Vne(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Une(e,t,n){lo(()=>{},t),Sh(()=>{const r=n;e.__deleteInstance(t);const i=r[hE];i&&(i(),delete r[hE])},t)}const Hne=["locale","fallbackLocale","availableLocales"],fL=["t","rt","d","n","tm","te"];function Gne(e,t){const n=Object.create(null);return Hne.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw ro(Oi.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,fL.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o||!o.value)throw ro(Oi.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,o)}),()=>{delete e.config.globalProperties.$i18n,fL.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}bne();Jte(Dte);Qte(Kte);ene(dB);if(__INTLIFY_PROD_DEVTOOLS__){const e=Lc();e.__INTLIFY__=!0,Lte(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Ax=ke(!1),dL=ke(),Fb=()=>{const{t:e}=Fa();return{showTip:(n,r={})=>{Ax.value=!0,dL.value=e(n,r),setTimeout(()=>{Ax.value=!1},1e4)},tipShowModel:Ax,tipContent:dL}},UI="https://ipv6.google.com/generate_204",wo=0;var rs=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e.RU_RU="ru-RU",e))(rs||{}),nu=(e=>(e.MI_SANS="MiSans",e.SARASA_UI="SarasaUi",e.PING_FANG="PingFang",e.FIRA_SANS="FiraSans",e.SYSTEM_UI="SystemUI",e))(nu||{}),dt=(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.SniffHost="sniffHost",e.Destination="destination",e))(dt||{}),ru=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(ru||{}),fg=(e=>(e.AUTO="auto",e.DOTS="dots",e.BAR="bar",e))(fg||{}),rh=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(rh||{}),df=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(df||{}),zi=(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))(zi||{}),Nc=(e=>(e.ASC="asc",e.DESC="desc",e))(Nc||{}),zs=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(zs||{}),kc=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(kc||{}),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 IB={overview:pD,proxies:AQ,connections:j4,rules:OQ,logs:TQ,settings:wQ,setup:pD};var dg=(e=>(e.SMALL="small",e.LARGE="large",e))(dg||{}),Jg=(e=>(e.SMALL="small",e.LARGE="large",e))(Jg||{}),Qg=(e=>(e.NORMAL="normal",e.REVERSE="reverse",e))(Qg||{});function $b(e){return oI()?(aI(e),!0):!1}const Ix=new WeakMap,zne=(...e)=>{var t;const n=e[0],r=(t=br())==null?void 0:t.proxy;if(r==null&&!wI())throw new Error("injectLocal must be called in setup");return r&&Ix.has(r)&&n in Ix.get(r)?Ix.get(r)[n]:Ji(...e)};function Eu(e){return typeof e=="function"?e():N(e)}const RB=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Wne=e=>e!=null,jne=Object.prototype.toString,Yne=e=>jne.call(e)==="[object Object]",u1=()=>{};function Xne(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 PB=e=>e();function Kne(e=PB){const t=ke(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:jg(t),pause:n,resume:r,eventFilter:i}}function hL(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function OB(e){return br()}function Zne(...e){if(e.length!==1)return v$(...e);const t=e[0];return typeof t=="function"?jg(dI(()=>({get:t,set:u1}))):ke(t)}function qne(e,t,n={}){const{eventFilter:r=PB,...i}=n;return Wt(e,Xne(r,t),i)}function Jne(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:a,resume:s,isActive:l}=Kne(r);return{stop:qne(e,t,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function Qne(e,t){OB()&&Xg(e,t)}function HI(e,t=!0,n){OB()?lo(e,n):t?e():ms(e)}const cl=RB?window:void 0,MB=RB?window.document:void 0;function au(e){var t;const n=Eu(e);return(t=n==null?void 0:n.$el)!=null?t:n}function mu(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=cl):[t,n,r,i]=e,!t)return u1;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=Wt(()=>[au(t),Eu(i)],([c,f])=>{if(a(),!c)return;const d=Yne(f)?{...f}:f;o.push(...n.flatMap(h=>r.map(v=>s(c,h,v,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return $b(u),u}function ere(){const e=ke(!1),t=br();return t&&lo(()=>{e.value=!0},t),e}function GI(e){const t=ere();return Ve(()=>(t.value,!!e()))}function tre(e,t,n={}){const{window:r=cl,...i}=n;let o;const a=GI(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Ve(()=>{const d=Eu(e),h=(Array.isArray(d)?d:[d]).map(au).filter(Wne);return new Set(h)}),u=Wt(()=>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 $b(f),{isSupported:a,stop:f,takeRecords:c}}const nre=Symbol("vueuse-ssr-width");function rre(){const e=wI()?zne(nre,null):null;return typeof e=="number"?e:void 0}function ire(e,t={}){const{window:n=cl,ssrWidth:r=rre()}=t,i=GI(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=ke(typeof r=="number");let a;const s=ke(!1),l=f=>{s.value=f.matches},u=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",l):a.removeListener(l))},c=Cb(()=>{if(o.value){o.value=!i.value;const f=Eu(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>=hL(v[1])),m&&y&&(y=r<=hL(m[1])),h?!y:y});return}i.value&&(u(),a=n.matchMedia(Eu(e)),"addEventListener"in a?a.addEventListener("change",l):a.addListener(l),s.value=a.matches)});return $b(()=>{c(),u(),a=void 0}),Ve(()=>s.value)}const Ry=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Py="__vueuse_ssr_handlers__",ore=are();function are(){return Py in Ry||(Ry[Py]=Ry[Py]||{}),Ry[Py]}function sre(e,t){return ore[e]||t}function lre(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 ure={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()}},pL="vueuse-storage";function Dt(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=cl,eventFilter:d,onError:h=R=>{console.error(R)},initOnMounted:v}=r,m=(c?Af:ke)(typeof t=="function"?t():t);if(!n)try{n=sre("getDefaultStorage",()=>{var R;return(R=cl)==null?void 0:R.localStorage})()}catch(R){h(R)}if(!n)return m;const y=Eu(t),_=lre(y),b=(i=r.serializer)!=null?i:ure[_],{pause:w,resume:S}=Jne(m,()=>T(m.value),{flush:o,deep:a,eventFilter:d});f&&s&&HI(()=>{n instanceof Storage?mu(f,"storage",P):mu(f,pL,I),v&&P()}),v||P();function C(R,O){if(f){const D={key:e,oldValue:R,newValue:O,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",D):new CustomEvent(pL,{detail:D}))}}function T(R){try{const O=n.getItem(e);if(R==null)C(O,null),n.removeItem(e);else{const D=b.write(R);O!==D&&(n.setItem(e,D),C(O,D))}}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 D=b.read(O);return typeof u=="function"?u(D,y):_==="object"&&!Array.isArray(D)?{...y,...D}:D}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?ms(S):S()}}}}function I(R){P(R.detail)}return m}function cre(e={}){const{document:t=MB}=e;if(!t)return ke("visible");const n=ke(t.visibilityState);return mu(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function fre(e,t,n={}){const{window:r=cl,...i}=n;let o;const a=GI(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Ve(()=>{const f=Eu(e);return Array.isArray(f)?f.map(d=>au(d)):[au(f)]}),u=Wt(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 $b(c),{isSupported:a,stop:c}}function dre(e,t={width:0,height:0},n={}){const{window:r=cl,box:i="content-box"}=n,o=Ve(()=>{var f,d;return(d=(f=au(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),a=ke(t.width),s=ke(t.height),{stop:l}=fre(e,([f])=>{const d=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&o.value){const h=au(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);HI(()=>{const f=au(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=Wt(()=>au(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 hre(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:a=!0,window:s=cl}=t,l=Na({x:0,y:0}),u=Na({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=ke(!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 C=pre(s==null?void 0:s.document);a?S=C?{passive:!0}:{capture:!1}:S=C?{passive:!1,capture:!0}:{capture:!0};const T=I=>{m.value&&(i==null||i(I,y.value)),m.value=!1},A=[mu(e,"touchstart",I=>{if(I.touches.length!==1)return;const[R,O]=_(I);b(R,O),w(R,O),o==null||o(I)},S),mu(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),mu(e,["touchend","touchcancel"],T,S)];return{isPassiveEventSupported:C,isSwiping:m,direction:y,coordsStart:l,coordsEnd:u,lengthX:c,lengthY:f,stop:()=>A.forEach(I=>I())}}function pre(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",u1,n),e.removeEventListener("x",u1),t}function vre(e=null,t={}){var n,r,i;const{document:o=MB,restoreOnUnmount:a=f=>f}=t,s=(n=o==null?void 0:o.title)!=null?n:"",l=Zne((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):Eu(d).replace(/%s/g,f)}return Wt(l,(f,d)=>{f!==d&&o&&(o.title=c(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!u&&tre((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=c(o.title))},{childList:!0}),Qne(()=>{if(a){const f=a(s,l.value||"");f!=null&&o&&(o.title=f)}}),l}function gre(e={}){const{window:t=cl,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=e,s=ke(n),l=ke(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(),HI(u),mu("resize",u,{passive:!0}),t&&a==="visual"&&t.visualViewport&&mu(t.visualViewport,"resize",u,{passive:!0}),i){const c=ire("(orientation: portrait)");Wt(c,()=>u())}return{width:s,height:l}}const DB=gre(),mre=Ve(()=>DB.width.value>1280),yre=Ve(()=>DB.width.value<768),LB="background-image",c1="local-image",NB=e=>{const t=new Map,r=new Promise((f,d)=>{const h=indexedDB.open(e,1);h.onupgradeneeded=()=>{const v=h.result;v.objectStoreNames.contains(e)||v.createObjectStore(e,{keyPath:"key"})},h.onsuccess=()=>{const y=h.result.transaction(e,"readonly").objectStore(e).openCursor();y.onsuccess=_=>{const b=_.target.result;b?(t.set(b.key,b.value.value),b.continue()):f(h.result)},y.onerror=()=>d(y.error)},h.onerror=()=>d(h.error)}),i=async(f,d)=>{const h=await r;return new Promise((v,m)=>{const _=h.transaction(e,f).objectStore(e),b=d(_);b.onsuccess=()=>v(b.result),b.onerror=()=>m(b.error)})};return{put:async(f,d)=>(t.set(f,d),i("readwrite",h=>h.put({key:f,value:d}))),get:async f=>(await r,t.get(f)),del:async f=>(t.delete(f),i("readwrite",d=>d.delete(f))),getAllKeys:async()=>(await r,Array.from(t.keys())),isExists:async f=>(await r,t.has(f)),clear:async()=>(t.clear(),i("readwrite",f=>f.clear()))}},zI=NB("base64"),_re=e=>zI.put(LB,e),bre=()=>zI.get(LB),Sre=()=>zI.clear(),em=NB("iconCache"),wre=em.put,xre=e=>em.get(e),Tre=()=>em.clear(),Cre=()=>em.getAllKeys(),Ere=e=>em.del(e),kd=Dt("config/theme","default"),su=Dt("config/language",Object.values(rs).includes(navigator.language)?navigator.language:rs.EN_US),vL=Dt("config/is-sidebar-collapsed",!0),yu=Ve({get:()=>yre.value?!0:vL.value,set:e=>{vL.value=e}}),hv=Dt("config/font",nu.MI_SANS),Ea=Dt("config/custom-background-image",""),K0=Dt("config/dashboard-transparent",90),Z0=Dt("config/auto-upgrade",!1),q0=Dt("config/auto-upgrade-core",!1),_d=Dt("config/split-overview-page",!1),ip=Dt("config/show-ip-and-connection-info",!0),J0=Dt("config/auto-ip-check",!0),Q0=Dt("config/auto-connection-check",!0),e_=Dt("config/show-global-proxy",!0),Rx=Dt("config/collapse-group-map",{}),pv=Dt("config/two-columns",!0),vv=Dt("config/speedtest-url","http://www.gstatic.com/generate_204"),gv=Dt("config/speedtest-timeout",5e3),t_=Dt("config/proxy-sort-type",ru.DEFAULT),n_=Dt("config/automatic-disconnection",!0),mv=Dt("config/truncate-proxy-name",!0),yv=Dt("config/proxy-preview-type",fg.AUTO),r_=Dt("config/hide-unavailable-proxies",!1),lu=Dt("config/low-latency",400),Xs=Dt("config/medium-latency",800),qc=Dt("config/ipv6-test",!1),_v=Dt("config/proxy-card-size",Jg.LARGE),i_=Dt("config/show-hidden-group",!1),bv=Dt("config/icon-size",16),o_=Dt("config/icon-margin-right",4),Fc=Dt("config/use-connecticon-card",window.innerWidth<640),Sv=Dt("config/proxy-chain-direction",Qg.NORMAL),a_=Dt("config/connecticon-table-size",dg.SMALL),Ed=Dt("config/connection-table-columns",[dt.Close,dt.Host,dt.Type,dt.Rule,dt.Chains,dt.DlSpeed,dt.UlSpeed,dt.Download,dt.Upload,dt.ConnectTime]),Qa=Dt("config/connection-card-lines",[[dt.Host,dt.ConnectTime],[dt.Chains,dt.DlSpeed,dt.Details,dt.Close]]),So=Dt("config/source-ip-label-map",{}),s_=Dt("config/log-retention-limit",1e3),Are={key:0,class:"toast-sm toast toast-start toast-top z-50 max-w-64 whitespace-normal text-sm"},Ire={class:"breaks-all alert alert-warning flex w-72 whitespace-normal p-2"},Rre={href:"https://github.com/Zephyruso/zashboard/blob/main/README.md",target:"_blank",class:"flex-1"},Pre=rt({__name:"App",setup(e){const t=ke(),{tipContent:n,tipShowModel:r}=Fb(),i={[nu.MI_SANS]:"font-MiSans",[nu.SARASA_UI]:"font-SarasaUI",[nu.PING_FANG]:"font-PingFang",[nu.FIRA_SANS]:"font-FiraSans",[nu.SYSTEM_UI]:"font-SystemUI"},o=Ve(()=>i[hv.value]),a=La().format("YYYY-MM-DD"),s=ke(""),l=async()=>{s.value=await bre()||""};Wt(()=>Ea.value,()=>{Ea.value.includes(c1)&&l()},{immediate:!0});const u=Ve(()=>Ea.value.includes(c1)?s.value:Ea.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 lo(()=>{Wt(kd,()=>{document.body.setAttribute("data-theme",kd.value),c()},{immediate:!0})}),(f,d)=>(K(),te("div",{ref_key:"app",ref:t,id:"app-content",class:it(`flex h-dvh w-screen overflow-x-hidden bg-base-100 ${o.value} custom-background-${N(K0)} ${N(Ea)&&"custom-background bg-cover"}`),style:Gr(`background-image: url('${u.value}');`)},[ye(N(OI)),N(r)?(K(),te("div",Are,[L("div",Ire,[L("a",Rre,ie(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(MQ),{class:"w-4 cursor-pointer"})])])])):gt("",!0)],6))}}),Ore={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",clearIconCache:"Clear Icon Cache",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",sniffHost:"Sniff Host",ipScreenshotTip:"Please make sure to hide the IP when taking screenshots."},Mre={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:"Импорт настроек",clearIconCache:"Очистить кэш иконок",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:"Обратное",sniffHost:"Захватывать хост",ipScreenshotTip:"Пожалуйста, убедитесь, что реальный IP скрыт при создании скриншотов."},Dre={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:"导入设置",clearIconCache:"清空图标缓存",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:"反向",sniffHost:"嗅探主机",ipScreenshotTip:"截图时请确保隐藏IP"},WI=Lne({locale:su.value,messages:{[rs.EN_US]:Ore,[rs.ZH_CN]:Dre,[rs.RU_RU]:Mre}});var Hp={exports:{}};/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
*/var Lre=Hp.exports,gL;function Nre(){return gL||(gL=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,C=32,T=64,A=128,P=256,I=512,R=30,O="...",D=800,$=16,F=1,z=2,B=3,Y=1/0,j=9007199254740991,se=17976931348623157e292,ge=NaN,ve=4294967295,Me=ve-1,Ne=ve>>>1,ze=[["ary",A],["bind",y],["bindKey",_],["curry",w],["curryRight",S],["flip",I],["partial",C],["partialRight",T],["rearg",P]],De="[object Arguments]",je="[object Array]",ce="[object AsyncFunction]",Ee="[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]",Ke="[object ArrayBuffer]",pt="[object DataView]",ee="[object Float32Array]",oe="[object Float64Array]",he="[object Int8Array]",Ce="[object Int16Array]",He="[object Int32Array]",re="[object Uint8Array]",Ae="[object Uint8ClampedArray]",Fe="[object Uint16Array]",Qe="[object Uint32Array]",Ge=/\b__p \+= '';/g,We=/\b(__p \+=) '' \+/g,et=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Rt=/&(?:amp|lt|gt|quot|#39);/g,Ot=/[&<>"']/g,Nn=RegExp(Rt.source),ca=RegExp(Ot.source),Pn=/<%-([\s\S]+?)%>/g,pr=/<%([\s\S]+?)%>/g,Pf=/<%=([\s\S]+?)%>/g,Sl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ua=/^\w*$/,wm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Of=/[\\^$.*+?()[\]{}|]/g,KS=RegExp(Of.source),Di=/^\s+/,Mf=/\s/,xm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Tm=/\{\n\/\* \[wrapped with (.+)\] \*/,Lh=/,? & /,Cm=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fa=/[()=,{}\[\]\/\s]/,Em=/\\(\\)?/g,Am=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nh=/\w*$/,Im=/^[-+]0x[0-9a-f]+$/i,ZS=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,ne=/^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,Qn="\\ud800-\\udfff",Yr="\\u0300-\\u036f",Mo="\\ufe20-\\ufe2f",zu="\\u20d0-\\u20ff",Pr=Yr+Mo+zu,kh="\\u2700-\\u27bf",Fh="a-z\\xdf-\\xf6\\xf8-\\xff",uz="\\xac\\xb1\\xd7\\xf7",cz="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fz="\\u2000-\\u206f",dz=" \\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",n2="A-Z\\xc0-\\xd6\\xd8-\\xde",r2="\\ufe0e\\ufe0f",i2=uz+cz+fz+dz,qS="['’]",hz="["+Qn+"]",o2="["+i2+"]",Rm="["+Pr+"]",a2="\\d+",pz="["+kh+"]",s2="["+Fh+"]",l2="[^"+Qn+i2+a2+kh+Fh+n2+"]",JS="\\ud83c[\\udffb-\\udfff]",vz="(?:"+Rm+"|"+JS+")",u2="[^"+Qn+"]",QS="(?:\\ud83c[\\udde6-\\uddff]){2}",ew="[\\ud800-\\udbff][\\udc00-\\udfff]",Df="["+n2+"]",c2="\\u200d",f2="(?:"+s2+"|"+l2+")",gz="(?:"+Df+"|"+l2+")",d2="(?:"+qS+"(?:d|ll|m|re|s|t|ve))?",h2="(?:"+qS+"(?:D|LL|M|RE|S|T|VE))?",p2=vz+"?",v2="["+r2+"]?",mz="(?:"+c2+"(?:"+[u2,QS,ew].join("|")+")"+v2+p2+")*",yz="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_z="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",g2=v2+p2+mz,bz="(?:"+[pz,QS,ew].join("|")+")"+g2,Sz="(?:"+[u2+Rm+"?",Rm,QS,ew,hz].join("|")+")",wz=RegExp(qS,"g"),xz=RegExp(Rm,"g"),tw=RegExp(JS+"(?="+JS+")|"+Sz+g2,"g"),Tz=RegExp([Df+"?"+s2+"+"+d2+"(?="+[o2,Df,"$"].join("|")+")",gz+"+"+h2+"(?="+[o2,Df+f2,"$"].join("|")+")",Df+"?"+f2+"+"+d2,Df+"+"+h2,_z,yz,a2,bz].join("|"),"g"),Cz=RegExp("["+c2+Qn+Pr+r2+"]"),Ez=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Az=["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"],Iz=-1,Vn={};Vn[ee]=Vn[oe]=Vn[he]=Vn[Ce]=Vn[He]=Vn[re]=Vn[Ae]=Vn[Fe]=Vn[Qe]=!0,Vn[De]=Vn[je]=Vn[Ke]=Vn[Ee]=Vn[pt]=Vn[Se]=Vn[Oe]=Vn[$e]=Vn[G]=Vn[le]=Vn[pe]=Vn[q]=Vn[fe]=Vn[_e]=Vn[de]=!1;var kn={};kn[De]=kn[je]=kn[Ke]=kn[pt]=kn[Ee]=kn[Se]=kn[ee]=kn[oe]=kn[he]=kn[Ce]=kn[He]=kn[G]=kn[le]=kn[pe]=kn[q]=kn[fe]=kn[_e]=kn[Pe]=kn[re]=kn[Ae]=kn[Fe]=kn[Qe]=!0,kn[Oe]=kn[$e]=kn[de]=!1;var Rz={À:"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"},Pz={"&":"&","<":"<",">":">",'"':""","'":"'"},Oz={"&":"&","<":"<",">":">",""":'"',"'":"'"},Mz={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dz=parseFloat,Lz=parseInt,m2=typeof vy=="object"&&vy&&vy.Object===Object&&vy,Nz=typeof self=="object"&&self&&self.Object===Object&&self,kr=m2||Nz||Function("return this")(),nw=t&&!t.nodeType&&t,Wu=nw&&!0&&e&&!e.nodeType&&e,y2=Wu&&Wu.exports===nw,rw=y2&&m2.process,Do=function(){try{var ae=Wu&&Wu.require&&Wu.require("util").types;return ae||rw&&rw.binding&&rw.binding("util")}catch{}}(),_2=Do&&Do.isArrayBuffer,b2=Do&&Do.isDate,S2=Do&&Do.isMap,w2=Do&&Do.isRegExp,x2=Do&&Do.isSet,T2=Do&&Do.isTypedArray;function uo(ae,xe,me){switch(me.length){case 0:return ae.call(xe);case 1:return ae.call(xe,me[0]);case 2:return ae.call(xe,me[0],me[1]);case 3:return ae.call(xe,me[0],me[1],me[2])}return ae.apply(xe,me)}function kz(ae,xe,me,nt){for(var Lt=-1,dn=ae==null?0:ae.length;++Lt<dn;){var Sr=ae[Lt];xe(nt,Sr,me(Sr),ae)}return nt}function Lo(ae,xe){for(var me=-1,nt=ae==null?0:ae.length;++me<nt&&xe(ae[me],me,ae)!==!1;);return ae}function Fz(ae,xe){for(var me=ae==null?0:ae.length;me--&&xe(ae[me],me,ae)!==!1;);return ae}function C2(ae,xe){for(var me=-1,nt=ae==null?0:ae.length;++me<nt;)if(!xe(ae[me],me,ae))return!1;return!0}function wl(ae,xe){for(var me=-1,nt=ae==null?0:ae.length,Lt=0,dn=[];++me<nt;){var Sr=ae[me];xe(Sr,me,ae)&&(dn[Lt++]=Sr)}return dn}function Pm(ae,xe){var me=ae==null?0:ae.length;return!!me&&Lf(ae,xe,0)>-1}function iw(ae,xe,me){for(var nt=-1,Lt=ae==null?0:ae.length;++nt<Lt;)if(me(xe,ae[nt]))return!0;return!1}function zn(ae,xe){for(var me=-1,nt=ae==null?0:ae.length,Lt=Array(nt);++me<nt;)Lt[me]=xe(ae[me],me,ae);return Lt}function xl(ae,xe){for(var me=-1,nt=xe.length,Lt=ae.length;++me<nt;)ae[Lt+me]=xe[me];return ae}function ow(ae,xe,me,nt){var Lt=-1,dn=ae==null?0:ae.length;for(nt&&dn&&(me=ae[++Lt]);++Lt<dn;)me=xe(me,ae[Lt],Lt,ae);return me}function $z(ae,xe,me,nt){var Lt=ae==null?0:ae.length;for(nt&&Lt&&(me=ae[--Lt]);Lt--;)me=xe(me,ae[Lt],Lt,ae);return me}function aw(ae,xe){for(var me=-1,nt=ae==null?0:ae.length;++me<nt;)if(xe(ae[me],me,ae))return!0;return!1}var Bz=sw("length");function Vz(ae){return ae.split("")}function Uz(ae){return ae.match(Cm)||[]}function E2(ae,xe,me){var nt;return me(ae,function(Lt,dn,Sr){if(xe(Lt,dn,Sr))return nt=dn,!1}),nt}function Om(ae,xe,me,nt){for(var Lt=ae.length,dn=me+(nt?1:-1);nt?dn--:++dn<Lt;)if(xe(ae[dn],dn,ae))return dn;return-1}function Lf(ae,xe,me){return xe===xe?Qz(ae,xe,me):Om(ae,A2,me)}function Hz(ae,xe,me,nt){for(var Lt=me-1,dn=ae.length;++Lt<dn;)if(nt(ae[Lt],xe))return Lt;return-1}function A2(ae){return ae!==ae}function I2(ae,xe){var me=ae==null?0:ae.length;return me?uw(ae,xe)/me:ge}function sw(ae){return function(xe){return xe==null?n:xe[ae]}}function lw(ae){return function(xe){return ae==null?n:ae[xe]}}function R2(ae,xe,me,nt,Lt){return Lt(ae,function(dn,Sr,On){me=nt?(nt=!1,dn):xe(me,dn,Sr,On)}),me}function Gz(ae,xe){var me=ae.length;for(ae.sort(xe);me--;)ae[me]=ae[me].value;return ae}function uw(ae,xe){for(var me,nt=-1,Lt=ae.length;++nt<Lt;){var dn=xe(ae[nt]);dn!==n&&(me=me===n?dn:me+dn)}return me}function cw(ae,xe){for(var me=-1,nt=Array(ae);++me<ae;)nt[me]=xe(me);return nt}function zz(ae,xe){return zn(xe,function(me){return[me,ae[me]]})}function P2(ae){return ae&&ae.slice(0,L2(ae)+1).replace(Di,"")}function co(ae){return function(xe){return ae(xe)}}function fw(ae,xe){return zn(xe,function(me){return ae[me]})}function $h(ae,xe){return ae.has(xe)}function O2(ae,xe){for(var me=-1,nt=ae.length;++me<nt&&Lf(xe,ae[me],0)>-1;);return me}function M2(ae,xe){for(var me=ae.length;me--&&Lf(xe,ae[me],0)>-1;);return me}function Wz(ae,xe){for(var me=ae.length,nt=0;me--;)ae[me]===xe&&++nt;return nt}var jz=lw(Rz),Yz=lw(Pz);function Xz(ae){return"\\"+Mz[ae]}function Kz(ae,xe){return ae==null?n:ae[xe]}function Nf(ae){return Cz.test(ae)}function Zz(ae){return Ez.test(ae)}function qz(ae){for(var xe,me=[];!(xe=ae.next()).done;)me.push(xe.value);return me}function dw(ae){var xe=-1,me=Array(ae.size);return ae.forEach(function(nt,Lt){me[++xe]=[Lt,nt]}),me}function D2(ae,xe){return function(me){return ae(xe(me))}}function Tl(ae,xe){for(var me=-1,nt=ae.length,Lt=0,dn=[];++me<nt;){var Sr=ae[me];(Sr===xe||Sr===c)&&(ae[me]=c,dn[Lt++]=me)}return dn}function Mm(ae){var xe=-1,me=Array(ae.size);return ae.forEach(function(nt){me[++xe]=nt}),me}function Jz(ae){var xe=-1,me=Array(ae.size);return ae.forEach(function(nt){me[++xe]=[nt,nt]}),me}function Qz(ae,xe,me){for(var nt=me-1,Lt=ae.length;++nt<Lt;)if(ae[nt]===xe)return nt;return-1}function e9(ae,xe,me){for(var nt=me+1;nt--;)if(ae[nt]===xe)return nt;return nt}function kf(ae){return Nf(ae)?n9(ae):Bz(ae)}function da(ae){return Nf(ae)?r9(ae):Vz(ae)}function L2(ae){for(var xe=ae.length;xe--&&Mf.test(ae.charAt(xe)););return xe}var t9=lw(Oz);function n9(ae){for(var xe=tw.lastIndex=0;tw.test(ae);)++xe;return xe}function r9(ae){return ae.match(tw)||[]}function i9(ae){return ae.match(Tz)||[]}var o9=function ae(xe){xe=xe==null?kr:Ff.defaults(kr.Object(),xe,Ff.pick(kr,Az));var me=xe.Array,nt=xe.Date,Lt=xe.Error,dn=xe.Function,Sr=xe.Math,On=xe.Object,hw=xe.RegExp,a9=xe.String,No=xe.TypeError,Dm=me.prototype,s9=dn.prototype,$f=On.prototype,Lm=xe["__core-js_shared__"],Nm=s9.toString,wn=$f.hasOwnProperty,l9=0,N2=function(){var p=/[^.]+$/.exec(Lm&&Lm.keys&&Lm.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),km=$f.toString,u9=Nm.call(On),c9=kr._,f9=hw("^"+Nm.call(wn).replace(Of,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fm=y2?xe.Buffer:n,Cl=xe.Symbol,$m=xe.Uint8Array,k2=Fm?Fm.allocUnsafe:n,Bm=D2(On.getPrototypeOf,On),F2=On.create,$2=$f.propertyIsEnumerable,Vm=Dm.splice,B2=Cl?Cl.isConcatSpreadable:n,Bh=Cl?Cl.iterator:n,ju=Cl?Cl.toStringTag:n,Um=function(){try{var p=qu(On,"defineProperty");return p({},"",{}),p}catch{}}(),d9=xe.clearTimeout!==kr.clearTimeout&&xe.clearTimeout,h9=nt&&nt.now!==kr.Date.now&&nt.now,p9=xe.setTimeout!==kr.setTimeout&&xe.setTimeout,Hm=Sr.ceil,Gm=Sr.floor,pw=On.getOwnPropertySymbols,v9=Fm?Fm.isBuffer:n,V2=xe.isFinite,g9=Dm.join,m9=D2(On.keys,On),wr=Sr.max,Xr=Sr.min,y9=nt.now,_9=xe.parseInt,U2=Sr.random,b9=Dm.reverse,vw=qu(xe,"DataView"),Vh=qu(xe,"Map"),gw=qu(xe,"Promise"),Bf=qu(xe,"Set"),Uh=qu(xe,"WeakMap"),Hh=qu(On,"create"),zm=Uh&&new Uh,Vf={},S9=Ju(vw),w9=Ju(Vh),x9=Ju(gw),T9=Ju(Bf),C9=Ju(Uh),Wm=Cl?Cl.prototype:n,Gh=Wm?Wm.valueOf:n,H2=Wm?Wm.toString:n;function k(p){if(er(p)&&!Ft(p)&&!(p instanceof en)){if(p instanceof ko)return p;if(wn.call(p,"__wrapped__"))return GO(p)}return new ko(p)}var Uf=function(){function p(){}return function(g){if(!qn(g))return{};if(F2)return F2(g);p.prototype=g;var x=new p;return p.prototype=n,x}}();function jm(){}function ko(p,g){this.__wrapped__=p,this.__actions__=[],this.__chain__=!!g,this.__index__=0,this.__values__=n}k.templateSettings={escape:Pn,evaluate:pr,interpolate:Pf,variable:"",imports:{_:k}},k.prototype=jm.prototype,k.prototype.constructor=k,ko.prototype=Uf(jm.prototype),ko.prototype.constructor=ko;function en(p){this.__wrapped__=p,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ve,this.__views__=[]}function E9(){var p=new en(this.__wrapped__);return p.__actions__=Li(this.__actions__),p.__dir__=this.__dir__,p.__filtered__=this.__filtered__,p.__iteratees__=Li(this.__iteratees__),p.__takeCount__=this.__takeCount__,p.__views__=Li(this.__views__),p}function A9(){if(this.__filtered__){var p=new en(this);p.__dir__=-1,p.__filtered__=!0}else p=this.clone(),p.__dir__*=-1;return p}function I9(){var p=this.__wrapped__.value(),g=this.__dir__,x=Ft(p),E=g<0,M=x?p.length:0,V=VW(0,M,this.__views__),X=V.start,J=V.end,ue=J-X,Ie=E?J:X-1,Re=this.__iteratees__,Le=Re.length,qe=0,ft=Xr(ue,this.__takeCount__);if(!x||!E&&M==ue&&ft==ue)return dO(p,this.__actions__);var St=[];e:for(;ue--&&qe<ft;){Ie+=g;for(var zt=-1,wt=p[Ie];++zt<Le;){var Zt=Re[zt],on=Zt.iteratee,po=Zt.type,yi=on(wt);if(po==z)wt=yi;else if(!yi){if(po==F)continue e;break e}}St[qe++]=wt}return St}en.prototype=Uf(jm.prototype),en.prototype.constructor=en;function Yu(p){var g=-1,x=p==null?0:p.length;for(this.clear();++g<x;){var E=p[g];this.set(E[0],E[1])}}function R9(){this.__data__=Hh?Hh(null):{},this.size=0}function P9(p){var g=this.has(p)&&delete this.__data__[p];return this.size-=g?1:0,g}function O9(p){var g=this.__data__;if(Hh){var x=g[p];return x===l?n:x}return wn.call(g,p)?g[p]:n}function M9(p){var g=this.__data__;return Hh?g[p]!==n:wn.call(g,p)}function D9(p,g){var x=this.__data__;return this.size+=this.has(p)?0:1,x[p]=Hh&&g===n?l:g,this}Yu.prototype.clear=R9,Yu.prototype.delete=P9,Yu.prototype.get=O9,Yu.prototype.has=M9,Yu.prototype.set=D9;function ws(p){var g=-1,x=p==null?0:p.length;for(this.clear();++g<x;){var E=p[g];this.set(E[0],E[1])}}function L9(){this.__data__=[],this.size=0}function N9(p){var g=this.__data__,x=Ym(g,p);if(x<0)return!1;var E=g.length-1;return x==E?g.pop():Vm.call(g,x,1),--this.size,!0}function k9(p){var g=this.__data__,x=Ym(g,p);return x<0?n:g[x][1]}function F9(p){return Ym(this.__data__,p)>-1}function $9(p,g){var x=this.__data__,E=Ym(x,p);return E<0?(++this.size,x.push([p,g])):x[E][1]=g,this}ws.prototype.clear=L9,ws.prototype.delete=N9,ws.prototype.get=k9,ws.prototype.has=F9,ws.prototype.set=$9;function xs(p){var g=-1,x=p==null?0:p.length;for(this.clear();++g<x;){var E=p[g];this.set(E[0],E[1])}}function B9(){this.size=0,this.__data__={hash:new Yu,map:new(Vh||ws),string:new Yu}}function V9(p){var g=oy(this,p).delete(p);return this.size-=g?1:0,g}function U9(p){return oy(this,p).get(p)}function H9(p){return oy(this,p).has(p)}function G9(p,g){var x=oy(this,p),E=x.size;return x.set(p,g),this.size+=x.size==E?0:1,this}xs.prototype.clear=B9,xs.prototype.delete=V9,xs.prototype.get=U9,xs.prototype.has=H9,xs.prototype.set=G9;function Xu(p){var g=-1,x=p==null?0:p.length;for(this.__data__=new xs;++g<x;)this.add(p[g])}function z9(p){return this.__data__.set(p,l),this}function W9(p){return this.__data__.has(p)}Xu.prototype.add=Xu.prototype.push=z9,Xu.prototype.has=W9;function ha(p){var g=this.__data__=new ws(p);this.size=g.size}function j9(){this.__data__=new ws,this.size=0}function Y9(p){var g=this.__data__,x=g.delete(p);return this.size=g.size,x}function X9(p){return this.__data__.get(p)}function K9(p){return this.__data__.has(p)}function Z9(p,g){var x=this.__data__;if(x instanceof ws){var E=x.__data__;if(!Vh||E.length<i-1)return E.push([p,g]),this.size=++x.size,this;x=this.__data__=new xs(E)}return x.set(p,g),this.size=x.size,this}ha.prototype.clear=j9,ha.prototype.delete=Y9,ha.prototype.get=X9,ha.prototype.has=K9,ha.prototype.set=Z9;function G2(p,g){var x=Ft(p),E=!x&&Qu(p),M=!x&&!E&&Pl(p),V=!x&&!E&&!M&&Wf(p),X=x||E||M||V,J=X?cw(p.length,a9):[],ue=J.length;for(var Ie in p)(g||wn.call(p,Ie))&&!(X&&(Ie=="length"||M&&(Ie=="offset"||Ie=="parent")||V&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||As(Ie,ue)))&&J.push(Ie);return J}function z2(p){var g=p.length;return g?p[Aw(0,g-1)]:n}function q9(p,g){return ay(Li(p),Ku(g,0,p.length))}function J9(p){return ay(Li(p))}function mw(p,g,x){(x!==n&&!pa(p[g],x)||x===n&&!(g in p))&&Ts(p,g,x)}function zh(p,g,x){var E=p[g];(!(wn.call(p,g)&&pa(E,x))||x===n&&!(g in p))&&Ts(p,g,x)}function Ym(p,g){for(var x=p.length;x--;)if(pa(p[x][0],g))return x;return-1}function Q9(p,g,x,E){return El(p,function(M,V,X){g(E,M,x(M),X)}),E}function W2(p,g){return p&&Ga(g,Or(g),p)}function eW(p,g){return p&&Ga(g,ki(g),p)}function Ts(p,g,x){g=="__proto__"&&Um?Um(p,g,{configurable:!0,enumerable:!0,value:x,writable:!0}):p[g]=x}function yw(p,g){for(var x=-1,E=g.length,M=me(E),V=p==null;++x<E;)M[x]=V?n:Jw(p,g[x]);return M}function Ku(p,g,x){return p===p&&(x!==n&&(p=p<=x?p:x),g!==n&&(p=p>=g?p:g)),p}function Fo(p,g,x,E,M,V){var X,J=g&f,ue=g&d,Ie=g&h;if(x&&(X=M?x(p,E,M,V):x(p)),X!==n)return X;if(!qn(p))return p;var Re=Ft(p);if(Re){if(X=HW(p),!J)return Li(p,X)}else{var Le=Kr(p),qe=Le==$e||Le==H;if(Pl(p))return vO(p,J);if(Le==pe||Le==De||qe&&!M){if(X=ue||qe?{}:LO(p),!J)return ue?OW(p,eW(X,p)):PW(p,W2(X,p))}else{if(!kn[Le])return M?p:{};X=GW(p,Le,J)}}V||(V=new ha);var ft=V.get(p);if(ft)return ft;V.set(p,X),uM(p)?p.forEach(function(wt){X.add(Fo(wt,g,x,wt,p,V))}):sM(p)&&p.forEach(function(wt,Zt){X.set(Zt,Fo(wt,g,x,Zt,p,V))});var St=Ie?ue?$w:Fw:ue?ki:Or,zt=Re?n:St(p);return Lo(zt||p,function(wt,Zt){zt&&(Zt=wt,wt=p[Zt]),zh(X,Zt,Fo(wt,g,x,Zt,p,V))}),X}function tW(p){var g=Or(p);return function(x){return j2(x,p,g)}}function j2(p,g,x){var E=x.length;if(p==null)return!E;for(p=On(p);E--;){var M=x[E],V=g[M],X=p[M];if(X===n&&!(M in p)||!V(X))return!1}return!0}function Y2(p,g,x){if(typeof p!="function")throw new No(a);return qh(function(){p.apply(n,x)},g)}function Wh(p,g,x,E){var M=-1,V=Pm,X=!0,J=p.length,ue=[],Ie=g.length;if(!J)return ue;x&&(g=zn(g,co(x))),E?(V=iw,X=!1):g.length>=i&&(V=$h,X=!1,g=new Xu(g));e:for(;++M<J;){var Re=p[M],Le=x==null?Re:x(Re);if(Re=E||Re!==0?Re:0,X&&Le===Le){for(var qe=Ie;qe--;)if(g[qe]===Le)continue e;ue.push(Re)}else V(g,Le,E)||ue.push(Re)}return ue}var El=bO(Ha),X2=bO(bw,!0);function nW(p,g){var x=!0;return El(p,function(E,M,V){return x=!!g(E,M,V),x}),x}function Xm(p,g,x){for(var E=-1,M=p.length;++E<M;){var V=p[E],X=g(V);if(X!=null&&(J===n?X===X&&!ho(X):x(X,J)))var J=X,ue=V}return ue}function rW(p,g,x,E){var M=p.length;for(x=Ut(x),x<0&&(x=-x>M?0:M+x),E=E===n||E>M?M:Ut(E),E<0&&(E+=M),E=x>E?0:fM(E);x<E;)p[x++]=g;return p}function K2(p,g){var x=[];return El(p,function(E,M,V){g(E,M,V)&&x.push(E)}),x}function Fr(p,g,x,E,M){var V=-1,X=p.length;for(x||(x=WW),M||(M=[]);++V<X;){var J=p[V];g>0&&x(J)?g>1?Fr(J,g-1,x,E,M):xl(M,J):E||(M[M.length]=J)}return M}var _w=SO(),Z2=SO(!0);function Ha(p,g){return p&&_w(p,g,Or)}function bw(p,g){return p&&Z2(p,g,Or)}function Km(p,g){return wl(g,function(x){return Is(p[x])})}function Zu(p,g){g=Il(g,p);for(var x=0,E=g.length;p!=null&&x<E;)p=p[za(g[x++])];return x&&x==E?p:n}function q2(p,g,x){var E=g(p);return Ft(p)?E:xl(E,x(p))}function gi(p){return p==null?p===n?Z:we:ju&&ju in On(p)?BW(p):JW(p)}function Sw(p,g){return p>g}function iW(p,g){return p!=null&&wn.call(p,g)}function oW(p,g){return p!=null&&g in On(p)}function aW(p,g,x){return p>=Xr(g,x)&&p<wr(g,x)}function ww(p,g,x){for(var E=x?iw:Pm,M=p[0].length,V=p.length,X=V,J=me(V),ue=1/0,Ie=[];X--;){var Re=p[X];X&&g&&(Re=zn(Re,co(g))),ue=Xr(Re.length,ue),J[X]=!x&&(g||M>=120&&Re.length>=120)?new Xu(X&&Re):n}Re=p[0];var Le=-1,qe=J[0];e:for(;++Le<M&&Ie.length<ue;){var ft=Re[Le],St=g?g(ft):ft;if(ft=x||ft!==0?ft:0,!(qe?$h(qe,St):E(Ie,St,x))){for(X=V;--X;){var zt=J[X];if(!(zt?$h(zt,St):E(p[X],St,x)))continue e}qe&&qe.push(St),Ie.push(ft)}}return Ie}function sW(p,g,x,E){return Ha(p,function(M,V,X){g(E,x(M),V,X)}),E}function jh(p,g,x){g=Il(g,p),p=$O(p,g);var E=p==null?p:p[za(Bo(g))];return E==null?n:uo(E,p,x)}function J2(p){return er(p)&&gi(p)==De}function lW(p){return er(p)&&gi(p)==Ke}function uW(p){return er(p)&&gi(p)==Se}function Yh(p,g,x,E,M){return p===g?!0:p==null||g==null||!er(p)&&!er(g)?p!==p&&g!==g:cW(p,g,x,E,Yh,M)}function cW(p,g,x,E,M,V){var X=Ft(p),J=Ft(g),ue=X?je:Kr(p),Ie=J?je:Kr(g);ue=ue==De?pe:ue,Ie=Ie==De?pe:Ie;var Re=ue==pe,Le=Ie==pe,qe=ue==Ie;if(qe&&Pl(p)){if(!Pl(g))return!1;X=!0,Re=!1}if(qe&&!Re)return V||(V=new ha),X||Wf(p)?OO(p,g,x,E,M,V):FW(p,g,ue,x,E,M,V);if(!(x&v)){var ft=Re&&wn.call(p,"__wrapped__"),St=Le&&wn.call(g,"__wrapped__");if(ft||St){var zt=ft?p.value():p,wt=St?g.value():g;return V||(V=new ha),M(zt,wt,x,E,V)}}return qe?(V||(V=new ha),$W(p,g,x,E,M,V)):!1}function fW(p){return er(p)&&Kr(p)==G}function xw(p,g,x,E){var M=x.length,V=M,X=!E;if(p==null)return!V;for(p=On(p);M--;){var J=x[M];if(X&&J[2]?J[1]!==p[J[0]]:!(J[0]in p))return!1}for(;++M<V;){J=x[M];var ue=J[0],Ie=p[ue],Re=J[1];if(X&&J[2]){if(Ie===n&&!(ue in p))return!1}else{var Le=new ha;if(E)var qe=E(Ie,Re,ue,p,g,Le);if(!(qe===n?Yh(Re,Ie,v|m,E,Le):qe))return!1}}return!0}function Q2(p){if(!qn(p)||YW(p))return!1;var g=Is(p)?f9:vt;return g.test(Ju(p))}function dW(p){return er(p)&&gi(p)==q}function hW(p){return er(p)&&Kr(p)==fe}function pW(p){return er(p)&&dy(p.length)&&!!Vn[gi(p)]}function eO(p){return typeof p=="function"?p:p==null?Fi:typeof p=="object"?Ft(p)?rO(p[0],p[1]):nO(p):wM(p)}function Tw(p){if(!Zh(p))return m9(p);var g=[];for(var x in On(p))wn.call(p,x)&&x!="constructor"&&g.push(x);return g}function vW(p){if(!qn(p))return qW(p);var g=Zh(p),x=[];for(var E in p)E=="constructor"&&(g||!wn.call(p,E))||x.push(E);return x}function Cw(p,g){return p<g}function tO(p,g){var x=-1,E=Ni(p)?me(p.length):[];return El(p,function(M,V,X){E[++x]=g(M,V,X)}),E}function nO(p){var g=Vw(p);return g.length==1&&g[0][2]?kO(g[0][0],g[0][1]):function(x){return x===p||xw(x,p,g)}}function rO(p,g){return Hw(p)&&NO(g)?kO(za(p),g):function(x){var E=Jw(x,p);return E===n&&E===g?Qw(x,p):Yh(g,E,v|m)}}function Zm(p,g,x,E,M){p!==g&&_w(g,function(V,X){if(M||(M=new ha),qn(V))gW(p,g,X,x,Zm,E,M);else{var J=E?E(zw(p,X),V,X+"",p,g,M):n;J===n&&(J=V),mw(p,X,J)}},ki)}function gW(p,g,x,E,M,V,X){var J=zw(p,x),ue=zw(g,x),Ie=X.get(ue);if(Ie){mw(p,x,Ie);return}var Re=V?V(J,ue,x+"",p,g,X):n,Le=Re===n;if(Le){var qe=Ft(ue),ft=!qe&&Pl(ue),St=!qe&&!ft&&Wf(ue);Re=ue,qe||ft||St?Ft(J)?Re=J:ur(J)?Re=Li(J):ft?(Le=!1,Re=vO(ue,!0)):St?(Le=!1,Re=gO(ue,!0)):Re=[]:Jh(ue)||Qu(ue)?(Re=J,Qu(J)?Re=dM(J):(!qn(J)||Is(J))&&(Re=LO(ue))):Le=!1}Le&&(X.set(ue,Re),M(Re,ue,E,V,X),X.delete(ue)),mw(p,x,Re)}function iO(p,g){var x=p.length;if(x)return g+=g<0?x:0,As(g,x)?p[g]:n}function oO(p,g,x){g.length?g=zn(g,function(V){return Ft(V)?function(X){return Zu(X,V.length===1?V[0]:V)}:V}):g=[Fi];var E=-1;g=zn(g,co(yt()));var M=tO(p,function(V,X,J){var ue=zn(g,function(Ie){return Ie(V)});return{criteria:ue,index:++E,value:V}});return Gz(M,function(V,X){return RW(V,X,x)})}function mW(p,g){return aO(p,g,function(x,E){return Qw(p,E)})}function aO(p,g,x){for(var E=-1,M=g.length,V={};++E<M;){var X=g[E],J=Zu(p,X);x(J,X)&&Xh(V,Il(X,p),J)}return V}function yW(p){return function(g){return Zu(g,p)}}function Ew(p,g,x,E){var M=E?Hz:Lf,V=-1,X=g.length,J=p;for(p===g&&(g=Li(g)),x&&(J=zn(p,co(x)));++V<X;)for(var ue=0,Ie=g[V],Re=x?x(Ie):Ie;(ue=M(J,Re,ue,E))>-1;)J!==p&&Vm.call(J,ue,1),Vm.call(p,ue,1);return p}function sO(p,g){for(var x=p?g.length:0,E=x-1;x--;){var M=g[x];if(x==E||M!==V){var V=M;As(M)?Vm.call(p,M,1):Pw(p,M)}}return p}function Aw(p,g){return p+Gm(U2()*(g-p+1))}function _W(p,g,x,E){for(var M=-1,V=wr(Hm((g-p)/(x||1)),0),X=me(V);V--;)X[E?V:++M]=p,p+=x;return X}function Iw(p,g){var x="";if(!p||g<1||g>j)return x;do g%2&&(x+=p),g=Gm(g/2),g&&(p+=p);while(g);return x}function jt(p,g){return Ww(FO(p,g,Fi),p+"")}function bW(p){return z2(jf(p))}function SW(p,g){var x=jf(p);return ay(x,Ku(g,0,x.length))}function Xh(p,g,x,E){if(!qn(p))return p;g=Il(g,p);for(var M=-1,V=g.length,X=V-1,J=p;J!=null&&++M<V;){var ue=za(g[M]),Ie=x;if(ue==="__proto__"||ue==="constructor"||ue==="prototype")return p;if(M!=X){var Re=J[ue];Ie=E?E(Re,ue,J):n,Ie===n&&(Ie=qn(Re)?Re:As(g[M+1])?[]:{})}zh(J,ue,Ie),J=J[ue]}return p}var lO=zm?function(p,g){return zm.set(p,g),p}:Fi,wW=Um?function(p,g){return Um(p,"toString",{configurable:!0,enumerable:!1,value:tx(g),writable:!0})}:Fi;function xW(p){return ay(jf(p))}function $o(p,g,x){var E=-1,M=p.length;g<0&&(g=-g>M?0:M+g),x=x>M?M:x,x<0&&(x+=M),M=g>x?0:x-g>>>0,g>>>=0;for(var V=me(M);++E<M;)V[E]=p[E+g];return V}function TW(p,g){var x;return El(p,function(E,M,V){return x=g(E,M,V),!x}),!!x}function qm(p,g,x){var E=0,M=p==null?E:p.length;if(typeof g=="number"&&g===g&&M<=Ne){for(;E<M;){var V=E+M>>>1,X=p[V];X!==null&&!ho(X)&&(x?X<=g:X<g)?E=V+1:M=V}return M}return Rw(p,g,Fi,x)}function Rw(p,g,x,E){var M=0,V=p==null?0:p.length;if(V===0)return 0;g=x(g);for(var X=g!==g,J=g===null,ue=ho(g),Ie=g===n;M<V;){var Re=Gm((M+V)/2),Le=x(p[Re]),qe=Le!==n,ft=Le===null,St=Le===Le,zt=ho(Le);if(X)var wt=E||St;else Ie?wt=St&&(E||qe):J?wt=St&&qe&&(E||!ft):ue?wt=St&&qe&&!ft&&(E||!zt):ft||zt?wt=!1:wt=E?Le<=g:Le<g;wt?M=Re+1:V=Re}return Xr(V,Me)}function uO(p,g){for(var x=-1,E=p.length,M=0,V=[];++x<E;){var X=p[x],J=g?g(X):X;if(!x||!pa(J,ue)){var ue=J;V[M++]=X===0?0:X}}return V}function cO(p){return typeof p=="number"?p:ho(p)?ge:+p}function fo(p){if(typeof p=="string")return p;if(Ft(p))return zn(p,fo)+"";if(ho(p))return H2?H2.call(p):"";var g=p+"";return g=="0"&&1/p==-Y?"-0":g}function Al(p,g,x){var E=-1,M=Pm,V=p.length,X=!0,J=[],ue=J;if(x)X=!1,M=iw;else if(V>=i){var Ie=g?null:NW(p);if(Ie)return Mm(Ie);X=!1,M=$h,ue=new Xu}else ue=g?[]:J;e:for(;++E<V;){var Re=p[E],Le=g?g(Re):Re;if(Re=x||Re!==0?Re:0,X&&Le===Le){for(var qe=ue.length;qe--;)if(ue[qe]===Le)continue e;g&&ue.push(Le),J.push(Re)}else M(ue,Le,x)||(ue!==J&&ue.push(Le),J.push(Re))}return J}function Pw(p,g){return g=Il(g,p),p=$O(p,g),p==null||delete p[za(Bo(g))]}function fO(p,g,x,E){return Xh(p,g,x(Zu(p,g)),E)}function Jm(p,g,x,E){for(var M=p.length,V=E?M:-1;(E?V--:++V<M)&&g(p[V],V,p););return x?$o(p,E?0:V,E?V+1:M):$o(p,E?V+1:0,E?M:V)}function dO(p,g){var x=p;return x instanceof en&&(x=x.value()),ow(g,function(E,M){return M.func.apply(M.thisArg,xl([E],M.args))},x)}function Ow(p,g,x){var E=p.length;if(E<2)return E?Al(p[0]):[];for(var M=-1,V=me(E);++M<E;)for(var X=p[M],J=-1;++J<E;)J!=M&&(V[M]=Wh(V[M]||X,p[J],g,x));return Al(Fr(V,1),g,x)}function hO(p,g,x){for(var E=-1,M=p.length,V=g.length,X={};++E<M;){var J=E<V?g[E]:n;x(X,p[E],J)}return X}function Mw(p){return ur(p)?p:[]}function Dw(p){return typeof p=="function"?p:Fi}function Il(p,g){return Ft(p)?p:Hw(p,g)?[p]:HO(gn(p))}var CW=jt;function Rl(p,g,x){var E=p.length;return x=x===n?E:x,!g&&x>=E?p:$o(p,g,x)}var pO=d9||function(p){return kr.clearTimeout(p)};function vO(p,g){if(g)return p.slice();var x=p.length,E=k2?k2(x):new p.constructor(x);return p.copy(E),E}function Lw(p){var g=new p.constructor(p.byteLength);return new $m(g).set(new $m(p)),g}function EW(p,g){var x=g?Lw(p.buffer):p.buffer;return new p.constructor(x,p.byteOffset,p.byteLength)}function AW(p){var g=new p.constructor(p.source,Nh.exec(p));return g.lastIndex=p.lastIndex,g}function IW(p){return Gh?On(Gh.call(p)):{}}function gO(p,g){var x=g?Lw(p.buffer):p.buffer;return new p.constructor(x,p.byteOffset,p.length)}function mO(p,g){if(p!==g){var x=p!==n,E=p===null,M=p===p,V=ho(p),X=g!==n,J=g===null,ue=g===g,Ie=ho(g);if(!J&&!Ie&&!V&&p>g||V&&X&&ue&&!J&&!Ie||E&&X&&ue||!x&&ue||!M)return 1;if(!E&&!V&&!Ie&&p<g||Ie&&x&&M&&!E&&!V||J&&x&&M||!X&&M||!ue)return-1}return 0}function RW(p,g,x){for(var E=-1,M=p.criteria,V=g.criteria,X=M.length,J=x.length;++E<X;){var ue=mO(M[E],V[E]);if(ue){if(E>=J)return ue;var Ie=x[E];return ue*(Ie=="desc"?-1:1)}}return p.index-g.index}function yO(p,g,x,E){for(var M=-1,V=p.length,X=x.length,J=-1,ue=g.length,Ie=wr(V-X,0),Re=me(ue+Ie),Le=!E;++J<ue;)Re[J]=g[J];for(;++M<X;)(Le||M<V)&&(Re[x[M]]=p[M]);for(;Ie--;)Re[J++]=p[M++];return Re}function _O(p,g,x,E){for(var M=-1,V=p.length,X=-1,J=x.length,ue=-1,Ie=g.length,Re=wr(V-J,0),Le=me(Re+Ie),qe=!E;++M<Re;)Le[M]=p[M];for(var ft=M;++ue<Ie;)Le[ft+ue]=g[ue];for(;++X<J;)(qe||M<V)&&(Le[ft+x[X]]=p[M++]);return Le}function Li(p,g){var x=-1,E=p.length;for(g||(g=me(E));++x<E;)g[x]=p[x];return g}function Ga(p,g,x,E){var M=!x;x||(x={});for(var V=-1,X=g.length;++V<X;){var J=g[V],ue=E?E(x[J],p[J],J,x,p):n;ue===n&&(ue=p[J]),M?Ts(x,J,ue):zh(x,J,ue)}return x}function PW(p,g){return Ga(p,Uw(p),g)}function OW(p,g){return Ga(p,MO(p),g)}function Qm(p,g){return function(x,E){var M=Ft(x)?kz:Q9,V=g?g():{};return M(x,p,yt(E,2),V)}}function Hf(p){return jt(function(g,x){var E=-1,M=x.length,V=M>1?x[M-1]:n,X=M>2?x[2]:n;for(V=p.length>3&&typeof V=="function"?(M--,V):n,X&&mi(x[0],x[1],X)&&(V=M<3?n:V,M=1),g=On(g);++E<M;){var J=x[E];J&&p(g,J,E,V)}return g})}function bO(p,g){return function(x,E){if(x==null)return x;if(!Ni(x))return p(x,E);for(var M=x.length,V=g?M:-1,X=On(x);(g?V--:++V<M)&&E(X[V],V,X)!==!1;);return x}}function SO(p){return function(g,x,E){for(var M=-1,V=On(g),X=E(g),J=X.length;J--;){var ue=X[p?J:++M];if(x(V[ue],ue,V)===!1)break}return g}}function MW(p,g,x){var E=g&y,M=Kh(p);function V(){var X=this&&this!==kr&&this instanceof V?M:p;return X.apply(E?x:this,arguments)}return V}function wO(p){return function(g){g=gn(g);var x=Nf(g)?da(g):n,E=x?x[0]:g.charAt(0),M=x?Rl(x,1).join(""):g.slice(1);return E[p]()+M}}function Gf(p){return function(g){return ow(bM(_M(g).replace(wz,"")),p,"")}}function Kh(p){return function(){var g=arguments;switch(g.length){case 0:return new p;case 1:return new p(g[0]);case 2:return new p(g[0],g[1]);case 3:return new p(g[0],g[1],g[2]);case 4:return new p(g[0],g[1],g[2],g[3]);case 5:return new p(g[0],g[1],g[2],g[3],g[4]);case 6:return new p(g[0],g[1],g[2],g[3],g[4],g[5]);case 7:return new p(g[0],g[1],g[2],g[3],g[4],g[5],g[6])}var x=Uf(p.prototype),E=p.apply(x,g);return qn(E)?E:x}}function DW(p,g,x){var E=Kh(p);function M(){for(var V=arguments.length,X=me(V),J=V,ue=zf(M);J--;)X[J]=arguments[J];var Ie=V<3&&X[0]!==ue&&X[V-1]!==ue?[]:Tl(X,ue);if(V-=Ie.length,V<x)return AO(p,g,ey,M.placeholder,n,X,Ie,n,n,x-V);var Re=this&&this!==kr&&this instanceof M?E:p;return uo(Re,this,X)}return M}function xO(p){return function(g,x,E){var M=On(g);if(!Ni(g)){var V=yt(x,3);g=Or(g),x=function(J){return V(M[J],J,M)}}var X=p(g,x,E);return X>-1?M[V?g[X]:X]:n}}function TO(p){return Es(function(g){var x=g.length,E=x,M=ko.prototype.thru;for(p&&g.reverse();E--;){var V=g[E];if(typeof V!="function")throw new No(a);if(M&&!X&&iy(V)=="wrapper")var X=new ko([],!0)}for(E=X?E:x;++E<x;){V=g[E];var J=iy(V),ue=J=="wrapper"?Bw(V):n;ue&&Gw(ue[0])&&ue[1]==(A|w|C|P)&&!ue[4].length&&ue[9]==1?X=X[iy(ue[0])].apply(X,ue[3]):X=V.length==1&&Gw(V)?X[J]():X.thru(V)}return function(){var Ie=arguments,Re=Ie[0];if(X&&Ie.length==1&&Ft(Re))return X.plant(Re).value();for(var Le=0,qe=x?g[Le].apply(this,Ie):Re;++Le<x;)qe=g[Le].call(this,qe);return qe}})}function ey(p,g,x,E,M,V,X,J,ue,Ie){var Re=g&A,Le=g&y,qe=g&_,ft=g&(w|S),St=g&I,zt=qe?n:Kh(p);function wt(){for(var Zt=arguments.length,on=me(Zt),po=Zt;po--;)on[po]=arguments[po];if(ft)var yi=zf(wt),vo=Wz(on,yi);if(E&&(on=yO(on,E,M,ft)),V&&(on=_O(on,V,X,ft)),Zt-=vo,ft&&Zt<Ie){var cr=Tl(on,yi);return AO(p,g,ey,wt.placeholder,x,on,cr,J,ue,Ie-Zt)}var va=Le?x:this,Ps=qe?va[p]:p;return Zt=on.length,J?on=QW(on,J):St&&Zt>1&&on.reverse(),Re&&ue<Zt&&(on.length=ue),this&&this!==kr&&this instanceof wt&&(Ps=zt||Kh(Ps)),Ps.apply(va,on)}return wt}function CO(p,g){return function(x,E){return sW(x,p,g(E),{})}}function ty(p,g){return function(x,E){var M;if(x===n&&E===n)return g;if(x!==n&&(M=x),E!==n){if(M===n)return E;typeof x=="string"||typeof E=="string"?(x=fo(x),E=fo(E)):(x=cO(x),E=cO(E)),M=p(x,E)}return M}}function Nw(p){return Es(function(g){return g=zn(g,co(yt())),jt(function(x){var E=this;return p(g,function(M){return uo(M,E,x)})})})}function ny(p,g){g=g===n?" ":fo(g);var x=g.length;if(x<2)return x?Iw(g,p):g;var E=Iw(g,Hm(p/kf(g)));return Nf(g)?Rl(da(E),0,p).join(""):E.slice(0,p)}function LW(p,g,x,E){var M=g&y,V=Kh(p);function X(){for(var J=-1,ue=arguments.length,Ie=-1,Re=E.length,Le=me(Re+ue),qe=this&&this!==kr&&this instanceof X?V:p;++Ie<Re;)Le[Ie]=E[Ie];for(;ue--;)Le[Ie++]=arguments[++J];return uo(qe,M?x:this,Le)}return X}function EO(p){return function(g,x,E){return E&&typeof E!="number"&&mi(g,x,E)&&(x=E=n),g=Rs(g),x===n?(x=g,g=0):x=Rs(x),E=E===n?g<x?1:-1:Rs(E),_W(g,x,E,p)}}function ry(p){return function(g,x){return typeof g=="string"&&typeof x=="string"||(g=Vo(g),x=Vo(x)),p(g,x)}}function AO(p,g,x,E,M,V,X,J,ue,Ie){var Re=g&w,Le=Re?X:n,qe=Re?n:X,ft=Re?V:n,St=Re?n:V;g|=Re?C:T,g&=~(Re?T:C),g&b||(g&=~(y|_));var zt=[p,g,M,ft,Le,St,qe,J,ue,Ie],wt=x.apply(n,zt);return Gw(p)&&BO(wt,zt),wt.placeholder=E,VO(wt,p,g)}function kw(p){var g=Sr[p];return function(x,E){if(x=Vo(x),E=E==null?0:Xr(Ut(E),292),E&&V2(x)){var M=(gn(x)+"e").split("e"),V=g(M[0]+"e"+(+M[1]+E));return M=(gn(V)+"e").split("e"),+(M[0]+"e"+(+M[1]-E))}return g(x)}}var NW=Bf&&1/Mm(new Bf([,-0]))[1]==Y?function(p){return new Bf(p)}:ix;function IO(p){return function(g){var x=Kr(g);return x==G?dw(g):x==fe?Jz(g):zz(g,p(g))}}function Cs(p,g,x,E,M,V,X,J){var ue=g&_;if(!ue&&typeof p!="function")throw new No(a);var Ie=E?E.length:0;if(Ie||(g&=~(C|T),E=M=n),X=X===n?X:wr(Ut(X),0),J=J===n?J:Ut(J),Ie-=M?M.length:0,g&T){var Re=E,Le=M;E=M=n}var qe=ue?n:Bw(p),ft=[p,g,x,E,M,Re,Le,V,X,J];if(qe&&ZW(ft,qe),p=ft[0],g=ft[1],x=ft[2],E=ft[3],M=ft[4],J=ft[9]=ft[9]===n?ue?0:p.length:wr(ft[9]-Ie,0),!J&&g&(w|S)&&(g&=~(w|S)),!g||g==y)var St=MW(p,g,x);else g==w||g==S?St=DW(p,g,J):(g==C||g==(y|C))&&!M.length?St=LW(p,g,x,E):St=ey.apply(n,ft);var zt=qe?lO:BO;return VO(zt(St,ft),p,g)}function RO(p,g,x,E){return p===n||pa(p,$f[x])&&!wn.call(E,x)?g:p}function PO(p,g,x,E,M,V){return qn(p)&&qn(g)&&(V.set(g,p),Zm(p,g,n,PO,V),V.delete(g)),p}function kW(p){return Jh(p)?n:p}function OO(p,g,x,E,M,V){var X=x&v,J=p.length,ue=g.length;if(J!=ue&&!(X&&ue>J))return!1;var Ie=V.get(p),Re=V.get(g);if(Ie&&Re)return Ie==g&&Re==p;var Le=-1,qe=!0,ft=x&m?new Xu:n;for(V.set(p,g),V.set(g,p);++Le<J;){var St=p[Le],zt=g[Le];if(E)var wt=X?E(zt,St,Le,g,p,V):E(St,zt,Le,p,g,V);if(wt!==n){if(wt)continue;qe=!1;break}if(ft){if(!aw(g,function(Zt,on){if(!$h(ft,on)&&(St===Zt||M(St,Zt,x,E,V)))return ft.push(on)})){qe=!1;break}}else if(!(St===zt||M(St,zt,x,E,V))){qe=!1;break}}return V.delete(p),V.delete(g),qe}function FW(p,g,x,E,M,V,X){switch(x){case pt:if(p.byteLength!=g.byteLength||p.byteOffset!=g.byteOffset)return!1;p=p.buffer,g=g.buffer;case Ke:return!(p.byteLength!=g.byteLength||!V(new $m(p),new $m(g)));case Ee:case Se:case le:return pa(+p,+g);case Oe:return p.name==g.name&&p.message==g.message;case q:case _e:return p==g+"";case G:var J=dw;case fe:var ue=E&v;if(J||(J=Mm),p.size!=g.size&&!ue)return!1;var Ie=X.get(p);if(Ie)return Ie==g;E|=m,X.set(p,g);var Re=OO(J(p),J(g),E,M,V,X);return X.delete(p),Re;case Pe:if(Gh)return Gh.call(p)==Gh.call(g)}return!1}function $W(p,g,x,E,M,V){var X=x&v,J=Fw(p),ue=J.length,Ie=Fw(g),Re=Ie.length;if(ue!=Re&&!X)return!1;for(var Le=ue;Le--;){var qe=J[Le];if(!(X?qe in g:wn.call(g,qe)))return!1}var ft=V.get(p),St=V.get(g);if(ft&&St)return ft==g&&St==p;var zt=!0;V.set(p,g),V.set(g,p);for(var wt=X;++Le<ue;){qe=J[Le];var Zt=p[qe],on=g[qe];if(E)var po=X?E(on,Zt,qe,g,p,V):E(Zt,on,qe,p,g,V);if(!(po===n?Zt===on||M(Zt,on,x,E,V):po)){zt=!1;break}wt||(wt=qe=="constructor")}if(zt&&!wt){var yi=p.constructor,vo=g.constructor;yi!=vo&&"constructor"in p&&"constructor"in g&&!(typeof yi=="function"&&yi instanceof yi&&typeof vo=="function"&&vo instanceof vo)&&(zt=!1)}return V.delete(p),V.delete(g),zt}function Es(p){return Ww(FO(p,n,jO),p+"")}function Fw(p){return q2(p,Or,Uw)}function $w(p){return q2(p,ki,MO)}var Bw=zm?function(p){return zm.get(p)}:ix;function iy(p){for(var g=p.name+"",x=Vf[g],E=wn.call(Vf,g)?x.length:0;E--;){var M=x[E],V=M.func;if(V==null||V==p)return M.name}return g}function zf(p){var g=wn.call(k,"placeholder")?k:p;return g.placeholder}function yt(){var p=k.iteratee||nx;return p=p===nx?eO:p,arguments.length?p(arguments[0],arguments[1]):p}function oy(p,g){var x=p.__data__;return jW(g)?x[typeof g=="string"?"string":"hash"]:x.map}function Vw(p){for(var g=Or(p),x=g.length;x--;){var E=g[x],M=p[E];g[x]=[E,M,NO(M)]}return g}function qu(p,g){var x=Kz(p,g);return Q2(x)?x:n}function BW(p){var g=wn.call(p,ju),x=p[ju];try{p[ju]=n;var E=!0}catch{}var M=km.call(p);return E&&(g?p[ju]=x:delete p[ju]),M}var Uw=pw?function(p){return p==null?[]:(p=On(p),wl(pw(p),function(g){return $2.call(p,g)}))}:ox,MO=pw?function(p){for(var g=[];p;)xl(g,Uw(p)),p=Bm(p);return g}:ox,Kr=gi;(vw&&Kr(new vw(new ArrayBuffer(1)))!=pt||Vh&&Kr(new Vh)!=G||gw&&Kr(gw.resolve())!=U||Bf&&Kr(new Bf)!=fe||Uh&&Kr(new Uh)!=de)&&(Kr=function(p){var g=gi(p),x=g==pe?p.constructor:n,E=x?Ju(x):"";if(E)switch(E){case S9:return pt;case w9:return G;case x9:return U;case T9:return fe;case C9:return de}return g});function VW(p,g,x){for(var E=-1,M=x.length;++E<M;){var V=x[E],X=V.size;switch(V.type){case"drop":p+=X;break;case"dropRight":g-=X;break;case"take":g=Xr(g,p+X);break;case"takeRight":p=wr(p,g-X);break}}return{start:p,end:g}}function UW(p){var g=p.match(Tm);return g?g[1].split(Lh):[]}function DO(p,g,x){g=Il(g,p);for(var E=-1,M=g.length,V=!1;++E<M;){var X=za(g[E]);if(!(V=p!=null&&x(p,X)))break;p=p[X]}return V||++E!=M?V:(M=p==null?0:p.length,!!M&&dy(M)&&As(X,M)&&(Ft(p)||Qu(p)))}function HW(p){var g=p.length,x=new p.constructor(g);return g&&typeof p[0]=="string"&&wn.call(p,"index")&&(x.index=p.index,x.input=p.input),x}function LO(p){return typeof p.constructor=="function"&&!Zh(p)?Uf(Bm(p)):{}}function GW(p,g,x){var E=p.constructor;switch(g){case Ke:return Lw(p);case Ee:case Se:return new E(+p);case pt:return EW(p,x);case ee:case oe:case he:case Ce:case He:case re:case Ae:case Fe:case Qe:return gO(p,x);case G:return new E;case le:case _e:return new E(p);case q:return AW(p);case fe:return new E;case Pe:return IW(p)}}function zW(p,g){var x=g.length;if(!x)return p;var E=x-1;return g[E]=(x>1?"& ":"")+g[E],g=g.join(x>2?", ":" "),p.replace(xm,`{
|
||
/* [wrapped with `+g+`] */
|
||
`)}function WW(p){return Ft(p)||Qu(p)||!!(B2&&p&&p[B2])}function As(p,g){var x=typeof p;return g=g??j,!!g&&(x=="number"||x!="symbol"&&Ue.test(p))&&p>-1&&p%1==0&&p<g}function mi(p,g,x){if(!qn(x))return!1;var E=typeof g;return(E=="number"?Ni(x)&&As(g,x.length):E=="string"&&g in x)?pa(x[g],p):!1}function Hw(p,g){if(Ft(p))return!1;var x=typeof p;return x=="number"||x=="symbol"||x=="boolean"||p==null||ho(p)?!0:Ua.test(p)||!Sl.test(p)||g!=null&&p in On(g)}function jW(p){var g=typeof p;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?p!=="__proto__":p===null}function Gw(p){var g=iy(p),x=k[g];if(typeof x!="function"||!(g in en.prototype))return!1;if(p===x)return!0;var E=Bw(x);return!!E&&p===E[0]}function YW(p){return!!N2&&N2 in p}var XW=Lm?Is:ax;function Zh(p){var g=p&&p.constructor,x=typeof g=="function"&&g.prototype||$f;return p===x}function NO(p){return p===p&&!qn(p)}function kO(p,g){return function(x){return x==null?!1:x[p]===g&&(g!==n||p in On(x))}}function KW(p){var g=cy(p,function(E){return x.size===u&&x.clear(),E}),x=g.cache;return g}function ZW(p,g){var x=p[1],E=g[1],M=x|E,V=M<(y|_|A),X=E==A&&x==w||E==A&&x==P&&p[7].length<=g[8]||E==(A|P)&&g[7].length<=g[8]&&x==w;if(!(V||X))return p;E&y&&(p[2]=g[2],M|=x&y?0:b);var J=g[3];if(J){var ue=p[3];p[3]=ue?yO(ue,J,g[4]):J,p[4]=ue?Tl(p[3],c):g[4]}return J=g[5],J&&(ue=p[5],p[5]=ue?_O(ue,J,g[6]):J,p[6]=ue?Tl(p[5],c):g[6]),J=g[7],J&&(p[7]=J),E&A&&(p[8]=p[8]==null?g[8]:Xr(p[8],g[8])),p[9]==null&&(p[9]=g[9]),p[0]=g[0],p[1]=M,p}function qW(p){var g=[];if(p!=null)for(var x in On(p))g.push(x);return g}function JW(p){return km.call(p)}function FO(p,g,x){return g=wr(g===n?p.length-1:g,0),function(){for(var E=arguments,M=-1,V=wr(E.length-g,0),X=me(V);++M<V;)X[M]=E[g+M];M=-1;for(var J=me(g+1);++M<g;)J[M]=E[M];return J[g]=x(X),uo(p,this,J)}}function $O(p,g){return g.length<2?p:Zu(p,$o(g,0,-1))}function QW(p,g){for(var x=p.length,E=Xr(g.length,x),M=Li(p);E--;){var V=g[E];p[E]=As(V,x)?M[V]:n}return p}function zw(p,g){if(!(g==="constructor"&&typeof p[g]=="function")&&g!="__proto__")return p[g]}var BO=UO(lO),qh=p9||function(p,g){return kr.setTimeout(p,g)},Ww=UO(wW);function VO(p,g,x){var E=g+"";return Ww(p,zW(E,e7(UW(E),x)))}function UO(p){var g=0,x=0;return function(){var E=y9(),M=$-(E-x);if(x=E,M>0){if(++g>=D)return arguments[0]}else g=0;return p.apply(n,arguments)}}function ay(p,g){var x=-1,E=p.length,M=E-1;for(g=g===n?E:g;++x<g;){var V=Aw(x,M),X=p[V];p[V]=p[x],p[x]=X}return p.length=g,p}var HO=KW(function(p){var g=[];return p.charCodeAt(0)===46&&g.push(""),p.replace(wm,function(x,E,M,V){g.push(M?V.replace(Em,"$1"):E||x)}),g});function za(p){if(typeof p=="string"||ho(p))return p;var g=p+"";return g=="0"&&1/p==-Y?"-0":g}function Ju(p){if(p!=null){try{return Nm.call(p)}catch{}try{return p+""}catch{}}return""}function e7(p,g){return Lo(ze,function(x){var E="_."+x[0];g&x[1]&&!Pm(p,E)&&p.push(E)}),p.sort()}function GO(p){if(p instanceof en)return p.clone();var g=new ko(p.__wrapped__,p.__chain__);return g.__actions__=Li(p.__actions__),g.__index__=p.__index__,g.__values__=p.__values__,g}function t7(p,g,x){(x?mi(p,g,x):g===n)?g=1:g=wr(Ut(g),0);var E=p==null?0:p.length;if(!E||g<1)return[];for(var M=0,V=0,X=me(Hm(E/g));M<E;)X[V++]=$o(p,M,M+=g);return X}function n7(p){for(var g=-1,x=p==null?0:p.length,E=0,M=[];++g<x;){var V=p[g];V&&(M[E++]=V)}return M}function r7(){var p=arguments.length;if(!p)return[];for(var g=me(p-1),x=arguments[0],E=p;E--;)g[E-1]=arguments[E];return xl(Ft(x)?Li(x):[x],Fr(g,1))}var i7=jt(function(p,g){return ur(p)?Wh(p,Fr(g,1,ur,!0)):[]}),o7=jt(function(p,g){var x=Bo(g);return ur(x)&&(x=n),ur(p)?Wh(p,Fr(g,1,ur,!0),yt(x,2)):[]}),a7=jt(function(p,g){var x=Bo(g);return ur(x)&&(x=n),ur(p)?Wh(p,Fr(g,1,ur,!0),n,x):[]});function s7(p,g,x){var E=p==null?0:p.length;return E?(g=x||g===n?1:Ut(g),$o(p,g<0?0:g,E)):[]}function l7(p,g,x){var E=p==null?0:p.length;return E?(g=x||g===n?1:Ut(g),g=E-g,$o(p,0,g<0?0:g)):[]}function u7(p,g){return p&&p.length?Jm(p,yt(g,3),!0,!0):[]}function c7(p,g){return p&&p.length?Jm(p,yt(g,3),!0):[]}function f7(p,g,x,E){var M=p==null?0:p.length;return M?(x&&typeof x!="number"&&mi(p,g,x)&&(x=0,E=M),rW(p,g,x,E)):[]}function zO(p,g,x){var E=p==null?0:p.length;if(!E)return-1;var M=x==null?0:Ut(x);return M<0&&(M=wr(E+M,0)),Om(p,yt(g,3),M)}function WO(p,g,x){var E=p==null?0:p.length;if(!E)return-1;var M=E-1;return x!==n&&(M=Ut(x),M=x<0?wr(E+M,0):Xr(M,E-1)),Om(p,yt(g,3),M,!0)}function jO(p){var g=p==null?0:p.length;return g?Fr(p,1):[]}function d7(p){var g=p==null?0:p.length;return g?Fr(p,Y):[]}function h7(p,g){var x=p==null?0:p.length;return x?(g=g===n?1:Ut(g),Fr(p,g)):[]}function p7(p){for(var g=-1,x=p==null?0:p.length,E={};++g<x;){var M=p[g];E[M[0]]=M[1]}return E}function YO(p){return p&&p.length?p[0]:n}function v7(p,g,x){var E=p==null?0:p.length;if(!E)return-1;var M=x==null?0:Ut(x);return M<0&&(M=wr(E+M,0)),Lf(p,g,M)}function g7(p){var g=p==null?0:p.length;return g?$o(p,0,-1):[]}var m7=jt(function(p){var g=zn(p,Mw);return g.length&&g[0]===p[0]?ww(g):[]}),y7=jt(function(p){var g=Bo(p),x=zn(p,Mw);return g===Bo(x)?g=n:x.pop(),x.length&&x[0]===p[0]?ww(x,yt(g,2)):[]}),_7=jt(function(p){var g=Bo(p),x=zn(p,Mw);return g=typeof g=="function"?g:n,g&&x.pop(),x.length&&x[0]===p[0]?ww(x,n,g):[]});function b7(p,g){return p==null?"":g9.call(p,g)}function Bo(p){var g=p==null?0:p.length;return g?p[g-1]:n}function S7(p,g,x){var E=p==null?0:p.length;if(!E)return-1;var M=E;return x!==n&&(M=Ut(x),M=M<0?wr(E+M,0):Xr(M,E-1)),g===g?e9(p,g,M):Om(p,A2,M,!0)}function w7(p,g){return p&&p.length?iO(p,Ut(g)):n}var x7=jt(XO);function XO(p,g){return p&&p.length&&g&&g.length?Ew(p,g):p}function T7(p,g,x){return p&&p.length&&g&&g.length?Ew(p,g,yt(x,2)):p}function C7(p,g,x){return p&&p.length&&g&&g.length?Ew(p,g,n,x):p}var E7=Es(function(p,g){var x=p==null?0:p.length,E=yw(p,g);return sO(p,zn(g,function(M){return As(M,x)?+M:M}).sort(mO)),E});function A7(p,g){var x=[];if(!(p&&p.length))return x;var E=-1,M=[],V=p.length;for(g=yt(g,3);++E<V;){var X=p[E];g(X,E,p)&&(x.push(X),M.push(E))}return sO(p,M),x}function jw(p){return p==null?p:b9.call(p)}function I7(p,g,x){var E=p==null?0:p.length;return E?(x&&typeof x!="number"&&mi(p,g,x)?(g=0,x=E):(g=g==null?0:Ut(g),x=x===n?E:Ut(x)),$o(p,g,x)):[]}function R7(p,g){return qm(p,g)}function P7(p,g,x){return Rw(p,g,yt(x,2))}function O7(p,g){var x=p==null?0:p.length;if(x){var E=qm(p,g);if(E<x&&pa(p[E],g))return E}return-1}function M7(p,g){return qm(p,g,!0)}function D7(p,g,x){return Rw(p,g,yt(x,2),!0)}function L7(p,g){var x=p==null?0:p.length;if(x){var E=qm(p,g,!0)-1;if(pa(p[E],g))return E}return-1}function N7(p){return p&&p.length?uO(p):[]}function k7(p,g){return p&&p.length?uO(p,yt(g,2)):[]}function F7(p){var g=p==null?0:p.length;return g?$o(p,1,g):[]}function $7(p,g,x){return p&&p.length?(g=x||g===n?1:Ut(g),$o(p,0,g<0?0:g)):[]}function B7(p,g,x){var E=p==null?0:p.length;return E?(g=x||g===n?1:Ut(g),g=E-g,$o(p,g<0?0:g,E)):[]}function V7(p,g){return p&&p.length?Jm(p,yt(g,3),!1,!0):[]}function U7(p,g){return p&&p.length?Jm(p,yt(g,3)):[]}var H7=jt(function(p){return Al(Fr(p,1,ur,!0))}),G7=jt(function(p){var g=Bo(p);return ur(g)&&(g=n),Al(Fr(p,1,ur,!0),yt(g,2))}),z7=jt(function(p){var g=Bo(p);return g=typeof g=="function"?g:n,Al(Fr(p,1,ur,!0),n,g)});function W7(p){return p&&p.length?Al(p):[]}function j7(p,g){return p&&p.length?Al(p,yt(g,2)):[]}function Y7(p,g){return g=typeof g=="function"?g:n,p&&p.length?Al(p,n,g):[]}function Yw(p){if(!(p&&p.length))return[];var g=0;return p=wl(p,function(x){if(ur(x))return g=wr(x.length,g),!0}),cw(g,function(x){return zn(p,sw(x))})}function KO(p,g){if(!(p&&p.length))return[];var x=Yw(p);return g==null?x:zn(x,function(E){return uo(g,n,E)})}var X7=jt(function(p,g){return ur(p)?Wh(p,g):[]}),K7=jt(function(p){return Ow(wl(p,ur))}),Z7=jt(function(p){var g=Bo(p);return ur(g)&&(g=n),Ow(wl(p,ur),yt(g,2))}),q7=jt(function(p){var g=Bo(p);return g=typeof g=="function"?g:n,Ow(wl(p,ur),n,g)}),J7=jt(Yw);function Q7(p,g){return hO(p||[],g||[],zh)}function ej(p,g){return hO(p||[],g||[],Xh)}var tj=jt(function(p){var g=p.length,x=g>1?p[g-1]:n;return x=typeof x=="function"?(p.pop(),x):n,KO(p,x)});function ZO(p){var g=k(p);return g.__chain__=!0,g}function nj(p,g){return g(p),p}function sy(p,g){return g(p)}var rj=Es(function(p){var g=p.length,x=g?p[0]:0,E=this.__wrapped__,M=function(V){return yw(V,p)};return g>1||this.__actions__.length||!(E instanceof en)||!As(x)?this.thru(M):(E=E.slice(x,+x+(g?1:0)),E.__actions__.push({func:sy,args:[M],thisArg:n}),new ko(E,this.__chain__).thru(function(V){return g&&!V.length&&V.push(n),V}))});function ij(){return ZO(this)}function oj(){return new ko(this.value(),this.__chain__)}function aj(){this.__values__===n&&(this.__values__=cM(this.value()));var p=this.__index__>=this.__values__.length,g=p?n:this.__values__[this.__index__++];return{done:p,value:g}}function sj(){return this}function lj(p){for(var g,x=this;x instanceof jm;){var E=GO(x);E.__index__=0,E.__values__=n,g?M.__wrapped__=E:g=E;var M=E;x=x.__wrapped__}return M.__wrapped__=p,g}function uj(){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:sy,args:[jw],thisArg:n}),new ko(g,this.__chain__)}return this.thru(jw)}function cj(){return dO(this.__wrapped__,this.__actions__)}var fj=Qm(function(p,g,x){wn.call(p,x)?++p[x]:Ts(p,x,1)});function dj(p,g,x){var E=Ft(p)?C2:nW;return x&&mi(p,g,x)&&(g=n),E(p,yt(g,3))}function hj(p,g){var x=Ft(p)?wl:K2;return x(p,yt(g,3))}var pj=xO(zO),vj=xO(WO);function gj(p,g){return Fr(ly(p,g),1)}function mj(p,g){return Fr(ly(p,g),Y)}function yj(p,g,x){return x=x===n?1:Ut(x),Fr(ly(p,g),x)}function qO(p,g){var x=Ft(p)?Lo:El;return x(p,yt(g,3))}function JO(p,g){var x=Ft(p)?Fz:X2;return x(p,yt(g,3))}var _j=Qm(function(p,g,x){wn.call(p,x)?p[x].push(g):Ts(p,x,[g])});function bj(p,g,x,E){p=Ni(p)?p:jf(p),x=x&&!E?Ut(x):0;var M=p.length;return x<0&&(x=wr(M+x,0)),hy(p)?x<=M&&p.indexOf(g,x)>-1:!!M&&Lf(p,g,x)>-1}var Sj=jt(function(p,g,x){var E=-1,M=typeof g=="function",V=Ni(p)?me(p.length):[];return El(p,function(X){V[++E]=M?uo(g,X,x):jh(X,g,x)}),V}),wj=Qm(function(p,g,x){Ts(p,x,g)});function ly(p,g){var x=Ft(p)?zn:tO;return x(p,yt(g,3))}function xj(p,g,x,E){return p==null?[]:(Ft(g)||(g=g==null?[]:[g]),x=E?n:x,Ft(x)||(x=x==null?[]:[x]),oO(p,g,x))}var Tj=Qm(function(p,g,x){p[x?0:1].push(g)},function(){return[[],[]]});function Cj(p,g,x){var E=Ft(p)?ow:R2,M=arguments.length<3;return E(p,yt(g,4),x,M,El)}function Ej(p,g,x){var E=Ft(p)?$z:R2,M=arguments.length<3;return E(p,yt(g,4),x,M,X2)}function Aj(p,g){var x=Ft(p)?wl:K2;return x(p,fy(yt(g,3)))}function Ij(p){var g=Ft(p)?z2:bW;return g(p)}function Rj(p,g,x){(x?mi(p,g,x):g===n)?g=1:g=Ut(g);var E=Ft(p)?q9:SW;return E(p,g)}function Pj(p){var g=Ft(p)?J9:xW;return g(p)}function Oj(p){if(p==null)return 0;if(Ni(p))return hy(p)?kf(p):p.length;var g=Kr(p);return g==G||g==fe?p.size:Tw(p).length}function Mj(p,g,x){var E=Ft(p)?aw:TW;return x&&mi(p,g,x)&&(g=n),E(p,yt(g,3))}var Dj=jt(function(p,g){if(p==null)return[];var x=g.length;return x>1&&mi(p,g[0],g[1])?g=[]:x>2&&mi(g[0],g[1],g[2])&&(g=[g[0]]),oO(p,Fr(g,1),[])}),uy=h9||function(){return kr.Date.now()};function Lj(p,g){if(typeof g!="function")throw new No(a);return p=Ut(p),function(){if(--p<1)return g.apply(this,arguments)}}function QO(p,g,x){return g=x?n:g,g=p&&g==null?p.length:g,Cs(p,A,n,n,n,n,g)}function eM(p,g){var x;if(typeof g!="function")throw new No(a);return p=Ut(p),function(){return--p>0&&(x=g.apply(this,arguments)),p<=1&&(g=n),x}}var Xw=jt(function(p,g,x){var E=y;if(x.length){var M=Tl(x,zf(Xw));E|=C}return Cs(p,E,g,x,M)}),tM=jt(function(p,g,x){var E=y|_;if(x.length){var M=Tl(x,zf(tM));E|=C}return Cs(g,E,p,x,M)});function nM(p,g,x){g=x?n:g;var E=Cs(p,w,n,n,n,n,n,g);return E.placeholder=nM.placeholder,E}function rM(p,g,x){g=x?n:g;var E=Cs(p,S,n,n,n,n,n,g);return E.placeholder=rM.placeholder,E}function iM(p,g,x){var E,M,V,X,J,ue,Ie=0,Re=!1,Le=!1,qe=!0;if(typeof p!="function")throw new No(a);g=Vo(g)||0,qn(x)&&(Re=!!x.leading,Le="maxWait"in x,V=Le?wr(Vo(x.maxWait)||0,g):V,qe="trailing"in x?!!x.trailing:qe);function ft(cr){var va=E,Ps=M;return E=M=n,Ie=cr,X=p.apply(Ps,va),X}function St(cr){return Ie=cr,J=qh(Zt,g),Re?ft(cr):X}function zt(cr){var va=cr-ue,Ps=cr-Ie,xM=g-va;return Le?Xr(xM,V-Ps):xM}function wt(cr){var va=cr-ue,Ps=cr-Ie;return ue===n||va>=g||va<0||Le&&Ps>=V}function Zt(){var cr=uy();if(wt(cr))return on(cr);J=qh(Zt,zt(cr))}function on(cr){return J=n,qe&&E?ft(cr):(E=M=n,X)}function po(){J!==n&&pO(J),Ie=0,E=ue=M=J=n}function yi(){return J===n?X:on(uy())}function vo(){var cr=uy(),va=wt(cr);if(E=arguments,M=this,ue=cr,va){if(J===n)return St(ue);if(Le)return pO(J),J=qh(Zt,g),ft(ue)}return J===n&&(J=qh(Zt,g)),X}return vo.cancel=po,vo.flush=yi,vo}var Nj=jt(function(p,g){return Y2(p,1,g)}),kj=jt(function(p,g,x){return Y2(p,Vo(g)||0,x)});function Fj(p){return Cs(p,I)}function cy(p,g){if(typeof p!="function"||g!=null&&typeof g!="function")throw new No(a);var x=function(){var E=arguments,M=g?g.apply(this,E):E[0],V=x.cache;if(V.has(M))return V.get(M);var X=p.apply(this,E);return x.cache=V.set(M,X)||V,X};return x.cache=new(cy.Cache||xs),x}cy.Cache=xs;function fy(p){if(typeof p!="function")throw new No(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 $j(p){return eM(2,p)}var Bj=CW(function(p,g){g=g.length==1&&Ft(g[0])?zn(g[0],co(yt())):zn(Fr(g,1),co(yt()));var x=g.length;return jt(function(E){for(var M=-1,V=Xr(E.length,x);++M<V;)E[M]=g[M].call(this,E[M]);return uo(p,this,E)})}),Kw=jt(function(p,g){var x=Tl(g,zf(Kw));return Cs(p,C,n,g,x)}),oM=jt(function(p,g){var x=Tl(g,zf(oM));return Cs(p,T,n,g,x)}),Vj=Es(function(p,g){return Cs(p,P,n,n,n,g)});function Uj(p,g){if(typeof p!="function")throw new No(a);return g=g===n?g:Ut(g),jt(p,g)}function Hj(p,g){if(typeof p!="function")throw new No(a);return g=g==null?0:wr(Ut(g),0),jt(function(x){var E=x[g],M=Rl(x,0,g);return E&&xl(M,E),uo(p,this,M)})}function Gj(p,g,x){var E=!0,M=!0;if(typeof p!="function")throw new No(a);return qn(x)&&(E="leading"in x?!!x.leading:E,M="trailing"in x?!!x.trailing:M),iM(p,g,{leading:E,maxWait:g,trailing:M})}function zj(p){return QO(p,1)}function Wj(p,g){return Kw(Dw(g),p)}function jj(){if(!arguments.length)return[];var p=arguments[0];return Ft(p)?p:[p]}function Yj(p){return Fo(p,h)}function Xj(p,g){return g=typeof g=="function"?g:n,Fo(p,h,g)}function Kj(p){return Fo(p,f|h)}function Zj(p,g){return g=typeof g=="function"?g:n,Fo(p,f|h,g)}function qj(p,g){return g==null||j2(p,g,Or(g))}function pa(p,g){return p===g||p!==p&&g!==g}var Jj=ry(Sw),Qj=ry(function(p,g){return p>=g}),Qu=J2(function(){return arguments}())?J2:function(p){return er(p)&&wn.call(p,"callee")&&!$2.call(p,"callee")},Ft=me.isArray,eY=_2?co(_2):lW;function Ni(p){return p!=null&&dy(p.length)&&!Is(p)}function ur(p){return er(p)&&Ni(p)}function tY(p){return p===!0||p===!1||er(p)&&gi(p)==Ee}var Pl=v9||ax,nY=b2?co(b2):uW;function rY(p){return er(p)&&p.nodeType===1&&!Jh(p)}function iY(p){if(p==null)return!0;if(Ni(p)&&(Ft(p)||typeof p=="string"||typeof p.splice=="function"||Pl(p)||Wf(p)||Qu(p)))return!p.length;var g=Kr(p);if(g==G||g==fe)return!p.size;if(Zh(p))return!Tw(p).length;for(var x in p)if(wn.call(p,x))return!1;return!0}function oY(p,g){return Yh(p,g)}function aY(p,g,x){x=typeof x=="function"?x:n;var E=x?x(p,g):n;return E===n?Yh(p,g,n,x):!!E}function Zw(p){if(!er(p))return!1;var g=gi(p);return g==Oe||g==Te||typeof p.message=="string"&&typeof p.name=="string"&&!Jh(p)}function sY(p){return typeof p=="number"&&V2(p)}function Is(p){if(!qn(p))return!1;var g=gi(p);return g==$e||g==H||g==ce||g==W}function aM(p){return typeof p=="number"&&p==Ut(p)}function dy(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 er(p){return p!=null&&typeof p=="object"}var sM=S2?co(S2):fW;function lY(p,g){return p===g||xw(p,g,Vw(g))}function uY(p,g,x){return x=typeof x=="function"?x:n,xw(p,g,Vw(g),x)}function cY(p){return lM(p)&&p!=+p}function fY(p){if(XW(p))throw new Lt(o);return Q2(p)}function dY(p){return p===null}function hY(p){return p==null}function lM(p){return typeof p=="number"||er(p)&&gi(p)==le}function Jh(p){if(!er(p)||gi(p)!=pe)return!1;var g=Bm(p);if(g===null)return!0;var x=wn.call(g,"constructor")&&g.constructor;return typeof x=="function"&&x instanceof x&&Nm.call(x)==u9}var qw=w2?co(w2):dW;function pY(p){return aM(p)&&p>=-j&&p<=j}var uM=x2?co(x2):hW;function hy(p){return typeof p=="string"||!Ft(p)&&er(p)&&gi(p)==_e}function ho(p){return typeof p=="symbol"||er(p)&&gi(p)==Pe}var Wf=T2?co(T2):pW;function vY(p){return p===n}function gY(p){return er(p)&&Kr(p)==de}function mY(p){return er(p)&&gi(p)==Be}var yY=ry(Cw),_Y=ry(function(p,g){return p<=g});function cM(p){if(!p)return[];if(Ni(p))return hy(p)?da(p):Li(p);if(Bh&&p[Bh])return qz(p[Bh]());var g=Kr(p),x=g==G?dw:g==fe?Mm:jf;return x(p)}function Rs(p){if(!p)return p===0?p:0;if(p=Vo(p),p===Y||p===-Y){var g=p<0?-1:1;return g*se}return p===p?p:0}function Ut(p){var g=Rs(p),x=g%1;return g===g?x?g-x:g:0}function fM(p){return p?Ku(Ut(p),0,ve):0}function Vo(p){if(typeof p=="number")return p;if(ho(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=P2(p);var x=ZS.test(p);return x||ne.test(p)?Lz(p.slice(2),x?2:8):Im.test(p)?ge:+p}function dM(p){return Ga(p,ki(p))}function bY(p){return p?Ku(Ut(p),-j,j):p===0?p:0}function gn(p){return p==null?"":fo(p)}var SY=Hf(function(p,g){if(Zh(g)||Ni(g)){Ga(g,Or(g),p);return}for(var x in g)wn.call(g,x)&&zh(p,x,g[x])}),hM=Hf(function(p,g){Ga(g,ki(g),p)}),py=Hf(function(p,g,x,E){Ga(g,ki(g),p,E)}),wY=Hf(function(p,g,x,E){Ga(g,Or(g),p,E)}),xY=Es(yw);function TY(p,g){var x=Uf(p);return g==null?x:W2(x,g)}var CY=jt(function(p,g){p=On(p);var x=-1,E=g.length,M=E>2?g[2]:n;for(M&&mi(g[0],g[1],M)&&(E=1);++x<E;)for(var V=g[x],X=ki(V),J=-1,ue=X.length;++J<ue;){var Ie=X[J],Re=p[Ie];(Re===n||pa(Re,$f[Ie])&&!wn.call(p,Ie))&&(p[Ie]=V[Ie])}return p}),EY=jt(function(p){return p.push(n,PO),uo(pM,n,p)});function AY(p,g){return E2(p,yt(g,3),Ha)}function IY(p,g){return E2(p,yt(g,3),bw)}function RY(p,g){return p==null?p:_w(p,yt(g,3),ki)}function PY(p,g){return p==null?p:Z2(p,yt(g,3),ki)}function OY(p,g){return p&&Ha(p,yt(g,3))}function MY(p,g){return p&&bw(p,yt(g,3))}function DY(p){return p==null?[]:Km(p,Or(p))}function LY(p){return p==null?[]:Km(p,ki(p))}function Jw(p,g,x){var E=p==null?n:Zu(p,g);return E===n?x:E}function NY(p,g){return p!=null&&DO(p,g,iW)}function Qw(p,g){return p!=null&&DO(p,g,oW)}var kY=CO(function(p,g,x){g!=null&&typeof g.toString!="function"&&(g=km.call(g)),p[g]=x},tx(Fi)),FY=CO(function(p,g,x){g!=null&&typeof g.toString!="function"&&(g=km.call(g)),wn.call(p,g)?p[g].push(x):p[g]=[x]},yt),$Y=jt(jh);function Or(p){return Ni(p)?G2(p):Tw(p)}function ki(p){return Ni(p)?G2(p,!0):vW(p)}function BY(p,g){var x={};return g=yt(g,3),Ha(p,function(E,M,V){Ts(x,g(E,M,V),E)}),x}function VY(p,g){var x={};return g=yt(g,3),Ha(p,function(E,M,V){Ts(x,M,g(E,M,V))}),x}var UY=Hf(function(p,g,x){Zm(p,g,x)}),pM=Hf(function(p,g,x,E){Zm(p,g,x,E)}),HY=Es(function(p,g){var x={};if(p==null)return x;var E=!1;g=zn(g,function(V){return V=Il(V,p),E||(E=V.length>1),V}),Ga(p,$w(p),x),E&&(x=Fo(x,f|d|h,kW));for(var M=g.length;M--;)Pw(x,g[M]);return x});function GY(p,g){return vM(p,fy(yt(g)))}var zY=Es(function(p,g){return p==null?{}:mW(p,g)});function vM(p,g){if(p==null)return{};var x=zn($w(p),function(E){return[E]});return g=yt(g),aO(p,x,function(E,M){return g(E,M[0])})}function WY(p,g,x){g=Il(g,p);var E=-1,M=g.length;for(M||(M=1,p=n);++E<M;){var V=p==null?n:p[za(g[E])];V===n&&(E=M,V=x),p=Is(V)?V.call(p):V}return p}function jY(p,g,x){return p==null?p:Xh(p,g,x)}function YY(p,g,x,E){return E=typeof E=="function"?E:n,p==null?p:Xh(p,g,x,E)}var gM=IO(Or),mM=IO(ki);function XY(p,g,x){var E=Ft(p),M=E||Pl(p)||Wf(p);if(g=yt(g,4),x==null){var V=p&&p.constructor;M?x=E?new V:[]:qn(p)?x=Is(V)?Uf(Bm(p)):{}:x={}}return(M?Lo:Ha)(p,function(X,J,ue){return g(x,X,J,ue)}),x}function KY(p,g){return p==null?!0:Pw(p,g)}function ZY(p,g,x){return p==null?p:fO(p,g,Dw(x))}function qY(p,g,x,E){return E=typeof E=="function"?E:n,p==null?p:fO(p,g,Dw(x),E)}function jf(p){return p==null?[]:fw(p,Or(p))}function JY(p){return p==null?[]:fw(p,ki(p))}function QY(p,g,x){return x===n&&(x=g,g=n),x!==n&&(x=Vo(x),x=x===x?x:0),g!==n&&(g=Vo(g),g=g===g?g:0),Ku(Vo(p),g,x)}function eX(p,g,x){return g=Rs(g),x===n?(x=g,g=0):x=Rs(x),p=Vo(p),aW(p,g,x)}function tX(p,g,x){if(x&&typeof x!="boolean"&&mi(p,g,x)&&(g=x=n),x===n&&(typeof g=="boolean"?(x=g,g=n):typeof p=="boolean"&&(x=p,p=n)),p===n&&g===n?(p=0,g=1):(p=Rs(p),g===n?(g=p,p=0):g=Rs(g)),p>g){var E=p;p=g,g=E}if(x||p%1||g%1){var M=U2();return Xr(p+M*(g-p+Dz("1e-"+((M+"").length-1))),g)}return Aw(p,g)}var nX=Gf(function(p,g,x){return g=g.toLowerCase(),p+(x?yM(g):g)});function yM(p){return ex(gn(p).toLowerCase())}function _M(p){return p=gn(p),p&&p.replace(at,jz).replace(xz,"")}function rX(p,g,x){p=gn(p),g=fo(g);var E=p.length;x=x===n?E:Ku(Ut(x),0,E);var M=x;return x-=g.length,x>=0&&p.slice(x,M)==g}function iX(p){return p=gn(p),p&&ca.test(p)?p.replace(Ot,Yz):p}function oX(p){return p=gn(p),p&&KS.test(p)?p.replace(Of,"\\$&"):p}var aX=Gf(function(p,g,x){return p+(x?"-":"")+g.toLowerCase()}),sX=Gf(function(p,g,x){return p+(x?" ":"")+g.toLowerCase()}),lX=wO("toLowerCase");function uX(p,g,x){p=gn(p),g=Ut(g);var E=g?kf(p):0;if(!g||E>=g)return p;var M=(g-E)/2;return ny(Gm(M),x)+p+ny(Hm(M),x)}function cX(p,g,x){p=gn(p),g=Ut(g);var E=g?kf(p):0;return g&&E<g?p+ny(g-E,x):p}function fX(p,g,x){p=gn(p),g=Ut(g);var E=g?kf(p):0;return g&&E<g?ny(g-E,x)+p:p}function dX(p,g,x){return x||g==null?g=0:g&&(g=+g),_9(gn(p).replace(Di,""),g||0)}function hX(p,g,x){return(x?mi(p,g,x):g===n)?g=1:g=Ut(g),Iw(gn(p),g)}function pX(){var p=arguments,g=gn(p[0]);return p.length<3?g:g.replace(p[1],p[2])}var vX=Gf(function(p,g,x){return p+(x?"_":"")+g.toLowerCase()});function gX(p,g,x){return x&&typeof x!="number"&&mi(p,g,x)&&(g=x=n),x=x===n?ve:x>>>0,x?(p=gn(p),p&&(typeof g=="string"||g!=null&&!qw(g))&&(g=fo(g),!g&&Nf(p))?Rl(da(p),0,x):p.split(g,x)):[]}var mX=Gf(function(p,g,x){return p+(x?" ":"")+ex(g)});function yX(p,g,x){return p=gn(p),x=x==null?0:Ku(Ut(x),0,p.length),g=fo(g),p.slice(x,x+g.length)==g}function _X(p,g,x){var E=k.templateSettings;x&&mi(p,g,x)&&(g=n),p=gn(p),g=py({},g,E,RO);var M=py({},g.imports,E.imports,RO),V=Or(M),X=fw(M,V),J,ue,Ie=0,Re=g.interpolate||Sn,Le="__p += '",qe=hw((g.escape||Sn).source+"|"+Re.source+"|"+(Re===Pf?Am:Sn).source+"|"+(g.evaluate||Sn).source+"|$","g"),ft="//# sourceURL="+(wn.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Iz+"]")+`
|
||
`;p.replace(qe,function(wt,Zt,on,po,yi,vo){return on||(on=po),Le+=p.slice(Ie,vo).replace(Rr,Xz),Zt&&(J=!0,Le+=`' +
|
||
__e(`+Zt+`) +
|
||
'`),yi&&(ue=!0,Le+=`';
|
||
`+yi+`;
|
||
__p += '`),on&&(Le+=`' +
|
||
((__t = (`+on+`)) == null ? '' : __t) +
|
||
'`),Ie=vo+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 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=SM(function(){return dn(V,ft+"return "+Le).apply(n,X)});if(zt.source=Le,Zw(zt))throw zt;return zt}function bX(p){return gn(p).toLowerCase()}function SX(p){return gn(p).toUpperCase()}function wX(p,g,x){if(p=gn(p),p&&(x||g===n))return P2(p);if(!p||!(g=fo(g)))return p;var E=da(p),M=da(g),V=O2(E,M),X=M2(E,M)+1;return Rl(E,V,X).join("")}function xX(p,g,x){if(p=gn(p),p&&(x||g===n))return p.slice(0,L2(p)+1);if(!p||!(g=fo(g)))return p;var E=da(p),M=M2(E,da(g))+1;return Rl(E,0,M).join("")}function TX(p,g,x){if(p=gn(p),p&&(x||g===n))return p.replace(Di,"");if(!p||!(g=fo(g)))return p;var E=da(p),M=O2(E,da(g));return Rl(E,M).join("")}function CX(p,g){var x=R,E=O;if(qn(g)){var M="separator"in g?g.separator:M;x="length"in g?Ut(g.length):x,E="omission"in g?fo(g.omission):E}p=gn(p);var V=p.length;if(Nf(p)){var X=da(p);V=X.length}if(x>=V)return p;var J=x-kf(E);if(J<1)return E;var ue=X?Rl(X,0,J).join(""):p.slice(0,J);if(M===n)return ue+E;if(X&&(J+=ue.length-J),qw(M)){if(p.slice(J).search(M)){var Ie,Re=ue;for(M.global||(M=hw(M.source,gn(Nh.exec(M))+"g")),M.lastIndex=0;Ie=M.exec(Re);)var Le=Ie.index;ue=ue.slice(0,Le===n?J:Le)}}else if(p.indexOf(fo(M),J)!=J){var qe=ue.lastIndexOf(M);qe>-1&&(ue=ue.slice(0,qe))}return ue+E}function EX(p){return p=gn(p),p&&Nn.test(p)?p.replace(Rt,t9):p}var AX=Gf(function(p,g,x){return p+(x?" ":"")+g.toUpperCase()}),ex=wO("toUpperCase");function bM(p,g,x){return p=gn(p),g=x?n:g,g===n?Zz(p)?i9(p):Uz(p):p.match(g)||[]}var SM=jt(function(p,g){try{return uo(p,n,g)}catch(x){return Zw(x)?x:new Lt(x)}}),IX=Es(function(p,g){return Lo(g,function(x){x=za(x),Ts(p,x,Xw(p[x],p))}),p});function RX(p){var g=p==null?0:p.length,x=yt();return p=g?zn(p,function(E){if(typeof E[1]!="function")throw new No(a);return[x(E[0]),E[1]]}):[],jt(function(E){for(var M=-1;++M<g;){var V=p[M];if(uo(V[0],this,E))return uo(V[1],this,E)}})}function PX(p){return tW(Fo(p,f))}function tx(p){return function(){return p}}function OX(p,g){return p==null||p!==p?g:p}var MX=TO(),DX=TO(!0);function Fi(p){return p}function nx(p){return eO(typeof p=="function"?p:Fo(p,f))}function LX(p){return nO(Fo(p,f))}function NX(p,g){return rO(p,Fo(g,f))}var kX=jt(function(p,g){return function(x){return jh(x,p,g)}}),FX=jt(function(p,g){return function(x){return jh(p,x,g)}});function rx(p,g,x){var E=Or(g),M=Km(g,E);x==null&&!(qn(g)&&(M.length||!E.length))&&(x=g,g=p,p=this,M=Km(g,Or(g)));var V=!(qn(x)&&"chain"in x)||!!x.chain,X=Is(p);return Lo(M,function(J){var ue=g[J];p[J]=ue,X&&(p.prototype[J]=function(){var Ie=this.__chain__;if(V||Ie){var Re=p(this.__wrapped__),Le=Re.__actions__=Li(this.__actions__);return Le.push({func:ue,args:arguments,thisArg:p}),Re.__chain__=Ie,Re}return ue.apply(p,xl([this.value()],arguments))})}),p}function $X(){return kr._===this&&(kr._=c9),this}function ix(){}function BX(p){return p=Ut(p),jt(function(g){return iO(g,p)})}var VX=Nw(zn),UX=Nw(C2),HX=Nw(aw);function wM(p){return Hw(p)?sw(za(p)):yW(p)}function GX(p){return function(g){return p==null?n:Zu(p,g)}}var zX=EO(),WX=EO(!0);function ox(){return[]}function ax(){return!1}function jX(){return{}}function YX(){return""}function XX(){return!0}function KX(p,g){if(p=Ut(p),p<1||p>j)return[];var x=ve,E=Xr(p,ve);g=yt(g),p-=ve;for(var M=cw(E,g);++x<p;)g(x);return M}function ZX(p){return Ft(p)?zn(p,za):ho(p)?[p]:Li(HO(gn(p)))}function qX(p){var g=++l9;return gn(p)+g}var JX=ty(function(p,g){return p+g},0),QX=kw("ceil"),eK=ty(function(p,g){return p/g},1),tK=kw("floor");function nK(p){return p&&p.length?Xm(p,Fi,Sw):n}function rK(p,g){return p&&p.length?Xm(p,yt(g,2),Sw):n}function iK(p){return I2(p,Fi)}function oK(p,g){return I2(p,yt(g,2))}function aK(p){return p&&p.length?Xm(p,Fi,Cw):n}function sK(p,g){return p&&p.length?Xm(p,yt(g,2),Cw):n}var lK=ty(function(p,g){return p*g},1),uK=kw("round"),cK=ty(function(p,g){return p-g},0);function fK(p){return p&&p.length?uw(p,Fi):0}function dK(p,g){return p&&p.length?uw(p,yt(g,2)):0}return k.after=Lj,k.ary=QO,k.assign=SY,k.assignIn=hM,k.assignInWith=py,k.assignWith=wY,k.at=xY,k.before=eM,k.bind=Xw,k.bindAll=IX,k.bindKey=tM,k.castArray=jj,k.chain=ZO,k.chunk=t7,k.compact=n7,k.concat=r7,k.cond=RX,k.conforms=PX,k.constant=tx,k.countBy=fj,k.create=TY,k.curry=nM,k.curryRight=rM,k.debounce=iM,k.defaults=CY,k.defaultsDeep=EY,k.defer=Nj,k.delay=kj,k.difference=i7,k.differenceBy=o7,k.differenceWith=a7,k.drop=s7,k.dropRight=l7,k.dropRightWhile=u7,k.dropWhile=c7,k.fill=f7,k.filter=hj,k.flatMap=gj,k.flatMapDeep=mj,k.flatMapDepth=yj,k.flatten=jO,k.flattenDeep=d7,k.flattenDepth=h7,k.flip=Fj,k.flow=MX,k.flowRight=DX,k.fromPairs=p7,k.functions=DY,k.functionsIn=LY,k.groupBy=_j,k.initial=g7,k.intersection=m7,k.intersectionBy=y7,k.intersectionWith=_7,k.invert=kY,k.invertBy=FY,k.invokeMap=Sj,k.iteratee=nx,k.keyBy=wj,k.keys=Or,k.keysIn=ki,k.map=ly,k.mapKeys=BY,k.mapValues=VY,k.matches=LX,k.matchesProperty=NX,k.memoize=cy,k.merge=UY,k.mergeWith=pM,k.method=kX,k.methodOf=FX,k.mixin=rx,k.negate=fy,k.nthArg=BX,k.omit=HY,k.omitBy=GY,k.once=$j,k.orderBy=xj,k.over=VX,k.overArgs=Bj,k.overEvery=UX,k.overSome=HX,k.partial=Kw,k.partialRight=oM,k.partition=Tj,k.pick=zY,k.pickBy=vM,k.property=wM,k.propertyOf=GX,k.pull=x7,k.pullAll=XO,k.pullAllBy=T7,k.pullAllWith=C7,k.pullAt=E7,k.range=zX,k.rangeRight=WX,k.rearg=Vj,k.reject=Aj,k.remove=A7,k.rest=Uj,k.reverse=jw,k.sampleSize=Rj,k.set=jY,k.setWith=YY,k.shuffle=Pj,k.slice=I7,k.sortBy=Dj,k.sortedUniq=N7,k.sortedUniqBy=k7,k.split=gX,k.spread=Hj,k.tail=F7,k.take=$7,k.takeRight=B7,k.takeRightWhile=V7,k.takeWhile=U7,k.tap=nj,k.throttle=Gj,k.thru=sy,k.toArray=cM,k.toPairs=gM,k.toPairsIn=mM,k.toPath=ZX,k.toPlainObject=dM,k.transform=XY,k.unary=zj,k.union=H7,k.unionBy=G7,k.unionWith=z7,k.uniq=W7,k.uniqBy=j7,k.uniqWith=Y7,k.unset=KY,k.unzip=Yw,k.unzipWith=KO,k.update=ZY,k.updateWith=qY,k.values=jf,k.valuesIn=JY,k.without=X7,k.words=bM,k.wrap=Wj,k.xor=K7,k.xorBy=Z7,k.xorWith=q7,k.zip=J7,k.zipObject=Q7,k.zipObjectDeep=ej,k.zipWith=tj,k.entries=gM,k.entriesIn=mM,k.extend=hM,k.extendWith=py,rx(k,k),k.add=JX,k.attempt=SM,k.camelCase=nX,k.capitalize=yM,k.ceil=QX,k.clamp=QY,k.clone=Yj,k.cloneDeep=Kj,k.cloneDeepWith=Zj,k.cloneWith=Xj,k.conformsTo=qj,k.deburr=_M,k.defaultTo=OX,k.divide=eK,k.endsWith=rX,k.eq=pa,k.escape=iX,k.escapeRegExp=oX,k.every=dj,k.find=pj,k.findIndex=zO,k.findKey=AY,k.findLast=vj,k.findLastIndex=WO,k.findLastKey=IY,k.floor=tK,k.forEach=qO,k.forEachRight=JO,k.forIn=RY,k.forInRight=PY,k.forOwn=OY,k.forOwnRight=MY,k.get=Jw,k.gt=Jj,k.gte=Qj,k.has=NY,k.hasIn=Qw,k.head=YO,k.identity=Fi,k.includes=bj,k.indexOf=v7,k.inRange=eX,k.invoke=$Y,k.isArguments=Qu,k.isArray=Ft,k.isArrayBuffer=eY,k.isArrayLike=Ni,k.isArrayLikeObject=ur,k.isBoolean=tY,k.isBuffer=Pl,k.isDate=nY,k.isElement=rY,k.isEmpty=iY,k.isEqual=oY,k.isEqualWith=aY,k.isError=Zw,k.isFinite=sY,k.isFunction=Is,k.isInteger=aM,k.isLength=dy,k.isMap=sM,k.isMatch=lY,k.isMatchWith=uY,k.isNaN=cY,k.isNative=fY,k.isNil=hY,k.isNull=dY,k.isNumber=lM,k.isObject=qn,k.isObjectLike=er,k.isPlainObject=Jh,k.isRegExp=qw,k.isSafeInteger=pY,k.isSet=uM,k.isString=hy,k.isSymbol=ho,k.isTypedArray=Wf,k.isUndefined=vY,k.isWeakMap=gY,k.isWeakSet=mY,k.join=b7,k.kebabCase=aX,k.last=Bo,k.lastIndexOf=S7,k.lowerCase=sX,k.lowerFirst=lX,k.lt=yY,k.lte=_Y,k.max=nK,k.maxBy=rK,k.mean=iK,k.meanBy=oK,k.min=aK,k.minBy=sK,k.stubArray=ox,k.stubFalse=ax,k.stubObject=jX,k.stubString=YX,k.stubTrue=XX,k.multiply=lK,k.nth=w7,k.noConflict=$X,k.noop=ix,k.now=uy,k.pad=uX,k.padEnd=cX,k.padStart=fX,k.parseInt=dX,k.random=tX,k.reduce=Cj,k.reduceRight=Ej,k.repeat=hX,k.replace=pX,k.result=WY,k.round=uK,k.runInContext=ae,k.sample=Ij,k.size=Oj,k.snakeCase=vX,k.some=Mj,k.sortedIndex=R7,k.sortedIndexBy=P7,k.sortedIndexOf=O7,k.sortedLastIndex=M7,k.sortedLastIndexBy=D7,k.sortedLastIndexOf=L7,k.startCase=mX,k.startsWith=yX,k.subtract=cK,k.sum=fK,k.sumBy=dK,k.template=_X,k.times=KX,k.toFinite=Rs,k.toInteger=Ut,k.toLength=fM,k.toLower=bX,k.toNumber=Vo,k.toSafeInteger=bY,k.toString=gn,k.toUpper=SX,k.trim=wX,k.trimEnd=xX,k.trimStart=TX,k.truncate=CX,k.unescape=EX,k.uniqueId=qX,k.upperCase=AX,k.upperFirst=ex,k.each=qO,k.eachRight=JO,k.first=YO,rx(k,function(){var p={};return Ha(k,function(g,x){wn.call(k.prototype,x)||(p[x]=g)}),p}(),{chain:!1}),k.VERSION=r,Lo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(p){k[p].placeholder=k}),Lo(["drop","take"],function(p,g){en.prototype[p]=function(x){x=x===n?1:wr(Ut(x),0);var E=this.__filtered__&&!g?new en(this):this.clone();return E.__filtered__?E.__takeCount__=Xr(x,E.__takeCount__):E.__views__.push({size:Xr(x,ve),type:p+(E.__dir__<0?"Right":"")}),E},en.prototype[p+"Right"]=function(x){return this.reverse()[p](x).reverse()}}),Lo(["filter","map","takeWhile"],function(p,g){var x=g+1,E=x==F||x==B;en.prototype[p]=function(M){var V=this.clone();return V.__iteratees__.push({iteratee:yt(M,3),type:x}),V.__filtered__=V.__filtered__||E,V}}),Lo(["head","last"],function(p,g){var x="take"+(g?"Right":"");en.prototype[p]=function(){return this[x](1).value()[0]}}),Lo(["initial","tail"],function(p,g){var x="drop"+(g?"":"Right");en.prototype[p]=function(){return this.__filtered__?new en(this):this[x](1)}}),en.prototype.compact=function(){return this.filter(Fi)},en.prototype.find=function(p){return this.filter(p).head()},en.prototype.findLast=function(p){return this.reverse().find(p)},en.prototype.invokeMap=jt(function(p,g){return typeof p=="function"?new en(this):this.map(function(x){return jh(x,p,g)})}),en.prototype.reject=function(p){return this.filter(fy(yt(p)))},en.prototype.slice=function(p,g){p=Ut(p);var x=this;return x.__filtered__&&(p>0||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)},Ha(en.prototype,function(p,g){var x=/^(?:filter|find|map|reject)|While$/.test(g),E=/^(?:head|last)$/.test(g),M=k[E?"take"+(g=="last"?"Right":""):g],V=E||/^find/.test(g);M&&(k.prototype[g]=function(){var X=this.__wrapped__,J=E?[1]:arguments,ue=X instanceof en,Ie=J[0],Re=ue||Ft(X),Le=function(Zt){var on=M.apply(k,xl([Zt],J));return E&&qe?on[0]:on};Re&&x&&typeof Ie=="function"&&Ie.length!=1&&(ue=Re=!1);var qe=this.__chain__,ft=!!this.__actions__.length,St=V&&!qe,zt=ue&&!ft;if(!V&&Re){X=zt?X:new en(this);var wt=p.apply(X,J);return wt.__actions__.push({func:sy,args:[Le],thisArg:n}),new ko(wt,qe)}return St&&zt?p.apply(this,J):(wt=this.thru(Le),St?E?wt.value()[0]:wt.value():wt)})}),Lo(["pop","push","shift","sort","splice","unshift"],function(p){var g=Dm[p],x=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",E=/^(?:pop|shift)$/.test(p);k.prototype[p]=function(){var M=arguments;if(E&&!this.__chain__){var V=this.value();return g.apply(Ft(V)?V:[],M)}return this[x](function(X){return g.apply(Ft(X)?X:[],M)})}}),Ha(en.prototype,function(p,g){var x=k[g];if(x){var E=x.name+"";wn.call(Vf,E)||(Vf[E]=[]),Vf[E].push({name:g,func:x})}}),Vf[ey(n,_).name]=[{name:"wrapper",func:n}],en.prototype.clone=E9,en.prototype.reverse=A9,en.prototype.value=I9,k.prototype.at=rj,k.prototype.chain=ij,k.prototype.commit=oj,k.prototype.next=aj,k.prototype.plant=lj,k.prototype.reverse=uj,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=cj,k.prototype.first=k.prototype.head,Bh&&(k.prototype[Bh]=sj),k},Ff=o9();Wu?((Wu.exports=Ff)._=Ff,nw._=Ff):kr._=Ff}).call(Lre)}(Hp,Hp.exports)),Hp.exports}var zr=Nre();const $r=[];for(let e=0;e<256;++e)$r.push((e+256).toString(16).slice(1));function kre(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 Px;const Fre=new Uint8Array(16);function $re(){if(!Px){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Px=crypto.getRandomValues.bind(crypto)}return Px(Fre)}const Bre=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mL={randomUUID:Bre};function Vre(e,t,n){if(mL.randomUUID&&!t&&!e)return mL.randomUUID();e=e||{};const r=e.random||(e.rng||$re)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,kre(r)}const ds=Dt("setup/api-list",[]),di=Dt("setup/active-uuid",""),fl=Ve(()=>ds.value.find(e=>e.uuid===di.value)),Ure=e=>{const t=ds.value.find(r=>zr.isEqual(zr.omit(r,"uuid"),e));if(t){di.value=t.uuid;return}const n=Vre();ds.value.push({...e,uuid:n}),di.value=n},kB=e=>{ds.value=ds.value.filter(t=>t.uuid!==e)},$c=60,Jc=new Array($c).fill(0).map((e,t)=>({name:t,value:e})),Bb=ke(0),Gp=ke([...Jc]),l_=ke([...Jc]),Vb=ke(0),Ub=ke(0),zp=ke([...Jc]),Wp=ke([...Jc]);let Oy;const Hre=()=>{Oy==null||Oy(),zp.value=[...Jc],Wp.value=[...Jc],Gp.value=[...Jc];const{data:e,close:t}=Yoe(),n=Wt(()=>e.value,a=>{if(!a)return;const s=Date.now().valueOf();Bb.value=a.inuse,Gp.value.push({value:a.inuse,name:s}),l_.value.push({value:Ra.value.length,name:s}),Gp.value=Gp.value.slice(-1*$c),l_.value=l_.value.slice(-1*$c)}),{data:r,close:i}=Xoe(),o=Wt(()=>r.value,a=>{if(!a)return;const s=Date.now().valueOf();Vb.value=a.down,Ub.value=a.up,zp.value.push({value:a.down,name:s}),Wp.value.push({value:a.up,name:s}),zp.value=zp.value.slice(-1*$c),Wp.value=Wp.value.slice(-1*$c)});Oy=()=>{t(),i(),n(),o()}},Mc="GLOBAL",vE=ke([]),Wr=ke({}),f1=ke({}),ih=Dt("config/ipv6-map",{}),Fd=ke([]),tm=e=>f1.value[uu(e)],Gre=e=>ih.value[uu(e)],dl=async()=>{const{data:e}=await Loe(),{data:t}=await koe(),n=e.proxies[Mc].all??[];Wr.value=e.proxies,vE.value=Object.values(e.proxies).filter(r=>{var i;return((i=r.all)==null?void 0:i.length)&&r.name!==Mc}).sort((r,i)=>n.indexOf(r.name)-n.indexOf(i.name)).map(r=>r.name),f1.value=Object.fromEntries(Object.entries(e.proxies).map(([r,i])=>(qc.value&&Yre(i)&&(ih.value[r]=!0),[r,jre(i)]))),Fd.value=Object.values(t.providers).filter(r=>r.name!=="default"&&r.vehicleType!=="Compatible")},yL=async(e,t)=>{await Noe(e,t),Wr.value[e].now=t,n_.value&&Ra.value.filter(n=>n.chains.includes(e)).forEach(n=>Kb(n.id)),dl()},zre=async e=>{if(qc.value)try{const{data:t}=await kL(e,UI,4e3);ih.value[uu(e)]=t.delay>wo}catch{ih.value[uu(e)]=!1}try{const{data:t}=await kL(e,vv.value,gv.value);f1.value[uu(e)]=t.delay}catch{f1.value[uu(e)]=wo}},Wre=async e=>{var r,i;const t=Wr.value[e].all??[],n=Math.ceil(t.length/10)*gv.value;if(qc.value)try{const{data:o}=await FL(e,UI,n);(r=Wr.value[e].all)==null||r.forEach(a=>{ih.value[uu(a)]=o[a]>wo})}catch{(i=Wr.value[e].all)==null||i.forEach(o=>{ih.value[uu(o)]=!1})}await FL(e,vv.value,n),await dl()},jre=e=>{var t;return((t=zr.last(e.history))==null?void 0:t.delay)??0},Yre=e=>{var n,r,i;const t=(r=(n=e.extra)==null?void 0:n[UI])==null?void 0:r.history;return(((i=zr.last(t))==null?void 0:i.delay)??0)>wo},uu=e=>{let t=Wr.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const n=Wr.value[t.now];if(!n)return t.name;t=n}return t.name},Xre=Ve(()=>zr.compact(Object.values(Wr.value).map(e=>e.icon)));Wt(Xre,async e=>{const t=await Cre();zr.difference(t,e).forEach(n=>{Ere(n)})});const Kre=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],Zre=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],qre=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Jre=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],_L=(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 Qre(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?Jre:qre:t.binary?Zre:Kre,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=_L(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=_L(Number(e),t.locale,a),u=n[s];return o+l+r+u}const Tn=(e,t)=>Qre(e,{binary:!1,...t}),Hb=e=>La(e).locale(su.value).fromNow(),FB=e=>{const t=Wr.value[e];return t?["direct","reject","reject-drop","pass"].includes(t.type.toLowerCase())||!!t.all:!1},My=e=>{if(FB(e))return-1;const t=tm(e);return t===0?1/0:t},$B=e=>{switch(e=[...e],r_.value&&(e=e.filter(t=>FB(t)||tm(t)>0)),t_.value){case ru.DEFAULT:return e;case ru.NAME_ASC:return e.sort((t,n)=>t.localeCompare(n));case ru.NAME_DESC:return e.sort((t,n)=>n.localeCompare(t));case ru.LATENCY_ASC:return e.sort((t,n)=>My(t)-My(n));case ru.LATENCY_DESC:return e.sort((t,n)=>My(n)-My(t))}},d1=e=>{if(e===null)return"";if(e==="")return"Inner";const t=e.includes(":");for(const n in So.value)if(n.startsWith("/")){if(new RegExp(n,"i").test(e))return So.value[n]}else if(e===n||t&&e.endsWith(n))return So.value[n];return e},BB=e=>e.metadata.process||e.metadata.processPath.replace(/^.*[/\\](.*)$/,"$1")||"-",VB=e=>e.metadata.remoteDestination||e.metadata.destinationIP||e.metadata.host,UB=e=>`${e.metadata.type} | ${e.metadata.network}`,HB=(e,t)=>{const{suffix:n="",binary:r=!1}=t;return e.data.name<$c+1?"":`
|
||
<div class="flex items-center my-2 gap-1">
|
||
<div class="w-4 h-4 rounded-full" style="background-color: ${e.color}"></div>
|
||
${e.seriesName}
|
||
(${La(e.data.name).format("HH:mm:ss")}): ${Tn(e.data.value,{binary:r})}${n}
|
||
</div>`},bL=()=>{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)},h1=()=>{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()},Au=e=>`${e.protocol}://${e.host}:${e.port}${e.secondaryPath||""}`,iu=e=>e===wo?"":e<lu.value?"text-green-500":e<Xs.value?"text-yellow-500":"text-red-500",$s=Ve(()=>Object.values(un).filter(e=>![un.setup,!_d.value&&un.overview].includes(e)));function GB(e,t){return function(){return e.apply(t,arguments)}}const{toString:eie}=Object.prototype,{getPrototypeOf:jI}=Object,Gb=(e=>t=>{const n=eie.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ba=e=>(e=e.toLowerCase(),t=>Gb(t)===e),zb=e=>t=>typeof t===e,{isArray:wh}=Array,hg=zb("undefined");function tie(e){return e!==null&&!hg(e)&&e.constructor!==null&&!hg(e.constructor)&&Ao(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zB=Ba("ArrayBuffer");function nie(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zB(e.buffer),t}const rie=zb("string"),Ao=zb("function"),WB=zb("number"),Wb=e=>e!==null&&typeof e=="object",iie=e=>e===!0||e===!1,u_=e=>{if(Gb(e)!=="object")return!1;const t=jI(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},oie=Ba("Date"),aie=Ba("File"),sie=Ba("Blob"),lie=Ba("FileList"),uie=e=>Wb(e)&&Ao(e.pipe),cie=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ao(e.append)&&((t=Gb(e))==="formdata"||t==="object"&&Ao(e.toString)&&e.toString()==="[object FormData]"))},fie=Ba("URLSearchParams"),[die,hie,pie,vie]=["ReadableStream","Request","Response","Headers"].map(Ba),gie=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nm(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;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function jB(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Bc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,YB=e=>!hg(e)&&e!==Bc;function gE(){const{caseless:e}=YB(this)&&this||{},t={},n=(r,i)=>{const o=e&&jB(t,i)||i;u_(t[o])&&u_(r)?t[o]=gE(t[o],r):u_(r)?t[o]=gE({},r):wh(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&nm(arguments[r],n);return t}const mie=(e,t,n,{allOwnKeys:r}={})=>(nm(t,(i,o)=>{n&&Ao(i)?e[o]=GB(i,n):e[o]=i},{allOwnKeys:r}),e),yie=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_ie=(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)},bie=(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&&jI(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Sie=(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},wie=e=>{if(!e)return null;if(wh(e))return e;let t=e.length;if(!WB(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},xie=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&jI(Uint8Array)),Tie=(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])}},Cie=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Eie=Ba("HTMLFormElement"),Aie=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),SL=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Iie=Ba("RegExp"),XB=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};nm(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},Rie=e=>{XB(e,(t,n)=>{if(Ao(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ao(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+"'")})}})},Pie=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return wh(e)?r(e):r(String(e).split(t)),n},Oie=()=>{},Mie=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ox="abcdefghijklmnopqrstuvwxyz",wL="0123456789",KB={DIGIT:wL,ALPHA:Ox,ALPHA_DIGIT:Ox+Ox.toUpperCase()+wL},Die=(e=16,t=KB.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Lie(e){return!!(e&&Ao(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Nie=e=>{const t=new Array(10),n=(r,i)=>{if(Wb(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=wh(r)?[]:{};return nm(r,(a,s)=>{const l=n(a,i+1);!hg(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},kie=Ba("AsyncFunction"),Fie=e=>e&&(Wb(e)||Ao(e))&&Ao(e.then)&&Ao(e.catch),ZB=((e,t)=>e?setImmediate:t?((n,r)=>(Bc.addEventListener("message",({source:i,data:o})=>{i===Bc&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Bc.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ao(Bc.postMessage)),$ie=typeof queueMicrotask<"u"?queueMicrotask.bind(Bc):typeof process<"u"&&process.nextTick||ZB,be={isArray:wh,isArrayBuffer:zB,isBuffer:tie,isFormData:cie,isArrayBufferView:nie,isString:rie,isNumber:WB,isBoolean:iie,isObject:Wb,isPlainObject:u_,isReadableStream:die,isRequest:hie,isResponse:pie,isHeaders:vie,isUndefined:hg,isDate:oie,isFile:aie,isBlob:sie,isRegExp:Iie,isFunction:Ao,isStream:uie,isURLSearchParams:fie,isTypedArray:xie,isFileList:lie,forEach:nm,merge:gE,extend:mie,trim:gie,stripBOM:yie,inherits:_ie,toFlatObject:bie,kindOf:Gb,kindOfTest:Ba,endsWith:Sie,toArray:wie,forEachEntry:Tie,matchAll:Cie,isHTMLForm:Eie,hasOwnProperty:SL,hasOwnProp:SL,reduceDescriptors:XB,freezeMethods:Rie,toObjectSet:Pie,toCamelCase:Aie,noop:Oie,toFiniteNumber:Mie,findKey:jB,global:Bc,isContextDefined:YB,ALPHABET:KB,generateString:Die,isSpecCompliantForm:Lie,toJSONObject:Nie,isAsyncFn:kie,isThenable:Fie,setImmediate:ZB,asap:$ie};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 qB=Bt.prototype,JB={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{JB[e]={value:e}});Object.defineProperties(Bt,JB);Object.defineProperty(qB,"isAxiosError",{value:!0});Bt.from=(e,t,n,r,i,o)=>{const a=Object.create(qB);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 Bie=null;function mE(e){return be.isPlainObject(e)||be.isArray(e)}function QB(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function xL(e,t,n){return e?e.concat(t).map(function(i,o){return i=QB(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Vie(e){return be.isArray(e)&&!e.some(mE)}const Uie=be.toFlatObject(be,{},null,function(t){return/^is[A-Z]/.test(t)});function jb(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)&&Vie(v)||(be.isFileList(v)||be.endsWith(m,"[]"))&&(_=be.toArray(v)))return m=QB(m),_.forEach(function(w,S){!(be.isUndefined(w)||w===null)&&t.append(a===!0?xL([m],S,o):a===null?m:m+"[]",u(w))}),!1}return mE(v)?!0:(t.append(xL(y,m,o),u(v)),!1)}const f=[],d=Object.assign(Uie,{defaultVisitor:c,convertValue:u,isVisitable:mE});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 TL(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function YI(e,t){this._pairs=[],e&&jb(e,this,t)}const eV=YI.prototype;eV.append=function(t,n){this._pairs.push([t,n])};eV.toString=function(t){const n=t?function(r){return t.call(this,r,TL)}:TL;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Hie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tV(e,t,n){if(!t)return e;const r=n&&n.encode||Hie;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 YI(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class CL{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 nV={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gie=typeof URLSearchParams<"u"?URLSearchParams:YI,zie=typeof FormData<"u"?FormData:null,Wie=typeof Blob<"u"?Blob:null,jie={isBrowser:!0,classes:{URLSearchParams:Gie,FormData:zie,Blob:Wie},protocols:["http","https","file","blob","url","data"]},XI=typeof window<"u"&&typeof document<"u",yE=typeof navigator=="object"&&navigator||void 0,Yie=XI&&(!yE||["ReactNative","NativeScript","NS"].indexOf(yE.product)<0),Xie=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kie=XI&&window.location.href||"http://localhost",Zie=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:XI,hasStandardBrowserEnv:Yie,hasStandardBrowserWebWorkerEnv:Xie,navigator:yE,origin:Kie},Symbol.toStringTag,{value:"Module"})),ui={...Zie,...jie};function qie(e,t){return jb(e,new ui.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return ui.isNode&&be.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Jie(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Qie(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function rV(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=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]=Qie(i[a])),!s)}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};return be.forEachEntry(e,(r,i)=>{t(Jie(r),i,n,0)}),n}return null}function eoe(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 rm={transitional:nV,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(rV(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 qie(t,this.formSerializer).toString();if((s=be.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return jb(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),eoe(t)):t}],transformResponse:[function(t){const n=this.transitional||rm.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:ui.classes.FormData,Blob:ui.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=>{rm.headers[e]={}});const toe=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"]),noe=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]&&toe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},EL=Symbol("internals");function op(e){return e&&String(e).trim().toLowerCase()}function c_(e){return e===!1||e==null?e:be.isArray(e)?e.map(c_):String(e)}function roe(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 ioe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Mx(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 ooe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function aoe(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 Qi{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]=c_(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())&&!ioe(t))a(noe(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 roe(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||Mx(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||Mx(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||Mx(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]=c_(i),delete n[o];return}const s=t?ooe(o):String(o).trim();s!==o&&delete n[o],n[s]=c_(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[EL]=this[EL]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=op(a);r[s]||(aoe(i,a),r[s]=!0)}return be.isArray(t)?t.forEach(o):o(t),this}}Qi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors(Qi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});be.freezeMethods(Qi);function Dx(e,t){const n=this||rm,r=t||n,i=Qi.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 iV(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 oV(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 soe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function loe(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<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function uoe(e,t){let n=0,r=1e3/t,i,o;const a=(u,c=Date.now())=>{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 p1=(e,t,n=3)=>{let r=0;const i=loe(50,250);return uoe(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)},AL=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},IL=e=>(...t)=>be.asap(()=>e(...t)),coe=ui.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ui.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ui.origin),ui.navigator&&/(msie|trident)/i.test(ui.navigator.userAgent)):()=>!0,foe=ui.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 doe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hoe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function aV(e,t){return e&&!doe(t)?hoe(e,t):t}const RL=e=>e instanceof Qi?{...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(RL(u),RL(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 sV=e=>{const t=hf({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Qi.from(a),t.url=tV(aV(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(ui.hasStandardBrowserEnv||ui.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(ui.hasStandardBrowserEnv&&(r&&be.isFunction(r)&&(r=r(t)),r||r!==!1&&coe(t.url))){const u=i&&o&&foe.read(o);u&&a.set(i,u)}return t},poe=typeof XMLHttpRequest<"u",voe=poe&&function(e){return new Promise(function(n,r){const i=sV(e);let o=i.data;const a=Qi.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=Qi.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};oV(function(A){n(A),m()},function(A){r(A),m()},C),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 C=i.transitional||nV;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new Bt(S,C.clarifyTimeoutError?Bt.ETIMEDOUT:Bt.ECONNABORTED,e,y)),y=null},o===void 0&&a.setContentType(null),"setRequestHeader"in y&&be.forEach(a.toJSON(),function(S,C){y.setRequestHeader(C,S)}),be.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),s&&s!=="json"&&(y.responseType=i.responseType),u&&([d,v]=p1(u,!0),y.addEventListener("progress",d)),l&&y.upload&&([f,h]=p1(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=soe(i.url);if(b&&ui.protocols.indexOf(b)===-1){r(new Bt("Unsupported protocol "+b+":",Bt.ERR_BAD_REQUEST,e));return}y.send(o||null)})},goe=(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}},moe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},yoe=async function*(e,t){for await(const n of _oe(e))yield*moe(n,t)},_oe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},PL=(e,t,n,r)=>{const i=yoe(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})},Yb=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",lV=Yb&&typeof ReadableStream=="function",boe=Yb&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),uV=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Soe=lV&&uV(()=>{let e=!1;const t=new Request(ui.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),OL=64*1024,_E=lV&&uV(()=>be.isReadableStream(new Response("").body)),v1={stream:_E&&(e=>e.body)};Yb&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!v1[t]&&(v1[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 woe=async e=>{if(e==null)return 0;if(be.isBlob(e))return e.size;if(be.isSpecCompliantForm(e))return(await new Request(ui.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 boe(e)).byteLength},xoe=async(e,t)=>{const n=be.toFiniteNumber(e.getContentLength());return n??woe(t)},Toe=Yb&&(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}=sV(e);u=u?(u+"").toLowerCase():"text";let h=goe([i,o&&o.toAbortSignal()],a),v;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let y;try{if(l&&Soe&&n!=="get"&&n!=="head"&&(y=await xoe(c,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(be.isFormData(r)&&(T=C.headers.get("content-type"))&&c.setContentType(T),C.body){const[A,P]=AL(y,p1(IL(l)));r=PL(C.body,OL,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=_E&&(u==="stream"||u==="response");if(_E&&(s||w&&m)){const C={};["status","statusText","headers"].forEach(I=>{C[I]=b[I]});const T=be.toFiniteNumber(b.headers.get("content-length")),[A,P]=s&&AL(T,p1(IL(s),!0))||[];b=new Response(PL(b.body,OL,A,()=>{P&&P(),m&&m()}),C)}u=u||"text";let S=await v1[be.findKey(v1,u)||"text"](b,e);return!w&&m&&m(),await new Promise((C,T)=>{oV(C,T,{data:S,headers:Qi.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)}}),bE={http:Bie,xhr:voe,fetch:Toe};be.forEach(bE,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ML=e=>`- ${e}`,Coe=e=>be.isFunction(e)||e===null||e===!1,cV={getAdapter:e=>{e=be.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!Coe(n)&&(r=bE[(a=String(n)).toLowerCase()],r===void 0))throw new Bt(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`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(ML).join(`
|
||
`):" "+ML(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:bE};function Lx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xh(null,e)}function DL(e){return Lx(e),e.headers=Qi.from(e.headers),e.data=Dx.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cV.getAdapter(e.adapter||rm.adapter)(e).then(function(r){return Lx(e),r.data=Dx.call(e,e.transformResponse,r),r.headers=Qi.from(r.headers),r},function(r){return iV(r)||(Lx(e),r&&r.response&&(r.response.data=Dx.call(e,e.transformResponse,r.response),r.response.headers=Qi.from(r.response.headers))),Promise.reject(r)})}const fV="1.7.9",Xb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xb[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const LL={};Xb.transitional=function(t,n,r){function i(o,a){return"[Axios v"+fV+"] 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&&!LL[a]&&(LL[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}};Xb.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Eoe(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 f_={assertOptions:Eoe,validators:Xb},ja=f_.validators;class Qc{constructor(t){this.defaults=t,this.interceptors={request:new CL,response:new CL}}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&&f_.assertOptions(r,{silentJSONParsing:ja.transitional(ja.boolean),forcedJSONParsing:ja.transitional(ja.boolean),clarifyTimeoutError:ja.transitional(ja.boolean)},!1),i!=null&&(be.isFunction(i)?n.paramsSerializer={serialize:i}:f_.assertOptions(i,{encode:ja.function,serialize:ja.function},!0)),f_.assertOptions(n,{baseUrl:ja.spelling("baseURL"),withXsrfToken:ja.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=Qi.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=[DL.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.length,c=Promise.resolve(n);f<d;)c=c.then(v[f++],v[f++]);return c}d=s.length;let h=n;for(f=0;f<d;){const v=s[f++],m=s[f++];try{h=v(h)}catch(y){m.call(this,y);break}}try{c=DL.call(this,h)}catch(v){return Promise.reject(v)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=hf(this.defaults,t);const n=aV(t.baseURL,t.url);return tV(n,t.params,t.paramsSerializer)}}be.forEach(["delete","get","head","options"],function(t){Qc.prototype[t]=function(n,r){return this.request(hf(r||{},{method:t,url:n,data:(r||{}).data}))}});be.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(hf(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Qc.prototype[t]=n(),Qc.prototype[t+"Form"]=n(!0)});class KI{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{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 KI(function(i){t=i}),cancel:t}}}function Aoe(e){return function(n){return e.apply(null,n)}}function Ioe(e){return be.isObject(e)&&e.isAxiosError===!0}const SE={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(SE).forEach(([e,t])=>{SE[t]=e});function dV(e){const t=new Qc(e),n=GB(Qc.prototype.request,t);return be.extend(n,Qc.prototype,t,{allOwnKeys:!0}),be.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return dV(hf(e,i))},n}const Gt=dV(rm);Gt.Axios=Qc;Gt.CanceledError=xh;Gt.CancelToken=KI;Gt.isCancel=iV;Gt.VERSION=fV;Gt.toFormData=jb;Gt.AxiosError=Bt;Gt.Cancel=Gt.CanceledError;Gt.all=function(t){return Promise.all(t)};Gt.spread=Aoe;Gt.isAxiosError=Ioe;Gt.mergeConfig=hf;Gt.AxiosHeaders=Qi;Gt.formToJSON=e=>rV(be.isHTMLForm(e)?new FormData(e):e);Gt.getAdapter=cV.getAdapter;Gt.HttpStatusCode=SE;Gt.default=Gt;var d_={exports:{}},Roe=d_.exports,NL;function Poe(){return NL||(NL=1,function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(Roe,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})}(d_)),d_.exports}var Ooe=Poe();const Moe=ub(Ooe);Gt.interceptors.request.use(e=>{var t;return e.baseURL=Au(fl.value),e.headers.Authorization="Bearer "+((t=fl.value)==null?void 0:t.password),e});Gt.interceptors.response.use(null,e=>(e.status===401&&di.value?(kB(di.value),di.value=null,$a.push({name:un.setup}),ms(()=>{const{showTip:t}=Fb();t("unauthorizedTip")})):e.status===404&&(di.value=null,$a.push({name:un.setup})),e));const pg=ke(),wE=ke(!1),Doe=()=>Gt.get("/version"),hl=Ve(()=>{var e;return(e=pg.value)==null?void 0:e.includes("sing-box")}),hV=ke("1.49.1");Wt(fl,async e=>{if(e){const{data:t}=await Doe();if(pg.value=t.version,hl.value)return;wE.value=await Zoe(),wE.value&&q0.value&&mV()}},{immediate:!0});const Loe=()=>Gt.get("/proxies"),Noe=(e,t)=>Gt.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),kL=(e,t,n)=>Gt.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),FL=(e,t,n)=>Gt.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),koe=()=>Gt.get("/providers/proxies"),pV=e=>Gt.put(`/providers/proxies/${encodeURIComponent(e)}`),Foe=e=>Gt.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),$oe=()=>Gt.get("/rules"),Boe=()=>Gt.get("/providers/rules"),vV=e=>Gt.put(`/providers/rules/${encodeURIComponent(e)}`),Kb=e=>Gt.delete(`/connections/${e}`),Voe=()=>Gt.get("/configs"),Uoe=e=>Gt.patch("/configs",e),$L=()=>Gt.post("/cache/fakeip/flush"),Hoe=()=>Gt.put("/configs?reload=true",{path:"",payload:""}),gV=()=>Gt.post("/upgrade/ui"),mV=()=>Gt.post("/upgrade"),Goe=()=>Gt.post("/restart"),zoe=e=>Gt.get("/dns/query",{params:e}),Zb=(e,t)=>{const n=fl.value,r=new URL(`${Au(n).replace("http","ws")}/${e}`);r.searchParams.append("token",(n==null?void 0:n.password)||""),t&&Object.entries(t).forEach(([l,u])=>{r.searchParams.append(l,u)});const i=ke(),o=new Moe(r.toString()),a=()=>{o.close()},s=({data:l})=>{i.value=JSON.parse(l)};return o.onmessage=e==="logs"?s:zr.debounce(s,100),{data:i,close:a}},Woe=()=>Zb("connections"),joe=(e={})=>Zb("logs",e),Yoe=()=>Zb("memory"),Xoe=()=>Zb("traffic"),BL=async(e,t=1e4)=>{const n=new AbortController,r=setTimeout(()=>n.abort(),t);try{return(await fetch(`${Au(e)}/version`,{method:"GET",headers:{Authorization:`Bearer ${e.password}`},signal:n.signal})).ok}catch{return!1}finally{clearTimeout(r)}},Koe=async()=>{const e=await fetch("https://api.github.com/repos/Zephyruso/zashboard/releases/latest"),{tag_name:t}=await e.json();return t&&t!==`v${hV.value}`},VL=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))},Zoe=async()=>{const e=/(alpha|beta|meta)-?(\w+)/.exec(pg.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(pg.value)}const t=e[1],n=e[2];return t==="meta"?await VL("/releases/latest",n):t==="alpha"?await VL("/releases/tags/Prerelease-Alpha",n):!1},yV=async(e="")=>await(await fetch("https://api.ip.sb/geoip"+(e?`/${e}`:""))).json(),qoe=async()=>await(await fetch("https://myip.ipip.net/json")).json(),im=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)}),Joe=()=>im("https://www.cloudflare.com/favicon.ico"),Qoe=()=>im("https://yt3.ggpht.com/favicon.ico"),eae=()=>im("https://github.githubassets.com/favicon.ico"),tae=()=>im("https://openai.com/favicon.ico"),nae=()=>im("https://apps.bdimg.com/favicon.ico"),Ra=ke([]),h_=ke([]),vg=ke(0),gg=ke(0);let Dy;const rae=()=>{Dy==null||Dy(),Ra.value=[],h_.value=[],vg.value=0,gg.value=0;const e=Woe(),t=Wt(e.data,n=>{var r;n&&(vg.value=n.downloadTotal,gg.value=n.uploadTotal,!m_.value&&(h_.value=[...h_.value,...zr.differenceWith(Ra.value,n.connections,(i,o)=>i.id===o.id)].slice(-500),Ra.value=((r=n.connections)==null?void 0:r.map(i=>{const o=Ra.value.find(a=>a.id===i.id);return(i.metadata.destinationPort==="443"||i.metadata.sniffHost)&&i.metadata.network==="udp"&&(i.metadata.network="quic"),o?{...i,downloadSpeed:i.download-o.download,uploadSpeed:i.upload-o.upload}:{...i,downloadSpeed:0,uploadSpeed:0}}))??[]))});Dy=()=>{t(),e.close()}},wv=Dt("config/quick-filter-regex","direct|dns-out"),p_=Dt("config/quick-filter-enabled",!1),Ec=ke(zs.ACTIVE),iae=Ve(()=>g_.value===Nc.DESC),UL={[zi.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[zi.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[zi.CHAINS]:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),[zi.DOWNLOAD]:(e,t)=>e.download-t.download,[zi.DOWNLOAD_SPEED]:(e,t)=>e.downloadSpeed-t.downloadSpeed,[zi.UPLOAD]:(e,t)=>e.upload-t.upload,[zi.UPLOAD_SPEED]:(e,t)=>e.uploadSpeed-t.uploadSpeed,[zi.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[zi.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[zi.CONNECT_TIME]:(e,t)=>La(e.start).valueOf()-La(t.start).valueOf()},v_=Dt("config/connection-sort-type",zi.HOST),g_=Dt("config/connection-sort-direction",Nc.ASC),xv=ke(""),Us=ke(null),m_=ke(!1),pf=Ve(()=>{let e=null;return p_.value&&wv.value&&(e=new RegExp(wv.value,"i")),(Ec.value===zs.ACTIVE?Ra.value:h_.value).filter(t=>e&&(e.test(t.chains.join(""))||e.test(t.metadata.host)||e.test(t.metadata.destinationIP))||Us.value!==null&&t.metadata.sourceIP!==Us.value?!1:xv.value?[t.metadata.host,t.metadata.destinationIP,t.metadata.destinationPort,t.metadata.sourceIP,t.metadata.sourcePort,t.metadata.sniffHost,t.metadata.processPath,t.metadata.type,t.metadata.network,t.chains.join(""),t.rule,t.rulePayload].some(n=>n==null?void 0:n.includes(xv.value)):!0).sort((t,n)=>{iae.value&&([t,n]=[n,t]);const r=Fc.value?UL[v_.value](t,n):UL[zi.HOST](t,n);return r===0?t.id.localeCompare(n.id):r})});function Kf(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<b;)_=" "+_;return _};console.info(`%c⏱ ${y(v,5)} /${y(h,5)} ms`,`
|
||
font-size: .6rem;
|
||
font-weight: bold;
|
||
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 Nx(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const oae=(e,t)=>Math.abs(e-t)<1,aae=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},sae=e=>e,lae=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},uae=(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)}},HL={passive:!0},cae=typeof window>"u"?!0:"onscrollend"in window,fae=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&cae?()=>{}:aae(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,HL),n.addEventListener("scrollend",l,HL),()=>{n.removeEventListener("scroll",s),n.removeEventListener("scrollend",l)}},dae=(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"])},hae=(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 pae{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:sae,rangeExtractor:lae,onChange:()=>{},measureElement:dae,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=Kf(()=>(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()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>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.end<l.end&&i.set(s.lane,!0),i.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((a,s)=>a.end===s.end?a.index-s.index:a.end-s.end)[0]:void 0},this.getMeasurementOptions=Kf(()=>[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=Kf(()=>[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;c<n;c++){const f=o(c),d=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),h=d?d.end+this.options.gap:r+i,v=s.get(f),m=typeof v=="number"?v:this.options.estimateSize(c),y=h+m,_=d?d.lane:c%this.options.lanes;u[c]={index:c,start:h,size:m,end:y,key:f,lane:_}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Kf(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,r,i)=>this.range=n.length>0&&r>0?vae({measurements:n,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Kf(()=>[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<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=n=>{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=Kf(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let o=0,a=n.length;o<a;o++){const s=n[o],l=r[s];i.push(l)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return Nx(r[_V(0,r.length-1,i=>Nx(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]=Nx(this.getOffsetForIndex(n,s));oae(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 _V=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else if(o>r)t=i-1;else return i}return e>0?e-1:0};function vae({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,o=_V(0,r,s=>e[s].start,n);let a=o;for(;a<r&&e[a].end<n+t;)a++;return{startIndex:o,endIndex:a}}function gae(e){const t=new pae(N(e)),n=Af(t),r=t._didMount();return Wt(()=>N(e).getScrollElement(),i=>{i&&t._willUpdate()},{immediate:!0}),Wt(()=>N(e),i=>{t.setOptions({...i,onChange:(o,a)=>{var s;BC(n),(s=i.onChange)==null||s.call(i,o,a)}}),t._willUpdate(),BC(n)},{immediate:!0}),aI(r),n}function bV(e){return gae(Ve(()=>({observeElementRect:uae,observeElementOffset:fae,scrollToFn:hae,...N(e)})))}const mae=["data-index"],ZI=rt({__name:"VirtualScroller",props:{data:{default:()=>[]},size:{default:64}},setup(e){const t=ke(null),n=e,r=Ve(()=>({count:n.data.length,getScrollElement:()=>t.value,estimateSize:()=>n.size,overscan:36})),i=bV(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(),te("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),te(Xe,null,rn(o.value,f=>(K(),te("div",{key:f.key.toString(),"data-index":f.index,ref_for:!0,ref:s},[Ld(l.$slots,"default",{item:l.data[f.index],index:f.index})],8,mae))),128))],4)],4)],512)}}}),GL=ke(),zL=ke(),qI=()=>({infoConn:GL,modalRef:zL,handlerInfo:t=>{var n;GL.value=t,(n=zL.value)==null||n.showModal()}}),yae=rt({props:{conn:Object},name:"ConnectionCard",setup(e){const{handlerInfo:t}=qI();return()=>{const n={[dt.Host]:ye("span",{class:"w-80 grow break-all text-primary/80"},[e.conn.metadata.host||e.conn.metadata.destinationIP]),[dt.Destination]:ye("span",{class:"w-80 grow break-all"},[VB(e.conn)]),[dt.SourceIP]:ye("span",{class:"w-80 grow break-all"},[d1(e.conn.metadata.sourceIP)]),[dt.SourcePort]:ye("span",{class:"w-80 grow break-all"},[e.conn.metadata.sourcePort]),[dt.SniffHost]:ye("span",{class:"w-80 grow break-all"},[e.conn.metadata.sniffHost||"-"]),[dt.Type]:ye("span",{class:"w-80 grow break-all"},[UB(e.conn)]),[dt.Rule]:ye("span",{class:"w-80 grow break-all"},[e.conn.rule,e.conn.rulePayload&&ye(Xe,null,[lt(": "),e.conn.rulePayload])]),[dt.Process]:ye("span",{class:"w-80 grow break-all"},[BB(e.conn)]),[dt.Chains]:ye("span",{class:["flex w-80 grow items-center gap-1 break-all",Sv.value===Qg.REVERSE&&"flex-row-reverse justify-end"]},[zr.last(e.conn.chains),zr.last(e.conn.chains)!==zr.first(e.conn.chains)&&ye(Xe,null,[ye(ff,{class:"h-4 w-4"},null),zr.first(e.conn.chains)])]),[dt.Download]:ye("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Tn(e.conn.download),ye(_Q,{class:"h-4 w-4"},null)]),[dt.Upload]:ye("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Tn(e.conn.upload),ye(SQ,{class:"h-4 w-4"},null)]),[dt.DlSpeed]:ye("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Tn(e.conn.downloadSpeed),lt("/s"),ye(Rb,{class:"h-4 w-4"},null)]),[dt.UlSpeed]:ye("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Tn(e.conn.uploadSpeed),lt("/s"),ye(qg,{class:"h-4 w-4"},null)]),[dt.ConnectTime]:ye("div",{class:"gap-1 whitespace-nowrap"},[Hb(e.conn.start)]),[dt.Details]:ye("button",{class:"btn btn-circle btn-xs",onClick:()=>t(e.conn)},[ye(Y4,{class:"h-4 w-4"},null)]),[dt.Close]:ye("button",{class:"btn btn-circle btn-xs",onClick:()=>Kb(e.conn.id)},[ye(Ob,{class:"h-4 w-4"},null)])};return ye("div",{class:"card gap-1 p-1"},[Qa.value.map(r=>ye("div",{class:"flex items-center gap-1 text-sm"},[r.map(i=>n[i])]))])}}}),_ae={key:0,class:"card m-2 flex-row p-2 text-sm"},bae=rt({__name:"ConnectionCardList",setup(e){const t=Ve(()=>Qa.value.length*28+4);return(n,r)=>N(pf).length?(K(),At(ZI,{key:1,data:N(pf),size:t.value},{default:Dr(({item:i})=>[ye(N(yae),{class:"mb-1",conn:i},null,8,["conn"])]),_:1},8,["data","size"])):(K(),te("div",_ae,ie(n.$t("noContent")),1))}});/**
|
||
* table-core
|
||
*
|
||
* Copyright (c) TanStack
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function cu(e,t){return typeof e=="function"?e(t):e}function Ro(e,t){return n=>{t.setState(r=>({...r,[e]:cu(n,r[e])}))}}function ef(e){return e instanceof Function}function Sae(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function SV(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<m;)v=" "+v;return v};console.info(`%c⏱ ${h(f,5)} /${h(c,5)} ms`,`
|
||
font-size: .6rem;
|
||
font-weight: bold;
|
||
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 wae(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 xae(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 Zr="debugHeaders";function WL(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 Tae={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 Ly(t,[...s,...u,...l],e)},Tt(e.options,Zr)),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))),Ly(t,n,e,"center")),Tt(e.options,Zr)),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 Ly(t,o,e,"left")},Tt(e.options,Zr)),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 Ly(t,o,e,"right")},Tt(e.options,Zr)),e.getFooterGroups=xt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Tt(e.options,Zr)),e.getLeftFooterGroups=xt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Tt(e.options,Zr)),e.getCenterFooterGroups=xt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Tt(e.options,Zr)),e.getRightFooterGroups=xt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Tt(e.options,Zr)),e.getFlatHeaders=xt(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),Tt(e.options,Zr)),e.getLeftFlatHeaders=xt(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),Tt(e.options,Zr)),e.getCenterFlatHeaders=xt(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),Tt(e.options,Zr)),e.getRightFlatHeaders=xt(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),Tt(e.options,Zr)),e.getCenterLeafHeaders=xt(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Tt(e.options,Zr)),e.getLeftLeafHeaders=xt(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Tt(e.options,Zr)),e.getRightLeafHeaders=xt(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Tt(e.options,Zr)),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,Zr))}};function Ly(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 C=WL(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});C.subHeaders.push(y),m.push(C)}v.headers.push(y),y.headerGroup=v}),l.push(v),h>0&&u(m,h-1)},c=t.map((d,h)=>WL(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:C}=w;m+=S,_.push(C)})):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 wV=(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:()=>SV(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=>wae(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._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},Cae={createColumn:(e,t)=>{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()}}},xV=(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))};xV.autoRemove=e=>Da(e);const TV=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};TV.autoRemove=e=>Da(e);const CV=(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())};CV.autoRemove=e=>Da(e);const EV=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};EV.autoRemove=e=>Da(e)||!(e!=null&&e.length);const AV=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});AV.autoRemove=e=>Da(e)||!(e!=null&&e.length);const IV=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});IV.autoRemove=e=>Da(e)||!(e!=null&&e.length);const RV=(e,t,n)=>e.getValue(t)===n;RV.autoRemove=e=>Da(e);const PV=(e,t,n)=>e.getValue(t)==n;PV.autoRemove=e=>Da(e);const JI=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};JI.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]};JI.autoRemove=e=>Da(e)||Da(e[0])&&Da(e[1]);const Hs={includesString:xV,includesStringSensitive:TV,equalsString:CV,arrIncludes:EV,arrIncludesAll:AV,arrIncludesSome:IV,equals:RV,weakEquals:PV,inNumberRange:JI};function Da(e){return e==null||e===""}const Eae={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ro("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"?Hs.includesString:typeof r=="number"?Hs.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Hs.equals:Array.isArray(r)?Hs.arrIncludes:Hs.weakEquals},e.getFilterFn=()=>{var n,r;return ef(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:Hs[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=cu(n,o?o.value:void 0);if(jL(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=cu(t,i))==null?void 0:o.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(jL(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 jL(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Aae=(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),Iae=(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},Rae=(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},Pae=(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<a&&(i=a)))}),[r,i]},Oae=(e,t)=>{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},Mae=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!Sae(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},Dae=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Lae=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,Nae=(e,t)=>t.length,kx={sum:Aae,min:Iae,max:Rae,extent:Pae,mean:Oae,median:Mae,unique:Dae,uniqueCount:Lae,count:Nae},kae={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:Ro("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 kx.sum;if(Object.prototype.toString.call(r)==="[object Date]")return kx.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return ef(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:kx[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 Fae(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 $ae={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ro("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=xt(n=>[Tv(t,n)],n=>n.findIndex(r=>r.id===e.id),Tt(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=Tv(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=Tv(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 Fae(o,n,r)},Tt(e.options,"debugTable"))}},Fx=()=>({left:[],right:[]}),Bae={getInitialState:e=>({columnPinning:Fx(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Ro("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?Fx():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Fx())},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"))}},Ny={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},$x=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Vae={getDefaultColumnDef:()=>Ny,getInitialState:e=>({columnSizing:{},columnSizingInfo:$x(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ro("columnSizing",e),onColumnSizingInfoChange:Ro("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:Ny.minSize,(r=o??e.columnDef.size)!=null?r:Ny.size),(i=e.columnDef.maxSize)!=null?i:Ny.maxSize)},e.getStart=xt(n=>[n,Tv(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,Tv(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(),Bx(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=Bx(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(_,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(w=>{var S,C;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/((C=w==null?void 0:w.startSize)!=null?C: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=Uae()?{passive:!1}:!1;Bx(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?$x():(n=e.initialState.columnSizingInfo)!=null?n:$x())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let ky=null;function Uae(){if(typeof ky=="boolean")return ky;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 ky=e,ky}function Bx(e){return e.type==="touchstart"}const Hae={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ro("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 Tv(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Gae={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()}}},zae={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Ro("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=()=>Hs.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return ef(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Hs[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Wae={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ro("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()}}}},xE=0,TE=10,Vx=()=>({pageIndex:xE,pageSize:TE}),jae={getInitialState:e=>({...e,pagination:{...Vx(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ro("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=>cu(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Vx():(i=e.initialState.pagination)!=null?i:Vx())},e.setPageIndex=r=>{e.setPagination(i=>{let o=cu(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?xE:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:xE)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?TE:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:TE)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,cu(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=cu(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:r<i-1},e.previousPage=()=>e.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}}},Ux=()=>({top:[],bottom:[]}),Yae={getInitialState:e=>({rowPinning:Ux(),...e}),getDefaultOptions:e=>({onRowPinningChange:Ro("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?Ux():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Ux())},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"))}},Xae={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ro("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=>{CE(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?Hx(e,n):{rows:[],flatRows:[],rowsById:{}},Tt(e.options,"debugTable")),e.getFilteredSelectedRowModel=xt(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Hx(e,n):{rows:[],flatRows:[],rowsById:{}},Tt(e.options,"debugTable")),e.getGroupedSelectedRowModel=xt(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Hx(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<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{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 CE(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 EE(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return EE(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)}}}},CE=(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=>CE(e,s.id,n,r,i))};function Hx(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 EE(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=EE(a,t);s==="all"?o=!0:(s==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const AE=/([0-9]+)/gm,Kae=(e,t,n)=>OV(Iu(e.getValue(n)).toLowerCase(),Iu(t.getValue(n)).toLowerCase()),Zae=(e,t,n)=>OV(Iu(e.getValue(n)),Iu(t.getValue(n))),qae=(e,t,n)=>eR(Iu(e.getValue(n)).toLowerCase(),Iu(t.getValue(n)).toLowerCase()),Jae=(e,t,n)=>eR(Iu(e.getValue(n)),Iu(t.getValue(n))),Qae=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},ese=(e,t,n)=>eR(e.getValue(n),t.getValue(n));function eR(e,t){return e===t?0:e>t?1:-1}function Iu(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function OV(e,t){const n=e.split(AE).filter(Boolean),r=t.split(AE).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:Kae,alphanumericCaseSensitive:Zae,text:qae,textCaseSensitive:Jae,datetime:Qae,basic:ese},tse={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ro("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(AE).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 ef(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())}},nse=[Tae,Hae,$ae,Bae,Cae,Eae,Gae,zae,tse,kae,Wae,jae,Yae,Xae,Vae];function rse(e){var t,n;const r=[...nse,...(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=cu(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=xae(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;d<i._features.length;d++){const h=i._features[d];h==null||h.createTable==null||h.createTable(i)}return i}function ise(){return e=>xt(()=>[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;u<i.length;u++){const c=wV(e,e._getRowId(i[u],u,a),i[u],u,o,void 0,a==null?void 0:a.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c))}}return s};return n.rows=r(t),n},Tt(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function ose(){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:ase(n),Tt(e.options,"debugTable"))}function ase(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 sse(){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=lse(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?SV(_,T=>T.subRows):_,C=wV(e,b,S[0].original,m,u,void 0,c);return Object.assign(C,{groupingColumnId:f,groupingValue:y,subRows:w,leafRows:S,getValue:T=>{if(r.includes(T)){if(C._valuesCache.hasOwnProperty(T))return C._valuesCache[T];if(_[0]){var A;C._valuesCache[T]=(A=_[0].getValue(T))!=null?A:void 0}return C._valuesCache[T]}if(C._groupingValuesCache.hasOwnProperty(T))return C._groupingValuesCache[T];const P=e.getColumn(T),I=P==null?void 0:P.getAggregationFn();if(I)return C._groupingValuesCache[T]=I(T,S,_),C._groupingValuesCache[T]}}),w.forEach(T=>{i.push(T),o[T.id]=T}),C})},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 lse(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 use(){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<o.length;h+=1){var d;const v=o[h],m=a[v.id],y=m.sortUndefined,_=(d=v==null?void 0:v.desc)!=null?d:!1;let b=0;if(y){const w=c.getValue(v.id),S=f.getValue(v.id),C=w===void 0,T=S===void 0;if(C||T){if(y==="first")return C?-1:1;if(y==="last")return C?1:-1;b=C&&T?0:C?y:-y}}if(b===0&&(b=m.sortingFn(c,f,v.id)),b!==0)return _&&(b*=-1),m.invertSorting&&(b*=-1),b}return c.index-f.index}),u.forEach(c=>{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
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Fy(){return!0}const cse=Symbol("merge-proxy"),fse={get(e,t,n){return t===cse?n:e.get(t)},has(e,t){return e.has(t)},set:Fy,deleteProperty:Fy,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Fy,deleteProperty:Fy}},ownKeys(e){return e.keys()}};function Gx(e){return"value"in e?e.value:e}function jp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Proxy({get(r){for(let i=t.length-1;i>=0;i--){const o=Gx(t[i])[r];if(o!==void 0)return o}},has(r){for(let i=t.length-1;i>=0;i--)if(r in Gx(t[i]))return!0;return!1},keys(){const r=[];for(let i=0;i<t.length;i++)r.push(...Object.keys(Gx(t[i])));return[...Array.from(new Set(r))]}},fse)}const zx=rt({props:["render","props"],setup:e=>()=>typeof e.render=="function"||typeof e.render=="object"?Wi(e.render,e.props):e.render});function YL(e){return jp(e,{data:N(e.data)})}function dse(e){const t=st(e.data),n=jp({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(o,a){return t?{...o,...a}:jp(o,a)}},t?YL(e):e),r=rse(n);if(t){const o=Af(e.data);Wt(o,()=>{r.setState(a=>({...a,data:o.value}))},{immediate:!0})}const i=ke(r.initialState);return Cb(()=>{r.setOptions(o=>{var a;const s=new Proxy({},{get:(l,u)=>i.value[u]});return jp(o,t?YL(e):e,{state:jp(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 tR="-",hse=e=>{const t=vse(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(tR);return s[0]===""&&s.length!==1&&s.shift(),MV(s,t)||pse(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},MV=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?MV(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(tR);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},XL=/^\[(.+)\]$/,pse=e=>{if(XL.test(e)){const t=XL.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},vse=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return mse(Object.entries(e.classGroups),n).forEach(([o,a])=>{IE(a,r,o,t)}),r},IE=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:KL(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(gse(i)){IE(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{IE(a,KL(t,o),n,r)})})},KL=(e,t)=>{let n=e;return t.split(tR).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},gse=e=>e.isThemeGetter,mse=(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,yse=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)}}},DV="!",_se=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;y<s.length;y++){let _=s[y];if(u===0){if(_===i&&(r||s.slice(y,y+o)===t)){l.push(s.slice(c,y)),c=y+o;continue}if(_==="/"){f=y;continue}}_==="["?u++:_==="]"&&u--}const d=l.length===0?s:s.substring(c),h=d.startsWith(DV),v=h?d.substring(1):d,m=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}};return n?s=>n({className:s,parseClassName:a}):a},bse=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},Sse=e=>({cache:yse(e.cacheSize),parseClassName:_se(e),...hse(e)}),wse=/\s+/,xse=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(wse);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=bse(c).join(":"),_=f?y+DV:y,b=_+m;if(o.includes(b))continue;o.push(b);const w=i(m,v);for(let S=0;S<w.length;++S){const C=w[S];o.push(_+C)}s=u+(s.length>0?" "+s:s)}return s};function Tse(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=LV(t))&&(r&&(r+=" "),r+=n);return r}const LV=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=LV(e[r]))&&(n&&(n+=" "),n+=t);return n};function Cse(e,...t){let n,r,i,o=a;function a(l){const u=t.reduce((c,f)=>f(c),e());return n=Sse(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=xse(l,n);return i(l,c),c}return function(){return o(Tse.apply(null,arguments))}}const Un=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},NV=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ese=/^\d+\/\d+$/,Ase=new Set(["px","full","screen"]),Ise=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rse=/\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$/,Pse=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ose=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mse=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ls=e=>$d(e)||Ase.has(e)||Ese.test(e),Ll=e=>Th(e,"length",Vse),$d=e=>!!e&&!Number.isNaN(Number(e)),Wx=e=>Th(e,"number",$d),sp=e=>!!e&&Number.isInteger(Number(e)),Dse=e=>e.endsWith("%")&&$d(e.slice(0,-1)),Ht=e=>NV.test(e),Nl=e=>Ise.test(e),Lse=new Set(["length","size","percentage"]),Nse=e=>Th(e,Lse,kV),kse=e=>Th(e,"position",kV),Fse=new Set(["image","url"]),$se=e=>Th(e,Fse,Hse),Bse=e=>Th(e,"",Use),lp=()=>!0,Th=(e,t,n)=>{const r=NV.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Vse=e=>Rse.test(e)&&!Pse.test(e),kV=()=>!1,Use=e=>Ose.test(e),Hse=e=>Mse.test(e),Gse=()=>{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"),C=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],D=()=>[Ht,t],$=()=>["",Ls,Ll],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:[Ls,Ll],blur:["none","",Nl,Ht],brightness:ve(),borderColor:[e],borderRadius:["none","","full",Nl,Ht],borderSpacing:D(),borderWidth:$(),contrast:ve(),grayscale:se(),hueRotate:ve(),invert:se(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[Dse,Ll],inset:O(),margin:O(),opacity:ve(),padding:D(),saturate:ve(),scale:ve(),sepia:se(),skew:ve(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",Ht]}],container:["container"],columns:[{columns:[Nl]}],"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:[Nl]},Nl]}],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",Nl,Ll]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Wx]}],"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,Wx]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ls,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",Ls,Ll]}],"underline-offset":[{"underline-offset":["auto",Ls,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:D()}],"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(),kse]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Nse]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$se]}],"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":[Ls,Ht]}],"outline-w":[{outline:[Ls,Ll]}],"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":[Ls,Ll]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Nl,Bse]}],"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",Nl,Ht]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[C]}],"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":[C]}],"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":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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:[Ls,Ll,Wx]}],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"]}}},Cn=Cse(Gse),zse={class:"sticky -top-2 z-10 bg-base-100"},Wse=["colSpan","onClick"],jse={class:"flex items-center gap-1"},Yse=["onClick"],Xse=["onClick"],Kse=rt({__name:"ConnectionTable",setup(e){const{handlerInfo:t}=qI(),{t:n}=Fa(),r=[{header:()=>n("details"),enableSorting:!1,id:dt.Details,cell:({row:y})=>Wi("button",{class:"btn btn-xs btn-circle",onClick:()=>{const _=y.original;t(_)}},[Wi(Y4,{class:"h-4 w-4"})])},{header:()=>n("close"),enableSorting:!1,id:dt.Close,cell:({row:y})=>Wi("button",{class:"btn btn-xs btn-circle",onClick:()=>{const _=y.original;Kb(_.id)}},[Wi(Ob,{class:"h-4 w-4"})])},{header:()=>n("type"),id:dt.Type,accessorFn:y=>UB(y)},{header:()=>n("process"),id:dt.Process,accessorFn:y=>BB(y)},{header:()=>n("host"),id:dt.Host,accessorFn:y=>`${y.metadata.host?y.metadata.host:y.metadata.destinationIP}:${y.metadata.destinationPort}`},{header:()=>n("sniffHost"),id:dt.SniffHost,accessorFn:y=>y.metadata.sniffHost||"-"},{header:()=>n("rule"),id:dt.Rule,accessorFn:y=>y.rulePayload?`${y.rule}: ${y.rulePayload}`:y.rule},{header:()=>n("chains"),id:dt.Chains,accessorFn:y=>y.chains.join(","),cell:({row:y})=>{const _=[];return y.original.chains.forEach((b,w)=>{_.unshift(Wi("span",b)),w<y.original.chains.length-1&&_.unshift(Wi(ff,{class:"h-4 w-4"}))}),Wi("div",{class:`inline-flex items-center ${Sv.value===Qg.REVERSE&&"flex-row-reverse justify-end"} gap-1`},_)}},{header:()=>n("connectTime"),enableGrouping:!1,id:dt.ConnectTime,accessorFn:y=>Hb(y.start),sortingFn:(y,_)=>La(_.original.start).valueOf()-La(y.original.start).valueOf()},{header:()=>n("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:dt.DlSpeed,accessorFn:y=>`${Tn(y.downloadSpeed)}/s`,sortingFn:(y,_)=>y.original.downloadSpeed-_.original.downloadSpeed},{header:()=>n("ulSpeed"),enableGrouping:!1,id:dt.UlSpeed,accessorFn:y=>`${Tn(y.uploadSpeed)}/s`,sortingFn:(y,_)=>y.original.uploadSpeed-_.original.uploadSpeed},{header:()=>n("dl"),enableGrouping:!1,id:dt.Download,accessorFn:y=>Tn(y.download),sortingFn:(y,_)=>y.original.download-_.original.download},{header:()=>n("ul"),enableGrouping:!1,id:dt.Upload,accessorFn:y=>Tn(y.upload),sortingFn:(y,_)=>y.original.upload-_.original.upload},{header:()=>n("sourceIP"),id:dt.SourceIP,accessorFn:y=>d1(y.metadata.sourceIP)},{header:()=>n("sourcePort"),id:dt.SourcePort,accessorFn:y=>y.metadata.sourcePort},{header:()=>n("destination"),id:dt.Destination,accessorFn:VB}],i=ke([]),o=ke({}),a=Dt("config/table-sorting",[]),s=dse({get data(){return pf.value},columns:r,state:{get columnOrder(){return Ed.value},get columnVisibility(){return{...Object.fromEntries(Object.values(dt).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=>{ef(y)?i.value=y(i.value):i.value=y},onExpandedChange:y=>{ef(y)&&(o.value=y(o.value))},onSortingChange:y=>{ef(y)?a.value=y(a.value):a.value=y},getSortedRowModel:use(),getGroupedRowModel:sse(),getExpandedRowModel:ose(),getCoreRowModel:ise()}),l=Ve(()=>s.getRowModel().rows),u=ke(null),c=Ve(()=>({count:l.value.length,getScrollElement:()=>u.value,estimateSize:()=>36,overscan:48})),f=bV(c),d=Ve(()=>f.value.getVirtualItems()),h=Ve(()=>f.value.getTotalSize()+24),v={[dg.SMALL]:"table-xs",[dg.LARGE]:"table-sm"},m=Ve(()=>v[a_.value]);return(y,_)=>(K(),te("div",{ref_key:"parentRef",ref:u,class:"h-full overflow-y-auto p-2",onTouchstart:_[0]||(_[0]=To(()=>{},["stop"])),onTouchmove:_[1]||(_[1]=To(()=>{},["stop"])),onTouchend:_[2]||(_[2]=To(()=>{},["stop"]))},[L("div",{style:Gr({height:`${h.value}px`})},[L("table",{class:it(`table table-zebra ${m.value} rounded-none shadow-md`)},[L("thead",zse,[(K(!0),te(Xe,null,rn(N(s).getHeaderGroups(),b=>(K(),te("tr",{key:b.id},[(K(!0),te(Xe,null,rn(b.headers,w=>(K(),te("th",{key:w.id,colSpan:w.colSpan,class:it(w.column.getCanSort()?"cursor-pointer select-none":""),onClick:S=>{var C;return(C=w.column.getToggleSortingHandler())==null?void 0:C(S)}},[L("div",jse,[w.column.getCanGroup()?(K(),te("button",{key:0,class:"cursor-pointer",onClick:To(()=>w.column.getToggleGroupingHandler()(),["stop"])},[w.column.getIsGrouped()?(K(),At(N(vD),{key:0,class:"h-4 w-4"})):(K(),At(N(gD),{key:1,class:"h-4 w-4"}))],8,Yse)):gt("",!0),w.isPlaceholder?gt("",!0):(K(),At(N(zx),{key:1,render:w.column.columnDef.header,props:w.getContext()},null,8,["render","props"])),w.column.getIsSorted()==="asc"?(K(),At(N(qg),{key:2,class:"h-4 w-4"})):gt("",!0),w.column.getIsSorted()==="desc"?(K(),At(N(Rb),{key:3,class:"h-4 w-4"})):gt("",!0)])],10,Wse))),128))]))),128))]),L("tbody",null,[(K(!0),te(Xe,null,rn(d.value,(b,w)=>(K(),te("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),te(Xe,null,rn(l.value[b.index].getVisibleCells(),S=>(K(),te("td",{key:S.id,class:it(N(Cn)("whitespace-nowrap text-sm",[N(dt).Download,N(dt).DlSpeed,N(dt).Upload,N(dt).UlSpeed].includes(S.column.id)&&"min-w-20",[N(dt).Host].includes(S.column.id)&&"max-w-[32rem] truncate"))},[S.column.getIsGrouped()?(K(),te(Xe,{key:0},[l.value[b.index].getCanExpand()?(K(),te(Xe,{key:0},[L("button",{onClick:()=>l.value[b.index].getToggleExpandedHandler()(),class:"relative top-1 cursor-pointer"},[l.value[b.index].getIsExpanded()?(K(),At(N(vD),{key:0,class:"h-4 w-4"})):(K(),At(N(gD),{key:1,class:"h-4 w-4"}))],8,Xse),ye(N(zx),{render:S.column.columnDef.cell,props:S.getContext()},null,8,["render","props"]),L("span",null," ("+ie(l.value[b.index].subRows.length)+") ",1)],64)):gt("",!0)],64)):(K(),At(N(zx),{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)],544))}});var g1={d:(e,t)=>{for(var n in t)g1.o(t,n)&&!g1.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},FV={};function RE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $V(e,t){if(e){if(typeof e=="string")return RE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RE(e,t):void 0}}function m1(e){return function(t){if(Array.isArray(t))return RE(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||$V(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}g1.d(FV,{Z:()=>ele});const mt=(ZL={computed:()=>Ve,createTextVNode:()=>lt,createVNode:()=>ye,defineComponent:()=>rt,reactive:()=>Na,ref:()=>ke,watch:()=>Wt,watchEffect:()=>Cb},jx={},g1.d(jx,ZL),jx),Zse=(0,mt.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,mt.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),qse=(0,mt.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,mt.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,mt.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,mt.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,mt.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,mt.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),Jse=(0,mt.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,mt.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,mt.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,mt.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 ZL,jx;function PE(e){return PE=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},PE(e)}function BV(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ac(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=BV(e);if(h==="array"){var v=qL(e.map(function(_,b,w){return Ac(_,"".concat(t,"[").concat(b,"]"),n+1,{index:b,showComma:b!==w.length-1,length:d,type:l})}));return[Ac("[",t,n,{showComma:!1,key:o,length:e.length,type:"arrayStart"})[0]].concat(v,Ac("]",t,n,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(h==="object"){var m=Object.keys(e),y=qL(m.map(function(_,b,w){return Ac(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[Ac("{",t,n,{showComma:!1,key:o,index:a,length:m.length,type:"objectStart"})[0]].concat(y,Ac("}",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 qL(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=m1(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,m1(r)):n.push(r)}return n}function OE(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(PE(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(o){return OE(o,t)});return t.set(e,n),n}var r={};for(var i in e)r[i]=OE(e[i],t);return t.set(e,r),r}function JL(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<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JL(Object(n),!0).forEach(function(r){y1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var VV={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const Qse=(0,mt.defineComponent)({name:"TreeNode",props:QL(QL({},VV),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(e,t){var n=t.emit,r=(0,mt.computed)(function(){return BV(e.node.content)}),i=(0,mt.computed)(function(){return"vjs-value vjs-value-".concat(r.value)}),o=(0,mt.computed)(function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key}),a=(0,mt.computed)(function(){return e.selectableType==="multiple"}),s=(0,mt.computed)(function(){return e.selectableType==="single"}),l=(0,mt.computed)(function(){return e.nodeSelectable(e.node)&&(a.value||s.value)}),u=(0,mt.reactive)({editing:!1}),c=function(b){var w,S,C=(S=(w=b.target)===null||w===void 0?void 0:w.value)==="null"?null:S==="undefined"?void 0:S==="true"||S!=="false"&&(S[0]+S[S.length-1]==='""'||S[0]+S[S.length-1]==="''"?S.slice(1,-1):typeof Number(S)=="number"&&!isNaN(Number(S))||S==="NaN"?Number(S):S);n("valueChange",C,e.node.path)},f=(0,mt.computed)(function(){var b,w=(b=e.node)===null||b===void 0?void 0:b.content;return w===null?w="null":w===void 0&&(w="undefined"),r.value==="string"?'"'.concat(w,'"'):w+""}),d=function(){var b=e.renderNodeValue;return b?b({node:e.node,defaultValue:f.value}):f.value},h=function(){n("bracketsClick",!e.collapsed,e.node)},v=function(){n("iconClick",!e.collapsed,e.node)},m=function(){n("selectedChange",e.node)},y=function(){n("nodeClick",e.node),l.value&&e.selectOnClickNode&&n("selectedChange",e.node)},_=function(b){if(e.editable&&!u.editing){u.editing=!0;var w=function S(C){var T;C.target!==b.target&&((T=C.target)===null||T===void 0?void 0:T.parentElement)!==b.target&&(u.editing=!1,document.removeEventListener("click",S))};document.removeEventListener("click",w),document.addEventListener("click",w)}};return function(){var b,w=e.node;return(0,mt.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":e.showSelectController,"has-carets":e.showIcon,"is-highlight":e.highlightSelectedNode&&e.checked,dark:e.theme==="dark"},onClick:y,style:e.style},[e.showLineNumber&&(0,mt.createVNode)("span",{class:"vjs-node-index"},[w.id+1]),e.showSelectController&&l.value&&w.type!=="objectEnd"&&w.type!=="arrayEnd"&&(0,mt.createVNode)(qse,{isMultiple:a.value,checked:e.checked,onChange:m},null),(0,mt.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(w.level)).map(function(S,C){return(0,mt.createVNode)("div",{key:C,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},null)}),e.showIcon&&(0,mt.createVNode)(Jse,{nodeType:w.type,onClick:v},null)]),w.key&&(0,mt.createVNode)("span",{class:"vjs-key"},[(b=e.renderNodeKey,b?b({node:e.node,defaultKey:o.value||""}):o.value),(0,mt.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,mt.createVNode)("span",null,[w.type!=="content"&&w.content?(0,mt.createVNode)(Zse,{data:w.content.toString(),onClick:h},null):(0,mt.createVNode)("span",{class:i.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:_,onDblclick:e.editable&&e.editableTrigger==="dblclick"?_:void 0},[e.editable&&u.editing?(0,mt.createVNode)("input",{value:f.value,onChange:c,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):d()]),w.showComma&&(0,mt.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,mt.createVNode)("span",{class:"vjs-comment"},[(0,mt.createTextVNode)(" // "),w.length,(0,mt.createTextVNode)(" items ")])])])}}});function eN(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 go(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eN(Object(n),!0).forEach(function(r){y1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const ele=(0,mt.defineComponent)({name:"Tree",props:go(go({},VV),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(e,t){var n=t.emit,r=t.slots,i=(0,mt.ref)(),o=(0,mt.computed)(function(){return Ac(e.data,e.rootPath)}),a=function(w,S){return o.value.reduce(function(C,T){var A,P=T.level>=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?C:go(go({},C),{},y1({},T.path,1))},{})},s=(0,mt.reactive)({translateY:0,visibleData:null,hiddenPaths:a(e.deep,e.collapsedNodeLength)}),l=(0,mt.computed)(function(){for(var w=null,S=[],C=o.value.length,T=0;T<C;T++){var A=go(go({},o.value[T]),{},{id:T}),P=s.hiddenPaths[A.path];if(w&&w.path===A.path){var I=w.type==="objectStart",R=go(go(go({},A),w),{},{showComma:A.showComma,content:I?"{...}":"[...]",type:I?"objectCollapsed":"arrayCollapsed"});w=null,S.push(R)}else{if(P&&!w){w=A;continue}if(w)continue;S.push(A)}}return S}),u=(0,mt.computed)(function(){var w=e.selectedValue;return w&&e.selectableType==="multiple"&&Array.isArray(w)?w:[w]}),c=(0,mt.computed)(function(){return!e.selectableType||e.selectOnClickNode||e.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),f=function(){var w=l.value;if(e.virtual){var S,C=e.height/e.itemHeight,T=((S=i.value)===null||S===void 0?void 0:S.scrollTop)||0,A=Math.floor(T/e.itemHeight),P=A<0?0:A+C>w.length?w.length-C:A;P<0&&(P=0);var I=P+C;s.translateY=P*e.itemHeight,s.visibleData=w.filter(function(R,O){return O>=P&&O<I})}else s.visibleData=w},d=function(){f()},h=function(w){var S,C,T=w.path,A=e.selectableType;if(A==="multiple"){var P=u.value.findIndex(function(D){return D===T}),I=m1(u.value);P!==-1?I.splice(P,1):I.push(T),n("update:selectedValue",I),n("selectedChange",I,m1(u.value))}else if(A==="single"&&u.value[0]!==T){var R=(S=u.value,C=1,function(D){if(Array.isArray(D))return D}(S)||function(D,$){var F=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(F!=null){var z,B,Y=[],j=!0,se=!1;try{for(F=F.call(D);!(j=(z=F.next()).done)&&(Y.push(z.value),!$||Y.length!==$);j=!0);}catch(ge){se=!0,B=ge}finally{try{j||F.return==null||F.return()}finally{if(se)throw B}}return Y}}(S,C)||$V(S,C)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],O=T;n("update:selectedValue",O),n("selectedChange",O,R)}},v=function(w){n("nodeClick",w)},m=function(w,S){if(w)s.hiddenPaths=go(go({},s.hiddenPaths),{},y1({},S,1));else{var C=go({},s.hiddenPaths);delete C[S],s.hiddenPaths=C}},y=function(w,S){e.collapsedOnClickBrackets&&m(w,S.path),n("bracketsClick",w,S)},_=function(w,S){m(w,S.path),n("iconClick",w,S)},b=function(w,S){var C=OE(e.data),T=e.rootPath;new Function("data","val","data".concat(S.slice(T.length),"=val"))(C,w),n("update:data",C)};return(0,mt.watchEffect)(function(){c.value&&function(w){throw new Error("[VueJSONPretty] ".concat(w))}(c.value)}),(0,mt.watchEffect)(function(){l.value&&f()}),(0,mt.watch)(function(){return e.deep},function(w){w&&(s.hiddenPaths=a(w,e.collapsedNodeLength))}),(0,mt.watch)(function(){return e.collapsedNodeLength},function(w){w&&(s.hiddenPaths=a(e.deep,w))}),function(){var w,S,C=(w=e.renderNodeKey)!==null&&w!==void 0?w:r.renderNodeKey,T=(S=e.renderNodeValue)!==null&&S!==void 0?S:r.renderNodeValue,A=s.visibleData&&s.visibleData.map(function(P){return(0,mt.createVNode)(Qse,{key:P.id,node:P,collapsed:!!s.hiddenPaths[P.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:u.value.includes(P.path),selectableType:e.selectableType,showLine:e.showLine,showLineNumber:e.showLineNumber,showSelectController:e.showSelectController,selectOnClickNode:e.selectOnClickNode,nodeSelectable:e.nodeSelectable,highlightSelectedNode:e.highlightSelectedNode,editable:e.editable,editableTrigger:e.editableTrigger,showIcon:e.showIcon,showKeyValueSpace:e.showKeyValueSpace,renderNodeKey:C,renderNodeValue:T,onNodeClick:v,onBracketsClick:y,onIconClick:_,onSelectedChange:h,onValueChange:b,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)});return(0,mt.createVNode)("div",{ref:i,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?d:void 0,style:e.showLineNumber?go({paddingLeft:"".concat(12*Number(o.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,mt.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,mt.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(l.value.length*e.itemHeight,"px")}},[(0,mt.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(s.translateY,"px)")}},[A])])]):A])}}});var tle=FV.Z;const nle={class:"modal-box"},rle=rt({__name:"ConnectionsPage",setup(e){const{infoConn:t,modalRef:n}=qI();return(r,i)=>(K(),te(Xe,null,[N(Fc)?(K(),At(bae,{key:0})):(K(),At(Kse,{key:1})),L("dialog",{ref_key:"modalRef",ref:n,class:"modal"},[L("div",nle,[ye(N(tle),{data:N(t)},null,8,["data"])]),i[0]||(i[0]=L("form",{method:"dialog",class:"modal-backdrop"},[L("button",null,"close")],-1))],512)],64))}}),ile={class:"relative w-full flex-1"},om=rt({__name:"TextInput",props:{label:{type:String,required:!1},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Ve({get:()=>n.modelValue,set:a=>r("update:modelValue",a)}),o=()=>{i.value=""};return(a,s)=>(K(),te("div",ile,[_t(L("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>i.value=l),type:"text",class:"input input-sm join-item input-bordered w-full"},null,512),[[ir,i.value]]),ye(N(Ob),{class:"absolute right-2 top-1/2 h-3 w-3 -translate-y-1/2 cursor-pointer",onClick:o})]))}}),ole={class:"tabs-boxed tabs tabs-sm"},ale=rt({__name:"ConnectionTabs",setup(e){return(t,n)=>(K(),te("div",ole,[L("a",{role:"tab",class:it(N(Cn)("tab",N(Ec)===N(zs).ACTIVE&&"tab-active")),onClick:n[0]||(n[0]=()=>Ec.value=N(zs).ACTIVE)},[lt(ie(t.$t("activeConnections"))+" ",1),N(Ec)===N(zs).ACTIVE?(K(),te(Xe,{key:0},[lt(" ("+ie(N(pf).length)+") ",1)],64)):gt("",!0)],2),L("a",{role:"tab",class:it(N(Cn)("tab",N(Ec)===N(zs).CLOSED&&"tab-active")),onClick:n[1]||(n[1]=()=>Ec.value=N(zs).CLOSED)},[lt(ie(t.$t("closedConnections"))+" ",1),N(Ec)===N(zs).CLOSED?(K(),te(Xe,{key:0},[lt(" ("+ie(N(pf).length)+") ",1)],64)):gt("",!0)],2)]))}}),sle=["value"],lle=["value"],tN=rt({__name:"SourceIPFilter",props:{horizontal:{type:Boolean}},setup(e){const t=Ve(()=>zr.uniq(pf.value.map(r=>r.metadata.sourceIP)).sort()),n=ke([]);return Wt(t,(r,i)=>{zr.isEqual(r,i)||(n.value=t.value.map(o=>({label:d1(o),value:o})))},{immediate:!0}),(r,i)=>r.horizontal?gt("",!0):_t((K(),te("select",{key:0,class:"join-item select select-bordered select-sm","onUpdate:modelValue":i[0]||(i[0]=o=>st(Us)?Us.value=o:null)},[i[1]||(i[1]=L("option",{value:null},"all",-1)),n.value.every(o=>o.value!==N(Us))&&N(Us)!==null?(K(),te("option",{key:0,value:N(Us)},ie(N(d1)(N(Us))),9,sle)):gt("",!0),(K(!0),te(Xe,null,rn(n.value,o=>(K(),te("option",{key:o.value,value:o.value},ie(o.label),9,lle))),128))],512)),[[pi,N(Us)]])}}),ule={class:"shrink-0"},cle={class:"join flex-1"},fle=["value"],dle={class:"shrink-0"},hle=["data-tip"],ple={class:"flex flex-1 items-center gap-2"},vle={class:"join flex-1"},gle=rt({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{pf.value.forEach(n=>{Kb(n.id)})};return(n,r)=>(K(),te("div",{class:it(N(Cn)("flex flex-col gap-2 p-2 text-sm",n.horizontal&&"flex-row flex-wrap"))},[ye(ale),N(Fc)?(K(),te("div",{key:0,class:it(N(Cn)("flex w-full items-center gap-2",n.horizontal&&"md:w-auto"))},[L("span",ule,ie(n.$t("sortBy"))+":",1),L("div",cle,[_t(L("select",{class:"join-item select select-bordered select-sm block flex-1","onUpdate:modelValue":r[0]||(r[0]=i=>st(v_)?v_.value=i:null)},[(K(!0),te(Xe,null,rn(Object.values(N(zi)),i=>(K(),te("option",{key:i,value:i},ie(n.$t(i)||i),9,fle))),128))],512),[[pi,N(v_)]]),L("button",{class:"btn join-item btn-sm w-12",onClick:r[1]||(r[1]=i=>g_.value=N(g_)===N(Nc).ASC?N(Nc).DESC:N(Nc).ASC)},[N(g_)===N(Nc).ASC?(K(),At(N(qg),{key:0,class:"h-4 w-4"})):(K(),At(N(Rb),{key:1,class:"h-4 w-4"}))])])],2)):gt("",!0),L("div",{class:it(N(Cn)("flex w-full items-center gap-2",n.horizontal&&"md:w-auto"))},[L("span",dle,ie(n.$t("quickFilter"))+": ",1),_t(L("input",{type:"text",class:it(["input input-sm join-item input-bordered w-0 flex-1",n.horizontal&&"md:w-48"]),"onUpdate:modelValue":r[2]||(r[2]=i=>st(wv)?wv.value=i:null)},null,2),[[ir,N(wv)]]),_t(L("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":r[3]||(r[3]=i=>st(p_)?p_.value=i:null)},null,512),[[gr,N(p_)]]),L("div",{class:it(`tooltip ${n.horizontal?"tooltip-left md:tooltip-bottom":"tooltip-left"}`),"data-tip":n.$t("quickFilterTip")},[ye(N(q4),{class:"h-4 w-4"})],10,hle)],2),n.horizontal?gt("",!0):(K(),At(tN,{key:1})),L("div",ple,[L("div",vle,[n.horizontal?(K(),At(tN,{key:0,class:"w-40"})):gt("",!0),ye(om,{modelValue:N(xv),"onUpdate:modelValue":r[4]||(r[4]=i=>st(xv)?xv.value=i:null),class:"join-item min-w-32"},null,8,["modelValue"]),L("button",{class:"btn join-item btn-sm",onClick:r[5]||(r[5]=i=>m_.value=!N(m_))},[(K(),At(cs(N(m_)?N(K4):N(X4)),{class:"h-4 w-4"}))])]),L("button",{class:"btn btn-circle btn-sm",onClick:t},[ye(N(Ob),{class:"h-4 w-4"})])])],2))}}),qb=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},UV=qb(gle,[["__scopeId","data-v-a727ede8"]]),_1=ke([]),Bd=ke(""),y_=ke(!1),__=Dt("config/log-level",kc.Info);let $y,b1=[];const mle=zr.throttle(()=>{_1.value=b1.concat(_1.value).slice(0,s_.value),b1=[]},500),ME=[],yle=()=>{ME.length=0;for(const e in So.value){if(e.startsWith("/"))continue;const t=new RegExp(e+":","ig");ME.push([t,`${e} (${So.value[e]}) :`])}};Wt(So,()=>{yle()},{immediate:!0});const DE=()=>{$y==null||$y(),_1.value=[],b1=[];let e=1;const t=joe({level:__.value}),n=Wt(t.data,r=>{if(r){if(y_.value){e++;return}for(const[i,o]of ME)r.payload=r.payload.replace(i,o);b1.unshift({...r,time:new Date().valueOf(),seq:e++}),mle()}});$y=()=>{n(),t.close()}},_le=["value"],HV=rt({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,n)=>(K(),te("div",null,[L("div",{class:it(N(Cn)("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=>st(__)?__.value=r:null),onChange:n[1]||(n[1]=(...r)=>N(DE)&&N(DE)(...r))},[(K(!0),te(Xe,null,rn(Object.values(N(kc)),r=>(K(),te("option",{key:r,value:r},ie(r),9,_le))),128))],544),[[pi,N(__)]]),ye(om,{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=>y_.value=!N(y_))},[(K(),At(cs(N(y_)?N(K4):N(X4)),{class:"h-4 w-4"}))])],2)]))}}),ni=ke({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}}),nR=async()=>{ni.value=(await Voe()).data},b_=async e=>{await Uoe(e),nR()},GV=ke(df.PROXIES),zV=Ve(()=>{var t;if(GV.value===df.PROVIDER)return Fd.value.map(n=>n.name);const e=i_.value?vE.value:vE.value.filter(n=>{var r;return((r=Wr.value[n])==null?void 0:r.hidden)!==!0});return hl.value&&e_.value&&Wr.value[Mc]?[...e,Mc]:!hl.value&&((t=ni.value)==null?void 0:t.mode.toLocaleUpperCase())===Mc&&Wr.value[Mc]?[Mc]:e}),ble=Ve(()=>pv.value&&zV.value.length>1),Jb=()=>({proxiesTabShow:GV,renderGroups:zV,hasTwoColumns:ble}),Sle={key:0,role:"tablist",class:"tabs-boxed tabs tabs-sm"},wle=["onClick"],xle={key:1,class:"flex flex-col gap-2"},Tle=["value"],Cle=["value"],Ele=["value"],Ale={class:"shrink-0"},WV=rt({__name:"ProxiesCtrl",props:{horizontal:{type:Boolean}},setup(e){const{proxiesTabShow:t}=Jb(),n=ke(!1),r=async()=>{if(!n.value){n.value=!0;try{await Promise.all(Fd.value.map(a=>pV(a.name))),await dl(),n.value=!1}catch{await dl(),n.value=!1}}},i=Ve(()=>{var a,s;return((a=ni.value)==null?void 0:a["mode-list"])||((s=ni.value)==null?void 0:s.modes)||["direct","rule","global"]}),o=a=>{const s=a.target.value;b_({mode:s})};return(a,s)=>N(ni)?(K(),te("div",{key:0,class:it(N(Cn)("flex flex-col gap-1 p-2 text-sm sm:gap-2",a.horizontal&&"flex-row flex-wrap"))},[N(Fd).length?(K(),te("div",{key:0,class:it(N(Cn)("flex flex-col-reverse gap-2",a.horizontal&&"flex-row"))},[N(Fd).length?(K(),te("div",Sle,[(K(!0),te(Xe,null,rn(N(df),l=>(K(),te("a",{role:"tab",class:it(["tab",{"tab-active":N(t)===l}]),key:l,onClick:u=>t.value=l},ie(a.$t(l)),11,wle))),128))])):gt("",!0),N(t)===N(df).PROVIDER?(K(),te("div",xle,[L("button",{class:it(N(Cn)("btn btn-sm",n.value?"animate-pulse":"")),onClick:r},ie(a.$t("updateAllProviders")),3)])):gt("",!0)],2)):gt("",!0),s[2]||(s[2]=L("div",{class:"w-full sm:hidden"},null,-1)),L("div",{class:it(N(Cn)("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(ni).mode,onChange:o},[(K(!0),te(Xe,null,rn(i.value,l=>(K(),te("option",{key:l,value:l},ie(a.$t(l.toLowerCase())||l),9,Cle))),128))],40,Tle)],2),L("div",{class:it(N(Cn)("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=>st(t_)?t_.value=l:null)},[(K(!0),te(Xe,null,rn(Object.values(N(ru)),l=>(K(),te("option",{key:l,value:l},ie(a.$t(l)),9,Ele))),128))],512),[[pi,N(t_)]]),L("span",Ale,ie(a.$t("hideUnavailable"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=l=>st(r_)?r_.value=l:null)},null,512),[[gr,N(r_)]])],2)],2)):gt("",!0)}}),Cv=ke(rh.RULES),mg=ke([]),yg=ke([]),tf=ke(""),Yx=Ve(()=>tf.value===""?mg.value:mg.value.filter(e=>[e.type.toLowerCase(),e.payload.toLowerCase(),e.proxy.toLowerCase()].some(t=>t.includes(tf.value.toLowerCase())))),Ile=Ve(()=>tf.value===""?yg.value:yg.value.filter(e=>[e.name.toLowerCase(),e.behavior.toLowerCase(),e.vehicleType.toLowerCase()].some(t=>t.includes(tf.value.toLowerCase())))),_g=async()=>{const{data:e}=await $oe(),{data:t}=await Boe();mg.value=e.rules,yg.value=Object.values(t.providers)},Rle={role:"tablist",class:"tabs-boxed tabs tabs-sm"},Ple=["onClick"],Ole={key:0,class:"flex flex-col gap-2"},jV=rt({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=ke(!1),n=async()=>{if(!t.value){t.value=!0;try{await Promise.all(yg.value.map(r=>vV(r.name))),await _g(),t.value=!1}catch{await _g(),t.value=!1}}};return(r,i)=>(K(),te("div",{class:it(N(Cn)("flex flex-col gap-2 p-2",`${r.horizontal&&"flex-row"}`))},[N(yg).length?(K(),te("div",{key:0,class:it(N(Cn)("flex flex-col-reverse gap-2",r.horizontal&&"flex-row"))},[L("div",Rle,[(K(!0),te(Xe,null,rn(N(rh),o=>(K(),te("a",{role:"tab",class:it(["tab",{"tab-active":N(Cv)===o}]),key:o,onClick:a=>Cv.value=o},ie(r.$t(o)),11,Ple))),128))]),N(Cv)===N(rh).PROVIDER?(K(),te("div",Ole,[L("button",{class:it(N(Cn)("btn btn-sm",t.value?"animate-pulse":"")),onClick:n},ie(r.$t("updateAllProviders")),3)])):gt("",!0)],2)):gt("",!0),ye(om,{class:"w-full max-w-96",modelValue:N(tf),"onUpdate:modelValue":i[0]||(i[0]=o=>st(tf)?tf.value=o:null)},null,8,["modelValue"])],2))}}),Mle=""+new URL("metacubex-BlQkOUXT.jpg",import.meta.url).href,Dle="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",Lle={class:"flex items-center gap-1"},Nle=["src"],rR=rt({__name:"BackendVersion",setup(e){return(t,n)=>(K(),te("div",Lle,[lt(ie(t.$t("version"))+": ",1),L("img",{src:N(hl)?N(Dle):N(Mle),class:"h-4 w-4 rounded-sm"},null,8,Nle),lt(" "+ie(N(pg)),1)]))}}),kle={class:"join flex"},Fle=["value"],YV=rt({__name:"BackendSwitch",setup(e){const t=Ve(()=>ds.value.map(r=>({label:Au(r),value:r.uuid}))),n=()=>{di.value=null,$a.push({name:un.setup})};return(r,i)=>(K(),te("div",kle,[_t(L("select",{class:"join-item select select-bordered select-sm w-56","onUpdate:modelValue":i[0]||(i[0]=o=>st(di)?di.value=o:null)},[(K(!0),te(Xe,null,rn(t.value,o=>(K(),te("option",{key:o.value,value:o.value},ie(o.label),9,Fle))),128))],512),[[pi,N(di)]]),L("button",{class:"btn join-item btn-sm",onClick:n},[ye(N(Z4),{class:"h-4 w-4"})])]))}}),$le={class:"grid w-full grid-cols-2 gap-1 rounded-lg"},XV=rt({__name:"StatisticsInfo",setup(e){return(t,n)=>(K(),te("div",$le,[L("div",null,ie(t.$t("connections"))+": "+ie(N(Ra).length),1),L("div",null,ie(t.$t("memoryUsage"))+": "+ie(N(Tn)(N(Bb),{binary:!0})),1),L("div",null,ie(t.$t("download"))+": "+ie(N(Tn)(N(vg))),1),L("div",null,ie(t.$t("dlSpeed"))+": "+ie(N(Tn)(N(Vb)))+"/s",1),L("div",null,ie(t.$t("upload"))+": "+ie(N(Tn)(N(gg))),1),L("div",null,ie(t.$t("ulSpeed"))+": "+ie(N(Tn)(N(Ub)))+"/s",1)]))}}),Ble={class:"flex flex-col gap-2 p-2 text-sm"},Vle={class:"flex"},Ule=rt({__name:"CommonCtrl",setup(e){return(t,n)=>(K(),te("div",Ble,[ye(XV),ye(rR),L("div",Vle,[L("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>yu.value=!0)},[ye(N(bQ),{class:"h-5 w-5"})]),n[1]||(n[1]=L("div",{class:"flex-1"},null,-1)),ye(YV)])]))}});/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var LE=function(e,t){return LE=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])},LE(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");LE(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var iR=12,Hle="sans-serif",vf=iR+"px "+Hle,Gle=20,zle=100,Wle="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function jle(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-Gle)/zle;t[r]=i}return t}var Yle=jle(Wle),Ch={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var i=Ch.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==r&&(t=e.font=r||vf),e.measureText(n);n=n||"",r=r||vf;var o=/((?:\d+)?\.?\d*)px/.exec(r),a=o&&+o[1]||iR,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=Yle[n[l]];s+=u==null?a:u*a}return{width:s}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},KV=Eh(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),ZV=Eh(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),am=Object.prototype.toString,Qb=Array.prototype,Xle=Qb.forEach,Kle=Qb.filter,oR=Qb.slice,Zle=Qb.map,nN=(function(){}).constructor,By=nN?nN.prototype:null,aR="__proto__",qle=2311;function qV(){return qle++}function sR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function ln(e){if(e==null||typeof e!="object")return e;var t=e,n=am.call(e);if(n==="[object Array]"){if(!Ev(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=ln(e[r])}}else if(ZV[n]){if(!Ev(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!KV[n]&&!Ev(e)&&!bg(e)){t={};for(var a in e)e.hasOwnProperty(a)&&a!==aR&&(t[a]=ln(e[a]))}return t}function _n(e,t,n){if(!Ct(t)||!Ct(e))return n?ln(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==aR){var i=e[r],o=t[r];Ct(o)&&Ct(i)&&!ut(o)&&!ut(i)&&!bg(o)&&!bg(i)&&!rN(o)&&!rN(i)&&!Ev(o)&&!Ev(i)?_n(i,o,n):(n||!(r in e))&&(e[r]=ln(t[r]))}return e}function Ze(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==aR&&(e[n]=t[n]);return e}function En(e,t,n){for(var r=Kn(t),i=0,o=r.length;i<o;i++){var a=r[i];e[a]==null&&(e[a]=t[a])}return e}function In(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function Jle(e,t){var n=e.prototype;function r(){}r.prototype=t.prototype,e.prototype=new r;for(var i in n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function ys(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];o!=="constructor"&&e[o]==null&&(e[o]=t[o])}else En(e,t)}function io(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function Q(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Xle)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function Pt(e,t,n){if(!e)return[];if(!t)return lR(e);if(e.map&&e.map===Zle)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function Eh(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function Ur(e,t,n){if(!e)return[];if(!t)return lR(e);if(e.filter&&e.filter===Kle)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Kn(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Qle(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(oR.call(arguments)))}}var Xn=By&&Vt(By.bind)?By.call.bind(By.bind):Qle;function Mr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(oR.call(arguments)))}}function ut(e){return Array.isArray?Array.isArray(e):am.call(e)==="[object Array]"}function Vt(e){return typeof e=="function"}function ht(e){return typeof e=="string"}function NE(e){return am.call(e)==="[object String]"}function Zn(e){return typeof e=="number"}function Ct(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function rN(e){return!!KV[am.call(e)]}function oo(e){return!!ZV[am.call(e)]}function bg(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function eS(e){return e.colorStops!=null}function eue(e){return e.image!=null}function S1(e){return e!==e}function Sg(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function nn(e,t){return e??t}function S_(e,t,n){return e??t??n}function lR(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return oR.apply(e,t)}function JV(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function pl(e,t){if(!e)throw new Error(t)}function is(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var QV="__ec_primitive__";function kE(e){e[QV]=!0}function Ev(e){return e[QV]}var tue=function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return Kn(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e}(),eU=typeof Map=="function";function nue(){return eU?new Map:new tue}var rue=function(){function e(t){var n=ut(t);this.data=nue();var r=this;t instanceof e?t.each(i):t&&Q(t,i);function i(o,a){n?r.set(o,a):r.set(a,o)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(r,i){t.call(n,r,i)})},e.prototype.keys=function(){var t=this.data.keys();return eU?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Kt(e){return new rue(e)}function iue(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function tS(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Ze(n,t),n}function tU(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function gf(e,t){return e.hasOwnProperty(t)}function eo(){}var oue=180/Math.PI,aue=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),sue=function(){function e(){this.browser=new aue,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),Mt=new sue;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Mt.wxa=!0,Mt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Mt.worker=!0:!Mt.hasGlobalWindow||"Deno"in window?(Mt.node=!0,Mt.svgSupported=!0):lue(navigator.userAgent,Mt);function lue(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 uue=".",nc="___EC__COMPONENT__CONTAINER___",nU="___EC__EXTENDED_CLASS___";function os(e){var t={main:"",sub:""};if(e){var n=e.split(uue);t.main=n[0]||"",t.sub=n[1]||""}return t}function cue(e){pl(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function fue(e){return!!(e&&e[nU])}function uR(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return due(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)},Jle(i,this)),Ze(i.prototype,n),i[nU]=!0,i.extend=this.extend,i.superCall=vue,i.superApply=gue,i.superClass=r,i}}function due(e){return Vt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function rU(e,t){e.extend=t.extend}var hue=Math.round(Math.random()*10);function pue(e){var t=["__\0is_clz",hue++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function vue(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function gue(e,t,n){return this.superClass.prototype[t].apply(e,n)}function nS(e){var t={};e.registerClass=function(r){var i=r.type||r.prototype.type;if(i){cue(i),r.prototype.type=i;var o=os(i);if(!o.sub)t[o.main]=r;else if(o.sub!==nc){var a=n(o);a[o.sub]=r}}return r},e.getClass=function(r,i,o){var a=t[r];if(a&&a[nc]&&(a=i?a[i]:null),o&&!a)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return a},e.getClassesByMainType=function(r){var i=os(r),o=[],a=t[i.main];return a&&a[nc]?Q(a,function(s,l){l!==nc&&o.push(s)}):o.push(a),o},e.hasClass=function(r){var i=os(r);return!!t[i.main]},e.getAllClassMainTypes=function(){var r=[];return Q(t,function(i,o){r.push(o)}),r},e.hasSubTypes=function(r){var i=os(r),o=t[i.main];return o&&o[nc]};function n(r){var i=t[r.main];return(!i||!i[nc])&&(i=t[r.main]={},i[nc]=!0),i}}function wg(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(r,i,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&In(i,l)>=0||o&&In(o,l)<0)){var u=r.getShallow(l,t);u!=null&&(a[e[s][0]]=u)}}return a}}var mue=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],yue=wg(mue),_ue=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return yue(this,t,n)},e}(),iU=function(){function e(t){this.value=t}return e}(),bue=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new iU(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}(),sm=function(){function e(t){this._list=new bue,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 iU(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}(),FE=new sm(50);function Sue(e){if(typeof e=="string"){var t=FE.get(e);return t&&t.image}else return e}function oU(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=FE.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!rS(t)&&o.pending.push(a)):(t=Ch.loadImage(e,iN,iN),t.__zrImageSrc=e,FE.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function iN(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function rS(e){return e&&e.width&&e.height}function Vd(){return[1,0,0,1,0,0]}function cR(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function wue(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Ud(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function $E(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function fR(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),f=Math.cos(n);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=o*f+l*c,e[3]=-o*c+f*l,e[4]=f*(a-r[0])+c*(u-r[1])+r[0],e[5]=f*(u-r[1])-c*(a-r[0])+r[1],e}function xue(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function dR(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}var Mn=function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,i){t.x=n.x+r.x*i,t.y=n.y+r.y*i},e.lerp=function(t,n,r,i){var o=1-i;t.x=o*n.x+i*r.x,t.y=o*n.y+i*r.y},e}(),Vy=Math.min,Uy=Math.max,rc=new Mn,ic=new Mn,oc=new Mn,ac=new Mn,up=new Mn,cp=new Mn,bn=function(){function e(t,n,r,i){r<0&&(t=t+r,r=-r),i<0&&(n=n+i,i=-i),this.x=t,this.y=n,this.width=r,this.height=i}return e.prototype.union=function(t){var n=Vy(t.x,this.x),r=Vy(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Uy(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Uy(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,i=t.height/n.height,o=Vd();return $E(o,o,[-n.x,-n.y]),xue(o,o,[r,i]),$E(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(o<l||u<i||s<c||f<a);if(n){var h=1/0,v=0,m=Math.abs(o-l),y=Math.abs(u-i),_=Math.abs(s-c),b=Math.abs(f-a),w=Math.min(m,y),S=Math.min(_,b);o<l||u<i?w>v&&(v=w,m<y?Mn.set(cp,-m,0):Mn.set(cp,y,0)):w<h&&(h=w,m<y?Mn.set(up,m,0):Mn.set(up,-y,0)),s<c||f<a?S>v&&(v=S,_<b?Mn.set(cp,0,-_):Mn.set(cp,0,b)):w<h&&(h=w,_<b?Mn.set(up,0,_):Mn.set(up,0,-b))}return n&&Mn.copy(n,d?up:cp),d},e.prototype.contain=function(t,n){var r=this;return t>=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}rc.x=oc.x=n.x,rc.y=ac.y=n.y,ic.x=ac.x=n.x+n.width,ic.y=oc.y=n.y+n.height,rc.transform(r),ac.transform(r),ic.transform(r),oc.transform(r),t.x=Vy(rc.x,ic.x,oc.x,ac.x),t.y=Vy(rc.y,ic.y,oc.y,ac.y);var l=Uy(rc.x,ic.x,oc.x,ac.x),u=Uy(rc.y,ic.y,oc.y,ac.y);t.width=l-t.x,t.height=u-t.y},e}(),oN={};function Io(e,t){t=t||vf;var n=oN[t];n||(n=oN[t]=new sm(500));var r=n.get(e);return r==null&&(r=Ch.measureText(e,t).width,n.put(e,r)),r}function aN(e,t,n,r){var i=Io(e,t),o=pR(t),a=Yp(0,i,n),s=bd(0,o,r),l=new bn(a,s,i,o);return l}function hR(e,t,n,r){var i=((e||"")+"").split(`
|
||
`),o=i.length;if(o===1)return aN(i[0],t,n,r);for(var a=new bn(0,0,0,0),s=0;s<i.length;s++){var l=aN(i[s],t,n,r);s===0?a.copy(l):a.union(l)}return a}function Yp(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function bd(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function pR(e){return Io("国",e)}function mf(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function aU(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+=mf(r[0],n.width),u+=mf(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 Xx=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Tue(e,t,n,r,i,o){if(!n){e.text="",e.isTruncated=!1;return}var a=(t+"").split(`
|
||
`);o=sU(n,r,i,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)lU(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;e.text=a.join(`
|
||
`),e.isTruncated=s}function sU(e,t,n,r){r=r||{};var i=Ze({},r);i.font=t,n=nn(n,"..."),i.maxIterations=nn(r.maxIterations,2);var o=i.minChar=nn(r.minChar,0);i.cnCharWidth=Io("国",t);var a=i.ascCharWidth=Io("a",t);i.placeholder=nn(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var u=Io(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 lU(e,t,n){var r=n.containerWidth,i=n.font,o=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var a=Io(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?Cue(t,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(t.length*o/a):0;t=t.substr(0,l),a=Io(t,i)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Cue(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function Eue(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,i=t.font,o=n==="truncate",a=pR(i),s=nn(t.lineHeight,a),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=!1,f=t.width,d;f!=null&&(n==="break"||n==="breakAll")?d=e?uU(e,t.font,f,n==="breakAll",0).lines:[]:d=e?e.split(`
|
||
`):[];var h=d.length*s,v=nn(t.height,h);if(h>v&&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=sU(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_={},b=0;b<d.length;b++)lU(_,d[b],y),d[b]=_.textLine,c=c||_.isTruncated;for(var w=v,S=0,b=0;b<d.length;b++)S=Math.max(Io(d[b],i),S);f==null&&(f=S);var C=S;return r&&(w+=r[0]+r[2],C+=r[1]+r[3],f+=r[1]+r[3]),l&&(C=f),{lines:d,height:v,outerWidth:C,outerHeight:w,lineHeight:s,calculatedLineHeight:a,contentWidth:S,contentHeight:h,width:f,isTruncated:c}}var Aue=function(){function e(){}return e}(),sN=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Iue=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function Rue(e,t){var n=new Iue;if(e!=null&&(e+=""),!e)return n;for(var r=t.width,i=t.height,o=t.overflow,a=(o==="break"||o==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:o==="breakAll"}:null,s=Xx.lastIndex=0,l;(l=Xx.exec(e))!=null;){var u=l.index;u>s&&Kx(n,e.substring(s,u),t,a),Kx(n,l[2],t,a,l[1]),s=Xx.lastIndex}s<e.length&&Kx(n,e.substring(s,e.length),t,a);var c=[],f=0,d=0,h=t.padding,v=o==="truncate",m=t.lineOverflow==="truncate",y={};function _(ge,ve,Me){ge.width=ve,ge.lineHeight=Me,f+=Me,d=Math.max(d,ve)}e:for(var b=0;b<n.lines.length;b++){for(var w=n.lines[b],S=0,C=0,T=0;T<w.tokens.length;T++){var A=w.tokens[T],P=A.styleName&&t.rich[A.styleName]||{},I=A.textPadding=P.padding,R=I?I[1]+I[3]:0,O=A.font=P.font||t.font;A.contentHeight=pR(O);var D=nn(P.height,A.contentHeight);if(A.innerHeight=D,I&&(D+=I[0]+I[2]),A.height=D,A.lineHeight=S_(P.lineHeight,t.lineHeight,D),A.align=P&&P.align||t.align,A.verticalAlign=P&&P.verticalAlign||"middle",m&&i!=null&&f+A.lineHeight>i){var $=n.lines.length;T>0?(w.tokens=w.tokens.slice(0,T),_(w,C,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=Io(A.text,O);else{if(z){var B=P.backgroundColor,Y=B&&B.image;Y&&(Y=Sue(Y),rS(Y)&&(A.width=Math.max(A.width,Y.width*D/Y.height)))}var j=v&&r!=null?r-C:null;j!=null&&j<A.width?!z||j<R?(A.text="",A.width=A.contentWidth=0):(Tue(y,A.text,j-R,O,t.ellipsis,{minChar:t.truncateMinChar}),A.text=y.text,n.isTruncated=n.isTruncated||y.isTruncated,A.width=A.contentWidth=Io(A.text,O)):A.contentWidth=Io(A.text,O)}A.width+=R,C+=A.width,P&&(S=Math.max(S,A.lineHeight))}_(w,C,S)}n.outerWidth=n.width=nn(r,d),n.outerHeight=n.height=nn(i,f),n.contentHeight=f,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var b=0;b<c.length;b++){var A=c[b],se=A.percentWidth;A.width=parseInt(se,10)/100*n.width}return n}function Kx(e,t,n,r,i){var o=t==="",a=i&&n.rich[i]||{},s=e.lines,l=a.font||n.font,u=!1,c,f;if(r){var d=a.padding,h=d?d[1]+d[3]:0;if(a.width!=null&&a.width!=="auto"){var v=mf(a.width,r.width)+h;s.length>0&&v+r.accumWidth>r.width&&(c=t.split(`
|
||
`),u=!0),r.accumWidth=v}else{var m=uU(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<c.length;y++){var _=c[y],b=new Aue;if(b.styleName=i,b.text=_,b.isLineHolder=!_&&!o,typeof a.width=="number"?b.width=a.width:b.width=f?f[y]:Io(_,l),!y&&!u){var w=(s[s.length-1]||(s[0]=new sN)).tokens,S=w.length;S===1&&w[0].isLineHolder?w[0]=b:(_||!S||o)&&w.push(b)}else s.push(new sN([b]))}}function Pue(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Oue=Eh(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Mue(e){return Pue(e)?!!Oue[e]:!0}function uU(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
|
||
`){l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0;continue}var h=Io(d,t),v=r?!1:!Mue(d);if(o.length?c+h>n: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 Due(e){return[e[0],e[1]]}function lN(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Lue(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Nue(e){return Math.sqrt(kue(e))}function kue(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 Fue(e,t){var n=Nue(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function BE(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var $ue=BE;function Bue(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Hd=Bue;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 Ad(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Id(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var uN=cR,cN=5e-5;function sc(e){return e>cN||e<-cN}var lc=[],Zf=[],qx=Vd(),Jx=Math.abs,vR=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 sc(this.rotation)||sc(this.x)||sc(this.y)||sc(this.scaleX-1)||sc(this.scaleY-1)||sc(this.skewX)||sc(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(uN(r),this.invTransform=null);return}r=r||Vd(),n?this.getLocalTransform(r):uN(r),t&&(n?Ud(r,t,r):wue(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(lc);var r=lc[0]<0?-1:1,i=lc[1]<0?-1:1,o=((lc[0]-r)*n+r)/lc[0]||0,a=((lc[1]-i)*n+i)/lc[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||Vd(),dR(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(Zf,t.invTransform,n),n=Zf);var r=this.originX,i=this.originY;(r||i)&&(qx[4]=r,qx[5]=i,Ud(Zf,n,qx),Zf[4]-=r,Zf[5]-=i,n=Zf),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){Vue(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&&fR(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}(),xg=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Vue(e,t){for(var n=0;n<xg.length;n++){var r=xg[n];e[r]=t[r]}}var Av={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-Av.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?Av.bounceIn(e*2)*.5:Av.bounceOut(e*2-1)*.5+.5}},Hy=Math.pow,_u=Math.sqrt,w1=1e-8,cU=1e-4,fN=_u(3),Gy=1/3,ns=Ah(),Zo=Ah(),Gd=Ah();function fu(e){return e>-w1&&e<w1}function fU(e){return e>w1||e<-w1}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 dN(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function x1(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(fu(c)&&fu(f))if(fu(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(fu(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=_u(m),w=c*s+1.5*a*(-f+b),S=c*s+1.5*a*(-f-b);w<0?w=-Hy(-w,Gy):w=Hy(w,Gy),S<0?S=-Hy(-S,Gy):S=Hy(S,Gy);var v=(-s-(w+S))/(3*a);v>=0&&v<=1&&(o[h++]=v)}else{var C=(2*c*s-3*a*f)/(2*_u(c*c*c)),T=Math.acos(C)/3,A=_u(c),P=Math.cos(T),v=(-s-2*A*P)/(3*a),_=(-s+A*(P+fN*Math.sin(T)))/(3*a),I=(-s+A*(P-fN*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 dU(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(fu(a)){if(fU(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(fu(c))i[0]=-o/(2*a);else if(c>0){var f=_u(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 T1(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 Uue(e,t,n,r,i,o,a,s,l,u,c){var f,d=.005,h=1/0,v,m,y,_;ns[0]=l,ns[1]=u;for(var b=0;b<1;b+=.05)Zo[0]=Hr(e,n,i,a,b),Zo[1]=Hr(t,r,o,s,b),y=Hd(ns,Zo),y<h&&(f=b,h=y);h=1/0;for(var w=0;w<32&&!(d<cU);w++)v=f-d,m=f+d,Zo[0]=Hr(e,n,i,a,v),Zo[1]=Hr(t,r,o,s,v),y=Hd(Zo,ns),v>=0&&y<h?(f=v,h=y):(Gd[0]=Hr(e,n,i,a,m),Gd[1]=Hr(t,r,o,s,m),_=Hd(Gd,ns),m<=1&&_<h?(f=m,h=_):d*=.5);return _u(h)}function Hue(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,m=Hr(e,n,i,a,v),y=Hr(t,r,o,s,v),_=m-u,b=y-c;f+=Math.sqrt(_*_+b*b),u=m,c=y}return f}function Yi(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function hN(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Gue(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(fu(o)){if(fU(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(fu(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=_u(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 hU(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function C1(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 zue(e,t,n,r,i,o,a,s,l){var u,c=.005,f=1/0;ns[0]=a,ns[1]=s;for(var d=0;d<1;d+=.05){Zo[0]=Yi(e,n,i,d),Zo[1]=Yi(t,r,o,d);var h=Hd(ns,Zo);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<cU);v++){var m=u-c,y=u+c;Zo[0]=Yi(e,n,i,m),Zo[1]=Yi(t,r,o,m);var h=Hd(Zo,ns);if(m>=0&&h<f)u=m,f=h;else{Gd[0]=Yi(e,n,i,y),Gd[1]=Yi(t,r,o,y);var _=Hd(Gd,ns);y<=1&&_<f?(u=y,f=_):c*=.5}}return _u(f)}function Wue(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,f=1;f<=a;f++){var d=f*c,h=Yi(e,n,i,d),v=Yi(t,r,o,d),m=h-s,y=v-l;u+=Math.sqrt(m*m+y*y),s=h,l=v}return u}var jue=/cubic-bezier\(([0-9,\.e ]+)\)/;function pU(e){var t=e&&jue.exec(e);if(t){var n=t[1].split(","),r=+is(n[0]),i=+is(n[1]),o=+is(n[2]),a=+is(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:x1(0,r,o,1,l,s)&&Hr(0,i,a,1,s[0])}}}var Yue=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||eo,this.ondestroy=t.ondestroy||eo,this.onrestart=t.onrestart||eo,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:Av[t]||pU(t)},e}(),pN={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 bu(e){return e=Math.round(e),e<0?0:e>255?255:e}function VE(e){return e<0?0:e>1?1:e}function Qx(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?bu(parseFloat(t)/100*255):bu(parseInt(t,10))}function Iv(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?VE(parseFloat(t)/100):VE(parseFloat(t))}function eT(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 zy(e,t,n){return e+(t-e)*n}function Wo(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function UE(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var vU=new sm(20),Wy=null;function qf(e,t){Wy&&UE(Wy,t),Wy=vU.put(e,Wy||t.slice())}function nl(e,t){if(e){t=t||[];var n=vU.get(e);if(n)return UE(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in pN)return UE(t,pN[r]),qf(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)){Wo(t,0,0,0,1);return}return Wo(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),qf(e,t),t}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){Wo(t,0,0,0,1);return}return Wo(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),qf(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?Wo(t,+u[0],+u[1],+u[2],1):Wo(t,0,0,0,1);c=Iv(u.pop());case"rgb":if(u.length>=3)return Wo(t,Qx(u[0]),Qx(u[1]),Qx(u[2]),u.length===3?c:Iv(u[3])),qf(e,t),t;Wo(t,0,0,0,1);return;case"hsla":if(u.length!==4){Wo(t,0,0,0,1);return}return u[3]=Iv(u[3]),vN(u,t),qf(e,t),t;case"hsl":if(u.length!==3){Wo(t,0,0,0,1);return}return vN(u,t),qf(e,t),t;default:return}}Wo(t,0,0,0,1)}}function vN(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Iv(e[1]),i=Iv(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return t=t||[],Wo(t,bu(eT(a,o,n+1/3)*255),bu(eT(a,o,n)*255),bu(eT(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function gN(e,t){var n=nl(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 iS(n,n.length===4?"rgba":"rgb")}}function Xue(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=nl(t[i]),s=nl(t[o]),l=r-i,u=iS([bu(zy(a[0],s[0],l)),bu(zy(a[1],s[1],l)),bu(zy(a[2],s[2],l)),VE(zy(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function iS(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 E1(e,t){var n=nl(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var mN=new sm(100);function yN(e){if(ht(e)){var t=mN.get(e);return t||(t=gN(e,-.1),mN.put(e,t)),t}else if(eS(e)){var n=Ze({},e);return n.colorStops=Pt(e.colorStops,function(r){return{offset:r.offset,color:gN(r.color,-.1)}}),n}return e}function Kue(e){return e.type==="linear"}function Zue(e){return e.type==="radial"}(function(){return Mt.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 HE=Array.prototype.slice;function Gs(e,t,n){return(t-e)*n+e}function tT(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=Gs(t[o],n[o],r);return e}function que(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=Gs(t[a][s],n[a][s],r)}return e}function jy(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function _N(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function Jue(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function Que(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(n===1?i[l]:HE.call(i[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function w_(e){if(io(e)){var t=e.length;if(io(e[0])){for(var n=[],r=0;r<t;r++)n.push(HE.call(e[r]));return n}return HE.call(e)}return e}function x_(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function ece(e){return io(e&&e[0])?2:1}var Yy=0,T_=1,gU=2,Xp=3,GE=4,zE=5,bN=6;function SN(e){return e===GE||e===zE}function Xy(e){return e===T_||e===gU}var fp=[0,0,0,0],tce=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=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=bN,l=n;if(io(n)){var u=ece(n);s=u,(u===1&&!Zn(n[0])||u===2&&!Zn(n[0][0]))&&(a=!0)}else if(Zn(n)&&!S1(n))s=Yy;else if(ht(n))if(!isNaN(+n))s=Yy;else{var c=nl(n);c&&(l=c,s=Xp)}else if(eS(n)){var f=Ze({},l);f.colorStops=Pt(n.colorStops,function(h){return{offset:h.offset,color:nl(h.color)}}),Kue(n)?s=GE:Zue(n)&&(s=zE),l=f}o===0?this.valType=s:(s!==this.valType||s===bN)&&(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:Av[r]||pU(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=Xy(i),u=SN(i),c=0;c<o;c++){var f=r[c],d=f.value,h=a.value;f.percent=f.time/t,s||(l&&c!==o-1?Que(d,h,i):u&&Jue(d.colorStops,h.colorStops))}if(!s&&i!==zE&&n&&this.needsAnimate()&&n.needsAnimate()&&i===n.valType&&!n._finished){this._additiveTrack=n;for(var v=r[0].value,c=0;c<o;c++)i===Yy?r[c].additiveValue=r[c].value-v:i===Xp?r[c].additiveValue=jy([],r[c].value,v,-1):Xy(i)&&(r[c].additiveValue=i===T_?jy([],r[c].value,v,-1):_N([],r[c].value,v,-1))}},e.prototype.step=function(t,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,i=r?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=o===Xp,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=a[0];else{if(n<0)c=0;else if(n<this._lastFrP){var m=d(f+1,s-1);for(c=m;c>=0&&!(a[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(a[c].percent>n);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((Xy(o)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=_<1?h.rawValue:v.rawValue;else if(Xy(o))o===T_?tT(b,h[i],v[i],_):que(b,h[i],v[i],_);else if(SN(o)){var w=h[i],S=v[i],C=o===GE;t[l]={type:C?"linear":"radial",x:Gs(w.x,S.x,_),y:Gs(w.y,S.y,_),colorStops:Pt(w.colorStops,function(A,P){var I=S.colorStops[P];return{offset:Gs(A.offset,I.offset,_),color:x_(tT([],A.color,I.color,_))}}),global:S.global},C?(t[l].x2=Gs(w.x2,S.x2,_),t[l].y2=Gs(w.y2,S.y2,_)):t[l].r=Gs(w.r,S.r,_)}else if(u)tT(b,h[i],v[i],_),r||(t[l]=x_(b));else{var T=Gs(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===Yy?t[r]=t[r]+i:n===Xp?(nl(t[r],fp),jy(fp,fp,i,1),t[r]=x_(fp)):n===T_?jy(t[r],t[r],i,1):n===gU&&_N(t[r],t[r],i,1)},e}(),gR=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){sR("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;a<r.length;a++){var s=r[a],l=o[s];if(!l){l=o[s]=new tce(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===Xp&&u&&(u=x_(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,w_(u),i),this._trackKeys.push(s)}l.addKeyframe(t,w_(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;r<n;r++)t[r].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,n=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)t[n[r]].setFinished()},e.prototype._getAdditiveTrack=function(t){var n,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var o=r[i].getTrack(t);o&&(n=o)}return n},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(n._target[s.propName]=f.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var d=new Yue({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var v=n._additiveAnimators;if(v){for(var m=!1,y=0;y<v.length;y++)if(v[y]._clip){m=!0;break}m||(n._additiveAnimators=null)}for(var y=0;y<r.length;y++)r[y].step(n._target,h);var _=n._onframeCbs;if(_)for(var y=0;y<_.length;y++)_[y](n._target,h)},ondestroy:function(){n._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var n=this._clip;t&&n.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Pt(this._trackKeys,function(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var a=r[t[o]];a&&!a.isFinished()&&(n?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<i.length;o++)if(!r[i[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,r){if(t){n=n||this._trackKeys;for(var i=0;i<n.length;i++){var o=n[i],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[r?0:s.length-1];l&&(t[o]=w_(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||Kn(t);for(var r=0;r<n.length;r++){var i=n[r],o=this._tracks[i];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}(),_s=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<o[t].length;s++)if(o[t][s].h===r)return this;var l={h:r,query:n,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},u=o[t].length-1,c=o[t][u];return c&&c.callAtLast?o[t].splice(u,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var n=this._$handlers;return!n||!n[t]||!n[t].length},e.prototype.off=function(t,n){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(n){if(r[t]){for(var i=[],o=0,a=r[t].length;o<a;o++)r[t][o].h!==n&&i.push(r[t][o]);r[t]=i}r[t]&&r[t].length===0&&delete r[t]}else delete r[t];return this},e.prototype.trigger=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(t,u.query)))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,n[0]);break;case 2:u.h.call(u.ctx,n[0],n[1]);break;default:u.h.apply(u.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=n[a-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(a){case 0:c.h.call(s);break;case 1:c.h.call(s,n[0]);break;case 2:c.h.call(s,n[0],n[1]);break;default:c.h.apply(s,n.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e}(),mU=1;Mt.hasGlobalWindow&&(mU=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var A1=mU,WE=.4,jE="#333",YE="#ccc",nce="#eee",xo=1,Kp=2,Sd=4,nT="__zr_normal__",rT=xg.concat(["ignore"]),rce=Eh(xg,function(e,t){return e[t]=!0,e},{ignore:!1}),Jf={},ice=new bn(0,0,0,0),oS=function(){function e(t){this.id=qV(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,o=n.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=i?this:null;var u=!1;if(o.copyTransform(n),r.position!=null){var c=ice;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Jf,r,c):aU(Jf,r,c),o.x=Jf.x,o.y=Jf.y,a=Jf.align,s=Jf.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=mf(f[0],c.width),h=mf(f[1],c.height)),u=!0,o.originX=-o.x+d+(i?0:c.x),o.originY=-o.y+h+(i?0:c.y)}}r.rotation!=null&&(o.rotation=r.rotation);var v=r.offset;v&&(o.x+=v[0],o.y+=v[1],u||(o.originX=-v[0],o.originY=-v[1]));var m=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=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|=xo,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()?YE:jE},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&nl(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,iS(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||{},Ze(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(Ct(t))for(var r=t,i=Kn(r),o=0;o<i.length;o++){var a=i[o];this.attrKV(a,t[a])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,r=0;r<this.animators.length;r++){var i=this.animators[r],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==nT)){var a=i.targetName,s=a?n[a]:n;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var n=this._normalState;n||(n=this._normalState={}),t.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(t,n,rT)},e.prototype._savePrimaryToNormal=function(t,n,r){for(var i=0;i<r.length;i++){var o=r[i];t[o]!=null&&!(o in n)&&(n[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},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(nT,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===nT,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){sR("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&=~xo),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;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[a-1],d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!n&&!this.__inHover&&v&&v.duration>0,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&=~xo)}},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<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=In(this.currentStates,t);if(n>=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<t.length;i++){var o=t[i];Ze(n,o),o.textConfig&&(r=r||{},Ze(r,o.textConfig))}return r&&(n.textConfig=r),n},e.prototype._applyStateObj=function(t,n,r,i,o,a){var s=!(n&&i);n&&n.textConfig?(this.textConfig=Ze({},i?this.textConfig:r.textConfig),Ze(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<rT.length;c++){var f=rT[c],d=o&&rce[f];n&&n[f]!=null?d?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(d?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!o)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(n||r)[v]:n||r)}u&&this._transitionState(t,l,a)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new vR,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Ze(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=xo;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=t),r&&(r.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,r){var i=t?this[t]:this,o=new gR(i,n,r);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,n){var r=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(n)}).done(function(){var o=i.animators,a=In(o,t);a>=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;a<i;a++){var s=r[a];!t||t===s.scope?s.stop(n):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,n,r){iT(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){iT(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,i){for(var o=iT(this,n,r,i),a=0;a<o.length;a++)o[a].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=xo;function n(r,i,o,a){Object.defineProperty(t,r,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[o]=l[0],this[a]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[o]},set:function(c){l[o]=c}}),Object.defineProperty(u,1,{get:function(){return l[a]},set:function(c){l[a]=c}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();ys(oS,_s);ys(oS,vR);function iT(e,t,n,r,i){n=n||{};var o=[];yU(e,"",e,t,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},f=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(v,m){n.during(m)});for(var d=0;d<o.length;d++){var h=o[d];h.done(c),h.aborted(f),n.force&&h.duration(n.duration),h.start(n.easing)}return o}function oT(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function oce(e){return io(e[0])}function ace(e,t,n){if(io(t[n]))if(io(e[n])||(e[n]=[]),oo(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),oT(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(oce(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?oT(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else oT(o,i,a);o.length=i.length}else e[n]=t[n]}function sce(e,t){return e===t||io(e)&&io(t)&&lce(e,t)}function lce(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function yU(e,t,n,r,i,o,a,s){for(var l=Kn(r),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,h=!Ct(o),v=e.animators,m=[],y=0;y<l.length;y++){var _=l[y],b=r[_];if(b!=null&&n[_]!=null&&(h||o[_]))if(Ct(b)&&!io(b)&&!eS(b)){if(t){s||(n[_]=b,e.updateDuringAnimation(t));continue}yU(e,_,n[_],b,i,o&&o[_],a,s)}else m.push(_);else s||(n[_]=b,e.updateDuringAnimation(t),m.push(_))}var w=m.length;if(!f&&w)for(var S=0;S<v.length;S++){var C=v[S];if(C.targetName===t){var T=C.stopTracks(m);if(T){var A=In(v,C);v.splice(A,1)}}}if(i.force||(m=Ur(m,function(O){return!sce(r[O],n[O])}),w=m.length),w>0||i.force&&!a.length){var P=void 0,I=void 0,R=void 0;if(s){I={},d&&(P={});for(var S=0;S<w;S++){var _=m[S];I[_]=n[_],d?P[_]=r[_]:n[_]=r[_]}}else if(d){R={};for(var S=0;S<w;S++){var _=m[S];R[_]=w_(n[_]),ace(n,r,_)}}var C=new gR(n,!1,!1,f?Ur(v,function(D){return D.targetName===t}):null);C.targetName=t,i.scope&&(C.scope=i.scope),d&&P&&C.whenWithKeys(0,P,m),R&&C.whenWithKeys(0,R,m),C.whenWithKeys(u??500,s?I:r,m).delay(c||0),e.addAnimator(C,t),a.push(C)}}var XE="__zr_style_"+Math.round(Math.random()*10),nf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},aS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};nf[XE]=!0;var wN=["z","z2","invisible"],uce=["invisible"],lm=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=Kn(n),i=0;i<r.length;i++){var o=r[i];o==="style"?this.useStyle(n[o]):e.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,i,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&cce(this,n,r)||a&&!a[0]&&!a[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();return o.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,i=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new bn(0,0,0,0)),r?bn.applyTransform(n,i,r):n.copy(i),(a||s||l)&&(n.width+=a*2+Math.abs(s),n.height+=a*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-a),n.y=Math.min(n.y,n.y+l-a));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new bn(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:Ze(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=Kp,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Kp)},t.prototype.styleUpdated=function(){this.__dirty&=~Kp},t.prototype.createStyle=function(n){return tS(nf,n)},t.prototype.useStyle=function(n){n[XE]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[XE]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,wN)},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.style?a?o?u=r.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(u,r.style)):l&&(u=i.style),u)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Kn(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=Kn(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?uce:wN,d=0;d<m.length;d++){var h=m[d];r&&r[h]!=null?this[h]=r[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.style&&(i=i||{},this._mergeStyle(i,a.style))}return i&&(r.style=i),r},t.prototype._mergeStyle=function(n,r){return Ze(n,r),n},t.prototype.getAnimationStyleProps=function(){return aS},t.initDefaultProps=function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=xo|Kp}(),t}(oS),aT=new bn(0,0,0,0),sT=new bn(0,0,0,0);function cce(e,t,n){return aT.copy(e.getBoundingRect()),e.transform&&aT.applyTransform(e.transform),sT.width=t,sT.height=n,!aT.intersect(sT)}var qo=Math.min,Jo=Math.max,lT=Math.sin,uT=Math.cos,uc=Math.PI*2,Ky=Ah(),Zy=Ah(),qy=Ah();function xN(e,t,n,r,i,o){i[0]=qo(e,n),i[1]=qo(t,r),o[0]=Jo(e,n),o[1]=Jo(t,r)}var TN=[],CN=[];function fce(e,t,n,r,i,o,a,s,l,u){var c=dU,f=Hr,d=c(e,n,i,a,TN);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,n,i,a,TN[h]);l[0]=qo(v,l[0]),u[0]=Jo(v,u[0])}d=c(t,r,o,s,CN);for(var h=0;h<d;h++){var m=f(t,r,o,s,CN[h]);l[1]=qo(m,l[1]),u[1]=Jo(m,u[1])}l[0]=qo(e,l[0]),u[0]=Jo(e,u[0]),l[0]=qo(a,l[0]),u[0]=Jo(a,u[0]),l[1]=qo(t,l[1]),u[1]=Jo(t,u[1]),l[1]=qo(s,l[1]),u[1]=Jo(s,u[1])}function dce(e,t,n,r,i,o,a,s){var l=hU,u=Yi,c=Jo(qo(l(e,n,i),1),0),f=Jo(qo(l(t,r,o),1),0),d=u(e,n,i,c),h=u(t,r,o,f);a[0]=qo(e,i,d),a[1]=qo(t,o,h),s[0]=Jo(e,i,d),s[1]=Jo(t,o,h)}function hce(e,t,n,r,i,o,a,s,l){var u=Ad,c=Id,f=Math.abs(i-o);if(f%uc<1e-4&&f>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(Ky[0]=uT(i)*n+e,Ky[1]=lT(i)*r+t,Zy[0]=uT(o)*n+e,Zy[1]=lT(o)*r+t,u(s,Ky,Zy),c(l,Ky,Zy),i=i%uc,i<0&&(i=i+uc),o=o%uc,o<0&&(o=o+uc),i>o&&!a?o+=uc:i<o&&a&&(i+=uc),a){var d=o;o=i,i=d}for(var h=0;h<o;h+=Math.PI/2)h>i&&(qy[0]=uT(h)*n+e,qy[1]=lT(h)*r+t,u(s,qy,s),c(l,qy,l))}var mn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},cc=[],fc=[],Ya=[],kl=[],Xa=[],Ka=[],cT=Math.min,fT=Math.max,dc=Math.cos,hc=Math.sin,Ns=Math.abs,KE=Math.PI,Yl=KE*2,dT=typeof Float32Array<"u",dp=[];function hT(e){var t=Math.round(e/KE*1e8)/1e8;return t%2*KE}function pce(e,t){var n=hT(e[0]);n<0&&(n+=Yl);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Yl?i=n+Yl:t&&n-i>=Yl?i=n-Yl:!t&&n>i?i=n+(Yl-hT(n-i)):t&&n<i&&(i=n-(Yl-hT(i-n))),e[0]=n,e[1]=i}var yf=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,n,r){r=r||0,r>0&&(this._ux=Ns(r/A1/t)||0,this._uy=Ns(r/A1/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=Ns(t-this._xi),i=Ns(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,pce(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=dc(o)*r+t,this._yi=hc(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)&&dT&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=t[r];this._len=n},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var n=t.length,r=0,i=this._len,o=0;o<n;o++)r+=t[o].len();dT&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var o=0;o<n;o++)for(var a=t[o].data,s=0;s<a.length;s++)this.data[i++]=a[s];this._len=i},e.prototype.addData=function(t,n,r,i,o,a,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(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;n<this._len;n++)t[n]=this.data[n];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,dT&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Ya[0]=Ya[1]=Xa[0]=Xa[1]=Number.MAX_VALUE,kl[0]=kl[1]=Ka[0]=Ka[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,o=0,a;for(a=0;a<this._len;){var s=t[a++],l=a===1;switch(l&&(n=t[a],r=t[a+1],i=n,o=r),s){case mn.M:n=i=t[a++],r=o=t[a++],Xa[0]=i,Xa[1]=o,Ka[0]=i,Ka[1]=o;break;case mn.L:xN(n,r,t[a],t[a+1],Xa,Ka),n=t[a++],r=t[a++];break;case mn.C:fce(n,r,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],Xa,Ka),n=t[a++],r=t[a++];break;case mn.Q:dce(n,r,t[a++],t[a++],t[a],t[a+1],Xa,Ka),n=t[a++],r=t[a++];break;case mn.A:var u=t[a++],c=t[a++],f=t[a++],d=t[a++],h=t[a++],v=t[a++]+h;a+=1;var m=!t[a++];l&&(i=dc(h)*f+u,o=hc(h)*d+c),hce(u,c,f,d,h,v,m,Xa,Ka),n=dc(v)*f+u,r=hc(v)*d+c;break;case mn.R:i=n=t[a++],o=r=t[a++];var y=t[a++],_=t[a++];xN(i,o,i+y,o+_,Xa,Ka);break;case mn.Z:n=i,r=o;break}Ad(Ya,Ya,Xa),Id(kl,kl,Ka)}return a===0&&(Ya[0]=Ya[1]=kl[0]=kl[1]=0),new bn(Ya[0],Ya[1],kl[0]-Ya[0],kl[1]-Ya[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,r=this._ux,i=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<n;){var h=t[d++],v=d===1;v&&(o=t[d],a=t[d+1],s=o,l=a);var m=-1;switch(h){case mn.M:o=s=t[d++],a=l=t[d++];break;case mn.L:{var y=t[d++],_=t[d++],b=y-o,w=_-a;(Ns(b)>r||Ns(w)>i||d===n-1)&&(m=Math.sqrt(b*b+w*w),o=y,a=_);break}case mn.C:{var S=t[d++],C=t[d++],y=t[d++],_=t[d++],T=t[d++],A=t[d++];m=Hue(o,a,S,C,y,_,T,A,10),o=T,a=A;break}case mn.Q:{var S=t[d++],C=t[d++],y=t[d++],_=t[d++];m=Wue(o,a,S,C,y,_,10),o=y,a=_;break}case mn.A:var P=t[d++],I=t[d++],R=t[d++],O=t[d++],D=t[d++],$=t[d++],F=$+D;d+=1,v&&(s=dc(D)*R+P,l=hc(D)*O+I),m=fT(R,O)*cT(Yl,Math.abs($)),o=dc(F)*R+P,a=hc(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,C;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,m=this._pathLen,b=n*m,!b)))e:for(var T=0;T<a;){var A=r[T++],P=T===1;switch(P&&(u=r[T],c=r[T+1],s=u,l=c),A!==mn.L&&w>0&&(t.lineTo(S,C),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=Ns(f-u),R=Ns(d-c);if(I>i||R>o){if(h){var O=v[_++];if(y+O>b){var D=(b-y)/O;t.lineTo(u*(1-D)+f*D,c*(1-D)+d*D);break e}y+=O}t.lineTo(f,d),u=f,c=d,w=0}else{var $=I*I+R*R;$>w&&(S=f,C=d,w=$)}break}case mn.C:{var F=r[T++],z=r[T++],B=r[T++],Y=r[T++],j=r[T++],se=r[T++];if(h){var O=v[_++];if(y+O>b){var D=(b-y)/O;T1(u,F,B,j,D,cc),T1(c,z,Y,se,D,fc),t.bezierCurveTo(cc[1],fc[1],cc[2],fc[2],cc[3],fc[3]);break e}y+=O}t.bezierCurveTo(F,z,B,Y,j,se),u=j,c=se;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 D=(b-y)/O;C1(u,F,B,D,cc),C1(c,z,Y,D,fc),t.quadraticCurveTo(cc[1],fc[1],cc[2],fc[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++],Me=r[T++],Ne=r[T++],ze=r[T++],De=r[T++],je=r[T++],ce=!r[T++],Ee=Me>Ne?Me:Ne,Se=Ns(Me-Ne)>.001,Te=ze+De,Oe=!1;if(h){var O=v[_++];y+O>b&&(Te=ze+De*(b-y)/O,Oe=!0),y+=O}if(Se&&t.ellipse?t.ellipse(ge,ve,Me,Ne,je,ze,Te,ce):t.arc(ge,ve,Ee,ze,Te,ce),Oe)break e;P&&(s=dc(ze)*Me+ge,l=hc(ze)*Ne+ve),u=dc(Te)*Me+ge,c=hc(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+cT(G,$e),d),G-=$e,G>0&&t.lineTo(f+$e,d+cT(G,H)),G-=H,G>0&&t.lineTo(f+fT($e-G,0),d+H),G-=$e,G>0&&t.lineTo(f,d+fT(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 D=(b-y)/O;t.lineTo(u*(1-D)+s*D,c*(1-D)+l*D);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 Qf(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||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e!==n)l=(t-r)/(e-n),u=(e*r-n*t)/(e-n);else return Math.abs(o-e)<=s/2;var c=l*o-a+u,f=c*c/(l*l+1);return f<=s/2*s/2}function vce(e,t,n,r,i,o,a,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>r+f&&c>o+f&&c>s+f||c<t-f&&c<r-f&&c<o-f&&c<s-f||u>e+f&&u>n+f&&u>i+f&&u>a+f||u<e-f&&u<n-f&&u<i-f&&u<a-f)return!1;var d=Uue(e,t,n,r,i,o,a,s,u,c);return d<=f/2}function gce(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;if(l>t+u&&l>r+u&&l>o+u||l<t-u&&l<r-u&&l<o-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)return!1;var c=zue(e,t,n,r,i,o,s,l);return c<=u/2}var EN=Math.PI*2;function Jy(e){return e%=EN,e<0&&(e+=EN),e}var hp=Math.PI*2;function mce(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%hp<1e-4)return!0;if(o){var f=r;r=Jy(i),i=Jy(f)}else r=Jy(r),i=Jy(i);r>i&&(i+=hp);var d=Math.atan2(l,s);return d<0&&(d+=hp),d>=r&&d<=i||d+hp>=r&&d+hp<=i}function pc(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r||r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;(a===1||a===0)&&(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var Fl=yf.CMD,vc=Math.PI*2,yce=1e-4;function _ce(e,t){return Math.abs(e-t)<yce}var Ti=[-1,-1,-1],Xo=[-1,-1];function bce(){var e=Xo[0];Xo[0]=Xo[1],Xo[1]=e}function Sce(e,t,n,r,i,o,a,s,l,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var c=x1(t,r,o,s,u,Ti);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,m=0;m<c;m++){var y=Ti[m],_=y===0||y===1?.5:1,b=Hr(e,n,i,a,y);b<l||(d<0&&(d=dU(t,r,o,s,Xo),Xo[1]<Xo[0]&&d>1&&bce(),h=Hr(t,r,o,s,Xo[0]),d>1&&(v=Hr(t,r,o,s,Xo[1]))),d===2?y<Xo[0]?f+=h<t?_:-_:y<Xo[1]?f+=v<h?_:-_:f+=s<v?_:-_:y<Xo[0]?f+=h<t?_:-_:f+=s<h?_:-_)}return f}function wce(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=Gue(t,r,o,s,Ti);if(l===0)return 0;var u=hU(t,r,o);if(u>=0&&u<=1){for(var c=0,f=Yi(t,r,o,u),d=0;d<l;d++){var h=Ti[d]===0||Ti[d]===1?.5:1,v=Yi(e,n,i,Ti[d]);v<a||(Ti[d]<u?c+=f<t?h:-h:c+=o<f?h:-h)}return c}else{var h=Ti[0]===0||Ti[0]===1?.5:1,v=Yi(e,n,i,Ti[0]);return v<a?0:o<t?h:-h}}function xce(e,t,n,r,i,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ti[0]=-l,Ti[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=vc-1e-4){r=0,i=vc;var c=o?1:-1;return a>=Ti[0]+e&&a<=Ti[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=vc,i+=vc);for(var d=0,h=0;h<2;h++){var v=Ti[h];if(v+e>a){var m=Math.atan2(s,v),c=o?1:-1;m<0&&(m=vc+m),(m>=r&&m<=i||m+vc>=r&&m+vc<=i)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),d+=c)}}return d}function _U(e,t,n,r,i){for(var o=e.data,a=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<a;){var m=o[v++],y=v===1;switch(m===Fl.M&&v>1&&(n||(s+=pc(l,u,c,f,r,i))),y&&(l=o[v],u=o[v+1],c=l,f=u),m){case Fl.M:c=o[v++],f=o[v++],l=c,u=f;break;case Fl.L:if(n){if(Qf(l,u,o[v],o[v+1],t,r,i))return!0}else s+=pc(l,u,o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case Fl.C:if(n){if(vce(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=Sce(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 Fl.Q:if(n){if(gce(l,u,o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=wce(l,u,o[v++],o[v++],o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case Fl.A:var _=o[v++],b=o[v++],w=o[v++],S=o[v++],C=o[v++],T=o[v++];v+=1;var A=!!(1-o[v++]);d=Math.cos(C)*w+_,h=Math.sin(C)*S+b,y?(c=d,f=h):s+=pc(l,u,d,h,r,i);var P=(r-_)*S/w+_;if(n){if(mce(_,b,S,C,C+T,A,t,P,i))return!0}else s+=xce(_,b,S,C,C+T,A,P,i);l=Math.cos(C+T)*w+_,u=Math.sin(C+T)*S+b;break;case Fl.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(Qf(c,f,d,f,t,r,i)||Qf(d,f,d,h,t,r,i)||Qf(d,h,c,h,t,r,i)||Qf(c,h,c,f,t,r,i))return!0}else s+=pc(d,f,d,h,r,i),s+=pc(c,h,c,f,r,i);break;case Fl.Z:if(n){if(Qf(l,u,c,f,t,r,i))return!0}else s+=pc(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!_ce(u,f)&&(s+=pc(l,u,c,f,r,i)||0),s!==0}function Tce(e,t,n){return _U(e,0,!1,t,n)}function Cce(e,t,n,r){return _U(e,t,!0,n,r)}var bU=En({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},nf),Ece={style:En({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},aS.style)},pT=xg.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<pT.length;++s)i[pT[s]]=this[pT[s]];i.__dirty|=xo}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=Kn(n);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o<r.length;o++){var a=r[o],s=n[a];a==="style"?this.style?Ze(this.style,s):this.useStyle(s):a==="shape"?Ze(this.shape,s):e.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(ht(n)){var r=E1(n,0);return r>.5?jE:r>.2?nce:YE}else if(n)return YE}return jE},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(ht(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=E1(n,0)<WE;if(o===a)return r}},t.prototype.buildPath=function(n,r,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Sd},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new yf(!1)},t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>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&Sd)&&(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)),Cce(s,l/u,n,r)))return!0}if(this.hasFill())return Tce(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Sd,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:Ze(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Sd)},t.prototype.createStyle=function(n){return tS(bU,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Ze({},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=Ze({},i.shape),Ze(u,r.shape)):(u=Ze({},o?this.shape:i.shape),Ze(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=Ze({},this.shape);for(var c={},f=Kn(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.shape&&(i=i||{},this._mergeStyle(i,a.shape))}return i&&(r.shape=i),r},t.prototype.getAnimationStyleProps=function(){return Ece},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=function(o){ot(a,o);function a(s){var l=o.call(this,s)||this;return n.init&&n.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return ln(n.style)},a.prototype.getDefaultShape=function(){return ln(n.shape)},a}(t);for(var i in n)typeof n[i]=="function"&&(r.prototype[i]=n[i]);return r},t.initDefaultProps=function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=xo|Kp|Sd}(),t}(lm),Ace=En({strokeFirst:!0,font:vf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},bU),I1=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return tS(Ace,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=hR(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}(lm);I1.prototype.type="tspan";var Ice=En({x:0,y:0},nf),Rce={style:En({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},aS.style)};function Pce(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Hu=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return tS(Ice,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=Pce(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 Rce},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}(lm);Hu.prototype.type="image";function Oce(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 Rd=Math.round;function SU(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&&(Rd(r*2)===Rd(i*2)&&(e.x1=e.x2=Vc(r,s,!0)),Rd(o*2)===Rd(a*2)&&(e.y1=e.y2=Vc(o,s,!0))),e}}function wU(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=Vc(r,s,!0),e.y=Vc(i,s,!0),e.width=Math.max(Vc(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(Vc(i+a,s,!1)-e.y,a===0?0:1)),e}}function Vc(e,t,n){if(!t)return e;var r=Rd(e*2);return(r+Rd(t))%2===0?r/2:(r+(n?1:-1))/2}var Mce=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Dce={},jr=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Mce},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=wU(Dce,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?Oce(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ln);jr.prototype.type="rect";var AN={fill:"#000"},IN=2,Lce={style:En({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},aS.style)},ao=function(e){ot(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=AN,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;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):e.prototype.getLocalTransform.call(this,n)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Bce(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new bn(0,0,0,0),r=this._children,i=[],o=null,a=0;a<r.length;a++){var s=r[a],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(n.copy(l),n.applyTransform(u),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}this._rect=o||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||AN},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var i=r.rich,o=n.rich||i&&{};return Ze(n,r),i&&o?(this._mergeRich(o,i),n.rich=o):o&&(n.rich=o),n},t.prototype._mergeRich=function(n,r){for(var i=Kn(r),o=0;o<i.length;o++){var a=i[o];n[a]=n[a]||{},Ze(n[a],r[a])}},t.prototype.getAnimationStyleProps=function(){return Lce},t.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},t.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||vf,i=n.padding,o=NN(n),a=Eue(o,n),s=vT(n),l=!!n.backgroundColor,u=a.outerHeight,c=a.outerWidth,f=a.contentWidth,d=a.lines,h=a.lineHeight,v=this._defaultStyle;this.isTruncated=!!a.isTruncated;var m=n.x||0,y=n.y||0,_=n.align||v.align||"left",b=n.verticalAlign||v.verticalAlign||"top",w=m,S=bd(y,a.contentHeight,b);if(s||i){var C=Yp(m,c,_),T=bd(y,u,b);s&&this._renderBackground(n,n,C,T,c,u)}S+=h/2,i&&(w=LN(m,_,i),b==="top"?S+=i[0]:b==="bottom"&&(S-=i[2]));for(var A=0,P=!1,I=DN("fill"in n?n.fill:(P=!0,v.fill)),R=MN("stroke"in n?n.stroke:!l&&(!v.autoStroke||P)?(A=IN,v.stroke):null),O=n.textShadowBlur>0,D=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),$=a.calculatedLineHeight,F=0;F<d.length;F++){var z=this._getOrCreateChild(I1),B=z.createStyle();z.useStyle(B),B.text=d[F],B.x=w,B.y=S,B.textAlign=_,B.textBaseline="middle",B.opacity=n.opacity,B.strokeFirst=!0,O&&(B.shadowBlur=n.textShadowBlur||0,B.shadowColor=n.textShadowColor||"transparent",B.shadowOffsetX=n.textShadowOffsetX||0,B.shadowOffsetY=n.textShadowOffsetY||0),B.stroke=R,B.fill=I,R&&(B.lineWidth=n.lineWidth||A,B.lineDash=n.lineDash,B.lineDashOffset=n.lineDashOffset||0),B.font=r,PN(B,n),S+=h,D&&z.setBoundingRect(new bn(Yp(B.x,f,B.textAlign),bd(B.y,$,B.textBaseline),f,$))}},t.prototype._updateRichTexts=function(){var n=this.style,r=NN(n),i=Rue(r,n),o=i.width,a=i.outerWidth,s=i.outerHeight,l=n.padding,u=n.x||0,c=n.y||0,f=this._defaultStyle,d=n.align||f.align,h=n.verticalAlign||f.verticalAlign;this.isTruncated=!!i.isTruncated;var v=Yp(u,a,d),m=bd(c,s,h),y=v,_=m;l&&(y+=l[3],_+=l[0]);var b=y+o;vT(n)&&this._renderBackground(n,n,v,m,a,s);for(var w=!!n.backgroundColor,S=0;S<i.lines.length;S++){for(var C=i.lines[S],T=C.tokens,A=T.length,P=C.lineHeight,I=C.width,R=0,O=y,D=b,$=A-1,F=void 0;R<A&&(F=T[R],!F.align||F.align==="left");)this._placeToken(F,n,P,_,O,"left",w),I-=F.width,O+=F.width,R++;for(;$>=0&&(F=T[$],F.align==="right");)this._placeToken(F,n,P,_,D,"right",w),I-=F.width,D-=F.width,$--;for(O+=(o-(O-y)-(b-D)-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&&vT(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=LN(a,s,v),f-=n.height/2-v[0]-n.innerHeight/2);var m=this._getOrCreateChild(I1),y=m.createStyle();m.useStyle(y);var _=this._defaultStyle,b=!1,w=0,S=DN("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,_.fill)),C=MN("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!_.autoStroke||b)?(w=IN,_.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||vf,y.opacity=S_(u.opacity,r.opacity,1),PN(y,u),C&&(y.lineWidth=S_(u.lineWidth,r.lineWidth,w),y.lineDash=nn(u.lineDash,r.lineDash),y.lineDashOffset=r.lineDashOffset||0,y.stroke=C),S&&(y.fill=S);var A=n.contentWidth,P=n.contentHeight;m.setBoundingRect(new bn(Yp(y.x,A,y.textAlign),bd(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(jr),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(Hu),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=S_(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return $ce(n)&&(r=[n.fontStyle,n.fontWeight,Fce(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&is(r)||n.textFont||n.font},t}(lm),Nce={left:!0,right:1,center:1},kce={top:1,bottom:1,middle:1},RN=["fontStyle","fontWeight","fontSize","fontFamily"];function Fce(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?iR+"px":e+"px"}function PN(e,t){for(var n=0;n<RN.length;n++){var r=RN[n],i=t[r];i!=null&&(e[r]=i)}}function $ce(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Bce(e){return ON(e),Q(e.rich,ON),e}function ON(e){if(e){e.font=ao.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Nce[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||kce[n]?n:"top";var r=e.padding;r&&(e.padding=JV(e.padding))}}function MN(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function DN(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function LN(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function NN(e){var t=e.text;return t!=null&&(t+=""),t}function vT(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var kN=1e-4,xU=20;function Vce(e){return e.replace(/^\s+|\s+$/g,"")}function FN(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(r)if(l>0){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 ht(e)?Vce(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),xU),e=(+e).toFixed(t),n?e:+e}function Js(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 Uce(e)}function Uce(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 Hce(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 Gce(e,t){var n=Math.max(Js(e),Js(t)),r=e+t;return n>xU?r:_r(r,n)}function TU(e){var t=Math.PI*2;return(e%t+t)%t}function R1(e){return e>-kN&&e<kN}var zce=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function vl(e){if(e instanceof Date)return e;if(ht(e)){var t=zce.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function Wce(e){return Math.pow(10,mR(e))}function mR(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function CU(e,t){var n=mR(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 P1(e){var t=parseFloat(e);return t==e&&(t!==0||!ht(e)||e.indexOf("x")<=0)?t:NaN}function jce(e){return!isNaN(P1(e))}function EU(){return Math.round(Math.random()*9)}function AU(e,t){return t===0?e:AU(t,e%t)}function $N(e,t){return e==null?t:t==null?e:e*t/AU(e,t)}function Xi(e){throw new Error(e)}function BN(e,t,n){return(t-e)*n+e}var IU="series\0",Yce="\0_ec_\0";function Ri(e){return e instanceof Array?e:e==null?[]:[e]}function VN(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<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var UN=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function um(e){return Ct(e)&&!ut(e)&&!(e instanceof Date)?e.value:e}function Xce(e){return Ct(e)&&!(e instanceof Array)}function Kce(e,t,n){var r=n==="normalMerge",i=n==="replaceMerge",o=n==="replaceAll";e=e||[],t=(t||[]).slice();var a=Kt();Q(t,function(l,u){if(!Ct(l)){t[u]=null;return}});var s=Zce(e,a,n);return(r||i)&&qce(s,e,a,t),r&&Jce(s,t),r||i?Qce(s,t,i):o&&efe(s,t),tfe(s),s}function Zce(e,t,n){var r=[];if(n==="replaceAll")return r;for(var i=0;i<e.length;i++){var o=e[i];o&&o.id!=null&&t.set(o.id,i),r.push({existing:n==="replaceMerge"||Tg(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function qce(e,t,n,r){Q(r,function(i,o){if(!(!i||i.id==null)){var a=Rv(i.id),s=n.get(a);if(s!=null){var l=e[s];pl(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}})}function Jce(e,t){Q(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(o.id==null||n.id==null)&&!Tg(n)&&!Tg(o)&&RU("name",o,n)){e[i].newOption=n,t[r]=null;return}}})}function Qce(e,t,n){Q(t,function(r){if(r){for(var i,o=0;(i=e[o])&&(i.newOption||Tg(i.existing)||i.existing&&r.id!=null&&!RU("id",r,i.existing));)o++;i?(i.newOption=r,i.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),o++}})}function efe(e,t){Q(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function tfe(e){var t=Kt();Q(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),Q(e,function(n){var r=n.newOption;pl(!r||r.id==null||!t.get(r.id)||t.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),Q(e,function(n,r){var i=n.existing,o=n.newOption,a=n.keyInfo;if(Ct(o)){if(a.name=o.name!=null?Rv(o.name):i?i.name:IU+r,i)a.id=Rv(i.id);else if(o.id!=null)a.id=Rv(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,n)}})}function RU(e,t,n){var r=as(t[e],null),i=as(n[e],null);return r!=null&&i!=null&&r===i}function Rv(e){return as(e,"")}function as(e,t){return e==null?t:ht(e)?e:Zn(e)||NE(e)?e+"":t}function yR(e){var t=e.name;return!!(t&&t.indexOf(IU))}function Tg(e){return e&&e.id!=null&&Rv(e.id).indexOf(Yce)===0}function nfe(e,t,n){Q(e,function(r){var i=r.newOption;Ct(i)&&(r.keyInfo.mainType=t,r.keyInfo.subType=rfe(t,i,r.existing,n))})}function rfe(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);return i}function _f(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ut(t.dataIndex)?Pt(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ut(t.name)?Pt(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function Ar(){var e="__ec_inner_"+ife++;return function(t){return t[e]||(t[e]={})}}var ife=EU();function gT(e,t,n){var r=_R(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(u,c){var f=cm(e,c,u,{useDefault:l===c,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function _R(e,t){var n;if(ht(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Kt(),o={},a=!1;return Q(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&In(t.includeMainTypes,c)<0)){a=a||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Pa={useDefault:!0,enableAll:!1,enableNone:!1};function cm(e,t,n,r){r=r||Pa;var i=n.index,o=n.id,a=n.name,s={models:null,specified:i!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(pl(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(pl(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function PU(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function ofe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function afe(e){return e==="auto"?Mt.domSupported?"html":"richText":e||"html"}function sfe(e,t,n,r,i){var o=t==null||t==="auto";if(r==null)return r;if(Zn(r)){var a=BN(n||0,r,i);return _r(a,o?Math.max(Js(n||0),Js(r)):t)}else{if(ht(r))return i<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],a=BN(h,v,i);s[f]=_r(a,o?Math.max(Js(h),Js(v)):t)}}return s}}var Dn=Ar(),lfe=function(e,t,n,r){if(r){var i=Dn(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",r.type==="group"&&r.traverse(function(o){var a=Dn(o);a.seriesIndex=e,a.dataIndex=n,a.dataType=t,a.ssrType="chart"})}},HN=1,GN={},OU=Ar(),bR=Ar(),SR=0,sS=1,lS=2,hs=["emphasis","blur","select"],zN=["normal","emphasis","blur","select"],ufe=10,cfe=9,rf="highlight",C_="downplay",Pv="select",E_="unselect",Ov="toggleSelect";function ed(e){return e!=null&&e!=="none"}function uS(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function MU(e){uS(e,"emphasis",lS)}function DU(e){e.hoverState===lS&&uS(e,"normal",SR)}function wR(e){uS(e,"blur",sS)}function LU(e){e.hoverState===sS&&uS(e,"normal",SR)}function ffe(e){e.selected=!0}function dfe(e){e.selected=!1}function WN(e,t,n){t(e,n)}function yl(e,t,n){WN(e,t,n),e.isGroup&&e.traverse(function(r){WN(r,t,n)})}function jN(e,t){switch(t){case"emphasis":e.hoverState=lS;break;case"normal":e.hoverState=SR;break;case"blur":e.hoverState=sS;break;case"select":e.selected=!0}}function hfe(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=l??r[s]}for(var a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(o,t)}return o}function pfe(e,t,n,r){var i=n&&In(n,"select")>=0,o=!1;if(e instanceof Ln){var a=OU(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(ed(s)||ed(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=Ze({},r),u=Ze({},u),u.fill=s):!ed(u.fill)&&ed(s)?(o=!0,r=Ze({},r),u=Ze({},u),u.fill=yN(s)):!ed(u.stroke)&&ed(l)&&(o||(r=Ze({},r),u=Ze({},u)),u.stroke=yN(l)),r.style=u}}if(r&&r.z2==null){o||(r=Ze({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??ufe)}return r}function vfe(e,t,n){if(n&&n.z2==null){n=Ze({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??cfe)}return n}function gfe(e,t,n){var r=In(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:hfe(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=Ze({},n),a=Ze({opacity:r?i:o.opacity*.1},a),n.style=a),n}function mT(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return pfe(this,e,t,n);if(e==="blur")return gfe(this,e,n);if(e==="select")return vfe(this,e,n)}return n}function mfe(e){e.stateProxy=mT;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=mT),n&&(n.stateProxy=mT)}function YN(e,t){!$U(e,t)&&!e.__highByOuter&&yl(e,MU)}function XN(e,t){!$U(e,t)&&!e.__highByOuter&&yl(e,DU)}function O1(e,t){e.__highByOuter|=1<<(t||0),yl(e,MU)}function M1(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&yl(e,DU)}function yfe(e){yl(e,wR)}function NU(e){yl(e,LU)}function kU(e){yl(e,ffe)}function FU(e){yl(e,dfe)}function $U(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function BU(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=bR(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){LU(u)}),s&&n.push(o)),a.isBlured=!1}),Q(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function ZE(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&NU(d)}}if(e!=null&&!(!t||t==="none")){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=a===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!d||t==="series"&&c)){var h=r.getViewOfSeriesModel(u);if(h.group.traverse(function(y){y.__highByOuter&&c&&t==="self"||wR(y)}),io(t))o(u.getData(),t);else if(Ct(t))for(var v=Kn(t),m=0;m<v.length;m++)o(u.getData(v[m]),t[v[m]]);l.push(u),bR(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=r.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function qE(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){bR(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(o){wR(o)})}}}function _fe(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=_f(i,t);o=(ut(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Dn(a);ZE(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&ZE(r,c,f,n)}}}function xR(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s=a.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(Dn(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function bfe(e,t,n){var r=Dn(e),i=xR(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&qE(r.componentMainType,r.componentIndex,n),Q(o,function(s){return YN(s,t)})):(ZE(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&qE(r.componentMainType,r.componentIndex,n),YN(e,t))}function Sfe(e,t,n){BU(n);var r=Dn(e),i=xR(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Q(i,function(o){return XN(o,t)}):XN(e,t)}function wfe(e,t,n){if(tA(t)){var r=t.dataType,i=e.getData(r),o=_f(i,t);ut(o)||(o=[o]),e[t.type===Ov?"toggleSelect":t.type===Pv?"select":"unselect"](o,r)}}function KN(e){var t=e.getAllData();Q(t,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(o,a){e.isSelected(a,i)?kU(o):FU(o)})})}function xfe(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();Q(r,function(i){i.data;var o=i.type,a=n.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function JE(e,t,n){VU(e,!0),yl(e,mfe),Cfe(e,t,n)}function Tfe(e){VU(e,!1)}function QE(e,t,n,r){r?Tfe(e):JE(e,t,n)}function Cfe(e,t,n){var r=Dn(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var ZN=["emphasis","blur","select"],Efe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function qN(e,t,n,r){n=n||"itemStyle";for(var i=0;i<ZN.length;i++){var o=ZN[i],a=t.getModel([o,n]),s=e.ensureState(o);s.style=a[Efe[n]]()}}function VU(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function eA(e){return!!(e&&e.__highDownDispatcher)}function Afe(e){var t=GN[e];return t==null&&HN<=32&&(t=GN[e]=HN++),t}function tA(e){var t=e.type;return t===Pv||t===E_||t===Ov}function JN(e){var t=e.type;return t===rf||t===C_}function Ife(e){var t=OU(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var td=yf.CMD,Rfe=[[],[],[]],QN=Math.sqrt,Pfe=Math.atan2;function Ofe(e,t){if(t){var n=e.data,r=e.len(),i,o,a,s,l,u,c=td.M,f=td.C,d=td.L,h=td.R,v=td.A,m=td.Q;for(a=0,s=0;a<r;){switch(i=n[a++],s=a,o=0,i){case c:o=1;break;case d:o=1;break;case f:o=3;break;case m:o=2;break;case v:var y=t[4],_=t[5],b=QN(t[0]*t[0]+t[1]*t[1]),w=QN(t[2]*t[2]+t[3]*t[3]),S=Pfe(-t[1]/w,t[0]/b);n[a]*=b,n[a++]+=y,n[a]*=w,n[a++]+=_,n[a++]*=b,n[a++]*=w,n[a++]+=S,n[a++]+=S,a+=2,s=a;break;case h:u[0]=n[a++],u[1]=n[a++],ta(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[a++],u[1]+=n[a++],ta(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<o;l++){var C=Rfe[l];C[0]=n[a++],C[1]=n[a++],ta(C,C,t),n[s++]=C[0],n[s++]=C[1]}}e.increaseVersion()}}var yT=Math.sqrt,Qy=Math.sin,e0=Math.cos,pp=Math.PI;function ek(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function nA(e,t){return(e[0]*t[0]+e[1]*t[1])/(ek(e)*ek(t))}function tk(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(nA(e,t))}function nk(e,t,n,r,i,o,a,s,l,u,c){var f=l*(pp/180),d=e0(f)*(e-n)/2+Qy(f)*(t-r)/2,h=-1*Qy(f)*(e-n)/2+e0(f)*(t-r)/2,v=d*d/(a*a)+h*h/(s*s);v>1&&(a*=yT(v),s*=yT(v));var m=(i===o?-1:1)*yT((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+e0(f)*y-Qy(f)*_,w=(t+r)/2+Qy(f)*y+e0(f)*_,S=tk([1,0],[(d-y)/a,(h-_)/s]),C=[(d-y)/a,(h-_)/s],T=[(-1*d-y)/a,(-1*h-_)/s],A=tk(C,T);if(nA(C,T)<=-1&&(A=pp),nA(C,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 Mfe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Dfe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Lfe(e){var t=new yf;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=yf.CMD,l=e.match(Mfe);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(Dfe)||[],v=h.length,m=0;m<v;m++)h[m]=parseFloat(h[m]);for(var y=0;y<v;){var _=void 0,b=void 0,w=void 0,S=void 0,C=void 0,T=void 0,A=void 0,P=n,I=r,R=void 0,O=void 0;switch(f){case"l":n+=h[y++],r+=h[y++],d=s.L,t.addData(d,n,r);break;case"L":n=h[y++],r=h[y++],d=s.L,t.addData(d,n,r);break;case"m":n+=h[y++],r+=h[y++],d=s.M,t.addData(d,n,r),i=n,o=r,f="l";break;case"M":n=h[y++],r=h[y++],d=s.M,t.addData(d,n,r),i=n,o=r,f="L";break;case"h":n+=h[y++],d=s.L,t.addData(d,n,r);break;case"H":n=h[y++],d=s.L,t.addData(d,n,r);break;case"v":r+=h[y++],d=s.L,t.addData(d,n,r);break;case"V":r=h[y++],d=s.L,t.addData(d,n,r);break;case"C":d=s.C,t.addData(d,h[y++],h[y++],h[y++],h[y++],h[y++],h[y++]),n=h[y-2],r=h[y-1];break;case"c":d=s.C,t.addData(d,h[y++]+n,h[y++]+r,h[y++]+n,h[y++]+r,h[y++]+n,h[y++]+r),n+=h[y-2],r+=h[y-1];break;case"S":_=n,b=r,R=t.len(),O=t.data,a===s.C&&(_+=n-O[R-4],b+=r-O[R-3]),d=s.C,P=h[y++],I=h[y++],n=h[y++],r=h[y++],t.addData(d,_,b,P,I,n,r);break;case"s":_=n,b=r,R=t.len(),O=t.data,a===s.C&&(_+=n-O[R-4],b+=r-O[R-3]),d=s.C,P=n+h[y++],I=r+h[y++],n+=h[y++],r+=h[y++],t.addData(d,_,b,P,I,n,r);break;case"Q":P=h[y++],I=h[y++],n=h[y++],r=h[y++],d=s.Q,t.addData(d,P,I,n,r);break;case"q":P=h[y++]+n,I=h[y++]+r,n+=h[y++],r+=h[y++],d=s.Q,t.addData(d,P,I,n,r);break;case"T":_=n,b=r,R=t.len(),O=t.data,a===s.Q&&(_+=n-O[R-4],b+=r-O[R-3]),n=h[y++],r=h[y++],d=s.Q,t.addData(d,_,b,n,r);break;case"t":_=n,b=r,R=t.len(),O=t.data,a===s.Q&&(_+=n-O[R-4],b+=r-O[R-3]),n+=h[y++],r+=h[y++],d=s.Q,t.addData(d,_,b,n,r);break;case"A":w=h[y++],S=h[y++],C=h[y++],T=h[y++],A=h[y++],P=n,I=r,n=h[y++],r=h[y++],d=s.A,nk(P,I,n,r,T,A,w,S,C,d,t);break;case"a":w=h[y++],S=h[y++],C=h[y++],T=h[y++],A=h[y++],P=n,I=r,n+=h[y++],r+=h[y++],d=s.A,nk(P,I,n,r,T,A,w,S,C,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),n=i,r=o),a=d}return t.toStatic(),t}var UU=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t}(Ln);function HU(e){return e.setData!=null}function GU(e,t){var n=Lfe(e),r=Ze({},t);return r.buildPath=function(i){if(HU(i)){i.setData(n.data);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=i;n.rebuildPath(o,1)}},r.applyTransform=function(i){Ofe(n,i),this.dirtyShape()},r}function Nfe(e,t){return new UU(GU(e,t))}function kfe(e,t){var n=GU(e,t),r=function(i){ot(o,i);function o(a){var s=i.call(this,a)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return o}(UU);return r}function Ffe(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new Ln(t);return a.createPathProxy(),a.buildPath=function(s){if(HU(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var vi=function(e){ot(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,i=0;i<r.length;i++)if(r[i].name===n)return r[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var i=this._children,o=i.indexOf(r);o>=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;i<n.length;i++){var o=n[i];r&&o.removeSelfFromZr(r),o.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,r){for(var i=this._children,o=0;o<i.length;o++){var a=i[o];n.call(r,a,o)}return this},t.prototype.traverse=function(n,r){for(var i=0;i<this._children.length;i++){var o=this._children[i],a=n.call(r,o);o.isGroup&&!a&&o.traverse(n,r)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var r=new bn(0,0,0,0),i=n||this._children,o=[],a=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(o);c?(bn.applyTransform(r,u,c),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}}return a||r},t}(oS);vi.prototype.type="group";var $fe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),cS=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new $fe},t.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t}(Ln);cS.prototype.type="circle";var Bfe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),TR=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Bfe},t.prototype.buildPath=function(n,r){var i=.5522848,o=r.cx,a=r.cy,s=r.rx,l=r.ry,u=s*i,c=l*i;n.moveTo(o-s,a),n.bezierCurveTo(o-s,a-c,o-u,a-l,o,a-l),n.bezierCurveTo(o+u,a-l,o+s,a-c,o+s,a),n.bezierCurveTo(o+s,a+c,o+u,a+l,o,a+l),n.bezierCurveTo(o-u,a+l,o-s,a+c,o-s,a),n.closePath()},t}(Ln);TR.prototype.type="ellipse";var zU=Math.PI,_T=zU*2,gc=Math.sin,nd=Math.cos,Vfe=Math.acos,qr=Math.atan2,rk=Math.abs,Mv=Math.sqrt,Zp=Math.max,Za=Math.min,ba=1e-4;function Ufe(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,d=f*l-c*u;if(!(d*d<ba))return d=(c*(t-o)-f*(e-i))/d,[e+d*l,t+d*u]}function t0(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/Mv(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=n+c,m=r+f,y=(d+v)/2,_=(h+m)/2,b=v-d,w=m-h,S=b*b+w*w,C=i-o,T=d*m-v*h,A=(w<0?-1:1)*Mv(Zp(0,C*C*S-T*T)),P=(T*w-b*A)/S,I=(-T*b-w*A)/S,R=(T*w+b*A)/S,O=(-T*b+w*A)/S,D=P-y,$=I-_,F=R-y,z=O-_;return D*D+$*$>F*F+z*z&&(P=R,I=O),{cx:P,cy:I,x0:-c,y0:-f,x1:P*(i/C-1),y1:I*(i/C-1)}}function Hfe(e){var t;if(ut(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 Gfe(e,t){var n,r=Zp(t.r,0),i=Zp(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=rk(u-l),v=h>_T&&h%_T;if(v>ba&&(h=v),!(r>ba))e.moveTo(c,f);else if(h>_T-ba)e.moveTo(c+r*nd(l),f+r*gc(l)),e.arc(c,f,r,l,u,!d),i>ba&&(e.moveTo(c+i*nd(u),f+i*gc(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,C=void 0,T=void 0,A=void 0,P=void 0,I=void 0,R=void 0,O=void 0,D=void 0,$=void 0,F=void 0,z=r*nd(l),B=r*gc(l),Y=i*nd(u),j=i*gc(u),se=h>ba;if(se){var ge=t.cornerRadius;ge&&(n=Hfe(ge),m=n[0],y=n[1],_=n[2],b=n[3]);var ve=rk(r-i)/2;if(w=Za(ve,_),S=Za(ve,b),C=Za(ve,m),T=Za(ve,y),I=A=Zp(w,S),R=P=Zp(C,T),(A>ba||P>ba)&&(O=r*nd(u),D=r*gc(u),$=i*nd(l),F=i*gc(l),h<zU)){var Me=Ufe(z,B,$,F,O,D,Y,j);if(Me){var Ne=z-Me[0],ze=B-Me[1],De=O-Me[0],je=D-Me[1],ce=1/gc(Vfe((Ne*De+ze*je)/(Mv(Ne*Ne+ze*ze)*Mv(De*De+je*je)))/2),Ee=Mv(Me[0]*Me[0]+Me[1]*Me[1]);I=Za(A,(r-Ee)/(ce+1)),R=Za(P,(i-Ee)/(ce-1))}}}if(!se)e.moveTo(c+z,f+B);else if(I>ba){var Se=Za(_,I),Te=Za(b,I),Oe=t0($,F,z,B,r,Se,d),$e=t0(O,D,Y,j,r,Te,d);e.moveTo(c+Oe.cx+Oe.x0,f+Oe.cy+Oe.y0),I<A&&Se===Te?e.arc(c+Oe.cx,f+Oe.cy,I,qr(Oe.y0,Oe.x0),qr($e.y0,$e.x0),!d):(Se>0&&e.arc(c+Oe.cx,f+Oe.cy,Se,qr(Oe.y0,Oe.x0),qr(Oe.y1,Oe.x1),!d),e.arc(c,f,r,qr(Oe.cy+Oe.y1,Oe.cx+Oe.x1),qr($e.cy+$e.y1,$e.cx+$e.x1),!d),Te>0&&e.arc(c+$e.cx,f+$e.cy,Te,qr($e.y1,$e.x1),qr($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=Za(m,R),Te=Za(y,R),Oe=t0(Y,j,O,D,i,-Te,d),$e=t0(z,B,$,F,i,-Se,d);e.lineTo(c+Oe.cx+Oe.x0,f+Oe.cy+Oe.y0),R<P&&Se===Te?e.arc(c+Oe.cx,f+Oe.cy,R,qr(Oe.y0,Oe.x0),qr($e.y0,$e.x0),!d):(Te>0&&e.arc(c+Oe.cx,f+Oe.cy,Te,qr(Oe.y0,Oe.x0),qr(Oe.y1,Oe.x1),!d),e.arc(c,f,i,qr(Oe.cy+Oe.y1,Oe.cx+Oe.x1),qr($e.cy+$e.y1,$e.cx+$e.x1),d),Se>0&&e.arc(c+$e.cx,f+$e.cy,Se,qr($e.y1,$e.x1),qr($e.y0,$e.x0),!d))}else e.lineTo(c+Y,f+j),e.arc(c,f,i,u,l,d)}e.closePath()}}}var zfe=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}(),fS=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new zfe},t.prototype.buildPath=function(n,r){Gfe(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ln);fS.prototype.type="sector";var Wfe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),CR=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Wfe},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);CR.prototype.type="ring";function jfe(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<h;d++)Ad(c,c,e[d]),Id(f,f,e[d]);Ad(c,c,r[0]),Id(f,f,r[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(n)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){i.push(Due(e[d]));continue}else l=e[d-1],u=e[d+1];Lue(o,u,l),Zx(o,o,t);var m=BE(v,l),y=BE(v,u),_=m+y;_!==0&&(m/=_,y/=_),Zx(a,o,-m),Zx(s,o,y);var b=lN([],v,a),w=lN([],v,s);r&&(Id(b,b,c),Ad(b,b,f),Id(w,w,c),Ad(w,w,f)),i.push(b),i.push(w)}return n&&i.push(i.shift()),i}function WU(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=jfe(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;s<f;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var Yfe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),ER=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Yfe},t.prototype.buildPath=function(n,r){WU(n,r,!0)},t}(Ln);ER.prototype.type="polygon";var Xfe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),AR=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Xfe},t.prototype.buildPath=function(n,r){WU(n,r,!1)},t}(Ln);AR.prototype.type="polyline";var Kfe={},Zfe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Ru=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Zfe},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=SU(Kfe,r,this.style);i=l.x1,o=l.y1,a=l.x2,s=l.y2}else i=r.x1,o=r.y1,a=r.x2,s=r.y2;var u=r.percent;u!==0&&(n.moveTo(i,o),u<1&&(a=i*(1-u)+a*u,s=o*(1-u)+s*u),n.lineTo(a,s))},t.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},t}(Ln);Ru.prototype.type="line";var $i=[],qfe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function ik(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?dN:Hr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?dN:Hr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?hN:Yi)(e.x1,e.cpx1,e.x2,t),(n?hN:Yi)(e.y1,e.cpy1,e.y2,t)]}var IR=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new qfe},t.prototype.buildPath=function(n,r){var i=r.x1,o=r.y1,a=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,f=r.cpy2,d=r.percent;d!==0&&(n.moveTo(i,o),c==null||f==null?(d<1&&(C1(i,l,a,d,$i),l=$i[1],a=$i[2],C1(o,u,s,d,$i),u=$i[1],s=$i[2]),n.quadraticCurveTo(l,u,a,s)):(d<1&&(T1(i,l,c,a,d,$i),l=$i[1],c=$i[2],a=$i[3],T1(o,u,f,s,d,$i),u=$i[1],f=$i[2],s=$i[3]),n.bezierCurveTo(l,u,c,f,a,s)))},t.prototype.pointAt=function(n){return ik(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=ik(this.shape,n,!0);return Fue(r,r)},t}(Ln);IR.prototype.type="bezier-curve";var Jfe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),dS=function(e){ot(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Jfe},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),f=Math.sin(s);n.moveTo(c*a+i,f*a+o),n.arc(i,o,a,s,l,!u)},t}(Ln);dS.prototype.type="arc";var Qfe=function(e){ot(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),i=0;i<n.length;i++)r=r||n[i].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),i=0;i<n.length;i++)n[i].path||n[i].createPathProxy(),n[i].path.setScale(r[0],r[1],n[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,r){for(var i=r.paths||[],o=0;o<i.length;o++)i[o].buildPath(n,i[o].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ln.prototype.getBoundingRect.call(this)},t}(Ln),jU=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e}(),RR=function(e){ot(t,e);function t(n,r,i,o,a,s){var l=e.call(this,a)||this;return l.x=n??0,l.y=r??0,l.x2=i??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t}(jU),ede=function(e){ot(t,e);function t(n,r,i,o,a){var s=e.call(this,o)||this;return s.x=n??.5,s.y=r??.5,s.r=i??.5,s.type="radial",s.global=a||!1,s}return t}(jU),mc=[0,0],yc=[0,0],n0=new Mn,r0=new Mn,D1=function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Mn;for(var r=0;r<2;r++)this._axes[r]=new Mn;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var r=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(r[0].set(o,a),r[1].set(s,a),r[2].set(s,l),r[3].set(o,l),n)for(var u=0;u<4;u++)r[u].transform(n);Mn.sub(i[0],r[1],r[0]),Mn.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(r[0])},e.prototype.intersect=function(t,n){var r=!0,i=!n;return n0.set(1/0,1/0),r0.set(0,0),!this._intersectCheckOneSide(this,t,n0,r0,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(t,this,n0,r0,i,-1)&&(r=!1,i)||i||Mn.copy(n,r?n0:r0),r},e.prototype._intersectCheckOneSide=function(t,n,r,i,o,a){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,mc),this._getProjMinMaxOnAxis(l,n._corners,yc),mc[1]<yc[0]||mc[0]>yc[1]){if(s=!1,o)return s;var c=Math.abs(yc[0]-mc[1]),f=Math.abs(mc[0]-yc[1]);Math.min(c,f)>i.len()&&(c<f?Mn.scale(i,u,-c*a):Mn.scale(i,u,f*a))}else if(r){var c=Math.abs(yc[0]-mc[1]),f=Math.abs(mc[0]-yc[1]);Math.min(c,f)<r.len()&&(c<f?Mn.scale(r,u,c*a):Mn.scale(r,u,-f*a))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,n,r){for(var i=this._axes[t],o=this._origin,a=n[0].dot(i)+o[t],s=a,l=a,u=1;u<n.length;u++){var c=n[u].dot(i)+o[t];s=Math.min(c,s),l=Math.max(c,l)}r[0]=s,r[1]=l},e}(),tde=[],nde=function(e){ot(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,r){r=r||!1;for(var i=0;i<n.length;i++)this.addDisplayable(n[i],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new bn(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],o=i.getBoundingRect().clone();i.needLocalTransform()&&o.applyTransform(i.getLocalTransform(tde)),n.union(o)}this._rect=n}return this._rect},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(o.contain(i[0],i[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(n,r))return!0}return!1},t}(lm),rde=Ar();function ide(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=nn(r.duration,200),c=nn(r.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(c=o.easing),o.delay!=null&&(f=o.delay)),Vt(f)&&(f=f(n,i)),Vt(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function PR(e,t,n,r,i,o,a){var s=!1,l;Vt(i)?(a=o,o=i,i=null):Ct(i)&&(o=i.cb,a=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=ide(e,r,i,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){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 Pu(e,t,n,r,i,o){PR("update",e,t,n,r,i,o)}function fm(e,t,n,r,i,o){PR("enter",e,t,n,r,i,o)}function Dv(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if(n.scope==="leave")return!0}return!1}function L1(e,t,n,r,i,o){Dv(e)||PR("leave",e,t,n,r,i,o)}function ok(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),L1(e,{style:{opacity:0}},t,n,r)}function ode(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||ok(i,t,n,r)}):ok(e,t,n,r)}function ade(e){rde(e).oldStyle=e.style}var N1=Math.max,k1=Math.min,rA={};function sde(e){return Ln.extend(e)}var lde=kfe;function ude(e,t){return lde(e,t)}function Va(e,t){rA[e]=t}function cde(e){if(rA.hasOwnProperty(e))return rA[e]}function OR(e,t,n,r){var i=Nfe(e,t);return n&&(r==="center"&&(n=XU(n,i.getBoundingRect())),KU(i,n)),i}function YU(e,t,n){var r=new Hu({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(n==="center"){var o={width:i.width,height:i.height};r.setStyle(XU(t,o))}}});return r}function XU(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-r/2,y:a-i/2,width:r,height:i}}var fde=Ffe;function KU(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function Cg(e,t){return SU(e,e,{lineWidth:t}),e}function dde(e){return wU(e.shape,e.shape,e.style),e}var hde=Vc;function pde(e,t){for(var n=cR([]);e&&e!==t;)Ud(n,e.getLocalTransform(),n),e=e.parent;return n}function MR(e,t,n){return t&&!io(t)&&(t=vR.getLocalTransform(t)),n&&(t=dR([],t)),ta([],e,t)}function vde(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),o=[e==="left"?-r:e==="right"?r:0,e==="top"?-i:e==="bottom"?i:0];return o=MR(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function ak(e){return!e.isGroup}function gde(e){return e.shape!=null}function ZU(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){ak(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return gde(a)&&(s.shape=Ze({},a.shape)),s}var o=r(e);t.traverse(function(a){if(ak(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Pu(a,l,n,Dn(a).dataIndex)}}})}function mde(e,t){return Pt(e,function(n){var r=n[0];r=N1(r,t.x),r=k1(r,t.x+t.width);var i=n[1];return i=N1(i,t.y),i=k1(i,t.y+t.height),[r,i]})}function yde(e,t){var n=N1(e.x,t.x),r=k1(e.x+e.width,t.x+t.width),i=N1(e.y,t.y),o=k1(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 DR(e,t,n){var r=Ze({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),En(i,n),new Hu(r)):OR(e.replace("path://",""),r,n,"center")}function _de(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(qU(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function qU(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,d=bT(c,f,l,u);if(bde(d))return!1;var h=e-i,v=t-o,m=bT(h,v,l,u)/d;if(m<0||m>1)return!1;var y=bT(h,v,c,f)/d;return!(y<0||y>1)}function bT(e,t,n,r){return e*r-n*t}function bde(e){return e<=1e-6&&e>=-1e-6}function hS(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=ht(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){gf(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Dn(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:En({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function sk(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function LR(e,t){if(e)if(ut(e))for(var n=0;n<e.length;n++)sk(e[n],t);else sk(e,t)}Va("circle",cS);Va("ellipse",TR);Va("sector",fS);Va("ring",CR);Va("polygon",ER);Va("polyline",AR);Va("rect",jr);Va("line",Ru);Va("bezierCurve",IR);Va("arc",dS);const Sde=Object.freeze(Object.defineProperty({__proto__:null,Arc:dS,BezierCurve:IR,BoundingRect:bn,Circle:cS,CompoundPath:Qfe,Ellipse:TR,Group:vi,Image:Hu,IncrementalDisplayable:nde,Line:Ru,LinearGradient:RR,OrientedBoundingRect:D1,Path:Ln,Point:Mn,Polygon:ER,Polyline:AR,RadialGradient:ede,Rect:jr,Ring:CR,Sector:fS,Text:ao,applyTransform:MR,clipPointsByRect:mde,clipRectByRect:yde,createIcon:DR,extendPath:ude,extendShape:sde,getShapeClass:cde,getTransform:pde,groupTransition:ZU,initProps:fm,isElementRemoved:Dv,lineLineIntersect:qU,linePolygonIntersect:_de,makeImage:YU,makePath:OR,mergePath:fde,registerShape:Va,removeElement:L1,removeElementWithFadeOut:ode,resizePath:KU,setTooltipConfig:hS,subPixelOptimize:hde,subPixelOptimizeLine:Cg,subPixelOptimizeRect:dde,transformDirection:vde,traverseElements:LR,updateProps:Pu},Symbol.toStringTag,{value:"Module"}));var pS={};function wde(e,t){for(var n=0;n<hs.length;n++){var r=hs[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function lk(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,o=e.labelDimIndex,a=t.normal,s;r&&(s=r.getFormattedLabel(i,"normal",null,o,a&&a.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=Vt(e.defaultText)?e.defaultText(i,e,n):e.defaultText);for(var l={normal:s},u=0;u<hs.length;u++){var c=hs[u],f=t[c];l[c]=nn(r?r.getFormattedLabel(i,c,null,o,f&&f.get("formatter")):null,s)}return l}function NR(e,t,n,r){n=n||pS;for(var i=e instanceof ao,o=!1,a=0;a<zN.length;a++){var s=t[zN[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?e:e.getTextContent();if(o){i||(l||(l=new ao,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=lk(n,t),c=t.normal,f=!!c.getShallow("show"),d=oh(c,r&&r.normal,n,!1,!i);d.text=u.normal,i||e.setTextConfig(uk(c,n,!1));for(var a=0;a<hs.length;a++){var h=hs[a],s=t[h];if(s){var v=l.ensureState(h),m=!!nn(s.getShallow("show"),f);if(m!==f&&(v.ignore=!m),v.style=oh(s,r&&r[h],n,!0,!i),v.style.text=u[h],!i){var y=e.ensureState(h);y.textConfig=uk(s,n,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),n.enableTextSetter&&(JU(l).setLabelText=function(_){var b=lk(n,t,_);wde(l,b)})}else l&&(l.ignore=!0);e.dirty()}function kR(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<hs.length;r++){var i=hs[r];n[i]=e.getModel([i,t])}return n}function oh(e,t,n,r,i){var o={};return xde(o,e,n,r,i),t&&Ze(o,t),o}function uk(e,t,n){t=t||{};var r={},i,o=e.getShallow("rotate"),a=nn(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(n?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),a!=null&&(r.distance=a),r.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",r}function xde(e,t,n,r,i){n=n||pS;var o=t.ecModel,a=o&&o.option.textStyle,s=Tde(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);hk(l[u]={},c,a,n,r,i,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),hk(e,t,a,n,r,i,!0,!1)}function Tde(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||pS).rich;if(n){t=t||{};for(var r=Kn(n),i=0;i<r.length;i++){var o=r[i];t[o]=1}}e=e.parentModel}return t}var ck=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],fk=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],dk=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function hk(e,t,n,r,i,o,a,s){n=!i&&n||pS;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=nn(t.getShallow("opacity"),n.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),o||(u=u||n.color,c=c||n.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=nn(t.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(e.lineWidth=d);var h=nn(t.getShallow("textBorderType"),n.textBorderType);h!=null&&(e.lineDash=h);var v=nn(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&f==null&&!s&&(f=r&&r.defaultOpacity),f!=null&&(e.opacity=f),!i&&!o&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var m=0;m<ck.length;m++){var y=ck[m],_=nn(t.getShallow(y),n[y]);_!=null&&(e[y]=_)}for(var m=0;m<fk.length;m++){var y=fk[m],_=t.getShallow(y);_!=null&&(e[y]=_)}if(e.verticalAlign==null){var b=t.getShallow("baseline");b!=null&&(e.verticalAlign=b)}if(!a||!r.disableBox){for(var m=0;m<dk.length;m++){var y=dk[m],_=t.getShallow(y);_!=null&&(e[y]=_)}var w=t.getShallow("borderType");w!=null&&(e.borderDash=w),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function Cde(e,t){var n=t&&t.getModel("textStyle");return is([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var JU=Ar(),Ede=["textStyle","color"],ST=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],wT=new ao,Ade=function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(Ede):null)},e.prototype.getFont=function(){return Cde({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var n={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<ST.length;r++)n[ST[r]]=this.getShallow(ST[r]);return wT.useStyle(n),wT.update(),wT.getBoundingRect()},e}(),QU=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Ide=wg(QU),Rde=function(){function e(){}return e.prototype.getLineStyle=function(t){return Ide(this,t)},e}(),eH=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Pde=wg(eH),Ode=function(){function e(){}return e.prototype.getItemStyle=function(t,n){return Pde(this,t,n)},e}(),sr=function(){function e(t,n,r){this.parentModel=n,this.ecModel=r,this.option=t}return e.prototype.init=function(t,n,r){},e.prototype.mergeOption=function(t,n){_n(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var r=this.option,i=r==null?r:r[t];if(i==null&&!n){var o=this.parentModel;o&&(i=o.getShallow(t))}return i},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(ln(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Mt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var r=this.option;if(!t)return r;for(var i=0;i<t.length&&!(t[i]&&(r=r&&typeof r=="object"?r[t[i]]:null,r==null));i++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(t),n.parentModel)),r},e}();uR(sr);pue(sr);ys(sr,Rde);ys(sr,Ode);ys(sr,_ue);ys(sr,Ade);function vp(e){return e==null?0:e.length||1}function pk(e){return e}var Mde=function(){function e(t,n,r,i,o,a){this._old=t,this._new=n,this._oldKeyGetter=r||pk,this._newKeyGetter=i||pk,this.context=o,this._diffModeMultiple=a==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},i=new Array(t.length),o=new Array(n.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],l=r[s],u=vp(l);if(u>1){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;s<o.length;s++){var l=o[s],u=r[l],c=i[l],f=vp(u),d=vp(c);if(f>1&&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;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(a,i)},e.prototype._performRestAdd=function(t,n){for(var r=0;r<t.length;r++){var i=t[r],o=n[i],a=vp(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);n[i]=null}},e.prototype._initIndexMap=function(t,n,r,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(r[a]=s),!!n){var l=n[s],u=vp(l);u===0?(n[s]=a,o&&r.push(s)):u===1?n[s]=[l,a]:l.push(a)}}},e}(),tH=Kt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ua="original",so="arrayRows",bs="objectRows",_l="keyedColumns",Su="typedArray",nH="unknown",rl="column",Ih="row",yo={Must:1,Might:2,Not:3},rH=Ar();function Dde(e){rH(e).datasetMap=Kt()}function Lde(e,t,n){var r={},i=iH(t);if(!i||!e)return r;var o=[],a=[],s=t.ecModel,l=rH(s).datasetMap,u=i.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),Q(e,function(m,y){var _=Ct(m)?m:e[y]={name:m};_.type==="ordinal"&&c==null&&(c=y,f=v(_)),r[_.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});Q(e,function(m,y){var _=m.name,b=v(m);if(c==null){var w=d.valueWayDim;h(r[_],w,b),h(a,w,b),d.valueWayDim+=b}else if(c===y)h(r[_],0,b),h(o,0,b);else{var w=d.categoryWayDim;h(r[_],w,b),h(a,w,b),d.categoryWayDim+=b}});function h(m,y,_){for(var b=0;b<_;b++)m.push(y+b)}function v(m){var y=m.dimsDef;return y?y.length:1}return o.length&&(r.itemName=o),a.length&&(r.seriesName=a),r}function iH(e){var t=e.get("data",!0);if(!t)return cm(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Pa).models[0]}function Nde(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:cm(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Pa).models}function oH(e,t){return kde(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function kde(e,t,n,r,i,o){var a,s=5;if(oo(e))return yo.Not;var l,u;if(r){var c=r[o];Ct(c)?(l=c.name,u=c.type):ht(c)&&(l=c)}if(u!=null)return u==="ordinal"?yo.Must:yo.Not;if(t===so){var f=e;if(n===Ih){for(var d=f[o],h=0;h<(d||[]).length&&h<s;h++)if((a=S(d[i+h]))!=null)return a}else for(var h=0;h<f.length&&h<s;h++){var v=f[i+h];if(v&&(a=S(v[o]))!=null)return a}}else if(t===bs){var m=e;if(!l)return yo.Not;for(var h=0;h<m.length&&h<s;h++){var y=m[h];if(y&&(a=S(y[l]))!=null)return a}}else if(t===_l){var _=e;if(!l)return yo.Not;var d=_[l];if(!d||oo(d))return yo.Not;for(var h=0;h<d.length&&h<s;h++)if((a=S(d[h]))!=null)return a}else if(t===ua)for(var b=e,h=0;h<b.length&&h<s;h++){var y=b[h],w=um(y);if(!ut(w))return yo.Not;if((a=S(w[o]))!=null)return a}function S(C){var T=ht(C);if(C!=null&&Number.isFinite(Number(C))&&C!=="")return T?yo.Might:yo.Not;if(T&&C!=="-")return yo.Must}return yo.Not}var vS=function(){function e(t){this.data=t.data||(t.sourceFormat===_l?{}:[]),this.sourceFormat=t.sourceFormat||nH,this.seriesLayoutBy=t.seriesLayoutBy||rl,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var i=n[r];i.type==null&&oH(this,r)===yo.Must&&(i.type="ordinal")}}return e}();function FR(e){return e instanceof vS}function iA(e,t,n){n=n||sH(e);var r=t.seriesLayoutBy,i=$de(e,n,r,t.sourceHeader,t.dimensions),o=new vS({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:ln(t)});return o}function aH(e){return new vS({data:e,sourceFormat:oo(e)?Su:ua})}function Fde(e){return new vS({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ln(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function sH(e){var t=nH;if(oo(e))t=Su;else if(ut(e)){e.length===0&&(t=so);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(ut(i)||oo(i)){t=so;break}else if(Ct(i)){t=bs;break}}}}else if(Ct(e)){for(var o in e)if(gf(e,o)&&io(e[o])){t=_l;break}}return t}function $de(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:vk(i),startIndex:a,dimensionsDetectedCount:o};if(t===so){var s=e;r==="auto"||r==null?gk(function(u){u!=null&&u!=="-"&&(ht(u)?a==null&&(a=1):a=0)},n,s,10):a=Zn(r)?r:r?1:0,!i&&a===1&&(i=[],gk(function(u,c){i[c]=u!=null?u+"":""},n,s,1/0)),o=i?i.length:n===Ih?s.length:s[0]?s[0].length:null}else if(t===bs)i||(i=Bde(e));else if(t===_l)i||(i=[],Q(e,function(u,c){i.push(c)}));else if(t===ua){var l=um(e[0]);o=ut(l)&&l.length||1}return{startIndex:a,dimensionsDefine:vk(i),dimensionsDetectedCount:o}}function Bde(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Kn(n)}function vk(e){if(e){var t=Kt();return Pt(e,function(n,r){n=Ct(n)?n:{name:n};var i={name:n.name,displayName:n.displayName,type:n.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var o=t.get(i.name);return o?i.name+="-"+o.count++:t.set(i.name,{count:1}),i})}}function gk(e,t,n,r){if(t===Ih)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;i<o.length&&i<r;i++)e(o[i],i)}function lH(e){var t=e.sourceFormat;return t===bs||t===_l}var _c,bc,Sc,mk,yk,uH=function(){function e(t,n){var r=FR(t)?t:aH(t);this._source=r;var i=this._data=r.data;r.sourceFormat===Su&&(this._offset=0,this._dimSize=n,this._data=i),yk(this,i,r)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,n){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;yk=function(a,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=mk[$R(u,c)];if(Ze(a,h),u===Su)a.getItem=n,a.count=i,a.fillStorage=r;else{var v=cH(u,c);a.getItem=Xn(v,null,s,f,d);var m=fH(u,c);a.count=Xn(m,null,s,f,d)}};var n=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*a,f=0;f<u;f++)s[f]=l[c+f];return s},r=function(a,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],m=h[1]==null?-1/0:h[1],y=s-a,_=l[d],b=0;b<y;b++){var w=c[b*f+d];_[a+b]=w,w<v&&(v=w),w>m&&(m=w)}h[0]=v,h[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};mk=(t={},t[so+"_"+rl]={pure:!0,appendData:o},t[so+"_"+Ih]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[bs]={pure:!0,appendData:o},t[_l]={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[Su]={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;s<a.length;s++)this._data.push(a[s])}}(),e}(),_k=function(e,t,n,r){return e[r]},Vde=(_c={},_c[so+"_"+rl]=function(e,t,n,r){return e[r+t]},_c[so+"_"+Ih]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},_c[bs]=_k,_c[_l]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name,l=e[s];o[a]=l?l[r]:null}return o},_c[ua]=_k,_c);function cH(e,t){var n=Vde[$R(e,t)];return n}var bk=function(e,t,n){return e.length},Ude=(bc={},bc[so+"_"+rl]=function(e,t,n){return Math.max(0,e.length-t)},bc[so+"_"+Ih]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},bc[bs]=bk,bc[_l]=function(e,t,n){var r=n[0].name,i=e[r];return i?i.length:0},bc[ua]=bk,bc);function fH(e,t){var n=Ude[$R(e,t)];return n}var xT=function(e,t,n){return e[t]},Hde=(Sc={},Sc[so]=xT,Sc[bs]=function(e,t,n){return e[n]},Sc[_l]=xT,Sc[ua]=function(e,t,n){var r=um(e);return r instanceof Array?r[t]:r},Sc[Su]=xT,Sc);function dH(e){var t=Hde[e];return t}function $R(e,t){return e===so?e+"_"+t:e}function ah(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),o=i.getSource().sourceFormat;if(n!=null){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return dH(o)(r,a,s)}else{var l=r;return o===ua&&(l=um(r)),l}}}}var Gde=function(){function e(t,n){this._encode=t,this._schema=n}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function zde(e,t){var n={},r=n.encode={},i=Kt(),o=[],a=[],s={};Q(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var m=h.coordDimIndex;TT(r,v)[m]=d,h.isExtraCoord||(i.set(v,1),jde(h.type)&&(o[0]=d),TT(s,v)[m]=e.getDimensionIndex(h.name)),h.defaultTooltip&&a.push(d)}tH.each(function(y,_){var b=TT(r,_),w=h.otherDims[_];w!=null&&w!==!1&&(b[w]=h.name)})});var l=[],u={};i.each(function(d,h){var v=r[h];u[h]=v[0],l=l.concat(v)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Pt(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var f=r.tooltip;return f&&f.length?a=f.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new Gde(s,t),n}function TT(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Wde(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function jde(e){return!(e==="ordinal"||e==="time")}var A_=function(){function e(t){this.otherDims={},t!=null&&Ze(this,t)}return e}();function I_(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!Zn(e)&&e!=null&&e!=="-"&&(e=+vl(e)),e==null||e===""?NaN:Number(e))}Kt({number:function(e){return parseFloat(e)},time:function(e){return+vl(e)},trim:function(e){return ht(e)?is(e):e}});var Yde=function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=Zn(t)?t:P1(t),i=Zn(n)?n:P1(n),o=isNaN(r),a=isNaN(i);if(o&&(r=this._incomparable),a&&(i=this._incomparable),o&&a){var s=ht(t),l=ht(n);s&&(r=l?t:0),l&&(i=s?n:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},e}(),gS="undefined",Xde=typeof Uint32Array===gS?Array:Uint32Array,Kde=typeof Uint16Array===gS?Array:Uint16Array,hH=typeof Int32Array===gS?Array:Int32Array,Sk=typeof Float64Array===gS?Array:Float64Array,pH={float:Sk,int:hH,ordinal:Array,number:Array,time:Sk},CT;function rd(e){return e>65535?Xde:Kde}function id(){return[1/0,-1/0]}function Zde(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function wk(e,t,n,r,i){var o=pH[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var oA=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Kt()}return e.prototype.initData=function(t,n,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=CT[i.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[],lH(i),this._dimensions=Pt(n,function(a){return{type:a.type,property:a.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,n){var r=this._calcDimNameToIdx,i=this._dimensions,o=r.get(t);if(o!=null){if(i[o].type===n)return o}else o=i.length;return i[o]={type:n},r.set(t,o),this._chunks[o]=new pH[n||"float"](this._rawCount),this._rawExtent[o]=id(),o},e.prototype.collectOrdinalMeta=function(t,n){var r=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,a=i.ordinalOffset||0,s=r.length;a===0&&(o[t]=id());for(var l=o[t],u=a;u<s;u++){var c=r[u]=n.parseAndCollect(r[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=n,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var n=this._dimensions[t],r=n.ordinalMeta;return r},e.prototype.getDimensionProperty=function(t){var n=this._dimensions[t];return n&&n.property},e.prototype.appendData=function(t){var n=this._provider,r=this.count();n.appendData(t);var i=n.count();return n.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},e.prototype.appendValues=function(t,n){for(var r=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,n||0),u=0;u<o;u++){var c=i[u];wk(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<o;v++){var c=i[v],m=CT.arrayRows.call(this,t[h]||f,c.property,h,v);r[v][d]=m;var y=a[v];m<y[0]&&(y[0]=m),m>y[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=Pt(a,function(b){return b.property}),c=0;c<s;c++){var f=a[c];l[c]||(l[c]=id()),wk(o,c,f.type,n,r)}if(i.fillStorage)i.fillStorage(t,n,o,l);else for(var d=[],h=t;h<n;h++){d=i.getItem(h,d);for(var v=0;v<s;v++){var m=o[v],y=this._dimValueGetter(d,u[v],h,v);m[h]=y;var _=l[v];y<_[0]&&(_[0]=y),y>_[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<this._count))return NaN;var r=this._chunks[t];return r?r[this.getRawIndex(n)]:NaN},e.prototype.getValues=function(t,n){var r=[],i=[];if(n==null){n=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,a=i.length;o<a;o++)r.push(this.get(i[o],n));return r},e.prototype.getByRawIndex=function(t,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[t];return r?r[n]:NaN},e.prototype.getSum=function(t){var n=this._chunks[t],r=0;if(n)for(var i=0,o=this.count();i<o;i++){var a=this.get(t,i);isNaN(a)||(r+=a)}return r},e.prototype.getMedian=function(t){var n=[];this.each([t],function(o){isNaN(o)||n.push(o)});var r=n.sort(function(o,a){return o-a}),i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&r<this._count&&r===t)return t;for(var i=0,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(n[a]<t)i=a+1;else if(n[a]>t)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<f;c++){var d=this.getRawIndex(c),h=n-o[d],v=Math.abs(h);v<=r&&((v<s||v===s&&h>=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<i;o++)t[o]=n[o]}else t=new r(n.buffer,0,i)}else{var r=rd(this._rawCount);t=new r(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,n){if(!this._count)return this;for(var r=this.clone(),i=r.count(),o=rd(r._rawCount),a=new o(i),s=[],l=t.length,u=0,c=t[0],f=r._chunks,d=0;d<i;d++){var h=void 0,v=r.getRawIndex(d);if(l===0)h=n(d);else if(l===1){var m=f[c][v];h=n(m,d)}else{for(var y=0;y<l;y++)s[y]=f[t[y]][v];s[y]=d,h=n.apply(null,s)}h&&(a[u++]=v)}return u<i&&(r._indices=a),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.selectRange=function(t){var n=this.clone(),r=n._count;if(!r)return this;var i=Kn(t),o=i.length;if(!o)return this;var a=n.count(),s=rd(n._rawCount),l=new s(a),u=0,c=i[0],f=t[c][0],d=t[c][1],h=n._chunks,v=!1;if(!n._indices){var m=0;if(o===1){for(var y=h[i[0]],_=0;_<r;_++){var b=y[_];(b>=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],C=t[i[1]][1],_=0;_<r;_++){var b=y[_],T=w[_];(b>=f&&b<=d||isNaN(b))&&(T>=S&&T<=C||isNaN(T))&&(l[u++]=m),m++}v=!0}}if(!v)if(o===1)for(var _=0;_<a;_++){var A=n.getRawIndex(_),b=h[i[0]][A];(b>=f&&b<=d||isNaN(b))&&(l[u++]=A)}else for(var _=0;_<a;_++){for(var P=!0,A=n.getRawIndex(_),I=0;I<o;I++){var R=i[I],b=h[R][A];(b<t[R][0]||b>t[R][1])&&(P=!1)}P&&(l[u++]=n.getRawIndex(_))}return u<a&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var r=this.clone(t);return this._updateDims(r,t,n),r},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,r){for(var i=t._chunks,o=[],a=n.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<n.length;c++)u[n[c]]=id();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<a;h++)l[h]=i[n[h]][d];l[a]=f;var v=r&&r.apply(null,l);if(v!=null){typeof v!="object"&&(o[0]=v,v=o);for(var c=0;c<v.length;c++){var m=n[c],y=v[c],_=u[m],b=i[m];b&&(b[d]=y),y<_[0]&&(_[0]=y),y>_[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(rd(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));h[s++]=u;for(var v=1;v<a-1;v+=l){for(var m=Math.min(v+l,a-1),y=Math.min(v+l*2,a),_=(y+m)/2,b=0,w=m;w<y;w++){var S=this.getRawIndex(w),C=o[S];isNaN(C)||(b+=C)}b/=y-m;var T=v,A=Math.min(v+l,a),P=v-1,I=o[u];c=-1,d=T;for(var R=-1,O=0,w=T;w<A;w++){var S=this.getRawIndex(w),C=o[S];if(isNaN(C)){O++,R<0&&(R=S);continue}f=Math.abs((P-_)*(C-I)-(P-w)*(b-I)),f>c&&(c=f,d=S)}O>0&&O<A-T&&(h[s++]=Math.min(R,d),d=Math.max(R,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(a-1),r._count=s,r._indices=h,r.getRawIndex=this._getRawIdx,r},e.prototype.minmaxDownSample=function(t,n){for(var r=this.clone([t],!0),i=r._chunks,o=Math.floor(1/n),a=i[t],s=this.count(),l=new(rd(this._rawCount))(Math.ceil(s/o)*2),u=0,c=0;c<s;c+=o){var f=c,d=a[this.getRawIndex(f)],h=c,v=a[this.getRawIndex(h)],m=o;c+o>s&&(m=s-c);for(var y=0;y<m;y++){var _=this.getRawIndex(c+y),b=a[_];b<d&&(d=b,f=c+y),b>v&&(v=b,h=c+y)}var w=this.getRawIndex(f),S=this.getRawIndex(h);f<h?(l[u++]=w,l[u++]=S):(l[u++]=S,l[u++]=w)}return r._count=u,r._indices=l,r._updateGetRawIdx(),r},e.prototype.downSample=function(t,n,r,i){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/n),u=a[t],c=this.count(),f=o._rawExtent[t]=id(),d=new(rd(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var m=0;m<l;m++){var y=this.getRawIndex(v+m);s[m]=u[y]}var _=r(s),b=this.getRawIndex(Math.min(v+i(s,_)||0,c-1));u[b]=_,_<f[0]&&(f[0]=_),_>f[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();o<a;o++){var s=this.getRawIndex(o);switch(r){case 0:n(o);break;case 1:n(i[t[0]][s],o);break;case 2:n(i[t[0]][s],i[t[1]][s],o);break;default:for(var l=0,u=[];l<r;l++)u[l]=i[t[l]][s];u[l]=o,n.apply(null,u)}}},e.prototype.getDataExtent=function(t){var n=this._chunks[t],r=id();if(!n)return r;var i=this.count(),o=!this._indices,a;if(o)return this._rawExtent[t].slice();if(a=this._extent[t],a)return a.slice();a=r;for(var s=a[0],l=a[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=n[c];f<s&&(s=f),f>l&&(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<i.length;o++)r.push(i[o][n]);return r},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,o=t&&Eh(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?Zde(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ln(this._extent),t._rawExtent=ln(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var r=this._indices.length;n=new t(r);for(var i=0;i<r;i++)n[i]=this._indices[i]}else n=new t(this._indices);return n}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=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 I_(n[o],this._dimensions[o])}CT={arrayRows:t,objectRows:function(n,r,i,o){return I_(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return I_(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}}(),e}(),qde=Ar(),Jde={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},vH=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=yH(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=lH(this.source),r=!_H(t),i="",o=[],a=0,s=0;a<t;a++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===a)l=n?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(a);d&&(l=n?d.name:null,u=d.type)}o.push({property:l,type:u,ordinalMeta:c}),n&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=Jde[u]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:o,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],n=0,r=0;n<this._fullDimCount;n++){var i=void 0,o=this.dimensions[r];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(i=o.name),r++;else{var a=this.getSourceDimension(n);a&&(i=a.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function gH(e){return e instanceof vH}function mH(e){for(var t=Kt(),n=0;n<(e||[]).length;n++){var r=e[n],i=Ct(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function yH(e){var t=qde(e);return t.dimNameMap||(t.dimNameMap=mH(e.dimensionsDefine))}function _H(e){return e>30}var gp=Ct,$l=Pt,Qde=typeof Int32Array>"u"?Array:Int32Array,ehe="e\0\0",xk=-1,the=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],nhe=["_approximateExtent"],Tk,i0,mp,yp,ET,_p,AT,rhe=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;gH(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<r.length;c++){var f=r[c],d=ht(f)?new A_({name:f}):f instanceof A_?f:new A_(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};a.push(h),o[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=Kt();Q(a,function(y){m.set(o[y].storeDimIndex,y)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var i=this._schema.getSourceDimension(n);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Zn(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[t];var i=r.encode[t];return i?i[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,r=n.encode[t];return(r||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,r){var i=this,o;if(t instanceof oA&&(o=t),!o){var a=this.dimensions,s=FR(t)||io(t)?new uH(t,a.length):t;o=new oA;var l=$l(a,function(u){return{type:i._dimInfos[u].type,property:u}});o.initData(s,l,r)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=zde(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var n=this._store.appendData(t);this._doInit(n[0],n[1])},e.prototype.appendValues=function(t,n){var r=this._store.appendValues(t,n&&n.length),i=r.start,o=r.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=i;s<o;s++){var l=s-i;this._nameList[s]=n[l],a&&AT(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,n=this.dimensions,r=0;r<n.length;r++){var i=this._dimInfos[n[r]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Su&&!t.fillStorage},e.prototype._doInit=function(t,n){if(!(t>=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;c<n;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&Xce(f)&&(this.hasItemOption=!0),f){var d=f.name;o[c]==null&&d!=null&&(o[c]=as(d,null));var h=f.id;a[c]==null&&h!=null&&(a[c]=as(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)AT(this,c);Tk(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,n){n=this.getDimension(n),this._approximateExtent[n]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,n){gp(t)?Ze(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=mp(this,this._nameDimIdx,n)),r==null&&(r=""),r},e.prototype._getCategory=function(t,n){var r=this._store.get(t,n),i=this._store.getOrdinalMeta(t);return i?i.categories[r]:r},e.prototype.getId=function(t){return i0(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.get(i.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.getByRawIndex(i.storeDimIndex,n)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,n){var r=this,i=this._store;return ut(t)?i.getValues($l(t,function(o){return r._getStoreDimIndex(o)}),n):i.getValues(t)},e.prototype.hasValue=function(t){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,i=n.length;r<i;r++)if(isNaN(this._store.get(n[r],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===t)return n;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,n){var r=t&&this._invertedIndicesMap[t],i=r&&r[n];return i==null||isNaN(i)?xk:i},e.prototype.indicesOfNearest=function(t,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(t),n,r)},e.prototype.each=function(t,n,r){Vt(t)&&(r=n,n=t,t=[]);var i=r||this,o=$l(yp(t),this._getStoreDimIndex,this);this._store.each(o,i?Xn(n,i):n)},e.prototype.filterSelf=function(t,n,r){Vt(t)&&(r=n,n=t,t=[]);var i=r||this,o=$l(yp(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?Xn(n,i):n),this},e.prototype.selectRange=function(t){var n=this,r={},i=Kn(t);return Q(i,function(o){var a=n._getStoreDimIndex(o);r[a]=t[o]}),this._store=this._store.selectRange(r),this},e.prototype.mapArray=function(t,n,r){Vt(t)&&(r=n,n=t,t=[]),r=r||this;var i=[];return this.each(t,function(){i.push(n&&n.apply(this,arguments))},r),i},e.prototype.map=function(t,n,r,i){var o=r||i||this,a=$l(yp(t),this._getStoreDimIndex,this),s=_p(this);return s._store=this._store.map(a,o?Xn(n,o):n),s},e.prototype.modify=function(t,n,r,i){var o=r||i||this,a=$l(yp(t),this._getStoreDimIndex,this);this._store.modify(a,o?Xn(n,o):n)},e.prototype.downSample=function(t,n,r,i){var o=_p(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),n,r,i),o},e.prototype.minmaxDownSample=function(t,n){var r=_p(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),n),r},e.prototype.lttbDownSample=function(t,n){var r=_p(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),r},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,r=this.getRawDataItem(t);return new sr(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new Mde(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return i0(t,r)},function(r){return i0(n,r)})},e.prototype.getVisual=function(t){var n=this._visual;return n&&n[t]},e.prototype.setVisual=function(t,n){this._visual=this._visual||{},gp(t)?Ze(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var r=this._itemVisuals[t],i=r&&r[n];return i??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},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),ut(o)?o=o.slice():gp(o)&&(o=Ze({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,gp(n)?Ze(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){gp(t)?Ze(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?Ze(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;lfe(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:$l(this.dimensions,this._getDimInfo,this),this.hostModel)),ET(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(lR(arguments)))})},e.internalField=function(){Tk=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 Qde(a.categories.length);for(var l=0;l<r.length;l++)r[l]=xk;for(var l=0;l<s.count();l++)r[s.get(o.storeDimIndex,l)]=l}})},mp=function(t,n,r){return as(t._getCategory(n,r),null)},i0=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=mp(t,t._idDimIdx,n)),r==null&&(r=ehe+n),r},yp=function(t){return ut(t)||(t=t!=null?[t]:[]),t},_p=function(t){var n=new e(t._schema?t._schema:$l(t.dimensions,t._getDimInfo,t),t.hostModel);return ET(n,t),n},ET=function(t,n){Q(the.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,Q(nhe,function(r){t[r]=ln(n[r])}),t._calculationInfo=Ze({},n._calculationInfo)},AT=function(t,n){var r=t._nameList,i=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=r[n],l=i[n];if(s==null&&o!=null&&(r[n]=s=mp(t,o,n)),l==null&&a!=null&&(i[n]=l=mp(t,a,n)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[n]=l}}}(),e}();function ihe(e,t){FR(e)||(e=aH(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Kt(),o=[],a=ahe(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&_H(a),l=r===e.dimensionsDefine,u=l?yH(e):mH(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var f=Kt(c),d=new hH(a),h=0;h<d.length;h++)d[h]=-1;function v(I){var R=d[I];if(R<0){var O=r[I],D=Ct(O)?O:{name:O},$=new A_,F=D.name;F!=null&&u.get(F)!=null&&($.name=$.displayName=F),D.type!=null&&($.type=D.type),D.displayName!=null&&($.displayName=D.displayName);var z=o.length;return d[I]=z,$.storeDimIndex=I,o.push($),$}return o[R]}if(!s)for(var h=0;h<a;h++)v(h);f.each(function(I,R){var O=Ri(I).slice();if(O.length===1&&!ht(O[0])&&O[0]<0){f.set(R,!1);return}var D=f.set(R,[]);Q(O,function($,F){var z=ht($)?u.get($):$;z!=null&&z<a&&(D[F]=z,y(v(z),R,F))})});var m=0;Q(n,function(I){var R,O,D,$;if(ht(I))R=I,$={};else{$=I,R=$.name;var F=$.ordinalMeta;$.ordinalMeta=null,$=Ze({},$),$.ordinalMeta=F,O=$.dimsDef,D=$.otherDims,$.name=$.coordDim=$.coordDimIndex=$.dimsDef=$.otherDims=null}var z=f.get(R);if(z!==!1){if(z=Ri(z),!z.length)for(var B=0;B<(O&&O.length||1);B++){for(;m<a&&v(m).coordDim!=null;)m++;m<a&&z.push(m++)}Q(z,function(Y,j){var se=v(Y);if(l&&$.type!=null&&(se.type=$.type),y(En(se,$),R,j),se.name==null&&O){var ge=O[j];!Ct(ge)&&(ge={name:ge}),se.name=se.displayName=ge.name,se.defaultTooltip=ge.defaultTooltip}D&&En(se.otherDims,D)})}});function y(I,R,O){tH.get(R)!=null?I.otherDims[R]=O:(I.coordDim=R,I.coordDimIndex=O,i.set(R,!0))}var _=t.generateCoord,b=t.generateCoordCount,w=b!=null;b=_?b||1:0;var S=_||"value";function C(I){I.name==null&&(I.name=I.coordDim)}if(s)Q(o,function(I){C(I)}),o.sort(function(I,R){return I.storeDimIndex-R.storeDimIndex});else for(var T=0;T<a;T++){var A=v(T),P=A.coordDim;P==null&&(A.coordDim=she(S,i,w),A.coordDimIndex=0,(!_||b<=0)&&(A.isExtraCoord=!0),b--),C(A),A.type==null&&(oH(e,T)===yo.Must||A.isExtraCoord&&(A.otherDims.itemName!=null||A.otherDims.seriesName!=null))&&(A.type="ordinal")}return ohe(o),new vH({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function ohe(e){for(var t=Kt(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function ahe(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Q(t,function(o){var a;Ct(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function she(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 IT={},BR=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];Q(IT,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){IT[t]=n},e.get=function(t){return IT[t]},e}(),lhe=function(){function e(t){this.coordSysDims=[],this.axisMap=Kt(),this.categoryAxisMap=Kt(),this.coordSysName=t}return e}();function uhe(e){var t=e.get("coordinateSystem"),n=new lhe(t),r=che[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var che={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Pa).models[0],o=e.getReferringComponents("yAxis",Pa).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),od(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),od(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Pa).models[0];t.coordSysDims=["single"],n.set("single",i),od(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Pa).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),od(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),od(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),od(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function od(e){return e.get("type")==="category"}function fhe(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;dhe(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){ht(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 dhe(e){return!gH(e.schema)}function Eg(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function hhe(e,t){return Eg(e,t)?e.getCalculationInfo("stackResultDimension"):t}function phe(e,t){var n=e.get("coordinateSystem"),r=BR.get(n),i;return t&&t.coordSysDims&&(i=Pt(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=Wde(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function vhe(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 ghe(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;i=r.getSource(),o=i.sourceFormat===ua;var a=uhe(t),s=phe(t,a),l=n.useEncodeDefaulter,u=Vt(l)?l:l?Mr(Lde,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=ihe(i,c),d=vhe(f.dimensions,n.createInvertedIndices,a),h=o?null:r.getSharedDataStore(f),v=fhe(t,{schema:f,store:h}),m=new rhe(f,t);m.setCalculationInfo(v);var y=d!=null&&mhe(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 mhe(e){if(e.sourceFormat===ua){var t=yhe(e.data||[]);return!ut(um(t))}}function yhe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var _he=Math.round(Math.random()*10);function mS(e){return[e||"",_he++].join("_")}function bhe(e){var t={};e.registerSubTypeDefaulter=function(n,r){var i=os(n);t[i.main]=r},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=os(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}function She(e,t){e.topologicalTravel=function(o,a,s,l){if(!o.length)return;var u=n(a),c=u.graph,f=u.noEntryList,d={};for(Q(o,function(b){d[b]=!0});f.length;){var h=f.pop(),v=c[h],m=!!d[h];m&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),Q(v.successor,m?_:y)}Q(d,function(){var b="";throw new Error(b)});function y(b){c[b].entryCount--,c[b].entryCount===0&&f.push(b)}function _(b){d[b]=!0,y(b)}};function n(o){var a={},s=[];return Q(o,function(l){var u=r(a,l),c=u.originalDeps=t(l),f=i(c,o);u.entryCount=f.length,u.entryCount===0&&s.push(l),Q(f,function(d){In(u.predecessor,d)<0&&u.predecessor.push(d);var h=r(a,d);In(h.successor,d)<0&&h.successor.push(l)})}),{graph:a,noEntryList:s}}function r(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function i(o,a){var s=[];return Q(o,function(l){In(a,l)>=0&&s.push(l)}),s}}function whe(e,t){return _n(_n({},e,!0),t,!0)}var xhe=Math.log(2);function aA(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<<s)-1&~i)/xhe);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&i||(f+=(h%2?-1:1)*e[n][d]*aA(e,t-1,c,u,i|v,o),h++)}return o[a]=f,f}function Ck(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=aA(n,8,0,0,0,r);if(i!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*aA(n,7,a===0?1:0,1<<a,1<<s,r)/i*t[a];return function(l,u,c){var f=u*o[6]+c*o[7]+1;l[0]=(u*o[0]+c*o[1]+o[2])/f,l[1]=(u*o[3]+c*o[4]+o[5])/f}}}var Ek="___zrEVENTSAVED",RT=[];function The(e,t,n,r,i){return sA(RT,t,r,i,!0)&&sA(e,n,RT[0],RT[1])}function sA(e,t,n,r,i){if(t.getBoundingClientRect&&Mt.domSupported&&!bH(t)){var o=t[Ek]||(t[Ek]={}),a=Che(t,o),s=Ehe(a,o,i);if(s)return s(e,n,r),!0}return!1}function Che(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>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 Ehe(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?Ck(s,a):Ck(a,s))}function bH(e){return e.nodeName.toUpperCase()==="CANVAS"}var Ahe=/([&<>"'])/g,Ihe={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ki(e){return e==null?"":(e+"").replace(Ahe,function(t,n){return Ihe[n]})}const Rhe={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:". "}}}},Phe={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 F1="ZH",VR="EN",zd=VR,R_={},UR={},SH=Mt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||zd).toUpperCase();return e.indexOf(F1)>-1?F1:zd}():zd;function wH(e,t){e=e.toUpperCase(),UR[e]=new sr(t),R_[e]=t}function Ohe(e){if(ht(e)){var t=R_[e.toUpperCase()]||{};return e===F1||e===VR?ln(t):_n(ln(t),ln(R_[zd]),!1)}else return _n(ln(e),ln(R_[zd]),!1)}function Mhe(e){return UR[e]}function Dhe(){return UR[zd]}wH(VR,Rhe);wH(F1,Phe);var HR=1e3,GR=HR*60,Lv=GR*60,Qo=Lv*24,Ak=Qo*365,qp={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}"},o0="{yyyy}-{MM}-{dd}",Ik={year:"{yyyy}",month:"{yyyy}-{MM}",day:o0,hour:o0+" "+qp.hour,minute:o0+" "+qp.minute,second:o0+" "+qp.second,millisecond:qp.none},PT=["year","month","day","hour","minute","second","millisecond"],xH=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Bl(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 Lhe(e){return e===Wd(e)}function Nhe(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function yS(e,t,n,r){var i=vl(e),o=i[zR(n)](),a=i[jd(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[_S(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Ag(n)](),f=(c-1)%12+1,d=i[bS(n)](),h=i[SS(n)](),v=i[wS(n)](),m=c>=12?"pm":"am",y=m.toUpperCase(),_=r instanceof sr?r:Mhe(r||SH)||Dhe(),b=_.getModel("time"),w=b.get("month"),S=b.get("monthAbbr"),C=b.get("dayOfWeek"),T=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Bl(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,w[a-1]).replace(/{MMM}/g,S[a-1]).replace(/{MM}/g,Bl(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Bl(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,C[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Bl(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Bl(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Bl(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Bl(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Bl(v,3)).replace(/{S}/g,v+"")}function khe(e,t,n,r,i){var o=null;if(ht(n))o=n;else if(Vt(n))o=n(e.value,t,{level:e.level});else{var a=Ze({},qp);if(e.level>0)for(var s=0;s<PT.length;++s)a[PT[s]]="{primary|"+a[PT[s]]+"}";var l=n?n.inherit===!1?n:En(n,a):a,u=TH(e.value,i);if(l[u])o=l[u];else if(l.inherit){for(var c=xH.indexOf(u),s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ut(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 yS(new Date(e.value),o,i,r)}function TH(e,t){var n=vl(e),r=n[jd(t)]()+1,i=n[_S(t)](),o=n[Ag(t)](),a=n[bS(t)](),s=n[SS(t)](),l=n[wS(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 Rk(e,t,n){var r=Zn(e)?vl(e):e;switch(t=t||TH(e,n),t){case"year":return r[zR(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[_S(n)]();case"half-day":return r[Ag(n)]()/24;case"hour":return r[Ag(n)]();case"minute":return r[bS(n)]();case"second":return r[SS(n)]();case"millisecond":return r[wS(n)]()}}function zR(e){return e?"getUTCFullYear":"getFullYear"}function jd(e){return e?"getUTCMonth":"getMonth"}function _S(e){return e?"getUTCDate":"getDate"}function Ag(e){return e?"getUTCHours":"getHours"}function bS(e){return e?"getUTCMinutes":"getMinutes"}function SS(e){return e?"getUTCSeconds":"getSeconds"}function wS(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Fhe(e){return e?"setUTCFullYear":"setFullYear"}function CH(e){return e?"setUTCMonth":"setMonth"}function EH(e){return e?"setUTCDate":"setDate"}function AH(e){return e?"setUTCHours":"setHours"}function IH(e){return e?"setUTCMinutes":"setMinutes"}function RH(e){return e?"setUTCSeconds":"setSeconds"}function PH(e){return e?"setUTCMilliseconds":"setMilliseconds"}function OH(e){if(!jce(e))return ht(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function MH(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 xS=JV;function lA(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&is(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?vl(e):e;if(isNaN(+l)){if(s)return"-"}else return yS(l,r,n)}if(t==="ordinal")return NE(e)?i(e):Zn(e)&&o(e)?e+"":"-";var u=P1(e);return o(u)?OH(u):NE(e)?i(e):typeof e=="boolean"?e+"":"-"}var Pk=["a","b","c","d","e","f","g"],OT=function(e,t){return"{"+e+(t??"")+"}"};function DH(e,t,n){ut(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=Pk[o];e=e.replace(OT(a),OT(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(OT(Pk[l],s),n?Ki(u):u)}return e}function $he(e,t){var n=ht(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if(o==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ki(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ki(r)+";"+(t||"")+'"></span>';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 bf(e,t){return t=t||"transparent",ht(e)?e:Ct(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var P_=Q,Bhe=["left","right","top","bottom","width","height"],a0=[["width","left","right"],["height","top","bottom"]];function WR(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 Nv=WR;Mr(WR,"vertical");Mr(WR,"horizontal");function $1(e,t,n){n=xS(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 Ig(e){var t=e.layoutMode||e.constructor.layoutMode;return Ct(t)?t:t?{type:t}:null}function sh(e,t,n){var r=n&&n.ignoreSize;!ut(r)&&(r=[r,r]);var i=a(a0[0],0),o=a(a0[1],1);u(a0[0],e,i),u(a0[1],e,o);function a(c,f){var d={},h=0,v={},m=0,y=2;if(P_(c,function(w){v[w]=e[w]}),P_(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;_<c.length;_++){var b=c[_];if(!s(d,b)&&s(e,b)){d[b]=e[b];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){P_(c,function(h){f[h]=d[h]})}}function TS(e){return Vhe({},e)}function Vhe(e,t){return t&&e&&P_(Bhe,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var Uhe=Ar(),An=function(e){ot(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.uid=mS("ec_cpt_model"),o}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Ig(this),o=i?TS(n):{},a=r.getTheme();_n(n,a.get(this.mainType)),_n(n,this.getDefaultOption()),i&&sh(n,o,i)},t.prototype.mergeOption=function(n,r){_n(this.option,n,!0);var i=Ig(this);i&&sh(this.option,n,i)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!fue(n))return n.defaultOption;var r=Uhe(this);if(!r.defaultOption){for(var i=[],o=n;o;){var a=o.prototype.defaultOption;a&&i.push(a),o=o.superClass}for(var s={},l=i.length-1;l>=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 cm(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);rU(An,sr);nS(An);bhe(An);She(An,Hhe);function Hhe(e){var t=[];return Q(An.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Pt(t,function(n){return os(n).main}),e!=="dataset"&&In(t,"dataset")<=0&&t.unshift("dataset"),t}var Ok=Ar();Ar();var jR=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=Ri(this.get("color",!0)),o=this.get("colorLayer",!0);return zhe(this,Ok,i,o,t,n,r)},e.prototype.clearColorPalette=function(){Whe(this,Ok)},e}();function Ghe(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function zhe(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:Ghe(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 Whe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var jhe=/\{@(.+?)\}/g,Yhe=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&&ut(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(ht(o)){var c=DH(o,l);return c.replace(jhe,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&&ut(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 Mk(e){var t,n;return Ct(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function kv(e){return new Xhe(e)}var Xhe=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||h<v)){var m=this._progress;if(ut(m))for(var y=0;y<m.length;y++)this._doProgress(m[y],h,v,l,u);else this._doProgress(m,h,v,l,u)}this._dueIndex=v;var _=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=_}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,n,r,i,o){Dk.reset(n,r,i,o),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:Dk.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),ut(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),Dk=function(){var e,t,n,r,i,o={reset:function(l,u,c,f){t=l,e=u,n=c,r=f,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var l=t%i*n+Math.ceil(t/i),u=t>=e?null:l<r?l:t;return t++,u}}(),Khe=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return I_(t,n)},e}();function Zhe(e,t){var n=new Khe,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==rl&&Xi(a);var s=[],l={},u=e.dimensionsDefine;if(u)Q(u,function(m,y){var _=m.name,b={index:y,name:_,displayName:m.displayName};if(s.push(b),_!=null){var w="";gf(l,_)&&Xi(w),l[_]=b}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=cH(i,rl);t.__isBuiltIn&&(n.getRawDataItem=function(m){return f(r,o,s,m)},n.getRawData=Xn(qhe,null,e)),n.cloneRawData=Xn(Jhe,null,e);var d=fH(i,rl);n.count=Xn(d,null,r,o,s);var h=dH(i);n.retrieveValue=function(m,y){var _=f(r,o,s,m);return v(_,y)};var v=n.retrieveValueFromItem=function(m,y){if(m!=null){var _=s[y];if(_)return h(m,y,_.name)}};return n.getDimensionInfo=Xn(Qhe,null,s,l),n.cloneAllDimensionInfo=Xn(epe,null,s),n}function qhe(e){var t=e.sourceFormat;if(!YR(t)){var n="";Xi(n)}return e.data}function Jhe(e){var t=e.sourceFormat,n=e.data;if(!YR(t)){var r="";Xi(r)}if(t===so){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}else if(t===bs){for(var i=[],o=0,a=n.length;o<a;o++)i.push(Ze({},n[o]));return i}}function Qhe(e,t,n){if(n!=null){if(Zn(n)||!isNaN(n)&&!gf(t,n))return e[n];if(gf(t,n))return t[n]}}function epe(e){return ln(e)}var LH=Kt();function tpe(e){e=ln(e);var t=e.type,n="";t||Xi(n);var r=t.split(":");r.length!==2&&Xi(n);var i=!1;r[0]==="echarts"&&(t=r[1],i=!0),e.__isBuiltIn=i,LH.set(t,e)}function npe(e,t,n){var r=Ri(e),i=r.length,o="";i||Xi(o);for(var a=0,s=i;a<s;a++){var l=r[a];t=rpe(l,t),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function rpe(e,t,n,r){var i="";t.length||Xi(i),Ct(e)||Xi(i);var o=e.type,a=LH.get(o);a||Xi(i);var s=Pt(t,function(u){return Zhe(u,a)}),l=Ri(a.transform({upstream:s[0],upstreamList:s,config:ln(e.config)}));return Pt(l,function(u,c){var f="";Ct(u)||Xi(f),u.data||Xi(f);var d=sH(u.data);YR(d)||Xi(f);var h,v=t[0];if(v&&c===0&&!u.dimensions){var m=v.startIndex;m&&(u.data=v.data.slice(0,m).concat(u.data)),h={seriesLayoutBy:rl,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:rl,sourceHeader:0,dimensions:u.dimensions};return iA(u.data,h,null)})}function YR(e){return e===so||e===bs}var ipe=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(s0(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=oo(s)?Su: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?[iA(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=[iA(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&&Lk(o)}var a,s=[],l=[];return Q(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&Lk(f),s.push(c),l.push(u._getVersionSign())}),r?a=npe(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[Fde(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++){var r=t[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var n=this._sourceList[t];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(t)}return n},e.prototype.getSharedDataStore=function(t){var n=t.makeStoreSchema();return this._innerGetDataStore(n.dimensions,t.source,n.hash)},e.prototype._innerGetDataStore=function(t,n,r){var i=0,o=this._storeList,a=o[i];a||(a=o[i]={});var s=a[r];if(!s){var l=this._getUpstreamSourceManagers()[0];s0(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new oA,s.initData(new uH(n,t.length),t)),a[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(s0(t)){var n=iH(t);return n?[n.getSourceManager()]:[]}else return Pt(Nde(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,i;if(s0(t))n=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;n=o.get("seriesLayoutBy",!0),r=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:i}},e}();function s0(e){return e.mainType==="series"}function Lk(e){throw new Error(e)}var ope="line-height:1";function NH(e){var t=e.lineHeight;return t==null?ope:"line-height:"+Ki(t+"")+"px"}function kH(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ki(r+"")+"px;color:"+Ki(n)+";font-weight:"+Ki(i+""),valueStyle:"font-size:"+Ki(a+"")+"px;color:"+Ki(o)+";font-weight:"+Ki(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var ape=[0,10,20,30],spe=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function Rg(e,t){return t.type=e,t}function uA(e){return e.type==="section"}function FH(e){return uA(e)?lpe:upe}function $H(e){if(uA(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Q(e.blocks,function(i){var o=$H(i);o>=t&&(t=o+ +(r&&(!o||uA(i)&&!i.noHeader)))}),t}return 0}function lpe(e,t,n,r){var i=t.noHeader,o=cpe($H(t)),a=[],s=t.blocks||[];pl(!s||ut(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(gf(u,l)){var c=new Yde(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=FH(m)(_?Ze(Ze({},e),{valueFormatter:_}):e,m,y>0?o.html:0,r);b!=null&&a.push(b)});var f=e.renderMode==="richText"?a.join(o.richText):cA(r,a.join(""),i?n:o.html);if(i)return f;var d=lA(t.header,"ordinal",e.useUTC),h=kH(r,e.renderMode).nameStyle,v=NH(r);return e.renderMode==="richText"?BH(e,d,h)+o.richText+f:cA(r,'<div style="'+h+";"+v+';">'+Ki(d)+"</div>"+f,n)}function upe(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=ut(S)?S:[S],Pt(S,function(C,T){return lA(C,ut(h)?h[T]:h,u)})};if(!(o&&a)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=o?"":lA(l,"ordinal",u),h=t.valueType,v=a?[]:c(t.value,t.dataIndex),m=!s||!o,y=!s&&o,_=kH(r,i),b=_.nameStyle,w=_.valueStyle;return i==="richText"?(s?"":f)+(o?"":BH(e,d,b))+(a?"":hpe(e,v,m,y,w)):cA(r,(s?"":f)+(o?"":fpe(d,!s,b))+(a?"":dpe(v,m,y,w)),n)}}function Nk(e,t,n,r,i,o){if(e){var a=FH(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function cpe(e){return{html:ape[e],richText:spe[e]}}function cA(e,t,n){var r='<div style="clear:both"></div>',i="margin: "+n+"px 0 0",o=NH(e);return'<div style="'+i+";"+o+';">'+t+r+"</div>"}function fpe(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Ki(e)+"</span>"}function dpe(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=ut(e)?e:[e],'<span style="'+o+";"+r+'">'+Pt(e,function(a){return Ki(a)}).join(" ")+"</span>"}function BH(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function hpe(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(ut(t)?t.join(" "):t,o)}function ppe(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return bf(r)}function VH(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var MT=function(){function e(){this.richTextStyles={},this._nextStyleNameId=EU()}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=$he({color:n,type:t,renderMode:r,markerId:i});return ht(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};ut(n)?Q(n,function(o){return Ze(r,o)}):Ze(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e}();function vpe(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=ut(s),u=ppe(t,n),c,f,d,h;if(a>1||l&&!a){var v=gpe(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=yR(t),_=y&&t.name||"",b=i.getName(n),w=r?_:b;return Rg("section",{header:_,noHeader:r||!y,sortParam:h,blocks:[Rg("nameValue",{markerType:"item",markerColor:u,name:w,noName:!is(w),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function gpe(e,t,n,r,i){var o=t.getData(),a=Eh(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(Rg("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 Vl=Ar();function l0(e,t){return e.getName(t)||e.getId(t)}var mpe="__universalTransitionEnabled",Ou=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=kv({count:_pe,reset:bpe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=Vl(this).sourceManager=new ipe(this);o.prepareSource();var a=this.getInitialData(n,i);Fk(a,this),this.dataTask.context.data=a,Vl(this).dataBeforeProcessed=a,kk(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Ig(this),o=i?TS(n):{},a=this.subType;An.hasClass(a)&&(a+="Series"),_n(n,r.getTheme().get(this.subType)),_n(n,this.getDefaultOption()),VN(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=Ig(this);i&&sh(this.option,n,i);var o=Vl(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);Fk(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Vl(this).dataBeforeProcessed=a,kk(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!oo(n))for(var r=["show"],i=0;i<n.length;i++)n[i]&&n[i].label&&VN(n[i],"label",r)},t.prototype.getInitialData=function(n,r){},t.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},t.prototype.getData=function(n){var r=fA(this);if(r){var i=r.context.data;return n==null||!i.getLinkedData?i:i.getLinkedData(n)}else return Vl(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var r=fA(this);if(r){var i=r.context;i.outputData=n,r!==this.dataTask&&(i.data=n)}Vl(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Kt(n)},t.prototype.getSourceManager=function(){return Vl(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Vl(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.formatTooltip=function(n,r,i){return vpe({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Mt.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=jR.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<n.length;s++){var l=n[s],u=l0(a,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(n,r){for(var i=[],o=0;o<n.length;o++)i[0]=n[o],this.isSelected(n[o],r)?this.unselect(i,r):this.select(i,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=Kn(n),i=[],o=0;o<r.length;o++){var a=n[r[o]];a>=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[l0(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[mpe])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"){Ct(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c<l;c++){var f=r[c],d=l0(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=l0(n,h);a.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(o={},o[d]=n.getRawIndex(h),o)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(i){var o=n.getRawDataItem(i);o&&o.selected&&r.push(i)}),r.length>0&&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);ys(Ou,Yhe);ys(Ou,jR);rU(Ou,An);function kk(e){var t=e.name;yR(e)||(e.name=ype(e)||t)}function ype(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 _pe(e){return e.model.getRawData().count()}function bpe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Spe}function Spe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Fk(e,t){Q(iue(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Mr(wpe,t))})}function wpe(e,t){var n=fA(e);return n&&n.setOutputEnd((t||this).count()),t}function fA(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 xpe=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()}}),Tpe=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()}}),Cpe=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()}}),Epe=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()}}),Ape={line:Ru,rect:jr,roundRect:jr,square:jr,circle:cS,diamond:Tpe,pin:Cpe,arrow:Epe,triangle:xpe},Ipe={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}},dA={};Q(Ape,function(e,t){dA[t]=new e});var Rpe=Ln.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=aU(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=dA[r];i||(r="rect",i=dA[r]),Ipe[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Ppe(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=YU(e.slice(8),new bn(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=OR(e.slice(7),{},new bn(t,n,r,i),a?"center":"cover"):l=new Rpe({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=Ppe,o&&l.setColor(o),l}function Ope(e){return ut(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function UH(e,t){if(e!=null)return ut(e)||(e=[e,e]),[Ei(e[0],t[0])||0,Ei(nn(e[1],e[0]),t[1])||0]}var Mpe=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 ghe(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new vi,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}(Ou);function HH(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<n.length;a++)o.push(ah(e,t,n[a]));return o.join(" ")}}function Dpe(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!ut(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}var XR=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=Lpe,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(){O1(this.childAt(0))},t.prototype.downplay=function(){M1(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):Pu(d,h,s,r),ade(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,fm(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=kR(b),y=w.getShallow("scale"),_=b.getShallow("cursor")}var S=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=UH(n.getItemVisual(r,"symbolOffset"),i);C&&(s.x=C[0],s.y=C[1]),_&&s.attr("cursor",_);var T=n.getItemVisual(r,"style"),A=T.fill;if(s instanceof Hu){var P=s.style;s.useStyle(Ze({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},T))}else s.__isEmptyBrush?s.useStyle(Ze({},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;NR(s,m,{labelFetcher:l,labelDataIndex:r,defaultText:D,inheritColor:A,defaultOpacity:T.opacity});function D(z){return O?n.getName(z):HH(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),QE(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=Dn(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&L1(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();L1(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return Ope(n.getItemVisual(r,"symbolSize"))},t}(vi);function Lpe(e,t){this.parent.drift(e,t)}function DT(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 $k(e){return e!=null&&!Ct(e)&&(e={isIgnore:e}),e||{}}function Bk(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:kR(t),cursorStyle:t.get("cursor")}}var Npe=function(){function e(t){this.group=new vi,this._SymbolCtor=t||XR}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=$k(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=Bk(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(DT(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(!DT(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(_):Pu(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=Bk(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=$k(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var a=n.getItemLayout(o);if(DT(n,a,o,r)){var s=new this._SymbolCtor(n,o,this._seriesScope);s.traverse(i),s.setPosition(a),this.group.add(s),n.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){LR(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var n=this.group,r=this._data;r&&t?r.eachItemGraphicEl(function(i){i.fadeOut(function(){n.remove(i)},r.hostModel)}):n.removeAll()},e}();function GH(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=kpe(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c=s==="x"||s==="radius"?1:0,f=Pt(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return Eg(t,f[0])&&(d=!0,f[0]=h),Eg(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function kpe(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:Zn(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function zH(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 WH=typeof Float32Array<"u",Fpe=WH?Float32Array:Array;function Pd(e){return ut(e)?WH?new Float32Array(e):e:new Fpe(e)}function $pe(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 Bpe(e,t,n,r,i,o,a,s){for(var l=$pe(e,t),u=[],c=[],f=[],d=[],h=[],v=[],m=[],y=GH(i,t,a),_=e.getLayout("points")||[],b=t.getLayout("points")||[],w=0;w<l.length;w++){var S=l[w],C=!0,T=void 0,A=void 0;switch(S.cmd){case"=":T=S.idx*2,A=S.idx1*2;var P=_[T],I=_[T+1],R=b[A],O=b[A+1];(isNaN(P)||isNaN(I))&&(P=R,I=O),u.push(P,I),c.push(R,O),f.push(n[T],n[T+1]),d.push(r[A],r[A+1]),m.push(t.getRawIndex(S.idx1));break;case"+":var D=S.idx,$=y.dataDimsForPoint,F=i.dataToPoint([t.get($[0],D),t.get($[1],D)]);A=D*2,u.push(F[0],F[1]),c.push(b[A],b[A+1]);var z=zH(y,i,t,D);f.push(z[0],z[1]),d.push(r[A],r[A+1]),m.push(t.getRawIndex(D));break;case"-":C=!1}C&&(h.push(S),v.push(v.length))}v.sort(function(De,je){return m[De]-m[je]});for(var B=u.length,Y=Pd(B),j=Pd(B),se=Pd(B),ge=Pd(B),ve=[],w=0;w<v.length;w++){var Me=v[w],Ne=w*2,ze=Me*2;Y[Ne]=u[ze],Y[Ne+1]=u[ze+1],j[Ne]=c[ze],j[Ne+1]=c[ze+1],se[Ne]=f[ze],se[Ne+1]=f[ze+1],ge[Ne]=d[ze],ge[Ne+1]=d[ze+1],ve[w]=h[Me]}return{current:Y,next:j,stackedOnCurrent:se,stackedOnNext:ge,status:ve}}var Ul=Math.min,Hl=Math.max;function of(e,t){return isNaN(e)||isNaN(t)}function hA(e,t,n,r,i,o,a,s,l){for(var u,c,f,d,h,v,m=n,y=0;y<r;y++){var _=t[m*2],b=t[m*2+1];if(m>=i||m<0)break;if(of(_,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 C=m+o,T=t[C*2],A=t[C*2+1];T===_&&A===b&&y<r;)y++,C+=o,m+=o,T=t[C*2],A=t[C*2+1],_=t[m*2],b=t[m*2+1],w=_-u,S=b-c;var P=y+1;if(l)for(;of(T,A)&&P<r;)P++,C+=o,T=t[C*2],A=t[C*2+1];var I=.5,R=0,O=0,D=void 0,$=void 0;if(P>=r||of(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,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,D=_+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,D=_,$=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),D=_+R*a*I,$=b+O*a*I,D=Ul(D,Hl(T,_)),$=Ul($,Hl(A,b)),D=Hl(D,Ul(T,_)),$=Hl($,Ul(A,b)),R=D-_,O=$-b,h=_-R*j/se,v=b-O*j/se,h=Ul(h,Hl(u,_)),v=Ul(v,Hl(c,b)),h=Hl(h,Ul(u,_)),v=Hl(v,Ul(c,b)),R=_-h,O=b-v,D=_+R*se/j,$=b+O*se/j}e.bezierCurveTo(f,d,h,v,_,b),f=D,d=$}else e.lineTo(_,b)}u=_,c=b,m+=o}return y}var jH=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Vpe=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 jH},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&of(i[a*2-2],i[a*2-1]);a--);for(;o<a&&of(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=hA(n,i,o,a,a,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,o=i.data,a=yf.CMD,s,l,u=r==="x",c=[],f=0;f<o.length;){var d=o[f++],h=void 0,v=void 0,m=void 0,y=void 0,_=void 0,b=void 0,w=void 0;switch(d){case a.M:s=o[f++],l=o[f++];break;case a.L:if(h=o[f++],v=o[f++],w=u?(n-s)/(h-s):(n-l)/(v-l),w<=1&&w>=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 C=u?x1(s,h,m,_,n,c):x1(l,v,y,b,n,c);if(C>0)for(var T=0;T<C;T++){var A=c[T];if(A<=1&&A>=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),Upe=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(jH),Hpe=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 Upe},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&&of(i[s*2-2],i[s*2-1]);s--);for(;a<s&&of(i[a*2],i[a*2+1]);a++);}for(;a<s;){var u=hA(n,i,a,s,s,1,r.smooth,l,r.connectNulls);hA(n,o,a+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),a+=u+1,n.closePath()}},t}(Ln);function YH(){var e=Ar();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==a||o!==s)&&"reset"}}var XH=Ar(),Gpe=YH(),ss=function(){function e(){this.group=new vi,this.uid=mS("viewChart"),this.renderTask=kv({plan:zpe,reset:Wpe}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.highlight=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&Uk(o,i,"emphasis")},e.prototype.downplay=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&Uk(o,i,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateLayout=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateVisual=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.eachRendered=function(t){LR(this.group,t)},e.markUpdateMethod=function(t,n){XH(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Vk(e,t,n){e&&eA(e)&&(t==="emphasis"?O1:M1)(e,n)}function Uk(e,t,n){var r=_f(e,t),i=t&&t.highlightKey!=null?Afe(t.highlightKey):null;r!=null?Q(Ri(r),function(o){Vk(e.getItemGraphicEl(o),n,i)}):e.eachItemGraphicEl(function(o){Vk(o,n,i)})}uR(ss);nS(ss);function zpe(e){return Gpe(e.model)}function Wpe(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&XH(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,n,r,i),jpe[l]}var jpe={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function Ype(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var f=new jr({shape:{x:a,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var m=Vt(i)?function(y){i(y,f)}:null;fm(f,{shape:{width:l,height:u,x:a,y:s}},n,null,r,m)}return f}function Xpe(e,t,n){var r=e.getArea(),i=_r(r.r0,1),o=_r(r.r,1),a=new fS({shape:{cx:_r(e.cx,1),cy:_r(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?a.shape.endAngle=r.startAngle:a.shape.r=i,fm(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function Kpe(e,t){return e.type===t}function Hk(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Gk(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function zk(e,t){var n=Gk(e),r=n[0],i=n[1],o=Gk(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Wk(e){return Zn(e)?e:e?.5:0}function Zpe(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=Pd(r*2),o=0;o<r;o++){var a=zH(n,e,t,o);i[o*2]=a[0],i[o*2+1]=a[1]}return i}function Gl(e,t,n,r,i){var o=n.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],d=[];if(i){for(l=0;l<e.length;l+=2){var h=t||e;!isNaN(h[l])&&!isNaN(h[l+1])&&d.push(e[l],e[l+1])}e=d}for(l=0;l<e.length-2;l+=2)switch(f[0]=e[l+2],f[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),r){case"end":u[a]=f[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var v=(c[a]+f[a])/2,m=[];u[a]=m[a]=v,u[1-a]=c[1-a],m[1-a]=f[1-a],s.push(u[0],u[1]),s.push(m[0],m[1]);break;default:u[a]=c[a],u[1-a]=f[1-a],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function qpe(e,t){var n=[],r=e.length,i,o;function a(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),m=Xue(v,[c.color,f.color]);return{coord:d,color:m}}for(var s=0;s<r;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){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 Jpe(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=Pt(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=qpe(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 RR(0,0,0,0,d,!0);return b[i]=m,b[i+"2"]=y,b}}}function Qpe(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&eve(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 eve(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;a<i;a+=o)if(XR.getSymbolSize(t,a)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function tve(e,t){return isNaN(e)||isNaN(t)}function nve(e){for(var t=e.length/2;t>0&&tve(e[t*2-2],e[t*2-1]);t--);return t-1}function jk(e,t){return[e[t*2],e[t*2+1]]}function rve(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,u=0;u<r;u++)if(a=e[u*2+i],!(isNaN(a)||isNaN(e[u*2+1-i]))){if(u===0){o=a;continue}if(o<=t&&a>=t||o>=t&&a<=t){l=u;break}s=u,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function KH(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<hs.length;t++)if(e.get([hs[t],"endLabel","show"]))return!0;return!1}function LT(e,t,n,r){if(Kpe(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=KH(r)?function(h,v){e._endLabelOnDuring(h,v,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Ype(t,n,r,function(){var h=e._endLabel;h&&n&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return Xpe(t,n,r)}function ive(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var ove=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new vi,r=new Npe;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n,this._changePolyState=Xn(this._changePolyState,this)},t.prototype.render=function(n,r,i){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=n.getModel("lineStyle"),u=n.getModel("areaStyle"),c=s.getLayout("points")||[],f=o.type==="polar",d=this._coordSys,h=this._symbolDraw,v=this._polyline,m=this._polygon,y=this._lineGroup,_=!r.ssr&&n.get("animation"),b=!u.isEmpty(),w=u.get("origin"),S=GH(o,s,w),C=b&&Zpe(o,s,S),T=n.get("showSymbol"),A=n.get("connectNulls"),P=T&&!f&&Qpe(n,s,o),I=this._data;I&&I.eachItemGraphicEl(function(De,je){De.__temp&&(a.remove(De),I.setItemGraphicEl(je,null))}),T||h.remove(),a.add(y);var R=f?!1:n.get("step"),O;o&&o.getArea&&n.get("clip",!0)&&(O=o.getArea(),O.width!=null?(O.x-=.1,O.y-=.1,O.width+=.2,O.height+=.2):O.r0&&(O.r0-=.5,O.r+=.5)),this._clipShapeForSymbol=O;var D=Jpe(s,o,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&d.type===o.type&&R===this._step))T&&h.updateData(s,{isIgnore:P,clipShape:O,disableAnimation:!0,getSymbolPoint:function(De){return[c[De*2],c[De*2+1]]}}),_&&this._initSymbolLabelAnimation(s,o,O),R&&(C&&(C=Gl(C,c,o,R,A)),c=Gl(c,null,o,R,A)),v=this._newPolyline(c),b?m=this._newPolygon(c,C):m&&(y.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,bf(D)),y.setClipPath(LT(this,o,!0,n));else{b&&!m?m=this._newPolygon(c,C):m&&!b&&(y.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,bf(D));var $=y.getClipPath();if($){var F=LT(this,o,!1,n);fm($,{shape:F.shape},n)}else y.setClipPath(LT(this,o,!0,n));T&&h.updateData(s,{isIgnore:P,clipShape:O,disableAnimation:!0,getSymbolPoint:function(De){return[c[De*2],c[De*2+1]]}}),(!Hk(this._stackedOnPoints,C)||!Hk(this._points,c))&&(_?this._doUpdateAnimation(s,C,o,i,R,w,A):(R&&(C&&(C=Gl(C,c,o,R,A)),c=Gl(c,null,o,R,A)),v.setShape({points:c}),m&&m.setShape({points:c,stackedOnPoints:C})))}var z=n.getModel("emphasis"),B=z.get("focus"),Y=z.get("blurScope"),j=z.get("disabled");if(v.useStyle(En(l.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),qN(v,n,"lineStyle"),v.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var se=v.getState("emphasis").style;se.lineWidth=+v.style.lineWidth+1}Dn(v).seriesIndex=n.seriesIndex,QE(v,B,Y,j);var ge=Wk(n.get("smooth")),ve=n.get("smoothMonotone");if(v.setShape({smooth:ge,smoothMonotone:ve,connectNulls:A}),m){var Me=s.getCalculationInfo("stackedOnSeries"),Ne=0;m.useStyle(En(u.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Me&&(Ne=Wk(Me.get("smooth"))),m.setShape({smooth:ge,stackedOnSmooth:Ne,smoothMonotone:ve,connectNulls:A}),qN(m,n,"areaStyle"),Dn(m).seriesIndex=n.seriesIndex,QE(m,B,Y,j)}var ze=this._changePolyState;s.eachItemGraphicEl(function(De){De&&(De.onHoverStateChange=ze)}),this._polyline.onHoverStateChange=ze,this._data=s,this._coordSys=o,this._stackedOnPoints=C,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){Dn(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=_f(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 XR(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 ss.prototype.highlight.call(this,n,r,i,o)},t.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=_f(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 ss.prototype.downplay.call(this,n,r,i,o)},t.prototype._changePolyState=function(n){var r=this._polygon;jN(this._polyline,n),r&&jN(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Vpe({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 Hpe({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,C=r.pointToCoord(y);o?(_=S.startAngle,b=S.endAngle,w=-C[1]/180*Math.PI):(_=S.r0,b=S.r,w=C[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(KH(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 ao({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=nve(l);c>=0&&(NR(s,kR(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Dpe(a,h):HH(a,f)},enableTextSetter:!0},ive(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,C=(_?m:0)*(b?-1:1),T=(_?0:-m)*(b?-1:1),A=_?"x":"y",P=rve(f,S,A),I=P.range,R=I[1]-I[0],O=void 0;if(R>=1){if(R>1&&!h){var D=jk(f,I[0]);u.attr({x:D[0]+C,y:D[1]+T}),a&&(O=d.getRawValue(I[0]))}else{var D=c.getPointOn(S,A);D&&u.attr({x:D[0]+C,y:D[1]+T});var $=d.getRawValue(I[0]),F=d.getRawValue(I[1]);a&&(O=sfe(i,v,$,F,P.t))}o.lastFrameIndex=I[0]}else{var z=n===1||o.lastFrameIndex>0?I[0]:0,D=jk(f,z);a&&(O=d.getRawValue(z)),u.attr({x:D[0]+C,y:D[1]+T})}if(a){var B=JU(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=Bpe(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=Gl(d.stackedOnCurrent,d.current,i,a,l),h=Gl(d.current,null,i,a,l),y=Gl(d.stackedOnNext,d.next,i,a,l),m=Gl(d.next,null,i,a,l)),zk(h,m)>3e3||c&&zk(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(),Pu(u,_,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),Pu(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;S<w.length;S++){var C=w[S].cmd;if(C==="="){var T=n.getItemGraphicEl(w[S].idx1);T&&b.push({el:T,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var A=u.shape.__points,P=0;P<b.length;P++){var I=b[P].el,R=b[P].ptIdx*2;I.x=A[R],I.y=A[R+1],I.markRedraw()}})},t.prototype.remove=function(n){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(o,a){o.__temp&&(r.remove(o),i.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ss);function ave(e,t){return{seriesType:e,plan:YH(),reset:function(n){var r=n.getData(),i=n.coordinateSystem;if(n.pipelineContext,!!i){var o=Pt(i.dimensions,function(f){return r.mapDimension(f)}).slice(0,2),a=o.length,s=r.getCalculationInfo("stackResultDimension");Eg(r,o[0])&&(o[0]=s),Eg(r,o[1])&&(o[1]=s);var l=r.getStore(),u=r.getDimensionIndex(o[0]),c=r.getDimensionIndex(o[1]);return a&&{progress:function(f,d){for(var h=f.end-f.start,v=Pd(h*a),m=[],y=[],_=f.start,b=0;_<f.end;_++){var w=void 0;if(a===1){var S=l.get(u,_);w=i.dataToPoint(S,null,y)}else m[0]=l.get(u,_),m[1]=l.get(c,_),w=i.dataToPoint(m,null,y);v[b++]=w[0],v[b++]=w[1]}d.setLayout("points",v)}}}}}}var sve={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},lve=function(e){return Math.round(e.length/2)};function uve(e){return{seriesType:e,reset:function(t,n,r){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),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;ht(o)?v=sve[o]:Vt(o)&&(v=o),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,lve))}}}}}function cve(e){e.registerChartView(ove),e.registerSeriesModel(Mpe),e.registerLayout(ave("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,uve("line"))}var fve="__ec_stack_";function dve(e){return e.get("stack")||fve+e.seriesIndex}function ZH(e){return e.dim+e.index}function hve(e,t){var n=[];return t.eachSeriesByType(e,function(r){yve(r)&&n.push(r)}),n}function pve(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();m<y;++m){var _=v.get(h,m);t[d]?t[d].push(_):t[d]=[_]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(l,u){return l-u});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function vve(e){var t=pve(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")||(_ve(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:ZH(o),stackId:dve(r)})}),gve(n)}function gve(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&&b<S&&(S=Math.min(b,f)),w&&w>S&&(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 mve(e,t,n){if(e&&t){var r=e[ZH(t)];return r}}function yve(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function _ve(e){return e.pipelineContext&&e.pipelineContext.large}var B1="\0__throttleOriginMethod",Yk="\0__throttleRate",Xk="\0__throttleType";function qH(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<arguments.length;v++)h[v]=arguments[v];r=new Date().getTime(),l=this,u=h;var m=c||t,y=c||n;c=null,s=r-(y?i:o)-m,clearTimeout(a),y?a=setTimeout(f,m):s>=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 JH(e,t,n,r){var i=e[t];if(i){var o=i[B1]||i,a=i[Xk],s=i[Yk];if(s!==n||a!==r){if(n==null||!r)return e[t]=o;i=e[t]=qH(o,n,r==="debounce"),i[B1]=o,i[Xk]=r,i[Yk]=n}return i}}function pA(e,t){var n=e[t];n&&n[B1]&&(n.clear&&n.clear(),e[t]=n[B1])}function ad(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<u.length;c++)if(u[c].seriesIndex===s){var f=a.getData(),d=_f(f,i.fromActionPayload);n.trigger(o,{type:o,seriesId:a.id,name:ut(d)?f.getName(d[0]):f.getName(d),selected:ht(l)?l:Ze({},l)})}})}function bve(e,t,n){e.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(ad("map","selectchanged",t,i,r),ad("pie","selectchanged",t,i,r)):r.fromAction==="select"?(ad("map","selected",t,i,r),ad("pie","selected",t,i,r)):r.fromAction==="unselect"&&(ad("map","unselected",t,i,r),ad("pie","unselected",t,i,r))})}function Sve(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new D1(a,o):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}function wve(e){var t=[];e.sort(function(m,y){return y.priority-m.priority});var n=new bn(0,0,0,0);function r(m){if(!m.ignore){var y=m.ensureState("emphasis");y.ignore==null&&(y.ignore=!1)}m.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=o.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(n.intersect(v.rect)){if(a&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new D1(v.localRect,v.transform)),f||(f=new D1(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}var sd=function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e}(),xve=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var n=t.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new sd(n,t),"dragstart",t.event))},e.prototype._drag=function(t){var n=this._draggingTarget;if(n){var r=t.offsetX,i=t.offsetY,o=r-this._x,a=i-this._y;this._x=r,this._y=i,n.drift(o,a,t),this.handler.dispatchToElement(new sd(n,t),"drag",t.event);var s=this.handler.findHover(r,i,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new sd(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new sd(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new sd(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new sd(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Tve=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,NT=[],Cve=Mt.browser.firefox&&+Mt.browser.version.split(".")[0]<39;function vA(e,t,n,r){return n=n||{},r?Kk(e,t,n):Cve&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):Kk(e,t,n),n}function Kk(e,t,n){if(Mt.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(bH(e)){var o=e.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}else if(sA(NT,e,r,i)){n.zrX=NT[0],n.zrY=NT[1];return}}n.zrX=n.zrY=0}function KR(e){return e||window.event}function jo(e,t,n){if(t=KR(t),t.zrX!=null)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&vA(e,a,t,n)}else{vA(e,t,t,n);var o=Eve(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Tve.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Eve(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 Ave(e,t,n,r){e.addEventListener(t,n,r)}function Ive(e,t,n,r){e.removeEventListener(t,n,r)}var QH=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Rve=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;a<s;a++){var l=i[a],u=vA(r,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var n in kT)if(kT.hasOwnProperty(n)){var r=kT[n](this._track,t);if(r)return r}},e}();function Zk(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Pve(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var kT={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=Zk(r)/Zk(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=Pve(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},e6="silent";function Ove(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:Mve}}function Mve(){QH(this.event)}var Dve=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}(_s),bp=function(){function e(t,n){this.x=t,this.y=n}return e}(),Lve=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],FT=new bn(0,0,0,0),t6=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 Dve,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new xve(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(Q(Lve,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=n6(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=Ove(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(qk(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)&&(FT.copy(d.getBoundingRect()),d.transform&&FT.applyTransform(d.transform),FT.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,m=Math.PI*2,y=0;y<u;y+=h)for(var _=0;_<m;_+=v){var b=n+y*Math.cos(_),w=r+y*Math.sin(_);if(qk(s,a,b,w,i),a.target)return a}}return a},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new Rve);var i=this._gestureMgr;r==="start"&&i.clear();var o=i.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),o){var a=o.type;n.gestureEvent=a;var s=new bp;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t}(_s);Q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){t6.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=n6(this,n,r),o,a;if((e!=="mouseup"||!i)&&(o=this.findHover(n,r),a=o.target),e==="mousedown")this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if(e==="mouseup")this._upEl=a;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||$ue(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function Nve(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?e6:!0}return!1}function qk(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=Nve(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==e6)){t.target=a;break}}}function n6(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var r6=32,Sp=7;function kve(e){for(var t=0;e>=r6;)t|=e&1,e>>=1;return e+t}function Jk(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;Fve(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Fve(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Qk(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o=e[r],a=t,s=r,l;a<s;)l=a+s>>>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 $T(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function BT(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function $ve(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]&&h--;else if(i[h]>i[h+1])break;c(h)}}function u(){for(;o>1;){var h=o-2;h>0&&i[h-1]<i[h+1]&&h--,c(h)}}function c(h){var v=r[h],m=i[h],y=r[h+1],_=i[h+1];i[h]=m+_,h===o-3&&(r[h+1]=r[h+2],i[h+1]=i[h+2]),o--;var b=BT(e[y],e,v,m,0,t);v+=b,m-=b,m!==0&&(_=$T(e[v+m-1],e,y,_,_-1,t),_!==0&&(m<=_?f(v,m,y,_):d(v,m,y,_)))}function f(h,v,m,y){var _=0;for(_=0;_<v;_++)a[_]=e[h+_];var b=0,w=m,S=h;if(e[S++]=e[w++],--y===0){for(_=0;_<v;_++)e[S+_]=a[b+_];return}if(v===1){for(_=0;_<y;_++)e[S+_]=e[w+_];e[S+y]=a[b];return}for(var C=n,T,A,P;;){T=0,A=0,P=!1;do if(t(e[w],a[b])<0){if(e[S++]=e[w++],A++,T=0,--y===0){P=!0;break}}else if(e[S++]=a[b++],T++,A=0,--v===1){P=!0;break}while((T|A)<C);if(P)break;do{if(T=BT(e[w],a,b,v,0,t),T!==0){for(_=0;_<T;_++)e[S+_]=a[b+_];if(S+=T,b+=T,v-=T,v<=1){P=!0;break}}if(e[S++]=e[w++],--y===0){P=!0;break}if(A=$T(a[b],e,w,y,0,t),A!==0){for(_=0;_<A;_++)e[S+_]=e[w+_];if(S+=A,w+=A,y-=A,y===0){P=!0;break}}if(e[S++]=a[b++],--v===1){P=!0;break}C--}while(T>=Sp||A>=Sp);if(P)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),v===1){for(_=0;_<y;_++)e[S+_]=e[w+_];e[S+y]=a[b]}else{if(v===0)throw new Error;for(_=0;_<v;_++)e[S+_]=a[b+_]}}function d(h,v,m,y){var _=0;for(_=0;_<y;_++)a[_]=e[m+_];var b=h+v-1,w=y-1,S=m+y-1,C=0,T=0;if(e[S--]=e[b--],--v===0){for(C=S-(y-1),_=0;_<y;_++)e[C+_]=a[_];return}if(y===1){for(S-=v,b-=v,T=S+1,C=b+1,_=v-1;_>=0;_--)e[T+_]=e[C+_];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)<A);if(R)break;do{if(P=v-BT(a[w],e,h,v,v-1,t),P!==0){for(S-=P,b-=P,v-=P,T=S+1,C=b+1,_=P-1;_>=0;_--)e[T+_]=e[C+_];if(v===0){R=!0;break}}if(e[S--]=a[w--],--y===1){R=!0;break}if(I=y-$T(e[b],a,0,y,y-1,t),I!==0){for(S-=I,w-=I,y-=I,T=S+1,C=w+1,_=0;_<I;_++)e[T+_]=a[C+_];if(y<=1){R=!0;break}}if(e[S--]=e[b--],--v===0){R=!0;break}A--}while(P>=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,C=b+1,_=v-1;_>=0;_--)e[T+_]=e[C+_];e[S]=a[w]}else{if(y===0)throw new Error;for(C=S-(y-1),_=0;_<y;_++)e[C+_]=a[_]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function O_(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<r6){o=Jk(e,n,r,t),Qk(e,n,r,n+o,t);return}var a=$ve(e,t),s=kve(i);do{if(o=Jk(e,n,r,t),o<s){var l=i;l>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 eF=!1;function VT(){eF||(eF=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function tF(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Bve=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=tF}return e.prototype.traverse=function(t,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,n)},e.prototype.getDisplayList=function(t,n){n=n||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(n),r},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var n=this._roots,r=this._displayList,i=0,o=n.length;i<o;i++)this._updateAndAddDisplayable(n[i],null,t);r.length=this._displayListLen,O_(r,tF)},e.prototype._updateAndAddDisplayable=function(t,n,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)n=null;else if(i){n?n=n.slice():n=[];for(var o=i,a=t;o;)o.parent=a,o.updateTransform(),n.push(o),a=o,o=o.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=xo),this._updateAndAddDisplayable(u,n,r)}t.__dirty=0}else{var c=t;n&&n.length?c.__clipPaths=n:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(VT(),c.z=0),isNaN(c.z2)&&(VT(),c.z2=0),isNaN(c.zlevel)&&(VT(),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<r;n++)this.delRoot(t[n]);return}var i=In(this._roots,t);i>=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}(),V1;V1=Mt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function Od(){return new Date().getTime()}var Vve=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=Od()-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&&(V1(r),!n._paused&&n.update())}V1(r)},t.prototype.start=function(){this._running||(this._time=Od(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Od(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Od()-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 gR(n,r.loop);return this.addAnimator(i),i},t}(_s),Uve=300,UT=Mt.domSupported,HT=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=Pt(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}}(),nF={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},rF=!1;function gA(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Hve(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 GT(e){e&&(e.zrByTouch=!0)}function Gve(e,t){return jo(e.dom,new zve(e,t),!0)}function i6(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 zve=function(){function e(t,n){this.stopPropagation=eo,this.stopImmediatePropagation=eo,this.preventDefault=eo,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=jo(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=jo(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=jo(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=jo(this.dom,e);var t=e.toElement||e.relatedTarget;i6(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){rF=!0,e=jo(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){rF||(e=jo(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=jo(this.dom,e),GT(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),wa.mousemove.call(this,e),wa.mousedown.call(this,e)},touchmove:function(e){e=jo(this.dom,e),GT(e),this.handler.processGesture(e,"change"),wa.mousemove.call(this,e)},touchend:function(e){e=jo(this.dom,e),GT(e),this.handler.processGesture(e,"end"),wa.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Uve&&wa.click.call(this,e)},pointerdown:function(e){wa.mousedown.call(this,e)},pointermove:function(e){gA(e)||wa.mousemove.call(this,e)},pointerup:function(e){wa.mouseup.call(this,e)},pointerout:function(e){gA(e)||wa.mouseout.call(this,e)}};Q(["click","dblclick","contextmenu"],function(e){wa[e]=function(t){t=jo(this.dom,t),this.trigger(e,t)}});var mA={pointermove:function(e){gA(e)||mA.mousemove.call(this,e)},pointerup:function(e){mA.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Wve(e,t){var n=t.domHandlers;Mt.pointerEventsSupported?Q(HT.pointer,function(r){M_(t,r,function(i){n[r].call(e,i)})}):(Mt.touchEventsSupported&&Q(HT.touch,function(r){M_(t,r,function(i){n[r].call(e,i),Hve(t)})}),Q(HT.mouse,function(r){M_(t,r,function(i){i=KR(i),t.touching||n[r].call(e,i)})}))}function jve(e,t){Mt.pointerEventsSupported?Q(nF.pointer,n):Mt.touchEventsSupported||Q(nF.mouse,n);function n(r){function i(o){o=KR(o),i6(e,o.target)||(o=Gve(e,o),t.domHandlers[r].call(e,o))}M_(t,r,i,{capture:!0})}}function M_(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Ave(e.domTarget,t,n,r)}function zT(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Ive(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var iF=function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e}(),Yve=function(e){ot(t,e);function t(n,r){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=n,i.painterRoot=r,i._localHandlerScope=new iF(n,wa),UT&&(i._globalHandlerScope=new iF(document,mA)),Wve(i,i._localHandlerScope),i}return t.prototype.dispose=function(){zT(this._localHandlerScope),UT&&zT(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,UT&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?jve(this,r):zT(r)}},t}(_s);/*!
|
||
* ZRender, a high performance 2d drawing library.
|
||
*
|
||
* Copyright (c) 2013, Baidu Inc.
|
||
* All rights reserved.
|
||
*
|
||
* LICENSE
|
||
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
*/var D_={},o6={};function Xve(e){delete o6[e]}function Kve(e){if(!e)return!1;if(typeof e=="string")return E1(e,1)<WE;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=E1(t[i].color,1);return n/=r,n<WE}return!1}var Zve=function(){function e(t,n,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=t;var o=new Bve,a=r.renderer||"canvas";D_[a]||(a=Kn(D_)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new D_[a](n,o,r,t),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!Mt.node&&!Mt.worker&&!l?new Yve(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Mt.touchEventsSupported:!!c,d=44,h;f&&(h=nn(r.pointerSize,d)),this.handler=new t6(o,s,u,s.root,h),this.animation=new Vve({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Kve(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var n,r=Od();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var i=Od();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>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<t.length;n++)t[n]instanceof vi&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Xve(this.id))},e}();function oF(e,t){var n=new Zve(qV(),e,t);return o6[n.id]=n,n}function qve(e,t){D_[e]=t}var a6="";typeof navigator<"u"&&(a6=navigator.platform||"");var ld="rgba(0, 0, 0, 0.2)";const Jve={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ld,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ld,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ld,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ld,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ld,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ld,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:a6.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Qve=Kt();function ege(e,t,n){var r=Qve.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var u0,wp,aF,sF="\0_ec_inner",tge=1,ZR=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,i,o,a,s){o=o||{},this.option=null,this._theme=new sr(o),this._locale=new sr(a),this._optionManager=s},t.prototype.setOption=function(n,r,i){var o=cF(r);this._optionManager.setOption(n,i,o),this._resetOption(null,o)},t.prototype.resetOption=function(n,r){return this._resetOption(n,cF(r))},t.prototype._resetOption=function(n,r){var i=!1,o=this._optionManager;if(!n||n==="recreate"){var a=o.mountOption(n==="recreate");!this.option||n==="recreate"?aF(this,a):(this.restoreData(),this._mergeOption(a,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=o.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=o.getMediaOption(this);l.length&&Q(l,function(u){i=!0,this._mergeOption(u,r)},this)}return i},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=Kt(),u=r&&r.replaceMergeMainTypeMap;Dde(this),Q(n,function(f,d){f!=null&&(An.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?ln(f):_n(i[d],f,!0))}),u&&u.each(function(f,d){An.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),An.topologicalTravel(s,An.getAllClassMainTypes(),c,this);function c(f){var d=ege(this,f,Ri(n[f])),h=o.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",m=Kce(h,d,v);nfe(m,f,An),i[f]=null,o.set(f,null),a.set(f,0);var y=[],_=[],b=0,w;Q(m,function(S,C){var T=S.existing,A=S.newOption;if(!A)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var P=f==="series",I=An.getClass(f,S.keyInfo.subType,!P);if(!I)return;if(f==="tooltip"){if(w)return;w=!0}if(T&&T.constructor===I)T.name=S.keyInfo.name,T.mergeOption(A,this),T.optionUpdated(A,!1);else{var R=Ze({componentIndex:C},S.keyInfo);T=new I(A,this,this,R),Ze(T,R),S.brandNew&&(T.__requireNewView=!0),T.init(A,this,this),T.optionUpdated(null,!0)}}T?(y.push(T.option),_.push(T),b++):(y.push(void 0),_.push(void 0))},this),i[f]=y,o.set(f,_),a.set(f,b),f==="series"&&u0(this)}this._seriesIndices||u0(this)},t.prototype.getOption=function(){var n=ln(this.option);return Q(n,function(r,i){if(An.hasClass(i)){for(var o=Ri(r),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!Tg(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[sF],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<i.length;a++)if(i[a])return i[a]}}},t.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var i=n.index,o=n.id,a=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return i!=null?(l=[],Q(Ri(i),function(u){s[u]&&l.push(s[u])})):o!=null?l=lF("id",o,s):a!=null?l=lF("name",a,s):l=Ur(s,function(u){return!!u}),uF(l,n)},t.prototype.findComponents=function(n){var r=n.query,i=n.mainType,o=s(r),a=o?this.queryComponents(o):Ur(this._componentsMap.get(i),function(u){return!!u});return l(uF(a,n));function s(u){var c=i+"Index",f=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[f],name:u[d]}:null}function l(u){return n.filter?Ur(u,n.filter):u}},t.prototype.eachComponent=function(n,r,i){var o=this._componentsMap;if(Vt(n)){var a=r,s=n;o.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(a,d,v,v.componentIndex)}})}else for(var l=ht(n)?o.get(n):Ct(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(n){var r=as(n,null);return Ur(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return Ur(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return Ur(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){wp(this),Q(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)},this)},t.prototype.eachRawSeries=function(n,r){Q(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,i){wp(this),Q(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===n&&r.call(i,a,o)},this)},t.prototype.eachRawSeriesByType=function(n,r,i){return Q(this.getSeriesByType(n),r,i)},t.prototype.isSeriesFiltered=function(n){return wp(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){wp(this);var i=[];Q(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];n.call(r,a,o)&&i.push(o)},this),this._seriesIndices=i,this._seriesIndicesMap=Kt(i)},t.prototype.restoreData=function(n){u0(this);var r=this._componentsMap,i=[];r.each(function(o,a){An.hasClass(a)&&i.push(a)}),An.topologicalTravel(i,An.getAllClassMainTypes(),function(o){Q(r.get(o),function(a){a&&(o!=="series"||!nge(a,n))&&a.restoreData()})})},t.internalField=function(){u0=function(n){var r=n._seriesIndices=[];Q(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=Kt(r)},wp=function(n){},aF=function(n,r){n.option={},n.option[sF]=tge,n._componentsMap=Kt({series:[]}),n._componentsCount=Kt();var i=r.aria;Ct(i)&&i.enabled==null&&(i.enabled=!0),rge(r,n._theme.option),_n(r,Jve,!1),n._mergeOption(r,null)}}(),t}(sr);function nge(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function rge(e,t){var n=e.color&&!e.colorLayer;Q(t,function(r,i){i==="colorLayer"&&n||An.hasClass(i)||(typeof r=="object"?e[i]=e[i]?_n(e[i],r,!1):ln(r):e[i]==null&&(e[i]=r))})}function lF(e,t,n){if(ut(t)){var r=Kt();return Q(t,function(o){if(o!=null){var a=as(o,null);a!=null&&r.set(o,!0)}}),Ur(n,function(o){return o&&r.get(o[e])})}else{var i=as(t,null);return Ur(n,function(o){return o&&i!=null&&o[e]===i})}}function uF(e,t){return t.hasOwnProperty("subType")?Ur(e,function(n){return n&&n.subType===t.subType}):e}function cF(e){var t=Kt();return e&&Q(Ri(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}ys(ZR,jR);var ige=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],s6=function(){function e(t){Q(ige,function(n){this[n]=Xn(t[n],t)},this)}return e}(),oge=/^(min|max)?(.+)$/,age=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(Q(Ri(t.series),function(a){a&&a.data&&oo(a.data)&&kE(a.data)}),Q(Ri(t.dataset),function(a){a&&a.source&&oo(a.source)&&kE(a.source)})),t=ln(t);var i=this._optionBackup,o=sge(t,n,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],ln(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,r=this._timelineOptions;if(r.length){var i=t.getComponent("timeline");i&&(n=ln(r[i.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!i.length&&!o)return s;for(var l=0,u=i.length;l<u;l++)lge(i[l].query,n,r)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!cge(a,this._currentMediaIndices)&&(s=Pt(a,function(c){return ln(c===-1?o.option:i[c].option)})),this._currentMediaIndices=a,s},e}();function sge(e,t,n){var r=[],i,o,a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((f||c)&&(e.options=e.media=null),o=e),c&&ut(u)&&Q(u,function(h){h&&h.option&&(h.query?r.push(h):i||(i=h))}),d(o),Q(l,function(h){return d(h)}),Q(r,function(h){return d(h.option)});function d(h){Q(t,function(v){v(h,n)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function lge(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return Q(e,function(o,a){var s=a.match(oge);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();uge(r[u],o,l)||(i=!1)}}),i}function uge(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function cge(e,t){return e.join(",")===t.join(",")}var ga=Q,Pg=Ct,fF=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function WT(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=fF.length;n<r;n++){var i=fF[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?_n(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?_n(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function ii(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,En(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Jp(e){ii(e,"itemStyle"),ii(e,"lineStyle"),ii(e,"areaStyle"),ii(e,"label"),ii(e,"labelLine"),ii(e,"upperLabel"),ii(e,"edgeLabel")}function dr(e,t){var n=Pg(e)&&e[t],r=Pg(n)&&n.textStyle;if(r)for(var i=0,o=UN.length;i<o;i++){var a=UN[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function Yo(e){e&&(Jp(e),dr(e,"label"),e.emphasis&&dr(e.emphasis,"label"))}function fge(e){if(Pg(e)){WT(e),Jp(e),dr(e,"label"),dr(e,"upperLabel"),dr(e,"edgeLabel"),e.emphasis&&(dr(e.emphasis,"label"),dr(e.emphasis,"upperLabel"),dr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(WT(t),Yo(t));var n=e.markLine;n&&(WT(n),Yo(n));var r=e.markArea;r&&Yo(r);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var o=e.links||e.edges;if(o&&!oo(o))for(var a=0;a<o.length;a++)Yo(o[a]);Q(e.categories,function(u){Jp(u)})}if(i&&!oo(i))for(var a=0;a<i.length;a++)Yo(i[a]);if(t=e.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)Yo(s[a]);if(n=e.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)ut(l[a])?(Yo(l[a][0]),Yo(l[a][1])):Yo(l[a]);e.type==="gauge"?(dr(e,"axisLabel"),dr(e,"title"),dr(e,"detail")):e.type==="treemap"?(ii(e.breadcrumb,"itemStyle"),Q(e.levels,function(u){Jp(u)})):e.type==="tree"&&Jp(e.leaves)}}function ks(e){return ut(e)?e:e?[e]:[]}function dF(e){return(ut(e)?e[0]:e)||{}}function dge(e,t){ga(ks(e.series),function(r){Pg(r)&&fge(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),ga(n,function(r){ga(ks(e[r]),function(i){i&&(dr(i,"axisLabel"),dr(i.axisPointer,"label"))})}),ga(ks(e.parallel),function(r){var i=r&&r.parallelAxisDefault;dr(i,"axisLabel"),dr(i&&i.axisPointer,"label")}),ga(ks(e.calendar),function(r){ii(r,"itemStyle"),dr(r,"dayLabel"),dr(r,"monthLabel"),dr(r,"yearLabel")}),ga(ks(e.radar),function(r){dr(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),ga(ks(e.geo),function(r){Pg(r)&&(Yo(r),ga(ks(r.regions),function(i){Yo(i)}))}),ga(ks(e.timeline),function(r){Yo(r),ii(r,"label"),ii(r,"itemStyle"),ii(r,"controlStyle",!0);var i=r.data;ut(i)&&Q(i,function(o){Ct(o)&&(ii(o,"label"),ii(o,"itemStyle"))})}),ga(ks(e.toolbox),function(r){ii(r,"iconStyle"),ga(r.feature,function(i){ii(i,"iconStyle")})}),dr(dF(e.axisPointer),"label"),dr(dF(e.tooltip).axisPointer,"label")}function hge(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function pge(e,t,n,r){for(var i=t.split(","),o=e,a,s=0;s<i.length-1;s++)a=i[s],o[a]==null&&(o[a]={}),o=o[a];o[i[s]]==null&&(o[i[s]]=n)}function hF(e){e&&Q(vge,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var vge=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],gge=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],jT=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function xp(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<jT.length;n++){var r=jT[n][1],i=jT[n][0];t[r]!=null&&(t[i]=t[r])}}function pF(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function vF(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function mge(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function l6(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&l6(e[n].children,t)}function u6(e,t){dge(e,t),e.series=Ri(e.series),Q(e.series,function(n){if(Ct(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),pF(n.label);var i=n.data;if(i&&!oo(i))for(var o=0;o<i.length;o++)pF(i[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var a=hge(n,"pointer.color");a!=null&&pge(n,"itemStyle.color",a)}else if(r==="bar"){xp(n),xp(n.backgroundStyle),xp(n.emphasis);var i=n.data;if(i&&!oo(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(xp(i[o]),xp(i[o]&&i[o].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),vF(n),l6(n.data,vF)}else r==="graph"||r==="sankey"?mge(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&En(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),hF(n)}}),e.dataRange&&(e.visualMap=e.dataRange),Q(gge,function(n){var r=e[n];r&&(ut(r)||(r=[r]),Q(r,function(i){hF(i)}))})}function yge(e){var t=Kt();e.eachSeries(function(n){var r=n.get("stack");if(r){var i=t.get(r)||t.set(r,[]),o=n.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),t.each(_ge)}function _ge(e){Q(e,function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(u,c,f){var d=a.get(t.stackedDimension,f);if(isNaN(d))return i;var h,v;s?v=a.getRawIndex(f):h=a.get(t.stackedByDimension,f);for(var m=NaN,y=n-1;y>=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=Gce(d,b),m=b;break}}}return r[0]=d,r[1]=m,r})})}var ps=function(){function e(){this.group=new vi,this.uid=mS("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}();uR(ps);nS(ps);var gF=Ar(),mF={itemStyle:wg(eH,!0),lineStyle:wg(QU,!0)},bge={lineStyle:"stroke",itemStyle:"fill"};function c6(e,t){var n=e.visualStyleMapper||mF[t];return n||(console.warn("Unknown style type '"+t+"'."),mF.itemStyle)}function f6(e,t){var n=e.visualDrawType||bge[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Sge={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=c6(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=f6(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=Ze({},a);y[l]=c(m),h.setItemVisual(v,"style",y)}}}},Tp=new sr,wge={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=c6(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");Ze(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}}}},xge={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)),gF(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=gF(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=f6(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)}})}})}},c0=Math.PI;function Tge(e,t){t=t||{},En(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 vi,r=new jr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new ao({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 jr({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 dS({shape:{startAngle:-c0/2,endAngle:-c0/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:c0*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:c0*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 d6=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="";pl(!(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)||kv({plan:Rge,reset:Pge,count:Mge}));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||kv({reset:Cge});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="";pl(!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,kv({reset:Ege,onDirty:Ige})));_.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:Dge(t)}),t.uid=mS("stageHandler"),n&&(t.visualType=n),t},e}();function Cge(e){e.overallReset(e.ecModel,e.api,e.payload)}function Ege(e){return e.overallProgress&&Age}function Age(){this.agent.dirty(),this.getDownstream().dirty()}function Ige(){this.agent&&this.agent.dirty()}function Rge(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Pge(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ri(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Pt(t,function(n,r){return h6(r)}):Oge}var Oge=h6(0);function h6(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function Mge(e){return e.data.count()}function Dge(e){U1=null;try{e(Og,p6)}catch{}return U1}var Og={},p6={},U1;v6(Og,ZR);v6(p6,s6);Og.eachSeriesByType=Og.eachRawSeriesByType=function(e){U1=e};Og.eachComponent=function(e){e.mainType==="series"&&e.subType&&(U1=e.subType)};function v6(e,t){for(var n in t.prototype)e[n]=eo}var yF=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Lge={color:yF,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],yF]};var ti="#B9B8CE",_F="#100C2A",f0=function(){return{axisLine:{lineStyle:{color:ti}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},bF=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],g6={darkMode:!0,color:bF,backgroundColor:_F,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ti},pageTextStyle:{color:ti}},textStyle:{color:ti},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ti}},dataZoom:{borderColor:"#71708A",textStyle:{color:ti},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:ti}},timeline:{lineStyle:{color:ti},label:{color:ti},controlStyle:{color:ti,borderColor:ti}},calendar:{itemStyle:{color:_F},dayLabel:{color:ti},monthLabel:{color:ti},yearLabel:{color:ti}},timeAxis:f0(),logAxis:f0(),valueAxis:f0(),categoryAxis:f0(),line:{symbol:"circle"},graph:{color:bF},gauge:{title:{color:ti},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ti},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};g6.categoryAxis.splitLine.show=!1;var Nge=function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},i={};if(ht(t)){var o=os(t);n.mainType=o.main||null,n.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};Q(t,function(l,u){for(var c=!1,f=0;f<a.length;f++){var d=a[f],h=u.lastIndexOf(d);if(h>0&&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}(),yA=["symbol","symbolSize","symbolRotate","symbolOffset"],SF=yA.concat(["symbolKeepAspect"]),kge={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<yA.length;a++){var s=yA[a],l=e.get(s);Vt(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Ze({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var u=Kn(i);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),m=0;m<u.length;m++){var y=u[m];f.setItemVisual(d,y,i[y](h,v))}}return{dataEach:o?c:null}}},Fge={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(i,o){for(var a=i.getItemModel(o),s=0;s<SF.length;s++){var l=SF[s],u=a.getShallow(l,!0);u!=null&&i.setItemVisual(o,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function $ge(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function Bge(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Qp(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Vge=Math.round(Math.random()*9),Uge=typeof Object.defineProperty=="function",Hge=function(){function e(){this._id="__ec_inner_"+Vge++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return Uge?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();function Uc(e){return isFinite(e)}function Gge(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,o=t.y==null?0:t.y,a=t.y2==null?0:t.y2;t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=Uc(r)?r:0,i=Uc(i)?i:1,o=Uc(o)?o:0,a=Uc(a)?a:0;var s=e.createLinearGradient(r,o,i,a);return s}function zge(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(a=a*r+n.x,s=s*i+n.y,l=l*o),a=Uc(a)?a:.5,s=Uc(s)?s:.5,l=l>=0&&Uc(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function _A(e,t,n){for(var r=t.type==="radial"?zge(e,t,n):Gge(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function Wge(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function d0(e){return parseInt(e,10)}function h0(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||d0(s[r])||d0(e.style[r]))-(d0(s[o])||0)-(d0(s[a])||0)|0}function jge(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Zn(e)?[e]:ut(e)?e:null}function m6(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&jge(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=Pt(n,function(o){return o/i}),r/=i)}return[n,r]}var Yge=new yf(!0);function H1(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function wF(e){return typeof e=="string"&&e!=="none"}function G1(e){var t=e.fill;return t!=null&&t!=="none"}function xF(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 TF(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 bA(e,t,n){var r=oU(t.image,t.__image,n);if(rS(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)*oue),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function Xge(e,t,n,r){var i,o=H1(n),a=G1(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Yge,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,C=void 0,T=void 0;(v||m)&&(T=t.getBoundingRect()),v&&(b=f?_A(e,d,T):t.__canvasFillGradient,t.__canvasFillGradient=b),m&&(w=f?_A(e,h,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=w),y&&(S=f||!t.__canvasFillPattern?bA(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),_&&(C=f||!t.__canvasStrokePattern?bA(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),v?e.fillStyle=b:y&&(S?e.fillStyle=S:a=!1),m?e.strokeStyle=w:_&&(C?e.strokeStyle=C:o=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var P,I;e.setLineDash&&n.lineDash&&(i=m6(t),P=i[0],I=i[1]);var R=!0;(u||f&Sd)&&(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&&TF(e,n),a&&xF(e,n)):(a&&xF(e,n),o&&TF(e,n))),P&&e.setLineDash([])}function Kge(e,t,n){var r=t.__image=oU(n.image,t.__image,t,t.onload);if(!(!r||!rS(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 Zge(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||vf,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=m6(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(H1(n)&&e.strokeText(i,n.x,n.y),G1(n)&&e.fillText(i,n.x,n.y)):(G1(n)&&e.fillText(i,n.x,n.y),H1(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var CF=["shadowBlur","shadowOffsetX","shadowOffsetY"],EF=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function y6(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Zi(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?nf.opacity:a}(r||t.blend!==n.blend)&&(o||(Zi(e,i),o=!0),e.globalCompositeOperation=t.blend||nf.blend);for(var s=0;s<CF.length;s++){var l=CF[s];(r||t[l]!==n[l])&&(o||(Zi(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(Zi(e,i),o=!0),e.shadowColor=t.shadowColor||nf.shadowColor),o}function AF(e,t,n,r,i){var o=Mg(t,i.inHover),a=r?null:n&&Mg(n,i.inHover)||{};if(o===a)return!1;var s=y6(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Zi(e,i),s=!0),wF(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Zi(e,i),s=!0),wF(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Zi(e,i),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(Zi(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<EF.length;c++){var f=EF[c],d=f[0];(r||o[d]!==a[d])&&(s||(Zi(e,i),s=!0),e[d]=o[d]||f[1])}return s}function qge(e,t,n,r,i){return y6(e,Mg(t,i.inHover),n&&Mg(n,i.inHover),r,i)}function _6(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function Jge(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),_6(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}function Qge(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var IF=1,RF=2,PF=3,OF=4;function eme(e){var t=G1(e),n=H1(e);return!(e.lineDash||!(+t^+n)||t&&typeof e.fill!="string"||n&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Zi(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Mg(e,t){return t&&e.__hoverStyle||e.style}function b6(e,t){Hc(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Hc(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~xo,t.__isRendered=!1;return}var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||Wge(o,a))&&(a&&a.length&&(Zi(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Zi(e,n),e.save(),Jge(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof Ln&&t.autoBatch&&eme(t.style);s||Qge(i,u.transform)?(Zi(e,n),_6(e,t)):c||Zi(e,n);var f=Mg(t,n.inHover);t instanceof Ln?(n.lastDrawType!==IF&&(l=!0,n.lastDrawType=IF),AF(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),Xge(e,t,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof I1?(n.lastDrawType!==PF&&(l=!0,n.lastDrawType=PF),AF(e,t,u,l,n),Zge(e,t,f)):t instanceof Hu?(n.lastDrawType!==RF&&(l=!0,n.lastDrawType=RF),qge(e,t,u,l,n),Kge(e,t,f)):t.getTemporalDisplayables&&(n.lastDrawType!==OF&&(l=!0,n.lastDrawType=OF),tme(e,t,n)),c&&r&&Zi(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function tme(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},a,s;for(a=t.getCursor(),s=r.length;a<s;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Hc(e,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Hc(e,l,o,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var YT=new Hge,MF=new sm(100),DF=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function SA(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type==="svg";e.dirty&&YT.delete(e);var o=YT.get(e);if(o)return o;var a=En(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,YT.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<DF.length;++d){var h=a[DF[d]];if(h!=null&&!ut(h)&&!ht(h)&&!Zn(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(i?"-svg":"");var m=MF.get(v);m&&(i?u.svgElement=m:u.image=m)}var y=w6(a.dashArrayX),_=nme(a.dashArrayY),b=S6(a.symbol),w=rme(y),S=x6(_),C=!i&&Ch.createCanvas(),T=i&&{tag:"g",attrs:{},key:"dcl",children:[]},A=I(),P;C&&(C.width=A.width*n,C.height=A.height*n,P=C.getContext("2d")),R(),f&&MF.put(v,C||T),u.image=C,u.svgElement=T,u.svgWidth=A.width,u.svgHeight=A.height;function I(){for(var O=1,D=0,$=w.length;D<$;++D)O=$N(O,w[D]);for(var F=1,D=0,$=b.length;D<$;++D)F=$N(F,b[D].length);O*=F;var z=S*w.length*b.length;return{width:Math.max(1,Math.min(O,a.maxTileWidth)),height:Math.max(1,Math.min(z,a.maxTileHeight))}}function R(){P&&(P.clearRect(0,0,C.width,C.height),a.backgroundColor&&(P.fillStyle=a.backgroundColor,P.fillRect(0,0,C.width,C.height)));for(var O=0,D=0;D<_.length;++D)O+=_[D];if(O<=0)return;for(var $=-S,F=0,z=0,B=0;$<A.height;){if(F%2===0){for(var Y=z/2%b.length,j=0,se=0,ge=0;j<A.width*2;){for(var ve=0,D=0;D<y[B].length;++D)ve+=y[B][D];if(ve<=0)break;if(se%2===0){var Me=(1-a.symbolSize)*.5,Ne=j+y[B][se]*Me,ze=$+_[F]*Me,De=y[B][se]*a.symbolSize,je=_[F]*a.symbolSize,ce=ge/2%b[Y].length;Ee(Ne,ze,De,je,b[Y][ce])}j+=y[B][se],++ge,++se,se===y[B].length&&(se=0)}++B,B===y.length&&(B=0)}$+=_[F],++z,++F,F===_.length&&(F=0)}function Ee(Se,Te,Oe,$e,H){var G=i?1:n,le=lh(H,Se*G,Te*G,Oe*G,$e*G,a.color,a.symbolKeepAspect);if(i){var we=r.painter.renderOneToVNode(le);we&&T.children.push(we)}else b6(P,le)}}}}function S6(e){if(!e||e.length===0)return[["rect"]];if(ht(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!ht(e[n])){t=!1;break}if(t)return S6([e]);for(var r=[],n=0;n<e.length;++n)ht(e[n])?r.push([e[n]]):r.push(e[n]);return r}function w6(e){if(!e||e.length===0)return[[0,0]];if(Zn(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Zn(e[r])){n=!1;break}if(n)return w6([e]);for(var i=[],r=0;r<e.length;++r)if(Zn(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=Pt(e[r],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function nme(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Zn(e)){var t=Math.ceil(e);return[t,t]}var n=Pt(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function rme(e){return Pt(e,function(t){return x6(t)})}function x6(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function ime(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(a){var s=r.getItemVisual(a,"decal");if(s){var l=r.ensureUniqueItemVisual(a,"style");l.decal=SA(s,t)}});var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=SA(i,t)}}})}var xa=new _s,T6={};function ome(e,t){T6[e]=t}function ame(e){return T6[e]}var sme=1,lme=800,ume=900,cme=1e3,fme=2e3,dme=5e3,C6=1e3,hme=1100,qR=2e3,E6=3e3,pme=4e3,CS=4500,vme=4600,gme=5e3,mme=6e3,A6=7e3,yme={PROCESSOR:{FILTER:cme,SERIES_FILTER:lme,STATISTIC:dme},VISUAL:{LAYOUT:C6,PROGRESSIVE_LAYOUT:hme,GLOBAL:qR,CHART:E6,POST_CHART_LAYOUT:vme,COMPONENT:pme,BRUSH:gme,CHART_ITEM:CS,ARIA:mme,DECAL:A6}},Jr="__flagInMainProcess",Bi="__pendingUpdate",XT="__needsUpdateStatus",LF=/^[a-zA-Z0-9_]+$/,KT="__connectUpdateStatus",NF=0,_me=1,bme=2;function I6(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return P6(this,e,t)}}function R6(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return P6(this,e,t)}}function P6(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),_s.prototype[t].apply(e,n)}var O6=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(_s),M6=O6.prototype;M6.on=R6("on");M6.off=R6("off");var ud,ZT,p0,zl,qT,JT,QT,Cp,Ep,kF,FF,eC,$F,v0,BF,D6,Ho,VF,L6=function(e){ot(t,e);function t(n,r,i){var o=e.call(this,new Nge)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},ht(r)&&(r=N6[r]),o._dom=n;var a="canvas",s="auto",l=!1;i.ssr;var u=o._zr=oF(n,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:nn(i.useDirtyRect,l),useCoarsePointer:nn(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=qH(Xn(u.flush,u),17),r=ln(r),r&&u6(r,!0),o._theme=r,o._locale=Ohe(i.locale||SH),o._coordSysMgr=new BR;var c=o._api=BF(o);function f(d,h){return d.__prio-h.__prio}return O_(W1,f),O_(wA,f),o._scheduler=new d6(o,c,wA,W1),o._messageCenter=new O6,o._initEvents(),o.resize=Xn(o.resize,o),u.animation.on("frame",o._onframe,o),kF(u,o),FF(u,o),kE(o),o}return t.prototype._onframe=function(){if(!this._disposed){VF(this);var n=this._scheduler;if(this[Bi]){var r=this[Bi].silent;this[Jr]=!0;try{ud(this),zl.update.call(this,null,this[Bi].updateParams)}catch(l){throw this[Jr]=!1,this[Bi]=null,l}this._zr.flush(),this[Jr]=!1,this[Bi]=null,Cp.call(this,r),Ep.call(this,r)}else if(n.unfinished){var i=sme,o=this._model,a=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),JT(this,o),n.performVisualTasks(o),v0(this,this._model,a,"remain",{}),i-=+new Date-s}while(i>0&&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[Jr]){if(this._disposed){this.id;return}var o,a,s;if(Ct(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[Jr]=!0,!this._model||r){var l=new age(this._api),u=this._theme,c=this._model=new ZR;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},xA);var f={seriesTransition:s,optionChanged:!0};if(i)this[Bi]={silent:o,updateParams:f},this[Jr]=!1,this.getZr().wakeUp();else{try{ud(this),zl.update.call(this,null,f)}catch(d){throw this[Bi]=null,this[Jr]=!1,d}this._ssr||this._zr.flush(),this[Bi]=null,this[Jr]=!1,Cp.call(this,o),Ep.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||Mt.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(Mt.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(UF[i]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();Q($v,function(w,S){if(w.group===i){var C=r?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(ln(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:C,left:T.left,top:T.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,m=f-u,y=Ch.createCanvas(),_=oF(y,{renderer:r?"svg":"canvas"});if(_.resize({width:v,height:m}),r){var b="";return Q(d,function(w){var S=w.left-l,C=w.top-u;b+='<g transform="translate('+S+","+C+')">'+w.dom+"</g>"}),_.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&_.painter.setBackgroundColor(n.connectedBackgroundColor),_.refreshImmediately(),_.painter.toDataURL()}else return n.connectedBackgroundColor&&_.add(new jr({shape:{x:0,y:0,width:v,height:m},style:{fill:n.connectedBackgroundColor}})),Q(d,function(w){var S=new Hu({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 qT(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return qT(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=gT(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=gT(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?$ge(s,l,r):Bge(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(Sme,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=Dn(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=Ze({},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(Fv,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)}),bve(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&&PU(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 $v[r.id]},t.prototype.resize=function(n){if(!this[Jr]){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[Bi]&&(o==null&&(o=this[Bi].silent),i=!0,this[Bi]=null),this[Jr]=!0;try{i&&ud(this),zl.update.call(this,{type:"resize",animation:Ze({duration:0},n&&n.animation)})}catch(a){throw this[Jr]=!1,a}this[Jr]=!1,Cp.call(this,o),Ep.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Ct(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!TA[n]){var i=TA[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=Ze({},n);return r.type=Fv[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Ct(r)||(r={silent:!!r}),!!z1[n.type]&&this._model){if(this[Jr]){this._pendingActions.push(n);return}var i=r.silent;QT.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&Mt.browser.weChat&&this._throttledZrFlush(),Cp.call(this,i),Ep.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(){ud=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;w<m.length;w++)m[w].__alive=!1;d?h.eachComponent(function(T,A){T!=="series"&&S(A)}):h.eachSeries(S);function S(T){var A=T.__requireNewView;T.__requireNewView=!1;var P="_ec_"+T.id+"_"+T.type,I=!A&&y[P];if(!I){var R=os(T.type),O=d?ps.getClass(R.main,R.sub):ss.getClass(R.sub);I=new O,I.init(h,b),y[P]=I,m.push(I),_.add(I.group)}T.__viewId=I.__id=P,I.__alive=!0,I.__model=T,I.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!d&&v.prepareView(I,T,h,b)}for(var w=0;w<m.length;){var C=m[w];C.__alive?w++:(!d&&C.renderTask.dispose(),_.remove(C.group),C.dispose(h,b),m.splice(w,1),y[C.__id]===C&&delete y[C.__id],C.__id=C.group.__ecComponentInfo=null)}},p0=function(f,d,h,v,m){var y=f._model;if(y.setUpdatePayload(h),!v){Q([].concat(f._componentsViews).concat(f._chartsViews),C);return}var _={};_[v+"Id"]=h[v+"Id"],_[v+"Index"]=h[v+"Index"],_[v+"Name"]=h[v+"Name"];var b={mainType:v,query:_};m&&(b.subType=m);var w=h.excludeSeriesId,S;w!=null&&(S=Kt(),Q(Ri(w),function(T){var A=as(T,null);A!=null&&S.set(A,!0)})),y&&y.eachComponent(b,function(T){var A=S&&S.get(T.id)!=null;if(!A)if(JN(h))if(T instanceof Ou)h.type===rf&&!h.notBlur&&!T.get(["emphasis","disabled"])&&_fe(T,h,f._api);else{var P=xR(T.mainType,T.componentIndex,h.name,f._api),I=P.focusSelf,R=P.dispatchers;h.type===rf&&I&&!h.notBlur&&qE(T.mainType,T.componentIndex,f._api),R&&Q(R,function(O){h.type===rf?O1(O):M1(O)})}else tA(h)&&T instanceof Ou&&(wfe(T,h,f._api),KN(T),Ho(f))},f),y&&y.eachComponent(b,function(T){var A=S&&S.get(T.id)!=null;A||C(f[v==="series"?"_chartsMap":"_componentsMap"][T.__viewId])},f);function C(T){T&&T.__alive&&T[d]&&T[d](T.__model,y,f._api,h)}},zl={prepareAndUpdate:function(f){ud(this),zl.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,m=this._zr,y=this._coordSysMgr,_=this._scheduler;if(h){h.setUpdatePayload(f),_.restoreData(h,f),_.performSeriesTasks(h),y.create(h,v),_.performDataProcessorTasks(h,f),JT(this,h),y.update(h,v),n(h),_.performVisualTasks(h,f),eC(this,h,v,f,d);var b=h.get("backgroundColor")||"transparent",w=h.get("darkMode");m.setBackgroundColor(b),w!=null&&w!=="auto"&&m.setDarkMode(w),xa.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var m=[];h.eachComponent(function(_,b){if(_!=="series"){var w=d.getViewOfComponentModel(b);if(w&&w.__alive)if(w.updateTransform){var S=w.updateTransform(b,h,v,f);S&&S.update&&m.push(w)}else m.push(w)}});var y=Kt();h.eachSeries(function(_){var b=d._chartsMap[_.__viewId];if(b.updateTransform){var w=b.updateTransform(_,h,v,f);w&&w.update&&y.set(_.uid,1)}else y.set(_.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:y}),v0(this,h,v,f,{},y),xa.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),ss.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),eC(this,d,this._api,f,{}),xa.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),ss.markUpdateMethod(f,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,m){if(v!=="series"){var y=d.getViewOfComponentModel(m);y&&y.__alive&&y.updateVisual(m,h,d._api,f)}}),h.eachSeries(function(v){var m=d._chartsMap[v.__viewId];m.updateVisual(v,h,d._api,f)}),xa.trigger("afterupdate",h,this._api))},updateLayout:function(f){zl.update.call(this,f)}},qT=function(f,d,h,v){if(f._disposed){f.id;return}for(var m=f._model,y=f._coordSysMgr.getCoordinateSystems(),_,b=gT(m,h),w=0;w<y.length;w++){var S=y[w];if(S[d]&&(_=S[d](m,b,v))!=null)return _}},JT=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(m){v.updateStreamModes(m,h[m.__viewId])})},QT=function(f,d){var h=this,v=this.getModel(),m=f.type,y=f.escapeConnect,_=z1[m],b=_.actionInfo,w=(b.update||"update").split(":"),S=w.pop(),C=w[0]!=null&&os(w[0]);this[Jr]=!0;var T=[f],A=!1;f.batch&&(A=!0,T=Pt(f.batch,function(F){return F=En(Ze({},F),f),F.batch=null,F}));var P=[],I,R=tA(f),O=JN(f);if(O&&BU(this._api),Q(T,function(F){if(I=_.action(F,h._model,h._api),I=I||Ze({},F),I.type=b.event||I.type,P.push(I),O){var z=_R(f),B=z.queryOptionMap,Y=z.mainTypeSpecified,j=Y?B.keys()[0]:"series";p0(h,S,F,j),Ho(h)}else R?(p0(h,S,F,"series"),Ho(h)):C&&p0(h,S,F,C.main,C.sub)}),S!=="none"&&!O&&!R&&!C)try{this[Bi]?(ud(this),zl.update.call(this,f),this[Bi]=null):zl[S].call(this,f)}catch(F){throw this[Jr]=!1,F}if(A?I={type:b.event||m,escapeConnect:y,batch:P}:I=P[0],this[Jr]=!1,!d){var D=this._messageCenter;if(D.trigger(I.type,I),R){var $={type:"selectchanged",escapeConnect:y,selected:xfe(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};D.trigger($.type,$)}}},Cp=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();QT.call(this,h,f)}},Ep=function(f){!f&&this.trigger("updated")},kF=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[Bi]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},FF=function(f,d){f.on("mouseover",function(h){var v=h.target,m=Qp(v,eA);m&&(bfe(m,h,d._api),Ho(d))}).on("mouseout",function(h){var v=h.target,m=Qp(v,eA);m&&(Sfe(m,h,d._api),Ho(d))}).on("click",function(h){var v=h.target,m=Qp(v,function(b){return Dn(b).dataIndex!=null},!0);if(m){var y=m.selected?"unselect":"select",_=Dn(m);d._api.dispatchAction({type:y,dataType:_.dataType,dataIndexInside:_.dataIndex,seriesIndex:_.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function r(f){var d=[],h=[],v=!1;if(f.eachComponent(function(b,w){var S=w.get("zlevel")||0,C=w.get("z")||0,T=w.getZLevelKey();v=v||!!T,(b==="series"?h:d).push({zlevel:S,z:C,idx:w.componentIndex,type:b,key:T})}),v){var m=d.concat(h),y,_;O_(m,function(b,w){return b.zlevel===w.zlevel?b.z-w.z:b.zlevel-w.zlevel}),Q(m,function(b){var w=f.getComponent(b.type,b.idx),S=b.zlevel,C=b.key;y!=null&&(S=Math.max(y,S)),C?(S===y&&C!==_&&S++,_=C):_&&(S===y&&S++,_=""),y=S,w.setZLevel(S)})}}eC=function(f,d,h,v,m){r(d),$F(f,d,h,v,m),Q(f._chartsViews,function(y){y.__alive=!1}),v0(f,d,h,v,m),Q(f._chartsViews,function(y){y.__alive||y.remove(d,h)})},$F=function(f,d,h,v,m,y){Q(y||f._componentsViews,function(_){var b=_.__model;u(b,_),_.render(b,d,h,v),s(b,_),c(b,_)})},v0=function(f,d,h,v,m,y){var _=f._scheduler;m=Ze(m||{},{updatedSeries:d.getSeries()}),xa.trigger("series:beforeupdate",d,h,m);var b=!1;d.eachSeries(function(w){var S=f._chartsMap[w.__viewId];S.__alive=!0;var C=S.renderTask;_.updatePayload(C,v),u(w,S),y&&y.get(w.uid)&&C.dirty(),C.perform(_.getPerformArgs(C))&&(b=!0),S.group.silent=!!w.get("silent"),a(w,S),KN(w)}),_.unfinished=b||_.unfinished,xa.trigger("series:layoutlabels",d,h,m),xa.trigger("series:transition",d,h,m),d.eachSeries(function(w){var S=f._chartsMap[w.__viewId];s(w,S),c(w,S)}),o(f,d),xa.trigger("series:afterupdate",d,h,m)},Ho=function(f){f[XT]=!0,f.getZr().wakeUp()},VF=function(f){f[XT]&&(f.getZr().storage.traverse(function(d){Dv(d)||i(d)}),f[XT]=!1)};function i(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var m=h[v];m==="emphasis"||m==="blur"||m==="select"||d.push(m)}f.selected&&f.states.select&&d.push("select"),f.hoverState===lS&&f.states.emphasis?d.push("emphasis"):f.hoverState===sS&&f.states.blur&&d.push("blur"),f.useStates(d)}function o(f,d){var h=f._zr,v=h.storage,m=0;v.traverse(function(y){y.isGroup||m++}),m>d.get("hoverLayerThreshold")&&!Mt.node&&!Mt.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;w<b.length;w++)v=Math.max(l(b[w],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(m&&(m.z=d,m.zlevel=h,isFinite(v)&&(m.z2=v+2)),y){var S=f.textGuideLineConfig;y.z=d,y.zlevel=h,isFinite(v)&&(y.z2=v+(S&&S.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!Dv(h)){var v=h.getTextContent(),m=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),m=h.get("duration"),y=m>0?{duration:m,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(_){if(_.states&&_.states.emphasis){if(Dv(_))return;if(_ instanceof Ln&&Ife(_),_.__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(_)}})}BF=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){O1(v,m),Ho(f)},h.prototype.leaveEmphasis=function(v,m){M1(v,m),Ho(f)},h.prototype.enterBlur=function(v){yfe(v),Ho(f)},h.prototype.leaveBlur=function(v){NU(v),Ho(f)},h.prototype.enterSelect=function(v){kU(v),Ho(f)},h.prototype.leaveSelect=function(v){FU(v),Ho(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}(s6))(f)},D6=function(f){function d(h,v){for(var m=0;m<h.length;m++){var y=h[m];y[KT]=v}}Q(Fv,function(h,v){f._messageCenter.on(v,function(m){if(UF[f.group]&&f[KT]!==NF){if(m&&m.escapeConnect)return;var y=f.makeActionFromEvent(m),_=[];Q($v,function(b){b!==f&&b.group===f.group&&_.push(b)}),d(_,NF),Q(_,function(b){b[KT]!==_me&&b.dispatchAction(y)}),d(_,bme)}})})}}(),t}(_s),JR=L6.prototype;JR.on=I6("on");JR.off=I6("off");JR.one=function(e,t,n){var r=this;function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),r.off(e,i)}this.on.call(this,e,i,n)};var Sme=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var z1={},Fv={},wA=[],xA=[],W1=[],N6={},TA={},$v={},UF={},wme=+new Date-0,QR="_echarts_instance_";function xme(e,t,n){{var r=Tme(e);if(r)return r}var i=new L6(e,t,n);return i.id="ec_"+wme++,$v[i.id]=i,PU(e,QR,i.id),D6(i),xa.trigger("afterinit",i),i}function Tme(e){return $v[ofe(e,QR)]}function k6(e,t){N6[e]=t}function F6(e){In(xA,e)<0&&xA.push(e)}function $6(e,t){tP(wA,e,t,fme)}function Cme(e){eP("afterinit",e)}function Eme(e){eP("afterupdate",e)}function eP(e,t){xa.on(e,t)}function Rh(e,t,n){Vt(t)&&(n=t,t="");var r=Ct(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!Fv[t]&&(pl(LF.test(r)&&LF.test(t)),z1[r]||(z1[r]={action:n,actionInfo:e}),Fv[t]=r)}function Ame(e,t){BR.register(e,t)}function Ime(e,t){tP(W1,e,t,C6,"layout")}function Rf(e,t){tP(W1,e,t,E6,"visual")}var HF=[];function tP(e,t,n,r,i){if((Vt(t)||Ct(t))&&(n=t,t=r),!(In(HF,n)>=0)){HF.push(n);var o=d6.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function B6(e,t){TA[e]=t}function Rme(e,t,n){var r=ame("registerMap");r&&r(e,t,n)}var Pme=tpe;Rf(qR,Sge);Rf(CS,wge);Rf(CS,xge);Rf(qR,kge);Rf(CS,Fge);Rf(A6,ime);F6(u6);$6(ume,yge);B6("default",Tge);Rh({type:rf,event:rf,update:rf},eo);Rh({type:C_,event:C_,update:C_},eo);Rh({type:Pv,event:Pv,update:Pv},eo);Rh({type:E_,event:E_,update:E_},eo);Rh({type:Ov,event:Ov,update:Ov},eo);k6("light",Lge);k6("dark",g6);var GF=[],Ome={registerPreprocessor:F6,registerProcessor:$6,registerPostInit:Cme,registerPostUpdate:Eme,registerUpdateLifecycle:eP,registerAction:Rh,registerCoordinateSystem:Ame,registerLayout:Ime,registerVisual:Rf,registerTransform:Pme,registerLoading:B6,registerMap:Rme,registerImpl:ome,PRIORITY:yme,ComponentModel:An,ComponentView:ps,SeriesModel:Ou,ChartView:ss,registerComponentModel:function(e){An.registerClass(e)},registerComponentView:function(e){ps.registerClass(e)},registerSeriesModel:function(e){Ou.registerClass(e)},registerChartView:function(e){ss.registerClass(e)},registerSubTypeDefaulter:function(e,t){An.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){qve(e,t)}};function Mu(e){if(ut(e)){Q(e,function(t){Mu(t)});return}In(GF,e)>=0||(GF.push(e),Vt(e)&&(e={install:e}),e.install(Ome))}var Mme=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),Dme=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),CA=function(e){ot(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pa).models[0]},t.type="cartesian2dAxis",t}(An);ys(CA,Dme);var V6={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)"]}}},Lme=_n({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},V6),nP=_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}}},V6),Nme=_n({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},nP),kme=En({logBase:10},nP);const Fme={category:Lme,value:nP,time:Nme,log:kme};var $me=0,EA=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++$me}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Pt(r,Bme);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(!ht(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 Bme(e){return Ct(e)&&e.value!=null?e.value:e+""}var Vme={value:1,category:1,time:1,log:1};function zF(e,t,n,r){Q(Vme,function(i,o){var a=_n(_n({},Fme[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=Ig(this),h=d?TS(c):{},v=f.getTheme();_n(c,v.get(o+"Axis")),_n(c,this.getDefaultOption()),c.type=WF(c),d&&sh(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=EA.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",WF)}function WF(e){return e.type||(e.data?"category":"value")}var Ss=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[0]&&(n[0]=t[0]),t[1]>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}();nS(Ss);function AA(e){return e.type==="interval"||e.type==="log"}function Ume(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=CU(o/t);n!=null&&a<n&&(a=i.interval=n),r!=null&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=U6(a),l=i.niceTickExtent=[_r(Math.ceil(e[0]/a)*a,s),_r(Math.floor(e[1]/a)*a,s)];return Hme(l,e),i}function tC(e){var t=Math.pow(10,mR(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,_r(n*t)}function U6(e){return Js(e)+2}function jF(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Hme(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),jF(e,0,t),jF(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function ES(e,t){return e>=t[0]&&e<=t[1]}function AS(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function IS(e,t){return e*(t[1]-t[0])+t[0]}var rP=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 EA({})),ut(i)&&(i=new EA({categories:Pt(i,function(o){return Ct(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:ht(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),ES(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),AS(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(IS(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<l;++a){var u=r[a];i[a]=u,o[u]=a}for(var c=0;a<s;++a){for(;o[c]!=null;)c++;i.push(c),o[c]=a}},t.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ss);Ss.registerClass(rP);var wc=_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 ES(n,this._extent)},t.prototype.normalize=function(n){return AS(n,this._extent)},t.prototype.scale=function(n){return IS(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[0]&&(r[0]=n[0]),n[1]>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=U6(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]<o[0]&&(n?s.push({value:wc(o[0]-r,a)}):s.push({value:i[0]}));for(var u=o[0];u<=o[1]&&(s.push({value:u}),u=wc(u+r,a),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:o[1];return i[1]>c&&(n?s.push({value:wc(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;a<r.length;a++){for(var s=r[a],l=r[a-1],u=0,c=[],f=s.value-l.value,d=f/n;u<n-1;){var h=wc(l.value+(u+1)*d);h>o[0]&&h<o[1]&&c.push(h),u++}i.push(c)}return i},t.prototype.getLabel=function(n,r){if(n==null)return"";var i=r&&r.precision;i==null?i=Js(n.value)||0:i==="auto"&&(i=this._intervalPrecision);var o=wc(n.value,i,!0);return OH(o)},t.prototype.calcNiceTicks=function(n,r,i){n=n||5;var o=this._extent,a=o[1]-o[0];if(isFinite(a)){a<0&&(a=-a,o.reverse());var s=Ume(o,n,r,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var i=Math.abs(r[0]);n.fixMax||(r[1]+=i/2),r[0]-=i/2}else r[1]=1;var o=r[1]-r[0];isFinite(o)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var a=this._interval;n.fixMin||(r[0]=wc(Math.floor(r[0]/a)*a)),n.fixMax||(r[1]=wc(Math.ceil(r[1]/a)*a))},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t}(Ss);Ss.registerClass(Ph);var Gme=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},H6=function(e){ot(t,e);function t(n){var r=e.call(this,n)||this;return r.type="time",r}return t.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return yS(n.value,Ik[Nhe(Wd(this._minLevelUnit))]||Ik.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,i){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return khe(n,r,i,a,o)},t.prototype.getTicks=function(){var n=this._interval,r=this._extent,i=[];if(!n)return i;i.push({value:r[0],level:0});var o=this.getSetting("useUTC"),a=Zme(this._minLevelUnit,this._approxInterval,o,r);return i=i.concat(a),i.push({value:r[1],level:0}),i},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=Qo,r[1]+=Qo),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-Qo}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},t.prototype.calcNiceTicks=function(n,r,i){n=n||10;var o=this._extent,a=o[1]-o[0];this._approxInterval=a/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=g0.length,l=Math.min(Gme(g0,this._approxInterval,0,s),s-1);this._interval=g0[l][1],this._minLevelUnit=g0[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return Zn(n)?n:+vl(n)},t.prototype.contain=function(n){return ES(this.parse(n),this._extent)},t.prototype.normalize=function(n){return AS(this.parse(n),this._extent)},t.prototype.scale=function(n){return IS(n,this._extent)},t.type="time",t}(Ph),g0=[["second",HR],["minute",GR],["hour",Lv],["quarter-day",Lv*6],["half-day",Lv*12],["day",Qo*1.2],["half-week",Qo*3.5],["week",Qo*7],["month",Qo*31],["quarter",Qo*95],["half-year",Ak/2],["year",Ak]];function zme(e,t,n,r){var i=vl(t),o=vl(n),a=function(v){return Rk(i,v,r)===Rk(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 Wme(e,t){return e/=Qo,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function jme(e){var t=30*Qo;return e/=t,e>6?6:e>3?3:e>2?2:1}function Yme(e){return e/=Lv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function YF(e,t){return e/=t?GR:HR,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Xme(e){return CU(e)}function Kme(e,t,n){var r=new Date(e);switch(Wd(t)){case"year":case"month":r[CH(n)](0);case"day":r[EH(n)](1);case"hour":r[AH(n)](0);case"minute":r[IH(n)](0);case"second":r[RH(n)](0),r[PH(n)](0)}return r.getTime()}function Zme(e,t,n,r){var i=1e4,o=xH,a=0;function s(R,O,D,$,F,z,B){for(var Y=new Date(O),j=O,se=Y[$]();j<D&&j<=r[1];)B.push({value:j}),se+=R,Y[F](se),j=Y.getTime();B.push({value:j,notAdd:!0})}function l(R,O,D){var $=[],F=!O.length;if(!zme(Wd(R),r[0],r[1],n)){F&&(O=[{value:Kme(new Date(r[0]),R,n)},{value:r[1]}]);for(var z=0;z<O.length-1;z++){var B=O[z].value,Y=O[z+1].value;if(B!==Y){var j=void 0,se=void 0,ge=void 0,ve=!1;switch(R){case"year":j=Math.max(1,Math.round(t/Qo/365)),se=zR(n),ge=Fhe(n);break;case"half-year":case"quarter":case"month":j=jme(t),se=jd(n),ge=CH(n);break;case"week":case"half-week":case"day":j=Wme(t),se=_S(n),ge=EH(n),ve=!0;break;case"half-day":case"quarter-day":case"hour":j=Yme(t),se=Ag(n),ge=AH(n);break;case"minute":j=YF(t,!0),se=bS(n),ge=IH(n);break;case"second":j=YF(t,!1),se=SS(n),ge=RH(n);break;case"millisecond":j=Xme(t),se=wS(n),ge=PH(n);break}s(j,B,Y,se,ge,ve,$),R==="year"&&D.length>1&&z===0&&D.unshift({value:D[0].value-j})}}for(var z=0;z<$.length;z++)D.push($[z]);return $}}for(var u=[],c=[],f=0,d=0,h=0;h<o.length&&a++<i;++h){var v=Wd(o[h]);if(Lhe(o[h])){l(o[h],u[u.length-1]||[],c);var m=o[h+1]?Wd(o[h+1]):null;if(v!==m){if(c.length){d=f,c.sort(function(R,O){return R.value-O.value});for(var y=[],_=0;_<c.length;++_){var b=c[_].value;(_===0||c[_-1].value!==b)&&(y.push(c[_]),b>=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(Pt(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}),C=[],T=S.length-1,h=0;h<S.length;++h)for(var A=S[h],P=0;P<A.length;++P)C.push({value:A[P].value,level:T-h});C.sort(function(R,O){return R.value-O.value});for(var I=[],h=0;h<C.length;++h)(h===0||C[h].value!==C[h-1].value)&&I.push(C[h]);return I}Ss.registerClass(H6);var XF=Ss.prototype,Bv=Ph.prototype,qme=_r,Jme=Math.floor,Qme=Math.ceil,m0=Math.pow,ma=Math.log,iP=function(e){ot(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new Ph,n._interval=0,n}return t.prototype.getTicks=function(n){var r=this._originalScale,i=this._extent,o=r.getExtent(),a=Bv.getTicks.call(this,n);return Pt(a,function(s){var l=s.value,u=_r(m0(this.base,l));return u=l===i[0]&&this._fixMin?y0(u,o[0]):u,u=l===i[1]&&this._fixMax?y0(u,o[1]):u,{value:u}},this)},t.prototype.setExtent=function(n,r){var i=ma(this.base);n=ma(Math.max(0,n))/i,r=ma(Math.max(0,r))/i,Bv.setExtent.call(this,n,r)},t.prototype.getExtent=function(){var n=this.base,r=XF.getExtent.call(this);r[0]=m0(n,r[0]),r[1]=m0(n,r[1]);var i=this._originalScale,o=i.getExtent();return this._fixMin&&(r[0]=y0(r[0],o[0])),this._fixMax&&(r[1]=y0(r[1],o[1])),r},t.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=ma(n[0])/ma(r),n[1]=ma(n[1])/ma(r),XF.unionExtent.call(this,n)},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,i=r[1]-r[0];if(!(i===1/0||i<=0)){var o=Wce(i),a=n/i*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[_r(Qme(r[0]/o)*o),_r(Jme(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){Bv.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),ES(n,this._extent)},t.prototype.normalize=function(n){return n=ma(n)/ma(this.base),AS(n,this._extent)},t.prototype.scale=function(n){return n=IS(n,this._extent),m0(this.base,n)},t.type="log",t}(Ss),G6=iP.prototype;G6.getMinorTicks=Bv.getMinorTicks;G6.getLabel=Bv.getLabel;function y0(e,t){return qme(e,Js(t))}Ss.registerClass(iP);var eye=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var o=n.get("min",!0);o==null&&(o=n.get("startValue",!0));var a=this._modelMinRaw=o;Vt(a)?this._modelMinNum=_0(t,a({min:r[0],max:r[1]})):a!=="dataMin"&&(this._modelMinNum=_0(t,a));var s=this._modelMaxRaw=n.get("max",!0);if(Vt(s)?this._modelMaxNum=_0(t,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=_0(t,s)),i)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),u=ut(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[mf(u[0],1),mf(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,n=this._dataMin,r=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:n-o[0]*a),l==null&&(l=t?i?i-1:NaN:r+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=S1(s)||S1(l)||t&&!i;this._needCrossZero&&(s>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[nye[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=tye[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),tye={min:"_determinedMin",max:"_determinedMax"},nye={min:"_dataMin",max:"_dataMax"};function rye(e,t,n){var r=e.rawExtentInfo;return r||(r=new eye(e,t,n),e.rawExtentInfo=r,r)}function _0(e,t){return t==null?null:S1(t)?NaN:e.parse(t)}function z6(e,t){var n=e.type,r=rye(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=hve("bar",a),l=!1;if(Q(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=vve(s),c=iye(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function iye(e,t,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=mve(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 KF(e,t){var n=t,r=z6(e,n),i=r.extent,o=n.get("splitNumber");e instanceof iP&&(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 oye(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new rP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new H6({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ss.getClass(t)||Ph)}}function aye(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):ht(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(oP(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function oP(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function sye(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof rP?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;c<i;c+=u){var f=r?r[c]:{value:o[0]+c},d=s(f,c),h=a.getTextRect(d),v=lye(h,a.get("rotate")||0);l?l.union(v):l=v}return l}}function lye(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new bn(e.x,e.y,o,a);return s}function aP(e){var t=e.get("interval");return t??"auto"}function W6(e){return e.type==="category"&&aP(e.getLabelModel())===0}function uye(e,t){var n={};return Q(e.mapDimensionsAll(t),function(r){n[hhe(e,r)]=!0}),Kn(n)}var cye=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Pt(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ur(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e}(),IA=["x","y"];function ZF(e){return e.type==="interval"||e.type==="time"}var fye=function(e){ot(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=IA,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!ZF(n)||!ZF(r))){var i=n.getExtent(),o=r.getExtent(),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],u=o[1]-o[0];if(!(!l||!u)){var c=(s[0]-a[0])/l,f=(s[1]-a[1])/u,d=a[0]-i[0]*c,h=a[1]-o[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=dR([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var i=this.dataToPoint(n),o=this.dataToPoint(r),a=this.getArea(),s=new bn(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},t.prototype.dataToPoint=function(n,r,i){i=i||[];var o=n[0],a=n[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return ta(i,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,r)),i[1]=l.toGlobalCoord(l.dataToCoord(a,r)),i},t.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(n[0]),u=o.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var i=[];if(this._invTransform)return ta(i,n,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(n[0]),r),i[1]=a.coordToData(a.toLocalCoord(n[1]),r),i},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1])-n,a=Math.min(i[0],i[1])-n,s=Math.max(r[0],r[1])-o+n,l=Math.max(i[0],i[1])-a+n;return new bn(o,a,s,l)},t}(cye),Dg=Ar();function j6(e,t){var n=Pt(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function dye(e){var t=e.getLabelModel().get("customValues");if(t){var n=Oh(e),r=e.scale.getExtent(),i=j6(e,t),o=Ur(i,function(a){return a>=r[0]&&a<=r[1]});return{labels:Pt(o,function(a){var s={value:a};return{formattedLabel:n(s),rawLabel:e.scale.getLabel(s),tickValue:a}})}}return e.type==="category"?pye(e):gye(e)}function hye(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),i=j6(e,n);return{ticks:Ur(i,function(o){return o>=r[0]&&o<=r[1]})}}return e.type==="category"?vye(e,t):{ticks:Pt(e.scale.getTicks(),function(o){return o.value})}}function pye(e){var t=e.getLabelModel(),n=Y6(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Y6(e,t){var n=X6(e,"labels"),r=aP(t),i=K6(n,r);if(i)return i;var o,a;return Vt(r)?o=J6(e,r):(a=r==="auto"?mye(e):r,o=q6(e,a)),Z6(n,r,{labels:o,labelCategoryInterval:a})}function vye(e,t){var n=X6(e,"ticks"),r=aP(t),i=K6(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),Vt(r))o=J6(e,r,!0);else if(r==="auto"){var s=Y6(e,e.getLabelModel());a=s.labelCategoryInterval,o=Pt(s.labels,function(l){return l.tickValue})}else a=r,o=q6(e,a,!0);return Z6(n,r,{ticks:o,tickCategoryInterval:a})}function gye(e){var t=e.scale.getTicks(),n=Oh(e);return{labels:Pt(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function X6(e,t){return Dg(e)[t]||(Dg(e)[t]=[])}function K6(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function Z6(e,t,n){return e.push({key:t,value:n}),n}function mye(e){var t=Dg(e).autoInterval;return t??(Dg(e).autoInterval=e.calculateCategoryInterval())}function yye(e){var t=_ye(e),n=Oh(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(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=hR(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=Dg(e.model),C=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===C[0]&&S.axisExtent1===C[1]?w=T:(S.lastTickCount=a,S.lastAutoInterval=w,S.axisExtent0=C[0],S.axisExtent1=C[1]),w}function _ye(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 q6(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=W6(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 J6(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 qF=[0,1],bye=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 Hce(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(),JF(r,i.count())),FN(t,qF,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),JF(r,i.count()));var o=FN(t,r,qF,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=hye(this,n),i=r.ticks,o=Pt(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return Sye(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=Pt(r,function(o){return Pt(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return dye(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 yye(this)},e}();function JF(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function Sye(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:h<v}}var wye=function(e){ot(t,e);function t(n,r,i,o,a){var s=e.call(this,n,r,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[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}(bye);function RA(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),Sg(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 e3(e){var t={xAxisModel:null,yAxisModel:null};return Q(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,Pa).models[0];t[r]=o}),t}var nC=Math.log;function xye(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=z6(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=nC(e.base);u=[nC(u[0])/d,nC(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;y<u[1]&&isFinite(y)&&isFinite(u[1]);)v=tC(v),y=u[0]+v*a;else if(f)for(m=u[1]-v*a;m>u[0]&&isFinite(m)&&isFinite(u[0]);)v=tC(v),m=u[1]-v*a;else{var _=e.getTicks().length-1;_>a&&(v=tC(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 Tye=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=IA,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;AA(m)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(KF(m,v),AA(m)&&(s=h))}c.length&&(s||(s=c.pop(),KF(s.scale,s.model)),Q(c,function(y){xye(y.scale,y.model,s.scale)}))}}i(r.x),i(r.y);var o={};Q(r.x,function(a){t3(r,"y",a,o)}),Q(r.y,function(a){t3(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=$1(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=sye(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]),Cye(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]}Ct(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===n)return o[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},e.prototype.convertFromPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",Pa).models[0],i=t.yAxisModel||n&&n.getReferringComponents("yAxis",Pa).models[0],o=t.gridModel,a=this._coordsList,s,l;if(n)s=n.coordinateSystem,In(a,s)<0&&(s=null);else if(r&&i)s=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,r){var i=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,Q(s.x,function(c,f){Q(s.y,function(d,h){var v="x"+f+"y"+h,m=new fye(v);m.master=i,m.model=t,i._coordsMap[v]=m,i._coordsList.push(m),m.addAxis(c),m.addAxis(d)})});function u(c){return function(f,d){if(rC(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=a.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=a.left?"right":"left"),a[h]=!0;var v=new wye(c,oye(f),[0,0],f.get("type"),h),m=v.type==="category";v.onBand=m&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=o,v.index=d,o._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,n){Q(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var o=i.model.get("categorySortInfo");i.scale.setSortInfo(o)}}),t.eachSeries(function(i){if(QF(i)){var o=e3(i),a=o.xAxisModel,s=o.yAxisModel;if(!rC(a,n)||!rC(s,n))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");r(u,c),r(u,f)}},this);function r(i,o){Q(uye(i,o.dim),function(a){o.scale.unionExtentFromData(i,a)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return Q(this.getCartesians(),function(i){var o=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);In(n,o)<0&&n.push(o),In(r,a)<0&&r.push(a)}),{baseAxes:n,otherAxes:r}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),t.eachSeries(function(i){if(QF(i)){var o=e3(i),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(a.componentIndex,s.componentIndex)}}),r},e.dimensions=IA,e}();function rC(e,t){return e.getCoordSysModel()===t}function t3(e,t,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var i=e[t],o,a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)n3(i[l])&&(o=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&n3(i[u])&&!r[c(i[u])]){o=i[u];break}o&&(r[c(o)]=!0);function c(f){return f.dim+"_"+f.index}}function n3(e){return e&&e.type!=="category"&&e.type!=="time"&&aye(e)}function Cye(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return r-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return r-i+t}}var du=Math.PI,wu=function(){function e(t,n){this.group=new vi,this.opt=n,this.axisModel=t,En(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new vi({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return e.prototype.hasBuilder=function(t){return!!r3[t]},e.prototype.add=function(t){r3[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,n,r){var i=TU(n-t),o,a;return R1(i)?(a=r>0?"top":"bottom",o="center"):R1(i-du)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i<du?o=r>0?"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}(),r3={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=Ze({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Ru({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Cg(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"]);ht(d)&&(d=[d,d]),(ht(h)||Zn(h))&&(h=[h,h]);var v=UH(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,C=u?l:s;w.attr({rotation:_.rotate,x:C[0]+S*Math.cos(e.rotation),y:C[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabel:function(e,t,n,r){var i=Iye(n,r,t,e),o=Pye(n,r,t,e);if(Aye(t,o,i),Rye(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=Sve(Pt(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));wve(a)}},axisName:function(e,t,n,r){var i=Sg(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,o3(o)?e.labelOffset+a*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*du/180);var v;o3(o)?d=wu.innerTextLayout(e.rotation,h??e.rotation,a):(d=Eye(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=Sg(e.nameTruncateMaxWidth,y.maxWidth,v),w=new ao({x:f[0],y:f[1],rotation:d.rotation,silent:wu.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(hS({el:w,componentModel:t,itemName:i}),w.__fullText=i,w.anid="name",t.get("triggerEvent")){var S=wu.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Dn(w).eventData=S}r.add(w),w.updateTransform(),n.add(w),w.decomposeTransform()}}};function Eye(e,t,n,r){var i=TU(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return R1(i-du/2)?(a=l?"bottom":"top",o="center"):R1(i-du*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<du*1.5&&i>du/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function Aye(e,t,n){if(!W6(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?(Go(o),Go(u)):i3(o,a)&&(r?(Go(a),Go(c)):(Go(o),Go(u))),i===!1?(Go(s),Go(f)):i3(l,s)&&(i?(Go(l),Go(d)):(Go(s),Go(f)))}}function Go(e){e&&(e.ignore=!0)}function i3(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=cR([]);return fR(i,i,-e.rotation),n.applyTransform(Ud([],i,e.getLocalTransform())),r.applyTransform(Ud([],i,t.getLocalTransform())),n.intersect(r)}}function o3(e){return e==="middle"||e==="center"}function Q6(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(ta(a,a,t),ta(s,s,t));var c=new Ru({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Cg(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,o.push(c)}return o}function Iye(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),!(!a||i.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=i.getTicksCoords(),c=Q6(u,t.transform,l,En(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function Rye(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(!(!o.get("show")||i.scale.isBlank())){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=En(s.getLineStyle(),En(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var f=Q6(a[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function Pye(e,t,n,r){var i=n.axis,o=Sg(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!o||i.scale.isBlank())){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(Sg(r.labelRotate,a.get("rotate"))||0)*du/180,c=wu.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=wu.isLabelSilent(n),v=n.get("triggerEvent");return Q(l,function(m,y){var _=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,b=m.formattedLabel,w=m.rawLabel,S=a;if(f&&f[_]){var C=f[_];Ct(C)&&C.textStyle&&(S=new sr(C.textStyle,a,n.ecModel))}var T=S.getTextColor()||n.get(["axisLine","lineStyle","color"]),A=i.dataToCoord(_),P=S.getShallow("align",!0)||c.textAlign,I=nn(S.getShallow("alignMinLabel",!0),P),R=nn(S.getShallow("alignMaxLabel",!0),P),O=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,D=nn(S.getShallow("verticalAlignMinLabel",!0),O),$=nn(S.getShallow("verticalAlignMaxLabel",!0),O),F=new ao({x:A,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(m.level||0),style:oh(S,{text:b,align:y===0?I:y===l.length-1?R:P,verticalAlign:y===0?D:y===l.length-1?$:O,fill:Vt(T)?T(i.type==="category"?w:i.type==="value"?_+"":_,y):T})});if(F.anid="label_"+_,hS({el:F,componentModel:n,itemName:b,formatterParamsExtra:{isTruncated:function(){return F.isTruncated},value:w,tickIndex:y}}),v){var z=wu.makeAxisEventDataBase(n);z.targetType="axisLabel",z.value=w,z.tickIndex=y,i.type==="category"&&(z.dataIndex=_),Dn(F).eventData=z}t.add(F),F.updateTransform(),d.push(F),e.add(F),F.decomposeTransform()}),d}}function Oye(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Mye(n,e,t),n.seriesInvolved&&Lye(n,e),n}function Mye(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Q(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Lg(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(Q(s.getAxes(),Mr(m,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&Q(v.baseAxes,Mr(m,h?"cross":!0,d)),h&&Q(v.otherAxes,Mr(m,"cross",!1))}function m(y,_,b){var w=b.model.getModel("axisPointer",i),S=w.get("show");if(!(!S||S==="auto"&&!y&&!PA(w))){_==null&&(_=w.get("triggerTooltip")),w=y?Dye(b,f,i,t,y,_):w;var C=w.get("snap"),T=w.get("triggerEmphasis"),A=Lg(b.model),P=_||C||b.type==="category",I=e.axesInfo[A]={key:A,axis:b,coordSys:s,axisPointerModel:w,triggerTooltip:_,triggerEmphasis:T,involveSeries:P,snap:C,useHandle:PA(w),seriesModels:[],linkGroup:null};u[A]=I,e.seriesInvolved=e.seriesInvolved||P;var R=Nye(o,b);if(R!=null){var O=a[R]||(a[R]={axesInfo:{}});O.axesInfo[A]=I,O.mapper=o[R].mapper,I.linkGroup=O}}}})}function Dye(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Q(s,function(d){l[d]=ln(a.get(d))}),l.snap=e.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=a.get(["label","show"]);if(u.show=c??!0,!o){var f=l.lineStyle=a.get("crossStyle");f&&En(u,f.textStyle)}}return e.model.getModel("axisPointer",new sr(l,n,r))}function Lye(e,t){t.eachSeries(function(n){var r=n.coordinateSystem,i=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!r||i==="none"||i===!1||i==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||Q(e.coordSysAxesInfo[Lg(r.model)],function(a){var s=a.axis;r.getAxis(s.dim)===s&&(a.seriesModels.push(n),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=n.getData().count())})})}function Nye(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(iC(o[r+"AxisId"],n.id)||iC(o[r+"AxisIndex"],n.componentIndex)||iC(o[r+"AxisName"],n.name))return i}}function iC(e,t){return e==="all"||ut(e)&&In(e,t)>=0||e===t}function kye(e){var t=sP(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=PA(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]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function sP(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Lg(e)]}function Fye(e){var t=sP(e);return t&&t.axisPointerModel}function PA(e){return!!e.get(["handle","show"])}function Lg(e){return e.type+"||"+e.id}var a3={},e8=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,o){this.axisPointerClass&&kye(n),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,i,!0)},t.prototype.updateAxisPointer=function(n,r,i,o){this._doUpdateAxisPointerClass(n,i,!1)},t.prototype.remove=function(n,r){var i=this._axisPointer;i&&i.remove(r)},t.prototype.dispose=function(n,r){this._disposeAxisPointer(r),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,r,i){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=Fye(n);a?(this._axisPointer||(this._axisPointer=new o)).render(n,a,r,i):this._disposeAxisPointer(r)}},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},t.registerAxisPointerClass=function(n,r){a3[n]=r},t.getAxisPointerClass=function(n){return n&&a3[n]},t.type="axis",t}(ps),OA=Ar();function $ye(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,f=OA(e).splitAreaColors,d=Kt(),h=0;if(f)for(var v=0;v<u.length;v++){var m=f.get(u[v].tickValue);if(m!=null){h=(m+(c-1)*v)%c;break}}var y=i.toGlobalCoord(u[0].coord),_=a.getAreaStyle();s=ut(s)?s:[s];for(var v=1;v<u.length;v++){var b=i.toGlobalCoord(u[v].coord),w=void 0,S=void 0,C=void 0,T=void 0;i.isHorizontal()?(w=y,S=l.y,C=b-w,T=l.height,y=w+C):(w=l.x,S=y,C=l.width,T=b-S,y=S+T);var A=u[v-1].tickValue;A!=null&&d.set(A,h),t.add(new jr({anid:A!=null?"area_"+A:null,shape:{x:w,y:S,width:C,height:T},style:En({fill:s[h]},_),autoBatch:!0,silent:!0})),h=(h+1)%c}OA(e).splitAreaColors=d}}}function Bye(e){OA(e).splitAreaColors=null}var Vye=["axisLine","axisTickLabel","axisName"],Uye=["splitArea","splitLine","minorSplitLine"],t8=function(e){ot(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return t.prototype.render=function(n,r,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new vi,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=RA(s,n),u=new wu(n,Ze({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(AA(d[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));Q(Vye,u.add,u),this._axisGroup.add(u.getGroup()),Q(Uye,function(f){n.get([f,"show"])&&Hye[f](this,this._axisGroup,n,s)},this);var c=o&&o.type==="changeAxisOrder"&&o.isInitSort;c||ZU(a,this._axisGroup,n),e.prototype.render.call(this,n,r,i,o)}},t.prototype.remove=function(){Bye(this)},t.type="cartesianAxis",t}(e8),Hye={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color"),l=o.get("showMinLine")!==!1,u=o.get("showMaxLine")!==!1;s=ut(s)?s:[s];for(var c=r.coordinateSystem.getRect(),f=i.isHorizontal(),d=0,h=i.getTicksCoords({tickModel:o}),v=[],m=[],y=a.getLineStyle(),_=0;_<h.length;_++){var b=i.toGlobalCoord(h[_].coord);if(!(_===0&&!l||_===h.length-1&&!u)){var w=h[_].tickValue;f?(v[0]=b,v[1]=c.y,m[0]=b,m[1]=c.y+c.height):(v[0]=c.x,v[1]=b,m[0]=c.x+c.width,m[1]=b);var S=d++%s.length,C=new Ru({anid:w!=null?"line_"+w:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:En({stroke:s[S]},y),silent:!0});Cg(C.shape,y.lineWidth),t.add(C)}}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=a.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var m=i.toGlobalCoord(u[h][v].coord);l?(c[0]=m,c[1]=s.y,f[0]=m,f[1]=s.y+s.height):(c[0]=s.x,c[1]=m,f[0]=s.x+s.width,f[1]=m);var y=new Ru({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});Cg(y.shape,d.lineWidth),t.add(y)}},splitArea:function(e,t,n,r){$ye(e,t,n,r)}},n8=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="xAxis",t}(t8),Gye=function(e){ot(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=n8.type,n}return t.type="yAxis",t}(t8),zye=function(e){ot(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new jr({shape:n.coordinateSystem.getRect(),style:En({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ps),s3={offset:0};function Wye(e){e.registerComponentView(zye),e.registerComponentModel(Mme),e.registerCoordinateSystem("cartesian2d",Tye),zF(e,"x",CA,s3),zF(e,"y",CA,s3),e.registerComponentView(n8),e.registerComponentView(Gye),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Dc=Ar(),l3=ln,oC=Xn,jye=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,i){var o=n.get("value"),a=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new vi,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=Mr(u3,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}f3(s,n,!0),this._renderHandle(o)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),i=t.axis,o=i.type==="category",a=n.get("snap");if(!a&&!o)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(a){var l=sP(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=Dc(t).pointerEl=new Sde[o.type](l3(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=Dc(t).labelEl=new ao(l3(n.label));t.add(o),c3(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Dc(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=Dc(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),c3(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=DR(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){QH(u.event)},onmousedown:oC(this._onHandleDragMove,this,0,0),drift:oC(this._onHandleDragMove,this),ondragend:oC(this._onHandleDragEnd,this)}),r.add(i)),f3(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ut(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,JH(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){u3(this._axisPointerModel,!n&&this._moveAnimation,this._handle,aC(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(aC(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(aC(i)),Dc(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),pA(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 u3(e,t,n,r){r8(Dc(n).lastProp,r)||(Dc(n).lastProp=r,t?Pu(n,r,e):(n.stopAnimation(),n.attr(r)))}function r8(e,t){if(Ct(e)&&Ct(t)){var n=!0;return Q(t,function(r,i){n=n&&r8(e[i],r)}),!!n}else return e===t}function c3(e,t){e[t.get(["label","show"])?"show":"hide"]()}function aC(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function f3(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 Yye(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 Xye(e,t,n,r,i){var o=n.get("value"),a=i8(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=xS(s.get("padding")||0),u=s.getFont(),c=hR(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),Kye(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 Kye(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 i8(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:oP(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)}),ht(a)?o=a.replace("{value}",o):Vt(a)&&(o=a(s))}return o}function o8(e,t,n){var r=Vd();return fR(r,r,n.rotation),$E(r,r,n.position),MR([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Zye(e,t,n,r,i,o){var a=wu.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Xye(t,r,i,o,{position:o8(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function qye(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Jye(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var Qye=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=d3(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=Yye(o),h=e0e[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=RA(l.model,i);Zye(r,n,v,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=RA(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=o8(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=d3(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}(jye);function d3(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var e0e={line:function(e,t,n){var r=qye([t,n[0]],[t,n[1]],h3(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:Jye([t-r/2,n[0]],[r,i],h3(e))}}};function h3(e){return e.dim==="x"?0:1}var t0e=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),Qs=Ar(),n0e=Q;function a8(e,t,n){if(!Mt.node){var r=t.getZr();Qs(r).records||(Qs(r).records={}),r0e(r,t);var i=Qs(r).records[e]||(Qs(r).records[e]={});i.handler=n}}function r0e(e,t){if(Qs(e).initialized)return;Qs(e).initialized=!0,n("click",Mr(p3,"click")),n("mousemove",Mr(p3,"mousemove")),n("globalout",o0e);function n(r,i){e.on(r,function(o){var a=a0e(t);n0e(Qs(e).records,function(s){s&&i(s,o,a.dispatchAction)}),i0e(a.pendings,t)})}}function i0e(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 o0e(e,t,n){e.handler("leave",null,n)}function p3(e,t,n,r){t.handler(e,n,r)}function a0e(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 MA(e,t){if(!Mt.node){var n=t.getZr(),r=(Qs(n).records||{})[e];r&&(Qs(n).records[e]=null)}}var s0e=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";a8("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){MA("axisPointer",r)},t.prototype.dispose=function(n,r){MA("axisPointer",r)},t.type="axisPointer",t}(ps);function s8(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=_f(o,e);if(a==null||a<0||ut(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(Pt(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 v3=Ar();function l0e(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){L_(i)&&(i=s8({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=L_(i),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||L_(i),d={},h={},v={list:[],map:{}},m={showPointer:Mr(c0e,h),showTooltip:Mr(f0e,v)};Q(s.coordSysMap,function(_,b){var w=l||_.containPoint(i);Q(s.coordSysAxesInfo[b],function(S,C){var T=S.axis,A=v0e(u,S);if(!f&&w&&(!u||A)){var P=A&&A.value;P==null&&!l&&(P=T.pointToData(i)),P!=null&&g3(S,P,m,!1,d)}})});var y={};return Q(c,function(_,b){var w=_.linkGroup;w&&!h[b]&&Q(w.axesInfo,function(S,C){var T=h[C];if(S!==_&&T){var A=T.value;w.mapper&&(A=_.axis.scale.parse(w.mapper(A,m3(S),m3(_)))),y[_.key]=A}})}),Q(y,function(_,b){g3(c[b],_,m,!0,d)}),d0e(h,c,d),h0e(v,i,e,a),p0e(c,a,n),d}}function g3(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=u0e(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Ze(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function u0e(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<a||v>=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 c0e(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function f0e(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=Lg(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 d0e(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 h0e(e,t,n,r){if(L_(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 p0e(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=v3(r)[i]||{},a=v3(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 v0e(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 m3(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 L_(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function l8(e){e8.registerAxisPointerClass("CartesianAxisPointer",Qye),e.registerComponentModel(t0e),e.registerComponentView(s0e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!ut(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Oye(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},l0e)}function g0e(e){Mu(Wye),Mu(l8)}function m0e(e,t){var n=xS(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new jr({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 y0e=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 u8(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function c8(e){if(Mt.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var f8=c8(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),_0e=c8(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function d8(e,t){if(!e)return t;t=MH(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function b0e(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?n[t]:null}var S0e=d8(_0e,"transition"),lP=d8(f8,"transform"),w0e="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Mt.transform3dSupported?"will-change:transform;":"");function x0e(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function T0e(e,t,n){if(!ht(n)||n==="inside")return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=bf(t);var o=x0e(n),a=Math.max(Math.round(i)*1.5,6),s="",l=lP+":",u;In(["left","right"],o)>-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'<div style="'+m.join("")+'"></div>'}function C0e(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+=Mt.transformSupported?","+lP+r:",left"+r+",top"+r),S0e+":"+i}function y3(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Mt.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Mt.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+lP+":"+a+";":[["top",0],["left",0],[f8,a]]}function E0e(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 A0e(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=VH(e,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),t&&i&&r.push(C0e(i,n)),o&&r.push("background-color:"+o),Q(["width","color","radius"],function(h){var v="border-"+h,m=MH(v),y=e.get(m);y!=null&&r.push(v+":"+y+(h==="color"?"":"px"))}),r.push(E0e(c)),f!=null&&r.push("padding:"+xS(f).join("px ")+"px"),r.join(";")+";"}function _3(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&The(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 I0e=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,Mt.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&&(ht(o)?document.querySelector(o):bg(o)?o:Vt(o)&&o(t.getDom()));_3(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();jo(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=b0e(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=w0e+A0e(t,!this._firstShow,this._longHide)+y3(o[0],o[1],!0)+("border-color:"+bf(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(ht(o)&&r.get("trigger")==="item"&&!u8(r)&&(s=T0e(r,i,o)),ht(t))a.innerHTML=t+s;else if(t){a.innerHTML="",ut(t)||(t=[t]);for(var l=0;l<t.length;l++)bg(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,n){if(this.el){var r=this._styleCoord;if(_3(r,this._zr,this._container,t,n),r[0]!=null&&r[1]!=null){var i=this.el.style,o=y3(r[0],r[1]);Q(o,function(a){i[a[0]]=a[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Mt.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Xn(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}(),R0e=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),S3(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,r,i,o){var a=this;Ct(t)&&Xi(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new ao({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:VH(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),Q(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=r.get(u)}),Q(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,n=this.el.getBoundingRect(),r=b3(t.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},e.prototype.moveTo=function(t,n){var r=this.el;if(r){var i=this._styleCoord;S3(i,this._zr,t,n),t=i[0],n=i[1];var o=r.style,a=Xl(o.borderWidth||0),s=b3(o);r.x=t+a+s.left,r.y=n+a+s.top,r.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Xn(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Xl(e){return Math.max(0,e)}function b3(e){var t=Xl(e.shadowBlur||0),n=Xl(e.shadowOffsetX||0),r=Xl(e.shadowOffsetY||0);return{left:Xl(t-n),right:Xl(t+n),top:Xl(t-r),bottom:Xl(t+r)}}function S3(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var P0e=new jr({shape:{x:-1,y:-1,width:2,height:2}}),O0e=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.init=function(n,r){if(!(Mt.node||!r.getDom())){var i=n.getComponent("tooltip"),o=this._renderMode=afe(i.get("renderMode"));this._tooltipContent=o==="richText"?new R0e(r):new I0e(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(n,r,i){if(!(Mt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=i;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?JH(this,"_updatePosition",50,"fixRate"):pA(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");a8("itemTooltip",this._api,Xn(function(i,o,a){r!=="none"&&(r.indexOf(i)>=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||Mt.node||!i.getDom())){var a=w3(o,i);this._ticket="";var s=o.dataByCoordSys,l=N0e(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=P0e;c.x=o.x,c.y=o.y,c.update(),Dn(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=s8(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(w3(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=Dn(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Qp(i,function(c){if(Dn(c).dataIndex!=null)return l=c,!0;if(Dn(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=Rg("section",{blocks:[],noHeader:!0}),f=[],d=new MT;Q(n,function(b){Q(b.dataByAxis,function(w){var S=i.getComponent(w.axisDim+"Axis",w.axisIndex),C=w.value;if(!(!S||C==null)){var T=i8(C,S.axis,i,w.seriesDataIndices,w.valueLabelOpt),A=Rg("section",{header:T,noHeader:!is(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=oP(S.axis,{value:C}),O.axisValueLabel=T,O.marker=d.makeTooltipMarker("item",bf(O.color),l);var D=Mk(I.formatTooltip(R,!0,null)),$=D.frag;if($){var F=Ap([I],o).get("valueFormatter");A.blocks.push(F?Ze({valueFormatter:F},$):$)}D.text&&f.push(D.text),u.push(O)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,v=s.get("order"),m=Nk(c,d,l,v,i.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var y=l==="richText"?`
|
||
|
||
`:"<br/>",_=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=Dn(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 MT;_.marker=b.makeTooltipMarker("item",bf(_.color),h);var w=Mk(u.formatTooltip(c,!1,f)),S=m.get("order"),C=m.get("valueFormatter"),T=w.frag,A=T?Nk(C?Ze({valueFormatter:C},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=Dn(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(ht(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=ln(l),l.content=Ki(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 MT;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(ht(d)){var y=n.ecModel.get("useUTC"),_=ut(i)?i[0]:i,b=_&&_.axisType&&_.axisType.indexOf("time")>=0;h=d,b&&(h=yS(_.axisValue,h,y)),h=DH(h,i,!0)}else if(Vt(d)){var w=Xn(function(S,C){S===this._ticket&&(f.setContent(C,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"||ut(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ut(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()})),ut(r))i=Ei(r[0],u),o=Ei(r[1],c);else if(Ct(r)){var m=r;m.width=f[0],m.height=f[1];var y=$1(m,{width:u,height:c});i=y.x,o=y.y,d=null,h=null}else if(ht(r)&&l){var _=L0e(r,v,f,n.get("borderWidth"));i=_[0],o=_[1]}else{var _=M0e(i,o,a,u,c,d?null:20,h?null:20);i=_[0],o=_[1]}if(d&&(i-=x3(d)?f[0]/2:d==="right"?f[0]:0),h&&(o-=x3(h)?f[1]/2:h==="bottom"?f[1]:0),u8(n)){var _=D0e(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){Mt.node||!r.getDom()||(pA(this,"_updatePosition"),this._tooltipContent.dispose(),MA("itemTooltip",r))},t.type="tooltip",t}(ps);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)),ht(a)&&(a={formatter:a}),a&&(i=new sr(a,i,r)))}return i}function w3(e,t){return e.dispatchAction||Xn(t.dispatchAction,t)}function M0e(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 D0e(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 L0e(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 x3(e){return e==="center"||e==="middle"}function N0e(e,t,n){var r=_R(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=cm(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=Dn(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function k0e(e){Mu(l8),e.registerComponentModel(y0e),e.registerComponentView(O0e),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},eo),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},eo)}var F0e=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"])}},DA=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"]),ut(r)&&Q(r,function(o,a){ht(o)&&(o={type:o}),r[a]=_n(o,F0e(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<n.length;i++){var o=n[i].get("name");if(this.isSelected(o)){this.select(o),r=!0;break}}!r&&this.select(n[0].get("name"))}},t.prototype._updateData=function(n){var r=[],i=[];n.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();n.isSeriesFiltered(l)||(i=i.concat(d)),d.length?r=r.concat(d):c=!0}else c=!0;c&&yR(l)&&r.push(l.name)}),this._availableNames=i;var o=this.get("data")||r,a=Kt(),s=Pt(o,function(l){return(ht(l)||Zn(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new sr(l,this,this.ecModel))},this);this._data=Ur(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var o=this._data;Q(o,function(a){r[a.get("name")]=!1})}r[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,r=this.option.selected;Q(n,function(i){r[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;Q(n,function(i){var o=i.get("name",!0);r.hasOwnProperty(o)||(r[o]=!0),r[o]=!r[o]})},t.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&In(this._availableNames,n)>=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),cd=Mr,LA=Q,b0=vi,h8=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 b0),this.group.add(this._selectorGroup=new b0),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=$1(c,f,d),v=this.layoutInner(n,a,h,o,l,u),m=$1(En({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=m0e(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)}),LA(r.getData(),function(h,v){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
||
`)){var y=new b0;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"),C=b.getVisual("style"),T=this._createItem(_,m,v,h,r,n,w,C,S,f,o);T.on("click",cd(T3,m,null,o,d)).on("mouseover",cd(NA,_.name,null,o,d)).on("mouseout",cd(kA,_.name,null,o,d)),i.ssr&&T.eachChild(function(A){var P=Dn(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"),D=nl(R.fill);D&&D[3]===0&&(D[3]=.2,R=Ze(Ze({},R),{fill:iS(D,"rgba")}));var $=this._createItem(A,m,v,h,r,n,{},R,O,f,o);$.on("click",cd(T3,null,m,o,d)).on("mouseover",cd(NA,null,m,o,d)).on("mouseout",cd(kA,null,m,o,d)),i.ssr&&$.eachChild(function(F){var z=Dn(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();LA(n,function(u){var c=u.type,f=new ao({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"]);NR(f,{normal:d,emphasis:h},{defaultText:u.title}),JE(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=$0e(c,o,l,u,h,y,d),C=new b0,T=o.getModel("textStyle");if(Vt(n.getLegendIcon)&&(!w||w==="inherit"))C.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;C.add(B0e({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;ht(R)&&R?O=R.replace("{name}",r??""):Vt(R)&&(O=R(r));var D=y?T.getTextColor():o.get("inactiveColor");C.add(new ao({style:oh(T,{text:O,x:P,y:m/2,fill:D,align:I,verticalAlign:"middle"},{inheritColor:D})}));var $=new jr({shape:C.getBoundingRect(),style:{fill:"transparent"}}),F=o.getModel("tooltip");return F.get("show")&&hS({el:$,componentModel:a,itemName:r,itemTooltipOption:F.option}),C.add($),C.eachChild(function(z){z.silent=!0}),$.silent=!f,this.getContentGroup().add(C),JE(C),C.__legendDataIndex=i,C},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Nv(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){Nv("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}(ps);function $0e(e,t,n,r,i,o,a){function s(y,_){y.lineWidth==="auto"&&(y.lineWidth=_.lineWidth>0?2:0),LA(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:SA(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 B0e(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 T3(e,t,n,r){kA(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),NA(e,t,n,r)}function p8(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function NA(e,t,n,r){p8(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function kA(e,t,n,r){p8(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function V0e(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var r=0;r<t.length;r++)if(!t[r].isSelected(n.name))return!1;return!0})}function Ip(e,t,n){var r=e==="allSelect"||e==="inverseSelect",i={},o=[];n.eachComponent({mainType:"legend",query:t},function(s){r?s[e]():s[e](t.name),C3(s,i),o.push(s.componentIndex)});var a={};return n.eachComponent("legend",function(s){Q(i,function(l,u){s[l?"select":"unSelect"](u)}),C3(s,a)}),r?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function C3(e,t){var n=t||{};return Q(e.getData(),function(r){var i=r.get("name");if(!(i===`
|
||
`||i==="")){var o=e.isSelected(i);gf(n,i)?n[i]=n[i]&&o:n[i]=o}}),n}function U0e(e){e.registerAction("legendToggleSelect","legendselectchanged",Mr(Ip,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Mr(Ip,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Mr(Ip,"inverseSelect")),e.registerAction("legendSelect","legendselected",Mr(Ip,"select")),e.registerAction("legendUnSelect","legendunselected",Mr(Ip,"unSelect"))}function v8(e){e.registerComponentModel(DA),e.registerComponentView(h8),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,V0e),e.registerSubTypeDefaulter("legend",function(){return"plain"}),U0e(e)}var H0e=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.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,i){var o=TS(n);e.prototype.init.call(this,n,r,i),E3(this,n,o)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),E3(this,this.option,n)},t.type="legend.scroll",t.defaultOption=whe(DA.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(DA);function E3(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,sh(t,n,{type:"box",ignoreSize:!!i})}var A3=vi,sC=["width","height"],lC=["x","y"],G0e=function(e){ot(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new A3),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new A3)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this;e.prototype.renderInner.call(this,n,r,i,o,a,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),d=ut(f)?f:[f,f];v("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new ao({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(m,y){var _=m+"DataIndex",b=DR(r.get("pageIcons",!0)[r.getOrient().name][y],{onclick:Xn(u._pageGo,u,_,r,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});b.name=m,c.add(b)}},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=sC[u],f=lC[u],d=sC[1-u],h=lC[1-u];a&&Nv("horizontal",l,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),m=l.getBoundingRect(),y=[-m.x,-m.y],_=ln(i);a&&(_[c]=i[c]-m[c]-v);var b=this._layoutContentAndController(n,o,_,u,c,d,h,f);if(a){if(s==="end")y[u]+=b[c]+v;else{var w=m[c]+v;y[u]-=w,b[f]-=w}b[c]+=m[c]+v,y[1-u]+=b[h]+b[d]/2-m[d]/2,b[d]=Math.max(b[d],m[d]),b[h]=Math.min(b[h],m[h]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return b},t.prototype._layoutContentAndController=function(n,r,i,o,a,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Nv(n.get("orient"),c,n.get("itemGap"),o?i.width:null,o?null:i.height),Nv("horizontal",d,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),m=this._showController=h[a]>i[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 C={x:0,y:0};if(C[a]=m?i[a]:h[a],C[s]=Math.max(h[s],v[s]),C[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]=C[s],f.setClipPath(new jr({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&&Pu(c,{x:A.contentPosition[0],y:A.contentPosition[1]},m?n:null),this._updatePageInfoView(n,A),C},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",ht(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=sC[a],l=lC[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&&!C(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||!C(b,w.s))&&_.i<b.i&&(b=_,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=_.i),++v.pageCount,++v.pageIndex),_=w;return v;function S(T){if(T){var A=T.getBoundingRect(),P=A[l]+T[l];return{s:P,e:P+A[s],i:T.__legendDataIndex}}}function C(T,A){return T.e>=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}(h8);function z0e(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 W0e(e){Mu(v8),e.registerComponentModel(H0e),e.registerComponentView(G0e),z0e(e)}function j0e(e){Mu(v8),Mu(W0e)}function I3(e,t,n){var r=Ch.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 uC=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||A1,typeof n=="string"?a=I3(n,r,i):Ct(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(tU(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=I3("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,C=1/0,T=0,A=0;A<a.length;++A){var P=a[A];if(P.intersect(b)){var I=new bn(0,0,0,0);I.copy(P),I.union(b),a[A]=I,S=!0;break}else if(l){u.copy(b),u.union(P);var R=b.width*b.height,O=P.width*P.height,D=u.width*u.height,$=D-R-O;$<C&&(C=$,T=A)}}if(l&&(a[T].union(b),S=!0),!S){var w=new bn(0,0,0,0);w.copy(b),a.push(w)}l||(l=a.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=n[f];if(d){var h=d.shouldBePainted(i,o,!0,!0),v=d.__isRendered&&(d.__dirty&xo||!h)?d.getPrevPaintRect():null;v&&c(v);var m=h&&(d.__dirty&xo||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=r[f],h=d&&d.shouldBePainted(i,o,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var y;do{y=!1;for(var f=0;f<a.length;){if(a[f].isZero()){a.splice(f,1);continue}for(var _=f+1;_<a.length;)a[f].intersect(a[_])?(y=!0,a[f].union(a[_]),a.splice(_,1)):_++;f++}}while(y);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(n,r){var i=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=n+"px",a.height=r+"px"),o.width=n*i,o.height=r*i,s&&(s.width=n*i,s.height=r*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(n,r,i){var o=this.dom,a=this.ctx,s=o.width,l=o.height;r=r||this.clearColor;var u=this.motionBlur&&!n,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/f,l/f));var h=this.domBack;function v(m,y,_,b){if(a.clearRect(m,y,_,b),r&&r!=="transparent"){var w=void 0;if(eS(r)){var S=r.global||r.__width===_&&r.__height===b;w=S&&r.__canvasGradient||_A(a,r,{x:0,y:0,width:_,height:b}),r.__canvasGradient=w,r.__width=_,r.__height=b}else eue(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,w=bA(a,r,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));a.save(),a.fillStyle=w||r,a.fillRect(m,y,_,b),a.restore()}u&&(a.save(),a.globalAlpha=c,a.drawImage(h,m,y,_,b),a.restore())}!i||u?v(0,0,s,l):i.length&&Q(i,function(m){v(m.x*f,m.y*f,m.width*f,m.height*f)})},t}(_s),R3=1e5,xc=314159,S0=.01,Y0e=.001;function X0e(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function K0e(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var Z0e=function(){function e(t,n,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=r=Ze({},r||{}),this.dpr=r.devicePixelRatio||A1,this._singleCanvas=o,this.root=t;var a=t.style;a&&(tU(t),t.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=t,f=c.width,d=c.height;r.width!=null&&(f=r.width),r.height!=null&&(d=r.height),this.dpr=r.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new uC(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[xc]=h,h.zlevel=xc,s.push(xc),this._domRoot=t}else{this._width=h0(t,0,r),this._height=h0(t,1,r);var u=this._domRoot=K0e(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,t,this._redrawId);for(var o=0;o<i.length;o++){var a=i[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var n=t.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<n;a++){var s=t[a];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(R3)),o||(o=r.ctx,o.save()),Hc(o,s,i,a===n-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(R3)},e.prototype.paintOne=function(t,n){b6(t,n)},e.prototype._paintList=function(t,n,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,n,r),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;V1(function(){l._paintList(t,n,r,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(xc).ctx,n=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,n,r),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,n,r)})},e.prototype._doPaintList=function(t,n,r){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&o.push(u)}for(var c=!0,f=!1,d=function(m){var y=o[m],_=y.ctx,b=a&&y.createRepaintRects(t,n,h._width,h._height),w=r?y.__startIndex:y.__drawIndex,S=!r&&y.incremental&&Date.now,C=S&&Date.now(),T=y.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(y.__startIndex===y.__endIndex)y.clear(!1,T,b);else if(w===y.__startIndex){var A=t[w];(!A.incremental||!A.notClear||r)&&y.clear(!1,T,b)}w===-1&&(console.error("For some unknown reason. drawIndex is -1"),w=y.__startIndex);var P,I=function($){var F={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(P=w;P<y.__endIndex;P++){var z=t[P];if(z.__inHover&&(f=!0),i._doPaintEl(z,y,a,$,F,P===y.__endIndex-1),S){var B=Date.now()-C;if(B>15)break}}F.prevElClipPaths&&_.restore()};if(b)if(b.length===0)P=y.__endIndex;else for(var R=h.dpr,O=0;O<b.length;++O){var D=b[O];_.save(),_.beginPath(),_.rect(D.x*R,D.y*R,D.width*R,D.height*R),_.clip(),I(D),_.restore()}else _.save(),I(),_.restore();y.__drawIndex=P,y.__drawIndex<y.__endIndex&&(c=!1)},h=this,v=0;v<o.length;v++)d(v);return Mt.wxa&&Q(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,n,r,i,o,a){var s=n.ctx;if(r){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(Hc(s,t,o,a),t.setPrevPaintRect(l))}else Hc(s,t,o,a)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=xc);var r=this._layers[t];return r||(r=new uC("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?_n(r,this._layerConfig[t],!0):this._layerConfig[t-S0]&&_n(r,this._layerConfig[t-S0],!0),n&&(r.virtual=n),this.insertLayer(t,r),r.initContext()),r},e.prototype.insertLayer=function(t,n){var r=this._layers,i=this._zlevelList,o=i.length,a=this._domRoot,s=null,l=-1;if(!r[t]&&X0e(n)){if(o>0&&t>i[0]){for(l=0;l<o-1&&!(i[l]<t&&i[l+1]>t);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;i<r.length;i++){var o=r[i];t.call(n,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__&&t.call(n,a,o)}},e.prototype.eachOtherLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__||t.call(n,a,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function n(f){o&&(o.__endIndex!==f&&(o.__dirty=!0),o.__endIndex=f)}if(this._singleCanvas)for(var r=1;r<t.length;r++){var i=t[r];if(i.zlevel!==t[r-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,a=0),i.incremental?(c=this.getLayer(u+Y0e,this._needsManuallyCompositing),c.incremental=!0,a=1):c=this.getLayer(u+(a>0?S0:0),this._needsManuallyCompositing),c.__builtin__||sR("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&xo&&!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<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+S0){var a=this._layers[o];_n(a,r[t],!0)}}}},e.prototype.delLayer=function(t){var n=this._layers,r=this._zlevelList,i=n[t];i&&(i.dom.parentNode.removeChild(i.dom),delete n[t],r.splice(In(r,t),1))},e.prototype.resize=function(t,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,o=this.root;if(t!=null&&(i.width=t),n!=null&&(i.height=n),t=h0(o,0,i),n=h0(o,1,i),r.style.display="",this._width!==t||n!==this._height){r.style.width=t+"px",r.style.height=n+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,n);this.refresh(!0)}this._width=t,this._height=n}else{if(t==null||n==null)return;this._width=t,this._height=n,this.getLayer(xc).resize(t,n)}return this},e.prototype.clearLayer=function(t){var n=this._layers[t];n&&n.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[xc].dom;var n=new uC("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clear(!1,t.backgroundColor||this._backgroundColor);var r=n.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=n.dom.width,o=n.dom.height;this.eachLayer(function(f){f.__builtin__?r.drawImage(f.dom,0,0,i,o):f.renderToCanvas&&(r.save(),f.renderToCanvas(r),r.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Hc(r,c,a,l===u-1)}return n.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function q0e(e){e.registerPainter("canvas",Z0e)}const J0e={class:"relative h-28 w-full overflow-hidden"},uP=rt({__name:"BasicCharts",props:{data:{},labelFormatter:{type:Function},toolTipFormatter:{type:Function},min:{}},setup(e){Mu([cve,g0e,j0e,k0e,q0e]);const t=e,n=ke(),r=ke(),i=ke(!1),o=ke();return lo(()=>{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;Wt(()=>kd.value,()=>{const S=getComputedStyle(n.value),C=getComputedStyle(r.value);l=S.color,u=S.backgroundColor,c=S.borderColor,d=C.color,h=C.backgroundColor,v=C.borderBottomColor,m=C.borderTopColor}),Wt(()=>hv.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,C)=>{const T=C===t.data.length-1?d:h,A=C===t.data.length-1?v:m;return{name:S.name,symbol:"none",emphasis:{disabled:!0},lineStyle:{width:1},data:S.data,areaStyle:{color:new RR(0,0,0,1,[{offset:0,color:T},{offset:1,color:A}])},type:"line",color:T,smooth:!0}})})),_=xme(o.value);_.setOption(y.value),Wt(y,()=>{i.value||_==null||_.setOption(y.value)});const{width:b}=dre(o),w=zr.debounce(()=>{_.resize()},100);Wt(()=>b.value,()=>{w()})}),(a,s)=>(K(),te("div",J0e,[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(),At(cs(i.value?N(RQ):N(IQ)),{class:"h-4 w-4"}))])]))}}),cP=rt({__name:"ConnectionsCharts",setup(e){const{t}=Fa(),n=Ve(()=>[{name:t("connections"),data:l_.value}]),r=o=>` ${o}`,i=o=>o.map(a=>{if(!(a.data.name<$c+1))return`
|
||
<div class="flex items-center my-2 gap-1">
|
||
<div class="w-4 h-4 rounded-full" style="background-color: ${a.color}"></div>
|
||
${a.seriesName}
|
||
(${La(a.data.name).format("HH:mm:ss")}): ${a.data.value}
|
||
</div>`}).join(`
|
||
`);return(o,a)=>(K(),At(uP,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100},null,8,["data"]))}}),fP=rt({__name:"MemoryCharts",setup(e){const{t}=Fa(),n=Ve(()=>[{name:t("memoryUsage"),data:Gp.value}]),r=o=>`${Tn(o,{maximumFractionDigits:1,binary:!0})}`,i=o=>HB(o[0],{binary:!0,suffix:""});return(o,a)=>(K(),At(uP,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1024*1024},null,8,["data"]))}}),dP=rt({__name:"SpeedCharts",setup(e){const t=ke(),{t:n}=Fa(),r=Ve(()=>[{name:n("ulSpeed"),data:Wp.value},{name:n("dlSpeed"),data:zp.value}]),i=a=>`${Tn(a,{maximumFractionDigits:1,binary:!1})}/s`,o=a=>a.map(s=>HB(s,{binary:!1,suffix:"/s"})).join("");return(a,s)=>(K(),At(uP,{ref_key:"chartRef",ref:t,data:r.value,"label-formatter":i,"tool-tip-formatter":o,min:60*1e3},null,8,["data"]))}}),Q0e={class:"card carousel carousel-vertical h-28 shrink-0 overflow-x-hidden text-sm hover:scrollbar-thin"},e_e=rt({__name:"OverviewCarousel",setup(e){return(t,n)=>(K(),te("div",Q0e,[ye(dP,{class:"carousel-item box-border"}),ye(fP,{class:"carousel-item box-border"}),ye(cP,{class:"carousel-item box-border"})]))}}),t_e={class:"card mx-1 flex flex-col gap-4 py-2 text-xs"},n_e={class:"flex flex-col items-center justify-center"},r_e={class:"flex flex-col items-center justify-center"},i_e={class:"flex flex-col items-center justify-center"},o_e={class:"flex flex-col items-center justify-center"},a_e={class:"flex flex-col items-center justify-center"},s_e=rt({__name:"VerticalInfos",setup(e){return(t,n)=>(K(),te("div",t_e,[L("div",n_e,[ye(N(j4),{class:"h-4 w-4"}),lt(" "+ie(N(Ra).length),1)]),L("div",r_e,[ye(N(Rb),{class:"h-4 w-4"}),lt(" "+ie(N(Tn)(N(vg)))+" ",1),L("span",null,ie(N(Tn)(N(Vb)))+"/s ",1)]),L("div",i_e,[ye(N(qg),{class:"h-4 w-4"}),lt(" "+ie(N(Tn)(N(gg)))+" ",1),L("span",null,ie(N(Tn)(N(Ub)))+"/s ",1)]),L("div",o_e,[ye(N(xQ),{class:"h-4 w-4"}),lt(" "+ie(N(Tn)(N(Bb),{binary:!0})),1)]),L("div",a_e,[L("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>yu.value=!1)},[ye(N(ff),{class:"h-5 w-5"})])])]))}}),l_e={class:"drawer-side z-30 bg-base-200 max-md:hidden"},u_e={class:"menu flex-1"},c_e=["onClick"],f_e={class:"card"},d_e=rt({__name:"SideBar",setup(e){const t={[un.connections]:UV,[un.logs]:HV,[un.proxies]:WV,[un.rules]:jV},n=Ve(()=>r.name?t[r.name]:null),r=cB();return(i,o)=>(K(),te("div",l_e,[o[0]||(o[0]=L("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),L("div",{class:it(N(Cn)("scrollbar-hidden flex h-full flex-col gap-2 overflow-x-hidden p-2 text-base-content !transition-all duration-500",N(yu)?"w-18 px-0":"w-[21rem]"))},[L("ul",u_e,[(K(!0),te(Xe,null,rn(N($s),a=>(K(),te("li",{key:a},[L("a",{class:it(a===N(r).name?"active":"inactive"),onClick:()=>N($a).push({name:a})},[(K(),At(cs(N(IB)[a]),{class:"h-5 w-5"})),N(yu)?gt("",!0):(K(),te(Xe,{key:0},[lt(ie(i.$t(a)),1)],64))],10,c_e)]))),128))]),N(yu)?(K(),At(s_e,{key:0})):(K(),te(Xe,{key:1},[N(r).name!==N(un).overview?(K(),At(e_e,{key:0})):gt("",!0),L("div",f_e,[n.value?(K(),At(cs(n.value),{key:0})):gt("",!0),ye(Ule)])],64))],2)]))}}),cC=ke(!1),g8=()=>({isUIUpdateAvailable:cC,checkUIUpdate:async()=>{cC.value=await Koe(),cC.value&&Z0.value&&gV()}}),h_e={class:"w-128 drawer md:drawer-open"},p_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"},v_e={class:"relative h-0 flex-1"},g_e={class:"absolute flex h-full w-full flex-col overflow-y-auto"},m_e=["onClick"],y_e={class:"text-xs"},__e={class:"modal-box"},b_e={class:"text-lg font-bold"},S_e={class:"flex justify-end gap-2"},w_e=rt({__name:"HomePage",setup(e){const t=ke(null),n=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,r={[un.connections]:UV,[un.logs]:HV,[un.proxies]:WV,[un.rules]:jV},i=kee(),o=cB(),a=Ve(()=>r[o.name]),s=ke(),{direction:l}=hre(s,{threshold:15}),u=()=>{const _=o.name;return _===un.setup?un.proxies:$s.value[($s.value.indexOf(_)+1)%$s.value.length]},c=()=>{const _=o.name;return _===un.setup?un.proxies:$s.value[($s.value.indexOf(_)-1+$s.value.length)%$s.value.length]};Wt(l,()=>{l.value==="right"?i.push({name:c()}):l.value==="left"&&i.push({name:u()})});const{proxiesTabShow:f}=Jb(),{checkUIUpdate:d}=g8();Wt(di,()=>{di.value&&(Cv.value=rh.RULES,f.value=df.PROXIES,nR(),dl(),_g(),rae(),DE(),Hre(),d())},{immediate:!0});const h=()=>{var _;(_=t.value)==null||_.close()},{showTip:v}=Fb(),m=async()=>{const _=ds.value.filter(w=>w.uuid!==di.value);h();const b=(await Promise.all(_.map(async w=>await BL(w)?w:null))).filter(w=>w!==null);b.length>0&&(di.value=b[0].uuid,v("backendSwitchTo",{backend:Au(b[0])}))},y=cre();return Wt(y,async()=>{var _,b;if(!(!fl.value||ds.value.length===0||y.value!=="visible"))try{await BL(fl.value)||(_=t.value)==null||_.showModal()}catch{(b=t.value)==null||b.showModal()}},{immediate:!0}),(_,b)=>(K(),te("div",h_e,[b[0]||(b[0]=L("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),ye(d_e),L("div",p_e,[a.value&&N(yu)?(K(),At(cs(a.value),{key:0,class:"w-full bg-base-100",horizontal:!0})):gt("",!0),L("div",v_e,[L("div",g_e,[ye(N(OI)),L("div",{class:it(["shrink-0 md:hidden",N(n)?"max-md:h-[5.5rem]":"max-md:h-14"])},null,2)])]),L("div",{class:it(`btm-nav glass z-30 bg-none md:hidden ${N(n)?"h-[5.5rem] pb-8":"h-14"}`),ref_key:"swiperRef",ref:s},[(K(!0),te(Xe,null,rn(N($s),w=>(K(),te("button",{key:w,onClick:S=>N(i).push({name:w}),class:it(w===N(o).name?"active bg-inherit":"")},[(K(),At(cs(N(IB)[w]),{class:"h-5 w-5"})),L("span",y_e,ie(_.$t(w)),1)],10,m_e))),128))],2)]),L("dialog",{id:"autoSwitchBackend",ref_key:"modalRef",ref:t,class:"modal"},[L("div",__e,[L("h3",b_e,ie(_.$t("currentBackendUnavailable")),1),L("div",S_e,[L("button",{class:"btn btn-sm",onClick:h},ie(_.$t("cancel")),1),L("button",{class:"btn btn-primary btn-sm",onClick:m},ie(_.$t("confirm")),1)])])],512)]))}}),x_e={key:0,class:"card m-2 flex-row p-2 text-sm"},T_e={class:"card mb-1 block p-2 text-sm"},C_e={class:"mx-2 text-primary"},E_e={class:"ml-2"},A_e=rt({__name:"LogsPage",setup(e){const t={[kc.Error]:"text-error",[kc.Warning]:"text-warning",[kc.Info]:"text-info",[kc.Debug]:"text-accent"},n=Ve(()=>_1.value.filter(r=>Bd.value?r.payload.includes(Bd.value)||r.type.includes(Bd.value):!0));return(r,i)=>(K(),te(Xe,null,[n.value.length?gt("",!0):(K(),te("div",x_e,ie(r.$t("noContent")),1)),ye(ZI,{data:n.value,size:64},{default:Dr(({item:o})=>[L("div",T_e,[L("span",null,ie(o.seq),1),L("span",C_e,ie(N(La)(o.time).locale(N(su)).format("HH:mm:ss")),1),L("span",{class:it(t[o.type])},ie(o.type),3),L("span",E_e,ie(o.payload),1)])]),_:1},8,["data"])],64))}}),I_e={class:"grid grid-cols-2 gap-2 rounded-lg bg-base-200/40 py-2 lg:grid-cols-6"},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"},M_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"},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={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},B_e={class:"text-sm font-bold md:text-lg"},V_e={class:"text-base md:text-xl"},U_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},H_e={class:"text-sm font-bold md:text-lg"},G_e={class:"text-base md:text-xl"},z_e={class:"flex h-14 flex-col items-center justify-center gap-2 md:h-24"},W_e={class:"text-sm font-bold md:text-lg"},j_e={class:"text-base md:text-xl"},Y_e=rt({__name:"StatisticsStats",setup(e){return(t,n)=>(K(),te("div",I_e,[L("div",R_e,[L("div",P_e,ie(t.$t("connections")),1),L("div",O_e,ie(N(Ra).length),1)]),L("div",M_e,[L("div",D_e,ie(t.$t("memoryUsage")),1),L("div",L_e,ie(N(Tn)(N(Bb),{binary:!0})),1)]),L("div",N_e,[L("div",k_e,ie(t.$t("download")),1),L("div",F_e,ie(N(Tn)(N(vg))),1)]),L("div",$_e,[L("div",B_e,ie(t.$t("dlSpeed")),1),L("div",V_e,ie(N(Tn)(N(Vb)))+"/s",1)]),L("div",U_e,[L("div",H_e,ie(t.$t("upload")),1),L("div",G_e,ie(N(Tn)(N(gg))),1)]),L("div",z_e,[L("div",W_e,ie(t.$t("ulSpeed")),1),L("div",j_e,ie(N(Tn)(N(Ub)))+"/s",1)])]))}}),X_e={class:"card card-compact w-full"},K_e={class:"card-title px-4 pt-4"},Z_e={class:"card-body gap-4"},q_e={class:"grid grid-cols-1 gap-2 xl:grid-cols-3"},J_e=rt({__name:"ChartsCard",setup(e){return(t,n)=>(K(),te("div",X_e,[L("div",K_e,ie(t.$t("overview")),1),L("div",Z_e,[ye(Y_e),L("div",q_e,[ye(dP,{class:"xl:h-64"}),ye(fP,{class:"xl:h-64"}),ye(cP,{class:"xl:h-64"})])])]))}});ke({location:"",ip:""});const Rp=ke({location:"",ip:""}),Pp=ke({location:"",ip:""}),w0=ke(""),x0=ke(""),T0=ke(""),C0=ke(""),E0=ke(""),Q_e={class:"relative h-28 rounded-lg bg-base-200/40 p-2 text-sm"},e1e={class:"flex flex-col"},m8=rt({__name:"ConnectionStatus",setup(e){const t=async()=>{nae().then(n=>{w0.value=n.toFixed(0)}),Joe().then(n=>{E0.value=n.toFixed(0)}),tae().then(n=>{x0.value=n.toFixed(0)}),eae().then(n=>{T0.value=n.toFixed(0)}),Qoe().then(n=>{C0.value=n.toFixed(0)})};return lo(()=>{Q0.value&&[w0,E0,x0,T0,C0].some(n=>n.value==="")&&t()}),(n,r)=>(K(),te("div",Q_e,[L("div",e1e,[L("div",null,[r[0]||(r[0]=L("span",{class:"inline-block w-28"},"Baidu ",-1)),r[1]||(r[1]=lt(" : ")),L("span",{class:it(N(iu)(Number(N(w0))))},ie(N(w0))+"ms ",3)]),L("div",null,[r[2]||(r[2]=L("span",{class:"inline-block w-28"},"Cloudflare ",-1)),r[3]||(r[3]=lt(" : ")),L("span",{class:it(N(iu)(Number(N(E0))))},ie(N(E0))+"ms ",3)]),L("div",null,[r[4]||(r[4]=L("span",{class:"inline-block w-28"},"OpenAI CDN",-1)),r[5]||(r[5]=lt(" : ")),L("span",{class:it(N(iu)(Number(N(x0))))},ie(N(x0))+"ms ",3)]),L("div",null,[r[6]||(r[6]=L("span",{class:"inline-block w-28"},"Github ",-1)),r[7]||(r[7]=lt(" : ")),L("span",{class:it(N(iu)(Number(N(T0))))},ie(N(T0))+"ms ",3)]),L("div",null,[r[8]||(r[8]=L("span",{class:"inline-block w-28"},"YouTube ",-1)),r[9]||(r[9]=lt(" : ")),L("span",{class:it(N(iu)(Number(N(C0))))},ie(N(C0))+"ms ",3)])]),L("button",{class:"btn btn-circle btn-sm absolute bottom-2 right-2",onClick:t},[ye(N(Pb),{class:"h-4 w-4"})])]))}});var to="top",oa="bottom",aa="right",no="left",hP="auto",dm=[to,oa,aa,no],uh="start",Ng="end",t1e="clippingParents",y8="viewport",Op="popper",n1e="reference",P3=dm.reduce(function(e,t){return e.concat([t+"-"+uh,t+"-"+Ng])},[]),_8=[].concat(dm,[hP]).reduce(function(e,t){return e.concat([t,t+"-"+uh,t+"-"+Ng])},[]),r1e="beforeRead",i1e="read",o1e="afterRead",a1e="beforeMain",s1e="main",l1e="afterMain",u1e="beforeWrite",c1e="write",f1e="afterWrite",d1e=[r1e,i1e,o1e,a1e,s1e,l1e,u1e,c1e,f1e];function vs(e){return e?(e.nodeName||"").toLowerCase():null}function Po(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sf(e){var t=Po(e).Element;return e instanceof t||e instanceof Element}function na(e){var t=Po(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function pP(e){if(typeof ShadowRoot>"u")return!1;var t=Po(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function h1e(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)||!vs(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 p1e(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)||!vs(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const b8={name:"applyStyles",enabled:!0,phase:"write",fn:h1e,effect:p1e,requires:["computeStyles"]};function ls(e){return e.split("-")[0]}var af=Math.max,j1=Math.min,ch=Math.round;function FA(){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 S8(){return!/^((?!chrome|android).)*safari/i.test(FA())}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=Sf(e)?Po(e):window,s=a.visualViewport,l=!S8()&&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 vP(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 w8(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&pP(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function gl(e){return Po(e).getComputedStyle(e)}function v1e(e){return["table","td","th"].indexOf(vs(e))>=0}function Gu(e){return((Sf(e)?e.ownerDocument:e.document)||window.document).documentElement}function RS(e){return vs(e)==="html"?e:e.assignedSlot||e.parentNode||(pP(e)?e.host:null)||Gu(e)}function O3(e){return!na(e)||gl(e).position==="fixed"?null:e.offsetParent}function g1e(e){var t=/firefox/i.test(FA()),n=/Trident/i.test(FA());if(n&&na(e)){var r=gl(e);if(r.position==="fixed")return null}var i=RS(e);for(pP(i)&&(i=i.host);na(i)&&["html","body"].indexOf(vs(i))<0;){var o=gl(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 hm(e){for(var t=Po(e),n=O3(e);n&&v1e(n)&&gl(n).position==="static";)n=O3(n);return n&&(vs(n)==="html"||vs(n)==="body"&&gl(n).position==="static")?t:n||g1e(e)||t}function gP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vv(e,t,n){return af(e,j1(t,n))}function m1e(e,t,n){var r=Vv(e,t,n);return r>n?n:r}function x8(){return{top:0,right:0,bottom:0,left:0}}function T8(e){return Object.assign({},x8(),e)}function C8(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var y1e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,T8(typeof t!="number"?t:C8(t,dm))};function _1e(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ls(n.placement),l=gP(s),u=[no,aa].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=y1e(i.padding,n),d=vP(o),h=l==="y"?to:no,v=l==="y"?oa:aa,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],y=a[l]-n.rects.reference[l],_=hm(o),b=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,w=m/2-y/2,S=f[h],C=b-d[c]-f[v],T=b/2-d[c]/2+w,A=Vv(S,T,C),P=l;n.modifiersData[r]=(t={},t[P]=A,t.centerOffset=A-T,t)}}function b1e(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)||w8(t.elements.popper,i)&&(t.elements.arrow=i))}const S1e={name:"arrow",enabled:!0,phase:"main",fn:_1e,effect:b1e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dh(e){return e.split("-")[1]}var w1e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function x1e(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 M3(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=no,S=to,C=window;if(u){var T=hm(n),A="clientHeight",P="clientWidth";if(T===Po(n)&&(T=Gu(n),gl(T).position!=="static"&&s==="absolute"&&(A="scrollHeight",P="scrollWidth")),T=T,i===to||(i===no||i===aa)&&o===Ng){S=oa;var I=f&&T===C&&C.visualViewport?C.visualViewport.height:T[A];m-=I-r.height,m*=l?1:-1}if(i===no||(i===to||i===oa)&&o===Ng){w=aa;var R=f&&T===C&&C.visualViewport?C.visualViewport.width:T[P];h-=R-r.width,h*=l?1:-1}}var O=Object.assign({position:s},u&&w1e),D=c===!0?x1e({x:h,y:m},Po(n)):{x:h,y:m};if(h=D.x,m=D.y,l){var $;return Object.assign({},O,($={},$[S]=b?"0":"",$[w]=_?"0":"",$.transform=(C.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 T1e(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:ls(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,M3(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,M3(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 C1e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:T1e,data:{}};var A0={passive:!0};function E1e(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=Po(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,A0)}),s&&l.addEventListener("resize",n.update,A0),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,A0)}),s&&l.removeEventListener("resize",n.update,A0)}}const A1e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:E1e,data:{}};var I1e={left:"right",right:"left",bottom:"top",top:"bottom"};function N_(e){return e.replace(/left|right|bottom|top/g,function(t){return I1e[t]})}var R1e={start:"end",end:"start"};function D3(e){return e.replace(/start|end/g,function(t){return R1e[t]})}function mP(e){var t=Po(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function yP(e){return fh(Gu(e)).left+mP(e).scrollLeft}function P1e(e,t){var n=Po(e),r=Gu(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=S8();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+yP(e),y:l}}function O1e(e){var t,n=Gu(e),r=mP(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=af(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=af(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+yP(e),l=-r.scrollTop;return gl(i||n).direction==="rtl"&&(s+=af(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function _P(e){var t=gl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function E8(e){return["html","body","#document"].indexOf(vs(e))>=0?e.ownerDocument.body:na(e)&&_P(e)?e:E8(RS(e))}function Uv(e,t){var n;t===void 0&&(t=[]);var r=E8(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Po(r),a=i?[o].concat(o.visualViewport||[],_P(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Uv(RS(a)))}function $A(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function M1e(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 L3(e,t,n){return t===y8?$A(P1e(e,n)):Sf(t)?M1e(t,n):$A(O1e(Gu(e)))}function D1e(e){var t=Uv(RS(e)),n=["absolute","fixed"].indexOf(gl(e).position)>=0,r=n&&na(e)?hm(e):e;return Sf(r)?t.filter(function(i){return Sf(i)&&w8(i,r)&&vs(i)!=="body"}):[]}function L1e(e,t,n,r){var i=t==="clippingParents"?D1e(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=L3(e,u,r);return l.top=af(c.top,l.top),l.right=j1(c.right,l.right),l.bottom=j1(c.bottom,l.bottom),l.left=af(c.left,l.left),l},L3(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 A8(e){var t=e.reference,n=e.element,r=e.placement,i=r?ls(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 to:l={x:a,y:t.y-n.height};break;case oa:l={x:a,y:t.y+t.height};break;case aa:l={x:t.x+t.width,y:s};break;case no:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?gP(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 Ng:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function kg(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?t1e:s,u=n.rootBoundary,c=u===void 0?y8:u,f=n.elementContext,d=f===void 0?Op:f,h=n.altBoundary,v=h===void 0?!1:h,m=n.padding,y=m===void 0?0:m,_=T8(typeof y!="number"?y:C8(y,dm)),b=d===Op?n1e:Op,w=e.rects.popper,S=e.elements[v?b:d],C=L1e(Sf(S)?S:S.contextElement||Gu(e.elements.popper),l,c,a),T=fh(e.elements.reference),A=A8({reference:T,element:w,strategy:"absolute",placement:i}),P=$A(Object.assign({},w,A)),I=d===Op?P:T,R={top:C.top-I.top+_.top,bottom:I.bottom-C.bottom+_.bottom,left:C.left-I.left+_.left,right:I.right-C.right+_.right},O=e.modifiersData.offset;if(d===Op&&O){var D=O[i];Object.keys(R).forEach(function($){var F=[aa,oa].indexOf($)>=0?1:-1,z=[to,oa].indexOf($)>=0?"y":"x";R[$]+=D[z]*F})}return R}function N1e(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?_8:l,c=dh(r),f=c?s?P3:P3.filter(function(v){return dh(v)===c}):dm,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]=kg(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[ls(m)],v},{});return Object.keys(h).sort(function(v,m){return h[v]-h[m]})}function k1e(e){if(ls(e)===hP)return[];var t=N_(e);return[D3(e),t,D3(t)]}function F1e(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,_=ls(y),b=_===y,w=l||(b||!v?[N_(y)]:k1e(y)),S=[y].concat(w).reduce(function(ze,De){return ze.concat(ls(De)===hP?N1e(t,{placement:De,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:m}):De)},[]),C=t.rects.reference,T=t.rects.popper,A=new Map,P=!0,I=S[0],R=0;R<S.length;R++){var O=S[R],D=ls(O),$=dh(O)===uh,F=[to,oa].indexOf(D)>=0,z=F?"width":"height",B=kg(t,{placement:O,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),Y=F?$?aa:no:$?oa:to;C[z]>T[z]&&(Y=N_(Y));var j=N_(Y),se=[];if(o&&se.push(B[D]<=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(De){var je=S.find(function(ce){var Ee=A.get(ce);if(Ee)return Ee.slice(0,De).every(function(Se){return Se})});if(je)return I=je,"break"},Me=ge;Me>0;Me--){var Ne=ve(Me);if(Ne==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const $1e={name:"flip",enabled:!0,phase:"main",fn:F1e,requiresIfExists:["offset"],data:{_skip:!1}};function N3(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 k3(e){return[to,aa,oa,no].some(function(t){return e[t]>=0})}function B1e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=kg(t,{elementContext:"reference"}),s=kg(t,{altBoundary:!0}),l=N3(a,r),u=N3(s,i,o),c=k3(l),f=k3(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 V1e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:B1e};function U1e(e,t,n){var r=ls(e),i=[no,to].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,[no,aa].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function H1e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=_8.reduce(function(c,f){return c[f]=U1e(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 G1e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:H1e};function z1e(e){var t=e.state,n=e.name;t.modifiersData[n]=A8({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const W1e={name:"popperOffsets",enabled:!0,phase:"read",fn:z1e,data:{}};function j1e(e){return e==="x"?"y":"x"}function Y1e(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=kg(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),_=ls(t.placement),b=dh(t.placement),w=!b,S=gP(_),C=j1e(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,D={x:0,y:0};if(T){if(o){var $,F=S==="y"?to:no,z=S==="y"?oa:aa,B=S==="y"?"height":"width",Y=T[S],j=Y+y[F],se=Y-y[z],ge=h?-P[B]/2:0,ve=b===uh?A[B]:P[B],Me=b===uh?-P[B]:-A[B],Ne=t.elements.arrow,ze=h&&Ne?vP(Ne):{width:0,height:0},De=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:x8(),je=De[F],ce=De[z],Ee=Vv(0,A[B],ze[B]),Se=w?A[B]/2-ge-Ee-je-R.mainAxis:ve-Ee-je-R.mainAxis,Te=w?-A[B]/2+ge+Ee+ce+R.mainAxis:Me+Ee+ce+R.mainAxis,Oe=t.elements.arrow&&hm(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=Vv(h?j1(j,G):j,Y,h?af(se,le):se);T[S]=we,D[S]=we-Y}if(s){var pe,U=S==="x"?to:no,W=S==="x"?oa:aa,q=T[C],fe=C==="y"?"height":"width",_e=q+y[U],Pe=q-y[W],Z=[to,no].indexOf(_)!==-1,de=(pe=O==null?void 0:O[C])!=null?pe:0,Be=Z?_e:q-A[fe]-P[fe]-de+R.altAxis,Ke=Z?q+A[fe]+P[fe]-de-R.altAxis:Pe,pt=h&&Z?m1e(Be,q,Ke):Vv(h?Be:_e,q,h?Ke:Pe);T[C]=pt,D[C]=pt-q}t.modifiersData[r]=D}}const X1e={name:"preventOverflow",enabled:!0,phase:"main",fn:Y1e,requiresIfExists:["offset"]};function K1e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Z1e(e){return e===Po(e)||!na(e)?mP(e):K1e(e)}function q1e(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 J1e(e,t,n){n===void 0&&(n=!1);var r=na(t),i=na(t)&&q1e(t),o=Gu(t),a=fh(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((vs(t)!=="body"||_P(o))&&(s=Z1e(t)),na(t)?(l=fh(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=yP(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Q1e(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 ebe(e){var t=Q1e(e);return d1e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function tbe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function nbe(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 F3={placement:"bottom",modifiers:[],strategy:"absolute"};function $3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function rbe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?F3:i;return function(s,l,u){u===void 0&&(u=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},F3,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:c,setOptions:function(_){var b=typeof _=="function"?_(c.options):_;m(),c.options=Object.assign({},o,c.options,b),c.scrollParents={reference:Sf(s)?Uv(s):s.contextElement?Uv(s.contextElement):[],popper:Uv(l)};var w=ebe(nbe([].concat(r,c.options.modifiers)));return c.orderedModifiers=w.filter(function(S){return S.enabled}),v(),h.update()},forceUpdate:function(){if(!d){var _=c.elements,b=_.reference,w=_.popper;if($3(b,w)){c.rects={reference:J1e(b,hm(w),c.options.strategy==="fixed"),popper:vP(w)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(R){return c.modifiersData[R.name]=Object.assign({},R.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var C=c.orderedModifiers[S],T=C.fn,A=C.options,P=A===void 0?{}:A,I=C.name;typeof T=="function"&&(c=T({state:c,options:P,name:I,instance:h})||c)}}}},update:tbe(function(){return new Promise(function(y){h.forceUpdate(),y(c)})}),destroy:function(){m(),d=!0}};if(!$3(s,l))return h;h.setOptions(u).then(function(y){!d&&u.onFirstUpdate&&u.onFirstUpdate(y)});function v(){c.orderedModifiers.forEach(function(y){var _=y.name,b=y.options,w=b===void 0?{}:b,S=y.effect;if(typeof S=="function"){var C=S({state:c,name:_,instance:h,options:w}),T=function(){};f.push(C||T)}})}function m(){f.forEach(function(y){return y()}),f=[]}return h}}var ibe=[A1e,W1e,C1e,b8,G1e,$1e,X1e,S1e,V1e],obe=rbe({defaultModifiers:ibe}),abe="tippy-box",I8="tippy-content",sbe="tippy-backdrop",R8="tippy-arrow",P8="tippy-svg-arrow",Ic={passive:!0,capture:!0},O8=function(){return document.body};function fC(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function bP(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function M8(e,t){return typeof e=="function"?e.apply(void 0,t):e}function B3(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 wd(e){return[].concat(e)}function V3(e,t){e.indexOf(t)===-1&&e.push(t)}function ube(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function cbe(e){return e.split("-")[0]}function Y1(e){return[].slice.call(e)}function U3(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Hv(){return document.createElement("div")}function PS(e){return["Element","Fragment"].some(function(t){return bP(e,t)})}function fbe(e){return bP(e,"NodeList")}function dbe(e){return bP(e,"MouseEvent")}function hbe(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function pbe(e){return PS(e)?[e]:fbe(e)?Y1(e):Array.isArray(e)?e:Y1(document.querySelectorAll(e))}function dC(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function H3(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function vbe(e){var t,n=wd(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function gbe(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=cbe(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 hC(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function G3(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 ts={isTouch:!1},z3=0;function mbe(){ts.isTouch||(ts.isTouch=!0,window.performance&&document.addEventListener("mousemove",D8))}function D8(){var e=performance.now();e-z3<20&&(ts.isTouch=!1,document.removeEventListener("mousemove",D8)),z3=e}function ybe(){var e=document.activeElement;if(hbe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function _be(){document.addEventListener("touchstart",mbe,Ic),window.addEventListener("blur",ybe)}var bbe=typeof window<"u"&&typeof document<"u",Sbe=bbe?!!window.msCrypto:!1,wbe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},xbe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Oa=Object.assign({appendTo:O8,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},wbe,xbe),Tbe=Object.keys(Oa),Cbe=function(t){var n=Object.keys(t);n.forEach(function(r){Oa[r]=t[r]})};function L8(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=Oa[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function Ebe(e,t){var n=t?Object.keys(L8(Object.assign({},Oa,{plugins:t}))):Tbe,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 W3(e,t){var n=Object.assign({},t,{content:M8(t.content,[e])},t.ignoreAttributes?{}:Ebe(e,t.plugins));return n.aria=Object.assign({},Oa.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 Abe=function(){return"innerHTML"};function BA(e,t){e[Abe()]=t}function j3(e){var t=Hv();return e===!0?t.className=R8:(t.className=P8,PS(e)?t.appendChild(e):BA(t,e)),t}function Y3(e,t){PS(t.content)?(BA(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?BA(e,t.content):e.textContent=t.content)}function VA(e){var t=e.firstElementChild,n=Y1(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(I8)}),arrow:n.find(function(r){return r.classList.contains(R8)||r.classList.contains(P8)}),backdrop:n.find(function(r){return r.classList.contains(sbe)})}}function N8(e){var t=Hv(),n=Hv();n.className=abe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Hv();r.className=I8,r.setAttribute("data-state","hidden"),Y3(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=VA(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)&&Y3(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}}N8.$$tippy=!0;var Ibe=1,I0=[],pC=[];function Rbe(e,t){var n=W3(e,Object.assign({},Oa,L8(U3(t)))),r,i,o,a=!1,s=!1,l=!1,u=!1,c,f,d,h=[],v=B3(G,n.interactiveDebounce),m,y=Ibe++,_=null,b=ube(n.plugins),w={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},S={id:y,reference:e,popper:Hv(),popperInstance:_,props:n,state:w,plugins:b,clearDelayTimeouts:Be,setProps:Ke,setContent:pt,show:ee,hide:oe,hideWithInteractivity:he,enable:Z,disable:de,unmount:Ce,destroy:He};if(!n.render)return S;var C=n.render(S),T=C.popper,A=C.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(re){return re.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 re=S.props.touch;return Array.isArray(re)?re:[re,0]}function O(){return R()[0]==="hold"}function D(){var re;return!!((re=S.props.render)!=null&&re.$$tippy)}function $(){return m||e}function F(){var re=$().parentNode;return re?vbe(re):document}function z(){return VA(T)}function B(re){return S.state.isMounted&&!S.state.isVisible||ts.isTouch||c&&c.type==="focus"?0:fC(S.props.delay,re?0:1,Oa.delay)}function Y(re){re===void 0&&(re=!1),T.style.pointerEvents=S.props.interactive&&!re?"":"none",T.style.zIndex=""+S.props.zIndex}function j(re,Ae,Fe){if(Fe===void 0&&(Fe=!0),P.forEach(function(Ge){Ge[re]&&Ge[re].apply(Ge,Ae)}),Fe){var Qe;(Qe=S.props)[re].apply(Qe,Ae)}}function se(){var re=S.props.aria;if(re.content){var Ae="aria-"+re.content,Fe=T.id,Qe=wd(S.props.triggerTarget||e);Qe.forEach(function(Ge){var We=Ge.getAttribute(Ae);if(S.state.isVisible)Ge.setAttribute(Ae,We?We+" "+Fe:Fe);else{var et=We&&We.replace(Fe,"").trim();et?Ge.setAttribute(Ae,et):Ge.removeAttribute(Ae)}})}}function ge(){if(!(I||!S.props.aria.expanded)){var re=wd(S.props.triggerTarget||e);re.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),I0=I0.filter(function(re){return re!==v})}function Me(re){if(!(ts.isTouch&&(l||re.type==="mousedown"))){var Ae=re.composedPath&&re.composedPath()[0]||re.target;if(!(S.props.interactive&&G3(T,Ae))){if(wd(S.props.triggerTarget||e).some(function(Fe){return G3(Fe,Ae)})){if(ts.isTouch||S.state.isVisible&&S.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[S,re]);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 De(){var re=F();re.addEventListener("mousedown",Me,!0),re.addEventListener("touchend",Me,Ic),re.addEventListener("touchstart",ze,Ic),re.addEventListener("touchmove",Ne,Ic)}function je(){var re=F();re.removeEventListener("mousedown",Me,!0),re.removeEventListener("touchend",Me,Ic),re.removeEventListener("touchstart",ze,Ic),re.removeEventListener("touchmove",Ne,Ic)}function ce(re,Ae){Se(re,function(){!S.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&Ae()})}function Ee(re,Ae){Se(re,Ae)}function Se(re,Ae){var Fe=z().box;function Qe(Ge){Ge.target===Fe&&(hC(Fe,"remove",Qe),Ae())}if(re===0)return Ae();hC(Fe,"remove",f),hC(Fe,"add",Qe),f=Qe}function Te(re,Ae,Fe){Fe===void 0&&(Fe=!1);var Qe=wd(S.props.triggerTarget||e);Qe.forEach(function(Ge){Ge.addEventListener(re,Ae,Fe),h.push({node:Ge,eventType:re,handler:Ae,options:Fe})})}function Oe(){O()&&(Te("touchstart",H,{passive:!0}),Te("touchend",le,{passive:!0})),lbe(S.props.trigger).forEach(function(re){if(re!=="manual")switch(Te(re,H),re){case"mouseenter":Te("mouseleave",le);break;case"focus":Te(Sbe?"focusout":"blur",we);break;case"focusin":Te("focusout",we);break}})}function $e(){h.forEach(function(re){var Ae=re.node,Fe=re.eventType,Qe=re.handler,Ge=re.options;Ae.removeEventListener(Fe,Qe,Ge)}),h=[]}function H(re){var Ae,Fe=!1;if(!(!S.state.isEnabled||pe(re)||s)){var Qe=((Ae=c)==null?void 0:Ae.type)==="focus";c=re,m=re.currentTarget,ge(),!S.state.isVisible&&dbe(re)&&I0.forEach(function(Ge){return Ge(re)}),re.type==="click"&&(S.props.trigger.indexOf("mouseenter")<0||a)&&S.props.hideOnClick!==!1&&S.state.isVisible?Fe=!0:_e(re),re.type==="click"&&(a=!Fe),Fe&&!Qe&&Pe(re)}}function G(re){var Ae=re.target,Fe=$().contains(Ae)||T.contains(Ae);if(!(re.type==="mousemove"&&Fe)){var Qe=fe().concat(T).map(function(Ge){var We,et=Ge._tippy,Rt=(We=et.popperInstance)==null?void 0:We.state;return Rt?{popperRect:Ge.getBoundingClientRect(),popperState:Rt,props:n}:null}).filter(Boolean);gbe(Qe,re)&&(ve(),Pe(re))}}function le(re){var Ae=pe(re)||S.props.trigger.indexOf("click")>=0&&a;if(!Ae){if(S.props.interactive){S.hideWithInteractivity(re);return}Pe(re)}}function we(re){S.props.trigger.indexOf("focusin")<0&&re.target!==$()||S.props.interactive&&re.relatedTarget&&T.contains(re.relatedTarget)||Pe(re)}function pe(re){return ts.isTouch?O()!==re.type.indexOf("touch")>=0:!1}function U(){W();var re=S.props,Ae=re.popperOptions,Fe=re.placement,Qe=re.offset,Ge=re.getReferenceClientRect,We=re.moveTransition,et=D()?VA(T).arrow:null,Rt=Ge?{getBoundingClientRect:Ge,contextElement:Ge.contextElement||$()}:e,Ot={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Pn){var pr=Pn.state;if(D()){var Pf=z(),Sl=Pf.box;["placement","reference-hidden","escaped"].forEach(function(Ua){Ua==="placement"?Sl.setAttribute("data-placement",pr.placement):pr.attributes.popper["data-popper-"+Ua]?Sl.setAttribute("data-"+Ua,""):Sl.removeAttribute("data-"+Ua)}),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}},Ot];D()&&et&&Nn.push({name:"arrow",options:{element:et,padding:3}}),Nn.push.apply(Nn,(Ae==null?void 0:Ae.modifiers)||[]),S.popperInstance=obe(Rt,T,Object.assign({},Ae,{placement:Fe,onFirstUpdate:d,modifiers:Nn}))}function W(){S.popperInstance&&(S.popperInstance.destroy(),S.popperInstance=null)}function q(){var re=S.props.appendTo,Ae,Fe=$();S.props.interactive&&re===O8||re==="parent"?Ae=Fe.parentNode:Ae=M8(re,[Fe]),Ae.contains(T)||Ae.appendChild(T),S.state.isMounted=!0,U()}function fe(){return Y1(T.querySelectorAll("[data-tippy-root]"))}function _e(re){S.clearDelayTimeouts(),re&&j("onTrigger",[S,re]),De();var Ae=B(!0),Fe=R(),Qe=Fe[0],Ge=Fe[1];ts.isTouch&&Qe==="hold"&&Ge&&(Ae=Ge),Ae?r=setTimeout(function(){S.show()},Ae):S.show()}function Pe(re){if(S.clearDelayTimeouts(),j("onUntrigger",[S,re]),!S.state.isVisible){je();return}if(!(S.props.trigger.indexOf("mouseenter")>=0&&S.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(re.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 Ke(re){if(!S.state.isDestroyed){j("onBeforeUpdate",[S,re]),$e();var Ae=S.props,Fe=W3(e,Object.assign({},Ae,U3(re),{ignoreAttributes:!0}));S.props=Fe,Oe(),Ae.interactiveDebounce!==Fe.interactiveDebounce&&(ve(),v=B3(G,Fe.interactiveDebounce)),Ae.triggerTarget&&!Fe.triggerTarget?wd(Ae.triggerTarget).forEach(function(Qe){Qe.removeAttribute("aria-expanded")}):Fe.triggerTarget&&e.removeAttribute("aria-expanded"),ge(),Y(),A&&A(Ae,Fe),S.popperInstance&&(U(),fe().forEach(function(Qe){requestAnimationFrame(Qe._tippy.popperInstance.forceUpdate)})),j("onAfterUpdate",[S,re])}}function pt(re){S.setProps({content:re})}function ee(){var re=S.state.isVisible,Ae=S.state.isDestroyed,Fe=!S.state.isEnabled,Qe=ts.isTouch&&!S.props.touch,Ge=fC(S.props.duration,0,Oa.duration);if(!(re||Ae||Fe||Qe)&&!$().hasAttribute("disabled")&&(j("onShow",[S],!1),S.props.onShow(S)!==!1)){if(S.state.isVisible=!0,D()&&(T.style.visibility="visible"),Y(),De(),S.state.isMounted||(T.style.transition="none"),D()){var We=z(),et=We.box,Rt=We.content;dC([et,Rt],0)}d=function(){var Nn;if(!(!S.state.isVisible||u)){if(u=!0,T.offsetHeight,T.style.transition=S.props.moveTransition,D()&&S.props.animation){var ca=z(),Pn=ca.box,pr=ca.content;dC([Pn,pr],Ge),H3([Pn,pr],"visible")}se(),ge(),V3(pC,S),(Nn=S.popperInstance)==null||Nn.forceUpdate(),j("onMount",[S]),S.props.animation&&D()&&Ee(Ge,function(){S.state.isShown=!0,j("onShown",[S])})}},q()}}function oe(){var re=!S.state.isVisible,Ae=S.state.isDestroyed,Fe=!S.state.isEnabled,Qe=fC(S.props.duration,1,Oa.duration);if(!(re||Ae||Fe)&&(j("onHide",[S],!1),S.props.onHide(S)!==!1)){if(S.state.isVisible=!1,S.state.isShown=!1,u=!1,a=!1,D()&&(T.style.visibility="hidden"),ve(),je(),Y(!0),D()){var Ge=z(),We=Ge.box,et=Ge.content;S.props.animation&&(dC([We,et],Qe),H3([We,et],"hidden"))}se(),ge(),S.props.animation?D()&&ce(Qe,S.unmount):S.unmount()}}function he(re){F().addEventListener("mousemove",v),V3(I0,v),v(re)}function Ce(){S.state.isVisible&&S.hide(),S.state.isMounted&&(W(),fe().forEach(function(re){re._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),pC=pC.filter(function(re){return re!==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 pm(e,t){t===void 0&&(t={});var n=Oa.plugins.concat(t.plugins||[]);_be();var r=Object.assign({},t,{plugins:n}),i=pbe(e),o=i.reduce(function(a,s){var l=s&&Rbe(s,r);return l&&a.push(l),a},[]);return PS(e)?o[0]:o}pm.defaultProps=Oa;pm.setDefaultProps=Cbe;pm.currentInput=ts;Object.assign({},b8,{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)}});pm.setDefaultProps({render:N8});let vC;const SP=()=>{vC||(vC=document.getElementById("app-content"));let e=null;return{showTip:(n,r)=>{e==null||e.destroy(),e=pm(n.target,{content:r,placement:"top",animation:"scale",appendTo:vC,allowHTML:!0,onHidden:()=>{e==null||e.destroy(),e=null}}),e.show()}}},Pbe={class:"relative flex h-28 flex-col gap-1 rounded-lg bg-base-200/40 p-2"},Obe=["data-tip"],Mbe={key:0,class:"text-xs"},Dbe=["data-tip"],Lbe={key:0,class:"text-xs"},Nbe={class:"absolute bottom-2 right-2 flex items-center gap-2"},k8=rt({__name:"IPCheck",setup(e){const{t}=Fa(),n=ke(!1),{showTip:r}=SP(),i=a=>{r(a,t("ipScreenshotTip"))},o=()=>{yV().then(a=>{Rp.value={location:`${a.country} ${a.asn_organization}`,ip:a.ip}}),qoe().then(a=>{Pp.value={location:a.data.location.join(" "),ip:a.data.ip}})};return lo(()=>{J0.value&&[Rp,Pp].some(a=>a.value.ip==="")&&o()}),(a,s)=>(K(),te("div",Pbe,[L("div",null,[L("span",{class:"tooltip tooltip-bottom w-16 text-left text-sm","data-tip":a.$t("chinaIP")},"ipip.net",8,Obe),lt(" : "+ie(N(Pp).location)+" ",1),N(Pp).ip?(K(),te("span",Mbe,[n.value?(K(),te(Xe,{key:0},[lt(" ("+ie(N(Pp).ip)+") ",1)],64)):(K(),te(Xe,{key:1},[lt(" (***.***.***.***) ")],64))])):gt("",!0)]),L("div",null,[L("span",{class:"tooltip tooltip-bottom w-16 text-left text-sm","data-tip":a.$t("globalIP")},"api.ip.sb",8,Dbe),lt(" : "+ie(N(Rp).location)+" ",1),N(Rp).ip?(K(),te("span",Lbe,[n.value?(K(),te(Xe,{key:0},[lt(" ("+ie(N(Rp).ip)+") ",1)],64)):(K(),te(Xe,{key:1},[lt(" (***.***.***.***) ")],64))])):gt("",!0)]),L("div",Nbe,[L("button",{class:"btn btn-circle btn-sm flex items-center justify-center",onClick:s[0]||(s[0]=l=>n.value=!n.value),onMouseenter:i},[n.value?(K(),At(N(CQ),{key:0,class:"h-4 w-4"})):(K(),At(N(EQ),{key:1,class:"h-4 w-4"}))],32),L("button",{class:"btn btn-circle btn-sm",onClick:o},[ye(N(Pb),{class:"h-4 w-4"})])])]))}}),kbe={class:"card card-compact w-full"},Fbe={class:"card-title px-4 pt-4"},$be={class:"card-body gap-4"},Bbe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},Vbe=rt({__name:"NetworkCard",setup(e){return(t,n)=>(K(),te("div",kbe,[L("div",Fbe,ie(t.$t("networkInfo")),1),L("div",$be,[L("div",Bbe,[ye(k8),ye(m8)])])]))}}),Ube={class:"flex h-full flex-col gap-2 overflow-y-auto p-2"},Hbe={class:"card items-center justify-center gap-2 p-2 sm:flex-row"},Gbe=rt({__name:"OverviewPage",setup(e){return(t,n)=>(K(),te("div",Ube,[ye(J_e),ye(Vbe),n[0]||(n[0]=L("div",{class:"flex-1"},null,-1)),L("div",Hbe,[lt(ie(N(Au)(N(fl)))+" ",1),ye(rR)])]))}}),F8=rt({__name:"CollapseCard",props:{name:{}},setup(e){const t=e,n=Ve({get(){return Rx.value[t.name]},set(s){s?(i.value=!1,r.value=!0,ms(()=>{Rx.value[t.name]=!0})):Rx.value[t.name]=!1}}),r=ke(n.value),i=ke(!n.value),o=()=>{n.value||setTimeout(()=>{i.value=!n.value},50)},a=()=>{n.value||(r.value=!1)};return(s,l)=>(K(),te("div",{class:it(`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)},[Ld(s.$slots,"title"),i.value?Ld(s.$slots,"preview",{key:0}):gt("",!0)]),L("div",{class:"collapse-content flex flex-col gap-2 max-sm:px-2",onTransitionstart:o,onTransitionend:a},[r.value?Ld(s.$slots,"content",{key:0}):gt("",!0)],32)],2))}});var X1=function(){return X1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},X1.apply(this,arguments)},zbe=function(){function e(t,n,r){var i=this;this.endVal=n,this.options=r,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(o){i.startTime||(i.startTime=o);var a=o-i.startTime;i.remaining=i.duration-a,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(a,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(a,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(a/i.duration);var s=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=s?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),a<i.duration?i.rAF=requestAnimationFrame(i.count):i.finalEndVal!==null?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(o){var a,s,l,u,c=o<0?"-":"";a=Math.abs(o).toFixed(i.options.decimalPlaces);var f=(a+="").split(".");if(s=f[0],l=f.length>1?i.options.decimal+f[1]:"",i.options.useGrouping){u="";for(var d=3,h=0,v=0,m=s.length;v<m;++v)i.options.useIndianSeparators&&v===4&&(d=2,h=1),v!==0&&h%d==0&&(u=i.options.separator+u),h++,u=s[m-v-1]+u;s=u}return i.options.numerals&&i.options.numerals.length&&(s=s.replace(/[0-9]/g,function(y){return i.options.numerals[+y]}),l=l.replace(/[0-9]/g,function(y){return i.options.numerals[+y]})),c+i.options.prefix+s+l+i.options.suffix},this.easeOutExpo=function(o,a,s,l){return s*(1-Math.pow(2,-10*o/l))*1024/1023+a},this.options=X1(X1({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof t=="string"?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return i.handleScroll(i)}),window.onscroll=function(){window.onScrollFns.forEach(function(o){return o()})},this.handleScroll(this)))}return e.prototype.handleScroll=function(t){if(t&&window&&!t.once){var n=window.innerHeight+window.scrollY,r=t.el.getBoundingClientRect(),i=r.top+window.pageYOffset,o=r.top+r.height+window.pageYOffset;o<n&&o>window.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 $8=rt({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,n=ke(),r=Ve(()=>tm(t.name??""));let i=null;lo(()=>{Wt(r,(a,s)=>{i?i==null||i.update(a):ms(()=>{i=new zbe(n.value,r.value,{duration:1,separator:"",enableScrollSpy:!1,startVal:s}),i==null||i.update(a)})})}),Sh(()=>{i=null});const o=Ve(()=>iu(r.value));return(a,s)=>(K(),te("div",{class:it(N(Cn)("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(wo)||!r.value?(K(),At(N(Pb),{key:0,class:"h-3 w-3 text-base-content"})):gt("",!0),_t(L("div",{ref_key:"latencyRef",ref:n},ie(r.value),513),[[EI,r.value!==N(wo)]])],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:B8,setPrototypeOf:X3,isFrozen:Wbe,getPrototypeOf:jbe,getOwnPropertyDescriptor:Ybe}=Object;let{freeze:Mi,seal:sa,create:V8}=Object,{apply:UA,construct:HA}=typeof Reflect<"u"&&Reflect;Mi||(Mi=function(t){return t});sa||(sa=function(t){return t});UA||(UA=function(t,n,r){return t.apply(n,r)});HA||(HA=function(t,n){return new t(...n)});const R0=Oo(Array.prototype.forEach),K3=Oo(Array.prototype.pop),Mp=Oo(Array.prototype.push),k_=Oo(String.prototype.toLowerCase),gC=Oo(String.prototype.toString),Z3=Oo(String.prototype.match),Dp=Oo(String.prototype.replace),Xbe=Oo(String.prototype.indexOf),Kbe=Oo(String.prototype.trim),Ta=Oo(Object.prototype.hasOwnProperty),_i=Oo(RegExp.prototype.test),Lp=Zbe(TypeError);function Oo(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return UA(e,t,r)}}function Zbe(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return HA(e,n)}}function qt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k_;X3&&X3(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(Wbe(t)||(t[r]=o),i=o)}e[i]=!0}return e}function qbe(e){for(let t=0;t<e.length;t++)Ta(e,t)||(e[t]=null);return e}function Rc(e){const t=V8(null);for(const[n,r]of B8(e))Ta(e,n)&&(Array.isArray(r)?t[n]=qbe(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Rc(r):t[n]=r);return t}function Np(e,t){for(;e!==null;){const r=Ybe(e,t);if(r){if(r.get)return Oo(r.get);if(typeof r.value=="function")return Oo(r.value)}e=jbe(e)}function n(){return null}return n}const q3=Mi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),mC=Mi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),yC=Mi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Jbe=Mi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_C=Mi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Qbe=Mi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),J3=Mi(["#text"]),Q3=Mi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),bC=Mi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),e5=Mi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),P0=Mi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),eSe=sa(/\{\{[\w\W]*|[\w\W]*\}\}/gm),tSe=sa(/<%[\w\W]*|[\w\W]*%>/gm),nSe=sa(/\$\{[\w\W]*}/gm),rSe=sa(/^data-[\-\w.\u00B7-\uFFFF]+$/),iSe=sa(/^aria-[\-\w]+$/),U8=sa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oSe=sa(/^(?:\w+script|data):/i),aSe=sa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),H8=sa(/^html$/i),sSe=sa(/^[a-z][.\w]*(-[.\w]+)+$/i);var t5=Object.freeze({__proto__:null,ARIA_ATTR:iSe,ATTR_WHITESPACE:aSe,CUSTOM_ELEMENT:sSe,DATA_ATTR:rSe,DOCTYPE_NAME:H8,ERB_EXPR:tSe,IS_ALLOWED_URI:U8,IS_SCRIPT_OR_DATA:oSe,MUSTACHE_EXPR:eSe,TMPLIT_EXPR:nSe});const kp={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},lSe=function(){return typeof window>"u"?null:window},uSe=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}},n5=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function G8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lSe();const t=vt=>G8(vt);if(t.version="3.2.3",t.removed=[],!e||!e.document||e.document.nodeType!==kp.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=Np(v,"cloneNode"),y=Np(v,"remove"),_=Np(v,"nextSibling"),b=Np(v,"childNodes"),w=Np(v,"parentNode");if(typeof a=="function"){const vt=n.createElement("template");vt.content&&vt.content.ownerDocument&&(n=vt.content.ownerDocument)}let S,C="";const{implementation:T,createNodeIterator:A,createDocumentFragment:P,getElementsByTagName:I}=n,{importNode:R}=r;let O=n5();t.isSupported=typeof B8=="function"&&typeof w=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:D,ERB_EXPR:$,TMPLIT_EXPR:F,DATA_ATTR:z,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:se}=t5;let{IS_ALLOWED_URI:ge}=t5,ve=null;const Me=qt({},[...q3,...mC,...yC,..._C,...J3]);let Ne=null;const ze=qt({},[...Q3,...bC,...e5,...P0]);let De=Object.seal(V8(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,Ee=!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 Ke=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 pt=null;const ee=qt({},["audio","video","img","source","image","track"]);let oe=null;const he=qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ce="http://www.w3.org/1998/Math/MathML",He="http://www.w3.org/2000/svg",re="http://www.w3.org/1999/xhtml";let Ae=re,Fe=!1,Qe=null;const Ge=qt({},[Ce,He,re],gC);let We=qt({},["mi","mo","mn","ms","mtext"]),et=qt({},["annotation-xml"]);const Rt=qt({},["title","style","font","a","script"]);let Ot=null;const Nn=["application/xhtml+xml","text/html"],ca="text/html";let Pn=null,pr=null;const Pf=n.createElement("form"),Sl=function(ne){return ne instanceof RegExp||ne instanceof Function},Ua=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(pr&&pr===ne)){if((!ne||typeof ne!="object")&&(ne={}),ne=Rc(ne),Ot=Nn.indexOf(ne.PARSER_MEDIA_TYPE)===-1?ca:ne.PARSER_MEDIA_TYPE,Pn=Ot==="application/xhtml+xml"?gC:k_,ve=Ta(ne,"ALLOWED_TAGS")?qt({},ne.ALLOWED_TAGS,Pn):Me,Ne=Ta(ne,"ALLOWED_ATTR")?qt({},ne.ALLOWED_ATTR,Pn):ze,Qe=Ta(ne,"ALLOWED_NAMESPACES")?qt({},ne.ALLOWED_NAMESPACES,gC):Ge,oe=Ta(ne,"ADD_URI_SAFE_ATTR")?qt(Rc(he),ne.ADD_URI_SAFE_ATTR,Pn):he,pt=Ta(ne,"ADD_DATA_URI_TAGS")?qt(Rc(ee),ne.ADD_DATA_URI_TAGS,Pn):ee,Be=Ta(ne,"FORBID_CONTENTS")?qt({},ne.FORBID_CONTENTS,Pn):Ke,je=Ta(ne,"FORBID_TAGS")?qt({},ne.FORBID_TAGS,Pn):{},ce=Ta(ne,"FORBID_ATTR")?qt({},ne.FORBID_ATTR,Pn):{},de=Ta(ne,"USE_PROFILES")?ne.USE_PROFILES:!1,Ee=ne.ALLOW_ARIA_ATTR!==!1,Se=ne.ALLOW_DATA_ATTR!==!1,Te=ne.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=ne.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$e=ne.SAFE_FOR_TEMPLATES||!1,H=ne.SAFE_FOR_XML!==!1,G=ne.WHOLE_DOCUMENT||!1,pe=ne.RETURN_DOM||!1,U=ne.RETURN_DOM_FRAGMENT||!1,W=ne.RETURN_TRUSTED_TYPE||!1,we=ne.FORCE_BODY||!1,q=ne.SANITIZE_DOM!==!1,fe=ne.SANITIZE_NAMED_PROPS||!1,Pe=ne.KEEP_CONTENT!==!1,Z=ne.IN_PLACE||!1,ge=ne.ALLOWED_URI_REGEXP||U8,Ae=ne.NAMESPACE||re,We=ne.MATHML_TEXT_INTEGRATION_POINTS||We,et=ne.HTML_INTEGRATION_POINTS||et,De=ne.CUSTOM_ELEMENT_HANDLING||{},ne.CUSTOM_ELEMENT_HANDLING&&Sl(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(De.tagNameCheck=ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&Sl(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(De.attributeNameCheck=ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(De.allowCustomizedBuiltInElements=ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$e&&(Se=!1),U&&(pe=!0),de&&(ve=qt({},J3),Ne=[],de.html===!0&&(qt(ve,q3),qt(Ne,Q3)),de.svg===!0&&(qt(ve,mC),qt(Ne,bC),qt(Ne,P0)),de.svgFilters===!0&&(qt(ve,yC),qt(Ne,bC),qt(Ne,P0)),de.mathMl===!0&&(qt(ve,_C),qt(Ne,e5),qt(Ne,P0))),ne.ADD_TAGS&&(ve===Me&&(ve=Rc(ve)),qt(ve,ne.ADD_TAGS,Pn)),ne.ADD_ATTR&&(Ne===ze&&(Ne=Rc(Ne)),qt(Ne,ne.ADD_ATTR,Pn)),ne.ADD_URI_SAFE_ATTR&&qt(oe,ne.ADD_URI_SAFE_ATTR,Pn),ne.FORBID_CONTENTS&&(Be===Ke&&(Be=Rc(Be)),qt(Be,ne.FORBID_CONTENTS,Pn)),Pe&&(ve["#text"]=!0),G&&qt(ve,["html","head","body"]),ve.table&&(qt(ve,["tbody"]),delete je.tbody),ne.TRUSTED_TYPES_POLICY){if(typeof ne.TRUSTED_TYPES_POLICY.createHTML!="function")throw Lp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ne.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Lp('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=ne.TRUSTED_TYPES_POLICY,C=S.createHTML("")}else S===void 0&&(S=uSe(h,i)),S!==null&&typeof C=="string"&&(C=S.createHTML(""));Mi&&Mi(ne),pr=ne}},wm=qt({},[...mC,...yC,...Jbe]),Of=qt({},[..._C,...Qbe]),KS=function(ne){let Ue=w(ne);(!Ue||!Ue.tagName)&&(Ue={namespaceURI:Ae,tagName:"template"});const at=k_(ne.tagName),Sn=k_(Ue.tagName);return Qe[ne.namespaceURI]?ne.namespaceURI===He?Ue.namespaceURI===re?at==="svg":Ue.namespaceURI===Ce?at==="svg"&&(Sn==="annotation-xml"||We[Sn]):!!wm[at]:ne.namespaceURI===Ce?Ue.namespaceURI===re?at==="math":Ue.namespaceURI===He?at==="math"&&et[Sn]:!!Of[at]:ne.namespaceURI===re?Ue.namespaceURI===He&&!et[Sn]||Ue.namespaceURI===Ce&&!We[Sn]?!1:!Of[at]&&(Rt[at]||!wm[at]):!!(Ot==="application/xhtml+xml"&&Qe[ne.namespaceURI]):!1},Di=function(ne){Mp(t.removed,{element:ne});try{w(ne).removeChild(ne)}catch{y(ne)}},Mf=function(ne,Ue){try{Mp(t.removed,{attribute:Ue.getAttributeNode(ne),from:Ue})}catch{Mp(t.removed,{attribute:null,from:Ue})}if(Ue.removeAttribute(ne),ne==="is")if(pe||U)try{Di(Ue)}catch{}else try{Ue.setAttribute(ne,"")}catch{}},xm=function(ne){let Ue=null,at=null;if(we)ne="<remove></remove>"+ne;else{const Qn=Z3(ne,/^[\r\n\t ]+/);at=Qn&&Qn[0]}Ot==="application/xhtml+xml"&&Ae===re&&(ne='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ne+"</body></html>");const Sn=S?S.createHTML(ne):ne;if(Ae===re)try{Ue=new d().parseFromString(Sn,Ot)}catch{}if(!Ue||!Ue.documentElement){Ue=T.createDocument(Ae,"template",null);try{Ue.documentElement.innerHTML=Fe?C:Sn}catch{}}const Rr=Ue.body||Ue.documentElement;return ne&&at&&Rr.insertBefore(n.createTextNode(at),Rr.childNodes[0]||null),Ae===re?I.call(Ue,G?"html":"body")[0]:G?Ue.documentElement:Rr},Tm=function(ne){return A.call(ne.ownerDocument||ne,ne,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Lh=function(ne){return ne instanceof f&&(typeof ne.nodeName!="string"||typeof ne.textContent!="string"||typeof ne.removeChild!="function"||!(ne.attributes instanceof c)||typeof ne.removeAttribute!="function"||typeof ne.setAttribute!="function"||typeof ne.namespaceURI!="string"||typeof ne.insertBefore!="function"||typeof ne.hasChildNodes!="function")},Cm=function(ne){return typeof s=="function"&&ne instanceof s};function fa(vt,ne,Ue){R0(vt,at=>{at.call(t,ne,Ue,pr)})}const Em=function(ne){let Ue=null;if(fa(O.beforeSanitizeElements,ne,null),Lh(ne))return Di(ne),!0;const at=Pn(ne.nodeName);if(fa(O.uponSanitizeElement,ne,{tagName:at,allowedTags:ve}),ne.hasChildNodes()&&!Cm(ne.firstElementChild)&&_i(/<[/\w]/g,ne.innerHTML)&&_i(/<[/\w]/g,ne.textContent)||ne.nodeType===kp.progressingInstruction||H&&ne.nodeType===kp.comment&&_i(/<[/\w]/g,ne.data))return Di(ne),!0;if(!ve[at]||je[at]){if(!je[at]&&Nh(at)&&(De.tagNameCheck instanceof RegExp&&_i(De.tagNameCheck,at)||De.tagNameCheck instanceof Function&&De.tagNameCheck(at)))return!1;if(Pe&&!Be[at]){const Sn=w(ne)||ne.parentNode,Rr=b(ne)||ne.childNodes;if(Rr&&Sn){const Qn=Rr.length;for(let Yr=Qn-1;Yr>=0;--Yr){const Mo=m(Rr[Yr],!0);Mo.__removalCount=(ne.__removalCount||0)+1,Sn.insertBefore(Mo,_(ne))}}}return Di(ne),!0}return ne instanceof l&&!KS(ne)||(at==="noscript"||at==="noembed"||at==="noframes")&&_i(/<\/no(script|embed|frames)/i,ne.innerHTML)?(Di(ne),!0):($e&&ne.nodeType===kp.text&&(Ue=ne.textContent,R0([D,$,F],Sn=>{Ue=Dp(Ue,Sn," ")}),ne.textContent!==Ue&&(Mp(t.removed,{element:ne.cloneNode()}),ne.textContent=Ue)),fa(O.afterSanitizeElements,ne,null),!1)},Am=function(ne,Ue,at){if(q&&(Ue==="id"||Ue==="name")&&(at in n||at in Pf))return!1;if(!(Se&&!ce[Ue]&&_i(z,Ue))){if(!(Ee&&_i(B,Ue))){if(!Ne[Ue]||ce[Ue]){if(!(Nh(ne)&&(De.tagNameCheck instanceof RegExp&&_i(De.tagNameCheck,ne)||De.tagNameCheck instanceof Function&&De.tagNameCheck(ne))&&(De.attributeNameCheck instanceof RegExp&&_i(De.attributeNameCheck,Ue)||De.attributeNameCheck instanceof Function&&De.attributeNameCheck(Ue))||Ue==="is"&&De.allowCustomizedBuiltInElements&&(De.tagNameCheck instanceof RegExp&&_i(De.tagNameCheck,at)||De.tagNameCheck instanceof Function&&De.tagNameCheck(at))))return!1}else if(!oe[Ue]){if(!_i(ge,Dp(at,j,""))){if(!((Ue==="src"||Ue==="xlink:href"||Ue==="href")&&ne!=="script"&&Xbe(at,"data:")===0&&pt[ne])){if(!(Te&&!_i(Y,Dp(at,j,"")))){if(at)return!1}}}}}}return!0},Nh=function(ne){return ne!=="annotation-xml"&&Z3(ne,se)},Im=function(ne){fa(O.beforeSanitizeAttributes,ne,null);const{attributes:Ue}=ne;if(!Ue||Lh(ne))return;const at={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne,forceKeepAttr:void 0};let Sn=Ue.length;for(;Sn--;){const Rr=Ue[Sn],{name:Qn,namespaceURI:Yr,value:Mo}=Rr,zu=Pn(Qn);let Pr=Qn==="value"?Mo:Kbe(Mo);if(at.attrName=zu,at.attrValue=Pr,at.keepAttr=!0,at.forceKeepAttr=void 0,fa(O.uponSanitizeAttribute,ne,at),Pr=at.attrValue,fe&&(zu==="id"||zu==="name")&&(Mf(Qn,ne),Pr=_e+Pr),H&&_i(/((--!?|])>)|<\/(style|title)/i,Pr)){Mf(Qn,ne);continue}if(at.forceKeepAttr||(Mf(Qn,ne),!at.keepAttr))continue;if(!Oe&&_i(/\/>/i,Pr)){Mf(Qn,ne);continue}$e&&R0([D,$,F],Fh=>{Pr=Dp(Pr,Fh," ")});const kh=Pn(ne.nodeName);if(Am(kh,zu,Pr)){if(S&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Yr)switch(h.getAttributeType(kh,zu)){case"TrustedHTML":{Pr=S.createHTML(Pr);break}case"TrustedScriptURL":{Pr=S.createScriptURL(Pr);break}}try{Yr?ne.setAttributeNS(Yr,Qn,Pr):ne.setAttribute(Qn,Pr),Lh(ne)?Di(ne):K3(t.removed)}catch{}}}fa(O.afterSanitizeAttributes,ne,null)},ZS=function vt(ne){let Ue=null;const at=Tm(ne);for(fa(O.beforeSanitizeShadowDOM,ne,null);Ue=at.nextNode();)fa(O.uponSanitizeShadowNode,Ue,null),Em(Ue),Im(Ue),Ue.content instanceof o&&vt(Ue.content);fa(O.afterSanitizeShadowDOM,ne,null)};return t.sanitize=function(vt){let ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ue=null,at=null,Sn=null,Rr=null;if(Fe=!vt,Fe&&(vt="<!-->"),typeof vt!="string"&&!Cm(vt))if(typeof vt.toString=="function"){if(vt=vt.toString(),typeof vt!="string")throw Lp("dirty is not a string, aborting")}else throw Lp("toString is not a function");if(!t.isSupported)return vt;if(le||Ua(ne),t.removed=[],typeof vt=="string"&&(Z=!1),Z){if(vt.nodeName){const Mo=Pn(vt.nodeName);if(!ve[Mo]||je[Mo])throw Lp("root node is forbidden and cannot be sanitized in-place")}}else if(vt instanceof s)Ue=xm("<!---->"),at=Ue.ownerDocument.importNode(vt,!0),at.nodeType===kp.element&&at.nodeName==="BODY"||at.nodeName==="HTML"?Ue=at:Ue.appendChild(at);else{if(!pe&&!$e&&!G&&vt.indexOf("<")===-1)return S&&W?S.createHTML(vt):vt;if(Ue=xm(vt),!Ue)return pe?null:W?C:""}Ue&&we&&Di(Ue.firstChild);const Qn=Tm(Z?vt:Ue);for(;Sn=Qn.nextNode();)Em(Sn),Im(Sn),Sn.content instanceof o&&ZS(Sn.content);if(Z)return vt;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 Yr=G?Ue.outerHTML:Ue.innerHTML;return G&&ve["!doctype"]&&Ue.ownerDocument&&Ue.ownerDocument.doctype&&Ue.ownerDocument.doctype.name&&_i(H8,Ue.ownerDocument.doctype.name)&&(Yr="<!DOCTYPE "+Ue.ownerDocument.doctype.name+`>
|
||
`+Yr),$e&&R0([D,$,F],Mo=>{Yr=Dp(Yr,Mo," ")}),S&&W?S.createHTML(Yr):Yr},t.setConfig=function(){let vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ua(vt),le=!0},t.clearConfig=function(){pr=null,le=!1},t.isValidAttribute=function(vt,ne,Ue){pr||Ua({});const at=Pn(vt),Sn=Pn(ne);return Am(at,Sn,Ue)},t.addHook=function(vt,ne){typeof ne=="function"&&Mp(O[vt],ne)},t.removeHook=function(vt){return K3(O[vt])},t.removeHooks=function(vt){O[vt]=[]},t.removeAllHooks=function(){O=n5()},t}var cSe=G8();const fSe=["innerHTML"],dSe=["src"],r5="data:image/svg+xml,",z8=rt({__name:"ProxyIcon",props:{icon:{},fill:{},size:{}},setup(e){const t=e,n=Ve(()=>({width:(t.size==="small"?bv.value:bv.value+4)+"px",marginRight:o_.value-4+"px"})),r=Ve(()=>t.icon.startsWith(r5)),i=Ve(()=>{if(r.value)return cSe.sanitize(t.icon.replace(r5,""))}),o=ke(""),a=async(l,u)=>{const f=await(await fetch(u)).blob(),d=new FileReader;d.onload=async()=>{const h=d.result;await wre(l,h),o.value=h},d.readAsDataURL(f)},s=async()=>{const l=t.icon;try{const u=await xre(l);u?o.value=u:await a(l,l)}catch(u){console.error("Fallback to original icon:",u),o.value=t.icon}};return lo(()=>{r.value?o.value=t.icon:s()}),(l,u)=>r.value?(K(),te("div",{key:0,class:it(["inline-block",l.fill||"fill-primary"]),style:Gr(n.value),innerHTML:i.value},null,14,fSe)):(K(),te("img",{key:1,style:Gr(n.value),src:o.value},null,12,dSe))}}),hSe={class:"flex items-center gap-1"},K1=rt({__name:"ProxyName",props:{name:{},size:{}},setup(e){const t=e,n=Ve(()=>{var r;return(r=Wr.value[t.name])==null?void 0:r.icon});return(r,i)=>(K(),te("div",hSe,[n.value?(K(),At(z8,{key:0,icon:n.value,size:r.size==="large"?"large":"small"},null,8,["icon","size"])):gt("",!0),L("span",{class:it(r.size==="large"?"text-lg font-medium":"text-sm")},ie(r.name),3)]))}}),pSe={class:"flex w-full flex-1 items-center gap-1"},vSe={class:"flex h-4 w-full items-center justify-between"},gSe=rt({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,{showTip:n}=SP(),r=c=>{const f=c.target,{scrollWidth:d,clientWidth:h}=f;d>h&&n(c,f.innerText)},i=Ve(()=>Wr.value[t.name]),o=ke(!1),a=c=>(c=c.toLowerCase(),c=c.replace("shadowsocks","ss"),c=c.replace("hysteria","hy"),c=c.replace("wireguard","wg"),c),s=Ve(()=>_v.value===Jg.SMALL),l=Ve(()=>{const c=a(i.value.type),f=qc.value&&Gre(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 zre(t.name),o.value=!1}catch{o.value=!1}}};return(c,f)=>(K(),te("div",{ref:"cardRef",class:it(N(Cn)("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",pSe,[i.value.icon?(K(),At(z8,{key:0,class:"shrink-0",size:"small",icon:i.value.icon,fill:c.active?"fill-primary-content":"fill-base-content"},null,8,["icon","fill"])):gt("",!0),L("span",{class:it(N(Cn)("text-sm",N(mv)&&"truncate")),onMouseenter:r},ie(i.value.name),35)]),L("div",vSe,[L("span",{class:it(`whitespace-nowrap text-xs tracking-tight ${c.active?"text-primary-content":"text-slate-500"}`)},ie(l.value),3),ye($8,{class:it([o.value?"animate-pulse cursor-wait":"",s.value&&"!h-4 !w-8"]),name:i.value.name,onClick:To(u,["stop"])},null,8,["class","name"])])],2))}}),W8=qb(gSe,[["__scopeId","data-v-c4818018"]]),mSe=rt({__name:"ProxyNodeGrid",setup(e){const{hasTwoColumns:t}=Jb();return(n,r)=>(K(),te("div",{class:it(N(Cn)("grid grid-cols-2 gap-2 overflow-y-auto overflow-x-hidden",N(mv)&&"max-h-96",N(_v)===N(Jg).LARGE?N(yu)?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(yu)?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-6 2xl:grid-cols-8 3xl:grid-cols-10"))},[Ld(n.$slots,"default",{},void 0,!0)],2))}}),j8=qb(mSe,[["__scopeId","data-v-dcec687a"]]),ySe={key:0,class:"flex flex-wrap gap-1 pt-2"},_Se=["onMouseenter","onClick"],bSe={key:0,class:"h-2 w-2 rounded-full bg-white"},SSe={key:1,class:"flex items-center gap-2 py-2"},wSe={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},xSe=rt({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,{showTip:n}=SP(),r=(f,d)=>{const h=document.createElement("div"),v=document.createElement("div");if(v.textContent=d.name,h.append(v),d.latency!==wo){const m=document.createElement("div");m.textContent=`${d.latency}ms`,m.classList.add(iu(d.latency)),h.append(m)}h.classList.add("flex","items-center","gap-2"),n(f,h)},i=Ve(()=>yv.value===fg.DOTS||yv.value===fg.AUTO&&t.nodes.length<20),o=Ve(()=>t.nodes.map(f=>({latency:tm(f),name:f}))),a=f=>f===wo?"bg-gray-500":f<lu.value?"bg-low-latency":f<Xs.value?"bg-medium-latency":"bg-high-latency",s=Ve(()=>o.value.filter(f=>f.latency<lu.value&&f.latency>wo).length),l=Ve(()=>o.value.filter(f=>f.latency>=lu.value&&f.latency<Xs.value).length),u=Ve(()=>o.value.filter(f=>f.latency>=Xs.value).length),c=Ve(()=>o.value.filter(f=>f.latency===wo).length);return(f,d)=>i.value?(K(),te("div",ySe,[(K(!0),te(Xe,null,rn(o.value,h=>(K(),te("div",{key:h.name,class:it(["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:To(v=>f.$emit("nodeclick",h.name),["stop"])},[f.now===h.name?(K(),te("div",bSe)):gt("",!0)],42,_Se))),128))])):(K(),te("div",SSe,[L("div",wSe,[L("div",{class:it(a(N(lu)-1)),style:Gr({width:`${s.value*100/f.nodes.length}%`})},null,6),L("div",{class:it(a(N(Xs)-1)),style:Gr({width:`${l.value*100/f.nodes.length}%`})},null,6),L("div",{class:it(a(N(Xs)+1)),style:Gr({width:`${u.value*100/f.nodes.length}%`})},null,6),L("div",{class:it(a(N(wo))),style:Gr({width:`${c.value*100/f.nodes.length}%`})},null,6)])]))}}),Y8=qb(xSe,[["__scopeId","data-v-7ca56d01"]]),TSe={class:"flex items-center gap-2 pr-5"},CSe={class:"flex flex-1 items-center gap-1"},ESe={class:"flex-1 text-xs text-slate-400"},ASe={class:"mt-[2px] flex items-center gap-2"},ISe={class:"flex flex-1 items-center gap-1"},RSe={class:"shrink-0 text-xs text-slate-500"},PSe=rt({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,n=Ve(()=>Wr.value[t.name]),r=Ve(()=>$B(n.value.all??[])),i=ke(!1),o=async()=>{if(!i.value){i.value=!0;try{await Wre(t.name),i.value=!1}catch{i.value=!1}}},a=Ve(()=>Ra.value.filter(l=>l.chains.includes(t.name)).reduce((l,u)=>l+u.downloadSpeed,0));return(s,l)=>(K(),At(F8,{name:n.value.name},{title:Dr(()=>{var u;return[L("div",TSe,[L("div",CSe,[ye(K1,{name:n.value.name,size:"large"},null,8,["name"]),L("span",ESe,": "+ie(n.value.type)+" ("+ie((u=n.value.all)==null?void 0:u.length)+")",1)]),ye($8,{class:it(N(Cn)("z-10 bg-base-200/40 hover:shadow",i.value?"animate-pulse cursor-wait bg-base-300":"")),name:n.value.now,onClick:To(o,["stop"])},null,8,["class","name"])]),L("div",ASe,[L("div",ISe,[n.value.now?(K(),te(Xe,{key:0},[ye(N(ff),{class:"h-4 w-4"}),ye(K1,{class:"text-slate-500",name:n.value.now},null,8,["name"])],64)):gt("",!0)]),L("div",RSe,ie(N(Tn)(a.value))+"/s",1)])]}),preview:Dr(()=>[ye(Y8,{nodes:r.value,now:n.value.now,groupName:n.value.name,onNodeclick:l[0]||(l[0]=u=>N(yL)(n.value.name,u))},null,8,["nodes","now","groupName"])]),content:Dr(()=>[ye(j8,null,{default:Dr(()=>[(K(!0),te(Xe,null,rn(r.value,u=>(K(),At(W8,{key:u,name:u,active:u===n.value.now,onClick:c=>N(yL)(n.value.name,u)},null,8,["name","active","onClick"]))),128))]),_:1})]),_:1},8,["name"]))}}),OSe={class:"flex items-center gap-2"},MSe={class:"text-lg font-medium sm:text-xl"},DSe={class:"text-sm"},LSe={class:"flex gap-2"},NSe=["value"],kSe={class:"flex flex-col sm:flex-row sm:gap-4"},FSe={class:"text-sm text-slate-500"},$Se={class:"text-sm text-slate-500"},BSe={class:"text-sm text-slate-500"},VSe=rt({__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}),_=zr.toFinite(((f+d)/h*100).toFixed(2));return{total:m,used:y,percentage:_,expirePrefix:()=>{const{t:S}=Fa();return S("expire")},expireStr:()=>{const{t:S}=Fa();return v===0?S("noExpire"):La(v*1e3).format("YYYY-MM-DD")}}},r=Ve(()=>Fd.value.find(c=>c.name===t.name)),i=Ve(()=>$B(r.value.proxies.map(c=>c.name))),o=Ve(()=>r.value.subscriptionInfo?n(r.value.subscriptionInfo):null),a=ke(!1),s=ke(!1),l=async()=>{if(!s.value){s.value=!0;try{await Foe(t.name),await dl(),s.value=!1}catch{s.value=!1}}},u=async()=>{if(!a.value){a.value=!0;try{await pV(t.name),await dl(),a.value=!1}catch{a.value=!1}}};return(c,f)=>(K(),At(F8,{name:r.value.name},{title:Dr(()=>[L("div",OSe,[L("div",MSe,[lt(ie(r.value.name)+" ",1),L("span",DSe," ("+ie(r.value.proxies.length)+") ",1)]),f[0]||(f[0]=L("div",{class:"flex-1"},null,-1)),L("div",LSe,[L("button",{class:it(N(Cn)("btn btn-circle btn-sm z-30",s.value?"animate-pulse":"")),onClick:To(l,["stop"])},[ye(N(Pb),{class:"h-4 w-4"})],2),L("button",{class:it(N(Cn)("btn btn-circle btn-sm z-30",a.value?"animate-spin":"")),onClick:To(u,["stop"])},[ye(N(W4),{class:"h-4 w-4"})],2)])]),o.value?(K(),te("progress",{key:0,class:"progress",value:o.value.percentage,max:"100"},null,8,NSe)):gt("",!0),L("div",kSe,[o.value?(K(),te(Xe,{key:0},[L("div",FSe,ie(o.value.used)+" / "+ie(o.value.total)+" ( "+ie(o.value.percentage)+"% ) ",1),L("div",$Se,ie(o.value.expirePrefix())+": "+ie(o.value.expireStr()),1)],64)):gt("",!0),L("div",BSe,ie(c.$t("updated"))+" "+ie(N(Hb)(r.value.updatedAt)),1)])]),preview:Dr(()=>[ye(Y8,{nodes:i.value},null,8,["nodes"])]),content:Dr(()=>[ye(j8,null,{default:Dr(()=>[(K(!0),te(Xe,null,rn(i.value,d=>(K(),At(W8,{key:d,name:d},null,8,["name"]))),128))]),_:1})]),_:1},8,["name"]))}}),USe={class:"p-2"},HSe={key:0,class:"grid grid-cols-2 gap-1"},GSe={key:1,class:"grid grid-cols-1 gap-1"},zSe=rt({__name:"ProxiesPage",setup(e){const{proxiesTabShow:t,renderGroups:n}=Jb(),r=Ve(()=>t.value===df.PROVIDER?VSe:PSe),i=(o,a)=>o.filter((s,l)=>l%2===a);return dl(),(o,a)=>(K(),te("div",USe,[N(mre)&&N(pv)&&N(n).length>1?(K(),te("div",HSe,[(K(),te(Xe,null,rn([0,1],s=>L("div",{key:s,class:"flex flex-1 flex-col gap-1"},[(K(!0),te(Xe,null,rn(i(N(n),s),l=>(K(),At(cs(r.value),{key:l,name:l},null,8,["name"]))),128))])),64))])):(K(),te("div",GSe,[(K(!0),te(Xe,null,rn(N(n),s=>(K(),At(cs(r.value),{key:s,name:s},null,8,["name"]))),128))]))]))}}),WSe={class:"mr-2 inline-block min-w-4 text-center"},jSe={class:"mr-2 text-slate-500"},YSe={key:0,class:"mr-2 text-primary"},XSe={key:1,class:"badge badge-sm bg-base-200"},KSe={class:"flex items-center gap-1"},i5=rt({__name:"RuleCard",props:{rule:{},index:{}},setup(e){const t=e,n=Ve(()=>Wr.value[t.rule.proxy]),r=Ve(()=>tm(t.rule.proxy)),i=Ve(()=>iu(Number(r.value)));return(o,a)=>{var s;return K(),te("div",{class:it(N(Cn)("card mb-1 gap-1 p-2 text-sm",!o.rule.payload&&"gap-0"))},[L("div",null,[L("span",WSe,ie(o.index)+".",1),L("span",jSe,ie(o.rule.type)+":",1),o.rule.payload?(K(),te("span",YSe,ie(o.rule.payload),1)):gt("",!0),typeof o.rule.size=="number"&&o.rule.size!==-1?(K(),te("span",XSe,ie(o.rule.size),1)):gt("",!0)]),L("div",KSe,[ye(K1,{name:o.rule.proxy},null,8,["name"]),(s=n.value)!=null&&s.now?(K(),te(Xe,{key:0},[ye(N(ff),{class:"h-4 w-4"}),ye(K1,{name:n.value.now},null,8,["name"])],64)):gt("",!0),r.value!==N(wo)?(K(),te("span",{key:1,class:it([i.value,"ml-1"])},ie(r.value)+"ms",3)):gt("",!0)])],2)}}}),ZSe={class:"card w-full flex-row items-center gap-2 p-1 px-2 text-sm"},qSe={class:"flex flex-1 flex-col sm:flex-row"},JSe={class:"flex flex-1 items-center gap-2"},QSe={class:"badge badge-sm bg-base-200"},ewe={class:"flex gap-3 text-slate-500"},twe=rt({__name:"RuleProvider",props:{ruleProvider:{},index:{}},setup(e){const t=ke(!1),n=e,r=async()=>{t.value||(t.value=!0,await vV(n.ruleProvider.name),_g(),t.value=!1)};return(i,o)=>(K(),te("div",ZSe,[L("div",qSe,[L("div",JSe,[L("span",null,ie(i.index)+".",1),L("span",null,ie(i.ruleProvider.name),1),L("span",QSe,ie(i.ruleProvider.ruleCount),1)]),L("div",ewe,[L("span",null,ie(i.ruleProvider.behavior),1),L("span",null,ie(i.ruleProvider.vehicleType),1),L("span",null,ie(i.$t("updated"))+" "+ie(N(Hb)(i.ruleProvider.updatedAt)),1)])]),L("button",{class:it(N(Cn)("btn btn-circle btn-sm",t.value?"animate-spin":"")),onClick:r},[ye(N(W4),{class:"h-4 w-4"})],2)]))}}),nwe={key:0,class:"flex flex-col gap-1 overflow-x-hidden p-2"},rwe={key:1,class:"flex flex-col overflow-x-hidden p-2"},iwe=rt({__name:"RulesPage",setup(e){return(t,n)=>N(Cv)===N(rh).PROVIDER?(K(),te("div",nwe,[(K(!0),te(Xe,null,rn(N(Ile),(r,i)=>(K(),At(twe,{key:r.name,ruleProvider:r,index:i+1},null,8,["ruleProvider","index"]))),128))])):N(Yx).length<200?(K(),te("div",rwe,[(K(!0),te(Xe,null,rn(N(Yx),r=>(K(),At(i5,{key:r.payload,rule:r,index:N(mg).indexOf(r)+1},null,8,["rule","index"]))),128))])):(K(),At(ZI,{key:2,data:N(Yx),size:64},{default:Dr(({item:r})=>[(K(),At(i5,{key:r.payload,rule:r,index:N(mg).indexOf(r)+1},null,8,["rule","index"]))]),_:1},8,["data"]))}}),owe={class:"join w-96 max-sm:w-full"},awe={class:"flex max-h-96 flex-col gap-1 overflow-y-auto"},swe={key:0,class:"flex gap-1"},lwe=rt({__name:"DnsQuery",setup(e){const t=Na({name:"www.google.com",type:"A"}),n=ke(null),r=ke([]),i=async()=>{var a;const{data:o}=await zoe(t);r.value=o.Answer,(a=r.value)!=null&&a.length?n.value=await yV(r.value[0].data):n.value=null};return(o,a)=>{var s,l,u,c;return K(),te(Xe,null,[L("div",owe,[ye(om,{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),[[pi,t.type]]),L("button",{class:"btn join-item btn-sm",onClick:i},ie(o.$t("DNSQuery")),1)]),L("div",awe,[(K(!0),te(Xe,null,rn(r.value,f=>(K(),te("div",{class:"flex gap-1",key:f.data},[L("div",null,ie(f.name),1),a[3]||(a[3]=lt(" : ")),L("div",null,ie(f.data),1)]))),128))]),n.value?(K(),te("div",swe,ie((s=n.value)==null?void 0:s.ip)+": AS"+ie((l=n.value)==null?void 0:l.asn)+" "+ie((u=n.value)==null?void 0:u.asn_organization)+" "+ie((c=n.value)==null?void 0:c.country),1)):gt("",!0)],64)}}}),uwe={class:"card card-compact"},cwe={class:"card-title px-4 pt-4"},fwe={class:"card-body gap-4"},dwe={class:"grid max-w-screen-md grid-cols-2 gap-2 lg:grid-cols-3"},hwe={class:"shrink-0"},pwe=["onUpdate:modelValue","onChange"],vwe={class:"grid max-w-screen-md grid-cols-2 gap-2 lg:grid-cols-3"},gwe={key:0,class:"flex items-center gap-2"},mwe={class:"flex items-center gap-2"},ywe={class:"flex items-center gap-2"},_we={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},bwe={class:"indicator w-full"},Swe={key:0,class:"indicator-item flex"},wwe=rt({__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=()=>{nR(),_g(),dl()},r=ke(!1),i=async()=>{if(!r.value){r.value=!0;try{await Goe(),setTimeout(()=>{n()},500),r.value=!1}catch{r.value=!1}}},o=ke(!1),a=async()=>{if(!o.value){o.value=!0;try{await mV(),n(),o.value=!1}catch{o.value=!1}}},s=ke(!1),l=async()=>{if(!s.value){s.value=!0;try{await Hoe(),n(),s.value=!1}catch{s.value=!1}}},u=async()=>{var f;await b_({tun:{enable:(f=ni.value)==null?void 0:f.tun.enable}})},c=async()=>{var f;await b_({"allow-lan":(f=ni.value)==null?void 0:f["allow-lan"]})};return(f,d)=>{var h;return K(),te("div",uwe,[L("div",cwe,ie(f.$t("backend")),1),L("div",fwe,[ye(YV),ye(rR),N(hl)?gt("",!0):(K(),te(Xe,{key:0},[d[4]||(d[4]=L("div",{class:"divider"},null,-1)),L("div",dwe,[(K(),te(Xe,null,rn(t,v=>L("div",{class:"flex items-center gap-2",key:v.key},[L("span",hwe,ie(f.$t(v.label))+": ",1),_t(L("input",{class:"input input-sm input-bordered w-20",type:"number","onUpdate:modelValue":m=>N(ni)[v.key]=m,onChange:m=>N(b_)({[v.key]:Number(N(ni)[v.key])})},null,40,pwe),[[ir,N(ni)[v.key]]])])),64))]),L("div",vwe,[(h=N(ni))!=null&&h.tun?(K(),te("div",gwe,[lt(ie(f.$t("tunMode"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=v=>N(ni).tun.enable=v),onChange:u},null,544),[[gr,N(ni).tun.enable]])])):gt("",!0),L("div",mwe,[lt(ie(f.$t("allowLan"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[1]||(d[1]=v=>N(ni)["allow-lan"]=v),onChange:c},null,544),[[gr,N(ni)["allow-lan"]]])]),L("div",ywe,[lt(ie(f.$t("autoUpgrade"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[2]||(d[2]=v=>st(q0)?q0.value=v:null)},null,512),[[gr,N(q0)]])])])],64)),L("div",_we,[N(hl)?gt("",!0):(K(),te(Xe,{key:0},[L("div",bwe,[N(wE)?(K(),te("span",Swe,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)]))):gt("",!0),L("button",{class:it(N(Cn)("btn btn-primary btn-sm flex-1",o.value?"animate-pulse":"")),onClick:a},ie(f.$t("upgradeCore")),3)]),L("button",{class:it(N(Cn)("btn btn-sm",r.value?"animate-pulse":"")),onClick:i},ie(f.$t("restartCore")),3),L("button",{class:it(N(Cn)("btn btn-sm",s.value?"animate-pulse":"")),onClick:l},ie(f.$t("reloadConfigs")),3)],64)),L("button",{class:"btn btn-sm",onClick:d[3]||(d[3]=(...v)=>N($L)&&N($L)(...v))},ie(f.$t("flushFakeIP")),1)]),d[6]||(d[6]=L("div",{class:"divider"},null,-1)),ye(lwe)])])}}});var F_={exports:{}},SC={exports:{}},wC={};/**
|
||
* @vue/compiler-core v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const hh=Symbol(""),Yd=Symbol(""),OS=Symbol(""),Fg=Symbol(""),wP=Symbol(""),Du=Symbol(""),xP=Symbol(""),TP=Symbol(""),MS=Symbol(""),DS=Symbol(""),Mh=Symbol(""),LS=Symbol(""),CP=Symbol(""),NS=Symbol(""),kS=Symbol(""),FS=Symbol(""),$S=Symbol(""),BS=Symbol(""),VS=Symbol(""),EP=Symbol(""),AP=Symbol(""),vm=Symbol(""),$g=Symbol(""),US=Symbol(""),HS=Symbol(""),ph=Symbol(""),Dh=Symbol(""),GS=Symbol(""),Z1=Symbol(""),X8=Symbol(""),q1=Symbol(""),Bg=Symbol(""),K8=Symbol(""),Z8=Symbol(""),zS=Symbol(""),q8=Symbol(""),J8=Symbol(""),WS=Symbol(""),IP=Symbol(""),wf={[hh]:"Fragment",[Yd]:"Teleport",[OS]:"Suspense",[Fg]:"KeepAlive",[wP]:"BaseTransition",[Du]:"openBlock",[xP]:"createBlock",[TP]:"createElementBlock",[MS]:"createVNode",[DS]:"createElementVNode",[Mh]:"createCommentVNode",[LS]:"createTextVNode",[CP]:"createStaticVNode",[NS]:"resolveComponent",[kS]:"resolveDynamicComponent",[FS]:"resolveDirective",[$S]:"resolveFilter",[BS]:"withDirectives",[VS]:"renderList",[EP]:"renderSlot",[AP]:"createSlots",[vm]:"toDisplayString",[$g]:"mergeProps",[US]:"normalizeClass",[HS]:"normalizeStyle",[ph]:"normalizeProps",[Dh]:"guardReactiveProps",[GS]:"toHandlers",[Z1]:"camelize",[X8]:"capitalize",[q1]:"toHandlerKey",[Bg]:"setBlockTracking",[K8]:"pushScopeId",[Z8]:"popScopeId",[zS]:"withCtx",[q8]:"unref",[J8]:"isRef",[WS]:"withMemo",[IP]:"isMemoSame"};function Q8(e){Object.getOwnPropertySymbols(e).forEach(t=>{wf[t]=e[t]})}const xwe={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},Twe={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"},Cwe={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},Ewe={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 eG(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(Du),e.helper(Cf(e.inSSR,u))):e.helper(Tf(e.inSSR,u)),a&&e.helper(BS)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:o,directives:a,isBlock:s,disableTracking:l,isComponent:u,loc:c}}function xu(e,t=Ir){return{type:17,loc:t,elements:e}}function Co(e,t=Ir){return{type:15,loc:t,properties:e}}function lr(e,t){return{type:16,loc:Ir,key:It(e)?kt(e,!0):e,value:t}}function kt(e,t=!1,n=Ir,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Awe(e,t){return{type:5,loc:t,content:It(e)?kt(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 xf(e,t=void 0,n=!1,r=!1,i=Ir){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function J1(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Ir}}function tG(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Ir}}function nG(e){return{type:21,body:e,loc:Ir}}function Iwe(e){return{type:22,elements:e,loc:Ir}}function Rwe(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Ir}}function Pwe(e,t){return{type:24,left:e,right:t,loc:Ir}}function Owe(e){return{type:25,expressions:e,loc:Ir}}function Mwe(e){return{type:26,returns:e,loc:Ir}}function Tf(e,t){return e||t?MS:DS}function Cf(e,t){return e||t?xP:TP}function jS(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Tf(r,e.isComponent)),t(Du),t(Cf(r,e.isComponent)))}const o5=new Uint8Array([123,123]),a5=new Uint8Array([125,125]);function s5(e){return e>=97&&e<=122||e>=65&&e<=90}function bo(e){return e===32||e===10||e===9||e===12||e===13}function Wl(e){return e===47||e===62||bo(e)}function Q1(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Qr={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Dwe{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=o5,this.delimiterClose=a5,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=o5,this.delimiterClose=a5}getPos(t){let n=1,r=t+1;for(let i=this.newlines.length-1;i>=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?Wl(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||bo(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Qr.TitleEnd||this.currentSequence===Qr.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Qr.Cdata[this.sequenceIndex]?++this.sequenceIndex===Qr.Cdata.length&&(this.state=28,this.currentSequence=Qr.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Qr.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):s5(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Wl(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Wl(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(Q1("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){bo(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=s5(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||bo(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):bo(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):bo(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Wl(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Wl(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Wl(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Wl(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Wl(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):bo(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):bo(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){bo(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Qr.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Qr.ScriptEnd[3]?this.startSpecial(Qr.ScriptEnd,4):t===Qr.StyleEnd[3]?this.startSpecial(Qr.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Qr.TitleEnd[3]?this.startSpecial(Qr.TitleEnd,4):t===Qr.TextareaEnd[3]?this.startSpecial(Qr.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;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 Lwe={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"},Nwe={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 <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function GA(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function sf(e,t){const n=GA("MODE",t),r=GA(e,t);return n===3?r===!0:r!==!1}function gh(e,t,n,...r){return sf(e,t)}function kwe(e,t,n,...r){if(GA(e,t)==="suppress-warning")return;const{message:o,link:a}=Nwe[e],s=`(deprecation ${e}) ${typeof o=="function"?o(...r):o}${a?`
|
||
Details: ${a}`:""}`,l=new SyntaxError(s);l.code=e,n&&(l.loc=n),t.onWarn(l)}function RP(e){throw e}function rG(e){}function Gn(e,t,n,r){const i=`https://vuejs.org/error-reference/#compiler-${e}`,o=new SyntaxError(String(i));return o.code=e,o.loc=t,o}const Fwe={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:52,52:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:53,53:"__EXTEND_POINT__"},$we={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
|
||
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""};function Bwe(e,t,n=!1,r=[],i=Object.create(null)){}function Vwe(e,t,n){return!1}function Uwe(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let n=t.length;for(;n--;){const r=t[n];if(r.type==="AssignmentExpression")return!0;if(r.type!=="ObjectProperty"&&!r.type.endsWith("Pattern"))break}}return!1}function Hwe(e){let t=e.length;for(;t--;){const n=e[t];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function Gwe(e,t){for(const n of e.params)for(const r of Ks(n))t(r)}function zwe(e,t){for(const n of e.body)if(n.type==="VariableDeclaration"){if(n.declare)continue;for(const r of n.declarations)for(const i of Ks(r.id))t(i)}else if(n.type==="FunctionDeclaration"||n.type==="ClassDeclaration"){if(n.declare||!n.id)continue;t(n.id)}else Wwe(n)&&jwe(n,!0,t)}function Wwe(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function jwe(e,t,n){const r=e.type==="ForStatement"?e.init:e.left;if(r&&r.type==="VariableDeclaration"&&(r.kind==="var"?t:!t))for(const i of r.declarations)for(const o of Ks(i.id))n(o)}function Ks(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(const r of e.properties)r.type==="RestElement"?Ks(r.argument,t):Ks(r.value,t);break;case"ArrayPattern":e.elements.forEach(r=>{r&&Ks(r,t)});break;case"RestElement":Ks(e.argument,t);break;case"AssignmentPattern":Ks(e.left,t);break}return t}const Ywe=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),iG=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,Xwe=(e,t)=>iG(t)&&t.key===e,oG=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function aG(e){return oG.includes(e.type)?aG(e.expression):e}const Ii=e=>e.type===4&&e.isStatic;function PP(e){switch(e){case"Teleport":case"teleport":return Yd;case"Suspense":case"suspense":return OS;case"KeepAlive":case"keep-alive":return Fg;case"BaseTransition":case"base-transition":return wP}}const Kwe=/^\d|[^\$\w\xA0-\uFFFF]/,gm=e=>!Kwe.test(e),Zwe=/[A-Za-z_$\xA0-\uFFFF]/,qwe=/[\.\?\w$\xA0-\uFFFF]/,Jwe=/\s+[.[]\s*|\s*[.[]\s+/g,sG=e=>e.type===4?e.content:e.loc.source,lG=e=>{const t=sG(e).trim().replace(Jwe,s=>s.trim());let n=0,r=[],i=0,o=0,a=null;for(let s=0;s<t.length;s++){const l=t.charAt(s);switch(n){case 0:if(l==="[")r.push(n),n=1,i++;else if(l==="(")r.push(n),n=2,o++;else if(!(s===0?Zwe:qwe).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(r.push(n),n=3,a=l):l==="["?i++:l==="]"&&(--i||(n=r.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")r.push(n),n=3,a=l;else if(l==="(")o++;else if(l===")"){if(s===t.length-1)return!1;--o||(n=r.pop())}break;case 3:l===a&&(n=r.pop(),a=null);break}}return!i&&!o},Qwe=Lr,OP=lG,exe=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,uG=e=>exe.test(sG(e)),txe=Lr,cG=uG;function nxe(e,t,n=t.length){return fG({offset:e.offset,line:e.line,column:e.column},t,n)}function fG(e,t,n=t.length){let r=0,i=-1;for(let o=0;o<n;o++)t.charCodeAt(o)===10&&(r++,i=o);return e.offset+=n,e.line+=r,e.column=i===-1?e.column+n:n-i,e}function rxe(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function Ai(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&(n||i.exp)&&(It(t)?i.name===t:t.test(i.name)))return i}}function mm(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(o.type===6){if(n)continue;if(o.name===t&&(o.value||r))return o}else if(o.name==="bind"&&(o.exp||r)&&hu(o.arg,t))return o}}function hu(e,t){return!!(e&&Ii(e)&&e.content===t)}function dG(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function $_(e){return e.type===5||e.type===2}function MP(e){return e.type===7&&e.name==="slot"}function mh(e){return e.type===1&&e.tagType===3}function Vg(e){return e.type===1&&e.tagType===2}const ixe=new Set([ph,Dh]);function hG(e,t=[]){if(e&&!It(e)&&e.type===14){const n=e.callee;if(!It(n)&&ixe.has(n))return hG(e.arguments[0],t.concat(e))}return[e,t]}function Ug(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],o=[],a;if(i&&!It(i)&&i.type===14){const s=hG(i);i=s[0],o=s[1],a=o[o.length-1]}if(i==null||It(i))r=Co([t]);else if(i.type===14){const s=i.arguments[0];!It(s)&&s.type===15?l5(t,s)||s.properties.unshift(t):i.callee===GS?r=mr(n.helper($g),[Co([t]),i]):i.arguments.unshift(Co([t])),!r&&(r=i)}else i.type===15?(l5(t,i)||i.properties.unshift(t),r=i):(r=mr(n.helper($g),[Co([t]),i]),a&&a.callee===Dh&&(a=o[o.length-2]));e.type===13?a?a.arguments[0]=r:e.props=r:a?a.arguments[0]=r:e.arguments[2]=r}function l5(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===r)}return n}function yh(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function Sa(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const r=e.props[n];if(r.type===7&&(Sa(r.arg,t)||Sa(r.exp,t)))return!0}return e.children.some(n=>Sa(n,t));case 11:return Sa(e.source,t)?!0:e.children.some(n=>Sa(n,t));case 9:return e.branches.some(n=>Sa(n,t));case 10:return Sa(e.condition,t)?!0:e.children.some(n=>Sa(n,t));case 4:return!e.isStatic&&gm(e.content)&&!!t[e.content];case 8:return e.children.some(n=>vn(n)&&Sa(n,t));case 5:case 12:return Sa(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function pG(e){return e.type===14&&e.callee===WS?e.arguments[1].returns:e}const vG=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,gG={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Td,isPreTag:Td,isIgnoreNewlineTag:Td,isCustomElement:Td,onError:RP,onWarn:rG,comments:!1,prefixIdentifiers:!1};let hn=gG,Hg=null,il="",ri=null,an=null,Hi="",Bs=-1,Pc=-1,DP=0,eu=!1,zA=null;const jn=[],or=new Dwe(jn,{onerr:Fs,ontext(e,t){O0(Vr(e,t),e,t)},ontextentity(e,t,n){O0(e,t,n)},oninterpolation(e,t){if(eu)return O0(Vr(e,t),e,t);let n=e+or.delimiterOpen.length,r=t-or.delimiterClose.length;for(;bo(il.charCodeAt(n));)n++;for(;bo(il.charCodeAt(r-1));)r--;let i=Vr(n,r);i.includes("&")&&(i=hn.decodeEntities(i,!1)),WA({type:5,content:V_(i,!1,fr(n,r)),loc:fr(e,t)})},onopentagname(e,t){const n=Vr(e,t);ri={type:1,tag:n,ns:hn.getNamespace(n,jn[0],hn.ns),tagType:0,props:[],children:[],loc:fr(e-1,t),codegenNode:void 0}},onopentagend(e){c5(e)},onclosetag(e,t){const n=Vr(e,t);if(!hn.isVoidTag(n)){let r=!1;for(let i=0;i<jn.length;i++)if(jn[i].tag.toLowerCase()===n.toLowerCase()){r=!0,i>0&&Fs(24,jn[0].loc.start.offset);for(let a=0;a<=i;a++){const s=jn.shift();B_(s,t,a<i)}break}r||Fs(23,mG(e,60))}},onselfclosingtag(e){const t=ri.tag;ri.isSelfClosing=!0,c5(e),jn[0]&&jn[0].tag===t&&B_(jn.shift(),e)},onattribname(e,t){an={type:6,name:Vr(e,t),nameLoc:fr(e,t),value:void 0,loc:fr(e)}},ondirname(e,t){const n=Vr(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!eu&&r===""&&Fs(26,e),eu||r==="")an={type:6,name:n,nameLoc:fr(e,t),value:void 0,loc:fr(e)};else if(an={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[kt("prop")]:[],loc:fr(e)},r==="pre"){eu=or.inVPre=!0,zA=ri;const i=ri.props;for(let o=0;o<i.length;o++)i[o].type===7&&(i[o]=vxe(i[o]))}},ondirarg(e,t){if(e===t)return;const n=Vr(e,t);if(eu)an.name+=n,Gc(an.nameLoc,t);else{const r=n[0]!=="[";an.arg=V_(r?n:n.slice(1,-1),r,fr(e,t),r?3:0)}},ondirmodifier(e,t){const n=Vr(e,t);if(eu)an.name+="."+n,Gc(an.nameLoc,t);else if(an.name==="slot"){const r=an.arg;r&&(r.content+="."+n,Gc(r.loc,t))}else{const r=kt(n,!0,fr(e,t));an.modifiers.push(r)}},onattribdata(e,t){Hi+=Vr(e,t),Bs<0&&(Bs=e),Pc=t},onattribentity(e,t,n){Hi+=e,Bs<0&&(Bs=t),Pc=n},onattribnameend(e){const t=an.loc.start.offset,n=Vr(t,e);an.type===7&&(an.rawName=n),ri.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&Fs(2,t)},onattribend(e,t){if(ri&&an){if(Gc(an.loc,t),e!==0)if(Hi.includes("&")&&(Hi=hn.decodeEntities(Hi,!0)),an.type===6)an.name==="class"&&(Hi=_G(Hi).trim()),e===1&&!Hi&&Fs(13,t),an.value={type:2,content:Hi,loc:e===1?fr(Bs,Pc):fr(Bs-1,Pc+1)},or.inSFCRoot&&ri.tag==="template"&&an.name==="lang"&&Hi&&Hi!=="html"&&or.enterRCDATA(Q1("</template"),0);else{let n=0;an.exp=V_(Hi,!1,fr(Bs,Pc),0,n),an.name==="for"&&(an.forParseResult=axe(an.exp));let r=-1;an.name==="bind"&&(r=an.modifiers.findIndex(i=>i.content==="sync"))>-1&&gh("COMPILER_V_BIND_SYNC",hn,an.loc,an.rawName)&&(an.name="model",an.modifiers.splice(r,1))}(an.type!==7||an.name!=="pre")&&ri.props.push(an)}Hi="",Bs=Pc=-1},oncomment(e,t){hn.comments&&WA({type:3,content:Vr(e,t),loc:fr(e-4,t+3)})},onend(){const e=il.length;for(let t=0;t<jn.length;t++)B_(jn[t],e-1),Fs(24,jn[t].loc.start.offset)},oncdata(e,t){jn[0].ns!==0?O0(Vr(e,t),e,t):Fs(1,e-9)},onprocessinginstruction(e){(jn[0]?jn[0].ns:hn.ns)===0&&Fs(21,e-1)}}),u5=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,oxe=/^\(|\)$/g;function axe(e){const t=e.loc,n=e.content,r=n.match(vG);if(!r)return;const[,i,o]=r,a=(f,d,h=!1)=>{const v=t.start.offset+d,m=v+f.length;return V_(f,!1,fr(v,m),0,h?1:0)},s={source:a(o.trim(),n.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(oxe,"").trim();const u=i.indexOf(l),c=l.match(u5);if(c){l=l.replace(u5,"").trim();const f=c[1].trim();let d;if(f&&(d=n.indexOf(f,u+l.length),s.key=a(f,d,!0)),c[2]){const h=c[2].trim();h&&(s.index=a(h,n.indexOf(h,s.key?d+f.length:u+l.length),!0))}}return l&&(s.value=a(l,u,!0)),s}function Vr(e,t){return il.slice(e,t)}function c5(e){or.inSFCRoot&&(ri.innerLoc=fr(e+1,e+1)),WA(ri);const{tag:t,ns:n}=ri;n===0&&hn.isPreTag(t)&&DP++,hn.isVoidTag(t)?B_(ri,e):(jn.unshift(ri),(n===1||n===2)&&(or.inXML=!0)),ri=null}function O0(e,t,n){{const o=jn[0]&&jn[0].tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=hn.decodeEntities(e,!1))}const r=jn[0]||Hg,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,Gc(i.loc,n)):r.children.push({type:2,content:e,loc:fr(t,n)})}function B_(e,t,n=!1){n?Gc(e.loc,mG(t,60)):Gc(e.loc,sxe(t,62)+1),or.inSFCRoot&&(e.children.length?e.innerLoc.end=Qt({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Qt({},e.innerLoc.start),e.innerLoc.source=Vr(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:i,children:o}=e;if(eu||(r==="slot"?e.tagType=2:f5(e)?e.tagType=3:uxe(e)&&(e.tagType=1)),or.inRCDATA||(e.children=yG(o)),i===0&&hn.isIgnoreNewlineTag(r)){const a=o[0];a&&a.type===2&&(a.content=a.content.replace(/^\r?\n/,""))}i===0&&hn.isPreTag(r)&&DP--,zA===e&&(eu=or.inVPre=!1,zA=null),or.inXML&&(jn[0]?jn[0].ns:hn.ns)===0&&(or.inXML=!1);{const a=e.props;if(!or.inSFCRoot&&sf("COMPILER_NATIVE_TEMPLATE",hn)&&e.tag==="template"&&!f5(e)){const l=jn[0]||Hg,u=l.children.indexOf(e);l.children.splice(u,1,...e.children)}const s=a.find(l=>l.type===6&&l.name==="inline-template");s&&gh("COMPILER_INLINE_TEMPLATE",hn,s.loc)&&e.children.length&&(s.value={type:2,content:Vr(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:s.loc})}}function sxe(e,t){let n=e;for(;il.charCodeAt(n)!==t&&n<il.length-1;)n++;return n}function mG(e,t){let n=e;for(;il.charCodeAt(n)!==t&&n>=0;)n--;return n}const lxe=new Set(["if","else","else-if","for","slot"]);function f5({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&lxe.has(t[n].name))return!0}return!1}function uxe({tag:e,props:t}){if(hn.isCustomElement(e))return!1;if(e==="component"||cxe(e.charCodeAt(0))||PP(e)||hn.isBuiltInComponent&&hn.isBuiltInComponent(e)||hn.isNativeTag&&!hn.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const r=t[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(gh("COMPILER_IS_ON_ELEMENT",hn,r.loc))return!0}}else if(r.name==="bind"&&hu(r.arg,"is")&&gh("COMPILER_IS_ON_ELEMENT",hn,r.loc))return!0}return!1}function cxe(e){return e>64&&e<91}const fxe=/\r\n/g;function yG(e,t){const n=hn.whitespace!=="preserve";let r=!1;for(let i=0;i<e.length;i++){const o=e[i];if(o.type===2)if(DP)o.content=o.content.replace(fxe,`
|
||
`);else if(dxe(o.content)){const a=e[i-1]&&e[i-1].type,s=e[i+1]&&e[i+1].type;!a||!s||n&&(a===3&&(s===3||s===1)||a===1&&(s===3||s===1&&hxe(o.content)))?(r=!0,e[i]=null):o.content=" "}else n&&(o.content=_G(o.content))}return r?e.filter(Boolean):e}function dxe(e){for(let t=0;t<e.length;t++)if(!bo(e.charCodeAt(t)))return!1;return!0}function hxe(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function _G(e){let t="",n=!1;for(let r=0;r<e.length;r++)bo(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function WA(e){(jn[0]||Hg).children.push(e)}function fr(e,t){return{start:or.getPos(e),end:t==null?t:or.getPos(t),source:t==null?t:Vr(e,t)}}function pxe(e){return fr(e.start.offset,e.end.offset)}function Gc(e,t){e.end=or.getPos(t),e.source=Vr(e.start.offset,t)}function vxe(e){const t={type:6,name:e.rawName,nameLoc:fr(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function V_(e,t=!1,n,r=0,i=0){return kt(e,t,n,r)}function Fs(e,t,n){hn.onError(Gn(e,fr(t,t)))}function gxe(){or.reset(),ri=null,an=null,Hi="",Bs=-1,Pc=-1,jn.length=0}function LP(e,t){if(gxe(),il=e,hn=Qt({},gG),t){let i;for(i in t)t[i]!=null&&(hn[i]=t[i])}or.mode=hn.parseMode==="html"?1:hn.parseMode==="sfc"?2:0,or.inXML=hn.ns===1||hn.ns===2;const n=t&&t.delimiters;n&&(or.delimiterOpen=Q1(n[0]),or.delimiterClose=Q1(n[1]));const r=Hg=eG([],e);return or.parse(il),r.loc=fr(0,e.length),r.children=yG(r.children),Hg=null,r}function mxe(e,t){U_(e,void 0,t,bG(e,e.children[0]))}function bG(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Vg(t)}function U_(e,t,n,r=!1,i=!1){const{children:o}=e,a=[];for(let c=0;c<o.length;c++){const f=o[c];if(f.type===1&&f.tagType===0){const d=r?0:qi(f,n);if(d>0){if(d>=2){f.codegenNode.patchFlag=-1,a.push(f);continue}}else{const h=f.codegenNode;if(h.type===13){const v=h.patchFlag;if((v===void 0||v===512||v===1)&&wG(f,n)>=2){const m=xG(f);m&&(h.props=n.hoist(m))}h.dynamicProps&&(h.dynamicProps=n.hoist(h.dynamicProps))}}}else if(f.type===12&&(r?0:qi(f,n))>=2){a.push(f);continue}if(f.type===1){const d=f.tagType===1;d&&n.scopes.vSlot++,U_(f,e,n,!1,i),d&&n.scopes.vSlot--}else if(f.type===11)U_(f,e,n,f.children.length===1,!0);else if(f.type===9)for(let d=0;d<f.branches.length;d++)U_(f.branches[d],e,n,f.branches[d].children.length===1,i)}let s=!1;if(a.length===o.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Je(e.codegenNode.children))e.codegenNode.children=l(xu(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!Je(e.codegenNode.children)&&e.codegenNode.children.type===15){const c=u(e.codegenNode,"default");c&&(c.returns=l(xu(c.returns)),s=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!Je(t.codegenNode.children)&&t.codegenNode.children.type===15){const c=Ai(e,"slot",!0),f=c&&c.arg&&u(t.codegenNode,c.arg);f&&(f.returns=l(xu(f.returns)),s=!0)}}if(!s)for(const c of a)c.codegenNode=n.cache(c.codegenNode);function l(c){const f=n.cache(c);return i&&n.hmr&&(f.needArraySpread=!0),f}function u(c,f){if(c.children&&!Je(c.children)&&c.children.type===15){const d=c.children.properties.find(h=>h.key===f||h.key.content===f);return d&&d.value}}a.length&&n.transformHoist&&n.transformHoist(o,n,e)}function qi(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let a=3;const s=wG(e,t);if(s===0)return n.set(e,0),0;s<a&&(a=s);for(let l=0;l<e.children.length;l++){const u=qi(e.children[l],t);if(u===0)return n.set(e,0),0;u<a&&(a=u)}if(a>1)for(let l=0;l<e.props.length;l++){const u=e.props[l];if(u.type===7&&u.name==="bind"&&u.exp){const c=qi(u.exp,t);if(c===0)return n.set(e,0),0;c<a&&(a=c)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return n.set(e,0),0;t.removeHelper(Du),t.removeHelper(Cf(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Tf(t.inSSR,i.isComponent))}return n.set(e,a),a}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return qi(e.content,t);case 4:return e.constType;case 8:let o=3;for(let a=0;a<e.children.length;a++){const s=e.children[a];if(It(s)||Pi(s))continue;const l=qi(s,t);if(l===0)return 0;l<o&&(o=l)}return o;case 20:return 2;default:return 0}}const yxe=new Set([US,HS,ph,Dh]);function SG(e,t){if(e.type===14&&!It(e.callee)&&yxe.has(e.callee)){const n=e.arguments[0];if(n.type===4)return qi(n,t);if(n.type===14)return SG(n,t)}return 0}function wG(e,t){let n=3;const r=xG(e);if(r&&r.type===15){const{properties:i}=r;for(let o=0;o<i.length;o++){const{key:a,value:s}=i[o],l=qi(a,t);if(l===0)return l;l<n&&(n=l);let u;if(s.type===4?u=qi(s,t):s.type===14?u=SG(s,t):u=0,u===0)return u;u<n&&(n=u)}}return n}function xG(e){const t=e.codegenNode;if(t.type===13)return t.props}function TG(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:o=!1,nodeTransforms:a=[],directiveTransforms:s={},transformHoist:l=null,isBuiltInComponent:u=Lr,isCustomElement:c=Lr,expressionPlugins:f=[],scopeId:d=null,slotted:h=!0,ssr:v=!1,inSSR:m=!1,ssrCssVars:y="",bindingMetadata:_=Jt,inline:b=!1,isTS:w=!1,onError:S=RP,onWarn:C=rG,compatConfig:T}){const A=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),P={filename:t,selfName:A&&ku(Bn(A[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:o,nodeTransforms:a,directiveTransforms:s,transformHoist:l,isBuiltInComponent:u,isCustomElement:c,expressionPlugins:f,scopeId:d,slotted:h,ssr:v,inSSR:m,ssrCssVars:y,bindingMetadata:_,inline:b,isTS:w,onError:S,onWarn:C,compatConfig:T,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(I){const R=P.helpers.get(I)||0;return P.helpers.set(I,R+1),I},removeHelper(I){const R=P.helpers.get(I);if(R){const O=R-1;O?P.helpers.set(I,O):P.helpers.delete(I)}},helperString(I){return`_${wf[P.helper(I)]}`},replaceNode(I){P.parent.children[P.childIndex]=P.currentNode=I},removeNode(I){const R=P.parent.children,O=I?R.indexOf(I):P.currentNode?P.childIndex:-1;!I||I===P.currentNode?(P.currentNode=null,P.onNodeRemoved()):P.childIndex>O&&(P.childIndex--,P.onNodeRemoved()),P.parent.children.splice(O,1)},onNodeRemoved:Lr,addIdentifiers(I){},removeIdentifiers(I){},hoist(I){It(I)&&(I=kt(I)),P.hoists.push(I);const R=kt(`_hoisted_${P.hoists.length}`,!1,I.loc,2);return R.hoisted=I,R},cache(I,R=!1,O=!1){const D=tG(P.cached.length,I,R,O);return P.cached.push(D),D}};return P.filters=new Set,P}function CG(e,t){const n=TG(e,t);ym(e,n),t.hoistStatic&&mxe(e,n),t.ssr||_xe(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function _xe(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const i=r[0];if(bG(e,i)&&i.codegenNode){const o=i.codegenNode;o.type===13&&jS(o,t),e.codegenNode=o}else e.codegenNode=i}else if(r.length>1){let i=64;e.codegenNode=vh(t,n(hh),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function bxe(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];It(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,ym(i,t))}}function ym(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let o=0;o<n.length;o++){const a=n[o](e,t);if(a&&(Je(a)?r.push(...a):r.push(a)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Mh);break;case 5:t.ssr||t.helper(vm);break;case 9:for(let o=0;o<e.branches.length;o++)ym(e.branches[o],t);break;case 10:case 11:case 1:case 0:bxe(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function NP(e,t){const n=It(e)?r=>r===e:r=>e.test(r);return(r,i)=>{if(r.type===1){const{props:o}=r;if(r.tagType===3&&o.some(MP))return;const a=[];for(let s=0;s<o.length;s++){const l=o[s];if(l.type===7&&n(l.name)){o.splice(s,1),s--;const u=t(r,l,i);u&&a.push(u)}}return a}}}const YS="/*@__PURE__*/",EG=e=>`${wf[e]}: _${wf[e]}`;function Sxe(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:c=!1,isTS:f=!1,inSSR:d=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:c,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${wf[m]}`},push(m,y=-2,_){h.code+=m},indent(){v(++h.indentLevel)},deindent(m=!1){m?--h.indentLevel:v(--h.indentLevel)},newline(){v(h.indentLevel)}};function v(m){h.push(`
|
||
`+" ".repeat(m),0)}return h}function AG(e,t={}){const n=Sxe(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:o,indent:a,deindent:s,newline:l,scopeId:u,ssr:c}=n,f=Array.from(e.helpers),d=f.length>0,h=!o&&r!=="module";wxe(e,n);const m=c?"ssrRender":"render",_=(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${m}(${_}) {`),a(),h&&(i("with (_ctx) {"),a(),d&&(i(`const { ${f.map(EG).join(", ")} } = _Vue
|
||
`,-1),l())),e.components.length&&(xC(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(xC(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),xC(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let b=0;b<e.temps;b++)i(`${b>0?", ":""}_temp${b}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
|
||
`,0),l()),c||i("return "),e.codegenNode?hi(e.codegenNode,n):i("null"),h&&(s(),i("}")),s(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function wxe(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:o,runtimeModuleName:a,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,u=s,c=Array.from(e.helpers);if(c.length>0&&(i(`const _Vue = ${u}
|
||
`,-1),e.hoists.length)){const f=[MS,DS,Mh,LS,CP].filter(d=>c.includes(d)).map(EG).join(", ");i(`const { ${f} } = _Vue
|
||
`,-1)}xxe(e.hoists,t),o(),i("return ")}function xC(e,t,{helper:n,push:r,newline:i,isTS:o}){const a=n(t==="filter"?$S:t==="component"?NS:FS);for(let s=0;s<e.length;s++){let l=e[s];const u=l.endsWith("__self");u&&(l=l.slice(0,-6)),r(`const ${yh(l,t)} = ${a}(${JSON.stringify(l)}${u?", true":""})${o?"!":""}`),s<e.length-1&&i()}}function xxe(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){const o=e[i];o&&(n(`const _hoisted_${i+1} = `),hi(o,t),r())}t.pure=!1}function kP(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),_m(e,t,n),n&&t.deindent(),t.push("]")}function _m(e,t,n=!1,r=!0){const{push:i,newline:o}=t;for(let a=0;a<e.length;a++){const s=e[a];It(s)?i(s,-3):Je(s)?kP(s,t):hi(s,t),a<e.length-1&&(n?(r&&i(","),o()):r&&i(", "))}}function hi(e,t){if(It(e)){t.push(e,-3);return}if(Pi(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:hi(e.codegenNode,t);break;case 2:Txe(e,t);break;case 4:IG(e,t);break;case 5:Cxe(e,t);break;case 12:hi(e.codegenNode,t);break;case 8:RG(e,t);break;case 3:Axe(e,t);break;case 13:Ixe(e,t);break;case 14:Pxe(e,t);break;case 15:Oxe(e,t);break;case 17:Mxe(e,t);break;case 18:Dxe(e,t);break;case 19:Lxe(e,t);break;case 20:Nxe(e,t);break;case 21:_m(e.body,t,!0,!1);break}}function Txe(e,t){t.push(JSON.stringify(e.content),-3,e)}function IG(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Cxe(e,t){const{push:n,helper:r,pure:i}=t;i&&n(YS),n(`${r(vm)}(`),hi(e.content,t),n(")")}function RG(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];It(r)?t.push(r,-3):hi(r,t)}}function Exe(e,t){const{push:n}=t;if(e.type===8)n("["),RG(e,t),n("]");else if(e.isStatic){const r=gm(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function Axe(e,t){const{push:n,helper:r,pure:i}=t;i&&n(YS),n(`${r(Mh)}(${JSON.stringify(e.content)})`,-3,e)}function Ixe(e,t){const{push:n,helper:r,pure:i}=t,{tag:o,props:a,children:s,patchFlag:l,dynamicProps:u,directives:c,isBlock:f,disableTracking:d,isComponent:h}=e;let v;l&&(v=String(l)),c&&n(r(BS)+"("),f&&n(`(${r(Du)}(${d?"true":""}), `),i&&n(YS);const m=f?Cf(t.inSSR,h):Tf(t.inSSR,h);n(r(m)+"(",-2,e),_m(Rxe([o,a,s,v,u]),t),n(")"),f&&n(")"),c&&(n(", "),hi(c,t),n(")"))}function Rxe(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Pxe(e,t){const{push:n,helper:r,pure:i}=t,o=It(e.callee)?e.callee:r(e.callee);i&&n(YS),n(o+"(",-2,e),_m(e.arguments,t),n(")")}function Oxe(e,t){const{push:n,indent:r,deindent:i,newline:o}=t,{properties:a}=e;if(!a.length){n("{}",-2,e);return}const s=a.length>1||!1;n(s?"{":"{ "),s&&r();for(let l=0;l<a.length;l++){const{key:u,value:c}=a[l];Exe(u,t),n(": "),hi(c,t),l<a.length-1&&(n(","),o())}s&&i(),n(s?"}":" }")}function Mxe(e,t){kP(e.elements,t)}function Dxe(e,t){const{push:n,indent:r,deindent:i}=t,{params:o,returns:a,body:s,newline:l,isSlot:u}=e;u&&n(`_${wf[zS]}(`),n("(",-2,e),Je(o)?_m(o,t):o&&hi(o,t),n(") => "),(l||s)&&(n("{"),r()),a?(l&&n("return "),Je(a)?kP(a,t):hi(a,t)):s&&hi(s,t),(l||s)&&(i(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Lxe(e,t){const{test:n,consequent:r,alternate:i,newline:o}=e,{push:a,indent:s,deindent:l,newline:u}=t;if(n.type===4){const f=!gm(n.content);f&&a("("),IG(n,t),f&&a(")")}else a("("),hi(n,t),a(")");o&&s(),t.indentLevel++,o||a(" "),a("? "),hi(r,t),t.indentLevel--,o&&u(),o||a(" "),a(": ");const c=i.type===19;c||t.indentLevel++,hi(i,t),c||t.indentLevel--,o&&l(!0)}function Nxe(e,t){const{push:n,helper:r,indent:i,deindent:o,newline:a}=t,{needPauseTracking:s,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(Bg)}(-1`),e.inVOnce&&n(", true"),n("),"),a(),n("(")),n(`_cache[${e.index}] = `),hi(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),a(),n(`${r(Bg)}(1),`),a(),n(`_cache[${e.index}]`),o()),n(")"),l&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const kxe=(e,t)=>{if(e.type===5)e.content=H_(e.content,t);else if(e.type===1){const n=Ai(e,"memo");for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&i.name!=="for"){const o=i.exp,a=i.arg;o&&o.type===4&&!(i.name==="on"&&a)&&!(n&&a&&a.type===4&&a.content==="key")&&(i.exp=H_(o,t,i.name==="slot")),a&&a.type===4&&!a.isStatic&&(i.arg=H_(a,t))}}}};function H_(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function PG(e){return It(e)?e:e.type===4?e.content:e.children.map(PG).join("")}const Fxe=NP(/^(if|else|else-if)$/,(e,t,n)=>OG(e,t,n,(r,i,o)=>{const a=n.parent.children;let s=a.indexOf(r),l=0;for(;s-->=0;){const u=a[s];u&&u.type===9&&(l+=u.branches.length)}return()=>{if(o)r.codegenNode=h5(i,l,n);else{const u=$xe(r.codegenNode);u.alternate=h5(i,l+r.branches.length-1,n)}}}));function OG(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(Gn(28,t.loc)),t.exp=kt("true",!1,i)}if(t.name==="if"){const i=d5(e,t),o={type:9,loc:pxe(e.loc),branches:[i]};if(n.replaceNode(o),r)return r(o,i,!0)}else{const i=n.parent.children;let o=i.indexOf(e);for(;o-->=-1;){const a=i[o];if(a&&a.type===3){n.removeNode(a);continue}if(a&&a.type===2&&!a.content.trim().length){n.removeNode(a);continue}if(a&&a.type===9){t.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0&&n.onError(Gn(30,e.loc)),n.removeNode();const s=d5(e,t);a.branches.push(s);const l=r&&r(a,s,!1);ym(s,n),l&&l(),n.currentNode=null}else n.onError(Gn(30,e.loc));break}}}function d5(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Ai(e,"for")?e.children:[e],userKey:mm(e,"key"),isTemplateIf:n}}function h5(e,t,n){return e.condition?J1(e.condition,p5(e,t,n),mr(n.helper(Mh),['""',"true"])):p5(e,t,n)}function p5(e,t,n){const{helper:r}=n,i=lr("key",kt(`${t}`,!1,Ir,2)),{children:o}=e,a=o[0];if(o.length!==1||a.type!==1)if(o.length===1&&a.type===11){const l=a.codegenNode;return Ug(l,i,n),l}else return vh(n,r(hh),Co([i]),o,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=a.codegenNode,u=pG(l);return u.type===13&&jS(u,n),Ug(u,i,n),l}}function $xe(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const MG=(e,t,n)=>{const{modifiers:r,loc:i}=e,o=e.arg;let{exp:a}=e;if(a&&a.type===4&&!a.content.trim()&&(a=void 0),!a){if(o.type!==4||!o.isStatic)return n.onError(Gn(52,o.loc)),{props:[lr(o,kt("",!0,i))]};DG(e),a=e.exp}return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),r.some(s=>s.content==="camel")&&(o.type===4?o.isStatic?o.content=Bn(o.content):o.content=`${n.helperString(Z1)}(${o.content})`:(o.children.unshift(`${n.helperString(Z1)}(`),o.children.push(")"))),n.inSSR||(r.some(s=>s.content==="prop")&&v5(o,"."),r.some(s=>s.content==="attr")&&v5(o,"^")),{props:[lr(o,a)]}},DG=(e,t)=>{const n=e.arg,r=Bn(n.content);e.exp=kt(r,!1,n.loc)},v5=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Bxe=NP("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return LG(e,t,n,o=>{const a=mr(r(VS),[o.source]),s=mh(e),l=Ai(e,"memo"),u=mm(e,"key",!1,!0);u&&u.type===7&&!u.exp&&DG(u);let f=u&&(u.type===6?u.value?kt(u.value.content,!0):void 0:u.exp);const d=u&&f?lr("key",f):null,h=o.source.type===4&&o.source.constType>0,v=h?64:u?128:256;return o.codegenNode=vh(n,r(hh),void 0,a,v,void 0,void 0,!0,!h,!1,e.loc),()=>{let m;const{children:y}=o,_=y.length!==1||y[0].type!==1,b=Vg(e)?e:s&&e.children.length===1&&Vg(e.children[0])?e.children[0]:null;if(b?(m=b.codegenNode,s&&d&&Ug(m,d,n)):_?m=vh(n,r(hh),d?Co([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(m=y[0].codegenNode,s&&d&&Ug(m,d,n),m.isBlock!==!h&&(m.isBlock?(i(Du),i(Cf(n.inSSR,m.isComponent))):i(Tf(n.inSSR,m.isComponent))),m.isBlock=!h,m.isBlock?(r(Du),r(Cf(n.inSSR,m.isComponent))):r(Tf(n.inSSR,m.isComponent))),l){const w=xf(eb(o.parseResult,[kt("_cached")]));w.body=nG([ra(["const _memo = (",l.exp,")"]),ra(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(IP)}(_cached, _memo)) return _cached`]),ra(["const _item = ",m]),kt("_item.memo = _memo"),kt("return _item")]),a.arguments.push(w,kt("_cache"),kt(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(xf(eb(o.parseResult),m,!0))}})});function LG(e,t,n,r){if(!t.exp){n.onError(Gn(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(Gn(32,t.loc));return}FP(i);const{addIdentifiers:o,removeIdentifiers:a,scopes:s}=n,{source:l,value:u,key:c,index:f}=i,d={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:c,objectIndexAlias:f,parseResult:i,children:mh(e)?e.children:[e]};n.replaceNode(d),s.vFor++;const h=r&&r(d);return()=>{s.vFor--,h&&h()}}function FP(e,t){e.finalized||(e.finalized=!0)}function eb({value:e,key:t,index:n},r=[]){return Vxe([e,t,n,...r])}function Vxe(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||kt("_".repeat(r+1),!1))}const g5=kt("undefined",!1),NG=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=Ai(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Uxe=(e,t)=>{let n;if(mh(e)&&e.props.some(MP)&&(n=Ai(e,"for"))){const r=n.forParseResult;if(r){FP(r);const{value:i,key:o,index:a}=r,{addIdentifiers:s,removeIdentifiers:l}=t;return i&&s(i),o&&s(o),a&&s(a),()=>{i&&l(i),o&&l(o),a&&l(a)}}}},Hxe=(e,t,n,r)=>xf(e,n,!1,!0,n.length?n[0].loc:r);function kG(e,t,n=Hxe){t.helper(zS);const{children:r,loc:i}=e,o=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Ai(e,"slot",!0);if(l){const{arg:y,exp:_}=l;y&&!Ii(y)&&(s=!0),o.push(lr(y||kt("default",!0),n(_,void 0,r,i)))}let u=!1,c=!1;const f=[],d=new Set;let h=0;for(let y=0;y<r.length;y++){const _=r[y];let b;if(!mh(_)||!(b=Ai(_,"slot",!0))){_.type!==3&&f.push(_);continue}if(l){t.onError(Gn(37,b.loc));break}u=!0;const{children:w,loc:S}=_,{arg:C=kt("default",!0),exp:T,loc:A}=b;let P;Ii(C)?P=C?C.content:"default":s=!0;const I=Ai(_,"for"),R=n(T,I,w,S);let O,D;if(O=Ai(_,"if"))s=!0,a.push(J1(O.exp,M0(C,R,h++),g5));else if(D=Ai(_,/^else(-if)?$/,!0)){let $=y,F;for(;$--&&(F=r[$],F.type===3););if(F&&mh(F)&&Ai(F,/^(else-)?if$/)){let z=a[a.length-1];for(;z.alternate.type===19;)z=z.alternate;z.alternate=D.exp?J1(D.exp,M0(C,R,h++),g5):M0(C,R,h++)}else t.onError(Gn(30,D.loc))}else if(I){s=!0;const $=I.forParseResult;$?(FP($),a.push(mr(t.helper(VS),[$.source,xf(eb($),M0(C,R),!0)]))):t.onError(Gn(32,I.loc))}else{if(P){if(d.has(P)){t.onError(Gn(38,A));continue}d.add(P),P==="default"&&(c=!0)}o.push(lr(C,R))}}if(!l){const y=(_,b)=>{const w=n(_,void 0,b,i);return t.compatConfig&&(w.isNonScopedSlot=!0),lr("default",w)};u?f.length&&f.some(_=>FG(_))&&(c?t.onError(Gn(39,f[0].loc)):o.push(y(void 0,f))):o.push(y(void 0,r))}const v=s?2:G_(e.children)?3:1;let m=Co(o.concat(lr("_",kt(v+"",!1))),i);return a.length&&(m=mr(t.helper(AP),[m,xu(a)])),{slots:m,hasDynamicSlots:s}}function M0(e,t,n){const r=[lr("name",e),lr("fn",t)];return n!=null&&r.push(lr("key",kt(String(n),!0))),Co(r)}function G_(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||G_(n.children))return!0;break;case 9:if(G_(n.branches))return!0;break;case 10:case 11:if(G_(n.children))return!0;break}}return!1}function FG(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():FG(e.content)}const $G=new WeakMap,BG=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:i}=e,o=e.tagType===1;let a=o?VG(e,t):`"${r}"`;const s=vn(a)&&a.callee===kS;let l,u,c=0,f,d,h,v=s||a===Yd||a===OS||!o&&(r==="svg"||r==="foreignObject"||r==="math");if(i.length>0){const m=$P(e,t,void 0,o,s);l=m.props,c=m.patchFlag,d=m.dynamicPropNames;const y=m.directives;h=y&&y.length?xu(y.map(_=>UG(_,t))):void 0,m.shouldUseBlock&&(v=!0)}if(e.children.length>0)if(a===Fg&&(v=!0,c|=1024),o&&a!==Yd&&a!==Fg){const{slots:y,hasDynamicSlots:_}=kG(e,t);u=y,_&&(c|=1024)}else if(e.children.length===1&&a!==Yd){const y=e.children[0],_=y.type,b=_===5||_===8;b&&qi(y,t)===0&&(c|=1),b||_===2?u=y:u=e.children}else u=e.children;d&&d.length&&(f=zxe(d)),e.codegenNode=vh(t,a,l,u,c===0?void 0:c,f,h,!!v,!1,o,e.loc)};function VG(e,t,n=!1){let{tag:r}=e;const i=jA(r),o=mm(e,"is",!1,!0);if(o)if(i||sf("COMPILER_IS_ON_ELEMENT",t)){let s;if(o.type===6?s=o.value&&kt(o.value.content,!0):(s=o.exp,s||(s=kt("is",!1,o.arg.loc))),s)return mr(t.helper(kS),[s])}else o.type===6&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const a=PP(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(NS),t.components.add(r),yh(r,"component"))}function $P(e,t,n=e.props,r,i,o=!1){const{tag:a,loc:s,children:l}=e;let u=[];const c=[],f=[],d=l.length>0;let h=!1,v=0,m=!1,y=!1,_=!1,b=!1,w=!1,S=!1;const C=[],T=R=>{u.length&&(c.push(Co(m5(u),s)),u=[]),R&&c.push(R)},A=()=>{t.scopes.vFor>0&&u.push(lr(kt("ref_for",!0),kt("true")))},P=({key:R,value:O})=>{if(Ii(R)){const D=R.content,$=Lu(D);if($&&(!r||i)&&D.toLowerCase()!=="onclick"&&D!=="onUpdate:modelValue"&&!el(D)&&(b=!0),$&&el(D)&&(S=!0),$&&O.type===14&&(O=O.arguments[0]),O.type===20||(O.type===4||O.type===8)&&qi(O,t)>0)return;D==="ref"?m=!0:D==="class"?y=!0:D==="style"?_=!0:D!=="key"&&!C.includes(D)&&C.push(D),r&&(D==="class"||D==="style")&&!C.includes(D)&&C.push(D)}else w=!0};for(let R=0;R<n.length;R++){const O=n[R];if(O.type===6){const{loc:D,name:$,nameLoc:F,value:z}=O;let B=!0;if($==="ref"&&(m=!0,A()),$==="is"&&(jA(a)||z&&z.content.startsWith("vue:")||sf("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(lr(kt($,!0,F),kt(z?z.content:"",B,z?z.loc:D)))}else{const{name:D,arg:$,exp:F,loc:z,modifiers:B}=O,Y=D==="bind",j=D==="on";if(D==="slot"){r||t.onError(Gn(40,z));continue}if(D==="once"||D==="memo"||D==="is"||Y&&hu($,"is")&&(jA(a)||sf("COMPILER_IS_ON_ELEMENT",t))||j&&o)continue;if((Y&&hu($,"key")||j&&d&&hu($,"vue:before-update"))&&(h=!0),Y&&hu($,"ref")&&A(),!$&&(Y||j)){if(w=!0,F)if(Y){if(A(),T(),sf("COMPILER_V_BIND_OBJECT_ORDER",t)){c.unshift(F);continue}c.push(F)}else T({type:14,loc:z,callee:t.helper(GS),arguments:r?[F]:[F,"true"]});else t.onError(Gn(Y?34:35,z));continue}Y&&B.some(ge=>ge.content==="prop")&&(v|=32);const se=t.directiveTransforms[D];if(se){const{props:ge,needRuntime:ve}=se(O,e,t);!o&&ge.forEach(P),j&&$&&!Ii($)?T(Co(ge,s)):u.push(...ge),ve&&(f.push(O),Pi(ve)&&$G.set(O,ve))}else B5(D)||(f.push(O),d&&(h=!0))}}let I;if(c.length?(T(),c.length>1?I=mr(t.helper($g),c,s):I=c[0]):u.length&&(I=Co(m5(u),s)),w?v|=16:(y&&!r&&(v|=2),_&&!r&&(v|=4),C.length&&(v|=8),b&&(v|=32)),!h&&(v===0||v===32)&&(m||S||f.length>0)&&(v|=512),!t.inSSR&&I)switch(I.type){case 15:let R=-1,O=-1,D=!1;for(let z=0;z<I.properties.length;z++){const B=I.properties[z].key;Ii(B)?B.content==="class"?R=z:B.content==="style"&&(O=z):B.isHandlerKey||(D=!0)}const $=I.properties[R],F=I.properties[O];D?I=mr(t.helper(ph),[I]):($&&!Ii($.value)&&($.value=mr(t.helper(US),[$.value])),F&&(_||F.value.type===4&&F.value.content.trim()[0]==="["||F.value.type===17)&&(F.value=mr(t.helper(HS),[F.value])));break;case 14:break;default:I=mr(t.helper(ph),[mr(t.helper(Dh),[I])]);break}return{props:I,directives:f,patchFlag:v,dynamicPropNames:C,shouldUseBlock:h}}function m5(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const o=i.key.content,a=t.get(o);a?(o==="style"||o==="class"||Lu(o))&&Gxe(a,i):(t.set(o,i),n.push(i))}return n}function Gxe(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=xu([e.value,t.value],e.loc)}function UG(e,t){const n=[],r=$G.get(e);r?n.push(t.helperString(r)):(t.helper(FS),t.directives.add(e.name),n.push(yh(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const o=kt("true",!1,i);n.push(Co(e.modifiers.map(a=>lr(a,o)),i))}return xu(n,e.loc)}function zxe(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function jA(e){return e==="component"||e==="Component"}const Wxe=(e,t)=>{if(Vg(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:o}=HG(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let s=2;o&&(a[2]=o,s=3),n.length&&(a[3]=xf([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),a.splice(s),e.codegenNode=mr(t.helper(EP),a,r)}};function HG(e,t){let n='"default"',r;const i=[];for(let o=0;o<e.props.length;o++){const a=e.props[o];if(a.type===6)a.value&&(a.name==="name"?n=JSON.stringify(a.value.content):(a.name=Bn(a.name),i.push(a)));else if(a.name==="bind"&&hu(a.arg,"name")){if(a.exp)n=a.exp;else if(a.arg&&a.arg.type===4){const s=Bn(a.arg.content);n=a.exp=kt(s,!1,a.arg.loc)}}else a.name==="bind"&&a.arg&&Ii(a.arg)&&(a.arg.content=Bn(a.arg.content)),i.push(a)}if(i.length>0){const{props:o,directives:a}=$P(e,t,i,!1,!1);r=o,a.length&&t.onError(Gn(36,a[0].loc))}return{slotName:n,slotProps:r}}const BP=(e,t,n,r)=>{const{loc:i,modifiers:o,arg:a}=e;!e.exp&&!o.length&&n.onError(Gn(35,i));let s;if(a.type===4)if(a.isStatic){let f=a.content;f.startsWith("vue:")&&(f=`vnode-${f.slice(4)}`);const d=t.tagType!==0||f.startsWith("vnode")||!/[A-Z]/.test(f)?jc(Bn(f)):`on:${f}`;s=kt(d,!0,a.loc)}else s=ra([`${n.helperString(q1)}(`,a,")"]);else s=a,s.children.unshift(`${n.helperString(q1)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const f=OP(l),d=!(f||cG(l)),h=l.content.includes(";");(d||u&&f)&&(l=ra([`${d?"$event":"(...args)"} => ${h?"{":"("}`,l,h?"}":")"]))}let c={props:[lr(s,l||kt("() => {}",!1,i))]};return r&&(c=r(c)),u&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach(f=>f.key.isHandlerKey=!0),c},jxe=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,i=!1;for(let o=0;o<n.length;o++){const a=n[o];if($_(a)){i=!0;for(let s=o+1;s<n.length;s++){const l=n[s];if($_(l))r||(r=n[o]=ra([a],a.loc)),r.children.push(" + ",l),n.splice(s,1),s--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(o=>o.type===7&&!t.directiveTransforms[o.name])&&e.tag!=="template")))for(let o=0;o<n.length;o++){const a=n[o];if($_(a)||a.type===8){const s=[];(a.type!==2||a.content!==" ")&&s.push(a),!t.ssr&&qi(a,t)===0&&s.push("1"),n[o]={type:12,content:a,loc:a.loc,codegenNode:mr(t.helper(LS),s)}}}}},y5=new WeakSet,Yxe=(e,t)=>{if(e.type===1&&Ai(e,"once",!0))return y5.has(e)||t.inVOnce||t.inSSR?void 0:(y5.add(e),t.inVOnce=!0,t.helper(Bg),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},VP=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(Gn(41,e.loc)),D0();const o=r.loc.source.trim(),a=r.type===4?r.content:o,s=n.bindingMetadata[o];if(s==="props"||s==="props-aliased")return n.onError(Gn(44,r.loc)),D0();if(!a.trim()||!OP(r)&&!!1)return n.onError(Gn(42,r.loc)),D0();const u=i||kt("modelValue",!0),c=i?Ii(i)?`onUpdate:${Bn(i.content)}`:ra(['"onUpdate:" + ',i]):"onUpdate:modelValue";let f;const d=n.isTS?"($event: any)":"$event";f=ra([`${d} => ((`,r,") = $event)"]);const h=[lr(u,e.exp),lr(c,f)];if(e.modifiers.length&&t.tagType===1){const v=e.modifiers.map(y=>y.content).map(y=>(gm(y)?y:JSON.stringify(y))+": true").join(", "),m=i?Ii(i)?`${i.content}Modifiers`:ra([i,' + "Modifiers"']):"modelModifiers";h.push(lr(m,kt(`{ ${v} }`,!1,e.loc,2)))}return D0(h)};function D0(e=[]){return{props:e}}const Xxe=/[\w).+\-_$\]]/,Kxe=(e,t)=>{sf("COMPILER_FILTERS",t)&&(e.type===5?tb(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&tb(n.exp,t)}))};function tb(e,t){if(e.type===4)_5(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?_5(r,t):r.type===8?tb(e,t):r.type===5&&tb(r.content,t))}}function _5(e,t){const n=e.content;let r=!1,i=!1,o=!1,a=!1,s=0,l=0,u=0,c=0,f,d,h,v,m=[];for(h=0;h<n.length;h++)if(d=f,f=n.charCodeAt(h),r)f===39&&d!==92&&(r=!1);else if(i)f===34&&d!==92&&(i=!1);else if(o)f===96&&d!==92&&(o=!1);else if(a)f===47&&d!==92&&(a=!1);else if(f===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!s&&!l&&!u)v===void 0?(c=h+1,v=n.slice(0,h).trim()):y();else{switch(f){case 34:i=!0;break;case 39:r=!0;break;case 96:o=!0;break;case 40:u++;break;case 41:u--;break;case 91:l++;break;case 93:l--;break;case 123:s++;break;case 125:s--;break}if(f===47){let _=h-1,b;for(;_>=0&&(b=n.charAt(_),b===" ");_--);(!b||!Xxe.test(b))&&(a=!0)}}v===void 0?v=n.slice(0,h).trim():c!==0&&y();function y(){m.push(n.slice(c,h).trim()),c=h+1}if(m.length){for(h=0;h<m.length;h++)v=Zxe(v,m[h],t);e.content=v,e.ast=void 0}}function Zxe(e,t,n){n.helper($S);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${yh(t,"filter")}(${e})`;{const i=t.slice(0,r),o=t.slice(r+1);return n.filters.add(i),`${yh(i,"filter")}(${e}${o!==")"?","+o:o}`}}const b5=new WeakSet,qxe=(e,t)=>{if(e.type===1){const n=Ai(e,"memo");return!n||b5.has(e)?void 0:(b5.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&jS(r,t),e.codegenNode=mr(t.helper(WS),[n.exp,xf(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function GG(e){return[[Yxe,Fxe,qxe,Bxe,Kxe,Wxe,BG,NG,jxe],{on:BP,bind:MG,model:VP}]}function zG(e,t={}){const n=t.onError||RP,r=t.mode==="module";t.prefixIdentifiers===!0?n(Gn(47)):r&&n(Gn(48));const i=!1;t.cacheHandlers&&n(Gn(49)),t.scopeId&&!r&&n(Gn(50));const o=Qt({},t,{prefixIdentifiers:i}),a=It(e)?LP(e,o):e,[s,l]=GG();return CG(a,Qt({},o,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:Qt({},l,t.directiveTransforms||{})})),AG(a,o)}const Jxe={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},WG=()=>({props:[]});/**
|
||
* @vue/compiler-dom v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const UP=Symbol(""),HP=Symbol(""),GP=Symbol(""),zP=Symbol(""),nb=Symbol(""),WP=Symbol(""),jP=Symbol(""),YP=Symbol(""),XP=Symbol(""),KP=Symbol("");Q8({[UP]:"vModelRadio",[HP]:"vModelCheckbox",[GP]:"vModelText",[zP]:"vModelSelect",[nb]:"vModelDynamic",[WP]:"withModifiers",[jP]:"withKeys",[YP]:"vShow",[XP]:"Transition",[KP]:"TransitionGroup"});let fd;function Qxe(e,t=!1){return fd||(fd=document.createElement("div")),t?(fd.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,fd.children[0].getAttribute("foo")):(fd.innerHTML=e,fd.textContent)}const ZP={parseMode:"html",isVoidTag:W5,isNativeTag:e=>H5(e)||G5(e)||z5(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Qxe,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return XP;if(e==="TransitionGroup"||e==="transition-group")return KP},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},jG=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:kt("style",!0,t.loc),exp:eTe(t.value.content,t.loc),modifiers:[],loc:t.loc})})},eTe=(e,t)=>{const n=nI(e);return kt(JSON.stringify(n),!1,t,3)};function ol(e,t){return Gn(e,t)}const tTe={X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},nTe={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},rTe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(ol(53,i)),t.children.length&&(n.onError(ol(54,i)),t.children.length=0),{props:[lr(kt("innerHTML",!0,i),r||kt("",!0))]}},iTe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(ol(55,i)),t.children.length&&(n.onError(ol(56,i)),t.children.length=0),{props:[lr(kt("textContent",!0),r?qi(r,n)>0?r:mr(n.helperString(vm),[r],i):kt("",!0))]}},oTe=(e,t,n)=>{const r=VP(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(ol(58,e.arg.loc));const{tag:i}=t,o=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||o){let a=GP,s=!1;if(i==="input"||o){const l=mm(t,"type");if(l){if(l.type===7)a=nb;else if(l.value)switch(l.value.content){case"radio":a=UP;break;case"checkbox":a=HP;break;case"file":s=!0,n.onError(ol(59,e.loc));break}}else dG(t)&&(a=nb)}else i==="select"&&(a=zP);s||(r.needRuntime=n.helper(a))}else n.onError(ol(57,e.loc));return r.props=r.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),r},aTe=Nr("passive,once,capture"),sTe=Nr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),lTe=Nr("left,right"),YG=Nr("onkeyup,onkeydown,onkeypress"),uTe=(e,t,n,r)=>{const i=[],o=[],a=[];for(let s=0;s<t.length;s++){const l=t[s].content;l==="native"&&gh("COMPILER_V_ON_NATIVE",n)||aTe(l)?a.push(l):lTe(l)?Ii(e)?YG(e.content.toLowerCase())?i.push(l):o.push(l):(i.push(l),o.push(l)):sTe(l)?o.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:a}},S5=(e,t)=>Ii(e)&&e.content.toLowerCase()==="onclick"?kt(t,!0):e.type!==4?ra(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,cTe=(e,t,n)=>BP(e,t,n,r=>{const{modifiers:i}=e;if(!i.length)return r;let{key:o,value:a}=r.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:u}=uTe(o,i,n,e.loc);if(l.includes("right")&&(o=S5(o,"onContextmenu")),l.includes("middle")&&(o=S5(o,"onMouseup")),l.length&&(a=mr(n.helper(WP),[a,JSON.stringify(l)])),s.length&&(!Ii(o)||YG(o.content.toLowerCase()))&&(a=mr(n.helper(jP),[a,JSON.stringify(s)])),u.length){const c=u.map(ku).join("");o=Ii(o)?kt(`${o.content}${c}`,!0):ra(["(",o,`) + "${c}"`])}return{props:[lr(o,a)]}}),fTe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(ol(61,i)),{props:[],needRuntime:n.helper(YP)}},dTe=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},XG=[jG],KG={cloak:WG,html:rTe,text:iTe,model:oTe,on:cTe,show:fTe};function hTe(e,t={}){return zG(e,Qt({},ZP,t,{nodeTransforms:[dTe,...XG,...t.nodeTransforms||[]],directiveTransforms:Qt({},KG,t.directiveTransforms||{}),transformHoist:null}))}function pTe(e,t={}){return LP(e,Qt({},ZP,t))}const vTe=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:wP,BindingTypes:Jxe,CAMELIZE:Z1,CAPITALIZE:X8,CREATE_BLOCK:xP,CREATE_COMMENT:Mh,CREATE_ELEMENT_BLOCK:TP,CREATE_ELEMENT_VNODE:DS,CREATE_SLOTS:AP,CREATE_STATIC:CP,CREATE_TEXT:LS,CREATE_VNODE:MS,CompilerDeprecationTypes:Lwe,ConstantTypes:Ewe,DOMDirectiveTransforms:KG,DOMErrorCodes:tTe,DOMErrorMessages:nTe,DOMNodeTransforms:XG,ElementTypes:Cwe,ErrorCodes:Fwe,FRAGMENT:hh,GUARD_REACTIVE_PROPS:Dh,IS_MEMO_SAME:IP,IS_REF:J8,KEEP_ALIVE:Fg,MERGE_PROPS:$g,NORMALIZE_CLASS:US,NORMALIZE_PROPS:ph,NORMALIZE_STYLE:HS,Namespaces:xwe,NodeTypes:Twe,OPEN_BLOCK:Du,POP_SCOPE_ID:Z8,PUSH_SCOPE_ID:K8,RENDER_LIST:VS,RENDER_SLOT:EP,RESOLVE_COMPONENT:NS,RESOLVE_DIRECTIVE:FS,RESOLVE_DYNAMIC_COMPONENT:kS,RESOLVE_FILTER:$S,SET_BLOCK_TRACKING:Bg,SUSPENSE:OS,TELEPORT:Yd,TO_DISPLAY_STRING:vm,TO_HANDLERS:GS,TO_HANDLER_KEY:q1,TRANSITION:XP,TRANSITION_GROUP:KP,TS_NODE_TYPES:oG,UNREF:q8,V_MODEL_CHECKBOX:HP,V_MODEL_DYNAMIC:nb,V_MODEL_RADIO:UP,V_MODEL_SELECT:zP,V_MODEL_TEXT:GP,V_ON_WITH_KEYS:jP,V_ON_WITH_MODIFIERS:WP,V_SHOW:YP,WITH_CTX:zS,WITH_DIRECTIVES:BS,WITH_MEMO:WS,advancePositionWithClone:nxe,advancePositionWithMutation:fG,assert:rxe,baseCompile:zG,baseParse:LP,buildDirectiveArgs:UG,buildProps:$P,buildSlots:kG,checkCompatEnabled:gh,compile:hTe,convertToBlock:jS,createArrayExpression:xu,createAssignmentExpression:Pwe,createBlockStatement:nG,createCacheExpression:tG,createCallExpression:mr,createCompilerError:Gn,createCompoundExpression:ra,createConditionalExpression:J1,createDOMCompilerError:ol,createForLoopParams:eb,createFunctionExpression:xf,createIfStatement:Rwe,createInterpolation:Awe,createObjectExpression:Co,createObjectProperty:lr,createReturnStatement:Mwe,createRoot:eG,createSequenceExpression:Owe,createSimpleExpression:kt,createStructuralDirectiveTransform:NP,createTemplateLiteral:Iwe,createTransformContext:TG,createVNodeCall:vh,errorMessages:$we,extractIdentifiers:Ks,findDir:Ai,findProp:mm,forAliasRE:vG,generate:AG,generateCodeFrame:V5,getBaseTransformPreset:GG,getConstantType:qi,getMemoedVNodeCall:pG,getVNodeBlockHelper:Cf,getVNodeHelper:Tf,hasDynamicKeyVBind:dG,hasScopeRef:Sa,helperNameMap:wf,injectProp:Ug,isCoreComponent:PP,isFnExpression:cG,isFnExpressionBrowser:uG,isFnExpressionNode:txe,isFunctionType:Ywe,isInDestructureAssignment:Uwe,isInNewExpression:Hwe,isMemberExpression:OP,isMemberExpressionBrowser:lG,isMemberExpressionNode:Qwe,isReferencedIdentifier:Vwe,isSimpleIdentifier:gm,isSlotOutlet:Vg,isStaticArgOf:hu,isStaticExp:Ii,isStaticProperty:iG,isStaticPropertyKey:Xwe,isTemplateNode:mh,isText:$_,isVSlot:MP,locStub:Ir,noopDirectiveTransform:WG,parse:pTe,parserOptions:ZP,processExpression:H_,processFor:LG,processIf:OG,processSlotOutlet:HG,registerRuntimeHelpers:Q8,resolveComponentType:VG,stringifyExpression:PG,toValidAssetId:yh,trackSlotScopes:NG,trackVForSlotScopes:Uxe,transform:CG,transformBind:MG,transformElement:BG,transformExpression:kxe,transformModel:VP,transformOn:BP,transformStyle:jG,traverseNode:ym,unwrapTSNode:aG,walkBlockDeclarations:zwe,walkFunctionParams:Gwe,walkIdentifiers:Bwe,warnDeprecation:kwe},Symbol.toStringTag,{value:"Module"})),gTe=cb(vTe),mTe=cb(yQ),yTe=cb(iZ);/**
|
||
* vue v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/var w5;function _Te(){return w5||(w5=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=gTe,n=mTe,r=yTe;function i(l){var u=Object.create(null);if(l)for(var c in l)u[c]=l[c];return u.default=l,Object.freeze(u)}var o=i(n);const a=Object.create(null);function s(l,u){if(!r.isString(l))if(l.nodeType)l=l.innerHTML;else return r.NOOP;const c=r.genCacheKey(l,u),f=a[c];if(f)return f;if(l[0]==="#"){const m=document.querySelector(l);l=m?m.innerHTML:""}const d=r.extend({hoistStatic:!0,onError:void 0,onWarn:r.NOOP},u);!d.isCustomElement&&typeof customElements<"u"&&(d.isCustomElement=m=>!!customElements.get(m));const{code:h}=t.compile(l,d),v=new Function("Vue",h)(o);return v._rc=!0,a[c]=v}n.registerRuntimeCompiler(s),e.compile=s,Object.keys(n).forEach(function(l){l!=="default"&&!Object.prototype.hasOwnProperty.call(e,l)&&(e[l]=n[l])})}(wC)),wC}var x5;function bTe(){return x5||(x5=1,SC.exports=_Te()),SC.exports}/**!
|
||
* Sortable 1.14.0
|
||
* @author RubaXa <trash@rubaxa.org>
|
||
* @author owenm <owen23355@gmail.com>
|
||
* @license MIT
|
||
*/function T5(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 gs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T5(Object(n),!0).forEach(function(r){STe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function z_(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z_=function(t){return typeof t}:z_=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z_(e)}function STe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function la(){return la=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},la.apply(this,arguments)}function wTe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function xTe(e,t){if(e==null)return{};var n=wTe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TTe(e){return CTe(e)||ETe(e)||ATe(e)||ITe()}function CTe(e){if(Array.isArray(e))return YA(e)}function ETe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ATe(e,t){if(e){if(typeof e=="string")return YA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YA(e,t)}}function YA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ITe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var RTe="1.14.0";function al(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var bl=al(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),bm=al(/Edge/i),C5=al(/firefox/i),Gv=al(/safari/i)&&!al(/chrome/i)&&!al(/android/i),ZG=al(/iP(ad|od|hone)/i),PTe=al(/chrome/i)&&al(/android/i),qG={capture:!1,passive:!1};function tn(e,t,n){e.addEventListener(t,n,!bl&&qG)}function Xt(e,t,n){e.removeEventListener(t,n,!bl&&qG)}function rb(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function OTe(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ca(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&rb(e,t):rb(e,t))||r&&e===n)return e;if(e===n)break}while(e=OTe(e))}return null}var E5=/\s+/g;function Jn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(E5," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(E5," ")}}function ct(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function lf(e,t){var n="";if(typeof e=="string")n=e;else do{var r=ct(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function JG(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function us(){var e=document.scrollingElement;return e||document.documentElement}function Yn(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var o,a,s,l,u,c,f;if(e!==window&&e.parentNode&&e!==us()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,u=o.right,c=o.height,f=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!bl))do if(i&&i.getBoundingClientRect&&(ct(i,"transform")!=="none"||n&&ct(i,"position")!=="static")){var d=i.getBoundingClientRect();a-=d.top+parseInt(ct(i,"border-top-width")),s-=d.left+parseInt(ct(i,"border-left-width")),l=a+o.height,u=s+o.width;break}while(i=i.parentNode);if(r&&e!==window){var h=lf(i||e),v=h&&h.a,m=h&&h.d;h&&(a/=m,s/=v,f/=v,c/=m,l=a+c,u=s+f)}return{top:a,left:s,bottom:l,right:u,width:f,height:c}}}function A5(e,t,n){for(var r=pu(e,!0),i=Yn(e)[t];r;){var o=Yn(r)[n],a=void 0;if(a=i>=o,!a)return r;if(r===us())break;r=pu(r,!1)}return!1}function _h(e,t,n,r){for(var i=0,o=0,a=e.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==Et.ghost&&(r||a[o]!==Et.dragged)&&Ca(a[o],n.draggable,e,!1)){if(i===t)return a[o];i++}o++}return null}function qP(e,t){for(var n=e.lastElementChild;n&&(n===Et.ghost||ct(n,"display")==="none"||t&&!rb(n,t));)n=n.previousElementSibling;return n||null}function rr(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Et.clone&&(!t||rb(e,t))&&n++;return n}function I5(e){var t=0,n=0,r=us();if(e)do{var i=lf(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function MTe(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function pu(e,t){if(!e||!e.getBoundingClientRect)return us();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=ct(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return us();if(r||t)return n;r=!0}}while(n=n.parentNode);return us()}function DTe(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function TC(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var zv;function QG(e,t){return function(){if(!zv){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),zv=setTimeout(function(){zv=void 0},t)}}}function LTe(){clearTimeout(zv),zv=void 0}function ez(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function JP(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function R5(e,t){ct(e,"position","absolute"),ct(e,"top",t.top),ct(e,"left",t.left),ct(e,"width",t.width),ct(e,"height",t.height)}function CC(e){ct(e,"position",""),ct(e,"top",""),ct(e,"left",""),ct(e,"width",""),ct(e,"height","")}var ci="Sortable"+new Date().getTime();function NTe(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(ct(i,"display")==="none"||i===Et.ghost)){e.push({target:i,rect:Yn(i)});var o=gs({},e[e.length-1].rect);if(i.thisAnimationDuration){var a=lf(i,!0);a&&(o.top-=a.f,o.left-=a.e)}i.fromRect=o}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(MTe(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var o=!1,a=0;e.forEach(function(s){var l=0,u=s.target,c=u.fromRect,f=Yn(u),d=u.prevFromRect,h=u.prevToRect,v=s.rect,m=lf(u,!0);m&&(f.top-=m.f,f.left-=m.e),u.toRect=f,u.thisAnimationDuration&&TC(d,f)&&!TC(c,f)&&(v.top-f.top)/(v.left-f.left)===(c.top-f.top)/(c.left-f.left)&&(l=FTe(v,d,h,i.options)),TC(f,c)||(u.prevFromRect=c,u.prevToRect=f,l||(l=i.options.animation),i.animate(u,v,f,l)),l&&(o=!0,a=Math.max(a,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),e=[]},animate:function(r,i,o,a){if(a){ct(r,"transition",""),ct(r,"transform","");var s=lf(this.el),l=s&&s.a,u=s&&s.d,c=(i.left-o.left)/(l||1),f=(i.top-o.top)/(u||1);r.animatingX=!!c,r.animatingY=!!f,ct(r,"transform","translate3d("+c+"px,"+f+"px,0)"),this.forRepaintDummy=kTe(r),ct(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),ct(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){ct(r,"transition",""),ct(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function kTe(e){return e.offsetWidth}function FTe(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var dd=[],EC={initializeByDefault:!0},Sm={mount:function(t){for(var n in EC)EC.hasOwnProperty(n)&&!(n in t)&&(t[n]=EC[n]);dd.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),dd.push(t)},pluginEvent:function(t,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var o=t+"Global";dd.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][o]&&n[a.pluginName][o](gs({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][t]&&n[a.pluginName][t](gs({sortable:n},r)))})},initializePlugins:function(t,n,r,i){dd.forEach(function(s){var l=s.pluginName;if(!(!t.options[l]&&!s.initializeByDefault)){var u=new s(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,la(r,u.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);typeof a<"u"&&(t.options[o]=a)}},getEventProperties:function(t,n){var r={};return dd.forEach(function(i){typeof i.eventProperties=="function"&&la(r,i.eventProperties.call(n[i.pluginName],t))}),r},modifyOption:function(t,n,r){var i;return dd.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[n]=="function"&&(i=o.optionListeners[n].call(t[o.pluginName],r))}),i}};function ev(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,d=e.originalEvent,h=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[ci],!!t){var m,y=t.options,_="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!bl&&!bm?m=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(r,!0,!0)),m.to=a||n,m.from=s||n,m.item=i||n,m.clone=o,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=f,m.originalEvent=d,m.pullMode=h?h.lastPutMode:void 0;var b=gs(gs({},v),Sm.getEventProperties(r,t));for(var w in b)m[w]=b[w];n&&n.dispatchEvent(m),y[_]&&y[_].call(t,m)}}var $Te=["evt"],Vi=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=xTe(r,$Te);Sm.pluginEvent.bind(Et)(t,n,gs({dragEl:Ye,parentEl:tr,ghostEl:$t,rootEl:Wn,nextEl:Oc,lastDownEl:W_,cloneEl:nr,cloneHidden:ou,dragStarted:tv,putSortable:Br,activeSortable:Et.active,originalEvent:i,oldIndex:Md,oldDraggableIndex:Wv,newIndex:_o,newDraggableIndex:tu,hideGhostForTarget:iz,unhideGhostForTarget:oz,cloneNowHidden:function(){ou=!0},cloneNowShown:function(){ou=!1},dispatchSortableEvent:function(s){Si({sortable:n,name:s,originalEvent:i})}},o))};function Si(e){ev(gs({putSortable:Br,cloneEl:nr,targetEl:Ye,rootEl:Wn,oldIndex:Md,oldDraggableIndex:Wv,newIndex:_o,newDraggableIndex:tu},e))}var Ye,tr,$t,Wn,Oc,W_,nr,ou,Md,_o,Wv,tu,L0,Br,xd=!1,ib=!1,ob=[],Tc,ya,AC,IC,P5,O5,tv,hd,jv,Yv=!1,N0=!1,j_,ei,RC=[],XA=!1,ab=[],XS=typeof document<"u",k0=ZG,M5=bm||bl?"cssFloat":"float",BTe=XS&&!PTe&&!ZG&&"draggable"in document.createElement("div"),tz=function(){if(XS){if(bl)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),nz=function(t,n){var r=ct(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=_h(t,0,n),a=_h(t,1,n),s=o&&ct(o),l=a&&ct(a),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Yn(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Yn(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&s.float&&s.float!=="none"){var f=s.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return o&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&r[M5]==="none"||a&&r[M5]==="none"&&u+c>i)?"vertical":"horizontal"},VTe=function(t,n,r){var i=r?t.left:t.top,o=r?t.right:t.bottom,a=r?t.width:t.height,s=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return i===s||o===l||i+a/2===s+u/2},UTe=function(t,n){var r;return ob.some(function(i){var o=i[ci].options.emptyInsertThreshold;if(!(!o||qP(i))){var a=Yn(i),s=t>=a.left-o&&t<=a.right+o,l=n>=a.top-o&&n<=a.bottom+o;if(s&&l)return r=i}}),r},rz=function(t){function n(o,a){return function(s,l,u,c){var f=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(o==null&&(a||f))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return n(o(s,l,u,c),a)(s,l,u,c);var d=(a?s:l).options.group.name;return o===!0||typeof o=="string"&&o===d||o.join&&o.indexOf(d)>-1}}var r={},i=t.group;(!i||z_(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},iz=function(){!tz&&$t&&ct($t,"display","none")},oz=function(){!tz&&$t&&ct($t,"display","")};XS&&document.addEventListener("click",function(e){if(ib)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ib=!1,!1},!0);var Cc=function(t){if(Ye){t=t.touches?t.touches[0]:t;var n=UTe(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[ci]._onDragOver(r)}}},HTe=function(t){Ye&&Ye.parentNode[ci]._isOutsideThisEl(t.target)};function Et(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=la({},t),e[ci]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return nz(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,s){a.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Et.supportPointer!==!1&&"PointerEvent"in window&&!Gv,emptyInsertThreshold:5};Sm.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);rz(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:BTe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?tn(e,"pointerdown",this._onTapStart):(tn(e,"mousedown",this._onTapStart),tn(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(tn(e,"dragover",this),tn(e,"dragenter",this)),ob.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),la(this,NTe())}Et.prototype={constructor:Et,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(hd=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Ye):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,i=this.options,o=i.preventOnFilter,a=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=i.filter;if(ZTe(r),!Ye&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Gv&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Ca(l,i.draggable,r,!1),!(l&&l.animated)&&W_!==l)){if(Md=rr(l),Wv=rr(l,i.draggable),typeof c=="function"){if(c.call(this,t,l,this)){Si({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),Vi("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=Ca(u,f.trim(),r,!1),f)return Si({sortable:n,rootEl:f,name:"filter",targetEl:l,fromEl:r,toEl:r}),Vi("filter",n,{evt:t}),!0}),c)){o&&t.cancelable&&t.preventDefault();return}i.handle&&!Ca(u,i.handle,r,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,n,r){var i=this,o=i.el,a=i.options,s=o.ownerDocument,l;if(r&&!Ye&&r.parentNode===o){var u=Yn(r);if(Wn=o,Ye=r,tr=Ye.parentNode,Oc=Ye.nextSibling,W_=r,L0=a.group,Et.dragged=Ye,Tc={target:Ye,clientX:(n||t).clientX,clientY:(n||t).clientY},P5=Tc.clientX-u.left,O5=Tc.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ye.style["will-change"]="all",l=function(){if(Vi("delayEnded",i,{evt:t}),Et.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!C5&&i.nativeDraggable&&(Ye.draggable=!0),i._triggerDragStart(t,n),Si({sortable:i,name:"choose",originalEvent:t}),Jn(Ye,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){JG(Ye,c.trim(),PC)}),tn(s,"dragover",Cc),tn(s,"mousemove",Cc),tn(s,"touchmove",Cc),tn(s,"mouseup",i._onDrop),tn(s,"touchend",i._onDrop),tn(s,"touchcancel",i._onDrop),C5&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ye.draggable=!0),Vi("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(bm||bl))){if(Et.eventCanceled){this._onDrop();return}tn(s,"mouseup",i._disableDelayedDrag),tn(s,"touchend",i._disableDelayedDrag),tn(s,"touchcancel",i._disableDelayedDrag),tn(s,"mousemove",i._delayedDragTouchMoveHandler),tn(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&tn(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ye&&PC(Ye),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Xt(t,"mouseup",this._disableDelayedDrag),Xt(t,"touchend",this._disableDelayedDrag),Xt(t,"touchcancel",this._disableDelayedDrag),Xt(t,"mousemove",this._delayedDragTouchMoveHandler),Xt(t,"touchmove",this._delayedDragTouchMoveHandler),Xt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?tn(document,"pointermove",this._onTouchMove):n?tn(document,"touchmove",this._onTouchMove):tn(document,"mousemove",this._onTouchMove):(tn(Ye,"dragend",this),tn(Wn,"dragstart",this._onDragStart));try{document.selection?Y_(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(xd=!1,Wn&&Ye){Vi("dragStarted",this,{evt:n}),this.nativeDraggable&&tn(document,"dragover",HTe);var r=this.options;!t&&Jn(Ye,r.dragClass,!1),Jn(Ye,r.ghostClass,!0),Et.active=this,t&&this._appendGhost(),Si({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ya){this._lastX=ya.clientX,this._lastY=ya.clientY,iz();for(var t=document.elementFromPoint(ya.clientX,ya.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ya.clientX,ya.clientY),t!==n);)n=t;if(Ye.parentNode[ci]._isOutsideThisEl(t),n)do{if(n[ci]){var r=void 0;if(r=n[ci]._onDragOver({clientX:ya.clientX,clientY:ya.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);oz()}},_onTouchMove:function(t){if(Tc){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=t.touches?t.touches[0]:t,a=$t&&lf($t,!0),s=$t&&a&&a.a,l=$t&&a&&a.d,u=k0&&ei&&I5(ei),c=(o.clientX-Tc.clientX+i.x)/(s||1)+(u?u[0]-RC[0]:0)/(s||1),f=(o.clientY-Tc.clientY+i.y)/(l||1)+(u?u[1]-RC[1]:0)/(l||1);if(!Et.active&&!xd){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if($t){a?(a.e+=c-(AC||0),a.f+=f-(IC||0)):a={a:1,b:0,c:0,d:1,e:c,f};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");ct($t,"webkitTransform",d),ct($t,"mozTransform",d),ct($t,"msTransform",d),ct($t,"transform",d),AC=c,IC=f,ya=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!$t){var t=this.options.fallbackOnBody?document.body:Wn,n=Yn(Ye,!0,k0,!0,t),r=this.options;if(k0){for(ei=t;ct(ei,"position")==="static"&&ct(ei,"transform")==="none"&&ei!==document;)ei=ei.parentNode;ei!==document.body&&ei!==document.documentElement?(ei===document&&(ei=us()),n.top+=ei.scrollTop,n.left+=ei.scrollLeft):ei=us(),RC=I5(ei)}$t=Ye.cloneNode(!0),Jn($t,r.ghostClass,!1),Jn($t,r.fallbackClass,!0),Jn($t,r.dragClass,!0),ct($t,"transition",""),ct($t,"transform",""),ct($t,"box-sizing","border-box"),ct($t,"margin",0),ct($t,"top",n.top),ct($t,"left",n.left),ct($t,"width",n.width),ct($t,"height",n.height),ct($t,"opacity","0.8"),ct($t,"position",k0?"absolute":"fixed"),ct($t,"zIndex","100000"),ct($t,"pointerEvents","none"),Et.ghost=$t,t.appendChild($t),ct($t,"transform-origin",P5/parseInt($t.style.width)*100+"% "+O5/parseInt($t.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,i=t.dataTransfer,o=r.options;if(Vi("dragStart",this,{evt:t}),Et.eventCanceled){this._onDrop();return}Vi("setupClone",this),Et.eventCanceled||(nr=JP(Ye),nr.draggable=!1,nr.style["will-change"]="",this._hideClone(),Jn(nr,this.options.chosenClass,!1),Et.clone=nr),r.cloneId=Y_(function(){Vi("clone",r),!Et.eventCanceled&&(r.options.removeCloneOnHide||Wn.insertBefore(nr,Ye),r._hideClone(),Si({sortable:r,name:"clone"}))}),!n&&Jn(Ye,o.dragClass,!0),n?(ib=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Xt(document,"mouseup",r._onDrop),Xt(document,"touchend",r._onDrop),Xt(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(r,i,Ye)),tn(document,"drop",r),ct(Ye,"transform","translateZ(0)")),xd=!0,r._dragStartId=Y_(r._dragStarted.bind(r,n,t)),tn(document,"selectstart",r),tv=!0,Gv&&ct(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,i,o,a,s=this.options,l=s.group,u=Et.active,c=L0===l,f=s.sort,d=Br||u,h,v=this,m=!1;if(XA)return;function y(j,se){Vi(j,v,gs({evt:t,isOwner:c,axis:h?"vertical":"horizontal",revert:a,dragRect:i,targetRect:o,canSort:f,fromSortable:d,target:r,completed:b,onMove:function(ve,Me){return F0(Wn,n,Ye,i,ve,Yn(ve),t,Me)},changed:w},se))}function _(){y("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function b(j){return y("dragOverCompleted",{insertion:j}),j&&(c?u._hideClone():u._showClone(v),v!==d&&(Jn(Ye,Br?Br.options.ghostClass:u.options.ghostClass,!1),Jn(Ye,s.ghostClass,!0)),Br!==v&&v!==Et.active?Br=v:v===Et.active&&Br&&(Br=null),d===v&&(v._ignoreWhileAnimating=r),v.animateAll(function(){y("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(r===Ye&&!Ye.animated||r===n&&!r.animated)&&(hd=null),!s.dragoverBubble&&!t.rootEl&&r!==document&&(Ye.parentNode[ci]._isOutsideThisEl(t.target),!j&&Cc(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function w(){_o=rr(Ye),tu=rr(Ye,s.draggable),Si({sortable:v,name:"change",toEl:n,newIndex:_o,newDraggableIndex:tu,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Ca(r,s.draggable,n,!0),y("dragOver"),Et.eventCanceled)return m;if(Ye.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||v._ignoreWhileAnimating===r)return b(!1);if(ib=!1,u&&!s.disabled&&(c?f||(a=tr!==Wn):Br===this||(this.lastPutMode=L0.checkPull(this,u,Ye,t))&&l.checkPut(this,u,Ye,t))){if(h=this._getDirection(t,r)==="vertical",i=Yn(Ye),y("dragOverValid"),Et.eventCanceled)return m;if(a)return tr=Wn,_(),this._hideClone(),y("revert"),Et.eventCanceled||(Oc?Wn.insertBefore(Ye,Oc):Wn.appendChild(Ye)),b(!0);var S=qP(n,s.draggable);if(!S||jTe(t,h,this)&&!S.animated){if(S===Ye)return b(!1);if(S&&n===t.target&&(r=S),r&&(o=Yn(r)),F0(Wn,n,Ye,i,r,o,t,!!r)!==!1)return _(),n.appendChild(Ye),tr=n,w(),b(!0)}else if(S&&WTe(t,h,this)){var C=_h(n,0,s,!0);if(C===Ye)return b(!1);if(r=C,o=Yn(r),F0(Wn,n,Ye,i,r,o,t,!1)!==!1)return _(),n.insertBefore(Ye,C),tr=n,w(),b(!0)}else if(r.parentNode===n){o=Yn(r);var T=0,A,P=Ye.parentNode!==n,I=!VTe(Ye.animated&&Ye.toRect||i,r.animated&&r.toRect||o,h),R=h?"top":"left",O=A5(r,"top","top")||A5(Ye,"top","top"),D=O?O.scrollTop:void 0;hd!==r&&(A=o[R],Yv=!1,N0=!I&&s.invertSwap||P),T=YTe(t,r,o,h,I?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,N0,hd===r);var $;if(T!==0){var F=rr(Ye);do F-=T,$=tr.children[F];while($&&(ct($,"display")==="none"||$===$t))}if(T===0||$===r)return b(!1);hd=r,jv=T;var z=r.nextElementSibling,B=!1;B=T===1;var Y=F0(Wn,n,Ye,i,r,o,t,B);if(Y!==!1)return(Y===1||Y===-1)&&(B=Y===1),XA=!0,setTimeout(zTe,30),_(),B&&!z?n.appendChild(Ye):r.parentNode.insertBefore(Ye,B?z:r),O&&ez(O,0,D-O.scrollTop),tr=Ye.parentNode,A!==void 0&&!N0&&(j_=Math.abs(A-Yn(r)[R])),w(),b(!0)}if(n.contains(Ye))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Xt(document,"mousemove",this._onTouchMove),Xt(document,"touchmove",this._onTouchMove),Xt(document,"pointermove",this._onTouchMove),Xt(document,"dragover",Cc),Xt(document,"mousemove",Cc),Xt(document,"touchmove",Cc)},_offUpEvents:function(){var t=this.el.ownerDocument;Xt(t,"mouseup",this._onDrop),Xt(t,"touchend",this._onDrop),Xt(t,"pointerup",this._onDrop),Xt(t,"touchcancel",this._onDrop),Xt(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(_o=rr(Ye),tu=rr(Ye,r.draggable),Vi("drop",this,{evt:t}),tr=Ye&&Ye.parentNode,_o=rr(Ye),tu=rr(Ye,r.draggable),Et.eventCanceled){this._nulling();return}xd=!1,N0=!1,Yv=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),KA(this.cloneId),KA(this._dragStartId),this.nativeDraggable&&(Xt(document,"drop",this),Xt(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Gv&&ct(document.body,"user-select",""),ct(Ye,"transform",""),t&&(tv&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),$t&&$t.parentNode&&$t.parentNode.removeChild($t),(Wn===tr||Br&&Br.lastPutMode!=="clone")&&nr&&nr.parentNode&&nr.parentNode.removeChild(nr),Ye&&(this.nativeDraggable&&Xt(Ye,"dragend",this),PC(Ye),Ye.style["will-change"]="",tv&&!xd&&Jn(Ye,Br?Br.options.ghostClass:this.options.ghostClass,!1),Jn(Ye,this.options.chosenClass,!1),Si({sortable:this,name:"unchoose",toEl:tr,newIndex:null,newDraggableIndex:null,originalEvent:t}),Wn!==tr?(_o>=0&&(Si({rootEl:tr,name:"add",toEl:tr,fromEl:Wn,originalEvent:t}),Si({sortable:this,name:"remove",toEl:tr,originalEvent:t}),Si({rootEl:tr,name:"sort",toEl:tr,fromEl:Wn,originalEvent:t}),Si({sortable:this,name:"sort",toEl:tr,originalEvent:t})),Br&&Br.save()):_o!==Md&&_o>=0&&(Si({sortable:this,name:"update",toEl:tr,originalEvent:t}),Si({sortable:this,name:"sort",toEl:tr,originalEvent:t})),Et.active&&((_o==null||_o===-1)&&(_o=Md,tu=Wv),Si({sortable:this,name:"end",toEl:tr,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Vi("nulling",this),Wn=Ye=tr=$t=Oc=nr=W_=ou=Tc=ya=tv=_o=tu=Md=Wv=hd=jv=Br=L0=Et.dragged=Et.ghost=Et.clone=Et.active=null,ab.forEach(function(t){t.checked=!0}),ab.length=AC=IC=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ye&&(this._onDragOver(t),GTe(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,o=r.length,a=this.options;i<o;i++)n=r[i],Ca(n,a.draggable,this.el,!1)&&t.push(n.getAttribute(a.dataIdAttr)||KTe(n));return t},sort:function(t,n){var r={},i=this.el;this.toArray().forEach(function(o,a){var s=i.children[a];Ca(s,this.options.draggable,i,!1)&&(r[o]=s)},this),n&&this.captureAnimationState(),t.forEach(function(o){r[o]&&(i.removeChild(r[o]),i.appendChild(r[o]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Ca(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var i=Sm.modifyOption(this,t,n);typeof i<"u"?r[t]=i:r[t]=n,t==="group"&&rz(r)},destroy:function(){Vi("destroy",this);var t=this.el;t[ci]=null,Xt(t,"mousedown",this._onTapStart),Xt(t,"touchstart",this._onTapStart),Xt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Xt(t,"dragover",this),Xt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ob.splice(ob.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ou){if(Vi("hideClone",this),Et.eventCanceled)return;ct(nr,"display","none"),this.options.removeCloneOnHide&&nr.parentNode&&nr.parentNode.removeChild(nr),ou=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(ou){if(Vi("showClone",this),Et.eventCanceled)return;Ye.parentNode==Wn&&!this.options.group.revertClone?Wn.insertBefore(nr,Ye):Oc?Wn.insertBefore(nr,Oc):Wn.appendChild(nr),this.options.group.revertClone&&this.animate(Ye,nr),ct(nr,"display",""),ou=!1}}};function GTe(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function F0(e,t,n,r,i,o,a,s){var l,u=e[ci],c=u.options.onMove,f;return window.CustomEvent&&!bl&&!bm?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||Yn(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),c&&(f=c.call(u,l,a)),f}function PC(e){e.draggable=!1}function zTe(){XA=!1}function WTe(e,t,n){var r=Yn(_h(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function jTe(e,t,n){var r=Yn(qP(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function YTe(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a){if(s&&j_<u*i){if(!Yv&&(jv===1?l>c+u*o/2:l<f-u*o/2)&&(Yv=!0),Yv)d=!0;else if(jv===1?l<c+j_:l>f-j_)return-jv}else if(l>c+u*(1-i)/2&&l<f-u*(1-i)/2)return XTe(t)}return d=d||a,d&&(l<c+u*o/2||l>f-u*o/2)?l>c+u/2?1:-1:0}function XTe(e){return rr(Ye)<rr(e)?1:-1}function KTe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function ZTe(e){ab.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&ab.push(r)}}function Y_(e){return setTimeout(e,0)}function KA(e){return clearTimeout(e)}XS&&tn(document,"touchmove",function(e){(Et.active||xd)&&e.cancelable&&e.preventDefault()});Et.utils={on:tn,off:Xt,css:ct,find:JG,is:function(t,n){return!!Ca(t,n,t,!1)},extend:DTe,throttle:QG,closest:Ca,toggleClass:Jn,clone:JP,index:rr,nextTick:Y_,cancelNextTick:KA,detectDirection:nz,getChild:_h};Et.get=function(e){return e[ci]};Et.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Et.utils=gs(gs({},Et.utils),r.utils)),Sm.mount(r)})};Et.create=function(e,t){return new Et(e,t)};Et.version=RTe;var vr=[],nv,ZA,qA=!1,OC,MC,sb,rv;function qTe(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?tn(document,"dragover",this._handleAutoScroll):this.options.supportPointer?tn(document,"pointermove",this._handleFallbackAutoScroll):r.touches?tn(document,"touchmove",this._handleFallbackAutoScroll):tn(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Xt(document,"dragover",this._handleAutoScroll):(Xt(document,"pointermove",this._handleFallbackAutoScroll),Xt(document,"touchmove",this._handleFallbackAutoScroll),Xt(document,"mousemove",this._handleFallbackAutoScroll)),D5(),X_(),LTe()},nulling:function(){sb=ZA=nv=qA=rv=OC=MC=null,vr.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,o=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(o,a);if(sb=n,r||this.options.forceAutoScrollFallback||bm||bl||Gv){DC(n,this.options,s,r);var l=pu(s,!0);qA&&(!rv||o!==OC||a!==MC)&&(rv&&D5(),rv=setInterval(function(){var u=pu(document.elementFromPoint(o,a),!0);u!==l&&(l=u,X_()),DC(n,i.options,u,r)},10),OC=o,MC=a)}else{if(!this.options.bubbleScroll||pu(s,!0)===us()){X_();return}DC(n,this.options,pu(s,!1),!1)}}},la(e,{pluginName:"scroll",initializeByDefault:!0})}function X_(){vr.forEach(function(e){clearInterval(e.pid)}),vr=[]}function D5(){clearInterval(rv)}var DC=QG(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,s=t.scrollSpeed,l=us(),u=!1,c;ZA!==n&&(ZA=n,X_(),nv=t.scroll,c=t.scrollFn,nv===!0&&(nv=pu(n,!0)));var f=0,d=nv;do{var h=d,v=Yn(h),m=v.top,y=v.bottom,_=v.left,b=v.right,w=v.width,S=v.height,C=void 0,T=void 0,A=h.scrollWidth,P=h.scrollHeight,I=ct(h),R=h.scrollLeft,O=h.scrollTop;h===l?(C=w<A&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),T=S<P&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(C=w<A&&(I.overflowX==="auto"||I.overflowX==="scroll"),T=S<P&&(I.overflowY==="auto"||I.overflowY==="scroll"));var D=C&&(Math.abs(b-i)<=a&&R+w<A)-(Math.abs(_-i)<=a&&!!R),$=T&&(Math.abs(y-o)<=a&&O+S<P)-(Math.abs(m-o)<=a&&!!O);if(!vr[f])for(var F=0;F<=f;F++)vr[F]||(vr[F]={});(vr[f].vx!=D||vr[f].vy!=$||vr[f].el!==h)&&(vr[f].el=h,vr[f].vx=D,vr[f].vy=$,clearInterval(vr[f].pid),(D!=0||$!=0)&&(u=!0,vr[f].pid=setInterval((function(){r&&this.layer===0&&Et.active._onTouchMove(sb);var z=vr[this.layer].vy?vr[this.layer].vy*s:0,B=vr[this.layer].vx?vr[this.layer].vx*s:0;typeof c=="function"&&c.call(Et.dragged.parentNode[ci],B,z,e,sb,vr[this.layer].el)!=="continue"||ez(vr[this.layer].el,B,z)}).bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==l&&(d=pu(d,!1)));qA=u}},30),az=function(t){var n=t.originalEvent,r=t.putSortable,i=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=r||o;s();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(f)&&(a("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function QP(){}QP.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=_h(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:az};la(QP,{pluginName:"revertOnSpill"});function e2(){}e2.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:az};la(e2,{pluginName:"removeOnSpill"});var zo;function JTe(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var r=n.dragEl;zo=r},dragOverValid:function(n){var r=n.completed,i=n.target,o=n.onMove,a=n.activeSortable,s=n.changed,l=n.cancel;if(a.options.swap){var u=this.sortable.el,c=this.options;if(i&&i!==u){var f=zo;o(i)!==!1?(Jn(i,c.swapClass,!0),zo=i):zo=null,f&&f!==zo&&Jn(f,c.swapClass,!1)}s(),r(!0),l()}},drop:function(n){var r=n.activeSortable,i=n.putSortable,o=n.dragEl,a=i||this.sortable,s=this.options;zo&&Jn(zo,s.swapClass,!1),zo&&(s.swap||i&&i.options.swap)&&o!==zo&&(a.captureAnimationState(),a!==r&&r.captureAnimationState(),QTe(o,zo),a.animateAll(),a!==r&&r.animateAll())},nulling:function(){zo=null}},la(e,{pluginName:"swap",eventProperties:function(){return{swapItem:zo}}})}function QTe(e,t){var n=e.parentNode,r=t.parentNode,i,o;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=rr(e),o=rr(t),n.isEqualNode(r)&&i<o&&o++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[o]))}var Nt=[],mo=[],Fp,_a,$p=!1,Ui=!1,pd=!1,Fn,Bp,$0;function eCe(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?tn(document,"pointerup",this._deselectMultiDrag):(tn(document,"mouseup",this._deselectMultiDrag),tn(document,"touchend",this._deselectMultiDrag)),tn(document,"keydown",this._checkKeyDown),tn(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,o){var a="";Nt.length&&_a===t?Nt.forEach(function(s,l){a+=(l?", ":"")+s.textContent}):a=o.textContent,i.setData("Text",a)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;Fn=r},delayEnded:function(){this.isMultiDrag=~Nt.indexOf(Fn)},setupClone:function(n){var r=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var o=0;o<Nt.length;o++)mo.push(JP(Nt[o])),mo[o].sortableIndex=Nt[o].sortableIndex,mo[o].draggable=!1,mo[o].style["will-change"]="",Jn(mo[o],this.options.selectedClass,!1),Nt[o]===Fn&&Jn(mo[o],this.options.chosenClass,!1);r._hideClone(),i()}},clone:function(n){var r=n.sortable,i=n.rootEl,o=n.dispatchSortableEvent,a=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Nt.length&&_a===r&&(L5(!0,i),o("clone"),a()))},showClone:function(n){var r=n.cloneNowShown,i=n.rootEl,o=n.cancel;this.isMultiDrag&&(L5(!1,i),mo.forEach(function(a){ct(a,"display","")}),r(),$0=!1,o())},hideClone:function(n){var r=this;n.sortable;var i=n.cloneNowHidden,o=n.cancel;this.isMultiDrag&&(mo.forEach(function(a){ct(a,"display","none"),r.options.removeCloneOnHide&&a.parentNode&&a.parentNode.removeChild(a)}),i(),$0=!0,o())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&_a&&_a.multiDrag._deselectMultiDrag(),Nt.forEach(function(r){r.sortableIndex=rr(r)}),Nt=Nt.sort(function(r,i){return r.sortableIndex-i.sortableIndex}),pd=!0},dragStarted:function(n){var r=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){Nt.forEach(function(a){a!==Fn&&ct(a,"position","absolute")});var o=Yn(Fn,!1,!0,!0);Nt.forEach(function(a){a!==Fn&&R5(a,o)}),Ui=!0,$p=!0}i.animateAll(function(){Ui=!1,$p=!1,r.options.animation&&Nt.forEach(function(a){CC(a)}),r.options.sort&&B0()})}},dragOver:function(n){var r=n.target,i=n.completed,o=n.cancel;Ui&&~Nt.indexOf(r)&&(i(!1),o())},revert:function(n){var r=n.fromSortable,i=n.rootEl,o=n.sortable,a=n.dragRect;Nt.length>1&&(Nt.forEach(function(s){o.addAnimationState({target:s,rect:Ui?Yn(s):a}),CC(s),s.fromRect=a,r.removeAnimationState(s)}),Ui=!1,tCe(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,o=n.insertion,a=n.activeSortable,s=n.parentEl,l=n.putSortable,u=this.options;if(o){if(i&&a._hideClone(),$p=!1,u.animation&&Nt.length>1&&(Ui||!i&&!a.options.sort&&!l)){var c=Yn(Fn,!1,!0,!0);Nt.forEach(function(d){d!==Fn&&(R5(d,c),s.appendChild(d))}),Ui=!0}if(!i)if(Ui||B0(),Nt.length>1){var f=$0;a._showClone(r),a.options.animation&&!$0&&f&&mo.forEach(function(d){a.addAnimationState({target:d,rect:Bp}),d.fromRect=Bp,d.thisAnimationDuration=null})}else a._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,o=n.activeSortable;if(Nt.forEach(function(s){s.thisAnimationDuration=null}),o.options.animation&&!i&&o.multiDrag.isMultiDrag){Bp=la({},r);var a=lf(Fn,!0);Bp.top-=a.f,Bp.left-=a.e}},dragOverAnimationComplete:function(){Ui&&(Ui=!1,B0())},drop:function(n){var r=n.originalEvent,i=n.rootEl,o=n.parentEl,a=n.sortable,s=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(r){var f=this.options,d=o.children;if(!pd)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Jn(Fn,f.selectedClass,!~Nt.indexOf(Fn)),~Nt.indexOf(Fn))Nt.splice(Nt.indexOf(Fn),1),Fp=null,ev({sortable:a,rootEl:i,name:"deselect",targetEl:Fn,originalEvt:r});else{if(Nt.push(Fn),ev({sortable:a,rootEl:i,name:"select",targetEl:Fn,originalEvt:r}),r.shiftKey&&Fp&&a.el.contains(Fp)){var h=rr(Fp),v=rr(Fn);if(~h&&~v&&h!==v){var m,y;for(v>h?(y=h,m=v):(y=v,m=h+1);y<m;y++)~Nt.indexOf(d[y])||(Jn(d[y],f.selectedClass,!0),Nt.push(d[y]),ev({sortable:a,rootEl:i,name:"select",targetEl:d[y],originalEvt:r}))}}else Fp=Fn;_a=c}if(pd&&this.isMultiDrag){if(Ui=!1,(o[ci].options.sort||o!==i)&&Nt.length>1){var _=Yn(Fn),b=rr(Fn,":not(."+this.options.selectedClass+")");if(!$p&&f.animation&&(Fn.thisAnimationDuration=null),c.captureAnimationState(),!$p&&(f.animation&&(Fn.fromRect=_,Nt.forEach(function(S){if(S.thisAnimationDuration=null,S!==Fn){var C=Ui?Yn(S):_;S.fromRect=C,c.addAnimationState({target:S,rect:C})}})),B0(),Nt.forEach(function(S){d[b]?o.insertBefore(S,d[b]):o.appendChild(S),b++}),l===rr(Fn))){var w=!1;Nt.forEach(function(S){if(S.sortableIndex!==rr(S)){w=!0;return}}),w&&s("update")}Nt.forEach(function(S){CC(S)}),c.animateAll()}_a=c}(i===o||u&&u.lastPutMode!=="clone")&&mo.forEach(function(S){S.parentNode&&S.parentNode.removeChild(S)})}},nullingGlobal:function(){this.isMultiDrag=pd=!1,mo.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Xt(document,"pointerup",this._deselectMultiDrag),Xt(document,"mouseup",this._deselectMultiDrag),Xt(document,"touchend",this._deselectMultiDrag),Xt(document,"keydown",this._checkKeyDown),Xt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof pd<"u"&&pd)&&_a===this.sortable&&!(n&&Ca(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Nt.length;){var r=Nt[0];Jn(r,this.options.selectedClass,!1),Nt.shift(),ev({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},la(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[ci];!r||!r.options.multiDrag||~Nt.indexOf(n)||(_a&&_a!==r&&(_a.multiDrag._deselectMultiDrag(),_a=r),Jn(n,r.options.selectedClass,!0),Nt.push(n))},deselect:function(n){var r=n.parentNode[ci],i=Nt.indexOf(n);!r||!r.options.multiDrag||!~i||(Jn(n,r.options.selectedClass,!1),Nt.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return Nt.forEach(function(o){r.push({multiDragElement:o,index:o.sortableIndex});var a;Ui&&o!==Fn?a=-1:Ui?a=rr(o,":not(."+n.options.selectedClass+")"):a=rr(o),i.push({multiDragElement:o,index:a})}),{items:TTe(Nt),clones:[].concat(mo),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function tCe(e,t){Nt.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function L5(e,t){mo.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function B0(){Nt.forEach(function(e){e!==Fn&&e.parentNode&&e.parentNode.removeChild(e)})}Et.mount(new qTe);Et.mount(e2,QP);const nCe=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:eCe,Sortable:Et,Swap:JTe,default:Et},Symbol.toStringTag,{value:"Module"})),rCe=cb(nCe);var iCe=F_.exports,N5;function oCe(){return N5||(N5=1,function(e,t){(function(r,i){e.exports=i(bTe(),rCe)})(typeof self<"u"?self:iCe,function(n,r){return function(i){var o={};function a(s){if(o[s])return o[s].exports;var l=o[s]={i:s,l:!1,exports:{}};return i[s].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=i,a.c=o,a.d=function(s,l,u){a.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:u})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,l){if(l&1&&(s=a(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var c in s)a.d(u,c,(function(f){return s[f]}).bind(null,c));return u},a.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(l,"a",l),l},a.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},a.p="",a(a.s="fb15")}({"00ee":function(i,o,a){var s=a("b622"),l=s("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"},"0366":function(i,o,a){var s=a("1c0b");i.exports=function(l,u,c){if(s(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(f){return l.call(u,f)};case 2:return function(f,d){return l.call(u,f,d)};case 3:return function(f,d,h){return l.call(u,f,d,h)}}return function(){return l.apply(u,arguments)}}},"057f":function(i,o,a){var s=a("fc6a"),l=a("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(d){try{return l(d)}catch{return c.slice()}};i.exports.f=function(h){return c&&u.call(h)=="[object Window]"?f(h):l(s(h))}},"06cf":function(i,o,a){var s=a("83ab"),l=a("d1e7"),u=a("5c6c"),c=a("fc6a"),f=a("c04e"),d=a("5135"),h=a("0cfb"),v=Object.getOwnPropertyDescriptor;o.f=s?v:function(y,_){if(y=c(y),_=f(_,!0),h)try{return v(y,_)}catch{}if(d(y,_))return u(!l.f.call(y,_),y[_])}},"0cfb":function(i,o,a){var s=a("83ab"),l=a("d039"),u=a("cc12");i.exports=!s&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,o,a){var s=a("23e7"),l=a("d58f").left,u=a("a640"),c=a("ae40"),f=u("reduce"),d=c("reduce",{1:0});s({target:"Array",proto:!0,forced:!f||!d},{reduce:function(v){return l(this,v,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,o,a){var s=a("c6b6"),l=a("9263");i.exports=function(u,c){var f=u.exec;if(typeof f=="function"){var d=f.call(u,c);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}},"159b":function(i,o,a){var s=a("da84"),l=a("fdbc"),u=a("17c2"),c=a("9112");for(var f in l){var d=s[f],h=d&&d.prototype;if(h&&h.forEach!==u)try{c(h,"forEach",u)}catch{h.forEach=u}}},"17c2":function(i,o,a){var s=a("b727").forEach,l=a("a640"),u=a("ae40"),c=l("forEach"),f=u("forEach");i.exports=!c||!f?function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,o,a){var s=a("d066");i.exports=s("document","documentElement")},"1c0b":function(i,o){i.exports=function(a){if(typeof a!="function")throw TypeError(String(a)+" is not a function");return a}},"1c7e":function(i,o,a){var s=a("b622"),l=s("iterator"),u=!1;try{var c=0,f={next:function(){return{done:!!c++}},return:function(){u=!0}};f[l]=function(){return this},Array.from(f,function(){throw 2})}catch{}i.exports=function(d,h){if(!h&&!u)return!1;var v=!1;try{var m={};m[l]=function(){return{next:function(){return{done:v=!0}}}},d(m)}catch{}return v}},"1d80":function(i,o){i.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},"1dde":function(i,o,a){var s=a("d039"),l=a("b622"),u=a("2d00"),c=l("species");i.exports=function(f){return u>=51||!s(function(){var d=[],h=d.constructor={};return h[c]=function(){return{foo:1}},d[f](Boolean).foo!==1})}},"23cb":function(i,o,a){var s=a("a691"),l=Math.max,u=Math.min;i.exports=function(c,f){var d=s(c);return d<0?l(d+f,0):u(d,f)}},"23e7":function(i,o,a){var s=a("da84"),l=a("06cf").f,u=a("9112"),c=a("6eeb"),f=a("ce4e"),d=a("e893"),h=a("94ca");i.exports=function(v,m){var y=v.target,_=v.global,b=v.stat,w,S,C,T,A,P;if(_?S=s:b?S=s[y]||f(y,{}):S=(s[y]||{}).prototype,S)for(C in m){if(A=m[C],v.noTargetGet?(P=l(S,C),T=P&&P.value):T=S[C],w=h(_?C:y+(b?".":"#")+C,v.forced),!w&&T!==void 0){if(typeof A==typeof T)continue;d(A,T)}(v.sham||T&&T.sham)&&u(A,"sham",!0),c(S,C,A,v)}}},"241c":function(i,o,a){var s=a("ca84"),l=a("7839"),u=l.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(f){return s(f,u)}},"25f0":function(i,o,a){var s=a("6eeb"),l=a("825a"),u=a("d039"),c=a("ad6d"),f="toString",d=RegExp.prototype,h=d[f],v=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),m=h.name!=f;(v||m)&&s(RegExp.prototype,f,function(){var _=l(this),b=String(_.source),w=_.flags,S=String(w===void 0&&_ instanceof RegExp&&!("flags"in d)?c.call(_):w);return"/"+b+"/"+S},{unsafe:!0})},"2ca0":function(i,o,a){var s=a("23e7"),l=a("06cf").f,u=a("50c4"),c=a("5a34"),f=a("1d80"),d=a("ab13"),h=a("c430"),v="".startsWith,m=Math.min,y=d("startsWith"),_=!h&&!y&&!!function(){var b=l(String.prototype,"startsWith");return b&&!b.writable}();s({target:"String",proto:!0,forced:!_&&!y},{startsWith:function(w){var S=String(f(this));c(w);var C=u(m(arguments.length>1?arguments[1]:void 0,S.length)),T=String(w);return v?v.call(S,T,C):S.slice(C,C+T.length)===T}})},"2d00":function(i,o,a){var s=a("da84"),l=a("342f"),u=s.process,c=u&&u.versions,f=c&&c.v8,d,h;f?(d=f.split("."),h=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(h=d[1]))),i.exports=h&&+h},"342f":function(i,o,a){var s=a("d066");i.exports=s("navigator","userAgent")||""},"35a1":function(i,o,a){var s=a("f5df"),l=a("3f8c"),u=a("b622"),c=u("iterator");i.exports=function(f){if(f!=null)return f[c]||f["@@iterator"]||l[s(f)]}},"37e8":function(i,o,a){var s=a("83ab"),l=a("9bf2"),u=a("825a"),c=a("df75");i.exports=s?Object.defineProperties:function(d,h){u(d);for(var v=c(h),m=v.length,y=0,_;m>y;)l.f(d,_=v[y++],h[_]);return d}},"3bbe":function(i,o,a){var s=a("861d");i.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,o,a){var s=a("6547").charAt,l=a("69f3"),u=a("7dd0"),c="String Iterator",f=l.set,d=l.getterFor(c);u(String,"String",function(h){f(this,{type:c,string:String(h),index:0})},function(){var v=d(this),m=v.string,y=v.index,_;return y>=m.length?{value:void 0,done:!0}:(_=s(m,y),v.index+=_.length,{value:_,done:!1})})},"3f8c":function(i,o){i.exports={}},4160:function(i,o,a){var s=a("23e7"),l=a("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,o,a){var s=a("da84");i.exports=s},"44ad":function(i,o,a){var s=a("d039"),l=a("c6b6"),u="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object},"44d2":function(i,o,a){var s=a("b622"),l=a("7c73"),u=a("9bf2"),c=s("unscopables"),f=Array.prototype;f[c]==null&&u.f(f,c,{configurable:!0,value:l(null)}),i.exports=function(d){f[c][d]=!0}},"44e7":function(i,o,a){var s=a("861d"),l=a("c6b6"),u=a("b622"),c=u("match");i.exports=function(f){var d;return s(f)&&((d=f[c])!==void 0?!!d:l(f)=="RegExp")}},4930:function(i,o,a){var s=a("d039");i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},"4d64":function(i,o,a){var s=a("fc6a"),l=a("50c4"),u=a("23cb"),c=function(f){return function(d,h,v){var m=s(d),y=l(m.length),_=u(v,y),b;if(f&&h!=h){for(;y>_;)if(b=m[_++],b!=b)return!0}else for(;y>_;_++)if((f||_ in m)&&m[_]===h)return f||_||0;return!f&&-1}};i.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(i,o,a){var s=a("23e7"),l=a("b727").filter,u=a("1dde"),c=a("ae40"),f=u("filter"),d=c("filter");s({target:"Array",proto:!0,forced:!f||!d},{filter:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,o,a){var s=a("0366"),l=a("7b0b"),u=a("9bdd"),c=a("e95a"),f=a("50c4"),d=a("8418"),h=a("35a1");i.exports=function(m){var y=l(m),_=typeof this=="function"?this:Array,b=arguments.length,w=b>1?arguments[1]:void 0,S=w!==void 0,C=h(y),T=0,A,P,I,R,O,D;if(S&&(w=s(w,b>2?arguments[2]:void 0,2)),C!=null&&!(_==Array&&c(C)))for(R=C.call(y),O=R.next,P=new _;!(I=O.call(R)).done;T++)D=S?u(R,w,[I.value,T],!0):I.value,d(P,T,D);else for(A=f(y.length),P=new _(A);A>T;T++)D=S?w(y[T],T):y[T],d(P,T,D);return P.length=T,P}},"4fad":function(i,o,a){var s=a("23e7"),l=a("6f53").entries;s({target:"Object",stat:!0},{entries:function(c){return l(c)}})},"50c4":function(i,o,a){var s=a("a691"),l=Math.min;i.exports=function(u){return u>0?l(s(u),9007199254740991):0}},5135:function(i,o){var a={}.hasOwnProperty;i.exports=function(s,l){return a.call(s,l)}},5319:function(i,o,a){var s=a("d784"),l=a("825a"),u=a("7b0b"),c=a("50c4"),f=a("a691"),d=a("1d80"),h=a("8aa5"),v=a("14c3"),m=Math.max,y=Math.min,_=Math.floor,b=/\$([$&'`]|\d\d?|<[^>]*>)/g,w=/\$([$&'`]|\d\d?)/g,S=function(C){return C===void 0?C:String(C)};s("replace",2,function(C,T,A,P){var I=P.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,R=P.REPLACE_KEEPS_$0,O=I?"$":"$0";return[function(F,z){var B=d(this),Y=F==null?void 0:F[C];return Y!==void 0?Y.call(F,B,z):T.call(String(B),F,z)},function($,F){if(!I&&R||typeof F=="string"&&F.indexOf(O)===-1){var z=A(T,$,this,F);if(z.done)return z.value}var B=l($),Y=String(this),j=typeof F=="function";j||(F=String(F));var se=B.global;if(se){var ge=B.unicode;B.lastIndex=0}for(var ve=[];;){var Me=v(B,Y);if(Me===null||(ve.push(Me),!se))break;var Ne=String(Me[0]);Ne===""&&(B.lastIndex=h(Y,c(B.lastIndex),ge))}for(var ze="",De=0,je=0;je<ve.length;je++){Me=ve[je];for(var ce=String(Me[0]),Ee=m(y(f(Me.index),Y.length),0),Se=[],Te=1;Te<Me.length;Te++)Se.push(S(Me[Te]));var Oe=Me.groups;if(j){var $e=[ce].concat(Se,Ee,Y);Oe!==void 0&&$e.push(Oe);var H=String(F.apply(void 0,$e))}else H=D(ce,Y,Ee,Se,Oe,F);Ee>=De&&(ze+=Y.slice(De,Ee)+H,De=Ee+ce.length)}return ze+Y.slice(De)}];function D($,F,z,B,Y,j){var se=z+$.length,ge=B.length,ve=w;return Y!==void 0&&(Y=u(Y),ve=b),T.call(j,ve,function(Me,Ne){var ze;switch(Ne.charAt(0)){case"$":return"$";case"&":return $;case"`":return F.slice(0,z);case"'":return F.slice(se);case"<":ze=Y[Ne.slice(1,-1)];break;default:var De=+Ne;if(De===0)return Me;if(De>ge){var je=_(De/10);return je===0?Me:je<=ge?B[je-1]===void 0?Ne.charAt(1):B[je-1]+Ne.charAt(1):Me}ze=B[De-1]}return ze===void 0?"":ze})}})},5692:function(i,o,a){var s=a("c430"),l=a("c6cd");(i.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(i,o,a){var s=a("d066"),l=a("241c"),u=a("7418"),c=a("825a");i.exports=s("Reflect","ownKeys")||function(d){var h=l.f(c(d)),v=u.f;return v?h.concat(v(d)):h}},"5a34":function(i,o,a){var s=a("44e7");i.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,o){i.exports=function(a,s){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:s}}},"5db7":function(i,o,a){var s=a("23e7"),l=a("a2bf"),u=a("7b0b"),c=a("50c4"),f=a("1c0b"),d=a("65f0");s({target:"Array",proto:!0},{flatMap:function(v){var m=u(this),y=c(m.length),_;return f(v),_=d(m,0),_.length=l(_,m,m,y,0,1,v,arguments.length>1?arguments[1]:void 0),_}})},6547:function(i,o,a){var s=a("a691"),l=a("1d80"),u=function(c){return function(f,d){var h=String(l(f)),v=s(d),m=h.length,y,_;return v<0||v>=m?c?"":void 0:(y=h.charCodeAt(v),y<55296||y>56319||v+1===m||(_=h.charCodeAt(v+1))<56320||_>57343?c?h.charAt(v):y:c?h.slice(v,v+2):(y-55296<<10)+(_-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(i,o,a){var s=a("861d"),l=a("e8b5"),u=a("b622"),c=u("species");i.exports=function(f,d){var h;return l(f)&&(h=f.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:s(h)&&(h=h[c],h===null&&(h=void 0))),new(h===void 0?Array:h)(d===0?0:d)}},"69f3":function(i,o,a){var s=a("7f9a"),l=a("da84"),u=a("861d"),c=a("9112"),f=a("5135"),d=a("f772"),h=a("d012"),v=l.WeakMap,m,y,_,b=function(I){return _(I)?y(I):m(I,{})},w=function(I){return function(R){var O;if(!u(R)||(O=y(R)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return O}};if(s){var S=new v,C=S.get,T=S.has,A=S.set;m=function(I,R){return A.call(S,I,R),R},y=function(I){return C.call(S,I)||{}},_=function(I){return T.call(S,I)}}else{var P=d("state");h[P]=!0,m=function(I,R){return c(I,P,R),R},y=function(I){return f(I,P)?I[P]:{}},_=function(I){return f(I,P)}}i.exports={set:m,get:y,has:_,enforce:b,getterFor:w}},"6eeb":function(i,o,a){var s=a("da84"),l=a("9112"),u=a("5135"),c=a("ce4e"),f=a("8925"),d=a("69f3"),h=d.get,v=d.enforce,m=String(String).split("String");(i.exports=function(y,_,b,w){var S=w?!!w.unsafe:!1,C=w?!!w.enumerable:!1,T=w?!!w.noTargetGet:!1;if(typeof b=="function"&&(typeof _=="string"&&!u(b,"name")&&l(b,"name",_),v(b).source=m.join(typeof _=="string"?_:"")),y===s){C?y[_]=b:c(_,b);return}else S?!T&&y[_]&&(C=!0):delete y[_];C?y[_]=b:l(y,_,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||f(this)})},"6f53":function(i,o,a){var s=a("83ab"),l=a("df75"),u=a("fc6a"),c=a("d1e7").f,f=function(d){return function(h){for(var v=u(h),m=l(v),y=m.length,_=0,b=[],w;y>_;)w=m[_++],(!s||c.call(v,w))&&b.push(d?[w,v[w]]:v[w]);return b}};i.exports={entries:f(!0),values:f(!1)}},"73d9":function(i,o,a){var s=a("44d2");s("flatMap")},7418:function(i,o){o.f=Object.getOwnPropertySymbols},"746f":function(i,o,a){var s=a("428f"),l=a("5135"),u=a("e538"),c=a("9bf2").f;i.exports=function(f){var d=s.Symbol||(s.Symbol={});l(d,f)||c(d,f,{value:u.f(f)})}},7839:function(i,o){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,o,a){var s=a("1d80");i.exports=function(l){return Object(s(l))}},"7c73":function(i,o,a){var s=a("825a"),l=a("37e8"),u=a("7839"),c=a("d012"),f=a("1be4"),d=a("cc12"),h=a("f772"),v=">",m="<",y="prototype",_="script",b=h("IE_PROTO"),w=function(){},S=function(I){return m+_+v+I+m+"/"+_+v},C=function(I){I.write(S("")),I.close();var R=I.parentWindow.Object;return I=null,R},T=function(){var I=d("iframe"),R="java"+_+":",O;return I.style.display="none",f.appendChild(I),I.src=String(R),O=I.contentWindow.document,O.open(),O.write(S("document.F=Object")),O.close(),O.F},A,P=function(){try{A=document.domain&&new ActiveXObject("htmlfile")}catch{}P=A?C(A):T();for(var I=u.length;I--;)delete P[y][u[I]];return P()};c[b]=!0,i.exports=Object.create||function(R,O){var D;return R!==null?(w[y]=s(R),D=new w,w[y]=null,D[b]=R):D=P(),O===void 0?D:l(D,O)}},"7dd0":function(i,o,a){var s=a("23e7"),l=a("9ed3"),u=a("e163"),c=a("d2bb"),f=a("d44e"),d=a("9112"),h=a("6eeb"),v=a("b622"),m=a("c430"),y=a("3f8c"),_=a("ae93"),b=_.IteratorPrototype,w=_.BUGGY_SAFARI_ITERATORS,S=v("iterator"),C="keys",T="values",A="entries",P=function(){return this};i.exports=function(I,R,O,D,$,F,z){l(O,R,D);var B=function(je){if(je===$&&ve)return ve;if(!w&&je in se)return se[je];switch(je){case C:return function(){return new O(this,je)};case T:return function(){return new O(this,je)};case A:return function(){return new O(this,je)}}return function(){return new O(this)}},Y=R+" Iterator",j=!1,se=I.prototype,ge=se[S]||se["@@iterator"]||$&&se[$],ve=!w&&ge||B($),Me=R=="Array"&&se.entries||ge,Ne,ze,De;if(Me&&(Ne=u(Me.call(new I)),b!==Object.prototype&&Ne.next&&(!m&&u(Ne)!==b&&(c?c(Ne,b):typeof Ne[S]!="function"&&d(Ne,S,P)),f(Ne,Y,!0,!0),m&&(y[Y]=P))),$==T&&ge&&ge.name!==T&&(j=!0,ve=function(){return ge.call(this)}),(!m||z)&&se[S]!==ve&&d(se,S,ve),y[R]=ve,$)if(ze={values:B(T),keys:F?ve:B(C),entries:B(A)},z)for(De in ze)(w||j||!(De in se))&&h(se,De,ze[De]);else s({target:R,proto:!0,forced:w||j},ze);return ze}},"7f9a":function(i,o,a){var s=a("da84"),l=a("8925"),u=s.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(i,o,a){var s=a("861d");i.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,o,a){var s=a("d039");i.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(i,o,a){var s=a("c04e"),l=a("9bf2"),u=a("5c6c");i.exports=function(c,f,d){var h=s(f);h in c?l.f(c,h,u(0,d)):c[h]=d}},"861d":function(i,o){i.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},8875:function(i,o,a){var s,l,u;(function(c,f){l=[],s=f,u=typeof s=="function"?s.apply(o,l):s,u!==void 0&&(i.exports=u)})(typeof self<"u"?self:this,function(){function c(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(A){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,v=d.exec(A.stack)||h.exec(A.stack),m=v&&v[1]||!1,y=v&&v[2]||!1,_=document.location.href.replace(document.location.hash,""),b,w,S,C=document.getElementsByTagName("script");m===_&&(b=document.documentElement.outerHTML,w=new RegExp("(?:[^\\n]+?\\n){0,"+(y-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),S=b.replace(w,"$1").trim());for(var T=0;T<C.length;T++)if(C[T].readyState==="interactive"||C[T].src===m||m===_&&C[T].innerHTML&&C[T].innerHTML.trim()===S)return C[T];return null}}return c})},8925:function(i,o,a){var s=a("c6cd"),l=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(u){return l.call(u)}),i.exports=s.inspectSource},"8aa5":function(i,o,a){var s=a("6547").charAt;i.exports=function(l,u,c){return u+(c?s(l,u).length:1)}},"8bbf":function(i,o){i.exports=n},"90e3":function(i,o){var a=0,s=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++a+s).toString(36)}},9112:function(i,o,a){var s=a("83ab"),l=a("9bf2"),u=a("5c6c");i.exports=s?function(c,f,d){return l.f(c,f,u(1,d))}:function(c,f,d){return c[f]=d,c}},9263:function(i,o,a){var s=a("ad6d"),l=a("9f7f"),u=RegExp.prototype.exec,c=String.prototype.replace,f=u,d=function(){var y=/a/,_=/b*/g;return u.call(y,"a"),u.call(_,"a"),y.lastIndex!==0||_.lastIndex!==0}(),h=l.UNSUPPORTED_Y||l.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,m=d||v||h;m&&(f=function(_){var b=this,w,S,C,T,A=h&&b.sticky,P=s.call(b),I=b.source,R=0,O=_;return A&&(P=P.replace("y",""),P.indexOf("g")===-1&&(P+="g"),O=String(_).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&_[b.lastIndex-1]!==`
|
||
`)&&(I="(?: "+I+")",O=" "+O,R++),S=new RegExp("^(?:"+I+")",P)),v&&(S=new RegExp("^"+I+"$(?!\\s)",P)),d&&(w=b.lastIndex),C=u.call(A?S:b,O),A?C?(C.input=C.input.slice(R),C[0]=C[0].slice(R),C.index=b.lastIndex,b.lastIndex+=C[0].length):b.lastIndex=0:d&&C&&(b.lastIndex=b.global?C.index+C[0].length:w),v&&C&&C.length>1&&c.call(C[0],S,function(){for(T=1;T<arguments.length-2;T++)arguments[T]===void 0&&(C[T]=void 0)}),C}),i.exports=f},"94ca":function(i,o,a){var s=a("d039"),l=/#|\.prototype\./,u=function(v,m){var y=f[c(v)];return y==h?!0:y==d?!1:typeof m=="function"?s(m):!!m},c=u.normalize=function(v){return String(v).replace(l,".").toLowerCase()},f=u.data={},d=u.NATIVE="N",h=u.POLYFILL="P";i.exports=u},"99af":function(i,o,a){var s=a("23e7"),l=a("d039"),u=a("e8b5"),c=a("861d"),f=a("7b0b"),d=a("50c4"),h=a("8418"),v=a("65f0"),m=a("1dde"),y=a("b622"),_=a("2d00"),b=y("isConcatSpreadable"),w=9007199254740991,S="Maximum allowed index exceeded",C=_>=51||!l(function(){var I=[];return I[b]=!1,I.concat()[0]!==I}),T=m("concat"),A=function(I){if(!c(I))return!1;var R=I[b];return R!==void 0?!!R:u(I)},P=!C||!T;s({target:"Array",proto:!0,forced:P},{concat:function(R){var O=f(this),D=v(O,0),$=0,F,z,B,Y,j;for(F=-1,B=arguments.length;F<B;F++)if(j=F===-1?O:arguments[F],A(j)){if(Y=d(j.length),$+Y>w)throw TypeError(S);for(z=0;z<Y;z++,$++)z in j&&h(D,$,j[z])}else{if($>=w)throw TypeError(S);h(D,$++,j)}return D.length=$,D}})},"9bdd":function(i,o,a){var s=a("825a");i.exports=function(l,u,c,f){try{return f?u(s(c)[0],c[1]):u(c)}catch(h){var d=l.return;throw d!==void 0&&s(d.call(l)),h}}},"9bf2":function(i,o,a){var s=a("83ab"),l=a("0cfb"),u=a("825a"),c=a("c04e"),f=Object.defineProperty;o.f=s?f:function(h,v,m){if(u(h),v=c(v,!0),u(m),l)try{return f(h,v,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(h[v]=m.value),h}},"9ed3":function(i,o,a){var s=a("ae93").IteratorPrototype,l=a("7c73"),u=a("5c6c"),c=a("d44e"),f=a("3f8c"),d=function(){return this};i.exports=function(h,v,m){var y=v+" Iterator";return h.prototype=l(s,{next:u(1,m)}),c(h,y,!1,!0),f[y]=d,h}},"9f7f":function(i,o,a){var s=a("d039");function l(u,c){return RegExp(u,c)}o.UNSUPPORTED_Y=s(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),o.BROKEN_CARET=s(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(i,o,a){var s=a("e8b5"),l=a("50c4"),u=a("0366"),c=function(f,d,h,v,m,y,_,b){for(var w=m,S=0,C=_?u(_,b,3):!1,T;S<v;){if(S in h){if(T=C?C(h[S],S,d):h[S],y>0&&s(T))w=c(f,d,T,l(T.length),w,y-1)-1;else{if(w>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[w]=T}w++}S++}return w};i.exports=c},a352:function(i,o){i.exports=r},a434:function(i,o,a){var s=a("23e7"),l=a("23cb"),u=a("a691"),c=a("50c4"),f=a("7b0b"),d=a("65f0"),h=a("8418"),v=a("1dde"),m=a("ae40"),y=v("splice"),_=m("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,w=Math.min,S=9007199254740991,C="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!y||!_},{splice:function(A,P){var I=f(this),R=c(I.length),O=l(A,R),D=arguments.length,$,F,z,B,Y,j;if(D===0?$=F=0:D===1?($=0,F=R-O):($=D-2,F=w(b(u(P),0),R-O)),R+$-F>S)throw TypeError(C);for(z=d(I,F),B=0;B<F;B++)Y=O+B,Y in I&&h(z,B,I[Y]);if(z.length=F,$<F){for(B=O;B<R-F;B++)Y=B+F,j=B+$,Y in I?I[j]=I[Y]:delete I[j];for(B=R;B>R-F+$;B--)delete I[B-1]}else if($>F)for(B=R-F;B>O;B--)Y=B+F-1,j=B+$-1,Y in I?I[j]=I[Y]:delete I[j];for(B=0;B<$;B++)I[B+O]=arguments[B+2];return I.length=R-F+$,z}})},a4d3:function(i,o,a){var s=a("23e7"),l=a("da84"),u=a("d066"),c=a("c430"),f=a("83ab"),d=a("4930"),h=a("fdbf"),v=a("d039"),m=a("5135"),y=a("e8b5"),_=a("861d"),b=a("825a"),w=a("7b0b"),S=a("fc6a"),C=a("c04e"),T=a("5c6c"),A=a("7c73"),P=a("df75"),I=a("241c"),R=a("057f"),O=a("7418"),D=a("06cf"),$=a("9bf2"),F=a("d1e7"),z=a("9112"),B=a("6eeb"),Y=a("5692"),j=a("f772"),se=a("d012"),ge=a("90e3"),ve=a("b622"),Me=a("e538"),Ne=a("746f"),ze=a("d44e"),De=a("69f3"),je=a("b727").forEach,ce=j("hidden"),Ee="Symbol",Se="prototype",Te=ve("toPrimitive"),Oe=De.set,$e=De.getterFor(Ee),H=Object[Se],G=l.Symbol,le=u("JSON","stringify"),we=D.f,pe=$.f,U=R.f,W=F.f,q=Y("symbols"),fe=Y("op-symbols"),_e=Y("string-to-symbol-registry"),Pe=Y("symbol-to-string-registry"),Z=Y("wks"),de=l.QObject,Be=!de||!de[Se]||!de[Se].findChild,Ke=f&&v(function(){return A(pe({},"a",{get:function(){return pe(this,"a",{value:7}).a}})).a!=7})?function(Ge,We,et){var Rt=we(H,We);Rt&&delete H[We],pe(Ge,We,et),Rt&&Ge!==H&&pe(H,We,Rt)}:pe,pt=function(Ge,We){var et=q[Ge]=A(G[Se]);return Oe(et,{type:Ee,tag:Ge,description:We}),f||(et.description=We),et},ee=h?function(Ge){return typeof Ge=="symbol"}:function(Ge){return Object(Ge)instanceof G},oe=function(We,et,Rt){We===H&&oe(fe,et,Rt),b(We);var Ot=C(et,!0);return b(Rt),m(q,Ot)?(Rt.enumerable?(m(We,ce)&&We[ce][Ot]&&(We[ce][Ot]=!1),Rt=A(Rt,{enumerable:T(0,!1)})):(m(We,ce)||pe(We,ce,T(1,{})),We[ce][Ot]=!0),Ke(We,Ot,Rt)):pe(We,Ot,Rt)},he=function(We,et){b(We);var Rt=S(et),Ot=P(Rt).concat(Fe(Rt));return je(Ot,function(Nn){(!f||He.call(Rt,Nn))&&oe(We,Nn,Rt[Nn])}),We},Ce=function(We,et){return et===void 0?A(We):he(A(We),et)},He=function(We){var et=C(We,!0),Rt=W.call(this,et);return this===H&&m(q,et)&&!m(fe,et)?!1:Rt||!m(this,et)||!m(q,et)||m(this,ce)&&this[ce][et]?Rt:!0},re=function(We,et){var Rt=S(We),Ot=C(et,!0);if(!(Rt===H&&m(q,Ot)&&!m(fe,Ot))){var Nn=we(Rt,Ot);return Nn&&m(q,Ot)&&!(m(Rt,ce)&&Rt[ce][Ot])&&(Nn.enumerable=!0),Nn}},Ae=function(We){var et=U(S(We)),Rt=[];return je(et,function(Ot){!m(q,Ot)&&!m(se,Ot)&&Rt.push(Ot)}),Rt},Fe=function(We){var et=We===H,Rt=U(et?fe:S(We)),Ot=[];return je(Rt,function(Nn){m(q,Nn)&&(!et||m(H,Nn))&&Ot.push(q[Nn])}),Ot};if(d||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var We=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),et=ge(We),Rt=function(Ot){this===H&&Rt.call(fe,Ot),m(this,ce)&&m(this[ce],et)&&(this[ce][et]=!1),Ke(this,et,T(1,Ot))};return f&&Be&&Ke(H,et,{configurable:!0,set:Rt}),pt(et,We)},B(G[Se],"toString",function(){return $e(this).tag}),B(G,"withoutSetter",function(Ge){return pt(ge(Ge),Ge)}),F.f=He,$.f=oe,D.f=re,I.f=R.f=Ae,O.f=Fe,Me.f=function(Ge){return pt(ve(Ge),Ge)},f&&(pe(G[Se],"description",{configurable:!0,get:function(){return $e(this).description}}),c||B(H,"propertyIsEnumerable",He,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:G}),je(P(Z),function(Ge){Ne(Ge)}),s({target:Ee,stat:!0,forced:!d},{for:function(Ge){var We=String(Ge);if(m(_e,We))return _e[We];var et=G(We);return _e[We]=et,Pe[et]=We,et},keyFor:function(We){if(!ee(We))throw TypeError(We+" is not a symbol");if(m(Pe,We))return Pe[We]},useSetter:function(){Be=!0},useSimple:function(){Be=!1}}),s({target:"Object",stat:!0,forced:!d,sham:!f},{create:Ce,defineProperty:oe,defineProperties:he,getOwnPropertyDescriptor:re}),s({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:Ae,getOwnPropertySymbols:Fe}),s({target:"Object",stat:!0,forced:v(function(){O.f(1)})},{getOwnPropertySymbols:function(We){return O.f(w(We))}}),le){var Qe=!d||v(function(){var Ge=G();return le([Ge])!="[null]"||le({a:Ge})!="{}"||le(Object(Ge))!="{}"});s({target:"JSON",stat:!0,forced:Qe},{stringify:function(We,et,Rt){for(var Ot=[We],Nn=1,ca;arguments.length>Nn;)Ot.push(arguments[Nn++]);if(ca=et,!(!_(et)&&We===void 0||ee(We)))return y(et)||(et=function(Pn,pr){if(typeof ca=="function"&&(pr=ca.call(this,Pn,pr)),!ee(pr))return pr}),Ot[1]=et,le.apply(null,Ot)}})}G[Se][Te]||z(G[Se],Te,G[Se].valueOf),ze(G,Ee),se[ce]=!0},a630:function(i,o,a){var s=a("23e7"),l=a("4df4"),u=a("1c7e"),c=!u(function(f){Array.from(f)});s({target:"Array",stat:!0,forced:c},{from:l})},a640:function(i,o,a){var s=a("d039");i.exports=function(l,u){var c=[][l];return!!c&&s(function(){c.call(null,u||function(){throw 1},1)})}},a691:function(i,o){var a=Math.ceil,s=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?s:a)(l)}},ab13:function(i,o,a){var s=a("b622"),l=s("match");i.exports=function(u){var c=/./;try{"/./"[u](c)}catch{try{return c[l]=!1,"/./"[u](c)}catch{}}return!1}},ac1f:function(i,o,a){var s=a("23e7"),l=a("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(i,o,a){var s=a("825a");i.exports=function(){var l=s(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}},ae40:function(i,o,a){var s=a("83ab"),l=a("d039"),u=a("5135"),c=Object.defineProperty,f={},d=function(h){throw h};i.exports=function(h,v){if(u(f,h))return f[h];v||(v={});var m=[][h],y=u(v,"ACCESSORS")?v.ACCESSORS:!1,_=u(v,0)?v[0]:d,b=u(v,1)?v[1]:void 0;return f[h]=!!m&&!l(function(){if(y&&!s)return!0;var w={length:-1};y?c(w,1,{enumerable:!0,get:d}):w[1]=1,m.call(w,_,b)})}},ae93:function(i,o,a){var s=a("e163"),l=a("9112"),u=a("5135"),c=a("b622"),f=a("c430"),d=c("iterator"),h=!1,v=function(){return this},m,y,_;[].keys&&(_=[].keys(),"next"in _?(y=s(s(_)),y!==Object.prototype&&(m=y)):h=!0),m==null&&(m={}),!f&&!u(m,d)&&l(m,d,v),i.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:h}},b041:function(i,o,a){var s=a("00ee"),l=a("f5df");i.exports=s?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(i,o,a){var s=a("83ab"),l=a("9bf2").f,u=Function.prototype,c=u.toString,f=/^\s*function ([^ (]*)/,d="name";s&&!(d in u)&&l(u,d,{configurable:!0,get:function(){try{return c.call(this).match(f)[1]}catch{return""}}})},b622:function(i,o,a){var s=a("da84"),l=a("5692"),u=a("5135"),c=a("90e3"),f=a("4930"),d=a("fdbf"),h=l("wks"),v=s.Symbol,m=d?v:v&&v.withoutSetter||c;i.exports=function(y){return u(h,y)||(f&&u(v,y)?h[y]=v[y]:h[y]=m("Symbol."+y)),h[y]}},b64b:function(i,o,a){var s=a("23e7"),l=a("7b0b"),u=a("df75"),c=a("d039"),f=c(function(){u(1)});s({target:"Object",stat:!0,forced:f},{keys:function(h){return u(l(h))}})},b727:function(i,o,a){var s=a("0366"),l=a("44ad"),u=a("7b0b"),c=a("50c4"),f=a("65f0"),d=[].push,h=function(v){var m=v==1,y=v==2,_=v==3,b=v==4,w=v==6,S=v==5||w;return function(C,T,A,P){for(var I=u(C),R=l(I),O=s(T,A,3),D=c(R.length),$=0,F=P||f,z=m?F(C,D):y?F(C,0):void 0,B,Y;D>$;$++)if((S||$ in R)&&(B=R[$],Y=O(B,$,I),v)){if(m)z[$]=Y;else if(Y)switch(v){case 3:return!0;case 5:return B;case 6:return $;case 2:d.call(z,B)}else if(b)return!1}return w?-1:_||b?b:z}};i.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}},c04e:function(i,o,a){var s=a("861d");i.exports=function(l,u){if(!s(l))return l;var c,f;if(u&&typeof(c=l.toString)=="function"&&!s(f=c.call(l))||typeof(c=l.valueOf)=="function"&&!s(f=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!s(f=c.call(l)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(i,o){i.exports=!1},c6b6:function(i,o){var a={}.toString;i.exports=function(s){return a.call(s).slice(8,-1)}},c6cd:function(i,o,a){var s=a("da84"),l=a("ce4e"),u="__core-js_shared__",c=s[u]||l(u,{});i.exports=c},c740:function(i,o,a){var s=a("23e7"),l=a("b727").findIndex,u=a("44d2"),c=a("ae40"),f="findIndex",d=!0,h=c(f);f in[]&&Array(1)[f](function(){d=!1}),s({target:"Array",proto:!0,forced:d||!h},{findIndex:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}}),u(f)},c8ba:function(i,o){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}i.exports=a},c975:function(i,o,a){var s=a("23e7"),l=a("4d64").indexOf,u=a("a640"),c=a("ae40"),f=[].indexOf,d=!!f&&1/[1].indexOf(1,-0)<0,h=u("indexOf"),v=c("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:d||!h||!v},{indexOf:function(y){return d?f.apply(this,arguments)||0:l(this,y,arguments.length>1?arguments[1]:void 0)}})},ca84:function(i,o,a){var s=a("5135"),l=a("fc6a"),u=a("4d64").indexOf,c=a("d012");i.exports=function(f,d){var h=l(f),v=0,m=[],y;for(y in h)!s(c,y)&&s(h,y)&&m.push(y);for(;d.length>v;)s(h,y=d[v++])&&(~u(m,y)||m.push(y));return m}},caad:function(i,o,a){var s=a("23e7"),l=a("4d64").includes,u=a("44d2"),c=a("ae40"),f=c("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!f},{includes:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(i,o,a){var s=a("da84"),l=a("861d"),u=s.document,c=l(u)&&l(u.createElement);i.exports=function(f){return c?u.createElement(f):{}}},ce4e:function(i,o,a){var s=a("da84"),l=a("9112");i.exports=function(u,c){try{l(s,u,c)}catch{s[u]=c}return c}},d012:function(i,o){i.exports={}},d039:function(i,o){i.exports=function(a){try{return!!a()}catch{return!0}}},d066:function(i,o,a){var s=a("428f"),l=a("da84"),u=function(c){return typeof c=="function"?c:void 0};i.exports=function(c,f){return arguments.length<2?u(s[c])||u(l[c]):s[c]&&s[c][f]||l[c]&&l[c][f]}},d1e7:function(i,o,a){var s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!s.call({1:2},1);o.f=u?function(f){var d=l(this,f);return!!d&&d.enumerable}:s},d28b:function(i,o,a){var s=a("746f");s("iterator")},d2bb:function(i,o,a){var s=a("825a"),l=a("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,c={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(c,[]),u=c instanceof Array}catch{}return function(h,v){return s(h),l(v),u?f.call(h,v):h.__proto__=v,h}}():void 0)},d3b7:function(i,o,a){var s=a("00ee"),l=a("6eeb"),u=a("b041");s||l(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(i,o,a){var s=a("9bf2").f,l=a("5135"),u=a("b622"),c=u("toStringTag");i.exports=function(f,d,h){f&&!l(f=h?f:f.prototype,c)&&s(f,c,{configurable:!0,value:d})}},d58f:function(i,o,a){var s=a("1c0b"),l=a("7b0b"),u=a("44ad"),c=a("50c4"),f=function(d){return function(h,v,m,y){s(v);var _=l(h),b=u(_),w=c(_.length),S=d?w-1:0,C=d?-1:1;if(m<2)for(;;){if(S in b){y=b[S],S+=C;break}if(S+=C,d?S<0:w<=S)throw TypeError("Reduce of empty array with no initial value")}for(;d?S>=0:w>S;S+=C)S in b&&(y=v(y,b[S],S,_));return y}};i.exports={left:f(!1),right:f(!0)}},d784:function(i,o,a){a("ac1f");var s=a("6eeb"),l=a("d039"),u=a("b622"),c=a("9263"),f=a("9112"),d=u("species"),h=!l(function(){var b=/./;return b.exec=function(){var w=[];return w.groups={a:"7"},w},"".replace(b,"$<a>")!=="7"}),v=function(){return"a".replace(/./,"$0")==="$0"}(),m=u("replace"),y=function(){return/./[m]?/./[m]("a","$0")==="":!1}(),_=!l(function(){var b=/(?:)/,w=b.exec;b.exec=function(){return w.apply(this,arguments)};var S="ab".split(b);return S.length!==2||S[0]!=="a"||S[1]!=="b"});i.exports=function(b,w,S,C){var T=u(b),A=!l(function(){var $={};return $[T]=function(){return 7},""[b]($)!=7}),P=A&&!l(function(){var $=!1,F=/a/;return b==="split"&&(F={},F.constructor={},F.constructor[d]=function(){return F},F.flags="",F[T]=/./[T]),F.exec=function(){return $=!0,null},F[T](""),!$});if(!A||!P||b==="replace"&&!(h&&v&&!y)||b==="split"&&!_){var I=/./[T],R=S(T,""[b],function($,F,z,B,Y){return F.exec===c?A&&!Y?{done:!0,value:I.call(F,z,B)}:{done:!0,value:$.call(z,F,B)}:{done:!1}},{REPLACE_KEEPS_$0:v,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:y}),O=R[0],D=R[1];s(String.prototype,b,O),s(RegExp.prototype,T,w==2?function($,F){return D.call($,this,F)}:function($){return D.call($,this)})}C&&f(RegExp.prototype[T],"sham",!0)}},d81d:function(i,o,a){var s=a("23e7"),l=a("b727").map,u=a("1dde"),c=a("ae40"),f=u("map"),d=c("map");s({target:"Array",proto:!0,forced:!f||!d},{map:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}})},da84:function(i,o,a){(function(s){var l=function(u){return u&&u.Math==Math&&u};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof s=="object"&&s)||Function("return this")()}).call(this,a("c8ba"))},dbb4:function(i,o,a){var s=a("23e7"),l=a("83ab"),u=a("56ef"),c=a("fc6a"),f=a("06cf"),d=a("8418");s({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(v){for(var m=c(v),y=f.f,_=u(m),b={},w=0,S,C;_.length>w;)C=y(m,S=_[w++]),C!==void 0&&d(b,S,C);return b}})},dbf1:function(i,o,a){(function(s){a.d(o,"a",function(){return u});function l(){return typeof window<"u"?window.console:s.console}var u=l()}).call(this,a("c8ba"))},ddb0:function(i,o,a){var s=a("da84"),l=a("fdbc"),u=a("e260"),c=a("9112"),f=a("b622"),d=f("iterator"),h=f("toStringTag"),v=u.values;for(var m in l){var y=s[m],_=y&&y.prototype;if(_){if(_[d]!==v)try{c(_,d,v)}catch{_[d]=v}if(_[h]||c(_,h,m),l[m]){for(var b in u)if(_[b]!==u[b])try{c(_,b,u[b])}catch{_[b]=u[b]}}}}},df75:function(i,o,a){var s=a("ca84"),l=a("7839");i.exports=Object.keys||function(c){return s(c,l)}},e01a:function(i,o,a){var s=a("23e7"),l=a("83ab"),u=a("da84"),c=a("5135"),f=a("861d"),d=a("9bf2").f,h=a("e893"),v=u.Symbol;if(l&&typeof v=="function"&&(!("description"in v.prototype)||v().description!==void 0)){var m={},y=function(){var T=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),A=this instanceof y?new v(T):T===void 0?v():v(T);return T===""&&(m[A]=!0),A};h(y,v);var _=y.prototype=v.prototype;_.constructor=y;var b=_.toString,w=String(v("test"))=="Symbol(test)",S=/^Symbol\((.*)\)[^)]+$/;d(_,"description",{configurable:!0,get:function(){var T=f(this)?this.valueOf():this,A=b.call(T);if(c(m,T))return"";var P=w?A.slice(7,-1):A.replace(S,"$1");return P===""?void 0:P}}),s({global:!0,forced:!0},{Symbol:y})}},e163:function(i,o,a){var s=a("5135"),l=a("7b0b"),u=a("f772"),c=a("e177"),f=u("IE_PROTO"),d=Object.prototype;i.exports=c?Object.getPrototypeOf:function(h){return h=l(h),s(h,f)?h[f]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?d:null}},e177:function(i,o,a){var s=a("d039");i.exports=!s(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(i,o,a){var s=a("fc6a"),l=a("44d2"),u=a("3f8c"),c=a("69f3"),f=a("7dd0"),d="Array Iterator",h=c.set,v=c.getterFor(d);i.exports=f(Array,"Array",function(m,y){h(this,{type:d,target:s(m),index:0,kind:y})},function(){var m=v(this),y=m.target,_=m.kind,b=m.index++;return!y||b>=y.length?(m.target=void 0,{value:void 0,done:!0}):_=="keys"?{value:b,done:!1}:_=="values"?{value:y[b],done:!1}:{value:[b,y[b]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")},e439:function(i,o,a){var s=a("23e7"),l=a("d039"),u=a("fc6a"),c=a("06cf").f,f=a("83ab"),d=l(function(){c(1)}),h=!f||d;s({target:"Object",stat:!0,forced:h,sham:!f},{getOwnPropertyDescriptor:function(m,y){return c(u(m),y)}})},e538:function(i,o,a){var s=a("b622");o.f=s},e893:function(i,o,a){var s=a("5135"),l=a("56ef"),u=a("06cf"),c=a("9bf2");i.exports=function(f,d){for(var h=l(d),v=c.f,m=u.f,y=0;y<h.length;y++){var _=h[y];s(f,_)||v(f,_,m(d,_))}}},e8b5:function(i,o,a){var s=a("c6b6");i.exports=Array.isArray||function(u){return s(u)=="Array"}},e95a:function(i,o,a){var s=a("b622"),l=a("3f8c"),u=s("iterator"),c=Array.prototype;i.exports=function(f){return f!==void 0&&(l.Array===f||c[u]===f)}},f5df:function(i,o,a){var s=a("00ee"),l=a("c6b6"),u=a("b622"),c=u("toStringTag"),f=l(function(){return arguments}())=="Arguments",d=function(h,v){try{return h[v]}catch{}};i.exports=s?l:function(h){var v,m,y;return h===void 0?"Undefined":h===null?"Null":typeof(m=d(v=Object(h),c))=="string"?m:f?l(v):(y=l(v))=="Object"&&typeof v.callee=="function"?"Arguments":y}},f772:function(i,o,a){var s=a("5692"),l=a("90e3"),u=s("keys");i.exports=function(c){return u[c]||(u[c]=l(c))}},fb15:function(i,o,a){if(a.r(o),typeof window<"u"){var s=window.document.currentScript;{var l=a("8875");s=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(a.p=u[1])}a("99af"),a("4de4"),a("4160"),a("c975"),a("d81d"),a("a434"),a("159b"),a("a4d3"),a("e439"),a("dbb4"),a("b64b");function c(ee,oe,he){return oe in ee?Object.defineProperty(ee,oe,{value:he,enumerable:!0,configurable:!0,writable:!0}):ee[oe]=he,ee}function f(ee,oe){var he=Object.keys(ee);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(ee);oe&&(Ce=Ce.filter(function(He){return Object.getOwnPropertyDescriptor(ee,He).enumerable})),he.push.apply(he,Ce)}return he}function d(ee){for(var oe=1;oe<arguments.length;oe++){var he=arguments[oe]!=null?arguments[oe]:{};oe%2?f(Object(he),!0).forEach(function(Ce){c(ee,Ce,he[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ee,Object.getOwnPropertyDescriptors(he)):f(Object(he)).forEach(function(Ce){Object.defineProperty(ee,Ce,Object.getOwnPropertyDescriptor(he,Ce))})}return ee}function h(ee){if(Array.isArray(ee))return ee}a("e01a"),a("d28b"),a("e260"),a("d3b7"),a("3ca3"),a("ddb0");function v(ee,oe){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(ee)))){var he=[],Ce=!0,He=!1,re=void 0;try{for(var Ae=ee[Symbol.iterator](),Fe;!(Ce=(Fe=Ae.next()).done)&&(he.push(Fe.value),!(oe&&he.length===oe));Ce=!0);}catch(Qe){He=!0,re=Qe}finally{try{!Ce&&Ae.return!=null&&Ae.return()}finally{if(He)throw re}}return he}}a("a630"),a("fb6a"),a("b0c0"),a("25f0");function m(ee,oe){(oe==null||oe>ee.length)&&(oe=ee.length);for(var he=0,Ce=new Array(oe);he<oe;he++)Ce[he]=ee[he];return Ce}function y(ee,oe){if(ee){if(typeof ee=="string")return m(ee,oe);var he=Object.prototype.toString.call(ee).slice(8,-1);if(he==="Object"&&ee.constructor&&(he=ee.constructor.name),he==="Map"||he==="Set")return Array.from(ee);if(he==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(he))return m(ee,oe)}}function _(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(ee,oe){return h(ee)||v(ee,oe)||y(ee,oe)||_()}function w(ee){if(Array.isArray(ee))return m(ee)}function S(ee){if(typeof Symbol<"u"&&Symbol.iterator in Object(ee))return Array.from(ee)}function C(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(ee){return w(ee)||S(ee)||y(ee)||C()}var A=a("a352"),P=a.n(A);function I(ee){ee.parentElement!==null&&ee.parentElement.removeChild(ee)}function R(ee,oe,he){var Ce=he===0?ee.children[0]:ee.children[he-1].nextSibling;ee.insertBefore(oe,Ce)}var O=a("dbf1");a("13d5"),a("4fad"),a("ac1f"),a("5319");function D(ee){var oe=Object.create(null);return function(Ce){var He=oe[Ce];return He||(oe[Ce]=ee(Ce))}}var $=/-(\w)/g,F=D(function(ee){return ee.replace($,function(oe,he){return he.toUpperCase()})});a("5db7"),a("73d9");var z=["Start","Add","Remove","Update","End"],B=["Choose","Unchoose","Sort","Filter","Clone"],Y=["Move"],j=[Y,z,B].flatMap(function(ee){return ee}).map(function(ee){return"on".concat(ee)}),se={manage:Y,manageAndEmit:z,emit:B};function ge(ee){return j.indexOf(ee)!==-1}a("caad"),a("2ca0");var ve=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function Me(ee){return ve.includes(ee)}function Ne(ee){return["transition-group","TransitionGroup"].includes(ee)}function ze(ee){return["id","class","role","style"].includes(ee)||ee.startsWith("data-")||ee.startsWith("aria-")||ee.startsWith("on")}function De(ee){return ee.reduce(function(oe,he){var Ce=b(he,2),He=Ce[0],re=Ce[1];return oe[He]=re,oe},{})}function je(ee){var oe=ee.$attrs,he=ee.componentData,Ce=he===void 0?{}:he,He=De(Object.entries(oe).filter(function(re){var Ae=b(re,2),Fe=Ae[0];return Ae[1],ze(Fe)}));return d(d({},He),Ce)}function ce(ee){var oe=ee.$attrs,he=ee.callBackBuilder,Ce=De(Ee(oe));Object.entries(he).forEach(function(re){var Ae=b(re,2),Fe=Ae[0],Qe=Ae[1];se[Fe].forEach(function(Ge){Ce["on".concat(Ge)]=Qe(Ge)})});var He="[data-draggable]".concat(Ce.draggable||"");return d(d({},Ce),{},{draggable:He})}function Ee(ee){return Object.entries(ee).filter(function(oe){var he=b(oe,2),Ce=he[0];return he[1],!ze(Ce)}).map(function(oe){var he=b(oe,2),Ce=he[0],He=he[1];return[F(Ce),He]}).filter(function(oe){var he=b(oe,2),Ce=he[0];return he[1],!ge(Ce)})}a("c740");function Se(ee,oe){if(!(ee instanceof oe))throw new TypeError("Cannot call a class as a function")}function Te(ee,oe){for(var he=0;he<oe.length;he++){var Ce=oe[he];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(ee,Ce.key,Ce)}}function Oe(ee,oe,he){return Te(ee.prototype,oe),ee}var $e=function(oe){var he=oe.el;return he},H=function(oe,he){return oe.__draggable_context=he},G=function(oe){return oe.__draggable_context},le=function(){function ee(oe){var he=oe.nodes,Ce=he.header,He=he.default,re=he.footer,Ae=oe.root,Fe=oe.realList;Se(this,ee),this.defaultNodes=He,this.children=[].concat(T(Ce),T(He),T(re)),this.externalComponent=Ae.externalComponent,this.rootTransition=Ae.transition,this.tag=Ae.tag,this.realList=Fe}return Oe(ee,[{key:"render",value:function(he,Ce){var He=this.tag,re=this.children,Ae=this._isRootComponent,Fe=Ae?{default:function(){return re}}:re;return he(He,Ce,Fe)}},{key:"updated",value:function(){var he=this.defaultNodes,Ce=this.realList;he.forEach(function(He,re){H($e(He),{element:Ce[re],index:re})})}},{key:"getUnderlyingVm",value:function(he){return G(he)}},{key:"getVmIndexFromDomIndex",value:function(he,Ce){var He=this.defaultNodes,re=He.length,Ae=Ce.children,Fe=Ae.item(he);if(Fe===null)return re;var Qe=G(Fe);if(Qe)return Qe.index;if(re===0)return 0;var Ge=$e(He[0]),We=T(Ae).findIndex(function(et){return et===Ge});return he<We?0:re}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),ee}(),we=a("8bbf");function pe(ee,oe){var he=ee[oe];return he?he():[]}function U(ee){var oe=ee.$slots,he=ee.realList,Ce=ee.getKey,He=he||[],re=["header","footer"].map(function(et){return pe(oe,et)}),Ae=b(re,2),Fe=Ae[0],Qe=Ae[1],Ge=oe.item;if(!Ge)throw new Error("draggable element must have an item slot");var We=He.flatMap(function(et,Rt){return Ge({element:et,index:Rt}).map(function(Ot){return Ot.key=Ce(et),Ot.props=d(d({},Ot.props||{}),{},{"data-draggable":!0}),Ot})});if(We.length!==He.length)throw new Error("Item slot must have only one child");return{header:Fe,footer:Qe,default:We}}function W(ee){var oe=Ne(ee),he=!Me(ee)&&!oe;return{transition:oe,externalComponent:he,tag:he?Object(we.resolveComponent)(ee):oe?we.TransitionGroup:ee}}function q(ee){var oe=ee.$slots,he=ee.tag,Ce=ee.realList,He=ee.getKey,re=U({$slots:oe,realList:Ce,getKey:He}),Ae=W(he);return new le({nodes:re,root:Ae,realList:Ce})}function fe(ee,oe){var he=this;Object(we.nextTick)(function(){return he.$emit(ee.toLowerCase(),oe)})}function _e(ee){var oe=this;return function(he,Ce){if(oe.realList!==null)return oe["onDrag".concat(ee)](he,Ce)}}function Pe(ee){var oe=this,he=_e.call(this,ee);return function(Ce,He){he.call(oe,Ce,He),fe.call(oe,ee,Ce)}}var Z=null,de={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(oe){return oe}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Be=["update:modelValue","change"].concat(T([].concat(T(se.manageAndEmit),T(se.emit)).map(function(ee){return ee.toLowerCase()}))),Ke=Object(we.defineComponent)({name:"draggable",inheritAttrs:!1,props:de,emits:Be,data:function(){return{error:!1}},render:function(){try{this.error=!1;var oe=this.$slots,he=this.$attrs,Ce=this.tag,He=this.componentData,re=this.realList,Ae=this.getKey,Fe=q({$slots:oe,tag:Ce,realList:re,getKey:Ae});this.componentStructure=Fe;var Qe=je({$attrs:he,componentData:He});return Fe.render(we.h,Qe)}catch(Ge){return this.error=!0,Object(we.h)("pre",{style:{color:"red"}},Ge.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&O.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var oe=this;if(!this.error){var he=this.$attrs,Ce=this.$el,He=this.componentStructure;He.updated();var re=ce({$attrs:he,callBackBuilder:{manageAndEmit:function(Qe){return Pe.call(oe,Qe)},emit:function(Qe){return fe.bind(oe,Qe)},manage:function(Qe){return _e.call(oe,Qe)}}}),Ae=Ce.nodeType===1?Ce:Ce.parentElement;this._sortable=new P.a(Ae,re),this.targetDomElement=Ae,Ae.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var oe=this.list;return oe||this.modelValue},getKey:function(){var oe=this.itemKey;return typeof oe=="function"?oe:function(he){return he[oe]}}},watch:{$attrs:{handler:function(oe){var he=this._sortable;he&&Ee(oe).forEach(function(Ce){var He=b(Ce,2),re=He[0],Ae=He[1];he.option(re,Ae)})},deep:!0}},methods:{getUnderlyingVm:function(oe){return this.componentStructure.getUnderlyingVm(oe)||null},getUnderlyingPotencialDraggableComponent:function(oe){return oe.__draggable_component__},emitChanges:function(oe){var he=this;Object(we.nextTick)(function(){return he.$emit("change",oe)})},alterList:function(oe){if(this.list){oe(this.list);return}var he=T(this.modelValue);oe(he),this.$emit("update:modelValue",he)},spliceList:function(){var oe=arguments,he=function(He){return He.splice.apply(He,T(oe))};this.alterList(he)},updatePosition:function(oe,he){var Ce=function(re){return re.splice(he,0,re.splice(oe,1)[0])};this.alterList(Ce)},getRelatedContextFromMoveEvent:function(oe){var he=oe.to,Ce=oe.related,He=this.getUnderlyingPotencialDraggableComponent(he);if(!He)return{component:He};var re=He.realList,Ae={list:re,component:He};if(he!==Ce&&re){var Fe=He.getUnderlyingVm(Ce)||{};return d(d({},Fe),Ae)}return Ae},getVmIndexFromDomIndex:function(oe){return this.componentStructure.getVmIndexFromDomIndex(oe,this.targetDomElement)},onDragStart:function(oe){this.context=this.getUnderlyingVm(oe.item),oe.item._underlying_vm_=this.clone(this.context.element),Z=oe.item},onDragAdd:function(oe){var he=oe.item._underlying_vm_;if(he!==void 0){I(oe.item);var Ce=this.getVmIndexFromDomIndex(oe.newIndex);this.spliceList(Ce,0,he);var He={element:he,newIndex:Ce};this.emitChanges({added:He})}},onDragRemove:function(oe){if(R(this.$el,oe.item,oe.oldIndex),oe.pullMode==="clone"){I(oe.clone);return}var he=this.context,Ce=he.index,He=he.element;this.spliceList(Ce,1);var re={element:He,oldIndex:Ce};this.emitChanges({removed:re})},onDragUpdate:function(oe){I(oe.item),R(oe.from,oe.item,oe.oldIndex);var he=this.context.index,Ce=this.getVmIndexFromDomIndex(oe.newIndex);this.updatePosition(he,Ce);var He={element:this.context.element,oldIndex:he,newIndex:Ce};this.emitChanges({moved:He})},computeFutureIndex:function(oe,he){if(!oe.element)return 0;var Ce=T(he.to.children).filter(function(Fe){return Fe.style.display!=="none"}),He=Ce.indexOf(he.related),re=oe.component.getVmIndexFromDomIndex(He),Ae=Ce.indexOf(Z)!==-1;return Ae||!he.willInsertAfter?re:re+1},onDragMove:function(oe,he){var Ce=this.move,He=this.realList;if(!Ce||!He)return!0;var re=this.getRelatedContextFromMoveEvent(oe),Ae=this.computeFutureIndex(re,oe),Fe=d(d({},this.context),{},{futureIndex:Ae}),Qe=d(d({},oe),{},{relatedContext:re,draggedContext:Fe});return Ce(Qe,he)},onDragEnd:function(){Z=null}}}),pt=Ke;o.default=pt},fb6a:function(i,o,a){var s=a("23e7"),l=a("861d"),u=a("e8b5"),c=a("23cb"),f=a("50c4"),d=a("fc6a"),h=a("8418"),v=a("b622"),m=a("1dde"),y=a("ae40"),_=m("slice"),b=y("slice",{ACCESSORS:!0,0:0,1:2}),w=v("species"),S=[].slice,C=Math.max;s({target:"Array",proto:!0,forced:!_||!b},{slice:function(A,P){var I=d(this),R=f(I.length),O=c(A,R),D=c(P===void 0?R:P,R),$,F,z;if(u(I)&&($=I.constructor,typeof $=="function"&&($===Array||u($.prototype))?$=void 0:l($)&&($=$[w],$===null&&($=void 0)),$===Array||$===void 0))return S.call(I,O,D);for(F=new($===void 0?Array:$)(C(D-O,0)),z=0;O<D;O++,z++)O in I&&h(F,z,I[O]);return F.length=z,F}})},fc6a:function(i,o,a){var s=a("44ad"),l=a("1d80");i.exports=function(u){return s(l(u))}},fdbc:function(i,o){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(i,o,a){var s=a("4930");i.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})}(F_)),F_.exports}var aCe=oCe();const lb=ub(aCe),sCe={class:"relative flex flex-col rounded"},lCe=["onClick"],uCe={class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},cCe={class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},fCe=rt({__name:"ConnectionCardSettings",setup(e){const t=ke([]),n=()=>{t.value=Object.values(dt).filter(o=>!Qa.value.flat().includes(o))};n();const r=()=>{Qa.value=[...Qa.value,t.value[0]?[t.value[0]]:[]],n()},i=o=>{Qa.value.splice(o,1),n()};return(o,a)=>(K(),te(Xe,null,[L("div",null,ie(o.$t("customCardLines"))+":",1),L("div",sCe,[L("button",{class:"btn btn-circle btn-neutral btn-sm absolute right-2 top-2",onClick:r},[ye(N(PQ),{class:"h-4 w-4"})]),(K(!0),te(Xe,null,rn(N(Qa),(s,l)=>(K(),te("div",{key:l,class:it(`flex items-center gap-2 p-2 ${l%2===0?"bg-base-200":"bg-base-300"}`)},[N(Qa).length>1?(K(),te("button",{key:0,class:"btn btn-circle btn-xs",onClick:u=>i(l)},[ye(N(II),{class:"h-4 w-4"})],8,lCe)):gt("",!0),ye(N(lb),{class:"flex flex-1 flex-wrap items-center gap-2",modelValue:N(Qa)[l],"onUpdate:modelValue":u=>N(Qa)[l]=u,animation:150,group:"list",ghostClass:"ghost","item-key":u=>u},{item:Dr(({element:u})=>[L("div",uCe,ie(o.$t(u)),1)]),_:2},1032,["modelValue","onUpdate:modelValue","item-key"])],2))),128)),ye(N(lb),{class:"flex flex-1 flex-wrap gap-2 p-2",modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=s=>t.value=s),animation:150,group:"list",ghostClass:"ghost","item-key":s=>s},{item:Dr(({element:s})=>[L("div",cCe,ie(o.$t(s)),1)]),_:1},8,["modelValue","item-key"])])],64))}}),dCe={class:"flex flex-col gap-2 p-1"},hCe=["onUpdate:modelValue"],pCe=["onClick"],vCe={class:"flex w-full items-center gap-1"},gCe=rt({__name:"SourceIPLabels",setup(e){const t=Ve(()=>Object.keys(So.value)),n=Na({ip:"",label:""}),r=()=>{So.value[n.ip]=n.label,n.ip="",n.label=""},i=o=>{Reflect.deleteProperty(So.value,o),So.value={...So.value}};return(o,a)=>(K(),te(Xe,null,[L("div",null,ie(o.$t("sourceIPLabels"))+":",1),L("div",dCe,[(K(!0),te(Xe,null,rn(t.value,s=>(K(),te("div",{key:s,class:"flex items-center gap-2"},[lt(ie(s)+" ",1),ye(N(ff),{class:"h-4 w-4"}),_t(L("input",{type:"text",class:"input input-sm input-bordered w-24","onUpdate:modelValue":l=>N(So)[s]=l},null,8,hCe),[[ir,N(So)[s]]]),L("button",{class:"btn btn-circle btn-sm",onClick:()=>i(s)},[ye(N(II),{class:"h-4 w-4"})],8,pCe)]))),128)),L("div",vCe,[a[2]||(a[2]=L("span",{class:"shrink-0"},"IP :",-1)),_t(L("input",{type:"text",class:"input input-sm input-bordered w-36 flex-1 sm:max-w-44","onUpdate:modelValue":a[0]||(a[0]=s=>n.ip=s)},null,512),[[ir,n.ip]]),ye(N(ff),{class:"h-4 w-4 shrink-0"}),_t(L("input",{type:"text",class:"input input-sm input-bordered w-24 sm:w-32","onUpdate:modelValue":a[1]||(a[1]=s=>n.label=s)},null,512),[[ir,n.label]]),L("button",{class:"btn btn-circle btn-sm",onClick:r},[ye(N(Z4),{class:"h-4 w-4"})])])])],64))}}),mCe={class:"flex items-center gap-2"},yCe=["value"],_Ce={class:"flex rounded lg:flex-col"},bCe={class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},SCe={class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},wCe=rt({__name:"TableSettings",setup(e){const t=ke(Object.values(dt).filter(n=>!Ed.value.includes(n)));return(n,r)=>(K(),te(Xe,null,[L("div",mCe,[L("div",null,ie(n.$t("tableSize"))+":",1),_t(L("select",{class:"select select-bordered select-sm min-w-24","onUpdate:modelValue":r[0]||(r[0]=i=>st(a_)?a_.value=i:null)},[(K(!0),te(Xe,null,rn(Object.values(N(dg)),i=>(K(),te("option",{key:i,value:i},ie(n.$t(i)),9,yCe))),128))],512),[[pi,N(a_)]])]),L("div",null,ie(n.$t("customTableColumns"))+":",1),L("div",_Ce,[ye(N(lb),{class:"flex flex-1 flex-col gap-2 bg-base-200 p-2 lg:flex-row",modelValue:N(Ed),"onUpdate:modelValue":r[1]||(r[1]=i=>st(Ed)?Ed.value=i:null),group:"list",animation:150,"item-key":i=>i},{item:Dr(({element:i})=>[L("div",bCe,ie(n.$t(i)),1)]),_:1},8,["modelValue","item-key"]),ye(N(lb),{class:"flex flex-1 flex-col gap-2 p-2 lg:flex-row",modelValue:t.value,"onUpdate:modelValue":r[2]||(r[2]=i=>t.value=i),group:"list",animation:150,"item-key":i=>i},{item:Dr(({element:i})=>[L("div",SCe,ie(n.$t(i)),1)]),_:1},8,["modelValue","item-key"])])],64))}}),xCe={class:"card card-compact"},TCe={class:"card-title px-4 pt-4"},CCe={class:"card-body"},ECe={class:"flex items-center gap-2"},ACe=["value"],ICe={class:"flex items-center gap-2"},RCe=rt({__name:"ConnectionsSettings",setup(e){return(t,n)=>(K(),te("div",xCe,[L("div",TCe,ie(t.$t("connections")),1),L("div",CCe,[L("div",ECe,[lt(ie(t.$t("proxyChainDirection"))+": ",1),_t(L("select",{class:"select select-bordered select-sm w-24","onUpdate:modelValue":n[0]||(n[0]=r=>st(Sv)?Sv.value=r:null)},[(K(!0),te(Xe,null,rn(Object.values(N(Qg)),r=>(K(),te("option",{key:r,value:r},ie(t.$t(r)),9,ACe))),128))],512),[[pi,N(Sv)]])]),L("div",ICe,[lt(ie(t.$t("connectionStyle"))+": "+ie(t.$t("table"))+" ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=r=>st(Fc)?Fc.value=r:null)},null,512),[[gr,N(Fc)]]),lt(" "+ie(t.$t("card")),1)]),N(Fc)?(K(),At(fCe,{key:0})):(K(),At(wCe,{key:1})),n[2]||(n[2]=L("div",{class:"divider"},null,-1)),ye(gCe)])]))}}),PCe={class:"card card-compact"},OCe={class:"card-title px-4 pt-4"},MCe={class:"card-body"},DCe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},LCe={class:"flex items-center gap-2"},NCe={class:"flex items-center gap-2"},kCe={class:"flex w-full items-center gap-2"},FCe={class:"shrink-0"},$Ce={class:"flex w-full items-center gap-2"},BCe={class:"shrink-0"},VCe={class:"flex items-center gap-2"},UCe={class:"shrink-0"},HCe={class:"flex items-center gap-2"},GCe={class:"shrink-0"},zCe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},WCe={class:"flex items-center gap-2 max-sm:hidden"},jCe={class:"flex items-center gap-2"},YCe=["value"],XCe={class:"flex items-center gap-2"},KCe={class:"flex items-center gap-2"},ZCe=["value"],qCe={class:"flex items-center gap-2"},JCe={class:"flex items-center gap-2"},QCe={class:"flex items-center gap-2"},eEe={key:1,class:"flex items-center gap-2"},tEe=rt({__name:"ProxiesSettings",setup(e){const t=Ve(()=>Object.values(Wr.value).some(n=>!!n.icon));return(n,r)=>(K(),te("div",PCe,[L("div",OCe,ie(n.$t("proxies")),1),L("div",MCe,[L("div",DCe,[L("div",LCe,[lt(ie(n.$t("automaticDisconnection"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":r[0]||(r[0]=i=>st(n_)?n_.value=i:null)},null,512),[[gr,N(n_)]])]),L("div",NCe,[lt(ie(n.$t("ipv6Test"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":r[1]||(r[1]=i=>st(qc)?qc.value=i:null)},null,512),[[gr,N(qc)]])]),L("div",kCe,[L("span",FCe,ie(n.$t("speedtestUrl"))+": ",1),_t(L("input",{type:"text",class:"input input-sm input-bordered w-60 flex-1 sm:max-w-80","onUpdate:modelValue":r[2]||(r[2]=i=>st(vv)?vv.value=i:null)},null,512),[[ir,N(vv)]])]),L("div",$Ce,[L("span",BCe,ie(n.$t("speedtestTimeout"))+": ",1),_t(L("input",{type:"text",class:"input input-sm input-bordered w-20","onUpdate:modelValue":r[3]||(r[3]=i=>st(gv)?gv.value=i:null)},null,512),[[ir,N(gv)]]),r[14]||(r[14]=lt(" ms "))]),L("div",VCe,[L("span",UCe,ie(n.$t("lowLatencyDesc"))+": ",1),_t(L("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":r[4]||(r[4]=i=>st(lu)?lu.value=i:null)},null,512),[[ir,N(lu)]]),r[15]||(r[15]=lt(" ms "))]),L("div",HCe,[L("span",GCe,ie(n.$t("mediumLatencyDesc"))+": ",1),_t(L("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":r[5]||(r[5]=i=>st(Xs)?Xs.value=i:null)},null,512),[[ir,N(Xs)]]),r[16]||(r[16]=lt(" ms "))])]),r[17]||(r[17]=L("div",{class:"divider"},null,-1)),L("div",zCe,[L("div",WCe,[lt(ie(n.$t("twoColumnProxyGroup"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":r[6]||(r[6]=i=>st(pv)?pv.value=i:null)},null,512),[[gr,N(pv)]])]),L("div",jCe,[lt(ie(n.$t("proxyPreviewType"))+": ",1),_t(L("select",{class:"select select-bordered select-sm min-w-24","onUpdate:modelValue":r[7]||(r[7]=i=>st(yv)?yv.value=i:null)},[(K(!0),te(Xe,null,rn(Object.values(N(fg)),i=>(K(),te("option",{key:i,value:i},ie(n.$t(i)),9,YCe))),128))],512),[[pi,N(yv)]])]),L("div",XCe,[lt(ie(n.$t("truncateProxyName"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":r[8]||(r[8]=i=>st(mv)?mv.value=i:null)},null,512),[[gr,N(mv)]])]),L("div",KCe,[lt(ie(n.$t("proxyCardSize"))+": ",1),_t(L("select",{class:"select select-bordered select-sm min-w-24","onUpdate:modelValue":r[9]||(r[9]=i=>st(_v)?_v.value=i:null)},[(K(!0),te(Xe,null,rn(Object.values(N(Jg)),i=>(K(),te("option",{key:i,value:i},ie(n.$t(i)),9,ZCe))),128))],512),[[pi,N(_v)]])]),t.value?(K(),te(Xe,{key:0},[L("div",qCe,[lt(ie(n.$t("iconSize"))+": ",1),_t(L("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":r[10]||(r[10]=i=>st(bv)?bv.value=i:null)},null,512),[[ir,N(bv)]])]),L("div",JCe,[lt(ie(n.$t("iconMarginRight"))+": ",1),_t(L("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":r[11]||(r[11]=i=>st(o_)?o_.value=i:null)},null,512),[[ir,N(o_)]])])],64)):gt("",!0),L("div",QCe,[lt(ie(n.$t("showHiddenGroup"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":r[12]||(r[12]=i=>st(i_)?i_.value=i:null)},null,512),[[gr,N(i_)]])]),N(hl)?(K(),te("div",eEe,[lt(ie(n.$t("showGlobalProxy"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":r[13]||(r[13]=i=>st(e_)?e_.value=i:null)},null,512),[[gr,N(e_)]])])):gt("",!0)])])]))}}),nEe={class:"flex items-center gap-2"},rEe=["value"],sz=rt({__name:"LanguageSelect",setup(e){const t={[rs.EN_US]:"English",[rs.ZH_CN]:"简体中文",[rs.RU_RU]:"Русский"};return(n,r)=>(K(),te("div",nEe,[lt(ie(n.$t("language"))+": ",1),_t(L("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":r[0]||(r[0]=i=>st(su)?su.value=i:null),onChange:r[1]||(r[1]=()=>N(WI).global.locale=N(su))},[(K(!0),te(Xe,null,rn(Object.values(N(rs)),i=>(K(),te("option",{key:i,value:i},ie(t[i]||i),9,rEe))),128))],544),[[pi,N(su)]])]))}}),iEe={class:"card card-compact"},oEe={class:"card-title px-4 pt-4 text-primary"},aEe={class:"indicator"},sEe={key:0,class:"indicator-item flex"},lEe={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},uEe={class:"card-body gap-4"},cEe={class:"grid grid-cols-1 gap-2 xl:grid-cols-2"},fEe={class:"flex flex-col gap-2"},dEe={class:"flex items-center gap-2"},hEe=["value"],pEe={class:"flex items-center gap-2"},vEe=["value"],gEe={class:"flex flex-col gap-2"},mEe={class:"flex flex-col gap-2 sm:flex-row sm:items-center"},yEe={class:"shrink-0"},_Ee={class:"join"},bEe={key:0,class:"flex items-center gap-2"},SEe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},wEe=rt({__name:"ZashboardSettings",setup(e){const t=ke(),n=()=>{var c;(c=t.value)==null||c.click()},r=()=>{Ea.value.includes(c1)||Sre()},i=c=>{var h;const f=(h=c.target.files)==null?void 0:h[0];if(!f)return;const d=new FileReader;d.onload=()=>{Ea.value=c1+"-"+Date.now(),_re(d.result)},d.readAsDataURL(f)},{isUIUpdateAvailable:o}=g8(),a=ke(!1),s=async()=>{if(!a.value){a.value=!0;try{await gV(),a.value=!1,window.location.reload()}catch{a.value=!1}}},l=async()=>{Tre()},u=["default","light","dark","cupcake","bumblebee","emerald","corporate","synthwave","retro","cyberpunk","valentine","halloween","garden","forest","aqua","lofi","pastel","fantasy","wireframe","black","luxury","dracula","cmyk","autumn","business","acid","lemonade","night","coffee","winter","dim","nord","sunset"];return(c,f)=>(K(),te("div",iEe,[L("div",oEe,[L("div",aEe,[N(o)?(K(),te("span",sEe,f[10]||(f[10]=[L("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),L("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):gt("",!0),L("a",lEe,"zashboard v"+ie(N(hV)),1)])]),L("div",uEe,[L("div",cEe,[L("div",fEe,[L("div",dEe,[lt(ie(c.$t("theme"))+": ",1),_t(L("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":f[0]||(f[0]=d=>st(kd)?kd.value=d:null)},[(K(),te(Xe,null,rn(u,d=>L("option",{key:d,value:d},ie(d==="default"?c.$t("autoSwitch"):d),9,hEe)),64))],512),[[pi,N(kd)]])]),ye(sz),L("div",pEe,[lt(ie(c.$t("fonts"))+": ",1),_t(L("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":f[1]||(f[1]=d=>st(hv)?hv.value=d:null)},[(K(!0),te(Xe,null,rn(Object.values(N(nu)),d=>(K(),te("option",{key:d,value:d},ie(d),9,vEe))),128))],512),[[pi,N(hv)]])])]),L("div",gEe,[L("div",mEe,[L("span",yEe,ie(c.$t("customBackgroundURL"))+": ",1),L("div",_Ee,[ye(om,{class:"join-item",modelValue:N(Ea),"onUpdate:modelValue":[f[2]||(f[2]=d=>st(Ea)?Ea.value=d:null),r]},null,8,["modelValue"]),L("button",{class:"btn join-item btn-sm",onClick:n},[ye(N(qg),{class:"h-4 w-4"})])]),L("input",{ref_key:"inputFileRef",ref:t,type:"file",accept:"image/*",class:"hidden",onChange:i},null,544)]),N(Ea)?(K(),te("div",{key:0,class:"flex items-center gap-2",onTouchstart:f[4]||(f[4]=To(()=>{},["stop"])),onTouchmove:f[5]||(f[5]=To(()=>{},["stop"])),onTouchend:f[6]||(f[6]=To(()=>{},["stop"]))},[lt(ie(c.$t("transparent"))+": ",1),_t(L("input",{type:"range",min:"0",max:"100","onUpdate:modelValue":f[3]||(f[3]=d=>st(K0)?K0.value=d:null),class:"range max-w-64"},null,512),[[ir,N(K0)]])],32)):gt("",!0)])]),N(hl)?gt("",!0):(K(),te("div",bEe,[lt(ie(c.$t("autoUpgrade"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":f[7]||(f[7]=d=>st(Z0)?Z0.value=d:null)},null,512),[[gr,N(Z0)]])])),L("div",SEe,[N(hl)?gt("",!0):(K(),te(Xe,{key:0},[L("button",{class:it(N(Cn)("btn btn-primary btn-sm",a.value?"animate-pulse":"")),onClick:s},ie(c.$t("upgradeUI")),3),L("button",{class:"btn btn-sm",onClick:l},ie(c.$t("clearIconCache")),1)],64)),L("button",{class:"btn btn-sm",onClick:f[8]||(f[8]=(...d)=>N(bL)&&N(bL)(...d))},ie(c.$t("exportSettings")),1),L("button",{class:"btn btn-sm",onClick:f[9]||(f[9]=(...d)=>N(h1)&&N(h1)(...d))},ie(c.$t("importSettings")),1)])])]))}}),xEe={class:"grid grid-cols-1 gap-2 p-2"},TEe={key:0,class:"card card-compact"},CEe={class:"card-title px-4 pt-4"},EEe={class:"card card-compact"},AEe={class:"card-title px-4 pt-4"},IEe={class:"card-body grid grid-cols-1 gap-2 lg:grid-cols-2"},REe={class:"flex items-center gap-2"},PEe={key:0,class:"flex items-center gap-2"},OEe={class:"flex items-center gap-2"},MEe={class:"flex items-center gap-2"},DEe={class:"card card-compact"},LEe={class:"card-title px-4 pt-4"},NEe={class:"card-body"},kEe={class:"flex items-center gap-2"},FEe=rt({__name:"SettingsPage",setup(e){return(t,n)=>(K(),te("div",xEe,[ye(wEe),N(_d)?gt("",!0):(K(),te("div",TEe,[L("div",CEe,ie(t.$t("overview")),1),L("div",{class:it(`card-body grid grid-cols-1 gap-2 lg:grid-cols-2 ${N(ip)&&"xl:grid-cols-3"}`)},[ye(XV,{class:"bg-base-200/40 p-4"}),N(ip)?(K(),te(Xe,{key:0},[ye(k8),ye(m8)],64)):gt("",!0),ye(dP),ye(fP),ye(cP)],2)])),ye(wwe),ye(tEe),ye(RCe),L("div",EEe,[L("div",AEe,ie(t.$t("overview")),1),L("div",IEe,[L("div",REe,[lt(ie(t.$t("splitOverviewPage"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=r=>st(_d)?_d.value=r:null)},null,512),[[gr,N(_d)]])]),N(_d)?gt("",!0):(K(),te("div",PEe,[lt(ie(t.$t("showIPAndConnectionInfo"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=r=>st(ip)?ip.value=r:null)},null,512),[[gr,N(ip)]])])),L("div",OEe,[lt(ie(t.$t("autoIPCheckWhenStart"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=r=>st(J0)?J0.value=r:null)},null,512),[[gr,N(J0)]])]),L("div",MEe,[lt(ie(t.$t("autoConnectionCheckWhenStart"))+": ",1),_t(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=r=>st(Q0)?Q0.value=r:null)},null,512),[[gr,N(Q0)]])])])]),L("div",DEe,[L("div",LEe,ie(t.$t("logs")),1),L("div",NEe,[L("div",kEe,[lt(ie(t.$t("logRetentionLimit"))+": ",1),_t(L("input",{class:"input input-sm input-bordered w-20",type:"number",max:"9999","onUpdate:modelValue":n[4]||(n[4]=r=>st(s_)?s_.value=r:null)},null,512),[[ir,N(s_)]])])])])]))}}),$Ee={class:"absolute right-4 top-4"},BEe={class:"absolute bottom-4 right-4"},VEe={class:"card w-64 gap-2 px-6 py-2 sm:gap-4"},UEe={class:"text-2xl font-semibold"},HEe={class:"form-control"},GEe={class:"label"},zEe={class:"label-text"},WEe={class:"form-control"},jEe={class:"label"},YEe={class:"label-text"},XEe={class:"form-control"},KEe={class:"label"},ZEe={class:"label-text"},qEe={class:"form-control"},JEe={class:"label flex items-center justify-start gap-1"},QEe={class:"label-text"},eAe=["data-tip"],tAe={class:"form-control"},nAe={class:"label"},rAe={class:"label-text"},iAe={class:"flex flex-col gap-2"},oAe=["onClick"],aAe=["onClick"],sAe=rt({__name:"SetupPage",setup(e){var a,s;const t=Na({protocol:"http",host:"127.0.0.1",port:9090,secondaryPath:"",password:""}),{showTip:n}=Fb(),r=l=>{di.value=l,$a.push({name:un.proxies})},i=async(l,u=!1)=>{const{protocol:c,host:f,port:d,password:h}=l;if(!c||!f||!d){alert("Please fill in all the fields.");return}window.location.protocol==="https:"&&c==="http"&&!["::1","0.0.0.0","127.0.0.1","localhost"].includes(f)&&!u&&n("protocolTips");try{const v=await fetch(`${Au(l)}/version`,{method:"GET",headers:{Authorization:`Bearer ${h}`}});if(v.status!==200){u||alert(v.statusText);return}const{version:m,message:y}=await v.json();if(!m){u||alert(y);return}Ure(l),$a.push({name:un.proxies})}catch(v){u||alert(v)}},o=new URLSearchParams(window.location.search||((s=(a=location.hash.match(/\?.*$/))==null?void 0:a[0])==null?void 0:s.replace("?","")));return o.has("hostname")?i({protocol:o.get("http")?"http":o.get("https")?"https":window.location.protocol.replace(":",""),secondaryPath:o.get("secondaryPath")||"",host:o.get("hostname"),port:Number(o.get("port")),password:o.get("secret")}):ds.value.length===0&&i(t,!0),(l,u)=>(K(),te("div",{class:"flex h-full w-full items-center justify-center bg-base-200/40",onKeydown:u[7]||(u[7]=F4(c=>i(t),["enter"]))},[L("div",$Ee,[L("button",{class:"btn btn-sm",onClick:u[0]||(u[0]=(...c)=>N(h1)&&N(h1)(...c))},ie(l.$t("importSettings")),1)]),L("div",BEe,[ye(sz)]),L("div",VEe,[L("h1",UEe,ie(l.$t("setup")),1),L("div",HEe,[L("label",GEe,[L("span",zEe,ie(l.$t("protocol")),1)]),_t(L("select",{class:"select select-bordered select-sm w-full","onUpdate:modelValue":u[1]||(u[1]=c=>t.protocol=c)},u[8]||(u[8]=[L("option",{value:"http"},"HTTP",-1),L("option",{value:"https"},"HTTPS",-1)]),512),[[pi,t.protocol]])]),L("div",WEe,[L("label",jEe,[L("span",YEe,ie(l.$t("host")),1)]),_t(L("input",{type:"text",class:"input input-sm input-bordered w-full",name:"username",autocomplete:"username","onUpdate:modelValue":u[2]||(u[2]=c=>t.host=c)},null,512),[[ir,t.host]])]),L("div",XEe,[L("label",KEe,[L("span",ZEe,ie(l.$t("port")),1)]),_t(L("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":u[3]||(u[3]=c=>t.port=c)},null,512),[[ir,t.port]])]),L("div",qEe,[L("label",JEe,[L("span",QEe,ie(l.$t("secondaryPath")),1),L("span",{class:"tooltip","data-tip":l.$t("secondaryPathTip")},[ye(N(q4),{class:"h-4 w-4"})],8,eAe)]),_t(L("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":u[4]||(u[4]=c=>t.secondaryPath=c)},null,512),[[ir,t.secondaryPath]])]),L("div",tAe,[L("label",nAe,[L("span",rAe,ie(l.$t("password")),1)]),_t(L("input",{type:"password",class:"input input-sm input-bordered w-full","onUpdate:modelValue":u[5]||(u[5]=c=>t.password=c)},null,512),[[ir,t.password]])]),L("button",{class:"btn btn-primary btn-sm w-full",onClick:u[6]||(u[6]=c=>i(t))},ie(l.$t("submit")),1),L("div",iAe,[(K(!0),te(Xe,null,rn(N(ds),c=>(K(),te("div",{key:c.uuid,class:"flex items-center gap-2"},[L("button",{class:"btn btn-sm flex-1",onClick:f=>r(c.uuid)},ie(N(Au)(c)),9,oAe),L("button",{class:"btn btn-circle btn-sm",onClick:()=>N(kB)(c.uuid)},[ye(N(II),{class:"h-4 w-4"})],8,aAe)]))),128))])])],32))}}),$a=Lee({history:cee("./"),routes:[{path:"/",redirect:un.proxies,component:w_e,children:[{path:"proxies",name:un.proxies,component:zSe},{path:"overview",name:un.overview,component:Gbe},{path:"connections",name:un.connections,component:rle},{path:"logs",name:un.logs,component:A_e},{path:"rules",name:un.rules,component:iwe},{path:"settings",name:un.settings,component:FEe}]},{path:"/setup",name:un.setup,component:sAe},{path:"/:catchAll(.*)",redirect:un.proxies}]}),k5=vre("zashboard"),lz=e=>{typeof e=="string"&&fl.value?k5.value=`zashboard | ${WI.global.t(e)}`:k5.value="zashboard"};$a.beforeEach(e=>{!fl.value&&e.name!==un.setup&&$a.push({name:un.setup})});$a.afterEach(e=>{lz(e.name)});Wt(su,()=>{lz($a.currentRoute.value.name)});{const e=t=>{const n=document.createElement("link");n.rel="stylesheet",n.href=t,n.media="print",n.onload=()=>{n.media="all"},document.head.appendChild(n)};e("https://unpkg.com/subsetted-fonts@latest/MiSans-VF/MiSans-VF.css"),e("https://unpkg.com/subsetted-fonts@latest/SarasaUiSC-Regular/SarasaUiSC-Regular.css"),e("https://unpkg.com/subsetted-fonts@latest/PingFangSC-Regular/PingFangSC-Regular.css"),e("https://unpkg.com/@fontsource/fira-sans")}const t2=s1(Pre);La.extend(wK);t2.use($a);t2.use(WI);t2.mount("#app");
|