adonisjs-server-stats 1.12.0 → 1.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +19 -1
  2. package/dist/core/api-client.d.ts +1 -1
  3. package/dist/core/index.js +1 -1
  4. package/dist/react/{CacheSection-DZFOiOYH.js → CacheSection-CX2duJuc.js} +1 -1
  5. package/dist/react/{CacheTab-D8js5o69.js → CacheTab-CgT4t0oZ.js} +1 -1
  6. package/dist/react/{ConfigSection-DoJmvNkF.js → ConfigSection-Dt0FyeaW.js} +1 -1
  7. package/dist/react/{ConfigTab-CDvljuBF.js → ConfigTab-KtiTtsrj.js} +1 -1
  8. package/dist/react/{CustomPaneTab-Db9eIQ-9.js → CustomPaneTab-15QoEplP.js} +1 -1
  9. package/dist/react/{EmailsTab-BITuGTQm.js → EmailsTab-CUjubln_.js} +2 -2
  10. package/dist/react/{EventsSection-7mDZv70I.js → EventsSection-GGPoYSNv.js} +1 -1
  11. package/dist/react/{EventsTab-DF13BChE.js → EventsTab-Wdwr0_ny.js} +1 -1
  12. package/dist/react/{JobsSection-B_VJFWy6.js → JobsSection-BqqIh_DR.js} +1 -1
  13. package/dist/react/{JobsTab-DK8Fl9nz.js → JobsTab-CBrU-ryL.js} +1 -1
  14. package/dist/react/{LogEntryRow-Bdie9SFe.js → LogEntryRow-BOrRkhRU.js} +1 -1
  15. package/dist/react/{LogsSection-CrWqxWRr.js → LogsSection-Cm_lphM6.js} +2 -2
  16. package/dist/react/{LogsTab-DYSpL637.js → LogsTab-jKwv9G7Q.js} +2 -2
  17. package/dist/react/{OverviewSection-CuaccMZt.js → OverviewSection-XF7bakyM.js} +1 -1
  18. package/dist/react/QueriesSection-DsQBKrNK.js +123 -0
  19. package/dist/react/QueriesTab-CxCC1GVq.js +87 -0
  20. package/dist/react/{RequestsSection-mENyeNsk.js → RequestsSection-D8cMbZU0.js} +2 -2
  21. package/dist/react/{RoutesSection-DjovlaNS.js → RoutesSection-D0y5JQP4.js} +1 -1
  22. package/dist/react/{RoutesTab-CbQECiUc.js → RoutesTab-Y_alJVMV.js} +1 -1
  23. package/dist/react/{SplitPaneWrapper-DyRyH5Re.js → SplitPaneWrapper-CZl1ouIT.js} +1 -1
  24. package/dist/react/{TimelineTab-BKTFbsPe.js → TimelineTab-HyqZpfbp.js} +2 -2
  25. package/dist/react/{index-CAUHa8QX.js → index-CsprmgzI.js} +2 -2
  26. package/dist/react/index.js +1 -1
  27. package/dist/src/edge/client/dashboard.js +2 -2
  28. package/dist/src/edge/client/debug-panel-deferred.js +1 -1
  29. package/dist/src/edge/client/stats-bar.js +1 -1
  30. package/dist/src/edge/client-vue/dashboard.js +3 -3
  31. package/dist/src/edge/client-vue/debug-panel-deferred.js +1 -1
  32. package/dist/src/edge/client-vue/stats-bar.js +1 -1
  33. package/dist/src/provider/auth_middleware_detector.d.ts +12 -6
  34. package/dist/src/provider/auth_middleware_detector.js +53 -6
  35. package/dist/src/provider/boot_helpers.d.ts +1 -0
  36. package/dist/src/provider/boot_helpers.js +7 -1
  37. package/dist/src/provider/server_stats_provider.js +2 -1
  38. package/dist/src/routes/no_session_middleware.d.ts +14 -0
  39. package/dist/src/routes/no_session_middleware.js +16 -0
  40. package/dist/src/routes/register_routes.js +5 -1
  41. package/dist/vue/{CacheSection-Bx41lpfK.js → CacheSection-DRqV3YX2.js} +1 -1
  42. package/dist/vue/{ConfigSection-fkfUdCmx.js → ConfigSection-C6pQCHAL.js} +1 -1
  43. package/dist/vue/{EmailsSection-CbcDKF9Q.js → EmailsSection-BTNw3ZU2.js} +1 -1
  44. package/dist/vue/{EmailsTab-CNyEODVB.js → EmailsTab-CwIF1fik.js} +1 -1
  45. package/dist/vue/{EventsSection-CWbTYOBi.js → EventsSection-BpgkWIwM.js} +1 -1
  46. package/dist/vue/{JobsSection-CGGO6rtS.js → JobsSection-DrghFEKL.js} +1 -1
  47. package/dist/vue/{LogsSection-BPB-C-XA.js → LogsSection-BDxx9Bfi.js} +1 -1
  48. package/dist/vue/{OverviewSection-BTcnPeoM.js → OverviewSection-BAgZTPjY.js} +1 -1
  49. package/dist/vue/{QueriesSection-2SE3igQJ.js → QueriesSection-CUpwhp7u.js} +127 -115
  50. package/dist/vue/{RequestsSection-DXcG5Zok.js → RequestsSection-D8P2xpF2.js} +1 -1
  51. package/dist/vue/{RoutesSection-BkNGWdoP.js → RoutesSection-0qB81hTT.js} +1 -1
  52. package/dist/vue/{index-CptF6Qbp.js → index-30jLw-_w.js} +2 -2
  53. package/dist/vue/index.js +1 -1
  54. package/package.json +1 -1
  55. package/dist/react/QueriesSection-CvGGh5Ij.js +0 -117
  56. package/dist/react/QueriesTab-C7CCwhVc.js +0 -87
  57. package/dist/react/{EmailsSection-D7oxvAjA.js → EmailsSection-YcJYR5eA.js} +1 -1
@@ -1,4 +1,4 @@
1
1
  (function(){"use strict";function Ms(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const z={},ht=[],$e=()=>{},Tn=()=>!1,Gt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),As=e=>e.startsWith("onUpdate:"),ie=Object.assign,Ps=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Mi=Object.prototype.hasOwnProperty,N=(e,t)=>Mi.call(e,t),O=Array.isArray,pt=e=>Tt(e)==="[object Map]",Sn=e=>Tt(e)==="[object Set]",En=e=>Tt(e)==="[object Date]",F=e=>typeof e=="function",Z=e=>typeof e=="string",Fe=e=>typeof e=="symbol",j=e=>e!==null&&typeof e=="object",Cn=e=>(j(e)||F(e))&&F(e.then)&&F(e.catch),Mn=Object.prototype.toString,Tt=e=>Mn.call(e),Ai=e=>Tt(e).slice(8,-1),An=e=>Tt(e)==="[object Object]",Rs=e=>Z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,St=Ms(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yt=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Pi=/-\w/g,Xe=Yt(e=>e.replace(Pi,t=>t.slice(1).toUpperCase())),Ri=/\B([A-Z])/g,rt=Yt(e=>e.replace(Ri,"-$1").toLowerCase()),Pn=Yt(e=>e.charAt(0).toUpperCase()+e.slice(1)),Os=Yt(e=>e?`on${Pn(e)}`:""),Qe=(e,t)=>!Object.is(e,t),$s=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Rn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Oi=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let On;const Jt=()=>On||(On=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Et(e){if(O(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=Z(n)?Di(n):Et(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(Z(e)||j(e))return e}const $i=/;(?![^(]*\))/g,Fi=/:([^]+)/,Ii=/\/\*[^]*?\*\//g;function Di(e){const t={};return e.replace(Ii,"").split($i).forEach(s=>{if(s){const n=s.split(Fi);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ee(e){let t="";if(Z(e))t=e;else if(O(e))for(let s=0;s<e.length;s++){const n=Ee(e[s]);n&&(t+=n+" ")}else if(j(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Ui=Ms("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function $n(e){return!!e||e===""}function Hi(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Fs(e[n],t[n]);return s}function Fs(e,t){if(e===t)return!0;let s=En(e),n=En(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Fe(e),n=Fe(t),s||n)return e===t;if(s=O(e),n=O(t),s||n)return s&&n?Hi(e,t):!1;if(s=j(e),n=j(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!Fs(e[o],t[o]))return!1}}return String(e)===String(t)}const Fn=e=>!!(e&&e.__v_isRef===!0),ue=e=>Z(e)?e:e==null?"":O(e)||j(e)&&(e.toString===Mn||!F(e.toString))?Fn(e)?ue(e.value):JSON.stringify(e,In,2):String(e),In=(e,t)=>Fn(t)?In(e,t.value):pt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[Is(n,i)+" =>"]=r,s),{})}:Sn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Is(s))}:Fe(t)?Is(t):j(t)&&!O(t)&&!An(t)?String(t):t,Is=(e,t="")=>{var s;return Fe(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let be;class ki{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=be,!t&&be&&(this.index=(be.scopes||(be.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=be;try{return be=this,t()}finally{be=s}}}on(){++this._on===1&&(this.prevScope=be,be=this)}off(){this._on>0&&--this._on===0&&(be=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Li(){return be}let G;const Ds=new WeakSet;class Dn{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,be&&be.active&&be.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ds.has(this)&&(Ds.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Hn(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Kn(this),kn(this);const t=G,s=Pe;G=this,Pe=!0;try{return this.fn()}finally{Ln(this),G=t,Pe=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ls(t);this.deps=this.depsTail=void 0,Kn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ds.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ks(this)&&this.run()}get dirty(){return ks(this)}}let Un=0,Ct,Mt;function Hn(e,t=!1){if(e.flags|=8,t){e.next=Mt,Mt=e;return}e.next=Ct,Ct=e}function Us(){Un++}function Hs(){if(--Un>0)return;if(Mt){let t=Mt;for(Mt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ct;){let t=Ct;for(Ct=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function kn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ln(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Ls(n),Bi(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function ks(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Bn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Bn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===At)||(e.globalVersion=At,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ks(e))))return;e.flags|=2;const t=e.dep,s=G,n=Pe;G=e,Pe=!0;try{kn(e);const r=e.fn(e._value);(t.version===0||Qe(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{G=s,Pe=n,Ln(e),e.flags&=-3}}function Ls(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Ls(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Bi(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Pe=!0;const Nn=[];function Ie(){Nn.push(Pe),Pe=!1}function De(){const e=Nn.pop();Pe=e===void 0?!0:e}function Kn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=G;G=void 0;try{t()}finally{G=s}}}let At=0;class Ni{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Bs{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,this.__v_skip=!0}track(t){if(!G||!Pe||G===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==G)s=this.activeLink=new Ni(G,this),G.deps?(s.prevDep=G.depsTail,G.depsTail.nextDep=s,G.depsTail=s):G.deps=G.depsTail=s,jn(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=G.depsTail,s.nextDep=void 0,G.depsTail.nextDep=s,G.depsTail=s,G.deps===s&&(G.deps=n)}return s}trigger(t){this.version++,At++,this.notify(t)}notify(t){Us();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Hs()}}}function jn(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)jn(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Ns=new WeakMap,it=Symbol(""),Ks=Symbol(""),Pt=Symbol("");function fe(e,t,s){if(Pe&&G){let n=Ns.get(e);n||Ns.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new Bs),r.map=n,r.key=s),r.track()}}function We(e,t,s,n,r,i){const o=Ns.get(e);if(!o){At++;return}const l=c=>{c&&c.trigger()};if(Us(),t==="clear")o.forEach(l);else{const c=O(e),d=c&&Rs(s);if(c&&s==="length"){const f=Number(n);o.forEach((h,v)=>{(v==="length"||v===Pt||!Fe(v)&&v>=f)&&l(h)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get(Pt)),t){case"add":c?d&&l(o.get("length")):(l(o.get(it)),pt(e)&&l(o.get(Ks)));break;case"delete":c||(l(o.get(it)),pt(e)&&l(o.get(Ks)));break;case"set":pt(e)&&l(o.get(it));break}}Hs()}function gt(e){const t=k(e);return t===e?t:(fe(t,"iterate",Pt),Ce(e)?t:t.map(Re))}function Xt(e){return fe(e=k(e),"iterate",Pt),e}function Ze(e,t){return ze(e)?mt(ot(e)?Re(t):t):Re(t)}const Ki={__proto__:null,[Symbol.iterator](){return js(this,Symbol.iterator,e=>Ze(this,e))},concat(...e){return gt(this).concat(...e.map(t=>O(t)?gt(t):t))},entries(){return js(this,"entries",e=>(e[1]=Ze(this,e[1]),e))},every(e,t){return qe(this,"every",e,t,void 0,arguments)},filter(e,t){return qe(this,"filter",e,t,s=>s.map(n=>Ze(this,n)),arguments)},find(e,t){return qe(this,"find",e,t,s=>Ze(this,s),arguments)},findIndex(e,t){return qe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return qe(this,"findLast",e,t,s=>Ze(this,s),arguments)},findLastIndex(e,t){return qe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return qe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Vs(this,"includes",e)},indexOf(...e){return Vs(this,"indexOf",e)},join(e){return gt(this).join(e)},lastIndexOf(...e){return Vs(this,"lastIndexOf",e)},map(e,t){return qe(this,"map",e,t,void 0,arguments)},pop(){return Rt(this,"pop")},push(...e){return Rt(this,"push",e)},reduce(e,...t){return Vn(this,"reduce",e,t)},reduceRight(e,...t){return Vn(this,"reduceRight",e,t)},shift(){return Rt(this,"shift")},some(e,t){return qe(this,"some",e,t,void 0,arguments)},splice(...e){return Rt(this,"splice",e)},toReversed(){return gt(this).toReversed()},toSorted(e){return gt(this).toSorted(e)},toSpliced(...e){return gt(this).toSpliced(...e)},unshift(...e){return Rt(this,"unshift",e)},values(){return js(this,"values",e=>Ze(this,e))}};function js(e,t,s){const n=Xt(e),r=n[t]();return n!==e&&!Ce(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=s(i.value)),i}),r}const ji=Array.prototype;function qe(e,t,s,n,r,i){const o=Xt(e),l=o!==e&&!Ce(e),c=o[t];if(c!==ji[t]){const h=c.apply(e,i);return l?Re(h):h}let d=s;o!==e&&(l?d=function(h,v){return s.call(this,Ze(e,h),v,e)}:s.length>2&&(d=function(h,v){return s.call(this,h,v,e)}));const f=c.call(o,d,n);return l&&r?r(f):f}function Vn(e,t,s,n){const r=Xt(e);let i=s;return r!==e&&(Ce(e)?s.length>3&&(i=function(o,l,c){return s.call(this,o,l,c,e)}):i=function(o,l,c){return s.call(this,o,Ze(e,l),c,e)}),r[t](i,...n)}function Vs(e,t,s){const n=k(e);fe(n,"iterate",Pt);const r=n[t](...s);return(r===-1||r===!1)&&zs(s[0])?(s[0]=k(s[0]),n[t](...s)):r}function Rt(e,t,s=[]){Ie(),Us();const n=k(e)[t].apply(e,s);return Hs(),De(),n}const Vi=Ms("__proto__,__v_isRef,__isVue"),Wn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fe));function Wi(e){Fe(e)||(e=String(e));const t=k(this);return fe(t,"has",e),t.hasOwnProperty(e)}class qn{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?Qn:Xn:i?Jn:Yn).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=O(t);if(!r){let c;if(o&&(c=Ki[s]))return c;if(s==="hasOwnProperty")return Wi}const l=Reflect.get(t,s,oe(t)?t:n);if((Fe(s)?Wn.has(s):Vi(s))||(r||fe(t,"get",s),i))return l;if(oe(l)){const c=o&&Rs(s)?l:l.value;return r&&j(c)?qs(c):c}return j(l)?r?qs(l):ts(l):l}}class zn extends qn{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];const o=O(t)&&Rs(s);if(!this._isShallow){const d=ze(i);if(!Ce(n)&&!ze(n)&&(i=k(i),n=k(n)),!o&&oe(i)&&!oe(n))return d||(i.value=n),!0}const l=o?Number(s)<t.length:N(t,s),c=Reflect.set(t,s,n,oe(t)?t:r);return t===k(r)&&(l?Qe(n,i)&&We(t,"set",s,n):We(t,"add",s,n)),c}deleteProperty(t,s){const n=N(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&We(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!Fe(s)||!Wn.has(s))&&fe(t,"has",s),n}ownKeys(t){return fe(t,"iterate",O(t)?"length":it),Reflect.ownKeys(t)}}class Gn extends qn{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const qi=new zn,zi=new Gn,Gi=new zn(!0),Yi=new Gn(!0),Ws=e=>e,Qt=e=>Reflect.getPrototypeOf(e);function Ji(e,t,s){return function(...n){const r=this.__v_raw,i=k(r),o=pt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,d=r[e](...n),f=s?Ws:t?mt:Re;return!t&&fe(i,"iterate",c?Ks:it),ie(Object.create(d),{next(){const{value:h,done:v}=d.next();return v?{value:h,done:v}:{value:l?[f(h[0]),f(h[1])]:f(h),done:v}}})}}function Zt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Xi(e,t){const s={get(r){const i=this.__v_raw,o=k(i),l=k(r);e||(Qe(r,l)&&fe(o,"get",r),fe(o,"get",l));const{has:c}=Qt(o),d=t?Ws:e?mt:Re;if(c.call(o,r))return d(i.get(r));if(c.call(o,l))return d(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&fe(k(r),"iterate",it),r.size},has(r){const i=this.__v_raw,o=k(i),l=k(r);return e||(Qe(r,l)&&fe(o,"has",r),fe(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=k(l),d=t?Ws:e?mt:Re;return!e&&fe(c,"iterate",it),l.forEach((f,h)=>r.call(i,d(f),d(h),o))}};return ie(s,e?{add:Zt("add"),set:Zt("set"),delete:Zt("delete"),clear:Zt("clear")}:{add(r){!t&&!Ce(r)&&!ze(r)&&(r=k(r));const i=k(this);return Qt(i).has.call(i,r)||(i.add(r),We(i,"add",r,r)),this},set(r,i){!t&&!Ce(i)&&!ze(i)&&(i=k(i));const o=k(this),{has:l,get:c}=Qt(o);let d=l.call(o,r);d||(r=k(r),d=l.call(o,r));const f=c.call(o,r);return o.set(r,i),d?Qe(i,f)&&We(o,"set",r,i):We(o,"add",r,i),this},delete(r){const i=k(this),{has:o,get:l}=Qt(i);let c=o.call(i,r);c||(r=k(r),c=o.call(i,r)),l&&l.call(i,r);const d=i.delete(r);return c&&We(i,"delete",r,void 0),d},clear(){const r=k(this),i=r.size!==0,o=r.clear();return i&&We(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Ji(r,e,t)}),s}function es(e,t){const s=Xi(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(N(s,r)&&r in n?s:n,r,i)}const Qi={get:es(!1,!1)},Zi={get:es(!1,!0)},eo={get:es(!0,!1)},to={get:es(!0,!0)},Yn=new WeakMap,Jn=new WeakMap,Xn=new WeakMap,Qn=new WeakMap;function so(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function no(e){return e.__v_skip||!Object.isExtensible(e)?0:so(Ai(e))}function ts(e){return ze(e)?e:ss(e,!1,qi,Qi,Yn)}function ro(e){return ss(e,!1,Gi,Zi,Jn)}function qs(e){return ss(e,!0,zi,eo,Xn)}function Oa(e){return ss(e,!0,Yi,to,Qn)}function ss(e,t,s,n,r){if(!j(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=no(e);if(i===0)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,i===2?n:s);return r.set(e,l),l}function ot(e){return ze(e)?ot(e.__v_raw):!!(e&&e.__v_isReactive)}function ze(e){return!!(e&&e.__v_isReadonly)}function Ce(e){return!!(e&&e.__v_isShallow)}function zs(e){return e?!!e.__v_raw:!1}function k(e){const t=e&&e.__v_raw;return t?k(t):e}function io(e){return!N(e,"__v_skip")&&Object.isExtensible(e)&&Rn(e,"__v_skip",!0),e}const Re=e=>j(e)?ts(e):e,mt=e=>j(e)?qs(e):e;function oe(e){return e?e.__v_isRef===!0:!1}function te(e){return oo(e,!1)}function oo(e,t){return oe(e)?e:new lo(e,t)}class lo{constructor(t,s){this.dep=new Bs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:k(t),this._value=s?t:Re(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ce(t)||ze(t);t=n?t:k(t),Qe(t,s)&&(this._rawValue=t,this._value=n?t:Re(t),this.dep.trigger())}}function de(e){return oe(e)?e.value:e}const co={get:(e,t,s)=>t==="__v_raw"?e:de(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return oe(r)&&!oe(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function Zn(e){return ot(e)?e:new Proxy(e,co)}class ao{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Bs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=At-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&G!==this)return Hn(this,!0),!0}get value(){const t=this.dep.track();return Bn(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function uo(e,t,s=!1){let n,r;return F(e)?n=e:(n=e.get,r=e.set),new ao(n,r,s)}const ns={},rs=new WeakMap;let lt;function fo(e,t=!1,s=lt){if(s){let n=rs.get(s);n||rs.set(s,n=[]),n.push(e)}}function ho(e,t,s=z){const{immediate:n,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=s,d=M=>r?M:Ce(M)||r===!1||r===0?et(M,1):et(M);let f,h,v,w,C=!1,S=!1;if(oe(e)?(h=()=>e.value,C=Ce(e)):ot(e)?(h=()=>d(e),C=!0):O(e)?(S=!0,C=e.some(M=>ot(M)||Ce(M)),h=()=>e.map(M=>{if(oe(M))return M.value;if(ot(M))return d(M);if(F(M))return c?c(M,2):M()})):F(e)?t?h=c?()=>c(e,2):e:h=()=>{if(v){Ie();try{v()}finally{De()}}const M=lt;lt=f;try{return c?c(e,3,[w]):e(w)}finally{lt=M}}:h=$e,t&&r){const M=h,I=r===!0?1/0:r;h=()=>et(M(),I)}const D=Li(),U=()=>{f.stop(),D&&D.active&&Ps(D.effects,f)};if(i&&t){const M=t;t=(...I)=>{M(...I),U()}}let R=S?new Array(e.length).fill(ns):ns;const L=M=>{if(!(!(f.flags&1)||!f.dirty&&!M))if(t){const I=f.run();if(r||C||(S?I.some((q,K)=>Qe(q,R[K])):Qe(I,R))){v&&v();const q=lt;lt=f;try{const K=[I,R===ns?void 0:S&&R[0]===ns?[]:R,w];R=I,c?c(t,3,K):t(...K)}finally{lt=q}}}else f.run()};return l&&l(L),f=new Dn(h),f.scheduler=o?()=>o(L,!1):L,w=M=>fo(M,!1,f),v=f.onStop=()=>{const M=rs.get(f);if(M){if(c)c(M,4);else for(const I of M)I();rs.delete(f)}},t?n?L(!0):R=f.run():o?o(L.bind(null,!0),!0):f.run(),U.pause=f.pause.bind(f),U.resume=f.resume.bind(f),U.stop=U,U}function et(e,t=1/0,s){if(t<=0||!j(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,oe(e))et(e.value,t,s);else if(O(e))for(let n=0;n<e.length;n++)et(e[n],t,s);else if(Sn(e)||pt(e))e.forEach(n=>{et(n,t,s)});else if(An(e)){for(const n in e)et(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&et(e[n],t,s)}return e}const Ot=[];let Gs=!1;function $a(e,...t){if(Gs)return;Gs=!0,Ie();const s=Ot.length?Ot[Ot.length-1].component:null,n=s&&s.appContext.config.warnHandler,r=po();if(n)yt(n,s,11,[e+t.map(i=>{var o,l;return(l=(o=i.toString)==null?void 0:o.call(i))!=null?l:JSON.stringify(i)}).join(""),s&&s.proxy,r.map(({vnode:i})=>`at <${Xr(s,i.type)}>`).join(`
2
2
  `),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
3
3
  `,...go(r)),console.warn(...i)}De(),Gs=!1}function po(){let e=Ot[Ot.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function go(e){const t=[];return e.forEach((s,n)=>{t.push(...n===0?[]:[`
4
- `],...mo(s))}),t}function mo({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,r=` at <${Xr(e.component,e.type,n)}`,i=">"+s;return e.props?[r,...yo(e.props),i]:[r+i]}function yo(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...er(n,e[n]))}),s.length>3&&t.push(" ..."),t}function er(e,t,s){return Z(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:oe(t)?(t=er(e,k(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):F(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=k(t),s?t:[`${e}=`,t])}function yt(e,t,s,n){try{return n?e(...n):e()}catch(r){is(r,t,s)}}function Ue(e,t,s,n){if(F(e)){const r=yt(e,t,s,n);return r&&Cn(r)&&r.catch(i=>{is(i,t,s)}),r}if(O(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Ue(e[i],t,s,n));return r}}function is(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||z;if(t){let l=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const f=l.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](e,c,d)===!1)return}l=l.parent}if(i){Ie(),yt(i,null,10,[e,c,d]),De();return}}bo(e,s,r,n,o)}function bo(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const pe=[];let He=-1;const bt=[];let tt=null,vt=0;const tr=Promise.resolve();let os=null;function sr(e){const t=os||tr;return e?t.then(this?e.bind(this):e):t}function vo(e){let t=He+1,s=pe.length;for(;t<s;){const n=t+s>>>1,r=pe[n],i=$t(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function Ys(e){if(!(e.flags&1)){const t=$t(e),s=pe[pe.length-1];!s||!(e.flags&2)&&t>=$t(s)?pe.push(e):pe.splice(vo(t),0,e),e.flags|=1,nr()}}function nr(){os||(os=tr.then(or))}function _o(e){O(e)?bt.push(...e):tt&&e.id===-1?tt.splice(vt+1,0,e):e.flags&1||(bt.push(e),e.flags|=1),nr()}function rr(e,t,s=He+1){for(;s<pe.length;s++){const n=pe[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;pe.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function ir(e){if(bt.length){const t=[...new Set(bt)].sort((s,n)=>$t(s)-$t(n));if(bt.length=0,tt){tt.push(...t);return}for(tt=t,vt=0;vt<tt.length;vt++){const s=tt[vt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}tt=null,vt=0}}const $t=e=>e.id==null?e.flags&2?-1:1/0:e.id;function or(e){try{for(He=0;He<pe.length;He++){const t=pe[He];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),yt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;He<pe.length;He++){const t=pe[He];t&&(t.flags&=-2)}He=-1,pe.length=0,ir(),os=null,(pe.length||bt.length)&&or()}}let ke=null,lr=null;function ls(e){const t=ke;return ke=e,lr=e&&e.type.__scopeId||null,t}function xo(e,t=ke,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&ys(-1);const i=ls(t);let o;try{o=e(...r)}finally{ls(i),n._d&&ys(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function ct(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[n];c&&(Ie(),Ue(c,s,8,[e.el,l,e,t]),De())}}function wo(e,t){if(ye){let s=ye.provides;const n=ye.parent&&ye.parent.provides;n===s&&(s=ye.provides=Object.create(n)),s[e]=t}}function cs(e,t,s=!1){const n=xl();if(n||_t){let r=_t?_t._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&F(t)?t.call(n&&n.proxy):t}}const To=Symbol.for("v-scx"),So=()=>cs(To);function st(e,t,s){return cr(e,t,s)}function cr(e,t,s=z){const{immediate:n,deep:r,flush:i,once:o}=s,l=ie({},s),c=t&&n||!t&&i!=="post";let d;if(jt){if(i==="sync"){const w=So();d=w.__watcherHandles||(w.__watcherHandles=[])}else if(!c){const w=()=>{};return w.stop=$e,w.resume=$e,w.pause=$e,w}}const f=ye;l.call=(w,C,S)=>Ue(w,f,C,S);let h=!1;i==="post"?l.scheduler=w=>{he(w,f&&f.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(w,C)=>{C?w():Ys(w)}),l.augmentJob=w=>{t&&(w.flags|=4),h&&(w.flags|=2,f&&(w.id=f.uid,w.i=f))};const v=ho(e,t,l);return jt&&(d?d.push(v):c&&v()),v}function Eo(e,t,s){const n=this.proxy,r=Z(e)?e.includes(".")?ar(n,e):()=>n[e]:e.bind(n,n);let i;F(t)?i=t:(i=t.handler,s=t);const o=Kt(this),l=cr(r,i.bind(n),s);return o(),l}function ar(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const ur=Symbol("_vte"),Co=e=>e.__isTeleport,Ft=e=>e&&(e.disabled||e.disabled===""),fr=e=>e&&(e.defer||e.defer===""),dr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,hr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Js=(e,t)=>{const s=e&&e.to;return Z(s)?t?t(s):null:s},pr={name:"Teleport",__isTeleport:!0,process(e,t,s,n,r,i,o,l,c,d){const{mc:f,pc:h,pbc:v,o:{insert:w,querySelector:C,createText:S,createComment:D}}=d,U=Ft(t.props);let{shapeFlag:R,children:L,dynamicChildren:M}=t;if(e==null){const I=t.el=S(""),q=t.anchor=S("");w(I,s,n),w(q,s,n);const K=(ee,ce)=>{R&16&&f(L,ee,ce,r,i,o,l,c)},se=()=>{const ee=t.target=Js(t.props,C),ce=Xs(ee,t,S,w);ee&&(o!=="svg"&&dr(ee)?o="svg":o!=="mathml"&&hr(ee)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(ee),U||(K(ee,ce),us(t,!1)))};U&&(K(s,q),us(t,!0)),fr(t.props)?(t.el.__isMounted=!1,he(()=>{se(),delete t.el.__isMounted},i)):se()}else{if(fr(t.props)&&e.el.__isMounted===!1){he(()=>{pr.process(e,t,s,n,r,i,o,l,c,d)},i);return}t.el=e.el,t.targetStart=e.targetStart;const I=t.anchor=e.anchor,q=t.target=e.target,K=t.targetAnchor=e.targetAnchor,se=Ft(e.props),ee=se?s:q,ce=se?I:K;if(o==="svg"||dr(q)?o="svg":(o==="mathml"||hr(q))&&(o="mathml"),M?(v(e.dynamicChildren,M,ee,r,i,o,l),an(e,t,!0)):c||h(e,t,ee,ce,r,i,o,l,!1),U)se?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):as(t,s,I,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Me=t.target=Js(t.props,C);Me&&as(t,Me,null,d,0)}else se&&as(t,q,K,d,1);us(t,U)}},remove(e,t,s,{um:n,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:d,targetAnchor:f,target:h,props:v}=e;if(h&&(r(d),r(f)),i&&r(c),o&16){const w=i||!Ft(v);for(let C=0;C<l.length;C++){const S=l[C];n(S,t,s,w,!!S.dynamicChildren)}}},move:as,hydrate:Mo};function as(e,t,s,{o:{insert:n},m:r},i=2){i===0&&n(e.targetAnchor,t,s);const{el:o,anchor:l,shapeFlag:c,children:d,props:f}=e,h=i===2;if(h&&n(o,t,s),(!h||Ft(f))&&c&16)for(let v=0;v<d.length;v++)r(d[v],t,s,2);h&&n(l,t,s)}function Mo(e,t,s,n,r,i,{o:{nextSibling:o,parentNode:l,querySelector:c,insert:d,createText:f}},h){function v(D,U){let R=U;for(;R;){if(R&&R.nodeType===8){if(R.data==="teleport start anchor")t.targetStart=R;else if(R.data==="teleport anchor"){t.targetAnchor=R,D._lpa=t.targetAnchor&&o(t.targetAnchor);break}}R=o(R)}}function w(D,U){U.anchor=h(o(D),U,l(D),s,n,r,i)}const C=t.target=Js(t.props,c),S=Ft(t.props);if(C){const D=C._lpa||C.firstChild;t.shapeFlag&16&&(S?(w(e,t),v(C,D),t.targetAnchor||Xs(C,t,f,d,l(e)===C?e:null)):(t.anchor=o(e),v(C,D),t.targetAnchor||Xs(C,t,f,d),h(D&&o(D),t,C,s,n,r,i))),us(t,S)}else S&&t.shapeFlag&16&&(w(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const Ao=pr;function us(e,t){const s=e.ctx;if(s&&s.ut){let n,r;for(t?(n=e.el,r=e.anchor):(n=e.targetStart,r=e.targetAnchor);n&&n!==r;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function Xs(e,t,s,n,r=null){const i=t.targetStart=s(""),o=t.targetAnchor=s("");return i[ur]=o,e&&(n(i,e,r),n(o,e,r)),o}const Po=Symbol("_leaveCb");function Qs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qs(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 fs(e,t){return F(e)?ie({name:e.name},t,{setup:e}):e}function gr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mr(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ds=new WeakMap;function It(e,t,s,n,r=!1){if(O(e)){e.forEach((S,D)=>It(S,t&&(O(t)?t[D]:t),s,n,r));return}if(Dt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&It(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?pn(n.component):n.el,o=r?null:i,{i:l,r:c}=e,d=t&&t.r,f=l.refs===z?l.refs={}:l.refs,h=l.setupState,v=k(h),w=h===z?Tn:S=>mr(f,S)?!1:N(v,S),C=(S,D)=>!(D&&mr(f,D));if(d!=null&&d!==c){if(yr(t),Z(d))f[d]=null,w(d)&&(h[d]=null);else if(oe(d)){const S=t;C(d,S.k)&&(d.value=null),S.k&&(f[S.k]=null)}}if(F(c))yt(c,l,12,[o,f]);else{const S=Z(c),D=oe(c);if(S||D){const U=()=>{if(e.f){const R=S?w(c)?h[c]:f[c]:C()||!e.k?c.value:f[e.k];if(r)O(R)&&Ps(R,i);else if(O(R))R.includes(i)||R.push(i);else if(S)f[c]=[i],w(c)&&(h[c]=f[c]);else{const L=[i];C(c,e.k)&&(c.value=L),e.k&&(f[e.k]=L)}}else S?(f[c]=o,w(c)&&(h[c]=o)):D&&(C(c,e.k)&&(c.value=o),e.k&&(f[e.k]=o))};if(o){const R=()=>{U(),ds.delete(e)};R.id=-1,ds.set(e,R),he(R,s)}else yr(e),U()}}}function yr(e){const t=ds.get(e);t&&(t.flags|=8,ds.delete(e))}Jt().requestIdleCallback,Jt().cancelIdleCallback;const Dt=e=>!!e.type.__asyncLoader,br=e=>e.type.__isKeepAlive;function Ro(e,t){vr(e,"a",t)}function Oo(e,t){vr(e,"da",t)}function vr(e,t,s=ye){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(hs(t,n,s),s){let r=s.parent;for(;r&&r.parent;)br(r.parent.vnode)&&$o(n,t,s,r),r=r.parent}}function $o(e,t,s,n){const r=hs(t,e,n,!0);Ut(()=>{Ps(n[t],r)},s)}function hs(e,t,s=ye,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Ie();const l=Kt(s),c=Ue(t,s,e,o);return l(),De(),c});return n?r.unshift(i):r.push(i),i}}const Ge=e=>(t,s=ye)=>{(!jt||e==="sp")&&hs(e,(...n)=>t(...n),s)},Fo=Ge("bm"),at=Ge("m"),Io=Ge("bu"),Do=Ge("u"),Zs=Ge("bum"),Ut=Ge("um"),Uo=Ge("sp"),Ho=Ge("rtg"),ko=Ge("rtc");function Lo(e,t=ye){hs("ec",e,t)}const Bo=Symbol.for("v-ndc");function _r(e,t,s,n){let r;const i=s,o=O(e);if(o||Z(e)){const l=o&&ot(e);let c=!1,d=!1;l&&(c=!Ce(e),d=ze(e),e=Xt(e)),r=new Array(e.length);for(let f=0,h=e.length;f<h;f++)r[f]=t(c?d?mt(Re(e[f])):Re(e[f]):e[f],f,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(j(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,d=l.length;c<d;c++){const f=l[c];r[c]=t(e[f],f,c,i)}}else r=[];return r}const en=e=>e?Gr(e)?pn(e):en(e.parent):null,Ht=ie(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=>en(e.parent),$root:e=>en(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Sr(e),$forceUpdate:e=>e.f||(e.f=()=>{Ys(e.update)}),$nextTick:e=>e.n||(e.n=sr.bind(e.proxy)),$watch:e=>Eo.bind(e)}),tn=(e,t)=>e!==z&&!e.__isScriptSetup&&N(e,t),No={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(tn(n,t))return o[t]=1,n[t];if(r!==z&&N(r,t))return o[t]=2,r[t];if(N(i,t))return o[t]=3,i[t];if(s!==z&&N(s,t))return o[t]=4,s[t];sn&&(o[t]=0)}}const d=Ht[t];let f,h;if(d)return t==="$attrs"&&fe(e.attrs,"get",""),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(s!==z&&N(s,t))return o[t]=4,s[t];if(h=c.config.globalProperties,N(h,t))return h[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return tn(r,t)?(r[t]=s,!0):n!==z&&N(n,t)?(n[t]=s,!0):N(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:o}},l){let c;return!!(s[l]||e!==z&&l[0]!=="$"&&N(e,l)||tn(t,l)||N(i,l)||N(n,l)||N(Ht,l)||N(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:N(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function xr(e){return O(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let sn=!0;function Ko(e){const t=Sr(e),s=e.proxy,n=e.ctx;sn=!1,t.beforeCreate&&wr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:d,created:f,beforeMount:h,mounted:v,beforeUpdate:w,updated:C,activated:S,deactivated:D,beforeDestroy:U,beforeUnmount:R,destroyed:L,unmounted:M,render:I,renderTracked:q,renderTriggered:K,errorCaptured:se,serverPrefetch:ee,expose:ce,inheritAttrs:Me,components:ne,directives:_e,filters:wt}=t;if(d&&jo(d,n,null),o)for(const Q in o){const B=o[Q];F(B)&&(n[Q]=B.bind(s))}if(r){const Q=r.call(s,s);j(Q)&&(e.data=ts(Q))}if(sn=!0,i)for(const Q in i){const B=i[Q],Ae=F(B)?B.bind(s,s):F(B.get)?B.get.bind(s,s):$e,Es=!F(B)&&F(B.set)?B.set.bind(s):$e,dt=re({get:Ae,set:Es});Object.defineProperty(n,Q,{enumerable:!0,configurable:!0,get:()=>dt.value,set:Ne=>dt.value=Ne})}if(l)for(const Q in l)Tr(l[Q],n,s,Q);if(c){const Q=F(c)?c.call(s):c;Reflect.ownKeys(Q).forEach(B=>{wo(B,Q[B])})}f&&wr(f,e,"c");function ae(Q,B){O(B)?B.forEach(Ae=>Q(Ae.bind(s))):B&&Q(B.bind(s))}if(ae(Fo,h),ae(at,v),ae(Io,w),ae(Do,C),ae(Ro,S),ae(Oo,D),ae(Lo,se),ae(ko,q),ae(Ho,K),ae(Zs,R),ae(Ut,M),ae(Uo,ee),O(ce))if(ce.length){const Q=e.exposed||(e.exposed={});ce.forEach(B=>{Object.defineProperty(Q,B,{get:()=>s[B],set:Ae=>s[B]=Ae,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===$e&&(e.render=I),Me!=null&&(e.inheritAttrs=Me),ne&&(e.components=ne),_e&&(e.directives=_e),ee&&gr(e)}function jo(e,t,s=$e){O(e)&&(e=nn(e));for(const n in e){const r=e[n];let i;j(r)?"default"in r?i=cs(r.from||n,r.default,!0):i=cs(r.from||n):i=cs(r),oe(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function wr(e,t,s){Ue(O(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Tr(e,t,s,n){let r=n.includes(".")?ar(s,n):()=>s[n];if(Z(e)){const i=t[e];F(i)&&st(r,i)}else if(F(e))st(r,e.bind(s));else if(j(e))if(O(e))e.forEach(i=>Tr(i,t,s,n));else{const i=F(e.handler)?e.handler.bind(s):t[e.handler];F(i)&&st(r,i,e)}}function Sr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!s&&!n?c=t:(c={},r.length&&r.forEach(d=>ps(c,d,o,!0)),ps(c,t,o)),j(t)&&i.set(t,c),c}function ps(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&ps(e,i,s,!0),r&&r.forEach(o=>ps(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=Vo[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Vo={data:Er,props:Cr,emits:Cr,methods:kt,computed:kt,beforeCreate:ge,created:ge,beforeMount:ge,mounted:ge,beforeUpdate:ge,updated:ge,beforeDestroy:ge,beforeUnmount:ge,destroyed:ge,unmounted:ge,activated:ge,deactivated:ge,errorCaptured:ge,serverPrefetch:ge,components:kt,directives:kt,watch:qo,provide:Er,inject:Wo};function Er(e,t){return t?e?function(){return ie(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function Wo(e,t){return kt(nn(e),nn(t))}function nn(e){if(O(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ge(e,t){return e?[...new Set([].concat(e,t))]:t}function kt(e,t){return e?ie(Object.create(null),e,t):t}function Cr(e,t){return e?O(e)&&O(t)?[...new Set([...e,...t])]:ie(Object.create(null),xr(e),xr(t??{})):t}function qo(e,t){if(!e)return t;if(!t)return e;const s=ie(Object.create(null),e);for(const n in t)s[n]=ge(e[n],t[n]);return s}function Mr(){return{app:null,config:{isNativeTag:Tn,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 zo=0;function Go(e,t){return function(n,r=null){F(n)||(n=ie({},n)),r!=null&&!j(r)&&(r=null);const i=Mr(),o=new WeakSet,l=[];let c=!1;const d=i.app={_uid:zo++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Ol,get config(){return i.config},set config(f){},use(f,...h){return o.has(f)||(f&&F(f.install)?(o.add(f),f.install(d,...h)):F(f)&&(o.add(f),f(d,...h))),d},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),d},component(f,h){return h?(i.components[f]=h,d):i.components[f]},directive(f,h){return h?(i.directives[f]=h,d):i.directives[f]},mount(f,h,v){if(!c){const w=d._ceVNode||ve(n,r);return w.appContext=i,v===!0?v="svg":v===!1&&(v=void 0),e(w,f,v),c=!0,d._container=f,f.__vue_app__=d,pn(w.component)}},onUnmount(f){l.push(f)},unmount(){c&&(Ue(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(f,h){return i.provides[f]=h,d},runWithContext(f){const h=_t;_t=d;try{return f()}finally{_t=h}}};return d}}let _t=null;const Yo=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Xe(t)}Modifiers`]||e[`${rt(t)}Modifiers`];function Jo(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||z;let r=s;const i=t.startsWith("update:"),o=i&&Yo(n,t.slice(7));o&&(o.trim&&(r=s.map(f=>Z(f)?f.trim():f)),o.number&&(r=s.map(Oi)));let l,c=n[l=Os(t)]||n[l=Os(Xe(t))];!c&&i&&(c=n[l=Os(rt(t))]),c&&Ue(c,e,6,r);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ue(d,e,6,r)}}const Xo=new WeakMap;function Ar(e,t,s=!1){const n=s?Xo:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!F(e)){const c=d=>{const f=Ar(d,t,!0);f&&(l=!0,ie(o,f))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(j(e)&&n.set(e,null),null):(O(i)?i.forEach(c=>o[c]=null):ie(o,i),j(e)&&n.set(e,o),o)}function gs(e,t){return!e||!Gt(t)?!1:(t=t.slice(2).replace(/Once$/,""),N(e,t[0].toLowerCase()+t.slice(1))||N(e,rt(t))||N(e,t))}function Fa(){}function Pr(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:d,renderCache:f,props:h,data:v,setupState:w,ctx:C,inheritAttrs:S}=e,D=ls(e);let U,R;try{if(s.shapeFlag&4){const M=r||n,I=M;U=Le(d.call(I,M,f,h,w,v,C)),R=l}else{const M=t;U=Le(M.length>1?M(h,{attrs:l,slots:o,emit:c}):M(h,null)),R=t.props?l:Qo(l)}}catch(M){Lt.length=0,is(M,e,1),U=ve(nt)}let L=U;if(R&&S!==!1){const M=Object.keys(R),{shapeFlag:I}=L;M.length&&I&7&&(i&&M.some(As)&&(R=Zo(R,i)),L=xt(L,R,!1,!0))}return s.dirs&&(L=xt(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(s.dirs):s.dirs),s.transition&&Qs(L,s.transition),U=L,ls(D),U}const Qo=e=>{let t;for(const s in e)(s==="class"||s==="style"||Gt(s))&&((t||(t={}))[s]=e[s]);return t},Zo=(e,t)=>{const s={};for(const n in e)(!As(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function el(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Rr(n,o,d):!!o;if(c&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const v=f[h];if(Or(o,n,v)&&!gs(d,v))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?Rr(n,o,d):!0:!!o;return!1}function Rr(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(Or(t,e,i)&&!gs(s,i))return!0}return!1}function Or(e,t,s){const n=e[s],r=t[s];return s==="style"&&j(n)&&j(r)?!Fs(n,r):n!==r}function tl({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const $r={},Fr=()=>Object.create($r),Ir=e=>Object.getPrototypeOf(e)===$r;function sl(e,t,s,n=!1){const r={},i=Fr();e.propsDefaults=Object.create(null),Dr(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:ro(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function nl(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=k(r),[c]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let v=f[h];if(gs(e.emitsOptions,v))continue;const w=t[v];if(c)if(N(i,v))w!==i[v]&&(i[v]=w,d=!0);else{const C=Xe(v);r[C]=rn(c,l,C,w,e,!1)}else w!==i[v]&&(i[v]=w,d=!0)}}}else{Dr(e,t,r,i)&&(d=!0);let f;for(const h in l)(!t||!N(t,h)&&((f=rt(h))===h||!N(t,f)))&&(c?s&&(s[h]!==void 0||s[f]!==void 0)&&(r[h]=rn(c,l,h,void 0,e,!0)):delete r[h]);if(i!==l)for(const h in i)(!t||!N(t,h))&&(delete i[h],d=!0)}d&&We(e.attrs,"set","")}function Dr(e,t,s,n){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(St(c))continue;const d=t[c];let f;r&&N(r,f=Xe(c))?!i||!i.includes(f)?s[f]=d:(l||(l={}))[f]=d:gs(e.emitsOptions,c)||(!(c in n)||d!==n[c])&&(n[c]=d,o=!0)}if(i){const c=k(s),d=l||z;for(let f=0;f<i.length;f++){const h=i[f];s[h]=rn(r,c,h,d[h],e,!N(d,h))}}return o}function rn(e,t,s,n,r,i){const o=e[s];if(o!=null){const l=N(o,"default");if(l&&n===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&F(c)){const{propsDefaults:d}=r;if(s in d)n=d[s];else{const f=Kt(r);n=d[s]=c.call(null,t),f()}}else n=c;r.ce&&r.ce._setProp(s,n)}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===rt(s))&&(n=!0))}return n}const rl=new WeakMap;function Ur(e,t,s=!1){const n=s?rl:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,o={},l=[];let c=!1;if(!F(e)){const f=h=>{c=!0;const[v,w]=Ur(h,t,!0);ie(o,v),w&&l.push(...w)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!c)return j(e)&&n.set(e,ht),ht;if(O(i))for(let f=0;f<i.length;f++){const h=Xe(i[f]);Hr(h)&&(o[h]=z)}else if(i)for(const f in i){const h=Xe(f);if(Hr(h)){const v=i[f],w=o[h]=O(v)||F(v)?{type:v}:ie({},v),C=w.type;let S=!1,D=!0;if(O(C))for(let U=0;U<C.length;++U){const R=C[U],L=F(R)&&R.name;if(L==="Boolean"){S=!0;break}else L==="String"&&(D=!1)}else S=F(C)&&C.name==="Boolean";w[0]=S,w[1]=D,(S||N(w,"default"))&&l.push(h)}}const d=[o,l];return j(e)&&n.set(e,d),d}function Hr(e){return e[0]!=="$"&&!St(e)}const on=e=>e==="_"||e==="_ctx"||e==="$stable",ln=e=>O(e)?e.map(Le):[Le(e)],il=(e,t,s)=>{if(t._n)return t;const n=xo((...r)=>ln(t(...r)),s);return n._c=!1,n},kr=(e,t,s)=>{const n=e._ctx;for(const r in e){if(on(r))continue;const i=e[r];if(F(i))t[r]=il(r,i,n);else if(i!=null){const o=ln(i);t[r]=()=>o}}},Lr=(e,t)=>{const s=ln(t);e.slots.default=()=>s},Br=(e,t,s)=>{for(const n in t)(s||!on(n))&&(e[n]=t[n])},ol=(e,t,s)=>{const n=e.slots=Fr();if(e.vnode.shapeFlag&32){const r=t._;r?(Br(n,t,s),s&&Rn(n,"_",r,!0)):kr(t,n)}else t&&Lr(e,t)},ll=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=z;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:Br(r,t,s):(i=!t.$stable,kr(t,r)),o=t}else t&&(Lr(e,t),o={default:1});if(i)for(const l in r)!on(l)&&o[l]==null&&delete r[l]},he=dl;function cl(e){return al(e)}function al(e,t){const s=Jt();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:d,setElementText:f,parentNode:h,nextSibling:v,setScopeId:w=$e,insertStaticContent:C}=e,S=(a,u,p,b=null,g=null,m=null,T=void 0,x=null,_=!!u.dynamicChildren)=>{if(a===u)return;a&&!Nt(a,u)&&(b=Cs(a),Ne(a,g,m,!0),a=null),u.patchFlag===-2&&(_=!1,u.dynamicChildren=null);const{type:y,ref:P,shapeFlag:E}=u;switch(y){case ms:D(a,u,p,b);break;case nt:U(a,u,p,b);break;case un:a==null&&R(u,p,b,T);break;case me:ne(a,u,p,b,g,m,T,x,_);break;default:E&1?I(a,u,p,b,g,m,T,x,_):E&6?_e(a,u,p,b,g,m,T,x,_):(E&64||E&128)&&y.process(a,u,p,b,g,m,T,x,_,qt)}P!=null&&g?It(P,a&&a.ref,m,u||a,!u):P==null&&a&&a.ref!=null&&It(a.ref,null,m,a,!0)},D=(a,u,p,b)=>{if(a==null)n(u.el=l(u.children),p,b);else{const g=u.el=a.el;u.children!==a.children&&d(g,u.children)}},U=(a,u,p,b)=>{a==null?n(u.el=c(u.children||""),p,b):u.el=a.el},R=(a,u,p,b)=>{[a.el,a.anchor]=C(a.children,u,p,b,a.el,a.anchor)},L=({el:a,anchor:u},p,b)=>{let g;for(;a&&a!==u;)g=v(a),n(a,p,b),a=g;n(u,p,b)},M=({el:a,anchor:u})=>{let p;for(;a&&a!==u;)p=v(a),r(a),a=p;r(u)},I=(a,u,p,b,g,m,T,x,_)=>{if(u.type==="svg"?T="svg":u.type==="math"&&(T="mathml"),a==null)q(u,p,b,g,m,T,x,_);else{const y=a.el&&a.el._isVueCE?a.el:null;try{y&&y._beginPatch(),ee(a,u,g,m,T,x,_)}finally{y&&y._endPatch()}}},q=(a,u,p,b,g,m,T,x)=>{let _,y;const{props:P,shapeFlag:E,transition:A,dirs:$}=a;if(_=a.el=o(a.type,m,P&&P.is,P),E&8?f(_,a.children):E&16&&se(a.children,_,null,b,g,cn(a,m),T,x),$&&ct(a,null,b,"created"),K(_,a,a.scopeId,T,b),P){for(const X in P)X!=="value"&&!St(X)&&i(_,X,null,P[X],m,b);"value"in P&&i(_,"value",null,P.value,m),(y=P.onVnodeBeforeMount)&&Be(y,b,a)}$&&ct(a,null,b,"beforeMount");const H=ul(g,A);H&&A.beforeEnter(_),n(_,u,p),((y=P&&P.onVnodeMounted)||H||$)&&he(()=>{y&&Be(y,b,a),H&&A.enter(_),$&&ct(a,null,b,"mounted")},g)},K=(a,u,p,b,g)=>{if(p&&w(a,p),b)for(let m=0;m<b.length;m++)w(a,b[m]);if(g){let m=g.subTree;if(u===m||Vr(m.type)&&(m.ssContent===u||m.ssFallback===u)){const T=g.vnode;K(a,T,T.scopeId,T.slotScopeIds,g.parent)}}},se=(a,u,p,b,g,m,T,x,_=0)=>{for(let y=_;y<a.length;y++){const P=a[y]=x?Ye(a[y]):Le(a[y]);S(null,P,u,p,b,g,m,T,x)}},ee=(a,u,p,b,g,m,T)=>{const x=u.el=a.el;let{patchFlag:_,dynamicChildren:y,dirs:P}=u;_|=a.patchFlag&16;const E=a.props||z,A=u.props||z;let $;if(p&&ut(p,!1),($=A.onVnodeBeforeUpdate)&&Be($,p,u,a),P&&ct(u,a,p,"beforeUpdate"),p&&ut(p,!0),(E.innerHTML&&A.innerHTML==null||E.textContent&&A.textContent==null)&&f(x,""),y?ce(a.dynamicChildren,y,x,p,b,cn(u,g),m):T||B(a,u,x,null,p,b,cn(u,g),m,!1),_>0){if(_&16)Me(x,E,A,p,g);else if(_&2&&E.class!==A.class&&i(x,"class",null,A.class,g),_&4&&i(x,"style",E.style,A.style,g),_&8){const H=u.dynamicProps;for(let X=0;X<H.length;X++){const W=H[X],xe=E[W],we=A[W];(we!==xe||W==="value")&&i(x,W,xe,we,g,p)}}_&1&&a.children!==u.children&&f(x,u.children)}else!T&&y==null&&Me(x,E,A,p,g);(($=A.onVnodeUpdated)||P)&&he(()=>{$&&Be($,p,u,a),P&&ct(u,a,p,"updated")},b)},ce=(a,u,p,b,g,m,T)=>{for(let x=0;x<u.length;x++){const _=a[x],y=u[x],P=_.el&&(_.type===me||!Nt(_,y)||_.shapeFlag&198)?h(_.el):p;S(_,y,P,null,b,g,m,T,!0)}},Me=(a,u,p,b,g)=>{if(u!==p){if(u!==z)for(const m in u)!St(m)&&!(m in p)&&i(a,m,u[m],null,g,b);for(const m in p){if(St(m))continue;const T=p[m],x=u[m];T!==x&&m!=="value"&&i(a,m,x,T,g,b)}"value"in p&&i(a,"value",u.value,p.value,g)}},ne=(a,u,p,b,g,m,T,x,_)=>{const y=u.el=a?a.el:l(""),P=u.anchor=a?a.anchor:l("");let{patchFlag:E,dynamicChildren:A,slotScopeIds:$}=u;$&&(x=x?x.concat($):$),a==null?(n(y,p,b),n(P,p,b),se(u.children||[],p,P,g,m,T,x,_)):E>0&&E&64&&A&&a.dynamicChildren&&a.dynamicChildren.length===A.length?(ce(a.dynamicChildren,A,p,g,m,T,x),(u.key!=null||g&&u===g.subTree)&&an(a,u,!0)):B(a,u,p,P,g,m,T,x,_)},_e=(a,u,p,b,g,m,T,x,_)=>{u.slotScopeIds=x,a==null?u.shapeFlag&512?g.ctx.activate(u,p,b,T,_):wt(u,p,b,g,m,T,_):Vt(a,u,_)},wt=(a,u,p,b,g,m,T)=>{const x=a.component=_l(a,b,g);if(br(a)&&(x.ctx.renderer=qt),wl(x,!1,T),x.asyncDep){if(g&&g.registerDep(x,ae,T),!a.el){const _=x.subTree=ve(nt);U(null,_,u,p),a.placeholder=_.el}}else ae(x,a,u,p,g,m,T)},Vt=(a,u,p)=>{const b=u.component=a.component;if(el(a,u,p))if(b.asyncDep&&!b.asyncResolved){Q(b,u,p);return}else b.next=u,b.update();else u.el=a.el,b.vnode=u},ae=(a,u,p,b,g,m,T)=>{const x=()=>{if(a.isMounted){let{next:E,bu:A,u:$,parent:H,vnode:X}=a;{const je=Nr(a);if(je){E&&(E.el=X.el,Q(a,E,T)),je.asyncDep.then(()=>{he(()=>{a.isUnmounted||y()},g)});return}}let W=E,xe;ut(a,!1),E?(E.el=X.el,Q(a,E,T)):E=X,A&&$s(A),(xe=E.props&&E.props.onVnodeBeforeUpdate)&&Be(xe,H,E,X),ut(a,!0);const we=Pr(a),Ke=a.subTree;a.subTree=we,S(Ke,we,h(Ke.el),Cs(Ke),a,g,m),E.el=we.el,W===null&&tl(a,we.el),$&&he($,g),(xe=E.props&&E.props.onVnodeUpdated)&&he(()=>Be(xe,H,E,X),g)}else{let E;const{el:A,props:$}=u,{bm:H,m:X,parent:W,root:xe,type:we}=a,Ke=Dt(u);ut(a,!1),H&&$s(H),!Ke&&(E=$&&$.onVnodeBeforeMount)&&Be(E,W,u),ut(a,!0);{xe.ce&&xe.ce._hasShadowRoot()&&xe.ce._injectChildStyle(we);const je=a.subTree=Pr(a);S(null,je,p,b,a,g,m),u.el=je.el}if(X&&he(X,g),!Ke&&(E=$&&$.onVnodeMounted)){const je=u;he(()=>Be(E,W,je),g)}(u.shapeFlag&256||W&&Dt(W.vnode)&&W.vnode.shapeFlag&256)&&a.a&&he(a.a,g),a.isMounted=!0,u=p=b=null}};a.scope.on();const _=a.effect=new Dn(x);a.scope.off();const y=a.update=_.run.bind(_),P=a.job=_.runIfDirty.bind(_);P.i=a,P.id=a.uid,_.scheduler=()=>Ys(P),ut(a,!0),y()},Q=(a,u,p)=>{u.component=a;const b=a.vnode.props;a.vnode=u,a.next=null,nl(a,u.props,b,p),ll(a,u.children,p),Ie(),rr(a),De()},B=(a,u,p,b,g,m,T,x,_=!1)=>{const y=a&&a.children,P=a?a.shapeFlag:0,E=u.children,{patchFlag:A,shapeFlag:$}=u;if(A>0){if(A&128){Es(y,E,p,b,g,m,T,x,_);return}else if(A&256){Ae(y,E,p,b,g,m,T,x,_);return}}$&8?(P&16&&Wt(y,g,m),E!==y&&f(p,E)):P&16?$&16?Es(y,E,p,b,g,m,T,x,_):Wt(y,g,m,!0):(P&8&&f(p,""),$&16&&se(E,p,b,g,m,T,x,_))},Ae=(a,u,p,b,g,m,T,x,_)=>{a=a||ht,u=u||ht;const y=a.length,P=u.length,E=Math.min(y,P);let A;for(A=0;A<E;A++){const $=u[A]=_?Ye(u[A]):Le(u[A]);S(a[A],$,p,null,g,m,T,x,_)}y>P?Wt(a,g,m,!0,!1,E):se(u,p,b,g,m,T,x,_,E)},Es=(a,u,p,b,g,m,T,x,_)=>{let y=0;const P=u.length;let E=a.length-1,A=P-1;for(;y<=E&&y<=A;){const $=a[y],H=u[y]=_?Ye(u[y]):Le(u[y]);if(Nt($,H))S($,H,p,null,g,m,T,x,_);else break;y++}for(;y<=E&&y<=A;){const $=a[E],H=u[A]=_?Ye(u[A]):Le(u[A]);if(Nt($,H))S($,H,p,null,g,m,T,x,_);else break;E--,A--}if(y>E){if(y<=A){const $=A+1,H=$<P?u[$].el:b;for(;y<=A;)S(null,u[y]=_?Ye(u[y]):Le(u[y]),p,H,g,m,T,x,_),y++}}else if(y>A)for(;y<=E;)Ne(a[y],g,m,!0),y++;else{const $=y,H=y,X=new Map;for(y=H;y<=A;y++){const Se=u[y]=_?Ye(u[y]):Le(u[y]);Se.key!=null&&X.set(Se.key,y)}let W,xe=0;const we=A-H+1;let Ke=!1,je=0;const zt=new Array(we);for(y=0;y<we;y++)zt[y]=0;for(y=$;y<=E;y++){const Se=a[y];if(xe>=we){Ne(Se,g,m,!0);continue}let Ve;if(Se.key!=null)Ve=X.get(Se.key);else for(W=H;W<=A;W++)if(zt[W-H]===0&&Nt(Se,u[W])){Ve=W;break}Ve===void 0?Ne(Se,g,m,!0):(zt[Ve-H]=y+1,Ve>=je?je=Ve:Ke=!0,S(Se,u[Ve],p,null,g,m,T,x,_),xe++)}const Si=Ke?fl(zt):ht;for(W=Si.length-1,y=we-1;y>=0;y--){const Se=H+y,Ve=u[Se],Ei=u[Se+1],Ci=Se+1<P?Ei.el||jr(Ei):b;zt[y]===0?S(null,Ve,p,Ci,g,m,T,x,_):Ke&&(W<0||y!==Si[W]?dt(Ve,p,Ci,2):W--)}}},dt=(a,u,p,b,g=null)=>{const{el:m,type:T,transition:x,children:_,shapeFlag:y}=a;if(y&6){dt(a.component.subTree,u,p,b);return}if(y&128){a.suspense.move(u,p,b);return}if(y&64){T.move(a,u,p,qt);return}if(T===me){n(m,u,p);for(let E=0;E<_.length;E++)dt(_[E],u,p,b);n(a.anchor,u,p);return}if(T===un){L(a,u,p);return}if(b!==2&&y&1&&x)if(b===0)x.beforeEnter(m),n(m,u,p),he(()=>x.enter(m),g);else{const{leave:E,delayLeave:A,afterLeave:$}=x,H=()=>{a.ctx.isUnmounted?r(m):n(m,u,p)},X=()=>{m._isLeaving&&m[Po](!0),E(m,()=>{H(),$&&$()})};A?A(m,H,X):X()}else n(m,u,p)},Ne=(a,u,p,b=!1,g=!1)=>{const{type:m,props:T,ref:x,children:_,dynamicChildren:y,shapeFlag:P,patchFlag:E,dirs:A,cacheIndex:$}=a;if(E===-2&&(g=!1),x!=null&&(Ie(),It(x,null,p,a,!0),De()),$!=null&&(u.renderCache[$]=void 0),P&256){u.ctx.deactivate(a);return}const H=P&1&&A,X=!Dt(a);let W;if(X&&(W=T&&T.onVnodeBeforeUnmount)&&Be(W,u,a),P&6)Pa(a.component,p,b);else{if(P&128){a.suspense.unmount(p,b);return}H&&ct(a,null,u,"beforeUnmount"),P&64?a.type.remove(a,u,p,qt,b):y&&!y.hasOnce&&(m!==me||E>0&&E&64)?Wt(y,u,p,!1,!0):(m===me&&E&384||!g&&P&16)&&Wt(_,u,p),b&&wi(a)}(X&&(W=T&&T.onVnodeUnmounted)||H)&&he(()=>{W&&Be(W,u,a),H&&ct(a,null,u,"unmounted")},p)},wi=a=>{const{type:u,el:p,anchor:b,transition:g}=a;if(u===me){Aa(p,b);return}if(u===un){M(a);return}const m=()=>{r(p),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(a.shapeFlag&1&&g&&!g.persisted){const{leave:T,delayLeave:x}=g,_=()=>T(p,m);x?x(a.el,m,_):_()}else m()},Aa=(a,u)=>{let p;for(;a!==u;)p=v(a),r(a),a=p;r(u)},Pa=(a,u,p)=>{const{bum:b,scope:g,job:m,subTree:T,um:x,m:_,a:y}=a;Kr(_),Kr(y),b&&$s(b),g.stop(),m&&(m.flags|=8,Ne(T,a,u,p)),x&&he(x,u),he(()=>{a.isUnmounted=!0},u)},Wt=(a,u,p,b=!1,g=!1,m=0)=>{for(let T=m;T<a.length;T++)Ne(a[T],u,p,b,g)},Cs=a=>{if(a.shapeFlag&6)return Cs(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const u=v(a.anchor||a.el),p=u&&u[ur];return p?v(p):u};let wn=!1;const Ti=(a,u,p)=>{let b;a==null?u._vnode&&(Ne(u._vnode,null,null,!0),b=u._vnode.component):S(u._vnode||null,a,u,null,null,null,p),u._vnode=a,wn||(wn=!0,rr(b),ir(),wn=!1)},qt={p:S,um:Ne,m:dt,r:wi,mt:wt,mc:se,pc:B,pbc:ce,n:Cs,o:e};return{render:Ti,hydrate:void 0,createApp:Go(Ti)}}function cn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function ut({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ul(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function an(e,t,s=!1){const n=e.children,r=t.children;if(O(n)&&O(r))for(let i=0;i<n.length;i++){const o=n[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Ye(r[i]),l.el=o.el),!s&&l.patchFlag!==-2&&an(o,l)),l.type===ms&&(l.patchFlag===-1&&(l=r[i]=Ye(l)),l.el=o.el),l.type===nt&&!l.el&&(l.el=o.el)}}function fl(e){const t=e.slice(),s=[0];let n,r,i,o,l;const c=e.length;for(n=0;n<c;n++){const d=e[n];if(d!==0){if(r=s[s.length-1],e[r]<d){t[n]=r,s.push(n);continue}for(i=0,o=s.length-1;i<o;)l=i+o>>1,e[s[l]]<d?i=l+1:o=l;d<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function Nr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Nr(t)}function Kr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function jr(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?jr(t.subTree):null}const Vr=e=>e.__isSuspense;function dl(e,t){t&&t.pendingBranch?O(e)?t.effects.push(...e):t.effects.push(e):_o(e)}const me=Symbol.for("v-fgt"),ms=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),un=Symbol.for("v-stc"),Lt=[];let Te=null;function V(e=!1){Lt.push(Te=e?null:[])}function hl(){Lt.pop(),Te=Lt[Lt.length-1]||null}let Bt=1;function ys(e,t=!1){Bt+=e,e<0&&Te&&t&&(Te.hasOnce=!0)}function Wr(e){return e.dynamicChildren=Bt>0?Te||ht:null,hl(),Bt>0&&Te&&Te.push(e),e}function Y(e,t,s,n,r,i){return Wr(J(e,t,s,n,r,i,!0))}function fn(e,t,s,n,r){return Wr(ve(e,t,s,n,r,!0))}function bs(e){return e?e.__v_isVNode===!0:!1}function Nt(e,t){return e.type===t.type&&e.key===t.key}const qr=({key:e})=>e??null,vs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Z(e)||oe(e)||F(e)?{i:ke,r:e,k:t,f:!!s}:e:null);function J(e,t=null,s=null,n=0,r=null,i=e===me?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qr(t),ref:t&&vs(t),scopeId:lr,slotScopeIds:null,children:s,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ke};return l?(dn(c,s),i&128&&e.normalize(c)):s&&(c.shapeFlag|=Z(s)?8:16),Bt>0&&!o&&Te&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Te.push(c),c}const ve=pl;function pl(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===Bo)&&(e=nt),bs(e)){const l=xt(e,t,!0);return s&&dn(l,s),Bt>0&&!i&&Te&&(l.shapeFlag&6?Te[Te.indexOf(e)]=l:Te.push(l)),l.patchFlag=-2,l}if(Pl(e)&&(e=e.__vccOpts),t){t=gl(t);let{class:l,style:c}=t;l&&!Z(l)&&(t.class=Ee(l)),j(c)&&(zs(c)&&!O(c)&&(c=ie({},c)),t.style=Et(c))}const o=Z(e)?1:Vr(e)?128:Co(e)?64:j(e)?4:F(e)?2:0;return J(e,t,s,n,r,o,i,!0)}function gl(e){return e?zs(e)||Ir(e)?ie({},e):e:null}function xt(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,d=t?yl(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&qr(d),ref:t&&t.ref?s&&i?O(i)?i.concat(vs(t)):[i,vs(t)]:vs(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&Qs(f,c.clone(f)),f}function ml(e=" ",t=0){return ve(ms,null,e,t)}function le(e="",t=!1){return t?(V(),fn(nt,null,e)):ve(nt,null,e)}function Le(e){return e==null||typeof e=="boolean"?ve(nt):O(e)?ve(me,null,e.slice()):bs(e)?Ye(e):ve(ms,null,String(e))}function Ye(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function dn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(O(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),dn(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Ir(t)?t._ctx=ke:r===3&&ke&&(ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:ke},s=32):(t=String(t),n&64?(s=16,t=[ml(t)]):s=8);e.children=t,e.shapeFlag|=s}function yl(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=Ee([t.class,n.class]));else if(r==="style")t.style=Et([t.style,n.style]);else if(Gt(r)){const i=t[r],o=n[r];o&&i!==o&&!(O(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=n[r])}return t}function Be(e,t,s,n=null){Ue(e,t,7,[s,n])}const bl=Mr();let vl=0;function _l(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||bl,i={uid:vl++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ki(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ur(n,r),emitsOptions:Ar(n,r),emit:null,emitted:null,propsDefaults:z,inheritAttrs:n.inheritAttrs,ctx:z,data:z,props:z,attrs:z,slots:z,refs:z,setupState:z,setupContext:null,suspense:s,suspenseId:s?s.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 i.ctx={_:i},i.root=t?t.root:i,i.emit=Jo.bind(null,i),e.ce&&e.ce(i),i}let ye=null;const xl=()=>ye||ke;let _s,hn;{const e=Jt(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};_s=t("__VUE_INSTANCE_SETTERS__",s=>ye=s),hn=t("__VUE_SSR_SETTERS__",s=>jt=s)}const Kt=e=>{const t=ye;return _s(e),e.scope.on(),()=>{e.scope.off(),_s(t)}},zr=()=>{ye&&ye.scope.off(),_s(null)};function Gr(e){return e.vnode.shapeFlag&4}let jt=!1;function wl(e,t=!1,s=!1){t&&hn(t);const{props:n,children:r}=e.vnode,i=Gr(e);sl(e,n,i,t),ol(e,r,s||t);const o=i?Tl(e,t):void 0;return t&&hn(!1),o}function Tl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,No);const{setup:n}=s;if(n){Ie();const r=e.setupContext=n.length>1?El(e):null,i=Kt(e),o=yt(n,e,0,[e.props,r]),l=Cn(o);if(De(),i(),(l||e.sp)&&!Dt(e)&&gr(e),l){if(o.then(zr,zr),t)return o.then(c=>{Yr(e,c)}).catch(c=>{is(c,e,0)});e.asyncDep=o}else Yr(e,o)}else Jr(e)}function Yr(e,t,s){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:j(t)&&(e.setupState=Zn(t)),Jr(e)}function Jr(e,t,s){const n=e.type;e.render||(e.render=n.render||$e);{const r=Kt(e);Ie();try{Ko(e)}finally{De(),r()}}}const Sl={get(e,t){return fe(e,"get",""),e[t]}};function El(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Sl),slots:e.slots,emit:e.emit,expose:t}}function pn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Zn(io(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ht)return Ht[s](e)},has(t,s){return s in t||s in Ht}})):e.proxy}const Cl=/(?:^|[-_])\w/g,Ml=e=>e.replace(Cl,t=>t.toUpperCase()).replace(/[-_]/g,"");function Al(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function Xr(e,t,s=!1){let n=Al(t);if(!n&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(n=r[1])}if(!n&&e){const r=i=>{for(const o in i)if(i[o]===t)return o};n=r(e.components)||e.parent&&r(e.parent.type.components)||r(e.appContext.components)}return n?Ml(n):s?"App":"Anonymous"}function Pl(e){return F(e)&&"__vccOpts"in e}const re=(e,t)=>uo(e,t,jt);function Rl(e,t,s){try{ys(-1);const n=arguments.length;return n===2?j(t)&&!O(t)?bs(t)?ve(e,null,[t]):ve(e,t):ve(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&bs(s)&&(s=[s]),ve(e,t,s))}finally{ys(1)}}const Ol="3.5.29";let gn;const Qr=typeof window<"u"&&window.trustedTypes;if(Qr)try{gn=Qr.createPolicy("vue",{createHTML:e=>e})}catch{}const Zr=gn?e=>gn.createHTML(e):e=>e,$l="http://www.w3.org/2000/svg",Fl="http://www.w3.org/1998/Math/MathML",Je=typeof document<"u"?document:null,ei=Je&&Je.createElement("template"),Il={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Je.createElementNS($l,e):t==="mathml"?Je.createElementNS(Fl,e):s?Je.createElement(e,{is:s}):Je.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Je.createTextNode(e),createComment:e=>Je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Je.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{ei.innerHTML=Zr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=ei.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Dl=Symbol("_vtc");function Ul(e,t,s){const n=e[Dl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ti=Symbol("_vod"),Hl=Symbol("_vsh"),kl=Symbol(""),Ll=/(?:^|;)\s*display\s*:/;function Bl(e,t,s){const n=e.style,r=Z(s);let i=!1;if(s&&!r){if(t)if(Z(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&xs(n,l,"")}else for(const o in t)s[o]==null&&xs(n,o,"");for(const o in s)o==="display"&&(i=!0),xs(n,o,s[o])}else if(r){if(t!==s){const o=n[kl];o&&(s+=";"+o),n.cssText=s,i=Ll.test(s)}}else t&&e.removeAttribute("style");ti in e&&(e[ti]=i?n.display:"",e[Hl]&&(n.display="none"))}const si=/\s*!important$/;function xs(e,t,s){if(O(s))s.forEach(n=>xs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Nl(e,t);si.test(s)?e.setProperty(rt(n),s.replace(si,""),"important"):e[n]=s}}const ni=["Webkit","Moz","ms"],mn={};function Nl(e,t){const s=mn[t];if(s)return s;let n=Xe(t);if(n!=="filter"&&n in e)return mn[t]=n;n=Pn(n);for(let r=0;r<ni.length;r++){const i=ni[r]+n;if(i in e)return mn[t]=i}return t}const ri="http://www.w3.org/1999/xlink";function ii(e,t,s,n,r,i=Ui(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(ri,t.slice(6,t.length)):e.setAttributeNS(ri,t,s):s==null||i&&!$n(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Fe(s)?String(s):s)}function oi(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Zr(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(l!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=$n(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function Kl(e,t,s,n){e.addEventListener(t,s,n)}function jl(e,t,s,n){e.removeEventListener(t,s,n)}const li=Symbol("_vei");function Vl(e,t,s,n,r=null){const i=e[li]||(e[li]={}),o=i[t];if(n&&o)o.value=n;else{const[l,c]=Wl(t);if(n){const d=i[t]=Gl(n,r);Kl(e,l,d,c)}else o&&(jl(e,l,o,c),i[t]=void 0)}}const ci=/(?:Once|Passive|Capture)$/;function Wl(e){let t;if(ci.test(e)){t={};let n;for(;n=e.match(ci);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):rt(e.slice(2)),t]}let yn=0;const ql=Promise.resolve(),zl=()=>yn||(ql.then(()=>yn=0),yn=Date.now());function Gl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ue(Yl(n,s.value),t,5,[n])};return s.value=e,s.attached=zl(),s}function Yl(e,t){if(O(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const ai=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?Ul(e,n,o):t==="style"?Bl(e,s,n):Gt(t)?As(t)||Vl(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xl(e,t,n,o))?(oi(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ii(e,t,n,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Z(n))?oi(e,Xe(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),ii(e,t,n,o))};function Xl(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ai(t)&&F(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return ai(t)&&Z(s)?!1:t in e}const Ql=["ctrl","shift","alt","meta"],Zl={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)=>Ql.some(s=>e[`${s}Key`]&&!t.includes(s))},ec=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((r,...i)=>{for(let o=0;o<t.length;o++){const l=Zl[t[o]];if(l&&l(r,t))return}return e(r,...i)}))},tc=ie({patchProp:Jl},Il);let ui;function sc(){return ui||(ui=cl(tc))}const nc=((...e)=>{const t=sc().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=ic(n);if(!r)return;const i=t._component;!F(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,rc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function rc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ic(e){return Z(e)?document.querySelector(e):e}class fi extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class oc extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class di{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const r={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},i=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:r,credentials:this.authToken?"omit":"include"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(i.status===401||i.status===403)throw new fi(i.status);if(!i.ok){const o=await i.text().catch(()=>"");throw new oc(i.status,o)}return i.json()}async get(t,s){const n=s?`${t}?${s}`:t;return this.fetch(n)}async post(t,s){const n={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,n)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const lc=60,cc=1e4;function ac(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),n=Math.floor(t%86400/3600),r=Math.floor(t%3600/60);return s>0?`${s}d ${n}h`:n>0?`${n}h ${r}m`:r>0?`${r}m ${t%60}s`:`${t}s`}function bn(e){const t=e/1048576;return t>=1024?`${(t/1024).toFixed(1)}G`:`${t.toFixed(0)}M`}function hi(e){return e>=1024?`${(e/1024).toFixed(1)}G`:`${e.toFixed(1)}M`}function uc(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:`${e}`}function vn(e,t){switch(t){case"%":return`${e.toFixed(1)}%`;case"ms":return`${e.toFixed(0)}ms`;case"MB":return`${e.toFixed(1)}M`;case"bytes":return bn(e);case"/s":case"/m":return e.toFixed(1);default:return e.toFixed(1)}}function ws(e,t,s){return e>s?"red":e>t?"amber":"green"}function fc(e,t,s){return e<s?"red":e<t?"amber":"green"}function pi(e,t){if(t===0)return"green";const s=e/t;return s>.8?"red":s>.5?"amber":"green"}const dc={green:"ss-green",amber:"ss-amber",red:"ss-red"};function ft(e){return dc[e]||""}const gi=[{id:"node",label:"NODE",title:"Node.js Runtime",unit:"",group:"process",extract:e=>0,format:e=>e.nodeVersion,color:()=>""},{id:"uptime",label:"UP",title:"Process Uptime",unit:"",group:"process",extract:e=>e.uptime,format:e=>ac(e.uptime),color:()=>""},{id:"cpu",label:"CPU",title:"CPU Usage",unit:"%",group:"process",warnThreshold:50,critThreshold:80,extract:e=>e.cpuPercent,format:e=>`${e.cpuPercent.toFixed(1)}%`,color:e=>ft(ws(e.cpuPercent,50,80)),historyKey:"cpuPercent"},{id:"eventLoop",label:"EVT",title:"Event Loop Latency",unit:"ms",group:"process",warnThreshold:20,critThreshold:50,extract:e=>e.eventLoopLag,format:e=>`${e.eventLoopLag.toFixed(1)}ms`,color:e=>ft(ws(e.eventLoopLag,20,50)),historyKey:"eventLoopLag"},{id:"memory",label:"HEAP",title:"V8 Heap Usage",unit:"bytes",group:"memory",extract:e=>e.memHeapUsed,format:e=>bn(e.memHeapUsed),color:()=>"",historyKey:"memHeapUsed"},{id:"rss",label:"RSS",title:"Resident Set Size",unit:"bytes",group:"memory",extract:e=>e.memRss,format:e=>bn(e.memRss),color:()=>"",historyKey:"memRss"},{id:"systemMemory",label:"SYS",title:"System Memory",unit:"MB",group:"memory",extract:e=>e.systemMemoryTotalMb-e.systemMemoryFreeMb,format:e=>`${hi(e.systemMemoryTotalMb-e.systemMemoryFreeMb)}/${hi(e.systemMemoryTotalMb)}`,color:e=>{const t=e.systemMemoryTotalMb;if(t===0)return"";const s=t-e.systemMemoryFreeMb;return ft(pi(s,t))},historyKey:"_sysMemUsed",show:e=>e.systemMemoryTotalMb!==null&&e.systemMemoryTotalMb!==void 0},{id:"reqPerSec",label:"REQ/s",title:"Requests per Second",unit:"/s",group:"http",extract:e=>e.requestsPerSecond,format:e=>e.requestsPerSecond.toFixed(1),color:()=>"",historyKey:"requestsPerSecond"},{id:"avgResponse",label:"AVG",title:"Avg Response Time",unit:"ms",group:"http",warnThreshold:200,critThreshold:500,extract:e=>e.avgResponseTimeMs,format:e=>`${e.avgResponseTimeMs.toFixed(0)}ms`,color:e=>ft(ws(e.avgResponseTimeMs,200,500)),historyKey:"avgResponseTimeMs"},{id:"errorRate",label:"ERR",title:"Error Rate",unit:"%",group:"http",warnThreshold:1,critThreshold:5,extract:e=>e.errorRate,format:e=>`${e.errorRate.toFixed(1)}%`,color:e=>ft(ws(e.errorRate,1,5)),historyKey:"errorRate"},{id:"connections",label:"CONN",title:"Active Connections",unit:"",group:"http",extract:e=>e.activeHttpConnections,format:e=>`${e.activeHttpConnections}`,color:()=>"",historyKey:"activeHttpConnections"},{id:"dbPool",label:"DB",title:"Database Pool",unit:"",group:"db",extract:e=>e.dbPoolUsed,format:e=>`${e.dbPoolUsed}/${e.dbPoolFree}/${e.dbPoolMax}`,color:e=>ft(pi(e.dbPoolUsed,e.dbPoolMax)),historyKey:"dbPoolUsed"},{id:"redis",label:"REDIS",title:"Redis Status",unit:"",group:"redis",extract:e=>e.redisOk?1:0,format:e=>e.redisOk?"✓":"✗",color:e=>e.redisOk?"ss-green":"ss-red"},{id:"redisMem",label:"MEM",title:"Redis Memory",unit:"MB",group:"redis",extract:e=>e.redisMemoryUsedMb,format:e=>`${e.redisMemoryUsedMb.toFixed(1)}M`,color:()=>"",historyKey:"redisMemoryUsedMb",show:e=>e.redisOk},{id:"redisKeys",label:"KEYS",title:"Redis Keys",unit:"",group:"redis",extract:e=>e.redisKeysCount,format:e=>uc(e.redisKeysCount),color:()=>"",historyKey:"redisKeysCount",show:e=>e.redisOk},{id:"redisHitRate",label:"HIT",title:"Redis Hit Rate",unit:"%",group:"redis",warnThreshold:90,critThreshold:70,inverseThreshold:!0,extract:e=>e.redisHitRate,format:e=>`${e.redisHitRate.toFixed(0)}%`,color:e=>ft(fc(e.redisHitRate,90,70)),historyKey:"redisHitRate",show:e=>e.redisOk},{id:"queue",label:"Q",title:"Job Queue",unit:"",group:"queue",extract:e=>e.queueActive,format:e=>`${e.queueActive}/${e.queueWaiting}/${e.queueDelayed}`,color:e=>e.queueFailed>0?"ss-amber":"ss-green",historyKey:"queueActive"},{id:"queueWorkers",label:"WORKERS",title:"Queue Workers",unit:"",group:"queue",extract:e=>e.queueWorkerCount,format:e=>`${e.queueWorkerCount}`,color:()=>""},{id:"onlineUsers",label:"USERS",title:"Online Users",unit:"",group:"app",extract:e=>e.onlineUsers,format:e=>`${e.onlineUsers}`,color:()=>"",historyKey:"onlineUsers"},{id:"pendingWebhooks",label:"HOOKS",title:"Pending Webhooks",unit:"",group:"app",extract:e=>e.pendingWebhooks,format:e=>`${e.pendingWebhooks}`,color:e=>e.pendingWebhooks>0?"ss-amber":"",historyKey:"pendingWebhooks"},{id:"pendingEmails",label:"MAIL",title:"Pending Emails",unit:"",group:"app",extract:e=>e.pendingEmails,format:e=>`${e.pendingEmails}`,color:e=>e.pendingEmails>0?"ss-amber":"",historyKey:"pendingEmails"},{id:"logErrors",label:"LOG ERR",title:"Log Errors (5m)",unit:"",group:"log",extract:e=>e.logErrorsLast5m,format:e=>`${e.logErrorsLast5m}`,color:e=>e.logErrorsLast5m>0?"ss-red":e.logWarningsLast5m>0?"ss-amber":"",historyKey:"logErrorsLast5m"},{id:"logRate",label:"LOG/m",title:"Log Entries / Minute",unit:"/m",group:"log",extract:e=>e.logEntriesPerMinute,format:e=>`${e.logEntriesPerMinute}`,color:()=>"",historyKey:"logEntriesPerMinute"}];function hc(){const e=new Map;for(const t of gi){const s=t.group||"core";e.has(s)||e.set(s,[]),e.get(s).push(t)}return e}function pc(e=lc){const t={},s={};let n=!1;function r(i){if(i.count===0)return[];const o=Array.from({length:i.count}),l=i.count<e?0:i.head;for(let c=0;c<i.count;c++)o[c]=i.data[(l+c)%e];return o}return{push(i){n=!1;for(const o of gi){const l=o.historyKey;if(!l)continue;const c=o.extract(i);if(typeof c!="number")continue;t[l]||(t[l]={data:Array.from({length:e}),head:0,count:0});const d=t[l];d.data[d.head]=c,d.head=(d.head+1)%e,d.count<e&&d.count++}},get(i){const o=t[i];return o?r(o):[]},getAll(){if(n)return s;for(const i of Object.keys(t))s[i]=r(t[i]);return n=!0,s}}}function gc(e,t){const s=e||(typeof window<"u"?window.location.origin:"");if(!t)return{baseUrl:s};const n={headers:{Authorization:`Bearer ${t}`}};return{baseUrl:s,beforeSubscribe(r){return n},beforeUnsubscribe(r){return n}}}async function mc(){if(typeof window<"u"&&window.Transmit&&typeof window.Transmit=="function")return window.Transmit;try{const e=await import("@adonisjs/transmit-client");return e.Transmit??e.default??null}catch{return null}}function yc(e){let t=null,s=null,n=!1;return{subscribe:async()=>{try{const o=await mc();if(!o)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(n)return;t=new o(gc(e.baseUrl,e.authToken)),s=t.subscription(e.channelName),s.onMessage(l=>{n||e.onMessage(l)}),await s.create()}catch(o){e.onError?.(o)}},unsubscribe:async()=>{n=!0;try{await s?.delete(),s=null,t=null}catch{}}}}function bc(e){let t=!1;const s=yc({baseUrl:e.baseUrl,channelName:e.channelName,authToken:e.authToken,onMessage:e.onMessage,onError:n=>{t=!0,e.onError?.(n),e.onDisconnect?.()}});return s.subscribe().then(()=>{t||e.onConnect?.()}).catch(n=>{e.onError?.(n),e.onDisconnect?.()}),{unsubscribe:()=>{s.unsubscribe().catch(()=>{})}}}class vc{baseUrl;endpoint;channelName;authToken;pollInterval;onStatsUpdate;onConnectionChange;onStaleChange;onError;onUnauthorizedChange;onHistoryChange;onSseActiveChange;onPollActiveChange;historyBuffer;client=null;sseHandle=null;pollTimer=null;staleTimer=null;lastSuccess=0;unauthorized=!1;stopped=!1;sseActive=!1;isConnected=!1;isStale=!1;constructor(t={}){this.baseUrl=t.baseUrl??"",this.endpoint=t.endpoint??"/admin/api/server-stats",this.channelName=t.channelName??"admin/server-stats",this.authToken=t.authToken,this.pollInterval=t.pollInterval??3e3,this.onStatsUpdate=t.onStatsUpdate,this.onConnectionChange=t.onConnectionChange,this.onStaleChange=t.onStaleChange,this.onError=t.onError,this.onUnauthorizedChange=t.onUnauthorizedChange,this.onHistoryChange=t.onHistoryChange,this.onSseActiveChange=t.onSseActiveChange,this.onPollActiveChange=t.onPollActiveChange,this.historyBuffer=pc()}start(){if(this.unauthorized)return;this.stopped=!1;const t=this.initSseSubscription();this.poll(),t||!this.sseHandle?this.startPollInterval():this.setupSseFallbackTimer(),this.startStaleDetection()}stop(){this.stopped=!0,this.sseHandle?.unsubscribe(),this.sseHandle=null,this.stopPolling(),this.staleTimer&&(clearInterval(this.staleTimer),this.staleTimer=null)}getHistory(t){return this.historyBuffer.get(t)}getAllHistory(){return this.historyBuffer.getAll()}getConnectionMode(){return this.unauthorized?"disconnected":this.sseActive?"live":this.pollTimer?"polling":"disconnected"}initSseSubscription(){let t=!1;try{this.sseHandle=bc({baseUrl:this.baseUrl,channelName:this.channelName,authToken:this.authToken,onMessage:s=>{s&&typeof s=="object"&&"timestamp"in s&&this.processStats(s)},onConnect:()=>{this.setSseActive(!0),this.setConnected(!0),this.stopPolling()},onDisconnect:()=>{this.setSseActive(!1),this.setConnected(!1),!this.pollTimer&&!this.unauthorized&&!this.stopped&&this.startPollInterval()},onError:()=>{t=!0}})}catch{t=!0}return t}setupSseFallbackTimer(){const t=setTimeout(()=>{!this.isConnected&&!this.pollTimer&&!this.stopped&&this.startPollInterval()},3e3),s=this.sseHandle?.unsubscribe;this.sseHandle&&(this.sseHandle.unsubscribe=()=>{clearTimeout(t),s?.()})}startStaleDetection(){this.staleTimer=setInterval(()=>{this.lastSuccess>0&&Date.now()-this.lastSuccess>cc&&this.setStale(!0)},2e3)}processStats(t){this.onStatsUpdate?.(t),this.onError?.(null),this.lastSuccess=Date.now(),this.setStale(!1),this.historyBuffer.push(t),this.onHistoryChange?.(this.historyBuffer.getAll())}async poll(){if(!this.unauthorized){this.client||(this.client=new di({baseUrl:this.baseUrl,authToken:this.authToken}));try{const t=await this.client.get(this.endpoint);this.processStats(t)}catch(t){t instanceof fi&&(this.unauthorized=!0,this.onUnauthorizedChange?.(!0),this.onError?.(t),this.stopPolling())}}}startPollInterval(){this.pollTimer||this.stopped||(this.pollTimer=setInterval(()=>this.poll(),this.pollInterval),this.onPollActiveChange?.(!0))}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null,this.onPollActiveChange?.(!1))}setSseActive(t){this.sseActive!==t&&(this.sseActive=t,this.onSseActiveChange?.(t))}setConnected(t){this.isConnected!==t&&(this.isConnected=t,this.onConnectionChange?.(t))}setStale(t){this.isStale!==t&&(this.isStale=t,this.onStaleChange?.(t))}}function _c(e){return{onStatsUpdate:t=>{e.stats.value=t},onConnectionChange:t=>{e.isConnected.value=t},onStaleChange:t=>{e.isStale.value=t},onError:t=>{e.error.value=t},onUnauthorizedChange:t=>{e.isUnauthorized.value=t},onHistoryChange:t=>{for(const s of Object.keys(t))e.history[s]=t[s]},onSseActiveChange:t=>{e.sseActive.value=t},onPollActiveChange:t=>{e.pollActive.value=t}}}function xc(e,t){if(e.isUnauthorized.value)return null;const s=_c(e),n=new vc({...t,...s});return n.start(),n}function wc(e={}){const{baseUrl:t="",endpoint:s="/admin/api/server-stats",channelName:n="admin/server-stats",authToken:r,pollInterval:i=3e3}=e,o=te(null),l=ts({}),c=te(!1),d=te(!1),f=te(null),h=te(!1),v=te(!1),w=te(!1),C={stats:o,history:l,isConnected:c,isStale:d,error:f,isUnauthorized:h,sseActive:v,pollActive:w};let S=null;const D=re(()=>h.value?"disconnected":v.value?"live":w.value?"polling":"disconnected");return at(()=>{S=xc(C,{baseUrl:t,endpoint:s,channelName:n,authToken:r,pollInterval:i})}),Ut(()=>{S?.stop(),S=null}),{stats:o,history:l,isConnected:c,isStale:d,isUnauthorized:h,error:f,connectionMode:D}}const Ts="ss-dash-theme",_n="ss-theme-change";function Ss(){if(typeof window>"u")return"light";const e=localStorage.getItem(Ts);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function Tc(e){typeof window>"u"||(localStorage.setItem(Ts,e),window.dispatchEvent(new CustomEvent(_n,{detail:e})))}function Sc(){const t=Ss()==="dark"?"light":"dark";return Tc(t),t}function Ec(e){if(typeof window>"u")return()=>{};const t=i=>{const o=i.detail;(o==="dark"||o==="light")&&e(o)},s=i=>{if(i.key===Ts){const o=i.newValue;e(o==="dark"||o==="light"?o:Ss())}},n=window.matchMedia("(prefers-color-scheme: dark)"),r=i=>{localStorage.getItem(Ts)||e(i.matches?"dark":"light")};return window.addEventListener(_n,t),window.addEventListener("storage",s),n.addEventListener("change",r),()=>{window.removeEventListener(_n,t),window.removeEventListener("storage",s),n.removeEventListener("change",r)}}const Cc={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function Mc(e){return{...Cc,...e}}let Ac=0;function Pc(){return`ss-grad-${Ac++}`}function mi(e){if(e.length===0)return null;let t=e[0],s=e[0],n=e[0];for(let r=1;r<e.length;r++){const i=e[r];i<t&&(t=i),i>s&&(s=i),n+=i}return{min:t,max:s,avg:n/e.length}}function Rc(e,t){if(e.length<2)return null;const s=Mc(t),n=mi(e),r=n.max-n.min||1,i=s.width-s.padding*2,o=s.height-s.padding*2,l=s.padding,c=e.length,d=Array.from({length:c});for(let S=0;S<c;S++){const D=l+S/(c-1)*i,U=l+o-(e[S]-n.min)/r*o;d[S]=`${D.toFixed(1)},${U.toFixed(1)}`}const f=d.join(" "),h=(l+i).toFixed(1),v=(l+o).toFixed(1),w=l.toFixed(1),C=`M${d[0]} `+d.slice(1).map(S=>`L${S}`).join(" ")+` L${h},${v} L${w},${v} Z`;return{points:f,areaPath:C,gradientId:Pc(),options:s,stats:n}}const Oc=["tracing","process","system","http","db","redis","queues","cache","app","log","emails","dashboard"],$c=[{flag:"process",group:"process"},{flag:"process",group:"memory"},{flag:"system",group:"memory"},{flag:"http",group:"http"},{flag:"db",group:"db"},{flag:"redis",group:"redis"},{flag:"queues",group:"queue"},{flag:"app",group:"app"},{flag:"log",group:"log"}],Fc=[{group:"process",fields:["cpuPercent","uptime","nodeVersion"]},{group:"memory",fields:["memHeapUsed","memRss","systemMemoryTotalMb","systemMemoryFreeMb"]},{group:"http",fields:["requestsPerSecond","avgResponseTimeMs","errorRate","activeHttpConnections"]},{group:"db",fields:["dbPoolMax","dbPoolUsed","dbPoolFree","dbPoolPending"]},{group:"queue",fields:["queueActive","queueWaiting","queueWorkerCount"]},{group:"app",fields:["onlineUsers","pendingWebhooks","pendingEmails"]},{group:"log",fields:["logErrorsLast5m","logEntriesPerMinute"]}];function xn(e){return typeof e=="number"&&!Number.isNaN(e)}const yi="/admin/api/debug",bi={tracing:!1,process:!1,system:!1,http:!1,db:!1,redis:!1,queues:!1,cache:!1,app:!1,log:!1,emails:!1,dashboard:!1,customPanes:[]};function Ic(e){const t={customPanes:e.customPanes??[]},s=e.features;for(const n of Oc)t[n]=s?.[n]??!1;return t}async function Dc(e,t=yi){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Uc(e){const{baseUrl:t="",debugEndpoint:s=yi,authToken:n}=e,r=new di({baseUrl:t,authToken:n});try{const i=await Dc(r,s);return Ic(i)}catch{return bi}}function Hc(e){const t=new Set,n="features"in e&&typeof e.features=="object"&&e.features!==null?e.features:e;for(const{flag:r,group:i}of $c)n[r]&&t.add(i);return t}function kc(e){const t=new Set;(xn(e.cpuPercent)||xn(e.uptime)||Lc(e))&&t.add("process");for(const s of Fc)s.fields.some(n=>xn(e[n]))&&t.add(s.group);return e.redisOk!==void 0&&e.redisOk!==null&&t.add("redis"),t}function Lc(e){return typeof e.nodeVersion=="string"&&e.nodeVersion.length>0}const vi={queries:{viewBox:"0 0 24 24",elements:['<ellipse cx="12" cy="5" rx="9" ry="3"/>','<path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/>','<path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>']},events:{viewBox:"0 0 24 24",elements:['<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>']},emails:{viewBox:"0 0 24 24",elements:['<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>','<polyline points="22,6 12,13 2,6"/>']},routes:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<line x1="2" y1="12" x2="22" y2="12"/>','<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>']},logs:{viewBox:"0 0 24 24",elements:['<line x1="8" y1="6" x2="21" y2="6"/>','<line x1="8" y1="12" x2="21" y2="12"/>','<line x1="8" y1="18" x2="21" y2="18"/>','<line x1="3" y1="6" x2="3.01" y2="6"/>','<line x1="3" y1="12" x2="3.01" y2="12"/>','<line x1="3" y1="18" x2="3.01" y2="18"/>']},timeline:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},cache:{viewBox:"0 0 24 24",elements:['<rect x="2" y="2" width="20" height="8" rx="2" ry="2"/>','<rect x="2" y="14" width="20" height="8" rx="2" ry="2"/>','<line x1="6" y1="6" x2="6.01" y2="6"/>','<line x1="6" y1="18" x2="6.01" y2="18"/>']},jobs:{viewBox:"0 0 24 24",elements:['<rect x="2" y="7" width="20" height="14" rx="2" ry="2"/>','<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>']},config:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="3"/>','<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>']},internals:{viewBox:"0 0 24 24",elements:['<rect x="4" y="4" width="16" height="16" rx="2"/>','<rect x="9" y="9" width="6" height="6"/>','<line x1="9" y1="1" x2="9" y2="4"/>','<line x1="15" y1="1" x2="15" y2="4"/>','<line x1="9" y1="20" x2="9" y2="23"/>','<line x1="15" y1="20" x2="15" y2="23"/>','<line x1="20" y1="9" x2="23" y2="9"/>','<line x1="20" y1="14" x2="23" y2="14"/>','<line x1="1" y1="9" x2="4" y2="9"/>','<line x1="1" y1="14" x2="4" y2="14"/>']},overview:{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="7" height="7"/>','<rect x="14" y="3" width="7" height="7"/>','<rect x="14" y="14" width="7" height="7"/>','<rect x="3" y="14" width="7" height="7"/>']},requests:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},"dashboard-timeline":{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<polyline points="12 6 12 12 16 14"/>']},"custom-pane":{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="18" height="18" rx="2"/>','<path d="M9 3v18"/>']},wrench:{viewBox:"0 0 24 24",elements:['<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>']},"external-link":{viewBox:"0 0 24 24",elements:['<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>','<polyline points="15 3 21 3 21 9"/>','<line x1="10" y1="14" x2="21" y2="3"/>']},sun:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="5"/>','<line x1="12" y1="1" x2="12" y2="3"/>','<line x1="12" y1="21" x2="12" y2="23"/>','<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>','<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>','<line x1="1" y1="12" x2="3" y2="12"/>','<line x1="21" y1="12" x2="23" y2="12"/>','<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>','<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>']},moon:{viewBox:"0 0 24 24",elements:['<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>']},search:{viewBox:"0 0 24 24",elements:['<circle cx="11" cy="11" r="8"/>','<line x1="21" y1="21" x2="16.65" y2="16.65"/>']},eye:{viewBox:"0 0 24 24",elements:['<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>','<circle cx="12" cy="12" r="3"/>']},"eye-off":{viewBox:"0 0 24 24",elements:['<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/>','<path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/>','<line x1="1" y1="1" x2="23" y2="23"/>','<path d="M14.12 14.12a3 3 0 1 1-4.24-4.24"/>']},"chevron-right":{viewBox:"0 0 24 24",elements:['<path d="M9 18l6-6-6-6"/>']},"chevron-left":{viewBox:"0 0 24 24",elements:['<path d="M15 18l-6-6 6-6"/>']},"open-external":{viewBox:"0 0 16 16",elements:['<path d="M6 3H3v10h10v-3M9 1h6v6M7 9L15 1"/>']}};function Bc(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:n}=e,r=te({...bi}),i=te(!0);return at(async()=>{r.value=await Uc({baseUrl:t,debugEndpoint:s,authToken:n}),i.value=!1}),{features:r,loading:i}}function Nc(){const e=te(Ss());let t=null;function s(r){e.value=r}function n(){const r=Sc();return e.value=r,r}return at(()=>{e.value=Ss(),t=Ec(s)}),Ut(()=>{t?.()}),{theme:e,toggleTheme:n}}const Kc=["width","height","viewBox"],jc=["id"],Vc=["stop-color"],Wc=["stop-color"],qc=["d","fill"],zc=["d","stroke"],Gc=["x","y"],Yc=fs({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=re(()=>Rc(t.data,{width:t.width,height:t.height,color:t.color})),n=re(()=>s.value!==null),r=re(()=>`sg-${t.color.replace("#","")}`);return(i,o)=>(V(),Y("div",{class:"ss-dash-sparkline",style:Et({"--ss-accent":e.color})},[(V(),Y("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:{display:"block"}},[n.value&&s.value?(V(),Y(me,{key:0},[J("defs",null,[J("linearGradient",{id:r.value,x1:"0",y1:"0",x2:"0",y2:"1"},[J("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,Vc),J("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,Wc)],8,jc)]),J("path",{d:s.value.areaPath,fill:`url(#${r.value})`},null,8,qc),J("path",{class:"ss-dash-sparkline-line",d:"M"+s.value.points.replace(/ /g," L"),fill:"none",stroke:e.color,"stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,zc)],64)):(V(),Y("text",{key:1,x:e.width/2,y:e.height/2+3,"text-anchor":"middle",fill:"#737373","font-size":"9"}," collecting... ",8,Gc))],8,Kc))],4))}}),Jc=["id"],Xc={class:"ss-label"},Qc={class:"ss-tooltip-inner",style:{position:"relative"}},Zc={class:"ss-tooltip-header"},ea={class:"ss-tooltip-title"},ta={key:0,class:"ss-tooltip-unit"},sa={class:"ss-tooltip-current"},na={class:"ss-tooltip-current-value"},ra={key:1,class:"ss-tooltip-stats"},ia={key:2,class:"ss-tooltip-details"},oa={key:3,class:"ss-tooltip-sparkline"},la={key:4,class:"ss-tooltip-samples"},ca=fs({__name:"MetricCard",props:{metric:{},stats:{},history:{}},emits:["pin"],setup(e,{emit:t}){const s=e,n=t,r=te(!1),i=te(!1),o=te(null),l=te(null),c=te(null),d=te({position:"absolute",bottom:"100%",left:"0",marginBottom:"10px",zIndex:"180"});at(()=>{o.value&&(c.value=o.value.closest(".ss-bar"))});function f(){const ne=o.value,_e=l.value,wt=c.value;if(!ne||!_e||!wt)return;const Vt=ne.getBoundingClientRect(),ae=wt.getBoundingClientRect(),Q=Vt.left-ae.left+Vt.width/2;d.value={position:"absolute",bottom:"100%",left:`${Q}px`,transform:"translateX(-50%)",marginBottom:"10px",zIndex:"180"},requestAnimationFrame(()=>{if(!l.value)return;const B=l.value.getBoundingClientRect();let Ae=0;B.left<8?Ae=8-B.left:B.right>window.innerWidth-8&&(Ae=window.innerWidth-8-B.right),Ae&&(d.value={...d.value,transform:`translateX(calc(-50% + ${Ae}px))`})})}const h=re(()=>r.value||i.value);st(h,ne=>{ne&&sr(f)});let v=null;function w(){h.value&&f()}function C(){h.value&&f()}at(()=>{v=o.value?.closest(".ss-bar-scroll")??null,v?.addEventListener("scroll",w),window.addEventListener("resize",C)}),Zs(()=>{v?.removeEventListener("scroll",w),window.removeEventListener("resize",C)});const S=re(()=>s.stats?(s.metric.value||s.metric.format)(s.stats):"..."),D=re(()=>!s.stats||!s.metric.color?"green":s.metric.color(s.stats)),U=re(()=>!s.stats||!s.metric.show?!0:s.metric.show(s.stats)),R=re(()=>s.metric.detail?typeof s.metric.detail=="function"?s.stats?s.metric.detail(s.stats):"":s.metric.detail:""),L=re(()=>({green:"#34d399",amber:"#fbbf24",red:"#f87171",muted:"#737373"})[D.value]||"#34d399"),M=re(()=>mi(s.history));function I(){r.value=!0}function q(){r.value=!1}function K(){i.value=!i.value,i.value&&n("pin",s.metric.id)}function se(){i.value=!1}function ee(ne){ne.key==="Enter"&&K()}function ce(ne){const _e=ne.target;o.value&&!o.value.contains(_e)&&l.value&&!l.value.contains(_e)&&(i.value=!1)}function Me(ne){ne.key==="Escape"&&(i.value=!1)}return st(i,ne=>{ne?(document.addEventListener("click",ce),document.addEventListener("keydown",Me)):(document.removeEventListener("click",ce),document.removeEventListener("keydown",Me))}),Zs(()=>{document.removeEventListener("click",ce),document.removeEventListener("keydown",Me)}),(ne,_e)=>(V(),Y(me,null,[U.value?(V(),Y("div",{key:0,ref_key:"badgeRef",ref:o,id:`ss-b-${e.metric.id}`,class:Ee(["ss-badge",{"ss-pinned":i.value}]),role:"button",tabindex:0,onMouseenter:I,onMouseleave:q,onClick:K,onKeydown:ee},[J("span",Xc,ue(e.metric.label),1),J("span",{class:Ee(["ss-value",`ss-${D.value}`])},ue(S.value),3)],42,Jc)):le("",!0),h.value&&c.value?(V(),fn(Ao,{key:1,to:c.value},[J("div",{ref_key:"tooltipRef",ref:l,class:Ee(["ss-tooltip",{"ss-pinned":i.value}]),style:Et(d.value)},[J("div",Qc,[i.value?(V(),Y("button",{key:0,class:"ss-tooltip-close",onClick:ec(se,["stop"])},"×")):le("",!0),J("div",Zc,[J("span",ea,ue(e.metric.title),1),e.metric.unit?(V(),Y("span",ta,ue(e.metric.unit),1)):le("",!0)]),J("div",sa,[_e[0]||(_e[0]=J("span",{class:"ss-tooltip-current-label"},"Current: ",-1)),J("span",na,ue(S.value),1)]),M.value?(V(),Y("div",ra,[J("span",null,"Min: "+ue(de(vn)(M.value.min,e.metric.unit)),1),J("span",null,"Max: "+ue(de(vn)(M.value.max,e.metric.unit)),1),J("span",null,"Avg: "+ue(de(vn)(M.value.avg,e.metric.unit)),1)])):le("",!0),R.value?(V(),Y("div",ia,ue(R.value),1)):le("",!0),e.history.length>0?(V(),Y("div",oa,[ve(Yc,{data:e.history,color:L.value},null,8,["data","color"])])):le("",!0),e.history.length>0?(V(),Y("div",la," Last "+ue(Math.min(e.history.length,60))+" samples (~"+ue(Math.round(Math.min(e.history.length,60)*3/60))+" min) ",1)):le("",!0)]),_e[1]||(_e[1]=J("div",{class:"ss-tooltip-arrow"},null,-1))],6)],8,["to"])):le("",!0)],64))}}),aa=["data-ss-theme"],ua={class:"ss-bar-left"},fa=["viewBox","innerHTML"],da={class:"ss-group"},ha={key:0,class:"ss-group-sep"},pa=["data-ss-theme","title"],ga={key:0,class:"ss-toggle-summary",style:{display:"flex"}},ma={key:1,class:"ss-value ss-green"},ya={key:1,class:"ss-toggle-label",style:{color:"#737373"}},ba={class:"ss-toggle-arrow"},_i="admin:stats-bar",va=fs({__name:"StatsBar",props:{debugEndpoint:{default:"/admin/api/debug"},baseUrl:{default:""},endpoint:{default:"/admin/api/server-stats"},channelName:{default:"admin/server-stats"},authToken:{},pollInterval:{default:3e3},className:{},debugPanelOpen:{type:Boolean,default:!1}},emits:["openDebugPanel","connectionChange"],setup(e,{emit:t}){const s=e,n=t,{stats:r,history:i,isStale:o,isUnauthorized:l,isConnected:c}=wc({baseUrl:s.baseUrl,endpoint:s.endpoint,channelName:s.channelName,authToken:s.authToken,pollInterval:s.pollInterval});st(c,I=>{n("connectionChange",I)});const{features:d}=Bc({baseUrl:s.baseUrl,debugEndpoint:s.debugEndpoint,authToken:s.authToken}),{theme:f}=Nc(),h=te(!0),v=te(null);at(()=>{h.value=localStorage.getItem(_i)!=="hidden";const I=v.value;if(I){const q=K=>{Math.abs(K.deltaX)>Math.abs(K.deltaY)||(K.preventDefault(),I.scrollLeft+=K.deltaY)};I.addEventListener("wheel",q,{passive:!1}),Ut(()=>I.removeEventListener("wheel",q))}});function w(){h.value=!h.value,localStorage.setItem(_i,h.value?"visible":"hidden")}st(l,I=>{I&&(h.value=!1)});const C=re(()=>r.value?kc(r.value):Hc(d.value)),S=re(()=>{const I=hc();return Array.from(I.entries()).filter(([q])=>C.value.has(q)).map(([q,K])=>({name:q,metrics:K}))});function D(I){return I?i[I]||[]:[]}const U=re(()=>r.value?`${r.value.cpuPercent.toFixed(0)}%`:"..."),R=re(()=>r.value?r.value.memHeapUsed!==void 0?Math.round(r.value.memHeapUsed/(1024*1024))+"M":"-":"..."),L=re(()=>r.value?r.value.redisOk?"✓":"✗":"..."),M=re(()=>f.value);return(I,q)=>(V(),Y(me,null,[de(l)?le("",!0):(V(),Y("div",{key:0,id:"ss-bar",class:Ee(["ss-bar",{"ss-hidden":!h.value}]),"data-ss-theme":M.value},[J("div",ua,[de(d).tracing||C.value.has("redis")||C.value.has("queue")?(V(),Y("button",{key:0,type:"button",class:Ee(["ss-dbg-btn",{"ss-dbg-active":e.debugPanelOpen}]),title:"Toggle debug panel",id:"ss-dbg-wrench",onClick:q[0]||(q[0]=K=>n("openDebugPanel"))},[(V(),Y("svg",{width:"14",height:"14",viewBox:de(vi).wrench.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:de(vi).wrench.elements.join("")},null,8,fa))],2)):le("",!0),J("div",{class:Ee(["ss-dot",{"ss-stale":de(o)}])},null,2)]),J("div",{ref_key:"scrollRef",ref:v,id:"ss-bar-scroll",class:"ss-bar-scroll"},[(V(!0),Y(me,null,_r(S.value,(K,se)=>(V(),Y(me,{key:K.name},[J("div",da,[(V(!0),Y(me,null,_r(K.metrics,ee=>(V(),fn(ca,{key:ee.id,metric:ee,stats:de(r),history:D(ee.historyKey)},null,8,["metric","stats","history"]))),128))]),se<S.value.length-1?(V(),Y("div",ha)):le("",!0)],64))),128))],512)],10,aa)),de(l)?le("",!0):(V(),Y("button",{key:1,type:"button",class:Ee(["ss-toggle",h.value?"ss-visible":"ss-collapsed"]),"data-ss-theme":M.value,title:h.value?"Hide stats bar":"Show stats bar",onClick:w},[!h.value&&de(r)?(V(),Y("span",ga,[C.value.has("process")?(V(),Y("span",{key:0,class:Ee(["ss-value",de(r).cpuPercent>80?"ss-red":de(r).cpuPercent>50?"ss-amber":"ss-green"])},ue(U.value),3)):le("",!0),C.value.has("process")?(V(),Y("span",ma,ue(R.value),1)):le("",!0),C.value.has("redis")&&de(r)?.redisOk!==void 0?(V(),Y("span",{key:2,class:Ee(["ss-value",de(r)?.redisOk?"ss-green":"ss-red"])},ue(L.value),3)):le("",!0)])):le("",!0),h.value?(V(),Y("span",ya,"hide stats")):le("",!0),J("span",ba,ue(h.value?"▼":"▲"),1)],10,pa))],64))}});function _a(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}const Oe=_a("ss-bar-config");function xa(){if(window.__ssDebugPanel)return!0;const e=document.querySelector('script[type="text/plain"][data-ss-deferred="debug-panel"]');if(!e)return console.error("[server-stats] Deferred debug panel script not found"),!1;try{const t=document.createElement("script");t.textContent=e.textContent,document.head.appendChild(t)}catch(t){return console.error("[server-stats] Debug panel script evaluation failed:",t),!1}return window.__ssDebugPanel?!0:(console.error("[server-stats] Debug panel failed to register after script evaluation"),!1)}function wa(){let e=document.getElementById("ss-dbg-deferred");if(!e){e=document.createElement("div"),e.id="ss-dbg-deferred";const t=document.getElementById("ss-bar");t?.parentNode?t.parentNode.insertBefore(e,t.nextSibling):document.body.appendChild(e)}return e}function Ta(e,t,s){if(e.value||(e.value=xa()),!window.__ssDebugPanel){console.error("[server-stats] Debug panel not available after load attempt");return}if(!t){console.error("[server-stats] Debug config is undefined");return}const n=wa();try{window.__ssDebugPanel.mount(n,t,s)}catch(r){console.error("[server-stats] Debug panel mount failed:",r)}}function Sa(){const e=document.getElementById("ss-dbg-deferred");if(!(!window.__ssDebugPanel||!e))try{window.__ssDebugPanel.unmount(e)}catch(t){console.error("[server-stats] Debug panel unmount failed:",t)}}function Ea(e,t,s,n){st([e,t],([r,i])=>{r?Ta(s,n,i):Sa()},{flush:"post"})}function Ca(e,t){return()=>Rl(va,{endpoint:Oe.endpoint,pollInterval:Oe.pollInterval,channelName:Oe.channelName,authToken:Oe.authToken,debugEndpoint:Oe.debugEndpoint,debugPanelOpen:e.value,onOpenDebugPanel:Oe.showDebug?()=>{e.value=!e.value}:void 0,onConnectionChange:s=>{t.value=s}})}const Ma=fs({setup(){const e=te(!1),t=te(!1),s=te(!1),n=Oe.showDebug?{debugEndpoint:Oe.debugEndpoint,authToken:Oe.authToken,dashboardPath:Oe.dashboardPath}:void 0;return Oe.showDebug&&Ea(e,t,s,n),Ca(e,t)}}),xi=document.getElementById("ss-bar");xi&&nc(Ma).mount(xi)})();
4
+ `],...mo(s))}),t}function mo({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,r=` at <${Xr(e.component,e.type,n)}`,i=">"+s;return e.props?[r,...yo(e.props),i]:[r+i]}function yo(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...er(n,e[n]))}),s.length>3&&t.push(" ..."),t}function er(e,t,s){return Z(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:oe(t)?(t=er(e,k(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):F(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=k(t),s?t:[`${e}=`,t])}function yt(e,t,s,n){try{return n?e(...n):e()}catch(r){is(r,t,s)}}function Ue(e,t,s,n){if(F(e)){const r=yt(e,t,s,n);return r&&Cn(r)&&r.catch(i=>{is(i,t,s)}),r}if(O(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Ue(e[i],t,s,n));return r}}function is(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||z;if(t){let l=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const f=l.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](e,c,d)===!1)return}l=l.parent}if(i){Ie(),yt(i,null,10,[e,c,d]),De();return}}bo(e,s,r,n,o)}function bo(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const pe=[];let He=-1;const bt=[];let tt=null,vt=0;const tr=Promise.resolve();let os=null;function sr(e){const t=os||tr;return e?t.then(this?e.bind(this):e):t}function vo(e){let t=He+1,s=pe.length;for(;t<s;){const n=t+s>>>1,r=pe[n],i=$t(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function Ys(e){if(!(e.flags&1)){const t=$t(e),s=pe[pe.length-1];!s||!(e.flags&2)&&t>=$t(s)?pe.push(e):pe.splice(vo(t),0,e),e.flags|=1,nr()}}function nr(){os||(os=tr.then(or))}function _o(e){O(e)?bt.push(...e):tt&&e.id===-1?tt.splice(vt+1,0,e):e.flags&1||(bt.push(e),e.flags|=1),nr()}function rr(e,t,s=He+1){for(;s<pe.length;s++){const n=pe[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;pe.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function ir(e){if(bt.length){const t=[...new Set(bt)].sort((s,n)=>$t(s)-$t(n));if(bt.length=0,tt){tt.push(...t);return}for(tt=t,vt=0;vt<tt.length;vt++){const s=tt[vt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}tt=null,vt=0}}const $t=e=>e.id==null?e.flags&2?-1:1/0:e.id;function or(e){try{for(He=0;He<pe.length;He++){const t=pe[He];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),yt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;He<pe.length;He++){const t=pe[He];t&&(t.flags&=-2)}He=-1,pe.length=0,ir(),os=null,(pe.length||bt.length)&&or()}}let ke=null,lr=null;function ls(e){const t=ke;return ke=e,lr=e&&e.type.__scopeId||null,t}function xo(e,t=ke,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&ys(-1);const i=ls(t);let o;try{o=e(...r)}finally{ls(i),n._d&&ys(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function ct(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[n];c&&(Ie(),Ue(c,s,8,[e.el,l,e,t]),De())}}function wo(e,t){if(ye){let s=ye.provides;const n=ye.parent&&ye.parent.provides;n===s&&(s=ye.provides=Object.create(n)),s[e]=t}}function cs(e,t,s=!1){const n=xl();if(n||_t){let r=_t?_t._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&F(t)?t.call(n&&n.proxy):t}}const To=Symbol.for("v-scx"),So=()=>cs(To);function st(e,t,s){return cr(e,t,s)}function cr(e,t,s=z){const{immediate:n,deep:r,flush:i,once:o}=s,l=ie({},s),c=t&&n||!t&&i!=="post";let d;if(jt){if(i==="sync"){const w=So();d=w.__watcherHandles||(w.__watcherHandles=[])}else if(!c){const w=()=>{};return w.stop=$e,w.resume=$e,w.pause=$e,w}}const f=ye;l.call=(w,C,S)=>Ue(w,f,C,S);let h=!1;i==="post"?l.scheduler=w=>{he(w,f&&f.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(w,C)=>{C?w():Ys(w)}),l.augmentJob=w=>{t&&(w.flags|=4),h&&(w.flags|=2,f&&(w.id=f.uid,w.i=f))};const v=ho(e,t,l);return jt&&(d?d.push(v):c&&v()),v}function Eo(e,t,s){const n=this.proxy,r=Z(e)?e.includes(".")?ar(n,e):()=>n[e]:e.bind(n,n);let i;F(t)?i=t:(i=t.handler,s=t);const o=Kt(this),l=cr(r,i.bind(n),s);return o(),l}function ar(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const ur=Symbol("_vte"),Co=e=>e.__isTeleport,Ft=e=>e&&(e.disabled||e.disabled===""),fr=e=>e&&(e.defer||e.defer===""),dr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,hr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Js=(e,t)=>{const s=e&&e.to;return Z(s)?t?t(s):null:s},pr={name:"Teleport",__isTeleport:!0,process(e,t,s,n,r,i,o,l,c,d){const{mc:f,pc:h,pbc:v,o:{insert:w,querySelector:C,createText:S,createComment:D}}=d,U=Ft(t.props);let{shapeFlag:R,children:L,dynamicChildren:M}=t;if(e==null){const I=t.el=S(""),q=t.anchor=S("");w(I,s,n),w(q,s,n);const K=(ee,ce)=>{R&16&&f(L,ee,ce,r,i,o,l,c)},se=()=>{const ee=t.target=Js(t.props,C),ce=Xs(ee,t,S,w);ee&&(o!=="svg"&&dr(ee)?o="svg":o!=="mathml"&&hr(ee)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(ee),U||(K(ee,ce),us(t,!1)))};U&&(K(s,q),us(t,!0)),fr(t.props)?(t.el.__isMounted=!1,he(()=>{se(),delete t.el.__isMounted},i)):se()}else{if(fr(t.props)&&e.el.__isMounted===!1){he(()=>{pr.process(e,t,s,n,r,i,o,l,c,d)},i);return}t.el=e.el,t.targetStart=e.targetStart;const I=t.anchor=e.anchor,q=t.target=e.target,K=t.targetAnchor=e.targetAnchor,se=Ft(e.props),ee=se?s:q,ce=se?I:K;if(o==="svg"||dr(q)?o="svg":(o==="mathml"||hr(q))&&(o="mathml"),M?(v(e.dynamicChildren,M,ee,r,i,o,l),an(e,t,!0)):c||h(e,t,ee,ce,r,i,o,l,!1),U)se?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):as(t,s,I,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Me=t.target=Js(t.props,C);Me&&as(t,Me,null,d,0)}else se&&as(t,q,K,d,1);us(t,U)}},remove(e,t,s,{um:n,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:d,targetAnchor:f,target:h,props:v}=e;if(h&&(r(d),r(f)),i&&r(c),o&16){const w=i||!Ft(v);for(let C=0;C<l.length;C++){const S=l[C];n(S,t,s,w,!!S.dynamicChildren)}}},move:as,hydrate:Mo};function as(e,t,s,{o:{insert:n},m:r},i=2){i===0&&n(e.targetAnchor,t,s);const{el:o,anchor:l,shapeFlag:c,children:d,props:f}=e,h=i===2;if(h&&n(o,t,s),(!h||Ft(f))&&c&16)for(let v=0;v<d.length;v++)r(d[v],t,s,2);h&&n(l,t,s)}function Mo(e,t,s,n,r,i,{o:{nextSibling:o,parentNode:l,querySelector:c,insert:d,createText:f}},h){function v(D,U){let R=U;for(;R;){if(R&&R.nodeType===8){if(R.data==="teleport start anchor")t.targetStart=R;else if(R.data==="teleport anchor"){t.targetAnchor=R,D._lpa=t.targetAnchor&&o(t.targetAnchor);break}}R=o(R)}}function w(D,U){U.anchor=h(o(D),U,l(D),s,n,r,i)}const C=t.target=Js(t.props,c),S=Ft(t.props);if(C){const D=C._lpa||C.firstChild;t.shapeFlag&16&&(S?(w(e,t),v(C,D),t.targetAnchor||Xs(C,t,f,d,l(e)===C?e:null)):(t.anchor=o(e),v(C,D),t.targetAnchor||Xs(C,t,f,d),h(D&&o(D),t,C,s,n,r,i))),us(t,S)}else S&&t.shapeFlag&16&&(w(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const Ao=pr;function us(e,t){const s=e.ctx;if(s&&s.ut){let n,r;for(t?(n=e.el,r=e.anchor):(n=e.targetStart,r=e.targetAnchor);n&&n!==r;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function Xs(e,t,s,n,r=null){const i=t.targetStart=s(""),o=t.targetAnchor=s("");return i[ur]=o,e&&(n(i,e,r),n(o,e,r)),o}const Po=Symbol("_leaveCb");function Qs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qs(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 fs(e,t){return F(e)?ie({name:e.name},t,{setup:e}):e}function gr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mr(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ds=new WeakMap;function It(e,t,s,n,r=!1){if(O(e)){e.forEach((S,D)=>It(S,t&&(O(t)?t[D]:t),s,n,r));return}if(Dt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&It(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?pn(n.component):n.el,o=r?null:i,{i:l,r:c}=e,d=t&&t.r,f=l.refs===z?l.refs={}:l.refs,h=l.setupState,v=k(h),w=h===z?Tn:S=>mr(f,S)?!1:N(v,S),C=(S,D)=>!(D&&mr(f,D));if(d!=null&&d!==c){if(yr(t),Z(d))f[d]=null,w(d)&&(h[d]=null);else if(oe(d)){const S=t;C(d,S.k)&&(d.value=null),S.k&&(f[S.k]=null)}}if(F(c))yt(c,l,12,[o,f]);else{const S=Z(c),D=oe(c);if(S||D){const U=()=>{if(e.f){const R=S?w(c)?h[c]:f[c]:C()||!e.k?c.value:f[e.k];if(r)O(R)&&Ps(R,i);else if(O(R))R.includes(i)||R.push(i);else if(S)f[c]=[i],w(c)&&(h[c]=f[c]);else{const L=[i];C(c,e.k)&&(c.value=L),e.k&&(f[e.k]=L)}}else S?(f[c]=o,w(c)&&(h[c]=o)):D&&(C(c,e.k)&&(c.value=o),e.k&&(f[e.k]=o))};if(o){const R=()=>{U(),ds.delete(e)};R.id=-1,ds.set(e,R),he(R,s)}else yr(e),U()}}}function yr(e){const t=ds.get(e);t&&(t.flags|=8,ds.delete(e))}Jt().requestIdleCallback,Jt().cancelIdleCallback;const Dt=e=>!!e.type.__asyncLoader,br=e=>e.type.__isKeepAlive;function Ro(e,t){vr(e,"a",t)}function Oo(e,t){vr(e,"da",t)}function vr(e,t,s=ye){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(hs(t,n,s),s){let r=s.parent;for(;r&&r.parent;)br(r.parent.vnode)&&$o(n,t,s,r),r=r.parent}}function $o(e,t,s,n){const r=hs(t,e,n,!0);Ut(()=>{Ps(n[t],r)},s)}function hs(e,t,s=ye,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Ie();const l=Kt(s),c=Ue(t,s,e,o);return l(),De(),c});return n?r.unshift(i):r.push(i),i}}const Ge=e=>(t,s=ye)=>{(!jt||e==="sp")&&hs(e,(...n)=>t(...n),s)},Fo=Ge("bm"),at=Ge("m"),Io=Ge("bu"),Do=Ge("u"),Zs=Ge("bum"),Ut=Ge("um"),Uo=Ge("sp"),Ho=Ge("rtg"),ko=Ge("rtc");function Lo(e,t=ye){hs("ec",e,t)}const Bo=Symbol.for("v-ndc");function _r(e,t,s,n){let r;const i=s,o=O(e);if(o||Z(e)){const l=o&&ot(e);let c=!1,d=!1;l&&(c=!Ce(e),d=ze(e),e=Xt(e)),r=new Array(e.length);for(let f=0,h=e.length;f<h;f++)r[f]=t(c?d?mt(Re(e[f])):Re(e[f]):e[f],f,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(j(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,d=l.length;c<d;c++){const f=l[c];r[c]=t(e[f],f,c,i)}}else r=[];return r}const en=e=>e?Gr(e)?pn(e):en(e.parent):null,Ht=ie(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=>en(e.parent),$root:e=>en(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Sr(e),$forceUpdate:e=>e.f||(e.f=()=>{Ys(e.update)}),$nextTick:e=>e.n||(e.n=sr.bind(e.proxy)),$watch:e=>Eo.bind(e)}),tn=(e,t)=>e!==z&&!e.__isScriptSetup&&N(e,t),No={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(tn(n,t))return o[t]=1,n[t];if(r!==z&&N(r,t))return o[t]=2,r[t];if(N(i,t))return o[t]=3,i[t];if(s!==z&&N(s,t))return o[t]=4,s[t];sn&&(o[t]=0)}}const d=Ht[t];let f,h;if(d)return t==="$attrs"&&fe(e.attrs,"get",""),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(s!==z&&N(s,t))return o[t]=4,s[t];if(h=c.config.globalProperties,N(h,t))return h[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return tn(r,t)?(r[t]=s,!0):n!==z&&N(n,t)?(n[t]=s,!0):N(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:o}},l){let c;return!!(s[l]||e!==z&&l[0]!=="$"&&N(e,l)||tn(t,l)||N(i,l)||N(n,l)||N(Ht,l)||N(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:N(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function xr(e){return O(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let sn=!0;function Ko(e){const t=Sr(e),s=e.proxy,n=e.ctx;sn=!1,t.beforeCreate&&wr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:d,created:f,beforeMount:h,mounted:v,beforeUpdate:w,updated:C,activated:S,deactivated:D,beforeDestroy:U,beforeUnmount:R,destroyed:L,unmounted:M,render:I,renderTracked:q,renderTriggered:K,errorCaptured:se,serverPrefetch:ee,expose:ce,inheritAttrs:Me,components:ne,directives:_e,filters:wt}=t;if(d&&jo(d,n,null),o)for(const Q in o){const B=o[Q];F(B)&&(n[Q]=B.bind(s))}if(r){const Q=r.call(s,s);j(Q)&&(e.data=ts(Q))}if(sn=!0,i)for(const Q in i){const B=i[Q],Ae=F(B)?B.bind(s,s):F(B.get)?B.get.bind(s,s):$e,Es=!F(B)&&F(B.set)?B.set.bind(s):$e,dt=re({get:Ae,set:Es});Object.defineProperty(n,Q,{enumerable:!0,configurable:!0,get:()=>dt.value,set:Ne=>dt.value=Ne})}if(l)for(const Q in l)Tr(l[Q],n,s,Q);if(c){const Q=F(c)?c.call(s):c;Reflect.ownKeys(Q).forEach(B=>{wo(B,Q[B])})}f&&wr(f,e,"c");function ae(Q,B){O(B)?B.forEach(Ae=>Q(Ae.bind(s))):B&&Q(B.bind(s))}if(ae(Fo,h),ae(at,v),ae(Io,w),ae(Do,C),ae(Ro,S),ae(Oo,D),ae(Lo,se),ae(ko,q),ae(Ho,K),ae(Zs,R),ae(Ut,M),ae(Uo,ee),O(ce))if(ce.length){const Q=e.exposed||(e.exposed={});ce.forEach(B=>{Object.defineProperty(Q,B,{get:()=>s[B],set:Ae=>s[B]=Ae,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===$e&&(e.render=I),Me!=null&&(e.inheritAttrs=Me),ne&&(e.components=ne),_e&&(e.directives=_e),ee&&gr(e)}function jo(e,t,s=$e){O(e)&&(e=nn(e));for(const n in e){const r=e[n];let i;j(r)?"default"in r?i=cs(r.from||n,r.default,!0):i=cs(r.from||n):i=cs(r),oe(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function wr(e,t,s){Ue(O(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Tr(e,t,s,n){let r=n.includes(".")?ar(s,n):()=>s[n];if(Z(e)){const i=t[e];F(i)&&st(r,i)}else if(F(e))st(r,e.bind(s));else if(j(e))if(O(e))e.forEach(i=>Tr(i,t,s,n));else{const i=F(e.handler)?e.handler.bind(s):t[e.handler];F(i)&&st(r,i,e)}}function Sr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!s&&!n?c=t:(c={},r.length&&r.forEach(d=>ps(c,d,o,!0)),ps(c,t,o)),j(t)&&i.set(t,c),c}function ps(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&ps(e,i,s,!0),r&&r.forEach(o=>ps(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=Vo[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Vo={data:Er,props:Cr,emits:Cr,methods:kt,computed:kt,beforeCreate:ge,created:ge,beforeMount:ge,mounted:ge,beforeUpdate:ge,updated:ge,beforeDestroy:ge,beforeUnmount:ge,destroyed:ge,unmounted:ge,activated:ge,deactivated:ge,errorCaptured:ge,serverPrefetch:ge,components:kt,directives:kt,watch:qo,provide:Er,inject:Wo};function Er(e,t){return t?e?function(){return ie(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function Wo(e,t){return kt(nn(e),nn(t))}function nn(e){if(O(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ge(e,t){return e?[...new Set([].concat(e,t))]:t}function kt(e,t){return e?ie(Object.create(null),e,t):t}function Cr(e,t){return e?O(e)&&O(t)?[...new Set([...e,...t])]:ie(Object.create(null),xr(e),xr(t??{})):t}function qo(e,t){if(!e)return t;if(!t)return e;const s=ie(Object.create(null),e);for(const n in t)s[n]=ge(e[n],t[n]);return s}function Mr(){return{app:null,config:{isNativeTag:Tn,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 zo=0;function Go(e,t){return function(n,r=null){F(n)||(n=ie({},n)),r!=null&&!j(r)&&(r=null);const i=Mr(),o=new WeakSet,l=[];let c=!1;const d=i.app={_uid:zo++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Ol,get config(){return i.config},set config(f){},use(f,...h){return o.has(f)||(f&&F(f.install)?(o.add(f),f.install(d,...h)):F(f)&&(o.add(f),f(d,...h))),d},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),d},component(f,h){return h?(i.components[f]=h,d):i.components[f]},directive(f,h){return h?(i.directives[f]=h,d):i.directives[f]},mount(f,h,v){if(!c){const w=d._ceVNode||ve(n,r);return w.appContext=i,v===!0?v="svg":v===!1&&(v=void 0),e(w,f,v),c=!0,d._container=f,f.__vue_app__=d,pn(w.component)}},onUnmount(f){l.push(f)},unmount(){c&&(Ue(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(f,h){return i.provides[f]=h,d},runWithContext(f){const h=_t;_t=d;try{return f()}finally{_t=h}}};return d}}let _t=null;const Yo=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Xe(t)}Modifiers`]||e[`${rt(t)}Modifiers`];function Jo(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||z;let r=s;const i=t.startsWith("update:"),o=i&&Yo(n,t.slice(7));o&&(o.trim&&(r=s.map(f=>Z(f)?f.trim():f)),o.number&&(r=s.map(Oi)));let l,c=n[l=Os(t)]||n[l=Os(Xe(t))];!c&&i&&(c=n[l=Os(rt(t))]),c&&Ue(c,e,6,r);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ue(d,e,6,r)}}const Xo=new WeakMap;function Ar(e,t,s=!1){const n=s?Xo:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!F(e)){const c=d=>{const f=Ar(d,t,!0);f&&(l=!0,ie(o,f))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(j(e)&&n.set(e,null),null):(O(i)?i.forEach(c=>o[c]=null):ie(o,i),j(e)&&n.set(e,o),o)}function gs(e,t){return!e||!Gt(t)?!1:(t=t.slice(2).replace(/Once$/,""),N(e,t[0].toLowerCase()+t.slice(1))||N(e,rt(t))||N(e,t))}function Fa(){}function Pr(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:d,renderCache:f,props:h,data:v,setupState:w,ctx:C,inheritAttrs:S}=e,D=ls(e);let U,R;try{if(s.shapeFlag&4){const M=r||n,I=M;U=Le(d.call(I,M,f,h,w,v,C)),R=l}else{const M=t;U=Le(M.length>1?M(h,{attrs:l,slots:o,emit:c}):M(h,null)),R=t.props?l:Qo(l)}}catch(M){Lt.length=0,is(M,e,1),U=ve(nt)}let L=U;if(R&&S!==!1){const M=Object.keys(R),{shapeFlag:I}=L;M.length&&I&7&&(i&&M.some(As)&&(R=Zo(R,i)),L=xt(L,R,!1,!0))}return s.dirs&&(L=xt(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(s.dirs):s.dirs),s.transition&&Qs(L,s.transition),U=L,ls(D),U}const Qo=e=>{let t;for(const s in e)(s==="class"||s==="style"||Gt(s))&&((t||(t={}))[s]=e[s]);return t},Zo=(e,t)=>{const s={};for(const n in e)(!As(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function el(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Rr(n,o,d):!!o;if(c&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const v=f[h];if(Or(o,n,v)&&!gs(d,v))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?Rr(n,o,d):!0:!!o;return!1}function Rr(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(Or(t,e,i)&&!gs(s,i))return!0}return!1}function Or(e,t,s){const n=e[s],r=t[s];return s==="style"&&j(n)&&j(r)?!Fs(n,r):n!==r}function tl({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const $r={},Fr=()=>Object.create($r),Ir=e=>Object.getPrototypeOf(e)===$r;function sl(e,t,s,n=!1){const r={},i=Fr();e.propsDefaults=Object.create(null),Dr(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:ro(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function nl(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=k(r),[c]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let v=f[h];if(gs(e.emitsOptions,v))continue;const w=t[v];if(c)if(N(i,v))w!==i[v]&&(i[v]=w,d=!0);else{const C=Xe(v);r[C]=rn(c,l,C,w,e,!1)}else w!==i[v]&&(i[v]=w,d=!0)}}}else{Dr(e,t,r,i)&&(d=!0);let f;for(const h in l)(!t||!N(t,h)&&((f=rt(h))===h||!N(t,f)))&&(c?s&&(s[h]!==void 0||s[f]!==void 0)&&(r[h]=rn(c,l,h,void 0,e,!0)):delete r[h]);if(i!==l)for(const h in i)(!t||!N(t,h))&&(delete i[h],d=!0)}d&&We(e.attrs,"set","")}function Dr(e,t,s,n){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(St(c))continue;const d=t[c];let f;r&&N(r,f=Xe(c))?!i||!i.includes(f)?s[f]=d:(l||(l={}))[f]=d:gs(e.emitsOptions,c)||(!(c in n)||d!==n[c])&&(n[c]=d,o=!0)}if(i){const c=k(s),d=l||z;for(let f=0;f<i.length;f++){const h=i[f];s[h]=rn(r,c,h,d[h],e,!N(d,h))}}return o}function rn(e,t,s,n,r,i){const o=e[s];if(o!=null){const l=N(o,"default");if(l&&n===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&F(c)){const{propsDefaults:d}=r;if(s in d)n=d[s];else{const f=Kt(r);n=d[s]=c.call(null,t),f()}}else n=c;r.ce&&r.ce._setProp(s,n)}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===rt(s))&&(n=!0))}return n}const rl=new WeakMap;function Ur(e,t,s=!1){const n=s?rl:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,o={},l=[];let c=!1;if(!F(e)){const f=h=>{c=!0;const[v,w]=Ur(h,t,!0);ie(o,v),w&&l.push(...w)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!c)return j(e)&&n.set(e,ht),ht;if(O(i))for(let f=0;f<i.length;f++){const h=Xe(i[f]);Hr(h)&&(o[h]=z)}else if(i)for(const f in i){const h=Xe(f);if(Hr(h)){const v=i[f],w=o[h]=O(v)||F(v)?{type:v}:ie({},v),C=w.type;let S=!1,D=!0;if(O(C))for(let U=0;U<C.length;++U){const R=C[U],L=F(R)&&R.name;if(L==="Boolean"){S=!0;break}else L==="String"&&(D=!1)}else S=F(C)&&C.name==="Boolean";w[0]=S,w[1]=D,(S||N(w,"default"))&&l.push(h)}}const d=[o,l];return j(e)&&n.set(e,d),d}function Hr(e){return e[0]!=="$"&&!St(e)}const on=e=>e==="_"||e==="_ctx"||e==="$stable",ln=e=>O(e)?e.map(Le):[Le(e)],il=(e,t,s)=>{if(t._n)return t;const n=xo((...r)=>ln(t(...r)),s);return n._c=!1,n},kr=(e,t,s)=>{const n=e._ctx;for(const r in e){if(on(r))continue;const i=e[r];if(F(i))t[r]=il(r,i,n);else if(i!=null){const o=ln(i);t[r]=()=>o}}},Lr=(e,t)=>{const s=ln(t);e.slots.default=()=>s},Br=(e,t,s)=>{for(const n in t)(s||!on(n))&&(e[n]=t[n])},ol=(e,t,s)=>{const n=e.slots=Fr();if(e.vnode.shapeFlag&32){const r=t._;r?(Br(n,t,s),s&&Rn(n,"_",r,!0)):kr(t,n)}else t&&Lr(e,t)},ll=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=z;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:Br(r,t,s):(i=!t.$stable,kr(t,r)),o=t}else t&&(Lr(e,t),o={default:1});if(i)for(const l in r)!on(l)&&o[l]==null&&delete r[l]},he=dl;function cl(e){return al(e)}function al(e,t){const s=Jt();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:d,setElementText:f,parentNode:h,nextSibling:v,setScopeId:w=$e,insertStaticContent:C}=e,S=(a,u,p,b=null,g=null,m=null,T=void 0,x=null,_=!!u.dynamicChildren)=>{if(a===u)return;a&&!Nt(a,u)&&(b=Cs(a),Ne(a,g,m,!0),a=null),u.patchFlag===-2&&(_=!1,u.dynamicChildren=null);const{type:y,ref:P,shapeFlag:E}=u;switch(y){case ms:D(a,u,p,b);break;case nt:U(a,u,p,b);break;case un:a==null&&R(u,p,b,T);break;case me:ne(a,u,p,b,g,m,T,x,_);break;default:E&1?I(a,u,p,b,g,m,T,x,_):E&6?_e(a,u,p,b,g,m,T,x,_):(E&64||E&128)&&y.process(a,u,p,b,g,m,T,x,_,qt)}P!=null&&g?It(P,a&&a.ref,m,u||a,!u):P==null&&a&&a.ref!=null&&It(a.ref,null,m,a,!0)},D=(a,u,p,b)=>{if(a==null)n(u.el=l(u.children),p,b);else{const g=u.el=a.el;u.children!==a.children&&d(g,u.children)}},U=(a,u,p,b)=>{a==null?n(u.el=c(u.children||""),p,b):u.el=a.el},R=(a,u,p,b)=>{[a.el,a.anchor]=C(a.children,u,p,b,a.el,a.anchor)},L=({el:a,anchor:u},p,b)=>{let g;for(;a&&a!==u;)g=v(a),n(a,p,b),a=g;n(u,p,b)},M=({el:a,anchor:u})=>{let p;for(;a&&a!==u;)p=v(a),r(a),a=p;r(u)},I=(a,u,p,b,g,m,T,x,_)=>{if(u.type==="svg"?T="svg":u.type==="math"&&(T="mathml"),a==null)q(u,p,b,g,m,T,x,_);else{const y=a.el&&a.el._isVueCE?a.el:null;try{y&&y._beginPatch(),ee(a,u,g,m,T,x,_)}finally{y&&y._endPatch()}}},q=(a,u,p,b,g,m,T,x)=>{let _,y;const{props:P,shapeFlag:E,transition:A,dirs:$}=a;if(_=a.el=o(a.type,m,P&&P.is,P),E&8?f(_,a.children):E&16&&se(a.children,_,null,b,g,cn(a,m),T,x),$&&ct(a,null,b,"created"),K(_,a,a.scopeId,T,b),P){for(const X in P)X!=="value"&&!St(X)&&i(_,X,null,P[X],m,b);"value"in P&&i(_,"value",null,P.value,m),(y=P.onVnodeBeforeMount)&&Be(y,b,a)}$&&ct(a,null,b,"beforeMount");const H=ul(g,A);H&&A.beforeEnter(_),n(_,u,p),((y=P&&P.onVnodeMounted)||H||$)&&he(()=>{y&&Be(y,b,a),H&&A.enter(_),$&&ct(a,null,b,"mounted")},g)},K=(a,u,p,b,g)=>{if(p&&w(a,p),b)for(let m=0;m<b.length;m++)w(a,b[m]);if(g){let m=g.subTree;if(u===m||Vr(m.type)&&(m.ssContent===u||m.ssFallback===u)){const T=g.vnode;K(a,T,T.scopeId,T.slotScopeIds,g.parent)}}},se=(a,u,p,b,g,m,T,x,_=0)=>{for(let y=_;y<a.length;y++){const P=a[y]=x?Ye(a[y]):Le(a[y]);S(null,P,u,p,b,g,m,T,x)}},ee=(a,u,p,b,g,m,T)=>{const x=u.el=a.el;let{patchFlag:_,dynamicChildren:y,dirs:P}=u;_|=a.patchFlag&16;const E=a.props||z,A=u.props||z;let $;if(p&&ut(p,!1),($=A.onVnodeBeforeUpdate)&&Be($,p,u,a),P&&ct(u,a,p,"beforeUpdate"),p&&ut(p,!0),(E.innerHTML&&A.innerHTML==null||E.textContent&&A.textContent==null)&&f(x,""),y?ce(a.dynamicChildren,y,x,p,b,cn(u,g),m):T||B(a,u,x,null,p,b,cn(u,g),m,!1),_>0){if(_&16)Me(x,E,A,p,g);else if(_&2&&E.class!==A.class&&i(x,"class",null,A.class,g),_&4&&i(x,"style",E.style,A.style,g),_&8){const H=u.dynamicProps;for(let X=0;X<H.length;X++){const W=H[X],xe=E[W],we=A[W];(we!==xe||W==="value")&&i(x,W,xe,we,g,p)}}_&1&&a.children!==u.children&&f(x,u.children)}else!T&&y==null&&Me(x,E,A,p,g);(($=A.onVnodeUpdated)||P)&&he(()=>{$&&Be($,p,u,a),P&&ct(u,a,p,"updated")},b)},ce=(a,u,p,b,g,m,T)=>{for(let x=0;x<u.length;x++){const _=a[x],y=u[x],P=_.el&&(_.type===me||!Nt(_,y)||_.shapeFlag&198)?h(_.el):p;S(_,y,P,null,b,g,m,T,!0)}},Me=(a,u,p,b,g)=>{if(u!==p){if(u!==z)for(const m in u)!St(m)&&!(m in p)&&i(a,m,u[m],null,g,b);for(const m in p){if(St(m))continue;const T=p[m],x=u[m];T!==x&&m!=="value"&&i(a,m,x,T,g,b)}"value"in p&&i(a,"value",u.value,p.value,g)}},ne=(a,u,p,b,g,m,T,x,_)=>{const y=u.el=a?a.el:l(""),P=u.anchor=a?a.anchor:l("");let{patchFlag:E,dynamicChildren:A,slotScopeIds:$}=u;$&&(x=x?x.concat($):$),a==null?(n(y,p,b),n(P,p,b),se(u.children||[],p,P,g,m,T,x,_)):E>0&&E&64&&A&&a.dynamicChildren&&a.dynamicChildren.length===A.length?(ce(a.dynamicChildren,A,p,g,m,T,x),(u.key!=null||g&&u===g.subTree)&&an(a,u,!0)):B(a,u,p,P,g,m,T,x,_)},_e=(a,u,p,b,g,m,T,x,_)=>{u.slotScopeIds=x,a==null?u.shapeFlag&512?g.ctx.activate(u,p,b,T,_):wt(u,p,b,g,m,T,_):Vt(a,u,_)},wt=(a,u,p,b,g,m,T)=>{const x=a.component=_l(a,b,g);if(br(a)&&(x.ctx.renderer=qt),wl(x,!1,T),x.asyncDep){if(g&&g.registerDep(x,ae,T),!a.el){const _=x.subTree=ve(nt);U(null,_,u,p),a.placeholder=_.el}}else ae(x,a,u,p,g,m,T)},Vt=(a,u,p)=>{const b=u.component=a.component;if(el(a,u,p))if(b.asyncDep&&!b.asyncResolved){Q(b,u,p);return}else b.next=u,b.update();else u.el=a.el,b.vnode=u},ae=(a,u,p,b,g,m,T)=>{const x=()=>{if(a.isMounted){let{next:E,bu:A,u:$,parent:H,vnode:X}=a;{const je=Nr(a);if(je){E&&(E.el=X.el,Q(a,E,T)),je.asyncDep.then(()=>{he(()=>{a.isUnmounted||y()},g)});return}}let W=E,xe;ut(a,!1),E?(E.el=X.el,Q(a,E,T)):E=X,A&&$s(A),(xe=E.props&&E.props.onVnodeBeforeUpdate)&&Be(xe,H,E,X),ut(a,!0);const we=Pr(a),Ke=a.subTree;a.subTree=we,S(Ke,we,h(Ke.el),Cs(Ke),a,g,m),E.el=we.el,W===null&&tl(a,we.el),$&&he($,g),(xe=E.props&&E.props.onVnodeUpdated)&&he(()=>Be(xe,H,E,X),g)}else{let E;const{el:A,props:$}=u,{bm:H,m:X,parent:W,root:xe,type:we}=a,Ke=Dt(u);ut(a,!1),H&&$s(H),!Ke&&(E=$&&$.onVnodeBeforeMount)&&Be(E,W,u),ut(a,!0);{xe.ce&&xe.ce._hasShadowRoot()&&xe.ce._injectChildStyle(we);const je=a.subTree=Pr(a);S(null,je,p,b,a,g,m),u.el=je.el}if(X&&he(X,g),!Ke&&(E=$&&$.onVnodeMounted)){const je=u;he(()=>Be(E,W,je),g)}(u.shapeFlag&256||W&&Dt(W.vnode)&&W.vnode.shapeFlag&256)&&a.a&&he(a.a,g),a.isMounted=!0,u=p=b=null}};a.scope.on();const _=a.effect=new Dn(x);a.scope.off();const y=a.update=_.run.bind(_),P=a.job=_.runIfDirty.bind(_);P.i=a,P.id=a.uid,_.scheduler=()=>Ys(P),ut(a,!0),y()},Q=(a,u,p)=>{u.component=a;const b=a.vnode.props;a.vnode=u,a.next=null,nl(a,u.props,b,p),ll(a,u.children,p),Ie(),rr(a),De()},B=(a,u,p,b,g,m,T,x,_=!1)=>{const y=a&&a.children,P=a?a.shapeFlag:0,E=u.children,{patchFlag:A,shapeFlag:$}=u;if(A>0){if(A&128){Es(y,E,p,b,g,m,T,x,_);return}else if(A&256){Ae(y,E,p,b,g,m,T,x,_);return}}$&8?(P&16&&Wt(y,g,m),E!==y&&f(p,E)):P&16?$&16?Es(y,E,p,b,g,m,T,x,_):Wt(y,g,m,!0):(P&8&&f(p,""),$&16&&se(E,p,b,g,m,T,x,_))},Ae=(a,u,p,b,g,m,T,x,_)=>{a=a||ht,u=u||ht;const y=a.length,P=u.length,E=Math.min(y,P);let A;for(A=0;A<E;A++){const $=u[A]=_?Ye(u[A]):Le(u[A]);S(a[A],$,p,null,g,m,T,x,_)}y>P?Wt(a,g,m,!0,!1,E):se(u,p,b,g,m,T,x,_,E)},Es=(a,u,p,b,g,m,T,x,_)=>{let y=0;const P=u.length;let E=a.length-1,A=P-1;for(;y<=E&&y<=A;){const $=a[y],H=u[y]=_?Ye(u[y]):Le(u[y]);if(Nt($,H))S($,H,p,null,g,m,T,x,_);else break;y++}for(;y<=E&&y<=A;){const $=a[E],H=u[A]=_?Ye(u[A]):Le(u[A]);if(Nt($,H))S($,H,p,null,g,m,T,x,_);else break;E--,A--}if(y>E){if(y<=A){const $=A+1,H=$<P?u[$].el:b;for(;y<=A;)S(null,u[y]=_?Ye(u[y]):Le(u[y]),p,H,g,m,T,x,_),y++}}else if(y>A)for(;y<=E;)Ne(a[y],g,m,!0),y++;else{const $=y,H=y,X=new Map;for(y=H;y<=A;y++){const Se=u[y]=_?Ye(u[y]):Le(u[y]);Se.key!=null&&X.set(Se.key,y)}let W,xe=0;const we=A-H+1;let Ke=!1,je=0;const zt=new Array(we);for(y=0;y<we;y++)zt[y]=0;for(y=$;y<=E;y++){const Se=a[y];if(xe>=we){Ne(Se,g,m,!0);continue}let Ve;if(Se.key!=null)Ve=X.get(Se.key);else for(W=H;W<=A;W++)if(zt[W-H]===0&&Nt(Se,u[W])){Ve=W;break}Ve===void 0?Ne(Se,g,m,!0):(zt[Ve-H]=y+1,Ve>=je?je=Ve:Ke=!0,S(Se,u[Ve],p,null,g,m,T,x,_),xe++)}const Si=Ke?fl(zt):ht;for(W=Si.length-1,y=we-1;y>=0;y--){const Se=H+y,Ve=u[Se],Ei=u[Se+1],Ci=Se+1<P?Ei.el||jr(Ei):b;zt[y]===0?S(null,Ve,p,Ci,g,m,T,x,_):Ke&&(W<0||y!==Si[W]?dt(Ve,p,Ci,2):W--)}}},dt=(a,u,p,b,g=null)=>{const{el:m,type:T,transition:x,children:_,shapeFlag:y}=a;if(y&6){dt(a.component.subTree,u,p,b);return}if(y&128){a.suspense.move(u,p,b);return}if(y&64){T.move(a,u,p,qt);return}if(T===me){n(m,u,p);for(let E=0;E<_.length;E++)dt(_[E],u,p,b);n(a.anchor,u,p);return}if(T===un){L(a,u,p);return}if(b!==2&&y&1&&x)if(b===0)x.beforeEnter(m),n(m,u,p),he(()=>x.enter(m),g);else{const{leave:E,delayLeave:A,afterLeave:$}=x,H=()=>{a.ctx.isUnmounted?r(m):n(m,u,p)},X=()=>{m._isLeaving&&m[Po](!0),E(m,()=>{H(),$&&$()})};A?A(m,H,X):X()}else n(m,u,p)},Ne=(a,u,p,b=!1,g=!1)=>{const{type:m,props:T,ref:x,children:_,dynamicChildren:y,shapeFlag:P,patchFlag:E,dirs:A,cacheIndex:$}=a;if(E===-2&&(g=!1),x!=null&&(Ie(),It(x,null,p,a,!0),De()),$!=null&&(u.renderCache[$]=void 0),P&256){u.ctx.deactivate(a);return}const H=P&1&&A,X=!Dt(a);let W;if(X&&(W=T&&T.onVnodeBeforeUnmount)&&Be(W,u,a),P&6)Pa(a.component,p,b);else{if(P&128){a.suspense.unmount(p,b);return}H&&ct(a,null,u,"beforeUnmount"),P&64?a.type.remove(a,u,p,qt,b):y&&!y.hasOnce&&(m!==me||E>0&&E&64)?Wt(y,u,p,!1,!0):(m===me&&E&384||!g&&P&16)&&Wt(_,u,p),b&&wi(a)}(X&&(W=T&&T.onVnodeUnmounted)||H)&&he(()=>{W&&Be(W,u,a),H&&ct(a,null,u,"unmounted")},p)},wi=a=>{const{type:u,el:p,anchor:b,transition:g}=a;if(u===me){Aa(p,b);return}if(u===un){M(a);return}const m=()=>{r(p),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(a.shapeFlag&1&&g&&!g.persisted){const{leave:T,delayLeave:x}=g,_=()=>T(p,m);x?x(a.el,m,_):_()}else m()},Aa=(a,u)=>{let p;for(;a!==u;)p=v(a),r(a),a=p;r(u)},Pa=(a,u,p)=>{const{bum:b,scope:g,job:m,subTree:T,um:x,m:_,a:y}=a;Kr(_),Kr(y),b&&$s(b),g.stop(),m&&(m.flags|=8,Ne(T,a,u,p)),x&&he(x,u),he(()=>{a.isUnmounted=!0},u)},Wt=(a,u,p,b=!1,g=!1,m=0)=>{for(let T=m;T<a.length;T++)Ne(a[T],u,p,b,g)},Cs=a=>{if(a.shapeFlag&6)return Cs(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const u=v(a.anchor||a.el),p=u&&u[ur];return p?v(p):u};let wn=!1;const Ti=(a,u,p)=>{let b;a==null?u._vnode&&(Ne(u._vnode,null,null,!0),b=u._vnode.component):S(u._vnode||null,a,u,null,null,null,p),u._vnode=a,wn||(wn=!0,rr(b),ir(),wn=!1)},qt={p:S,um:Ne,m:dt,r:wi,mt:wt,mc:se,pc:B,pbc:ce,n:Cs,o:e};return{render:Ti,hydrate:void 0,createApp:Go(Ti)}}function cn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function ut({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ul(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function an(e,t,s=!1){const n=e.children,r=t.children;if(O(n)&&O(r))for(let i=0;i<n.length;i++){const o=n[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Ye(r[i]),l.el=o.el),!s&&l.patchFlag!==-2&&an(o,l)),l.type===ms&&(l.patchFlag===-1&&(l=r[i]=Ye(l)),l.el=o.el),l.type===nt&&!l.el&&(l.el=o.el)}}function fl(e){const t=e.slice(),s=[0];let n,r,i,o,l;const c=e.length;for(n=0;n<c;n++){const d=e[n];if(d!==0){if(r=s[s.length-1],e[r]<d){t[n]=r,s.push(n);continue}for(i=0,o=s.length-1;i<o;)l=i+o>>1,e[s[l]]<d?i=l+1:o=l;d<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function Nr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Nr(t)}function Kr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function jr(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?jr(t.subTree):null}const Vr=e=>e.__isSuspense;function dl(e,t){t&&t.pendingBranch?O(e)?t.effects.push(...e):t.effects.push(e):_o(e)}const me=Symbol.for("v-fgt"),ms=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),un=Symbol.for("v-stc"),Lt=[];let Te=null;function V(e=!1){Lt.push(Te=e?null:[])}function hl(){Lt.pop(),Te=Lt[Lt.length-1]||null}let Bt=1;function ys(e,t=!1){Bt+=e,e<0&&Te&&t&&(Te.hasOnce=!0)}function Wr(e){return e.dynamicChildren=Bt>0?Te||ht:null,hl(),Bt>0&&Te&&Te.push(e),e}function Y(e,t,s,n,r,i){return Wr(J(e,t,s,n,r,i,!0))}function fn(e,t,s,n,r){return Wr(ve(e,t,s,n,r,!0))}function bs(e){return e?e.__v_isVNode===!0:!1}function Nt(e,t){return e.type===t.type&&e.key===t.key}const qr=({key:e})=>e??null,vs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Z(e)||oe(e)||F(e)?{i:ke,r:e,k:t,f:!!s}:e:null);function J(e,t=null,s=null,n=0,r=null,i=e===me?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qr(t),ref:t&&vs(t),scopeId:lr,slotScopeIds:null,children:s,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ke};return l?(dn(c,s),i&128&&e.normalize(c)):s&&(c.shapeFlag|=Z(s)?8:16),Bt>0&&!o&&Te&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Te.push(c),c}const ve=pl;function pl(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===Bo)&&(e=nt),bs(e)){const l=xt(e,t,!0);return s&&dn(l,s),Bt>0&&!i&&Te&&(l.shapeFlag&6?Te[Te.indexOf(e)]=l:Te.push(l)),l.patchFlag=-2,l}if(Pl(e)&&(e=e.__vccOpts),t){t=gl(t);let{class:l,style:c}=t;l&&!Z(l)&&(t.class=Ee(l)),j(c)&&(zs(c)&&!O(c)&&(c=ie({},c)),t.style=Et(c))}const o=Z(e)?1:Vr(e)?128:Co(e)?64:j(e)?4:F(e)?2:0;return J(e,t,s,n,r,o,i,!0)}function gl(e){return e?zs(e)||Ir(e)?ie({},e):e:null}function xt(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,d=t?yl(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&qr(d),ref:t&&t.ref?s&&i?O(i)?i.concat(vs(t)):[i,vs(t)]:vs(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&Qs(f,c.clone(f)),f}function ml(e=" ",t=0){return ve(ms,null,e,t)}function le(e="",t=!1){return t?(V(),fn(nt,null,e)):ve(nt,null,e)}function Le(e){return e==null||typeof e=="boolean"?ve(nt):O(e)?ve(me,null,e.slice()):bs(e)?Ye(e):ve(ms,null,String(e))}function Ye(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function dn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(O(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),dn(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Ir(t)?t._ctx=ke:r===3&&ke&&(ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:ke},s=32):(t=String(t),n&64?(s=16,t=[ml(t)]):s=8);e.children=t,e.shapeFlag|=s}function yl(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=Ee([t.class,n.class]));else if(r==="style")t.style=Et([t.style,n.style]);else if(Gt(r)){const i=t[r],o=n[r];o&&i!==o&&!(O(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=n[r])}return t}function Be(e,t,s,n=null){Ue(e,t,7,[s,n])}const bl=Mr();let vl=0;function _l(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||bl,i={uid:vl++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ki(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ur(n,r),emitsOptions:Ar(n,r),emit:null,emitted:null,propsDefaults:z,inheritAttrs:n.inheritAttrs,ctx:z,data:z,props:z,attrs:z,slots:z,refs:z,setupState:z,setupContext:null,suspense:s,suspenseId:s?s.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 i.ctx={_:i},i.root=t?t.root:i,i.emit=Jo.bind(null,i),e.ce&&e.ce(i),i}let ye=null;const xl=()=>ye||ke;let _s,hn;{const e=Jt(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};_s=t("__VUE_INSTANCE_SETTERS__",s=>ye=s),hn=t("__VUE_SSR_SETTERS__",s=>jt=s)}const Kt=e=>{const t=ye;return _s(e),e.scope.on(),()=>{e.scope.off(),_s(t)}},zr=()=>{ye&&ye.scope.off(),_s(null)};function Gr(e){return e.vnode.shapeFlag&4}let jt=!1;function wl(e,t=!1,s=!1){t&&hn(t);const{props:n,children:r}=e.vnode,i=Gr(e);sl(e,n,i,t),ol(e,r,s||t);const o=i?Tl(e,t):void 0;return t&&hn(!1),o}function Tl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,No);const{setup:n}=s;if(n){Ie();const r=e.setupContext=n.length>1?El(e):null,i=Kt(e),o=yt(n,e,0,[e.props,r]),l=Cn(o);if(De(),i(),(l||e.sp)&&!Dt(e)&&gr(e),l){if(o.then(zr,zr),t)return o.then(c=>{Yr(e,c)}).catch(c=>{is(c,e,0)});e.asyncDep=o}else Yr(e,o)}else Jr(e)}function Yr(e,t,s){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:j(t)&&(e.setupState=Zn(t)),Jr(e)}function Jr(e,t,s){const n=e.type;e.render||(e.render=n.render||$e);{const r=Kt(e);Ie();try{Ko(e)}finally{De(),r()}}}const Sl={get(e,t){return fe(e,"get",""),e[t]}};function El(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Sl),slots:e.slots,emit:e.emit,expose:t}}function pn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Zn(io(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ht)return Ht[s](e)},has(t,s){return s in t||s in Ht}})):e.proxy}const Cl=/(?:^|[-_])\w/g,Ml=e=>e.replace(Cl,t=>t.toUpperCase()).replace(/[-_]/g,"");function Al(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function Xr(e,t,s=!1){let n=Al(t);if(!n&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(n=r[1])}if(!n&&e){const r=i=>{for(const o in i)if(i[o]===t)return o};n=r(e.components)||e.parent&&r(e.parent.type.components)||r(e.appContext.components)}return n?Ml(n):s?"App":"Anonymous"}function Pl(e){return F(e)&&"__vccOpts"in e}const re=(e,t)=>uo(e,t,jt);function Rl(e,t,s){try{ys(-1);const n=arguments.length;return n===2?j(t)&&!O(t)?bs(t)?ve(e,null,[t]):ve(e,t):ve(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&bs(s)&&(s=[s]),ve(e,t,s))}finally{ys(1)}}const Ol="3.5.29";let gn;const Qr=typeof window<"u"&&window.trustedTypes;if(Qr)try{gn=Qr.createPolicy("vue",{createHTML:e=>e})}catch{}const Zr=gn?e=>gn.createHTML(e):e=>e,$l="http://www.w3.org/2000/svg",Fl="http://www.w3.org/1998/Math/MathML",Je=typeof document<"u"?document:null,ei=Je&&Je.createElement("template"),Il={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Je.createElementNS($l,e):t==="mathml"?Je.createElementNS(Fl,e):s?Je.createElement(e,{is:s}):Je.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Je.createTextNode(e),createComment:e=>Je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Je.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{ei.innerHTML=Zr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=ei.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Dl=Symbol("_vtc");function Ul(e,t,s){const n=e[Dl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ti=Symbol("_vod"),Hl=Symbol("_vsh"),kl=Symbol(""),Ll=/(?:^|;)\s*display\s*:/;function Bl(e,t,s){const n=e.style,r=Z(s);let i=!1;if(s&&!r){if(t)if(Z(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&xs(n,l,"")}else for(const o in t)s[o]==null&&xs(n,o,"");for(const o in s)o==="display"&&(i=!0),xs(n,o,s[o])}else if(r){if(t!==s){const o=n[kl];o&&(s+=";"+o),n.cssText=s,i=Ll.test(s)}}else t&&e.removeAttribute("style");ti in e&&(e[ti]=i?n.display:"",e[Hl]&&(n.display="none"))}const si=/\s*!important$/;function xs(e,t,s){if(O(s))s.forEach(n=>xs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Nl(e,t);si.test(s)?e.setProperty(rt(n),s.replace(si,""),"important"):e[n]=s}}const ni=["Webkit","Moz","ms"],mn={};function Nl(e,t){const s=mn[t];if(s)return s;let n=Xe(t);if(n!=="filter"&&n in e)return mn[t]=n;n=Pn(n);for(let r=0;r<ni.length;r++){const i=ni[r]+n;if(i in e)return mn[t]=i}return t}const ri="http://www.w3.org/1999/xlink";function ii(e,t,s,n,r,i=Ui(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(ri,t.slice(6,t.length)):e.setAttributeNS(ri,t,s):s==null||i&&!$n(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Fe(s)?String(s):s)}function oi(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Zr(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(l!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=$n(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function Kl(e,t,s,n){e.addEventListener(t,s,n)}function jl(e,t,s,n){e.removeEventListener(t,s,n)}const li=Symbol("_vei");function Vl(e,t,s,n,r=null){const i=e[li]||(e[li]={}),o=i[t];if(n&&o)o.value=n;else{const[l,c]=Wl(t);if(n){const d=i[t]=Gl(n,r);Kl(e,l,d,c)}else o&&(jl(e,l,o,c),i[t]=void 0)}}const ci=/(?:Once|Passive|Capture)$/;function Wl(e){let t;if(ci.test(e)){t={};let n;for(;n=e.match(ci);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):rt(e.slice(2)),t]}let yn=0;const ql=Promise.resolve(),zl=()=>yn||(ql.then(()=>yn=0),yn=Date.now());function Gl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ue(Yl(n,s.value),t,5,[n])};return s.value=e,s.attached=zl(),s}function Yl(e,t){if(O(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const ai=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?Ul(e,n,o):t==="style"?Bl(e,s,n):Gt(t)?As(t)||Vl(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xl(e,t,n,o))?(oi(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ii(e,t,n,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Z(n))?oi(e,Xe(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),ii(e,t,n,o))};function Xl(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ai(t)&&F(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return ai(t)&&Z(s)?!1:t in e}const Ql=["ctrl","shift","alt","meta"],Zl={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)=>Ql.some(s=>e[`${s}Key`]&&!t.includes(s))},ec=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((r,...i)=>{for(let o=0;o<t.length;o++){const l=Zl[t[o]];if(l&&l(r,t))return}return e(r,...i)}))},tc=ie({patchProp:Jl},Il);let ui;function sc(){return ui||(ui=cl(tc))}const nc=((...e)=>{const t=sc().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=ic(n);if(!r)return;const i=t._component;!F(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,rc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function rc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ic(e){return Z(e)?document.querySelector(e):e}class fi extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class oc extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class di{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const r={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},i=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:r,credentials:this.authToken?"omit":"same-origin"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(i.status===401||i.status===403)throw new fi(i.status);if(!i.ok){const o=await i.text().catch(()=>"");throw new oc(i.status,o)}return i.json()}async get(t,s){const n=s?`${t}?${s}`:t;return this.fetch(n)}async post(t,s){const n={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,n)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const lc=60,cc=1e4;function ac(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),n=Math.floor(t%86400/3600),r=Math.floor(t%3600/60);return s>0?`${s}d ${n}h`:n>0?`${n}h ${r}m`:r>0?`${r}m ${t%60}s`:`${t}s`}function bn(e){const t=e/1048576;return t>=1024?`${(t/1024).toFixed(1)}G`:`${t.toFixed(0)}M`}function hi(e){return e>=1024?`${(e/1024).toFixed(1)}G`:`${e.toFixed(1)}M`}function uc(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:`${e}`}function vn(e,t){switch(t){case"%":return`${e.toFixed(1)}%`;case"ms":return`${e.toFixed(0)}ms`;case"MB":return`${e.toFixed(1)}M`;case"bytes":return bn(e);case"/s":case"/m":return e.toFixed(1);default:return e.toFixed(1)}}function ws(e,t,s){return e>s?"red":e>t?"amber":"green"}function fc(e,t,s){return e<s?"red":e<t?"amber":"green"}function pi(e,t){if(t===0)return"green";const s=e/t;return s>.8?"red":s>.5?"amber":"green"}const dc={green:"ss-green",amber:"ss-amber",red:"ss-red"};function ft(e){return dc[e]||""}const gi=[{id:"node",label:"NODE",title:"Node.js Runtime",unit:"",group:"process",extract:e=>0,format:e=>e.nodeVersion,color:()=>""},{id:"uptime",label:"UP",title:"Process Uptime",unit:"",group:"process",extract:e=>e.uptime,format:e=>ac(e.uptime),color:()=>""},{id:"cpu",label:"CPU",title:"CPU Usage",unit:"%",group:"process",warnThreshold:50,critThreshold:80,extract:e=>e.cpuPercent,format:e=>`${e.cpuPercent.toFixed(1)}%`,color:e=>ft(ws(e.cpuPercent,50,80)),historyKey:"cpuPercent"},{id:"eventLoop",label:"EVT",title:"Event Loop Latency",unit:"ms",group:"process",warnThreshold:20,critThreshold:50,extract:e=>e.eventLoopLag,format:e=>`${e.eventLoopLag.toFixed(1)}ms`,color:e=>ft(ws(e.eventLoopLag,20,50)),historyKey:"eventLoopLag"},{id:"memory",label:"HEAP",title:"V8 Heap Usage",unit:"bytes",group:"memory",extract:e=>e.memHeapUsed,format:e=>bn(e.memHeapUsed),color:()=>"",historyKey:"memHeapUsed"},{id:"rss",label:"RSS",title:"Resident Set Size",unit:"bytes",group:"memory",extract:e=>e.memRss,format:e=>bn(e.memRss),color:()=>"",historyKey:"memRss"},{id:"systemMemory",label:"SYS",title:"System Memory",unit:"MB",group:"memory",extract:e=>e.systemMemoryTotalMb-e.systemMemoryFreeMb,format:e=>`${hi(e.systemMemoryTotalMb-e.systemMemoryFreeMb)}/${hi(e.systemMemoryTotalMb)}`,color:e=>{const t=e.systemMemoryTotalMb;if(t===0)return"";const s=t-e.systemMemoryFreeMb;return ft(pi(s,t))},historyKey:"_sysMemUsed",show:e=>e.systemMemoryTotalMb!==null&&e.systemMemoryTotalMb!==void 0},{id:"reqPerSec",label:"REQ/s",title:"Requests per Second",unit:"/s",group:"http",extract:e=>e.requestsPerSecond,format:e=>e.requestsPerSecond.toFixed(1),color:()=>"",historyKey:"requestsPerSecond"},{id:"avgResponse",label:"AVG",title:"Avg Response Time",unit:"ms",group:"http",warnThreshold:200,critThreshold:500,extract:e=>e.avgResponseTimeMs,format:e=>`${e.avgResponseTimeMs.toFixed(0)}ms`,color:e=>ft(ws(e.avgResponseTimeMs,200,500)),historyKey:"avgResponseTimeMs"},{id:"errorRate",label:"ERR",title:"Error Rate",unit:"%",group:"http",warnThreshold:1,critThreshold:5,extract:e=>e.errorRate,format:e=>`${e.errorRate.toFixed(1)}%`,color:e=>ft(ws(e.errorRate,1,5)),historyKey:"errorRate"},{id:"connections",label:"CONN",title:"Active Connections",unit:"",group:"http",extract:e=>e.activeHttpConnections,format:e=>`${e.activeHttpConnections}`,color:()=>"",historyKey:"activeHttpConnections"},{id:"dbPool",label:"DB",title:"Database Pool",unit:"",group:"db",extract:e=>e.dbPoolUsed,format:e=>`${e.dbPoolUsed}/${e.dbPoolFree}/${e.dbPoolMax}`,color:e=>ft(pi(e.dbPoolUsed,e.dbPoolMax)),historyKey:"dbPoolUsed"},{id:"redis",label:"REDIS",title:"Redis Status",unit:"",group:"redis",extract:e=>e.redisOk?1:0,format:e=>e.redisOk?"✓":"✗",color:e=>e.redisOk?"ss-green":"ss-red"},{id:"redisMem",label:"MEM",title:"Redis Memory",unit:"MB",group:"redis",extract:e=>e.redisMemoryUsedMb,format:e=>`${e.redisMemoryUsedMb.toFixed(1)}M`,color:()=>"",historyKey:"redisMemoryUsedMb",show:e=>e.redisOk},{id:"redisKeys",label:"KEYS",title:"Redis Keys",unit:"",group:"redis",extract:e=>e.redisKeysCount,format:e=>uc(e.redisKeysCount),color:()=>"",historyKey:"redisKeysCount",show:e=>e.redisOk},{id:"redisHitRate",label:"HIT",title:"Redis Hit Rate",unit:"%",group:"redis",warnThreshold:90,critThreshold:70,inverseThreshold:!0,extract:e=>e.redisHitRate,format:e=>`${e.redisHitRate.toFixed(0)}%`,color:e=>ft(fc(e.redisHitRate,90,70)),historyKey:"redisHitRate",show:e=>e.redisOk},{id:"queue",label:"Q",title:"Job Queue",unit:"",group:"queue",extract:e=>e.queueActive,format:e=>`${e.queueActive}/${e.queueWaiting}/${e.queueDelayed}`,color:e=>e.queueFailed>0?"ss-amber":"ss-green",historyKey:"queueActive"},{id:"queueWorkers",label:"WORKERS",title:"Queue Workers",unit:"",group:"queue",extract:e=>e.queueWorkerCount,format:e=>`${e.queueWorkerCount}`,color:()=>""},{id:"onlineUsers",label:"USERS",title:"Online Users",unit:"",group:"app",extract:e=>e.onlineUsers,format:e=>`${e.onlineUsers}`,color:()=>"",historyKey:"onlineUsers"},{id:"pendingWebhooks",label:"HOOKS",title:"Pending Webhooks",unit:"",group:"app",extract:e=>e.pendingWebhooks,format:e=>`${e.pendingWebhooks}`,color:e=>e.pendingWebhooks>0?"ss-amber":"",historyKey:"pendingWebhooks"},{id:"pendingEmails",label:"MAIL",title:"Pending Emails",unit:"",group:"app",extract:e=>e.pendingEmails,format:e=>`${e.pendingEmails}`,color:e=>e.pendingEmails>0?"ss-amber":"",historyKey:"pendingEmails"},{id:"logErrors",label:"LOG ERR",title:"Log Errors (5m)",unit:"",group:"log",extract:e=>e.logErrorsLast5m,format:e=>`${e.logErrorsLast5m}`,color:e=>e.logErrorsLast5m>0?"ss-red":e.logWarningsLast5m>0?"ss-amber":"",historyKey:"logErrorsLast5m"},{id:"logRate",label:"LOG/m",title:"Log Entries / Minute",unit:"/m",group:"log",extract:e=>e.logEntriesPerMinute,format:e=>`${e.logEntriesPerMinute}`,color:()=>"",historyKey:"logEntriesPerMinute"}];function hc(){const e=new Map;for(const t of gi){const s=t.group||"core";e.has(s)||e.set(s,[]),e.get(s).push(t)}return e}function pc(e=lc){const t={},s={};let n=!1;function r(i){if(i.count===0)return[];const o=Array.from({length:i.count}),l=i.count<e?0:i.head;for(let c=0;c<i.count;c++)o[c]=i.data[(l+c)%e];return o}return{push(i){n=!1;for(const o of gi){const l=o.historyKey;if(!l)continue;const c=o.extract(i);if(typeof c!="number")continue;t[l]||(t[l]={data:Array.from({length:e}),head:0,count:0});const d=t[l];d.data[d.head]=c,d.head=(d.head+1)%e,d.count<e&&d.count++}},get(i){const o=t[i];return o?r(o):[]},getAll(){if(n)return s;for(const i of Object.keys(t))s[i]=r(t[i]);return n=!0,s}}}function gc(e,t){const s=e||(typeof window<"u"?window.location.origin:"");if(!t)return{baseUrl:s};const n={headers:{Authorization:`Bearer ${t}`}};return{baseUrl:s,beforeSubscribe(r){return n},beforeUnsubscribe(r){return n}}}async function mc(){if(typeof window<"u"&&window.Transmit&&typeof window.Transmit=="function")return window.Transmit;try{const e=await import("@adonisjs/transmit-client");return e.Transmit??e.default??null}catch{return null}}function yc(e){let t=null,s=null,n=!1;return{subscribe:async()=>{try{const o=await mc();if(!o)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(n)return;t=new o(gc(e.baseUrl,e.authToken)),s=t.subscription(e.channelName),s.onMessage(l=>{n||e.onMessage(l)}),await s.create()}catch(o){e.onError?.(o)}},unsubscribe:async()=>{n=!0;try{await s?.delete(),s=null,t=null}catch{}}}}function bc(e){let t=!1;const s=yc({baseUrl:e.baseUrl,channelName:e.channelName,authToken:e.authToken,onMessage:e.onMessage,onError:n=>{t=!0,e.onError?.(n),e.onDisconnect?.()}});return s.subscribe().then(()=>{t||e.onConnect?.()}).catch(n=>{e.onError?.(n),e.onDisconnect?.()}),{unsubscribe:()=>{s.unsubscribe().catch(()=>{})}}}class vc{baseUrl;endpoint;channelName;authToken;pollInterval;onStatsUpdate;onConnectionChange;onStaleChange;onError;onUnauthorizedChange;onHistoryChange;onSseActiveChange;onPollActiveChange;historyBuffer;client=null;sseHandle=null;pollTimer=null;staleTimer=null;lastSuccess=0;unauthorized=!1;stopped=!1;sseActive=!1;isConnected=!1;isStale=!1;constructor(t={}){this.baseUrl=t.baseUrl??"",this.endpoint=t.endpoint??"/admin/api/server-stats",this.channelName=t.channelName??"admin/server-stats",this.authToken=t.authToken,this.pollInterval=t.pollInterval??3e3,this.onStatsUpdate=t.onStatsUpdate,this.onConnectionChange=t.onConnectionChange,this.onStaleChange=t.onStaleChange,this.onError=t.onError,this.onUnauthorizedChange=t.onUnauthorizedChange,this.onHistoryChange=t.onHistoryChange,this.onSseActiveChange=t.onSseActiveChange,this.onPollActiveChange=t.onPollActiveChange,this.historyBuffer=pc()}start(){if(this.unauthorized)return;this.stopped=!1;const t=this.initSseSubscription();this.poll(),t||!this.sseHandle?this.startPollInterval():this.setupSseFallbackTimer(),this.startStaleDetection()}stop(){this.stopped=!0,this.sseHandle?.unsubscribe(),this.sseHandle=null,this.stopPolling(),this.staleTimer&&(clearInterval(this.staleTimer),this.staleTimer=null)}getHistory(t){return this.historyBuffer.get(t)}getAllHistory(){return this.historyBuffer.getAll()}getConnectionMode(){return this.unauthorized?"disconnected":this.sseActive?"live":this.pollTimer?"polling":"disconnected"}initSseSubscription(){let t=!1;try{this.sseHandle=bc({baseUrl:this.baseUrl,channelName:this.channelName,authToken:this.authToken,onMessage:s=>{s&&typeof s=="object"&&"timestamp"in s&&this.processStats(s)},onConnect:()=>{this.setSseActive(!0),this.setConnected(!0),this.stopPolling()},onDisconnect:()=>{this.setSseActive(!1),this.setConnected(!1),!this.pollTimer&&!this.unauthorized&&!this.stopped&&this.startPollInterval()},onError:()=>{t=!0}})}catch{t=!0}return t}setupSseFallbackTimer(){const t=setTimeout(()=>{!this.isConnected&&!this.pollTimer&&!this.stopped&&this.startPollInterval()},3e3),s=this.sseHandle?.unsubscribe;this.sseHandle&&(this.sseHandle.unsubscribe=()=>{clearTimeout(t),s?.()})}startStaleDetection(){this.staleTimer=setInterval(()=>{this.lastSuccess>0&&Date.now()-this.lastSuccess>cc&&this.setStale(!0)},2e3)}processStats(t){this.onStatsUpdate?.(t),this.onError?.(null),this.lastSuccess=Date.now(),this.setStale(!1),this.historyBuffer.push(t),this.onHistoryChange?.(this.historyBuffer.getAll())}async poll(){if(!this.unauthorized){this.client||(this.client=new di({baseUrl:this.baseUrl,authToken:this.authToken}));try{const t=await this.client.get(this.endpoint);this.processStats(t)}catch(t){t instanceof fi&&(this.unauthorized=!0,this.onUnauthorizedChange?.(!0),this.onError?.(t),this.stopPolling())}}}startPollInterval(){this.pollTimer||this.stopped||(this.pollTimer=setInterval(()=>this.poll(),this.pollInterval),this.onPollActiveChange?.(!0))}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null,this.onPollActiveChange?.(!1))}setSseActive(t){this.sseActive!==t&&(this.sseActive=t,this.onSseActiveChange?.(t))}setConnected(t){this.isConnected!==t&&(this.isConnected=t,this.onConnectionChange?.(t))}setStale(t){this.isStale!==t&&(this.isStale=t,this.onStaleChange?.(t))}}function _c(e){return{onStatsUpdate:t=>{e.stats.value=t},onConnectionChange:t=>{e.isConnected.value=t},onStaleChange:t=>{e.isStale.value=t},onError:t=>{e.error.value=t},onUnauthorizedChange:t=>{e.isUnauthorized.value=t},onHistoryChange:t=>{for(const s of Object.keys(t))e.history[s]=t[s]},onSseActiveChange:t=>{e.sseActive.value=t},onPollActiveChange:t=>{e.pollActive.value=t}}}function xc(e,t){if(e.isUnauthorized.value)return null;const s=_c(e),n=new vc({...t,...s});return n.start(),n}function wc(e={}){const{baseUrl:t="",endpoint:s="/admin/api/server-stats",channelName:n="admin/server-stats",authToken:r,pollInterval:i=3e3}=e,o=te(null),l=ts({}),c=te(!1),d=te(!1),f=te(null),h=te(!1),v=te(!1),w=te(!1),C={stats:o,history:l,isConnected:c,isStale:d,error:f,isUnauthorized:h,sseActive:v,pollActive:w};let S=null;const D=re(()=>h.value?"disconnected":v.value?"live":w.value?"polling":"disconnected");return at(()=>{S=xc(C,{baseUrl:t,endpoint:s,channelName:n,authToken:r,pollInterval:i})}),Ut(()=>{S?.stop(),S=null}),{stats:o,history:l,isConnected:c,isStale:d,isUnauthorized:h,error:f,connectionMode:D}}const Ts="ss-dash-theme",_n="ss-theme-change";function Ss(){if(typeof window>"u")return"light";const e=localStorage.getItem(Ts);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function Tc(e){typeof window>"u"||(localStorage.setItem(Ts,e),window.dispatchEvent(new CustomEvent(_n,{detail:e})))}function Sc(){const t=Ss()==="dark"?"light":"dark";return Tc(t),t}function Ec(e){if(typeof window>"u")return()=>{};const t=i=>{const o=i.detail;(o==="dark"||o==="light")&&e(o)},s=i=>{if(i.key===Ts){const o=i.newValue;e(o==="dark"||o==="light"?o:Ss())}},n=window.matchMedia("(prefers-color-scheme: dark)"),r=i=>{localStorage.getItem(Ts)||e(i.matches?"dark":"light")};return window.addEventListener(_n,t),window.addEventListener("storage",s),n.addEventListener("change",r),()=>{window.removeEventListener(_n,t),window.removeEventListener("storage",s),n.removeEventListener("change",r)}}const Cc={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function Mc(e){return{...Cc,...e}}let Ac=0;function Pc(){return`ss-grad-${Ac++}`}function mi(e){if(e.length===0)return null;let t=e[0],s=e[0],n=e[0];for(let r=1;r<e.length;r++){const i=e[r];i<t&&(t=i),i>s&&(s=i),n+=i}return{min:t,max:s,avg:n/e.length}}function Rc(e,t){if(e.length<2)return null;const s=Mc(t),n=mi(e),r=n.max-n.min||1,i=s.width-s.padding*2,o=s.height-s.padding*2,l=s.padding,c=e.length,d=Array.from({length:c});for(let S=0;S<c;S++){const D=l+S/(c-1)*i,U=l+o-(e[S]-n.min)/r*o;d[S]=`${D.toFixed(1)},${U.toFixed(1)}`}const f=d.join(" "),h=(l+i).toFixed(1),v=(l+o).toFixed(1),w=l.toFixed(1),C=`M${d[0]} `+d.slice(1).map(S=>`L${S}`).join(" ")+` L${h},${v} L${w},${v} Z`;return{points:f,areaPath:C,gradientId:Pc(),options:s,stats:n}}const Oc=["tracing","process","system","http","db","redis","queues","cache","app","log","emails","dashboard"],$c=[{flag:"process",group:"process"},{flag:"process",group:"memory"},{flag:"system",group:"memory"},{flag:"http",group:"http"},{flag:"db",group:"db"},{flag:"redis",group:"redis"},{flag:"queues",group:"queue"},{flag:"app",group:"app"},{flag:"log",group:"log"}],Fc=[{group:"process",fields:["cpuPercent","uptime","nodeVersion"]},{group:"memory",fields:["memHeapUsed","memRss","systemMemoryTotalMb","systemMemoryFreeMb"]},{group:"http",fields:["requestsPerSecond","avgResponseTimeMs","errorRate","activeHttpConnections"]},{group:"db",fields:["dbPoolMax","dbPoolUsed","dbPoolFree","dbPoolPending"]},{group:"queue",fields:["queueActive","queueWaiting","queueWorkerCount"]},{group:"app",fields:["onlineUsers","pendingWebhooks","pendingEmails"]},{group:"log",fields:["logErrorsLast5m","logEntriesPerMinute"]}];function xn(e){return typeof e=="number"&&!Number.isNaN(e)}const yi="/admin/api/debug",bi={tracing:!1,process:!1,system:!1,http:!1,db:!1,redis:!1,queues:!1,cache:!1,app:!1,log:!1,emails:!1,dashboard:!1,customPanes:[]};function Ic(e){const t={customPanes:e.customPanes??[]},s=e.features;for(const n of Oc)t[n]=s?.[n]??!1;return t}async function Dc(e,t=yi){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Uc(e){const{baseUrl:t="",debugEndpoint:s=yi,authToken:n}=e,r=new di({baseUrl:t,authToken:n});try{const i=await Dc(r,s);return Ic(i)}catch{return bi}}function Hc(e){const t=new Set,n="features"in e&&typeof e.features=="object"&&e.features!==null?e.features:e;for(const{flag:r,group:i}of $c)n[r]&&t.add(i);return t}function kc(e){const t=new Set;(xn(e.cpuPercent)||xn(e.uptime)||Lc(e))&&t.add("process");for(const s of Fc)s.fields.some(n=>xn(e[n]))&&t.add(s.group);return e.redisOk!==void 0&&e.redisOk!==null&&t.add("redis"),t}function Lc(e){return typeof e.nodeVersion=="string"&&e.nodeVersion.length>0}const vi={queries:{viewBox:"0 0 24 24",elements:['<ellipse cx="12" cy="5" rx="9" ry="3"/>','<path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/>','<path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>']},events:{viewBox:"0 0 24 24",elements:['<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>']},emails:{viewBox:"0 0 24 24",elements:['<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>','<polyline points="22,6 12,13 2,6"/>']},routes:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<line x1="2" y1="12" x2="22" y2="12"/>','<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>']},logs:{viewBox:"0 0 24 24",elements:['<line x1="8" y1="6" x2="21" y2="6"/>','<line x1="8" y1="12" x2="21" y2="12"/>','<line x1="8" y1="18" x2="21" y2="18"/>','<line x1="3" y1="6" x2="3.01" y2="6"/>','<line x1="3" y1="12" x2="3.01" y2="12"/>','<line x1="3" y1="18" x2="3.01" y2="18"/>']},timeline:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},cache:{viewBox:"0 0 24 24",elements:['<rect x="2" y="2" width="20" height="8" rx="2" ry="2"/>','<rect x="2" y="14" width="20" height="8" rx="2" ry="2"/>','<line x1="6" y1="6" x2="6.01" y2="6"/>','<line x1="6" y1="18" x2="6.01" y2="18"/>']},jobs:{viewBox:"0 0 24 24",elements:['<rect x="2" y="7" width="20" height="14" rx="2" ry="2"/>','<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>']},config:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="3"/>','<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>']},internals:{viewBox:"0 0 24 24",elements:['<rect x="4" y="4" width="16" height="16" rx="2"/>','<rect x="9" y="9" width="6" height="6"/>','<line x1="9" y1="1" x2="9" y2="4"/>','<line x1="15" y1="1" x2="15" y2="4"/>','<line x1="9" y1="20" x2="9" y2="23"/>','<line x1="15" y1="20" x2="15" y2="23"/>','<line x1="20" y1="9" x2="23" y2="9"/>','<line x1="20" y1="14" x2="23" y2="14"/>','<line x1="1" y1="9" x2="4" y2="9"/>','<line x1="1" y1="14" x2="4" y2="14"/>']},overview:{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="7" height="7"/>','<rect x="14" y="3" width="7" height="7"/>','<rect x="14" y="14" width="7" height="7"/>','<rect x="3" y="14" width="7" height="7"/>']},requests:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},"dashboard-timeline":{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<polyline points="12 6 12 12 16 14"/>']},"custom-pane":{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="18" height="18" rx="2"/>','<path d="M9 3v18"/>']},wrench:{viewBox:"0 0 24 24",elements:['<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>']},"external-link":{viewBox:"0 0 24 24",elements:['<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>','<polyline points="15 3 21 3 21 9"/>','<line x1="10" y1="14" x2="21" y2="3"/>']},sun:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="5"/>','<line x1="12" y1="1" x2="12" y2="3"/>','<line x1="12" y1="21" x2="12" y2="23"/>','<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>','<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>','<line x1="1" y1="12" x2="3" y2="12"/>','<line x1="21" y1="12" x2="23" y2="12"/>','<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>','<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>']},moon:{viewBox:"0 0 24 24",elements:['<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>']},search:{viewBox:"0 0 24 24",elements:['<circle cx="11" cy="11" r="8"/>','<line x1="21" y1="21" x2="16.65" y2="16.65"/>']},eye:{viewBox:"0 0 24 24",elements:['<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>','<circle cx="12" cy="12" r="3"/>']},"eye-off":{viewBox:"0 0 24 24",elements:['<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/>','<path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/>','<line x1="1" y1="1" x2="23" y2="23"/>','<path d="M14.12 14.12a3 3 0 1 1-4.24-4.24"/>']},"chevron-right":{viewBox:"0 0 24 24",elements:['<path d="M9 18l6-6-6-6"/>']},"chevron-left":{viewBox:"0 0 24 24",elements:['<path d="M15 18l-6-6 6-6"/>']},"open-external":{viewBox:"0 0 16 16",elements:['<path d="M6 3H3v10h10v-3M9 1h6v6M7 9L15 1"/>']}};function Bc(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:n}=e,r=te({...bi}),i=te(!0);return at(async()=>{r.value=await Uc({baseUrl:t,debugEndpoint:s,authToken:n}),i.value=!1}),{features:r,loading:i}}function Nc(){const e=te(Ss());let t=null;function s(r){e.value=r}function n(){const r=Sc();return e.value=r,r}return at(()=>{e.value=Ss(),t=Ec(s)}),Ut(()=>{t?.()}),{theme:e,toggleTheme:n}}const Kc=["width","height","viewBox"],jc=["id"],Vc=["stop-color"],Wc=["stop-color"],qc=["d","fill"],zc=["d","stroke"],Gc=["x","y"],Yc=fs({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=re(()=>Rc(t.data,{width:t.width,height:t.height,color:t.color})),n=re(()=>s.value!==null),r=re(()=>`sg-${t.color.replace("#","")}`);return(i,o)=>(V(),Y("div",{class:"ss-dash-sparkline",style:Et({"--ss-accent":e.color})},[(V(),Y("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:{display:"block"}},[n.value&&s.value?(V(),Y(me,{key:0},[J("defs",null,[J("linearGradient",{id:r.value,x1:"0",y1:"0",x2:"0",y2:"1"},[J("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,Vc),J("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,Wc)],8,jc)]),J("path",{d:s.value.areaPath,fill:`url(#${r.value})`},null,8,qc),J("path",{class:"ss-dash-sparkline-line",d:"M"+s.value.points.replace(/ /g," L"),fill:"none",stroke:e.color,"stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,zc)],64)):(V(),Y("text",{key:1,x:e.width/2,y:e.height/2+3,"text-anchor":"middle",fill:"#737373","font-size":"9"}," collecting... ",8,Gc))],8,Kc))],4))}}),Jc=["id"],Xc={class:"ss-label"},Qc={class:"ss-tooltip-inner",style:{position:"relative"}},Zc={class:"ss-tooltip-header"},ea={class:"ss-tooltip-title"},ta={key:0,class:"ss-tooltip-unit"},sa={class:"ss-tooltip-current"},na={class:"ss-tooltip-current-value"},ra={key:1,class:"ss-tooltip-stats"},ia={key:2,class:"ss-tooltip-details"},oa={key:3,class:"ss-tooltip-sparkline"},la={key:4,class:"ss-tooltip-samples"},ca=fs({__name:"MetricCard",props:{metric:{},stats:{},history:{}},emits:["pin"],setup(e,{emit:t}){const s=e,n=t,r=te(!1),i=te(!1),o=te(null),l=te(null),c=te(null),d=te({position:"absolute",bottom:"100%",left:"0",marginBottom:"10px",zIndex:"180"});at(()=>{o.value&&(c.value=o.value.closest(".ss-bar"))});function f(){const ne=o.value,_e=l.value,wt=c.value;if(!ne||!_e||!wt)return;const Vt=ne.getBoundingClientRect(),ae=wt.getBoundingClientRect(),Q=Vt.left-ae.left+Vt.width/2;d.value={position:"absolute",bottom:"100%",left:`${Q}px`,transform:"translateX(-50%)",marginBottom:"10px",zIndex:"180"},requestAnimationFrame(()=>{if(!l.value)return;const B=l.value.getBoundingClientRect();let Ae=0;B.left<8?Ae=8-B.left:B.right>window.innerWidth-8&&(Ae=window.innerWidth-8-B.right),Ae&&(d.value={...d.value,transform:`translateX(calc(-50% + ${Ae}px))`})})}const h=re(()=>r.value||i.value);st(h,ne=>{ne&&sr(f)});let v=null;function w(){h.value&&f()}function C(){h.value&&f()}at(()=>{v=o.value?.closest(".ss-bar-scroll")??null,v?.addEventListener("scroll",w),window.addEventListener("resize",C)}),Zs(()=>{v?.removeEventListener("scroll",w),window.removeEventListener("resize",C)});const S=re(()=>s.stats?(s.metric.value||s.metric.format)(s.stats):"..."),D=re(()=>!s.stats||!s.metric.color?"green":s.metric.color(s.stats)),U=re(()=>!s.stats||!s.metric.show?!0:s.metric.show(s.stats)),R=re(()=>s.metric.detail?typeof s.metric.detail=="function"?s.stats?s.metric.detail(s.stats):"":s.metric.detail:""),L=re(()=>({green:"#34d399",amber:"#fbbf24",red:"#f87171",muted:"#737373"})[D.value]||"#34d399"),M=re(()=>mi(s.history));function I(){r.value=!0}function q(){r.value=!1}function K(){i.value=!i.value,i.value&&n("pin",s.metric.id)}function se(){i.value=!1}function ee(ne){ne.key==="Enter"&&K()}function ce(ne){const _e=ne.target;o.value&&!o.value.contains(_e)&&l.value&&!l.value.contains(_e)&&(i.value=!1)}function Me(ne){ne.key==="Escape"&&(i.value=!1)}return st(i,ne=>{ne?(document.addEventListener("click",ce),document.addEventListener("keydown",Me)):(document.removeEventListener("click",ce),document.removeEventListener("keydown",Me))}),Zs(()=>{document.removeEventListener("click",ce),document.removeEventListener("keydown",Me)}),(ne,_e)=>(V(),Y(me,null,[U.value?(V(),Y("div",{key:0,ref_key:"badgeRef",ref:o,id:`ss-b-${e.metric.id}`,class:Ee(["ss-badge",{"ss-pinned":i.value}]),role:"button",tabindex:0,onMouseenter:I,onMouseleave:q,onClick:K,onKeydown:ee},[J("span",Xc,ue(e.metric.label),1),J("span",{class:Ee(["ss-value",`ss-${D.value}`])},ue(S.value),3)],42,Jc)):le("",!0),h.value&&c.value?(V(),fn(Ao,{key:1,to:c.value},[J("div",{ref_key:"tooltipRef",ref:l,class:Ee(["ss-tooltip",{"ss-pinned":i.value}]),style:Et(d.value)},[J("div",Qc,[i.value?(V(),Y("button",{key:0,class:"ss-tooltip-close",onClick:ec(se,["stop"])},"×")):le("",!0),J("div",Zc,[J("span",ea,ue(e.metric.title),1),e.metric.unit?(V(),Y("span",ta,ue(e.metric.unit),1)):le("",!0)]),J("div",sa,[_e[0]||(_e[0]=J("span",{class:"ss-tooltip-current-label"},"Current: ",-1)),J("span",na,ue(S.value),1)]),M.value?(V(),Y("div",ra,[J("span",null,"Min: "+ue(de(vn)(M.value.min,e.metric.unit)),1),J("span",null,"Max: "+ue(de(vn)(M.value.max,e.metric.unit)),1),J("span",null,"Avg: "+ue(de(vn)(M.value.avg,e.metric.unit)),1)])):le("",!0),R.value?(V(),Y("div",ia,ue(R.value),1)):le("",!0),e.history.length>0?(V(),Y("div",oa,[ve(Yc,{data:e.history,color:L.value},null,8,["data","color"])])):le("",!0),e.history.length>0?(V(),Y("div",la," Last "+ue(Math.min(e.history.length,60))+" samples (~"+ue(Math.round(Math.min(e.history.length,60)*3/60))+" min) ",1)):le("",!0)]),_e[1]||(_e[1]=J("div",{class:"ss-tooltip-arrow"},null,-1))],6)],8,["to"])):le("",!0)],64))}}),aa=["data-ss-theme"],ua={class:"ss-bar-left"},fa=["viewBox","innerHTML"],da={class:"ss-group"},ha={key:0,class:"ss-group-sep"},pa=["data-ss-theme","title"],ga={key:0,class:"ss-toggle-summary",style:{display:"flex"}},ma={key:1,class:"ss-value ss-green"},ya={key:1,class:"ss-toggle-label",style:{color:"#737373"}},ba={class:"ss-toggle-arrow"},_i="admin:stats-bar",va=fs({__name:"StatsBar",props:{debugEndpoint:{default:"/admin/api/debug"},baseUrl:{default:""},endpoint:{default:"/admin/api/server-stats"},channelName:{default:"admin/server-stats"},authToken:{},pollInterval:{default:3e3},className:{},debugPanelOpen:{type:Boolean,default:!1}},emits:["openDebugPanel","connectionChange"],setup(e,{emit:t}){const s=e,n=t,{stats:r,history:i,isStale:o,isUnauthorized:l,isConnected:c}=wc({baseUrl:s.baseUrl,endpoint:s.endpoint,channelName:s.channelName,authToken:s.authToken,pollInterval:s.pollInterval});st(c,I=>{n("connectionChange",I)});const{features:d}=Bc({baseUrl:s.baseUrl,debugEndpoint:s.debugEndpoint,authToken:s.authToken}),{theme:f}=Nc(),h=te(!0),v=te(null);at(()=>{h.value=localStorage.getItem(_i)!=="hidden";const I=v.value;if(I){const q=K=>{Math.abs(K.deltaX)>Math.abs(K.deltaY)||(K.preventDefault(),I.scrollLeft+=K.deltaY)};I.addEventListener("wheel",q,{passive:!1}),Ut(()=>I.removeEventListener("wheel",q))}});function w(){h.value=!h.value,localStorage.setItem(_i,h.value?"visible":"hidden")}st(l,I=>{I&&(h.value=!1)});const C=re(()=>r.value?kc(r.value):Hc(d.value)),S=re(()=>{const I=hc();return Array.from(I.entries()).filter(([q])=>C.value.has(q)).map(([q,K])=>({name:q,metrics:K}))});function D(I){return I?i[I]||[]:[]}const U=re(()=>r.value?`${r.value.cpuPercent.toFixed(0)}%`:"..."),R=re(()=>r.value?r.value.memHeapUsed!==void 0?Math.round(r.value.memHeapUsed/(1024*1024))+"M":"-":"..."),L=re(()=>r.value?r.value.redisOk?"✓":"✗":"..."),M=re(()=>f.value);return(I,q)=>(V(),Y(me,null,[de(l)?le("",!0):(V(),Y("div",{key:0,id:"ss-bar",class:Ee(["ss-bar",{"ss-hidden":!h.value}]),"data-ss-theme":M.value},[J("div",ua,[de(d).tracing||C.value.has("redis")||C.value.has("queue")?(V(),Y("button",{key:0,type:"button",class:Ee(["ss-dbg-btn",{"ss-dbg-active":e.debugPanelOpen}]),title:"Toggle debug panel",id:"ss-dbg-wrench",onClick:q[0]||(q[0]=K=>n("openDebugPanel"))},[(V(),Y("svg",{width:"14",height:"14",viewBox:de(vi).wrench.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:de(vi).wrench.elements.join("")},null,8,fa))],2)):le("",!0),J("div",{class:Ee(["ss-dot",{"ss-stale":de(o)}])},null,2)]),J("div",{ref_key:"scrollRef",ref:v,id:"ss-bar-scroll",class:"ss-bar-scroll"},[(V(!0),Y(me,null,_r(S.value,(K,se)=>(V(),Y(me,{key:K.name},[J("div",da,[(V(!0),Y(me,null,_r(K.metrics,ee=>(V(),fn(ca,{key:ee.id,metric:ee,stats:de(r),history:D(ee.historyKey)},null,8,["metric","stats","history"]))),128))]),se<S.value.length-1?(V(),Y("div",ha)):le("",!0)],64))),128))],512)],10,aa)),de(l)?le("",!0):(V(),Y("button",{key:1,type:"button",class:Ee(["ss-toggle",h.value?"ss-visible":"ss-collapsed"]),"data-ss-theme":M.value,title:h.value?"Hide stats bar":"Show stats bar",onClick:w},[!h.value&&de(r)?(V(),Y("span",ga,[C.value.has("process")?(V(),Y("span",{key:0,class:Ee(["ss-value",de(r).cpuPercent>80?"ss-red":de(r).cpuPercent>50?"ss-amber":"ss-green"])},ue(U.value),3)):le("",!0),C.value.has("process")?(V(),Y("span",ma,ue(R.value),1)):le("",!0),C.value.has("redis")&&de(r)?.redisOk!==void 0?(V(),Y("span",{key:2,class:Ee(["ss-value",de(r)?.redisOk?"ss-green":"ss-red"])},ue(L.value),3)):le("",!0)])):le("",!0),h.value?(V(),Y("span",ya,"hide stats")):le("",!0),J("span",ba,ue(h.value?"▼":"▲"),1)],10,pa))],64))}});function _a(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}const Oe=_a("ss-bar-config");function xa(){if(window.__ssDebugPanel)return!0;const e=document.querySelector('script[type="text/plain"][data-ss-deferred="debug-panel"]');if(!e)return console.error("[server-stats] Deferred debug panel script not found"),!1;try{const t=document.createElement("script");t.textContent=e.textContent,document.head.appendChild(t)}catch(t){return console.error("[server-stats] Debug panel script evaluation failed:",t),!1}return window.__ssDebugPanel?!0:(console.error("[server-stats] Debug panel failed to register after script evaluation"),!1)}function wa(){let e=document.getElementById("ss-dbg-deferred");if(!e){e=document.createElement("div"),e.id="ss-dbg-deferred";const t=document.getElementById("ss-bar");t?.parentNode?t.parentNode.insertBefore(e,t.nextSibling):document.body.appendChild(e)}return e}function Ta(e,t,s){if(e.value||(e.value=xa()),!window.__ssDebugPanel){console.error("[server-stats] Debug panel not available after load attempt");return}if(!t){console.error("[server-stats] Debug config is undefined");return}const n=wa();try{window.__ssDebugPanel.mount(n,t,s)}catch(r){console.error("[server-stats] Debug panel mount failed:",r)}}function Sa(){const e=document.getElementById("ss-dbg-deferred");if(!(!window.__ssDebugPanel||!e))try{window.__ssDebugPanel.unmount(e)}catch(t){console.error("[server-stats] Debug panel unmount failed:",t)}}function Ea(e,t,s,n){st([e,t],([r,i])=>{r?Ta(s,n,i):Sa()},{flush:"post"})}function Ca(e,t){return()=>Rl(va,{endpoint:Oe.endpoint,pollInterval:Oe.pollInterval,channelName:Oe.channelName,authToken:Oe.authToken,debugEndpoint:Oe.debugEndpoint,debugPanelOpen:e.value,onOpenDebugPanel:Oe.showDebug?()=>{e.value=!e.value}:void 0,onConnectionChange:s=>{t.value=s}})}const Ma=fs({setup(){const e=te(!1),t=te(!1),s=te(!1),n=Oe.showDebug?{debugEndpoint:Oe.debugEndpoint,authToken:Oe.authToken,dashboardPath:Oe.dashboardPath}:void 0;return Oe.showDebug&&Ea(e,t,s,n),Ca(e,t)}}),xi=document.getElementById("ss-bar");xi&&nc(Ma).mount(xi)})();
@@ -1,16 +1,22 @@
1
- /**
2
- * Parse source code and detect auth-related middleware
3
- * in `server.use()` or `router.use()` blocks.
4
- *
5
- * This is a pure function that operates on source text.
6
- */
1
+ /** Detect auth-related middleware in source text. */
7
2
  export declare function detectAuthMiddlewareInSource(source: string): string[];
3
+ /** Detect session middleware in source text. */
4
+ export declare function detectSessionMiddlewareInSource(source: string): string[];
8
5
  /**
9
6
  * Read `start/kernel.{ts,js}` from the app root and detect global auth
10
7
  * middleware. Returns an empty array if the file cannot be read.
11
8
  */
12
9
  export declare function detectGlobalAuthMiddleware(makePath: (dir: string, file: string) => string): string[];
10
+ /**
11
+ * Read `start/kernel.{ts,js}` from the app root and detect global session
12
+ * middleware. Returns an empty array if the file cannot be read.
13
+ */
14
+ export declare function detectGlobalSessionMiddleware(makePath: (dir: string, file: string) => string): string[];
13
15
  /**
14
16
  * Build the warning message lines for detected auth middleware.
15
17
  */
16
18
  export declare function buildAuthMiddlewareWarning(found: string[], dimFn: (s: string) => string, boldFn: (s: string) => string): string[];
19
+ /**
20
+ * Build the warning message lines for detected session middleware.
21
+ */
22
+ export declare function buildSessionMiddlewareWarning(found: string[], dimFn: (s: string) => string, boldFn: (s: string) => string): string[];